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-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
kill \- send signal to a process
.SH SYNOPSIS
@ -58,8 +58,10 @@ Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
.sp
.ad l
.BR kill ():
_POSIX_C_SOURCE || _XOPEN_SOURCE
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.ad b
.SH DESCRIPTION
The
.BR kill ()

View File

@ -40,7 +40,7 @@
.\" 2005-09-15, mtk, split sigpending(), sigprocmask(), sigsuspend()
.\" 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
sigaction \- examine and change a signal action
.SH SYNOPSIS
@ -50,6 +50,16 @@ sigaction \- examine and change a signal action
.BI "int sigaction(int " signum ", const struct sigaction *" act ,
.BI " struct sigaction *" oldact );
.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
The
.BR sigaction ()

View File

@ -24,13 +24,23 @@
.\"
.\" 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
sigpending \- examine pending signals
.SH SYNOPSIS
.B #include <signal.h>
.sp
.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
.PP
.BR sigpending ()

View File

@ -24,7 +24,7 @@
.\"
.\" 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
sigprocmask \- examine and change blocked signals
.SH SYNOPSIS
@ -32,6 +32,16 @@ sigprocmask \- examine and change blocked signals
.sp
.BI "int sigprocmask(int " how ", const sigset_t *" set ,
.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
.BR sigprocmask ()
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
.\"
.TH SIGSUSPEND 2 2005-09-15 "Linux" "Linux Programmer's Manual"
.TH SIGSUSPEND 2 2008-08-29 "Linux" "Linux Programmer's Manual"
.SH NAME
sigsuspend \- wait for a signal
.SH SYNOPSIS
.B #include <signal.h>
.sp
.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
.BR sigsuspend ()
temporarily replaces the signal mask of the calling process with the

View File

@ -26,7 +26,7 @@
.\" See <bits/confname.h> for the rest.
.\" These should all be added to this page.
.\" 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
confstr \- get configuration dependent string variables
.SH SYNOPSIS
@ -42,7 +42,7 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR getcwd ():
_POSIX_C_SOURCE\ >=\ 2 || _XOPEN_SOURCE
_POSIX_C_SOURCE\ >=\ 2 || _XOPEN_SOURCE || _POSIX_SOURCE
.SH DESCRIPTION
.BR confstr ()
gets the value of configuration-dependent string variables.

View File

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

View File

@ -30,7 +30,7 @@
.\" Modified 2001-12-13, joey, aeb
.\" 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
asctime, ctime, gmtime, localtime, mktime, asctime_r, ctime_r, gmtime_r,
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 localtime_r ():
.br
_POSIX_C_SOURCE || _XOPEN_SOURCE || _BSD_SOURCE || _SVID_SOURCE
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _BSD_SOURCE ||
_SVID_SOURCE || _POSIX_SOURCE
.SH DESCRIPTION
The
.BR ctime (),

View File

@ -39,7 +39,7 @@
.\" Converted for Linux, Mon Nov 29 14:24:40 1993, faith@cs.unc.edu
.\" 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
clearerr, feof, ferror, fileno \- check and reset stream status
.SH SYNOPSIS
@ -59,7 +59,7 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR fileno ():
_POSIX_C_SOURCE || _XOPEN_SOURCE
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.SH DESCRIPTION
The function
.BR clearerr ()

View File

@ -20,7 +20,7 @@
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" 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
flockfile, ftrylockfile, funlockfile \- lock FILE for stdio
.SH SYNOPSIS
@ -41,7 +41,8 @@ Feature Test Macro Requirements for glibc (see
.ad l
.sp
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
.SH DESCRIPTION
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
.\" 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
fopen, fdopen, freopen \- stream open functions
.SH SYNOPSIS
@ -63,7 +63,7 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR fdopen ():
_POSIX_C_SOURCE || _XOPEN_SOURCE
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.SH DESCRIPTION
The
.BR fopen ()

View File

@ -34,7 +34,7 @@
.\" minor rewrites.
.\" 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
getaddrinfo, freeaddrinfo, gai_strerror \- network address and
service translation
@ -52,6 +52,18 @@ service translation
.sp
.BI "const char *gai_strerror(int " "errcode" );
.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
Given
.I node

View File

@ -28,7 +28,7 @@
.\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
.\" 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
getgrnam, getgrnam_r, getgrgid, getgrgid_r \- get group file entry
.SH SYNOPSIS
@ -48,6 +48,18 @@ getgrnam, getgrnam_r, getgrgid, getgrgid_r \- get group file entry
.br
.BI " char *" buf ", size_t " buflen ", struct group **" gbufp );
.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
The
.BR getgrnam ()

View File

@ -4,7 +4,7 @@
.\" 2004-12-14, mtk, Added EAI_OVERFLOW error
.\" 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
getnameinfo \- address-to-name translation in protocol-independent manner
.SH SYNOPSIS
@ -16,6 +16,16 @@ getnameinfo \- address-to-name translation in protocol-independent manner
.BI " char *" "host" ", size_t " "hostlen" ,
.BI " char *" "serv" ", size_t " "servlen" ", int " "flags" );
.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
The
.BR getnameinfo ()

View File

@ -36,7 +36,7 @@
.\" the start of optstring
.\" 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
getopt, getopt_long, getopt_long_only,
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 int " optind ", " opterr ", " optopt ;
.sp
.B #define _GNU_SOURCE
.br
.B #include <getopt.h>
.sp
.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 struct option *" longopts ", int *" longindex );
.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
The
.BR getopt ()

View File

@ -29,7 +29,7 @@
.\" Modified 1996-05-27 by Martin Schulze (joey@linux.de)
.\" 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
getpwnam, getpwnam_r, getpwuid, getpwuid_r \- get password file entry
.SH SYNOPSIS
@ -58,7 +58,8 @@ Feature Test Macro Requirements for glibc (see
.ad l
.BR getpwnam_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
.SH DESCRIPTION
The

View File

@ -23,7 +23,7 @@
.\" 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
.\" "
.TH LONGJMP 3 2007-09-06 "" "Linux Programmer's Manual"
.TH LONGJMP 3 2008-08-29 "" "Linux Programmer's Manual"
.SH NAME
longjmp, siglongjmp \- non-local jump to a saved stack context
.SH SYNOPSIS
@ -41,7 +41,7 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR siglongjmp ():
_POSIX_C_SOURCE || _XOPEN_SOURCE
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_C_SOURCE
.SH DESCRIPTION
.BR longjmp ()
and

View File

@ -40,15 +40,29 @@
.\" with close-on-exec set; probably this will be in glibc 2.9,
.\" 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
popen, pclose \- process I/O
.SH SYNOPSIS
.nf
.B #include <stdio.h>
.sp
.BI "FILE *popen(const char *" command ", const char *" type );
.sp
.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
The
.BR popen ()

View File

@ -35,7 +35,7 @@
.\" with contribution from Francesco Potorti <F.Potorti@cnuce.cnr.it>
.\" 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
rand, rand_r, srand \- pseudo-random number generator
.SH SYNOPSIS
@ -55,7 +55,7 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR rand_r ():
_POSIX_C_SOURCE || _XOPEN_SOURCE
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.SH DESCRIPTION
The
.BR rand ()

View File

@ -31,7 +31,7 @@
.\" Rework discussion of non-standard structure fields.
.\" 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
readdir, readdir_r \- read a directory
.SH SYNOPSIS
@ -43,6 +43,17 @@ readdir, readdir_r \- read a directory
.BI "int readdir_r(DIR *" dir ", struct dirent *" entry \
", struct dirent **" result );
.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
The
.BR readdir ()

View File

@ -23,7 +23,7 @@
.\" 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
.\" "
.TH SETJMP 3 2007-07-26 "" "Linux Programmer's Manual"
.TH SETJMP 3 2008-08-29 "" "Linux Programmer's Manual"
.SH NAME
setjmp, sigsetjmp \- save stack context for non-local goto
.SH SYNOPSIS
@ -41,7 +41,7 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR sigsetjmp ():
_POSIX_C_SOURCE || _XOPEN_SOURCE
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_C_SOURCE
.SH DESCRIPTION
.BR setjmp ()
and

View File

@ -26,7 +26,7 @@
.\" 2007-10-26 mdw added wording that a sigset_t must be initialized
.\" 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
sigemptyset, sigfillset, sigaddset, sigdelset, sigismember \- POSIX
signal set operations.
@ -42,6 +42,20 @@ signal set operations.
.BI "int sigdelset(sigset_t *" set ", int " signum );
.sp
.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
These functions allow the manipulation of POSIX signal sets.
.PP

View File

@ -21,7 +21,7 @@
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" 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
sigwait \- wait for a signal
.SH SYNOPSIS
@ -30,6 +30,16 @@ sigwait \- wait for a signal
.BI " int sigwait(const sigset_t *" set ", int *" sig );
.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
The
.BR sigwait ()

View File

@ -25,7 +25,7 @@
.\" Updated, added strtok_r. 2000-02-13 Nicolás Lichtmaier <nick@debian.org>
.\" 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
strtok, strtok_r \- extract tokens from strings
.SH SYNOPSIS
@ -44,7 +44,8 @@ Feature Test Macro Requirements for glibc (see
.sp
.ad l
.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
.SH DESCRIPTION
The

View File

@ -28,7 +28,7 @@
.\" Modified 2001-11-13, aeb
.\" 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
tzset, tzname, timezone, daylight \- initialize time conversion information
.SH SYNOPSIS
@ -48,10 +48,10 @@ Feature Test Macro Requirements for glibc (see
.in
.sp
.BR tzset ():
_POSIX_C_SOURCE || _XOPEN_SOURCE
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.br
.IR tzname :
_POSIX_C_SOURCE || _XOPEN_SOURCE
_POSIX_C_SOURCE\ >=\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE
.br
.IR timezone :
_SVID_SOURCE || _XOPEN_SOURCE

View File

@ -20,7 +20,7 @@
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" 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
getc_unlocked, getchar_unlocked, putc_unlocked,
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 putchar_unlocked(int " c );
.sp
.BR "#define _BSD_SOURCE" " /* or _SVID_SOURCE */"
.B #include <stdio.h>
.sp
.BI "void clearerr_unlocked(FILE *" stream );
.BI "int feof_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 " FILE *" stream );
.sp
.B #define _GNU_SOURCE
.B #include <stdio.h>
.sp
.BI "char *fgets_unlocked(char *" s ", int " n ", FILE *" stream );
.BI "int fputs_unlocked(const char *" s ", FILE *" stream );
.sp
.B #define _GNU_SOURCE
.B #include <wchar.h>
.sp
.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 "int fputws_unlocked(const wchar_t *" ws ", FILE *" stream );
.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
Each of these functions has the same behavior as its counterpart
without the "_unlocked" suffix, except that they do not use locking