]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man2/clone.2
clone.2, unshare.2: Remove mention of _BSD_SOURCE and _SVID_SOURCE
[thirdparty/man-pages.git] / man2 / clone.2
index 3977689d0a6f318221c2cf2965c691e64d119d28..a9c8be36cf7b0b0f8cd707186b2cace47137e82e 100644 (file)
@@ -46,6 +46,7 @@ clone, __clone2 \- create a child process
 .nf
 /* Prototype for the glibc wrapper function */
 
+.B #define _GNU_SOURCE
 .B #include <sched.h>
 
 .BI "int clone(int (*" "fn" ")(void *), void *" child_stack ,
@@ -59,27 +60,6 @@ clone, __clone2 \- create a child process
 .BI "          void *" ptid ", void *" ctid ,
 .BI "          struct pt_regs *" regs );
 .fi
-.sp
-.in -4n
-Feature Test Macro Requirements for glibc wrapper function (see
-.BR feature_test_macros (7)):
-.in
-.sp
-.BR clone ():
-.ad l
-.RS 4
-.PD 0
-.TP 4
-Since glibc 2.14:
-_GNU_SOURCE
-.TP 4
-.\" See http://sources.redhat.com/bugzilla/show_bug.cgi?id=4749
-Before glibc 2.14:
-_BSD_SOURCE || _SVID_SOURCE
-    /* _GNU_SOURCE also suffices */
-.PD
-.RE
-.ad b
 .SH DESCRIPTION
 .BR clone ()
 creates a new process, in a manner similar to