lkml.org 
[lkml]   [2005]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: proper API for sched_setaffinity ?
    Chris Friesen wrote:
    > On my system (Mandrake 10.0) the man page for sched_setaffinity() lists
    > the prototype as:
    >
    > int sched_setaffinity(pid_t pid, unsigned int len, unsigned long
    > *mask);
    >
    >
    > But /usr/include/sched.h gives it as
    >
    > extern int sched_setaffinity (__pid_t __pid, __const cpu_set_t *__mask)
    >
    > Which is correct?

    The sched_setaffinity interface really is very messy:
    http://mail.linux.ie/pipermail/ilug/2004-November/019784.html
    API changes in same minor version of glibc should just not happen.

    --
    Pádraig Brady - http://www.pixelbeat.org
    --
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-05-26 11:07    [W:0.026 / U:60.740 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site