diff options
Diffstat (limited to 'man2')
46 files changed, 421 insertions, 106 deletions
diff --git a/man2/_exit.2 b/man2/_exit.2 index f4b161ef2b..f0bd16cd39 100644 --- a/man2/_exit.2 +++ b/man2/_exit.2 @@ -26,7 +26,7 @@ .\" Modified Wed Jul 21 23:02:38 1993 by Rik Faith <faith@cs.unc.edu> .\" Modified 2001-11-17, aeb .\" -.TH _EXIT 2 2001-11-17 "Linux" "Linux Programmer's Manual" +.TH _EXIT 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME _exit, _Exit \- terminate the current process .SH SYNOPSIS @@ -37,6 +37,15 @@ _exit, _Exit \- terminate the current process .B #include <stdlib.h> .sp .BI "void _Exit(int " status ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR _Exit (): +_XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or +.I cc\ -std=c99 .SH DESCRIPTION The function .BR _exit () diff --git a/man2/acct.2 b/man2/acct.2 index 6d7bd143f7..232e1ef13e 100644 --- a/man2/acct.2 +++ b/man2/acct.2 @@ -29,7 +29,7 @@ .\" Modified 1998-11-04 by Tigran Aivazian <tigran@sco.com> .\" Modified 2004-05-27, 2004-06-17, 2004-06-23 by Michael Kerrisk .\" -.TH ACCT 2 2004-06-23 "Linux" "Linux Programmer's Manual" +.TH ACCT 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME acct \- switch process accounting on or off .SH SYNOPSIS @@ -40,6 +40,14 @@ acct \- switch process accounting on or off .BI "int acct(const char *" filename ); .fi .ad b +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR acct (): +_BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500) .SH DESCRIPTION When called with the name of an existing file as argument, accounting is turned on, records for each terminating process are appended to diff --git a/man2/brk.2 b/man2/brk.2 index dc05564731..2efaabbdf7 100644 --- a/man2/brk.2 +++ b/man2/brk.2 @@ -27,7 +27,7 @@ .\" Modified Wed Jul 21 19:52:58 1993 by Rik Faith <faith@cs.unc.edu> .\" Modified Sun Aug 21 17:40:38 1994 by Rik Faith <faith@cs.unc.edu> .\" -.TH BRK 2 2003-11-01 "Linux" "Linux Programmer's Manual" +.TH BRK 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME brk, sbrk \- change data segment size .SH SYNOPSIS @@ -36,6 +36,17 @@ brk, sbrk \- change data segment size .BI "int brk(void *" end_data_segment ); .sp .BI "void *sbrk(intptr_t " increment ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.ad l +.BR brk (), +.BR sbrk (): +_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 +.ad b .SH DESCRIPTION .BR brk () sets the end of the data segment to the value specified by diff --git a/man2/chdir.2 b/man2/chdir.2 index 6026832105..7650160fc8 100644 --- a/man2/chdir.2 +++ b/man2/chdir.2 @@ -30,7 +30,7 @@ .\" Modified 1997-08-21 by Joseph S. Myers <jsm28@cam.ac.uk> .\" Modified 2004-06-23 by Michael Kerrisk <mtk-manpages@gmx.net> .\" -.TH CHDIR 2 2007-06-18 "Linux" "Linux Programmer's Manual" +.TH CHDIR 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME chdir, fchdir \- change working directory .SH SYNOPSIS @@ -39,6 +39,14 @@ chdir, fchdir \- change working directory .BI "int chdir(const char *" path ); .br .BI "int fchdir(int " fd ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR fchdir (): +_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 .SH DESCRIPTION .BR chdir () changes the current working directory pf the calling process to the diff --git a/man2/chmod.2 b/man2/chmod.2 index 6c046fd5a3..888e595943 100644 --- a/man2/chmod.2 +++ b/man2/chmod.2 @@ -28,19 +28,23 @@ .\" <michael@cantor.informatik.rwth-aachen.de>: NFS details .\" Modified 2004-06-23 by Michael Kerrisk <mtk-manpages@gmx.net> .\" -.TH CHMOD 2 2004-07-08 "Linux" "Linux Programmer's Manual" +.TH CHMOD 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME chmod, fchmod \- change permissions of a file .SH SYNOPSIS .B #include <sys/stat.h> .sp .BI "int chmod(const char *" path ", mode_t " mode ); -.sp -.BR "#define _XOPEN_SOURCE 500 " "/* or: " "#define _BSD_SOURCE " */ .br -.B #include <sys/stat.h> -.sp .BI "int fchmod(int " fildes ", mode_t " mode ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR fchmod (): +_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 .SH DESCRIPTION The mode of the file given by .I path diff --git a/man2/chown.2 b/man2/chown.2 index 38b0a1bc77..f95a858293 100644 --- a/man2/chown.2 +++ b/man2/chown.2 @@ -32,7 +32,7 @@ .\" Modified 2004-06-23 by Michael Kerrisk <mtk-manpages@gmx.net> .\" 2007-07-08, mtk, added an example program; updated SYNOPSIS .\" -.TH CHOWN 2 2007-07-08 "Linux" "Linux Programmer's Manual" +.TH CHOWN 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME chown, fchown, lchown \- change ownership of a file .SH SYNOPSIS @@ -40,14 +40,18 @@ chown, fchown, lchown \- change ownership of a file .sp .BI "int chown(const char *" path ", uid_t " owner ", gid_t " group ); .br -.sp -.BR "#define _XOPEN_SOURCE 500 " "/* or: " "#define _BSD_SOURCE " */ -.br -.B #include <unistd.h> -.sp .BI "int fchown(int " fd ", uid_t " owner ", gid_t " group ); .br .BI "int lchown(const char *" path ", uid_t " owner ", gid_t " group ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR fchown (), +.BR lchown (): +_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 .SH DESCRIPTION These system calls change the owner and group of the file specified by .I path diff --git a/man2/clone.2 b/man2/clone.2 index 7cc2337dfd..e5c2b7abe4 100644 --- a/man2/clone.2 +++ b/man2/clone.2 @@ -35,11 +35,14 @@ .\" FIXME Document CLONE_NEWIPC, which is new in 2.6.18 .\" FIXME Document CLONE_NEWUTS, which is new in 2.6.19 .\" -.TH CLONE 2 2007-06-01 "Linux" "Linux Programmer's Manual" +.TH CLONE 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME clone, __clone2 \- create a child process .SH SYNOPSIS .nf +.B #define _GNU_SOURCE +.\" Actually _BSD_SOURCE || _SVID_SOURCE +.\" See http://sources.redhat.com/bugzilla/show_bug.cgi?id=4749 .B #include <sched.h> .BI "int clone(int (*" "fn" ")(void *), void *" child_stack , diff --git a/man2/fdatasync.2 b/man2/fdatasync.2 index d6521a3bbd..043d8e2283 100644 --- a/man2/fdatasync.2 +++ b/man2/fdatasync.2 @@ -28,13 +28,21 @@ .\" 1996-04-12 Andries Brouwer <aeb@cwi.nl> .\" 1996-04-13 Markus Kuhn <mskuhn@cip.informatik.uni-erlangen.de> .\" -.TH FDATASYNC 2 1996-04-13 "Linux" "Linux Programmer's Manual" +.TH FDATASYNC 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME fdatasync \- synchronize a file's in-core data with that on disk .SH SYNOPSIS .B #include <unistd.h> .sp .BI "int fdatasync(int " fd ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR fdatasync (): +_POSIX_C_SOURCE\ >=\ 199309L || _XOPEN_SOURCE\ >=\ 500 .SH DESCRIPTION .BR fdatasync () flushes all data buffers of a file to disk (before the system diff --git a/man2/fsync.2 b/man2/fsync.2 index fed0f0624b..d56584345f 100644 --- a/man2/fsync.2 +++ b/man2/fsync.2 @@ -34,7 +34,7 @@ .\" Fix description to describe what it really does; add a few caveats. .\" 2006-04-28, mtk, substantial rewrite of various parts. .\" -.TH FSYNC 2 2006-04-28 "Linux" "Linux Programmer's Manual" +.TH FSYNC 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME fsync, fdatasync \- synchronize a file's in-core state with storage device .SH SYNOPSIS @@ -43,6 +43,17 @@ fsync, fdatasync \- synchronize a file's in-core state with storage device .BI "int fsync(int " fd ); .sp .BI "int fdatasync(int " fd ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR fsync (): +_BSD_SOURCE || _XOPEN_SOURCE +.br +.BR fdatasync (): +_POSIX_C_SOURCE\ >=\ 199309L || _XOPEN_SOURCE\ >=\ 500 .SH DESCRIPTION .BR fsync () transfers ("flushes") all modified in-core data of diff --git a/man2/getdomainname.2 b/man2/getdomainname.2 index 2c72fec5ca..7036f82701 100644 --- a/man2/getdomainname.2 +++ b/man2/getdomainname.2 @@ -25,7 +25,7 @@ .\" Modified 1997-08-25 by Nicol�s Lichtmaier <nick@debian.org> .\" Modified 2004-06-17 by Michael Kerrisk <mtk-manpages@gmx.net> .\" -.TH GETDOMAINNAME 2 2004-06-17 "Linux" "Linux Programmer's Manual" +.TH GETDOMAINNAME 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME getdomainname, setdomainname \- get/set domain name .SH SYNOPSIS @@ -34,6 +34,17 @@ getdomainname, setdomainname \- get/set domain name .BI "int getdomainname(char *" name ", size_t " len ); .br .BI "int setdomainname(const char *" name ", size_t " len ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.ad l +.BR getdomainame (), +.BR setdomainame (): +_BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500) +.ad b .SH DESCRIPTION These functions are used to access or to change the domain name of the current processor. diff --git a/man2/getdtablesize.2 b/man2/getdtablesize.2 index 07d7e5f182..2b45d86f7c 100644 --- a/man2/getdtablesize.2 +++ b/man2/getdtablesize.2 @@ -24,13 +24,21 @@ .\" .\" Modified 2002-04-15 by Roger Luethi <rl@hellgate.ch> and aeb .\" -.TH GETDTABLESIZE 2 2002-04-15 "Linux" "Linux Programmer's Manual" +.TH GETDTABLESIZE 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME getdtablesize \- get descriptor table size .SH SYNOPSIS .B #include <unistd.h> .sp .B int getdtablesize(void); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR getdtablesize (): +_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 .SH DESCRIPTION .BR getdtablesize () returns the maximum number of files a process can have open, diff --git a/man2/getgroups.2 b/man2/getgroups.2 index 6860b3600b..1dfc8f9cbc 100644 --- a/man2/getgroups.2 +++ b/man2/getgroups.2 @@ -26,7 +26,7 @@ .\" Modified, 27 May 2004, Michael Kerrisk <mtk-manpages@gmx.net> .\" Added notes on capability requirements .\" -.TH GETGROUPS 2 2004-05-27 "Linux" "Linux Programmer's Manual" +.TH GETGROUPS 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME getgroups, setgroups \- get/set list of supplementary group IDs .SH SYNOPSIS @@ -39,6 +39,14 @@ getgroups, setgroups \- get/set list of supplementary group IDs .B #include <grp.h> .sp .BI "int setgroups(size_t " size ", const gid_t *" list ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR setgroups (): +_BSD_SOURCE .SH DESCRIPTION .TP .BR getgroups () @@ -124,12 +132,6 @@ The maximum number of supplementary group IDs can be found using The maximal return value of .BR getgroups () cannot be larger than one more than the value obtained this way. -.LP -The prototype for -.BR setgroups () -is only available if -.B _BSD_SOURCE -is defined. .SH "SEE ALSO" .BR getgid (2), .BR setgid (2), diff --git a/man2/gethostid.2 b/man2/gethostid.2 index 0e06bf1f05..dea1b1be3a 100644 --- a/man2/gethostid.2 +++ b/man2/gethostid.2 @@ -26,7 +26,7 @@ .\" Portions Copyright 1993 Mitchum DSouza <m.dsouza@mrc-apu.cam.ac.uk> .\" .\" Modified Tue Oct 22 00:22:35 EDT 1996 by Eric S. Raymond <esr@thyrsus.com> -.TH GETHOSTID 2 2007-06-15 "Linux" "Linux Programmer's Manual" +.TH GETHOSTID 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME gethostid, sethostid \- get or set the unique identifier of the current host .SH SYNOPSIS @@ -35,6 +35,16 @@ gethostid, sethostid \- get or set the unique identifier of the current host .B long gethostid(void); .br .BI "int sethostid(long " hostid ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.ad l +.BR sethostid (): +_BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500) +.ad b .SH DESCRIPTION Get or set a unique 32-bit identifier for the current machine. The 32-bit identifier is intended to be unique among all UNIX systems in diff --git a/man2/gethostname.2 b/man2/gethostname.2 index 0a981182fd..76431e0706 100644 --- a/man2/gethostname.2 +++ b/man2/gethostname.2 @@ -28,7 +28,7 @@ .\" Modified 2000-06-04, 2001-12-15 by aeb .\" Modified 2004-06-17 by mtk .\" -.TH GETHOSTNAME 2 2004-06-17 "Linux" "Linux Programmer's Manual" +.TH GETHOSTNAME 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME gethostname, sethostname \- get/set host name .SH SYNOPSIS @@ -37,6 +37,19 @@ gethostname, sethostname \- get/set host name .BI "int gethostname(char *" name ", size_t " len ); .br .BI "int sethostname(const char *" name ", size_t " len ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.ad l +.BR gethostname (): +_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 +.br +.BR sethostname (): +_BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500) +.ad b .SH DESCRIPTION These system calls are used to access or to change the host name of the current processor. diff --git a/man2/getpagesize.2 b/man2/getpagesize.2 index 1874b461a1..6fa8414894 100644 --- a/man2/getpagesize.2 +++ b/man2/getpagesize.2 @@ -20,13 +20,21 @@ .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" -.TH GETPAGESIZE 2 2001-12-21 "Linux" "Linux Programmer's Manual" +.TH GETPAGESIZE 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME getpagesize \- get memory page size .SH SYNOPSIS .B #include <unistd.h> .sp .B int getpagesize(void); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR getpagesize (): +_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 .SH DESCRIPTION The function .BR getpagesize () diff --git a/man2/getsid.2 b/man2/getsid.2 index 515ddfb898..1d00fe24bb 100644 --- a/man2/getsid.2 +++ b/man2/getsid.2 @@ -22,13 +22,21 @@ .\" .\" Modified Thu Oct 31 14:18:40 1996 by Eric S. Raymond <esr@y\thyrsus.com> .\" Modified 2001-12-17, aeb -.TH GETSID 2 2001-12-17 "Linux" "Linux Programmer's Manual" +.TH GETSID 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME getsid \- get session ID .SH SYNOPSIS .B #include <unistd.h> .sp .BI "pid_t getsid(pid_t" " pid" ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR getsid (): +_XOPEN_SOURCE\ >=\ 500 .SH DESCRIPTION .I getsid(0) returns the session ID of the calling process. @@ -39,7 +47,7 @@ returns the session ID of the process with process ID session leader.) .SH RETURN VALUE On success, a session ID is returned. -On error, (pid_t) \-1 will be returned, and +On error, \fI(pid_t) \-1\fP will be returned, and .I errno is set appropriately. .SH ERRORS @@ -62,15 +70,7 @@ Linux does not return .LP Linux has this system call since Linux 1.3.44. There is libc support since libc 5.2.19. -.LP -To get the prototype under glibc, define both -.BR _XOPEN_SOURCE -and -.BR _XOPEN_SOURCE_EXTENDED , -or use "#define _XOPEN_SOURCE \fIn\fP" -for some integer \fIn\fP larger than or equal to 500. .SH "SEE ALSO" .BR getpgid (2), .BR setsid (2), -.BR credentials (7), -.BR feature_test_macros (7) +.BR credentials (7) diff --git a/man2/gettimeofday.2 b/man2/gettimeofday.2 index 8321db1645..6ae7fadcac 100644 --- a/man2/gettimeofday.2 +++ b/man2/gettimeofday.2 @@ -37,7 +37,7 @@ .\" Modified, 2004-05-27 by Michael Kerrisk <mtk-manpages@gmx.net> .\" Added notes on capability requirement. .\" -.TH GETTIMEOFDAY 2 2004-05-27 "Linux" "Linux Programmer's Manual" +.TH GETTIMEOFDAY 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME gettimeofday, settimeofday \- get / set time .SH SYNOPSIS @@ -47,6 +47,14 @@ gettimeofday, settimeofday \- get / set time .br .BI "int settimeofday(const struct timeval *" tv .BI ", const struct timezone *" tz ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR settimeofday (): +_BSD_SOURCE .SH DESCRIPTION The functions .BR gettimeofday () diff --git a/man2/kill.2 b/man2/kill.2 index 2a313c3894..cd669d7e26 100644 --- a/man2/kill.2 +++ b/man2/kill.2 @@ -41,7 +41,7 @@ .\" Modified 2004-06-24 by aeb .\" Modified, 2004-11-30, after idea from emmanuel.colbus@ensimag.imag.fr .\" -.TH KILL 2 2004-06-24 "Linux" "Linux Programmer's Manual" +.TH KILL 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME kill \- send signal to a process .SH SYNOPSIS @@ -52,6 +52,14 @@ kill \- send signal to a process .sp .BI "int kill(pid_t " pid ", int " sig ); .fi +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR kill (): +_POSIX_C_SOURCE || _XOPEN_SOURCE .SH DESCRIPTION The .BR kill () diff --git a/man2/killpg.2 b/man2/killpg.2 index 6b53ca168e..0fbe2f6855 100644 --- a/man2/killpg.2 +++ b/man2/killpg.2 @@ -37,13 +37,21 @@ .\" Added notes on CAP_KILL .\" Modified 2004-06-21 by aeb .\" -.TH KILLPG 2 2007-06-18 "Linux" "Linux Programmer's Manual" +.TH KILLPG 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME killpg \- send signal to a process group .SH SYNOPSIS .B #include <signal.h> .sp .BI "int killpg(int " pgrp ", int " sig ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR killpg (): +_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 .SH DESCRIPTION .BR killpg () sends the signal diff --git a/man2/madvise.2 b/man2/madvise.2 index 460369d5c1..22b546b24f 100644 --- a/man2/madvise.2 +++ b/man2/madvise.2 @@ -26,7 +26,7 @@ .\" Modified, 25 Feb 2002, Michael Kerrisk, <mtk-manpages@gmx.net> .\" Added notes on MADV_DONTNEED .\" -.TH MADVISE 2 2001-06-10 "Linux" "Linux Programmer's Manual" +.TH MADVISE 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME madvise \- give advice about use of memory .SH SYNOPSIS @@ -34,6 +34,14 @@ madvise \- give advice about use of memory .B #include <sys/mman.h> .sp .BI "int madvise(void *" start ", size_t " length ", int " advice ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR madvise (): +_BSD_SOURCE .SH DESCRIPTION The .BR madvise () diff --git a/man2/mincore.2 b/man2/mincore.2 index 71a98f2877..0710b23fdf 100644 --- a/man2/mincore.2 +++ b/man2/mincore.2 @@ -31,7 +31,7 @@ .\" after message from <gordon.jin@intel.com> .\" 2007-01-08 mtk, rewrote various parts .\" -.TH MINCORE 2 2007-01-08 "Linux" "Linux Programmer's Manual" +.TH MINCORE 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME mincore \- determine whether pages are resident in memory .SH SYNOPSIS @@ -40,6 +40,14 @@ mincore \- determine whether pages are resident in memory .B #include <sys/mman.h> .sp .BI "int mincore(void *" start ", size_t " length ", unsigned char *" vec ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR mincore (): +_BSD_SOURCE || _SVID_SOURCE .SH DESCRIPTION .BR mincore () returns a vector that indicates whether pages diff --git a/man2/mknod.2 b/man2/mknod.2 index 8bd8da7765..723e3af9c9 100644 --- a/man2/mknod.2 +++ b/man2/mknod.2 @@ -10,7 +10,7 @@ .\" Modified 2003-04-23 by Michael Kerrisk .\" Modified 2004-06-23 by Michael Kerrisk <mtk-manpages@gmx.net> .\" -.TH MKNOD 2 2004-06-23 "Linux" "Linux Programmer's Manual" +.TH MKNOD 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME mknod \- create a special or ordinary file .SH SYNOPSIS @@ -22,6 +22,14 @@ mknod \- create a special or ordinary file .sp .BI "int mknod(const char *" pathname ", mode_t " mode ", dev_t " dev ); .fi +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR mknod (): +_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 .SH DESCRIPTION The system call .BR mknod () diff --git a/man2/nanosleep.2 b/man2/nanosleep.2 index b9ed23b543..acb24acf32 100644 --- a/man2/nanosleep.2 +++ b/man2/nanosleep.2 @@ -25,14 +25,21 @@ .\" 1996-04-10 Markus Kuhn <mskuhn@cip.informatik.uni-erlangen.de> .\" First version written .\" Modified, 2004-10-24, aeb -.TH NANOSLEEP 2 2004-10-24 "Linux" "Linux Programmer's Manual" +.TH NANOSLEEP 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME nanosleep \- pause execution for a specified time .SH SYNOPSIS -.B #define _POSIX_C_SOURCE 199309 .B #include <time.h> .sp -\fBint nanosleep(const struct timespec *\fIreq\fB, struct timespec *\fIrem\fB); +.BI "int nanosleep(const struct timespec *" req ", struct timespec *" rem ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR nanosleep (): +_POSIX_C_SOURCE\ >=\ 199309L .SH DESCRIPTION .BR nanosleep () delays the execution of the program for at least the time specified in @@ -154,5 +161,4 @@ then the time that the process spent in the stopped state is .BR sleep (3), .BR timer_create (3), .BR usleep (3), -.BR feature_test_macros (7), .BR time (7) diff --git a/man2/nice.2 b/man2/nice.2 index 41b6736c86..7c8ec86f04 100644 --- a/man2/nice.2 +++ b/man2/nice.2 @@ -28,13 +28,21 @@ .\" Modified 2001-06-04 by aeb .\" Modified 2004-05-27 by Michael Kerrisk <mtk-manpages@gmx.net> .\" -.TH NICE 2 2005-09-20 "Linux" "Linux Programmer's Manual" +.TH NICE 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME nice \- change process priority .SH SYNOPSIS .B #include <unistd.h> .sp .BI "int nice(int " inc ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR getcwd (): +_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE .SH DESCRIPTION .BR nice () adds diff --git a/man2/readahead.2 b/man2/readahead.2 index d501cef6c7..aa391ba316 100644 --- a/man2/readahead.2 +++ b/man2/readahead.2 @@ -22,11 +22,12 @@ .\" 2004-05-40 Created by Michael Kerrisk <mtk-manpages@gmx.net> .\" 2004-10-05 aeb, minor correction .\" -.TH READAHEAD 2 2004-10-05 "Linux" "Linux Programmer's Manual" +.TH READAHEAD 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME readahead \- perform file readahead into page cache .SH SYNOPSIS .nf +.B #define _GNU_SOURCE .B #include <fcntl.h> .sp .BI "ssize_t readahead(int " fd ", off64_t *" offset ", size_t " count ); diff --git a/man2/readlink.2 b/man2/readlink.2 index 4ba9490a6e..6c622789fb 100644 --- a/man2/readlink.2 +++ b/man2/readlink.2 @@ -35,13 +35,23 @@ .\" Modified Tue Jul 9 23:55:17 1996 by aeb .\" Modified Fri Jan 24 00:26:00 1997 by aeb .\" -.TH READLINK 2 1997-08-21 "Linux" "Linux Programmer's Manual" +.TH READLINK 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME readlink \- read value of a symbolic link .SH SYNOPSIS .B #include <unistd.h> .sp .BI "ssize_t readlink(const char *" path ", char *" buf ", size_t " bufsiz ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.ad l +.BR readlink (): +_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _POSIX_C_SOURCE\ >=\ 200112L +.ad b .SH DESCRIPTION .BR readlink () places the contents of the symbolic link diff --git a/man2/select.2 b/man2/select.2 index d6e4db322f..d60a332ac4 100644 --- a/man2/select.2 +++ b/man2/select.2 @@ -35,7 +35,7 @@ .\" 2005-03-11, mtk, modified pselect() text (it is now a system .\" call in 2.6.16. .\" -.TH SELECT 2 2006-03-11 "Linux" "Linux Programmer's Manual" +.TH SELECT 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO \- synchronous I/O multiplexing @@ -53,8 +53,8 @@ synchronous I/O multiplexing .br .B #include <unistd.h> .sp -\fBint select(int \fInfds\fB, fd_set *\fIreadfds\fB, fd_set *\fIwritefds\fB, - fd_set *\fIexceptfds\fB, struct timeval *\fItimeout\fB); +.BI "int select(int " nfds ", fd_set *" readfds ", fd_set *" writefds , +.BI " fd_set *" exceptfds ", struct timeval *" timeout ); .sp .BI "void FD_CLR(int " fd ", fd_set *" set ); .br @@ -64,13 +64,20 @@ synchronous I/O multiplexing .br .BI "void FD_ZERO(fd_set *" set ); .sp -.B #define _XOPEN_SOURCE 600 .B #include <sys/select.h> .sp -\fBint pselect(int \fInfds\fB, fd_set *\fIreadfds\fB, fd_set *\fIwritefds\fB, - fd_set *\fIexceptfds\fB, const struct timespec *\fItimeout\fB, - const sigset_t *\fIsigmask\fB); +.BI "int pselect(int " nfds ", fd_set *" readfds ", fd_set *" writefds , +.BI " fd_set *" exceptfds ", const struct timespec *" timeout , +.BI " const sigset_t *" sigmask ); .fi +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR pselect (): +_POSIX_C_SOURCE\ >=\ 200112L || _XOPEN_SOURCE\ >=\ 600 .SH DESCRIPTION .BR select () and @@ -515,5 +522,4 @@ For vaguely related stuff, see .BR send (2), .BR sigprocmask (2), .BR write (2), -.BR epoll (7), -.BR feature_test_macros (7) +.BR epoll (7) diff --git a/man2/semop.2 b/man2/semop.2 index 557256f009..4970791fd2 100644 --- a/man2/semop.2 +++ b/man2/semop.2 @@ -30,7 +30,7 @@ .\" 2005-04-08, mtk, Noted kernel version numbers for semtimedop() .\" 2007-07-09, mtk, Added an EXAMPLE code segment. .\" -.TH SEMOP 2 2007-07-09 "Linux" "Linux Programmer's Manual" +.TH SEMOP 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME semop, semtimedop \- semaphore operations .SH SYNOPSIS @@ -47,6 +47,14 @@ semop, semtimedop \- semaphore operations .BI "int semtimedop(int " semid ", struct sembuf *" sops ", unsigned " nsops , .BI " struct timespec *" timeout ); .fi +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR semtimedop (): +_GNU_SOURCE .SH DESCRIPTION Each semaphore in a semaphore set has the following associated values: .sp diff --git a/man2/seteuid.2 b/man2/seteuid.2 index 3f8761eb24..7bd8d28eab 100644 --- a/man2/seteuid.2 +++ b/man2/seteuid.2 @@ -24,7 +24,7 @@ .\" Modified, 27 May 2004, Michael Kerrisk <mtk-manpages@gmx.net> .\" Added notes on capability requirements .\" -.TH SETEGID 2 2004-05-27 "Linux" "Linux Programmer's Manual" +.TH SETEGID 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME seteuid, setegid \- set effective user or group ID .SH SYNOPSIS @@ -35,6 +35,17 @@ seteuid, setegid \- set effective user or group ID .BI "int seteuid(uid_t " euid ); .br .BI "int setegid(gid_t " egid ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.ad l +.BR seteuid (), +.BR setegid (): +_BSD_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L || _XOPEN_SOURCE\ >=\ 600 +.ad b .SH DESCRIPTION .BR seteuid () sets the effective user ID of the current process. diff --git a/man2/setpgid.2 b/man2/setpgid.2 index 502c55d50d..32885f3d55 100644 --- a/man2/setpgid.2 +++ b/man2/setpgid.2 @@ -42,7 +42,7 @@ .\" 2007-07-25, mtk, fairly substantial rewrites and rearrangements .\" of text. .\" -.TH SETPGID 2 2007-07-25 "Linux" "Linux Programmer's Manual" +.TH SETPGID 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME setpgid, getpgid, setpgrp, getpgrp \- set/get process group .SH SYNOPSIS @@ -67,16 +67,18 @@ Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .in .sp +.ad l .BR getpgid (): -_XOPEN_SOURCE >= 500 +_XOPEN_SOURCE\ >=\ 500 .br .BR setpgrp () (POSIX.1): _SVID_SOURCE || _XOPEN_SOURCE >= 500 .sp .BR setpgrp "()\ (BSD)," .BR getpgrp "()\ (BSD):" -_BSD_SOURCE && ! (_POSIX_SOURCE || _POSIX_C_SOURCE || +_BSD_SOURCE && !\ (_POSIX_SOURCE || _POSIX_C_SOURCE || _XOPEN_SOURCE || _XOPEN_SOURCE_EXTENDED || _GNU_SOURCE || _SVID_SOURCE) +.ad b .SH DESCRIPTION All of these interfaces are available on Linux, and are used for getting and setting the diff --git a/man2/setresuid.2 b/man2/setresuid.2 index 537dec5f98..7f8267208e 100644 --- a/man2/setresuid.2 +++ b/man2/setresuid.2 @@ -23,7 +23,7 @@ .\" the source, must acknowledge the copyright and authors of this work. .\" .\" Modified, 2003-05-26, Michael Kerrisk, <mtk-manpages@gmx.net> -.TH SETRESUID 2 2003-05-26 "Linux" "Linux Programmer's Manual" +.TH SETRESUID 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME setresuid, setresgid \- set real, effective and saved user or group ID .SH SYNOPSIS @@ -86,10 +86,7 @@ they also appear on HP-UX and some of the BSDs. .SH NOTES Under HP-UX and FreeBSD the prototype is found in .IR <unistd.h> . -Under Linux the prototype is given by glibc since version 2.3.2 -provided -.B _GNU_SOURCE -is defined. +Under Linux the prototype is provided by glibc since version 2.3.2. .SH "SEE ALSO" .BR getresuid (2), .BR getuid (2), diff --git a/man2/setreuid.2 b/man2/setreuid.2 index 7b326feeb2..44efabd90a 100644 --- a/man2/setreuid.2 +++ b/man2/setreuid.2 @@ -40,7 +40,7 @@ .\" 2004-07-04 by aeb .\" 2004-05-27 by Michael Kerrisk .\" -.TH SETREUID 2 2004-07-04 "Linux" "Linux Programmer's Manual" +.TH SETREUID 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME setreuid, setregid \- set real and/or effective user or group ID .SH SYNOPSIS @@ -51,6 +51,15 @@ setreuid, setregid \- set real and/or effective user or group ID .BI "int setreuid(uid_t " ruid ", uid_t " euid ); .br .BI "int setregid(gid_t " rgid ", gid_t " egid ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR setreuid (), +.BR setregid (): +_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 .SH DESCRIPTION .BR setreuid () sets real and effective user IDs of the current process. diff --git a/man2/sigaltstack.2 b/man2/sigaltstack.2 index 6df5bbd87d..d6e9c988e4 100644 --- a/man2/sigaltstack.2 +++ b/man2/sigaltstack.2 @@ -19,13 +19,24 @@ .\" the source, must acknowledge the copyright and authors of this work. .\" .\" aeb, various minor fixes -.TH SIGALTSTACK 2 2001-09-27 "Linux" "Linux Programmer's Manual" +.TH SIGALTSTACK 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME sigaltstack \- set and/or get signal stack context .SH SYNOPSIS .B #include <signal.h> .sp .BI "int sigaltstack(const stack_t *" ss ", stack_t *" oss ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR sigaltstack (): +_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 +.\" .br +.\" .BR sigstack (): +.\" _BSD_SOURCE || _XOPEN_SOURCE >= 500 .SH DESCRIPTION .BR sigaltstack () allows a process to define a new alternate diff --git a/man2/sigqueue.2 b/man2/sigqueue.2 index e3b11668f2..67ccf3cbe4 100644 --- a/man2/sigqueue.2 +++ b/man2/sigqueue.2 @@ -20,13 +20,21 @@ .\" added note on self-signaling, aeb, 2002-06-07 .\" added note on CAP_KILL, mtk, 2004-06-16 .\" -.TH SIGQUEUE 2 2004-06-16 "Linux" "Linux Programmer's Manual" +.TH SIGQUEUE 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME sigqueue, rt_sigqueueinfo \- queue a signal and data to a process .SH SYNOPSIS .B #include <signal.h> .sp .BI "int sigqueue(pid_t " pid ", int " sig ", const union sigval " value ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR sigqueue (): +_POSIX_C_SOURCE\ >=\ 199309L .SH DESCRIPTION .BR sigqueue () sends the signal specified in diff --git a/man2/sigwaitinfo.2 b/man2/sigwaitinfo.2 index 9c8aa7bf34..e33178a9d6 100644 --- a/man2/sigwaitinfo.2 +++ b/man2/sigwaitinfo.2 @@ -17,7 +17,7 @@ .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" -.TH SIGWAITINFO 2 2002-06-07 "Linux" "Linux Programmer's Manual" +.TH SIGWAITINFO 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME sigwaitinfo, sigtimedwait \- synchronously wait for queued signals .SH SYNOPSIS @@ -29,6 +29,15 @@ sigwaitinfo, sigtimedwait \- synchronously wait for queued signals .BI "int sigtimedwait(const sigset_t *" set ", siginfo_t *" info ", " .BI " const struct timespec *" timeout ");" .fi +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR sigwaitinfo (), +.BR sigtimedwait (): +_POSIX_C_SOURCE\ >=\ 199309L .SH DESCRIPTION .BR sigwaitinfo () suspends execution of the calling process until one of the signals in diff --git a/man2/stat.2 b/man2/stat.2 index b339c06107..6d6d6388b9 100644 --- a/man2/stat.2 +++ b/man2/stat.2 @@ -37,7 +37,7 @@ .\" 2007-06-08 mtk: Added example program .\" 2007-07-05 mtk: Added details on underlying system call interfaces .\" -.TH STAT 2 2007-07-05 "Linux" "Linux Programmer's Manual" +.TH STAT 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME stat, fstat, lstat \- get file status .SH SYNOPSIS @@ -59,7 +59,7 @@ Feature Test Macro Requirements for glibc (see .in .sp .BR lstat (): -_BSD_SOURCE || _XOPEN_SOURCE >= 500 +_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 .SH DESCRIPTION .PP These functions return information about a file. diff --git a/man2/stime.2 b/man2/stime.2 index 8ab3856d16..d72b1e1a31 100644 --- a/man2/stime.2 +++ b/man2/stime.2 @@ -27,15 +27,21 @@ .\" Modified 2001-03-16 by Andries Brouwer <aeb@cwi.nl> .\" Modified 2004-05-27 by Michael Kerrisk <mtk-manpages@gmx.net> .\" -.TH STIME 2 2004-05-27 "Linux" "Linux Programmer's Manual" +.TH STIME 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME stime \- set time .SH SYNOPSIS -.BR "#define _SVID_SOURCE" " /* glibc2 needs this */" -.br .B #include <time.h> .sp .BI "int stime(time_t *" t ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR stime (): +_SVID_SOURCE .SH DESCRIPTION .BR stime () sets the system's idea of the time and date. @@ -60,14 +66,7 @@ Under Linux the privilege is required. .SH "CONFORMING TO" SVr4. -.SH NOTES -Under glibc2, -.I <time.h> -only provides a prototype when -.B _SVID_SOURCE -is defined. .SH "SEE ALSO" .BR date (1), .BR settimeofday (2), -.BR capabilities (7), -.BR feature_test_macros (7) +.BR capabilities (7) diff --git a/man2/symlink.2 b/man2/symlink.2 index 85d4787c2a..a65ca75ad2 100644 --- a/man2/symlink.2 +++ b/man2/symlink.2 @@ -29,13 +29,23 @@ .\" Modified 1997-01-31 by Eric S. Raymond <esr@thyrsus.com> .\" Modified 2004-06-23 by Michael Kerrisk <mtk-manpages@gmx.net> .\" -.TH SYMLINK 2 2004-06-23 "Linux" "Linux Programmer's Manual" +.TH SYMLINK 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME symlink \- make a new name for a file .SH SYNOPSIS .B #include <unistd.h> .sp .BI "int symlink(const char *" oldpath ", const char *" newpath ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.ad l +.BR symlink (): +_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _POSIX_C_SOURCE\ >=\ 200112L +.ad b .SH DESCRIPTION .BR symlink () creates a symbolic link named diff --git a/man2/sync.2 b/man2/sync.2 index 1e366a4f4d..2835149aef 100644 --- a/man2/sync.2 +++ b/man2/sync.2 @@ -31,13 +31,21 @@ .\" Modified Tue Oct 22 22:27:07 1996 by Eric S. Raymond <esr@thyrsus.com> .\" Modified 2001-10-10 by aeb, following Michael Kerrisk. .\" -.TH SYNC 2 2001-10-10 "Linux" "Linux Programmer's Manual" +.TH SYNC 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME sync \- commit buffer cache to disk .SH SYNOPSIS .B #include <unistd.h> .sp .B void sync(void); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR sync (): +_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 .SH DESCRIPTION .BR sync () first commits inodes to buffers, and then buffers to disk. diff --git a/man2/syscall.2 b/man2/syscall.2 index 05312b2b6e..888c06979e 100644 --- a/man2/syscall.2 +++ b/man2/syscall.2 @@ -35,14 +35,14 @@ .\" 2002-03-20 Christoph Hellwig <hch@infradead.org> .\" - adopted for Linux .\" -.TH SYSCALL 2 2007-06-01 "Linux" "Linux Programmer's Manual" +.TH SYSCALL 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME syscall \- indirect system call .SH SYNOPSIS .nf -.B "#define _BSD_SOURCE /* or _GNU_SOURCE or _SVID_SOURCE */" +.BR "#define _GNU_SOURCE " " /* or _BSD_SOURCE or _SVID_SOURCE */" .B #include <unistd.h> -.B "#include <sys/syscall.h> /* For SYS_xxx definitions */" +.BR "#include <sys/syscall.h> " "/* For SYS_xxx definitions */" .BI "int syscall(int " number ", ...);" .fi @@ -65,7 +65,6 @@ and an error code is stored in first appeared in 4BSD. .SH EXAMPLE - .nf #define _GNU_SOURCE #include <unistd.h> @@ -80,4 +79,4 @@ main(int argc, char *argv[]) } .fi .SH SEE ALSO -.BT syscalls (2) +.BR syscalls (2) diff --git a/man2/truncate.2 b/man2/truncate.2 index 873efa4295..db08be29ae 100644 --- a/man2/truncate.2 +++ b/man2/truncate.2 @@ -38,7 +38,7 @@ .\" Modified 2002-04-06 by Andries Brouwer <aeb@cwi.nl> .\" Modified 2004-06-23 by Michael Kerrisk <mtk-manpages@gmx.net> .\" -.TH TRUNCATE 2 2004-06-23 "Linux" "Linux Programmer's Manual" +.TH TRUNCATE 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME truncate, ftruncate \- truncate a file to a specified length .SH SYNOPSIS @@ -49,6 +49,16 @@ truncate, ftruncate \- truncate a file to a specified length .BI "int truncate(const char *" path ", off_t " length ); .br .BI "int ftruncate(int " fd ", off_t " length ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.ad l +.sp +.BR getdtablesize (): +_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _POSIX_C_SOURCE\ >=\ 200112L +.ad b .SH DESCRIPTION The .BR truncate () diff --git a/man2/unshare.2 b/man2/unshare.2 index fc10e5065b..bc7ec24183 100644 --- a/man2/unshare.2 +++ b/man2/unshare.2 @@ -17,11 +17,14 @@ .\" FIXME Document CLONE_NEWIPC, which is new in 2.6.18 .\" FIXME Document CLONE_NEWUTS, which is new in 2.6.19 .\" -.TH UNSHARE 2 2005-03-10 "Linux" "Linux Programmer's Manual" +.TH UNSHARE 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME unshare \- disassociate parts of the process execution context .SH SYNOPSIS .nf +.B #define _GNU_SOURCE +.\" Actually _BSD_SOURCE || _SVID_SOURCE +.\" See http://sources.redhat.com/bugzilla/show_bug.cgi?id=4749 .B #include <sched.h> .sp .BI "int unshare(int " flags ); diff --git a/man2/vfork.2 b/man2/vfork.2 index dd65131381..73d0c67fa3 100644 --- a/man2/vfork.2 +++ b/man2/vfork.2 @@ -23,7 +23,7 @@ .\" 1999-11-10: Merged text taken from the page contributed by .\" Reed H. Petty (rhp@draper.net) .\" -.TH VFORK 2 1999-11-01 "Linux" "Linux Programmer's Manual" +.TH VFORK 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME vfork \- create a child process and block parent .SH SYNOPSIS @@ -32,6 +32,14 @@ vfork \- create a child process and block parent .B #include <unistd.h> .sp .B pid_t vfork(void); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR vfork (): +_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 .SH DESCRIPTION .SS "Standard Description" (From SUSv2 / POSIX draft.) diff --git a/man2/vhangup.2 b/man2/vhangup.2 index 3d93781017..bdafa19044 100644 --- a/man2/vhangup.2 +++ b/man2/vhangup.2 @@ -24,13 +24,23 @@ .\" Modified, 27 May 2004, Michael Kerrisk <mtk-manpages@gmx.net> .\" Added notes on capability requirements .\" -.TH VHANGUP 2 2004-05-27 "Linux" "Linux Programmer's Manual" +.TH VHANGUP 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME vhangup \- virtually hangup the current tty .SH SYNOPSIS .B #include <unistd.h> .sp .B int vhangup(void); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.ad l +.BR vhangup (): +_BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500) +.ad b .SH DESCRIPTION .BR vhangup () simulates a hangup on the current terminal. diff --git a/man2/wait.2 b/man2/wait.2 index e2ab3192e8..67db0df9d8 100644 --- a/man2/wait.2 +++ b/man2/wait.2 @@ -46,7 +46,7 @@ .\" Much other text rewritten .\" 2005-05-10, mtk, __W* flags can't be used with waitid() .\" -.TH WAIT 2 2004-11-11 "Linux" "Linux Programmer's Manual" +.TH WAIT 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME wait, waitpid, waitid \- wait for process to change state .SH SYNOPSIS @@ -60,6 +60,14 @@ wait, waitpid, waitid \- wait for process to change state .br .BI "int waitid(idtype_t " idtype ", id_t " id \ ", siginfo_t *" infop ", int " options ); +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR waitid (): +_SVID_SOURCE || _XOPEN_SOURCE .SH DESCRIPTION All of these system calls are used to wait for state changes in a child of the calling process, and obtain information diff --git a/man2/wait4.2 b/man2/wait4.2 index 2fcffece08..c8074cac09 100644 --- a/man2/wait4.2 +++ b/man2/wait4.2 @@ -31,13 +31,11 @@ .\" Rewrote much of this page, and removed much duplicated text, .\" replacing with pointers to wait.2 .\" -.TH WAIT4 2 2004-11-11 "Linux" "Linux Programmer's Manual" +.TH WAIT4 2 2007-07-26 "Linux" "Linux Programmer's Manual" .SH NAME wait3, wait4 \- wait for process to change state, BSD style .SH SYNOPSIS .nf -.B #define _BSD_SOURCE - /* Or #define _XOPEN_SOURCE 500 for wait3() */ .B #include <sys/types.h> .B #include <sys/time.h> .B #include <sys/resource.h> @@ -49,6 +47,17 @@ wait3, wait4 \- wait for process to change state, BSD style .BI "pid_t wait4(pid_t " pid ", int *" status ", int " options , .BI " struct rusage *" rusage ); .fi +.sp +.in -4n +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.in +.sp +.BR wait3 (): +_BSD_SOURCE +.br +.BR wait4 (): +_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 .SH DESCRIPTION The .BR wait3 () @@ -134,5 +143,4 @@ defined in .BR sigaction (2), .BR signal (2), .BR wait (2), -.BR feature_test_macros (7), .BR signal (7) |
