Add/fix feature test macro requirements.

This commit is contained in:
Michael Kerrisk 2008-08-29 15:50:13 +00:00
parent 01be45128f
commit 0f200f076c
26 changed files with 218 additions and 48 deletions

View File

@ -41,7 +41,7 @@
.\" Modified 2004-06-24 by aeb .\" Modified 2004-06-24 by aeb
.\" Modified, 2004-11-30, after idea from emmanuel.colbus@ensimag.imag.fr .\" Modified, 2004-11-30, after idea from emmanuel.colbus@ensimag.imag.fr
.\" .\"
.TH KILL 2 2008-04-18 "Linux" "Linux Programmer's Manual" .TH KILL 2 2008-08-29 "Linux" "Linux Programmer's Manual"
.SH NAME .SH NAME
kill \- send signal to a process kill \- send signal to a process
.SH SYNOPSIS .SH SYNOPSIS
@ -58,8 +58,10 @@ Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)): .BR feature_test_macros (7)):
.in .in
.sp .sp
.ad l
.BR kill (): .BR kill ():
_POSIX_C_SOURCE || _XOPEN_SOURCE _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.ad b
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR kill () .BR kill ()

View File

@ -40,7 +40,7 @@
.\" 2005-09-15, mtk, split sigpending(), sigprocmask(), sigsuspend() .\" 2005-09-15, mtk, split sigpending(), sigprocmask(), sigsuspend()
.\" out of this page into separate pages. .\" out of this page into separate pages.
.\" .\"
.TH SIGACTION 2 2008-07-08 "Linux" "Linux Programmer's Manual" .TH SIGACTION 2 2008-08-29 "Linux" "Linux Programmer's Manual"
.SH NAME .SH NAME
sigaction \- examine and change a signal action sigaction \- examine and change a signal action
.SH SYNOPSIS .SH SYNOPSIS
@ -50,6 +50,16 @@ sigaction \- examine and change a signal action
.BI "int sigaction(int " signum ", const struct sigaction *" act , .BI "int sigaction(int " signum ", const struct sigaction *" act ,
.BI " struct sigaction *" oldact ); .BI " struct sigaction *" oldact );
.fi .fi
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
.sp
.ad l
.BR sigaction ():
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.ad b
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR sigaction () .BR sigaction ()

View File

@ -24,13 +24,23 @@
.\" .\"
.\" 2005-09-15, mtk, Created new page by splitting off from sigaction.2 .\" 2005-09-15, mtk, Created new page by splitting off from sigaction.2
.\" .\"
.TH SIGPENDING 2 2005-09-15 "Linux" "Linux Programmer's Manual" .TH SIGPENDING 2 2008-08-29 "Linux" "Linux Programmer's Manual"
.SH NAME .SH NAME
sigpending \- examine pending signals sigpending \- examine pending signals
.SH SYNOPSIS .SH SYNOPSIS
.B #include <signal.h> .B #include <signal.h>
.sp .sp
.BI "int sigpending(sigset_t *" set ); .BI "int sigpending(sigset_t *" set );
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
.sp
.ad l
.BR sigpending ():
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.ad b
.SH DESCRIPTION .SH DESCRIPTION
.PP .PP
.BR sigpending () .BR sigpending ()

View File

@ -24,7 +24,7 @@
.\" .\"
.\" 2005-09-15, mtk, Created new page by splitting off from sigaction.2 .\" 2005-09-15, mtk, Created new page by splitting off from sigaction.2
.\" .\"
.TH SIGPROCMASK 2 2005-09-15 "Linux" "Linux Programmer's Manual" .TH SIGPROCMASK 2 2008-08-29 "Linux" "Linux Programmer's Manual"
.SH NAME .SH NAME
sigprocmask \- examine and change blocked signals sigprocmask \- examine and change blocked signals
.SH SYNOPSIS .SH SYNOPSIS
@ -32,6 +32,16 @@ sigprocmask \- examine and change blocked signals
.sp .sp
.BI "int sigprocmask(int " how ", const sigset_t *" set , .BI "int sigprocmask(int " how ", const sigset_t *" set ,
.BI "sigset_t *" oldset ); .BI "sigset_t *" oldset );
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
.sp
.ad l
.BR sigprocmask ():
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.ad b
.SH DESCRIPTION .SH DESCRIPTION
.BR sigprocmask () .BR sigprocmask ()
is used to change the signal mask, the set of currently blocked signals. is used to change the signal mask, the set of currently blocked signals.

View File

@ -24,13 +24,23 @@
.\" .\"
.\" 2005-09-15, mtk, Created new page by splitting off from sigaction.2 .\" 2005-09-15, mtk, Created new page by splitting off from sigaction.2
.\" .\"
.TH SIGSUSPEND 2 2005-09-15 "Linux" "Linux Programmer's Manual" .TH SIGSUSPEND 2 2008-08-29 "Linux" "Linux Programmer's Manual"
.SH NAME .SH NAME
sigsuspend \- wait for a signal sigsuspend \- wait for a signal
.SH SYNOPSIS .SH SYNOPSIS
.B #include <signal.h> .B #include <signal.h>
.sp .sp
.BI "int sigsuspend(const sigset_t *" mask ); .BI "int sigsuspend(const sigset_t *" mask );
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
.sp
.ad l
.BR sigsuspend ():
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.ad b
.SH DESCRIPTION .SH DESCRIPTION
.BR sigsuspend () .BR sigsuspend ()
temporarily replaces the signal mask of the calling process with the temporarily replaces the signal mask of the calling process with the

View File

@ -26,7 +26,7 @@
.\" See <bits/confname.h> for the rest. .\" See <bits/confname.h> for the rest.
.\" These should all be added to this page. .\" These should all be added to this page.
.\" See also the POSIX.1-2001 specification of confstr() .\" See also the POSIX.1-2001 specification of confstr()
.TH CONFSTR 3 2007-07-26 "GNU" "Linux Programmer's Manual" .TH CONFSTR 3 2008-08-29 "GNU" "Linux Programmer's Manual"
.SH NAME .SH NAME
confstr \- get configuration dependent string variables confstr \- get configuration dependent string variables
.SH SYNOPSIS .SH SYNOPSIS
@ -42,7 +42,7 @@ Feature Test Macro Requirements for glibc (see
.in .in
.sp .sp
.BR getcwd (): .BR getcwd ():
_POSIX_C_SOURCE\ >=\ 2 || _XOPEN_SOURCE _POSIX_C_SOURCE\ >=\ 2 || _XOPEN_SOURCE || _POSIX_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
.BR confstr () .BR confstr ()
gets the value of configuration-dependent string variables. gets the value of configuration-dependent string variables.

View File

@ -37,7 +37,7 @@ Feature Test Macro Requirements for glibc (see
.in .in
.sp .sp
.BR ctermid (): .BR ctermid ():
_POSIX_C_SOURCE || _XOPEN_SOURCE _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.\" From <unistd.h>: _XOPEN_SOURCE .\" From <unistd.h>: _XOPEN_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
.BR ctermid () .BR ctermid ()

View File

@ -30,7 +30,7 @@
.\" Modified 2001-12-13, joey, aeb .\" Modified 2001-12-13, joey, aeb
.\" Modified 2004-11-16, mtk .\" Modified 2004-11-16, mtk
.\" .\"
.TH CTIME 3 2008-08-06 "" "Linux Programmer's Manual" .TH CTIME 3 2008-08-29 "" "Linux Programmer's Manual"
.SH NAME .SH NAME
asctime, ctime, gmtime, localtime, mktime, asctime_r, ctime_r, gmtime_r, asctime, ctime, gmtime, localtime, mktime, asctime_r, ctime_r, gmtime_r,
localtime_r \- transform date and time to broken-down time or ASCII localtime_r \- transform date and time to broken-down time or ASCII
@ -67,7 +67,8 @@ Feature Test Macro Requirements for glibc (see
.BR gmtime_r (), .BR gmtime_r (),
.BR localtime_r (): .BR localtime_r ():
.br .br
_POSIX_C_SOURCE || _XOPEN_SOURCE || _BSD_SOURCE || _SVID_SOURCE _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _BSD_SOURCE ||
_SVID_SOURCE || _POSIX_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR ctime (), .BR ctime (),

View File

@ -39,7 +39,7 @@
.\" Converted for Linux, Mon Nov 29 14:24:40 1993, faith@cs.unc.edu .\" Converted for Linux, Mon Nov 29 14:24:40 1993, faith@cs.unc.edu
.\" Added remark on EBADF for fileno, aeb, 2001-03-22 .\" Added remark on EBADF for fileno, aeb, 2001-03-22
.\" .\"
.TH FERROR 3 2007-07-26 "" "Linux Programmer's Manual" .TH FERROR 3 2008-08-29 "" "Linux Programmer's Manual"
.SH NAME .SH NAME
clearerr, feof, ferror, fileno \- check and reset stream status clearerr, feof, ferror, fileno \- check and reset stream status
.SH SYNOPSIS .SH SYNOPSIS
@ -59,7 +59,7 @@ Feature Test Macro Requirements for glibc (see
.in .in
.sp .sp
.BR fileno (): .BR fileno ():
_POSIX_C_SOURCE || _XOPEN_SOURCE _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
The function The function
.BR clearerr () .BR clearerr ()

View File

@ -20,7 +20,7 @@
.\" Formatted or processed versions of this manual, if unaccompanied by .\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work. .\" the source, must acknowledge the copyright and authors of this work.
.\" .\"
.TH FLOCKFILE 3 2007-07-26 "" "Linux Programmer's Manual" .TH FLOCKFILE 3 2008-08-29 "" "Linux Programmer's Manual"
.SH NAME .SH NAME
flockfile, ftrylockfile, funlockfile \- lock FILE for stdio flockfile, ftrylockfile, funlockfile \- lock FILE for stdio
.SH SYNOPSIS .SH SYNOPSIS
@ -41,7 +41,8 @@ Feature Test Macro Requirements for glibc (see
.ad l .ad l
.sp .sp
All functions shown above: All functions shown above:
_POSIX_C_SOURCE || _XOPEN_SOURCE || _BSD_SOURCE || _SVID_SOURCE _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _BSD_SOURCE ||
_SVID_SOURCE || _POSIX_SOURCE
.ad b .ad b
.SH DESCRIPTION .SH DESCRIPTION
The stdio functions are thread-safe. The stdio functions are thread-safe.

View File

@ -43,7 +43,7 @@
.\" will add support for an 'e' mode to open the file with close-on-exec .\" will add support for an 'e' mode to open the file with close-on-exec
.\" set; probably this will be in glibc 2.9, and needs to be documented. .\" set; probably this will be in glibc 2.9, and needs to be documented.
.\" .\"
.TH FOPEN 3 2007-11-26 "GNU" "Linux Programmer's Manual" .TH FOPEN 3 2008-08-29 "GNU" "Linux Programmer's Manual"
.SH NAME .SH NAME
fopen, fdopen, freopen \- stream open functions fopen, fdopen, freopen \- stream open functions
.SH SYNOPSIS .SH SYNOPSIS
@ -63,7 +63,7 @@ Feature Test Macro Requirements for glibc (see
.in .in
.sp .sp
.BR fdopen (): .BR fdopen ():
_POSIX_C_SOURCE || _XOPEN_SOURCE _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR fopen () .BR fopen ()

View File

@ -34,7 +34,7 @@
.\" minor rewrites. .\" minor rewrites.
.\" 2008-06-18, mtk: many parts rewritten .\" 2008-06-18, mtk: many parts rewritten
.\" .\"
.TH GETADDRINFO 3 2008-06-18 "GNU" "Linux Programmer's Manual" .TH GETADDRINFO 3 2008-08-29 "GNU" "Linux Programmer's Manual"
.SH NAME .SH NAME
getaddrinfo, freeaddrinfo, gai_strerror \- network address and getaddrinfo, freeaddrinfo, gai_strerror \- network address and
service translation service translation
@ -52,6 +52,18 @@ service translation
.sp .sp
.BI "const char *gai_strerror(int " "errcode" ); .BI "const char *gai_strerror(int " "errcode" );
.fi .fi
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.ad l
.in
.sp
.BR getaddrinfo (),
.BR freeaddrinfo (),
.BR gai_strerror ():
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.ad b
.SH DESCRIPTION .SH DESCRIPTION
Given Given
.I node .I node

View File

@ -28,7 +28,7 @@
.\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu) .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
.\" Modified 2003-11-15 by aeb .\" Modified 2003-11-15 by aeb
.\" .\"
.TH GETGRNAM 3 2003-11-15 "" "Linux Programmer's Manual" .TH GETGRNAM 3 2008-08-29 "" "Linux Programmer's Manual"
.SH NAME .SH NAME
getgrnam, getgrnam_r, getgrgid, getgrgid_r \- get group file entry getgrnam, getgrnam_r, getgrgid, getgrgid_r \- get group file entry
.SH SYNOPSIS .SH SYNOPSIS
@ -48,6 +48,18 @@ getgrnam, getgrnam_r, getgrgid, getgrgid_r \- get group file entry
.br .br
.BI " char *" buf ", size_t " buflen ", struct group **" gbufp ); .BI " char *" buf ", size_t " buflen ", struct group **" gbufp );
.fi .fi
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.ad l
.in
.sp
.BR getgrnam_r (),
.BR getgrgid_r ():
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _BSD_SOURCE ||
_SVID_SOURCE || _POSIX_SOURCE
.ad b
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR getgrnam () .BR getgrnam ()

View File

@ -4,7 +4,7 @@
.\" 2004-12-14, mtk, Added EAI_OVERFLOW error .\" 2004-12-14, mtk, Added EAI_OVERFLOW error
.\" 2004-12-14 Fixed description of error return .\" 2004-12-14 Fixed description of error return
.\" .\"
.TH GETNAMEINFO 3 2008-06-18 "GNU" "Linux Programmer's Manual" .TH GETNAMEINFO 3 2008-08-29 "GNU" "Linux Programmer's Manual"
.SH NAME .SH NAME
getnameinfo \- address-to-name translation in protocol-independent manner getnameinfo \- address-to-name translation in protocol-independent manner
.SH SYNOPSIS .SH SYNOPSIS
@ -16,6 +16,16 @@ getnameinfo \- address-to-name translation in protocol-independent manner
.BI " char *" "host" ", size_t " "hostlen" , .BI " char *" "host" ", size_t " "hostlen" ,
.BI " char *" "serv" ", size_t " "servlen" ", int " "flags" ); .BI " char *" "serv" ", size_t " "servlen" ", int " "flags" );
.fi .fi
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.ad l
.in
.sp
.BR getnameinfo ():
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.ad b
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR getnameinfo () .BR getnameinfo ()

View File

@ -36,7 +36,7 @@
.\" the start of optstring .\" the start of optstring
.\" Modified 2006-12-15, mtk, Added getopt() example program. .\" Modified 2006-12-15, mtk, Added getopt() example program.
.\" .\"
.TH GETOPT 3 2008-07-10 "GNU" "Linux Programmer's Manual" .TH GETOPT 3 2008-08-29 "GNU" "Linux Programmer's Manual"
.SH NAME .SH NAME
getopt, getopt_long, getopt_long_only, getopt, getopt_long, getopt_long_only,
optarg, optind, opterr, optopt \- Parse command-line options optarg, optind, opterr, optopt \- Parse command-line options
@ -50,8 +50,6 @@ optarg, optind, opterr, optopt \- Parse command-line options
.BI "extern char *" optarg ; .BI "extern char *" optarg ;
.BI "extern int " optind ", " opterr ", " optopt ; .BI "extern int " optind ", " opterr ", " optopt ;
.sp .sp
.B #define _GNU_SOURCE
.br
.B #include <getopt.h> .B #include <getopt.h>
.sp .sp
.BI "int getopt_long(int " argc ", char * const " argv[] , .BI "int getopt_long(int " argc ", char * const " argv[] ,
@ -62,6 +60,20 @@ optarg, optind, opterr, optopt \- Parse command-line options
.BI " const char *" optstring , .BI " const char *" optstring ,
.BI " const struct option *" longopts ", int *" longindex ); .BI " const struct option *" longopts ", int *" longindex );
.fi .fi
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.ad l
.in
.sp
.BR getopt ():
_POSIX_C_SOURCE\ >=\ 2 || _XOPEN_SOURCE || _POSIX_SOURCE
.br
.BR getopt_long (),
.BR getopt_long_only ():
_GNU_SOURCE
.ad b
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR getopt () .BR getopt ()

View File

@ -29,7 +29,7 @@
.\" Modified 1996-05-27 by Martin Schulze (joey@linux.de) .\" Modified 1996-05-27 by Martin Schulze (joey@linux.de)
.\" Modified 2003-11-15 by aeb .\" Modified 2003-11-15 by aeb
.\" .\"
.TH GETPWNAM 3 2007-07-26 "GNU" "Linux Programmer's Manual" .TH GETPWNAM 3 2008-08-29 "GNU" "Linux Programmer's Manual"
.SH NAME .SH NAME
getpwnam, getpwnam_r, getpwuid, getpwuid_r \- get password file entry getpwnam, getpwnam_r, getpwuid, getpwuid_r \- get password file entry
.SH SYNOPSIS .SH SYNOPSIS
@ -58,7 +58,8 @@ Feature Test Macro Requirements for glibc (see
.ad l .ad l
.BR getpwnam_r (), .BR getpwnam_r (),
.BR getpwuid_r (): .BR getpwuid_r ():
_POSIX_C_SOURCE || _XOPEN_SOURCE || _BSD_SOURCE || _SVID_SOURCE _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _BSD_SOURCE ||
_SVID_SOURCE || _POSIX_SOURCE
.ad b .ad b
.SH DESCRIPTION .SH DESCRIPTION
The The

View File

@ -23,7 +23,7 @@
.\" Added siglongjmp, Sun Mar 2 22:03:05 EST 1997, jrv@vanzandt.mv.com .\" Added siglongjmp, Sun Mar 2 22:03:05 EST 1997, jrv@vanzandt.mv.com
.\" Modifications, Sun Feb 26 14:39:45 1995, faith@cs.unc.edu .\" Modifications, Sun Feb 26 14:39:45 1995, faith@cs.unc.edu
.\" " .\" "
.TH LONGJMP 3 2007-09-06 "" "Linux Programmer's Manual" .TH LONGJMP 3 2008-08-29 "" "Linux Programmer's Manual"
.SH NAME .SH NAME
longjmp, siglongjmp \- non-local jump to a saved stack context longjmp, siglongjmp \- non-local jump to a saved stack context
.SH SYNOPSIS .SH SYNOPSIS
@ -41,7 +41,7 @@ Feature Test Macro Requirements for glibc (see
.in .in
.sp .sp
.BR siglongjmp (): .BR siglongjmp ():
_POSIX_C_SOURCE || _XOPEN_SOURCE _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_C_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
.BR longjmp () .BR longjmp ()
and and

View File

@ -40,15 +40,29 @@
.\" with close-on-exec set; probably this will be in glibc 2.9, .\" with close-on-exec set; probably this will be in glibc 2.9,
.\" and needs to be documented. .\" and needs to be documented.
.\" .\"
.TH POPEN 3 1998-05-07 "GNU" "Linux Programmer's Manual" .TH POPEN 3 2008-08-29 "GNU" "Linux Programmer's Manual"
.SH NAME .SH NAME
popen, pclose \- process I/O popen, pclose \- process I/O
.SH SYNOPSIS .SH SYNOPSIS
.nf
.B #include <stdio.h> .B #include <stdio.h>
.sp .sp
.BI "FILE *popen(const char *" command ", const char *" type ); .BI "FILE *popen(const char *" command ", const char *" type );
.sp .sp
.BI "int pclose(FILE *" stream ); .BI "int pclose(FILE *" stream );
.fi
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.ad l
.in
.sp
.BR popen (),
.BR pclose ():
_POSIX_C_SOURCE\ >=\ 2 || _XOPEN_SOURCE || _POSIX_SOURCE
_BSD_SOURCE || _SVID_SOURCE
.ad b
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR popen () .BR popen ()

View File

@ -35,7 +35,7 @@
.\" with contribution from Francesco Potorti <F.Potorti@cnuce.cnr.it> .\" with contribution from Francesco Potorti <F.Potorti@cnuce.cnr.it>
.\" Modified 2003-11-15, aeb, added rand_r .\" Modified 2003-11-15, aeb, added rand_r
.\" .\"
.TH RAND 3 2008-08-06 "" "Linux Programmer's Manual" .TH RAND 3 2008-08-29 "" "Linux Programmer's Manual"
.SH NAME .SH NAME
rand, rand_r, srand \- pseudo-random number generator rand, rand_r, srand \- pseudo-random number generator
.SH SYNOPSIS .SH SYNOPSIS
@ -55,7 +55,7 @@ Feature Test Macro Requirements for glibc (see
.in .in
.sp .sp
.BR rand_r (): .BR rand_r ():
_POSIX_C_SOURCE || _XOPEN_SOURCE _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR rand () .BR rand ()

View File

@ -31,7 +31,7 @@
.\" Rework discussion of non-standard structure fields. .\" Rework discussion of non-standard structure fields.
.\" 2008-07-04, mtk, Document readdir_r(). .\" 2008-07-04, mtk, Document readdir_r().
.\" .\"
.TH READDIR 3 2008-07-04 "" "Linux Programmer's Manual" .TH READDIR 3 2008-08-29 "" "Linux Programmer's Manual"
.SH NAME .SH NAME
readdir, readdir_r \- read a directory readdir, readdir_r \- read a directory
.SH SYNOPSIS .SH SYNOPSIS
@ -43,6 +43,17 @@ readdir, readdir_r \- read a directory
.BI "int readdir_r(DIR *" dir ", struct dirent *" entry \ .BI "int readdir_r(DIR *" dir ", struct dirent *" entry \
", struct dirent **" result ); ", struct dirent **" result );
.fi .fi
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.ad l
.in
.sp
.BR readdir_r ():
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _BSD_SOURCE ||
_SVID_SOURCE || _POSIX_SOURCE
.ad b
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR readdir () .BR readdir ()

View File

@ -23,7 +23,7 @@
.\" Added sigsetjmp, Sun Mar 2 22:03:05 EST 1997, jrv@vanzandt.mv.com .\" Added sigsetjmp, Sun Mar 2 22:03:05 EST 1997, jrv@vanzandt.mv.com
.\" Modifications, Sun Feb 26 14:39:45 1995, faith@cs.unc.edu .\" Modifications, Sun Feb 26 14:39:45 1995, faith@cs.unc.edu
.\" " .\" "
.TH SETJMP 3 2007-07-26 "" "Linux Programmer's Manual" .TH SETJMP 3 2008-08-29 "" "Linux Programmer's Manual"
.SH NAME .SH NAME
setjmp, sigsetjmp \- save stack context for non-local goto setjmp, sigsetjmp \- save stack context for non-local goto
.SH SYNOPSIS .SH SYNOPSIS
@ -41,7 +41,7 @@ Feature Test Macro Requirements for glibc (see
.in .in
.sp .sp
.BR sigsetjmp (): .BR sigsetjmp ():
_POSIX_C_SOURCE || _XOPEN_SOURCE _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_C_SOURCE
.SH DESCRIPTION .SH DESCRIPTION
.BR setjmp () .BR setjmp ()
and and

View File

@ -26,7 +26,7 @@
.\" 2007-10-26 mdw added wording that a sigset_t must be initialized .\" 2007-10-26 mdw added wording that a sigset_t must be initialized
.\" prior to use .\" prior to use
.\" .\"
.TH SIGSETOPS 3 2007-11-25 "Linux" "Linux Programmer's Manual" .TH SIGSETOPS 3 2008-08-29 "Linux" "Linux Programmer's Manual"
.SH NAME .SH NAME
sigemptyset, sigfillset, sigaddset, sigdelset, sigismember \- POSIX sigemptyset, sigfillset, sigaddset, sigdelset, sigismember \- POSIX
signal set operations. signal set operations.
@ -42,6 +42,20 @@ signal set operations.
.BI "int sigdelset(sigset_t *" set ", int " signum ); .BI "int sigdelset(sigset_t *" set ", int " signum );
.sp .sp
.BI "int sigismember(const sigset_t *" set ", int " signum ); .BI "int sigismember(const sigset_t *" set ", int " signum );
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
.sp
.ad l
.BR sigemptyset (),
.BR sigfillset (),
.BR sigaddset (),
.BR sigdelset (),
.BR sigismember ():
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.ad b
.SH DESCRIPTION .SH DESCRIPTION
These functions allow the manipulation of POSIX signal sets. These functions allow the manipulation of POSIX signal sets.
.PP .PP

View File

@ -21,7 +21,7 @@
.\" Formatted or processed versions of this manual, if unaccompanied by .\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work. .\" the source, must acknowledge the copyright and authors of this work.
.\" .\"
.TH SIGWAIT 3 2008-07-02 "Linux" "Linux Programmer's Manual" .TH SIGWAIT 3 2008-08-29 "Linux" "Linux Programmer's Manual"
.SH NAME .SH NAME
sigwait \- wait for a signal sigwait \- wait for a signal
.SH SYNOPSIS .SH SYNOPSIS
@ -30,6 +30,16 @@ sigwait \- wait for a signal
.BI " int sigwait(const sigset_t *" set ", int *" sig ); .BI " int sigwait(const sigset_t *" set ", int *" sig );
.fi .fi
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
.sp
.ad l
.BR sigwait ():
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.ad b
.SH DESCRIPTION .SH DESCRIPTION
The The
.BR sigwait () .BR sigwait ()

View File

@ -25,7 +25,7 @@
.\" Updated, added strtok_r. 2000-02-13 Nicolás Lichtmaier <nick@debian.org> .\" Updated, added strtok_r. 2000-02-13 Nicolás Lichtmaier <nick@debian.org>
.\" 2005-11-17, mtk: Substantial parts rewritten .\" 2005-11-17, mtk: Substantial parts rewritten
.\" .\"
.TH STRTOK 3 2007-07-26 "GNU" "Linux Programmer's Manual" .TH STRTOK 3 2008-08-29 "GNU" "Linux Programmer's Manual"
.SH NAME .SH NAME
strtok, strtok_r \- extract tokens from strings strtok, strtok_r \- extract tokens from strings
.SH SYNOPSIS .SH SYNOPSIS
@ -44,7 +44,8 @@ Feature Test Macro Requirements for glibc (see
.sp .sp
.ad l .ad l
.BR strtok_r (): .BR strtok_r ():
_SVID_SOURCE || _BSD_SOURCE || _POSIX_C_SOURCE || _XOPEN_SOURCE _SVID_SOURCE || _BSD_SOURCE || _POSIX_C_SOURCE\ >=\ 1 ||
_XOPEN_SOURCE || _POSIX_SOURCE
.ad b .ad b
.SH DESCRIPTION .SH DESCRIPTION
The The

View File

@ -28,7 +28,7 @@
.\" Modified 2001-11-13, aeb .\" Modified 2001-11-13, aeb
.\" Modified 2004-12-01 mtk and Martin Schulze <joey@infodrom.org> .\" Modified 2004-12-01 mtk and Martin Schulze <joey@infodrom.org>
.\" .\"
.TH TZSET 3 2007-07-26 "" "Linux Programmer's Manual" .TH TZSET 3 2008-08-29 "" "Linux Programmer's Manual"
.SH NAME .SH NAME
tzset, tzname, timezone, daylight \- initialize time conversion information tzset, tzname, timezone, daylight \- initialize time conversion information
.SH SYNOPSIS .SH SYNOPSIS
@ -48,10 +48,10 @@ Feature Test Macro Requirements for glibc (see
.in .in
.sp .sp
.BR tzset (): .BR tzset ():
_POSIX_C_SOURCE || _XOPEN_SOURCE _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.br .br
.IR tzname : .IR tzname :
_POSIX_C_SOURCE || _XOPEN_SOURCE _POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.br .br
.IR timezone : .IR timezone :
_SVID_SOURCE || _XOPEN_SOURCE _SVID_SOURCE || _XOPEN_SOURCE

View File

@ -20,7 +20,7 @@
.\" Formatted or processed versions of this manual, if unaccompanied by .\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work. .\" the source, must acknowledge the copyright and authors of this work.
.\" .\"
.TH UNLOCKED_STDIO 3 2007-07-26 "" "Linux Programmer's Manual" .TH UNLOCKED_STDIO 3 2008-08-29 "" "Linux Programmer's Manual"
.SH NAME .SH NAME
getc_unlocked, getchar_unlocked, putc_unlocked, getc_unlocked, getchar_unlocked, putc_unlocked,
putchar_unlocked \- non-locking stdio functions putchar_unlocked \- non-locking stdio functions
@ -33,9 +33,6 @@ putchar_unlocked \- non-locking stdio functions
.BI "int putc_unlocked(int " c ", FILE *" stream ); .BI "int putc_unlocked(int " c ", FILE *" stream );
.BI "int putchar_unlocked(int " c ); .BI "int putchar_unlocked(int " c );
.sp .sp
.BR "#define _BSD_SOURCE" " /* or _SVID_SOURCE */"
.B #include <stdio.h>
.sp
.BI "void clearerr_unlocked(FILE *" stream ); .BI "void clearerr_unlocked(FILE *" stream );
.BI "int feof_unlocked(FILE *" stream ); .BI "int feof_unlocked(FILE *" stream );
.BI "int ferror_unlocked(FILE *" stream ); .BI "int ferror_unlocked(FILE *" stream );
@ -48,13 +45,9 @@ putchar_unlocked \- non-locking stdio functions
.BI "size_t fwrite_unlocked(const void *" ptr ", size_t " size ", size_t " n , .BI "size_t fwrite_unlocked(const void *" ptr ", size_t " size ", size_t " n ,
.BI " FILE *" stream ); .BI " FILE *" stream );
.sp .sp
.B #define _GNU_SOURCE
.B #include <stdio.h>
.sp
.BI "char *fgets_unlocked(char *" s ", int " n ", FILE *" stream ); .BI "char *fgets_unlocked(char *" s ", int " n ", FILE *" stream );
.BI "int fputs_unlocked(const char *" s ", FILE *" stream ); .BI "int fputs_unlocked(const char *" s ", FILE *" stream );
.sp .sp
.B #define _GNU_SOURCE
.B #include <wchar.h> .B #include <wchar.h>
.sp .sp
.BI "wint_t getwc_unlocked(FILE *" stream ); .BI "wint_t getwc_unlocked(FILE *" stream );
@ -66,6 +59,42 @@ putchar_unlocked \- non-locking stdio functions
.BI "wchar_t *fgetws_unlocked(wchar_t *" ws ", int " n ", FILE *" stream ); .BI "wchar_t *fgetws_unlocked(wchar_t *" ws ", int " n ", FILE *" stream );
.BI "int fputws_unlocked(const wchar_t *" ws ", FILE *" stream ); .BI "int fputws_unlocked(const wchar_t *" ws ", FILE *" stream );
.fi .fi
.sp
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.ad l
.in
.sp
.BR getc_unlocked (),
.BR getchar_unlocked (),
.BR putc_unlocked (),
.BR putchar_unlocked ():
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE ||
_BSD_SOURCE || _SVID_SOURCE
.sp
.BR clearerr_unlocked (),
.BR feof_unlocked (),
.BR ferror_unlocked (),
.BR fileno_unlocked (),
.BR fflush_unlocked (),
.BR fgetc_unlocked (),
.BR fputc_unlocked (),
.BR fread_unlocked (),
.BR fwrite_unlocked ():
_BSD_SOURCE || _SVID_SOURCE
.sp
.BR fgets_unlocked (),
.BR fputs_unlocked (),
.BR getwc_unlocked (),
.BR getwchar_unlocked (),
.BR fgetwc_unlocked (),
.BR fputwc_unlocked (),
.BR putwchar_unlocked (),
.BR fgetws_unlocked (),
.BR fputws_unlocked ():
_GNU_SOURCE
.ad b
.SH DESCRIPTION .SH DESCRIPTION
Each of these functions has the same behavior as its counterpart Each of these functions has the same behavior as its counterpart
without the "_unlocked" suffix, except that they do not use locking without the "_unlocked" suffix, except that they do not use locking