]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
clone.2, unshare.2: Remove mention of _BSD_SOURCE and _SVID_SOURCE
authorMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 12 Feb 2016 12:57:24 +0000 (13:57 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 1 Mar 2016 19:01:04 +0000 (20:01 +0100)
The right way to expose declarations for these Linux-specific
system calls was always _GNU_SOURCE. Mentioning the historical
use of _BSD_SOURCE and _SVID_SOURCE just clouds the issue.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/clone.2
man2/unshare.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
index 5d1c23587c1bc834ee67c148007325182959edd8..0668cf8c8ae1b1b44079013eec588fa3f56535f2 100644 (file)
 unshare \- disassociate parts of the process execution context
 .SH SYNOPSIS
 .nf
+.B #define _GNU_SOURCE
 .B #include <sched.h>
 .sp
 .BI "int unshare(int " flags );
 .fi
-.sp
-.in -4n
-Feature Test Macro Requirements for glibc (see
-.BR feature_test_macros (7)):
-.in
-.sp
-.BR unshare ():
-.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 unshare ()
 allows a process (or thread) to disassociate parts of its execution