This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: Add getcpu wrapper


On Wed, Dec 5, 2018 at 8:00 AM Zack Weinberg <zackw@panix.com> wrote:
>
> On Wed, Dec 5, 2018 at 10:49 AM Florian Weimer <fweimer@redhat.com> wrote:
> >
> > Ah, so you want to pass a non-null second argument to getcpu?
> >
> > I think we can expose getcpu (with two arguments), under that name.  Add
> > it to <sched.h> or <unistd.h>; I do not have a strong preference.
>
> What's the third argument for?  Is there a concrete reason not to
> expose it as well?
>
> zw

       The  third  argument to this system call is nowadays unused, and should
       be specified as NULL unless portability to Linux 2.6.23 or  earlier  is
       required (see NOTES).


-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]