This is the mail archive of the glibc-bugs@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]

[Bug libc/4749] New: __USE_GNU should be used for unshare() and clone() in bits/sched.h


in bits/sched.h, the macro used to control exposure of unshare() and clone() is
__USE_MISC (i.e., _SVID_SOURCE || _BSD_SOURCE).  Surely this should really be
_GNU_SOURCE, since these APIs are Linux specific.  (I realise that this might
cause source compatibility problems, so perhaps the governing if should then
best be changed:

#if defined(__USE_MISC) || defined (__USE_GNU)

I realised this issue while reviewing the documentation of feature test macros
for the manual pages for these calls.  To date the FTM requirements were not
documented. I plan to document them as _GNU_SOURCE.

-- 
           Summary: __USE_GNU should be used for unshare() and clone() in
                    bits/sched.h
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: michael dot kerrisk at gmx dot net
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=4749

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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