This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/4749] New: __USE_GNU should be used for unshare() and clone() in bits/sched.h
- From: "michael dot kerrisk at gmx dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 7 Jul 2007 09:00:32 -0000
- Subject: [Bug libc/4749] New: __USE_GNU should be used for unshare() and clone() in bits/sched.h
- Reply-to: sourceware-bugzilla at sourceware dot org
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.