_exit.2, accept.2, chmod.2, dup.2, getgroups.2, keyctl.2, link.2, mkdir.2, mknod.2, pipe.2, poll.2, reboot.2, rename.2, select.2, select_tut.2, stat.2, symlink.2, unlink.2, __ppc_get_timebase.3, abs.3, bzero.3, crypt.3, dbopen.3, dl_iterate_phdr.3, dlinfo.3, dlsym.3, duplocale.3, encrypt.3, err.3, ffs.3, fpurge.3, ftw.3, getdate.3, gethostbyname.3, getlogin.3, getmntent.3, getpwent_r.3, getpwnam.3, getspnam.3, inet_pton.3, insque.3, isfdtype.3, mallinfo.3, mallopt.3, matherr.3, mcheck.3, mempcpy.3, mkfifo.3, mq_getattr.3, newlocale.3, open_memstream.3, openpty.3, perror.3, posix_memalign.3, posix_spawn.3, printf.3, pthread_attr_init.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_create.3, pthread_getattr_default_np.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setaffinity_np.3, pthread_setschedparam.3, pthread_sigmask.3, pthread_sigqueue.3, regex.3, resolver.3, rpmatch.3, rtnetlink.3, scanf.3, setbuf.3, strchr.3, strfromd.3, strverscmp.3, termios.3, tsearch.3, unlocked_stdio.3, updwtmp.3, netlink.7, rtld-audit.7, sock_diag.7, unix.7: ffix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2017-08-15 17:44:09 +02:00
parent 68e4db0a44
commit f90f031e0f
84 changed files with 116 additions and 130 deletions

View File

@ -33,7 +33,7 @@ _exit, _Exit \- terminate the calling process
.B #include <unistd.h>
.PP
.BI "void _exit(int " status );
.PP
.B #include <stdlib.h>
.PP
.BI "void _Exit(int " status );

View File

@ -47,7 +47,7 @@ accept, accept4 \- accept a connection on a socket
.B #include <sys/socket.h>
.PP
.BI "int accept(int " sockfd ", struct sockaddr *" addr ", socklen_t *" addrlen );
.PP
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <sys/socket.h>
.PP

View File

@ -39,7 +39,7 @@ chmod, fchmod, fchmodat \- change permissions of a file
.BI "int chmod(const char *" pathname ", mode_t " mode );
.br
.BI "int fchmod(int " fd ", mode_t " mode );
.PP
.BR "#include <fcntl.h>" " /* Definition of AT_* constants */"
.B #include <sys/stat.h>
.PP

View File

@ -43,7 +43,7 @@ dup, dup2, dup3 \- duplicate a file descriptor
.PP
.BI "int dup(int " oldfd );
.BI "int dup2(int " oldfd ", int " newfd );
.PP
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.BR "#include <fcntl.h>" " /* Obtain O_* constant definitions */
.B #include <unistd.h>

View File

@ -38,7 +38,7 @@ getgroups, setgroups \- get/set list of supplementary group IDs
.B #include <unistd.h>
.PP
.BI "int getgroups(int " size ", gid_t " list []);
.PP
.B #include <grp.h>
.PP
.BI "int setgroups(size_t " size ", const gid_t *" list );

View File

@ -34,7 +34,7 @@ keyctl \- manipulate the kernel's key management facility
.B #include <keyutils.h>
.PP
.BI "long keyctl(int " operation ", ...)"
.PP
.B "/* For direct call via syscall(2): */"
.B #include <asm/unistd.h>
.B #include <linux/keyctl.h>

View File

@ -37,7 +37,7 @@ link, linkat \- make a new name for a file
.B #include <unistd.h>
.PP
.BI "int link(const char *" oldpath ", const char *" newpath );
.PP
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.B #include <unistd.h>
.PP

View File

@ -18,7 +18,7 @@ mkdir, mkdirat \- create a directory
.\" .B #include <unistd.h>
.PP
.BI "int mkdir(const char *" pathname ", mode_t " mode );
.PP
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.B #include <sys/stat.h>
.PP

View File

@ -23,7 +23,7 @@ mknod, mknodat \- create a special or ordinary file
.B #include <unistd.h>
.PP
.BI "int mknod(const char *" pathname ", mode_t " mode ", dev_t " dev );
.PP
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.B #include <sys/stat.h>
.PP

View File

@ -41,7 +41,7 @@ pipe, pipe2 \- create pipe
.B #include <unistd.h>
.PP
.BI "int pipe(int " pipefd "[2]);"
.PP
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.BR "#include <fcntl.h>" " /* Obtain O_* constant definitions */
.B #include <unistd.h>

View File

@ -36,7 +36,7 @@ poll, ppoll \- wait for some event on a file descriptor
.B #include <poll.h>
.PP
.BI "int poll(struct pollfd *" fds ", nfds_t " nfds ", int " timeout );
.PP
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <signal.h>
.B #include <poll.h>

View File

@ -37,7 +37,7 @@ reboot \- reboot or enable/disable Ctrl-Alt-Del
.B #include <linux/reboot.h>
.PP
.BI "int reboot(int " magic ", int " magic2 ", int " cmd ", void *" arg );
.PP
/* Under glibc and most alternative libc's (including uclibc, dietlibc,
musl and a few others), some of the constants involved have gotten
symbolic names RB_*, and the library call is a 1-argument

View File

@ -38,7 +38,7 @@ rename, renameat, renameat2 \- change the name or location of a file
.B #include <stdio.h>
.PP
.BI "int rename(const char *" oldpath ", const char *" newpath );
.PP
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.B #include <stdio.h>
.PP

View File

@ -44,7 +44,7 @@ synchronous I/O multiplexing
/* According to POSIX.1-2001, POSIX.1-2008 */
.br
.B #include <sys/select.h>
.PP
/* According to earlier standards */
.br
.B #include <sys/time.h>
@ -63,7 +63,7 @@ synchronous I/O multiplexing
.BI "void FD_SET(int " fd ", fd_set *" set );
.br
.BI "void FD_ZERO(fd_set *" set );
.PP
.B #include <sys/select.h>
.PP
.BI "int pselect(int " nfds ", fd_set *" readfds ", fd_set *" writefds ,

View File

@ -38,7 +38,7 @@ synchronous I/O multiplexing
/* According to POSIX.1-2001, POSIX.1-2008 */
.br
.B #include <sys/select.h>
.PP
/* According to earlier standards */
.br
.B #include <sys/time.h>
@ -57,7 +57,7 @@ synchronous I/O multiplexing
.BI "void FD_SET(int " fd ", fd_set *" set );
.br
.BI "void FD_ZERO(fd_set *" set );
.PP
.B #include <sys/select.h>
.PP
.BI "int pselect(int " nfds ", fd_set *" readfds ", fd_set *" writefds ,

View File

@ -53,7 +53,7 @@ stat, fstat, lstat, fstatat \- get file status
.BI "int fstat(int " fd ", struct stat *" statbuf );
.br
.BI "int lstat(const char *" pathname ", struct stat *" statbuf );
.PP
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.B #include <sys/stat.h>
.PP

View File

@ -38,7 +38,7 @@ symlink, symlinkat \- make a new name for a file
.B #include <unistd.h>
.PP
.BI "int symlink(const char *" target ", const char *" linkpath );
.PP
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.B #include <unistd.h>
.PP

View File

@ -38,7 +38,7 @@ unlink, unlinkat \- delete a name and possibly the file it refers to
.B #include <unistd.h>
.PP
.BI "int unlink(const char *" pathname );
.PP
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.B #include <unistd.h>
.PP

View File

@ -31,7 +31,7 @@ __ppc_get_timebase, __ppc_get_timebase_freq \- get the current value
.B #include <sys/platform/ppc.h>
.PP
.BI "uint64_t __ppc_get_timebase(void)"
.PP
.BI "uint64_t __ppc_get_timebase_freq(void);"
.SH DESCRIPTION
.BR __ppc_get_timebase ()

View File

@ -43,7 +43,7 @@ abs, labs, llabs, imaxabs \- compute the absolute value of an integer
.BI "long int labs(long int " j );
.br
.BI "long long int llabs(long long int " j );
.PP
.B #include <inttypes.h>
.PP
.BI "intmax_t imaxabs(intmax_t " j );

View File

@ -28,11 +28,11 @@ bzero, explicit_bzero \- zero a byte string
.SH SYNOPSIS
.nf
.B #include <strings.h>
.PP
.BI "void bzero(void *" s ", size_t " n );
.B #include <string.h>
.PP
.BI "void explicit_bzero(void *" s ", size_t " n );
.fi
.SH DESCRIPTION

View File

@ -43,7 +43,7 @@ crypt, crypt_r \- password and data encryption
.B #include <unistd.h>
.PP
.BI "char *crypt(const char *" key ", const char *" salt );
.PP
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <crypt.h>

View File

@ -43,7 +43,7 @@ dbopen \- database access methods
.B #include <limits.h>
.B #include <db.h>
.B #include <fcntl.h>
.PP
.BI "DB *dbopen(const char *" file ", int " flags ", int " mode \
", DBTYPE " type ,
.BI " const void *" openinfo );

View File

@ -29,7 +29,7 @@ dl_iterate_phdr \- walk through list of shared objects
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <link.h>
.PP
.BI "int dl_iterate_phdr("
.BI " int (*" callback ") (struct dl_phdr_info *" info ,
.BI " size_t " size ", void *" data "),"

View File

@ -31,9 +31,9 @@ dlinfo \- obtain information about a dynamically loaded object
.B #define _GNU_SOURCE
.B #include <link.h>
.B #include <dlfcn.h>
.PP
.BR "int dlinfo(void *" handle ", int " request ", void *" info );
.PP
Link with \fI\-ldl\fP.
.fi
.SH DESCRIPTION

View File

@ -29,7 +29,7 @@ dlsym, dlvsym \- obtain address of a symbol in a shared object or executable
.B #include <dlfcn.h>
.PP
.BI "void *dlsym(void *" handle ", const char *" symbol );
.PP
.B #define _GNU_SOURCE
.br
.B #include <dlfcn.h>

View File

@ -29,7 +29,7 @@ duplocale \- duplicate a locale object
.SH SYNOPSIS
.nf
.B #include <locale.h>
.PP
.BI "locale_t duplocale(locale_t " locobj );
.fi
.PP

View File

@ -36,13 +36,13 @@ encrypt, setkey, encrypt_r, setkey_r \- encrypt 64-bit messages
.B #include <unistd.h>
.PP
.BI "void encrypt(char " block "[64], int " edflag );
.PP
.BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <stdlib.h>
.PP
.BI "void setkey(const char *" key );
.PP
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B "#include <crypt.h>"

View File

@ -50,7 +50,7 @@ err, verr, errx, verrx, warn, vwarn, warnx, vwarnx \- formatted error messages
.BI "void warn(const char *" fmt ", ...);"
.PP
.BI "void warnx(const char *" fmt ", ...);"
.PP
.B #include <stdarg.h>
.PP
.BI "void verr(int " eval ", const char *" fmt ", va_list " args );

View File

@ -38,7 +38,7 @@ ffs, ffsl, ffsll \- find first bit set in a word
.B #include <strings.h>
.PP
.BI "int ffs(int " i );
.PP
.B #include <string.h>
.PP
.BI "int ffsl(long int " i );

View File

@ -31,7 +31,7 @@ fpurge, __fpurge \- purge a stream
.B #include <stdio.h>
.PP
.BI "int fpurge(FILE *" stream );
.PP
/* supported */
.B #include <stdio.h>
.br

View File

@ -39,14 +39,14 @@ ftw, nftw \- file tree walk
.SH SYNOPSIS
.nf
.B #include <ftw.h>
.PP
.BI "int nftw(const char *" dirpath ,
.BI " int (*" fn ") (const char *" fpath ", const struct stat *" sb ,
.BI " int " typeflag ", struct FTW *" ftwbuf ),
.BI " int " nopenfd ", int " flags );
.B #include <ftw.h>
.PP
.BI "int ftw(const char *" dirpath ,
.BI " int (*" fn ") (const char *" fpath ", const struct stat *" sb ,
.BI " int " typeflag ),

View File

@ -36,7 +36,7 @@ getdate, getdate_r \- convert a date-plus-time string to broken-down time
.BI "struct tm *getdate(const char *" string );
.PP
.B "extern int getdate_err;"
.PP
.B "#include <time.h>"
.PP
.BI "int getdate_r(const char *" string ", struct tm *" res );

View File

@ -49,7 +49,7 @@ gethostent_r \- get network host entry
.B extern int h_errno;
.PP
.BI "struct hostent *gethostbyname(const char *" name );
.PP
.BR "#include <sys/socket.h>" " /* for AF_INET */"
.BI "struct hostent *gethostbyaddr(const void *" addr ,
.BI " socklen_t " len ", int " type );

View File

@ -34,7 +34,7 @@ getlogin, getlogin_r, cuserid \- get username
.B "char *getlogin(void);"
.br
.BI "int getlogin_r(char *" buf ", size_t " bufsize );
.PP
.B #include <stdio.h>
.PP
.BI "char *cuserid(char *" string );

View File

@ -47,7 +47,7 @@ getmntent_r \- get filesystem descriptor file entry
.BI "int endmntent(FILE *" streamp );
.PP
.BI "char *hasmntopt(const struct mntent *" mnt ", const char *" opt );
.PP
/* GNU extension */
.B #include <mntent.h>
.PP

View File

@ -29,11 +29,9 @@ getpwent_r, fgetpwent_r \- get passwd file entry reentrantly
.B #include <pwd.h>
.PP
.BI "int getpwent_r(struct passwd *" pwbuf ", char *" buf ,
.br
.BI " size_t " buflen ", struct passwd **" pwbufp );
.PP
.BI "int fgetpwent_r(FILE *" stream ", struct passwd *" pwbuf ", char *" buf ,
.br
.BI " size_t " buflen ", struct passwd **" pwbufp );
.fi
.PP

View File

@ -47,11 +47,9 @@ getpwnam, getpwnam_r, getpwuid, getpwuid_r \- get password file entry
.BI "struct passwd *getpwuid(uid_t " uid );
.PP
.BI "int getpwnam_r(const char *" name ", struct passwd *" pwd ,
.br
.BI " char *" buf ", size_t " buflen ", struct passwd **" result );
.PP
.BI "int getpwuid_r(uid_t " uid ", struct passwd *" pwd ,
.br
.BI " char *" buf ", size_t " buflen ", struct passwd **" result );
.fi
.PP

View File

@ -13,7 +13,6 @@ lckpwdf, ulckpwdf \- get shadow password file entry
.SH SYNOPSIS
.nf
/* General shadow password file API */
.br
.B #include <shadow.h>
.PP
.BI "struct spwd *getspnam(const char *" name );
@ -33,25 +32,20 @@ lckpwdf, ulckpwdf \- get shadow password file entry
.B int lckpwdf(void);
.PP
.B int ulckpwdf(void);
.PP
/* GNU extension */
.br
.B #include <shadow.h>
.PP
.BI "int getspent_r(struct spwd *" spbuf ,
.br
.BI " char *" buf ", size_t " buflen ", struct spwd **" spbufp );
.PP
.BI "int getspnam_r(const char *" name ", struct spwd *" spbuf ,
.br
.BI " char *" buf ", size_t " buflen ", struct spwd **" spbufp );
.PP
.BI "int fgetspent_r(FILE *" stream ", struct spwd *" spbuf ,
.br
.BI " char *" buf ", size_t " buflen ", struct spwd **" spbufp );
.PP
.BI "int sgetspent_r(const char *" s ", struct spwd *" spbuf ,
.br
.BI " char *" buf ", size_t " buflen ", struct spwd **" spbufp );
.fi
.PP

View File

@ -30,7 +30,7 @@ inet_pton \- convert IPv4 and IPv6 addresses from text to binary form
.SH SYNOPSIS
.nf
.B #include <arpa/inet.h>
.PP
.BI "int inet_pton(int " "af" ", const char *" "src" ", void *" "dst" );
.fi
.SH DESCRIPTION

View File

@ -41,7 +41,7 @@ insque, remque \- insert/remove an item from a queue
.B #include <search.h>
.PP
.BI "void insque(void *" elem ", void *" prev );
.PP
.BI "void remque(void *" elem );
.fi
.PP

View File

@ -30,7 +30,7 @@ isfdtype \- test file type of a file descriptor
.nf
.B #include <sys/stat.h>
.B #include <sys/socket.h>
.PP
.BI "int isfdtype(int " fd ", int " fdtype );
.fi
.PP

View File

@ -28,7 +28,7 @@
mallinfo \- obtain memory allocation information
.SH SYNOPSIS
.B #include <malloc.h>
.PP
.B struct mallinfo mallinfo(void);
.SH DESCRIPTION
The

View File

@ -28,7 +28,7 @@
mallopt \- set memory allocation parameters
.SH SYNOPSIS
.B #include <malloc.h>
.PP
.BI "int mallopt(int " param ", int " value );
.SH DESCRIPTION
The

View File

@ -30,9 +30,9 @@ matherr \- SVID math library exception handling
.SH SYNOPSIS
.nf
.B #include <math.h>
.PP
.BI "int matherr(struct exception *" exc );
.PP
.B extern _LIB_VERSION_TYPE _LIB_VERSION;
.fi
.PP

View File

@ -30,11 +30,11 @@ mcheck, mcheck_check_all, mcheck_pedantic, mprobe \- heap consistency checking
.B #include <mcheck.h>
.PP
.BI "int mcheck(void (*" abortfunc ")(enum mcheck_status " mstatus ));
.PP
.BI "int mcheck_pedantic(void (*" abortfunc ")(enum mcheck_status " mstatus ));
.PP
.B void mcheck_check_all(void);
.PP
.BI "enum mcheck_status mprobe(void *" ptr );
.fi
.SH DESCRIPTION

View File

@ -13,13 +13,11 @@ mempcpy, wmempcpy \- copy memory area
.SH SYNOPSIS
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <string.h>
.PP
.BI "void *mempcpy(void *" dest ", const void *" src ", size_t " n );
.PP
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <wchar.h>
.PP
.BI "wchar_t *wmempcpy(wchar_t *" dest ", const wchar_t *" src ", size_t " n );

View File

@ -34,7 +34,7 @@ mkfifo, mkfifoat \- make a FIFO special file (a named pipe)
.B #include <sys/stat.h>
.PP
.BI "int mkfifo(const char *" pathname ", mode_t " mode );
.PP
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.B #include <sys/stat.h>
.PP

View File

@ -31,7 +31,7 @@ mq_getattr, mq_setattr \- get/set message queue attributes
.B #include <mqueue.h>
.PP
.BI "int mq_getattr(mqd_t " mqdes ", struct mq_attr *" attr );
.PP
.BI "int mq_setattr(mqd_t " mqdes ", const struct mq_attr *" newattr ","
.BI " struct mq_attr *" oldattr );
.fi

View File

@ -29,10 +29,10 @@ newlocale, freelocale \- create, modify, and free a locale object
.SH SYNOPSIS
.nf
.B #include <locale.h>
.PP
.BI "locale_t newlocale(int " category_mask ", const char *" locale ",
.BI " locale_t " base );
.PP
.BI "void freelocale(locale_t " locobj );
.fi
.PP

View File

@ -12,11 +12,11 @@ open_memstream, open_wmemstream \- open a dynamic memory buffer stream
.SH SYNOPSIS
.nf
.B #include <stdio.h>
.PP
.BI "FILE *open_memstream(char **" ptr ", size_t *" sizeloc );
.B #include <wchar.h>
.PP
.BI "FILE *open_wmemstream(wchar_t **" ptr ", size_t *" sizeloc );
.fi
.PP

View File

@ -45,7 +45,7 @@ openpty, login_tty, forkpty \- terminal utility functions
.BI "pid_t forkpty(int *" amaster ", char *" name ,
.BI " const struct termios *" termp ,
.BI " const struct winsize *" winp );
.PP
.B #include <utmp.h>
.PP
.BI "int login_tty(int " fd );

View File

@ -35,7 +35,7 @@ perror \- print a system error message
.B #include <stdio.h>
.PP
.BI "void perror(const char *" s );
.PP
.B #include <errno.h>
.PP
.BI "const char * const " sys_errlist [];

View File

@ -36,7 +36,7 @@ posix_memalign, aligned_alloc, memalign, valloc, pvalloc \- allocate aligned mem
.BI "int posix_memalign(void **" memptr ", size_t " alignment ", size_t " size );
.BI "void *aligned_alloc(size_t " alignment ", size_t " size );
.BI "void *valloc(size_t " size );
.PP
.B #include <malloc.h>
.PP
.BI "void *memalign(size_t " alignment ", size_t " size );

View File

@ -34,12 +34,12 @@ posix_spawn, posix_spawnp \- spawn a process
.SH SYNOPSIS
.nf
.B #include <spawn.h>
.PP
.BI "int posix_spawn(pid_t *" pid ", const char *" path ,
.BI " const posix_spawn_file_actions_t *" file_actions ,
.BI " const posix_spawnattr_t *" attrp ,
.BI " char *const " argv[] ", char *const " envp[] );
.PP
.BI "int posix_spawnp(pid_t *" pid ", const char *" file ,
.BI " const posix_spawn_file_actions_t *" file_actions ,
.BI " const posix_spawnattr_t *" attrp ,

View File

@ -47,7 +47,7 @@ vsprintf, vsnprintf \- formatted output conversion
.BI "int sprintf(char *" str ", const char *" format ", ...);"
.br
.BI "int snprintf(char *" str ", size_t " size ", const char *" format ", ...);"
.PP
.B #include <stdarg.h>
.PP
.BI "int vprintf(const char *" format ", va_list " ap );

View File

@ -30,7 +30,7 @@ thread attributes object
.SH SYNOPSIS
.nf
.B #include <pthread.h>
.PP
.BI "int pthread_attr_init(pthread_attr_t *" attr );
.BI "int pthread_attr_destroy(pthread_attr_t *" attr );
.PP

View File

@ -29,7 +29,7 @@ pthread_cancel \- send a cancellation request to a thread
.SH SYNOPSIS
.nf
.B #include <pthread.h>
.PP
.BI "int pthread_cancel(pthread_t " thread );
.PP
Compile and link with \fI\-pthread\fP.

View File

@ -30,7 +30,7 @@ thread cancellation clean-up handlers
.SH SYNOPSIS
.nf
.B #include <pthread.h>
.PP
.BI "void pthread_cleanup_push(void (*" routine ")(void *),"
.BI " void *" arg );
.BI "void pthread_cleanup_pop(int " execute );

View File

@ -29,7 +29,7 @@ pthread_create \- create a new thread
.SH SYNOPSIS
.nf
.B #include <pthread.h>
.PP
.BI "int pthread_create(pthread_t *" thread ", const pthread_attr_t *" attr ,
.BI " void *(*" start_routine ") (void *), void *" arg );
.fi

View File

@ -30,7 +30,7 @@ get or set default thread-creation attributes
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <pthread.h>
.PP
.BI "int pthread_getattr_default_np(pthread_attr_t *" attr );
.BI "int pthread_setattr_default_np(pthread_attr_t *" attr );
.PP

View File

@ -30,7 +30,7 @@ pthread_getattr_np \- get attributes of created thread
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <pthread.h>
.PP
.BI "int pthread_getattr_np(pthread_t " thread ", pthread_attr_t *" attr );
.PP
Compile and link with \fI\-pthread\fP.

View File

@ -30,7 +30,7 @@ pthread_getcpuclockid \- retrieve ID of a thread's CPU time clock
.nf
.B #include <pthread.h>
.B #include <time.h>
.PP
.BI "int pthread_getcpuclockid(pthread_t " thread ", clockid_t *" clock_id );
.PP
Compile and link with \fI\-pthread\fP.

View File

@ -31,7 +31,7 @@ CPU affinity of a thread
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <pthread.h>
.PP
.BI "int pthread_setaffinity_np(pthread_t " thread ", size_t " cpusetsize ,
.BI " const cpu_set_t *" cpuset );
.BI "int pthread_getaffinity_np(pthread_t " thread ", size_t " cpusetsize ,

View File

@ -30,7 +30,7 @@ scheduling policy and parameters of a thread
.SH SYNOPSIS
.nf
.B #include <pthread.h>
.PP
.BI "int pthread_setschedparam(pthread_t " thread ", int " policy ,
.BI " const struct sched_param *" param );
.BI "int pthread_getschedparam(pthread_t " thread ", int *" policy ,

View File

@ -29,7 +29,7 @@ pthread_sigmask \- examine and change mask of blocked signals
.SH SYNOPSIS
.nf
.B #include <signal.h>
.PP
.BI "int pthread_sigmask(int " how ", const sigset_t *" set \
", sigset_t *" oldset );
.fi

View File

@ -29,7 +29,7 @@ pthread_sigqueue \- queue a signal and data to a thread
.nf
.B #include <signal.h>
.B #include <pthread.h>
.PP
.BI "int pthread_sigqueue(pthread_t " thread ", int " sig ,
.BI " const union sigval " value );
.fi

View File

@ -34,16 +34,16 @@ regcomp, regexec, regerror, regfree \- POSIX regex functions
.nf
.B #include <sys/types.h>
.B #include <regex.h>
.PP
.BI "int regcomp(regex_t *" preg ", const char *" regex ", int " cflags );
.PP
.BI "int regexec(const regex_t *" preg ", const char *" string \
", size_t " nmatch ,
.BI " regmatch_t " pmatch[] ", int " eflags );
.PP
.BI "size_t regerror(int " errcode ", const regex_t *" preg ", char *" errbuf ,
.BI " size_t " errbuf_size );
.PP
.BI "void regfree(regex_t *" preg );
.fi
.SH DESCRIPTION

View File

@ -40,39 +40,39 @@ dn_comp, dn_expand \- resolver routines
.B #include <netinet/in.h>
.B #include <arpa/nameser.h>
.B #include <resolv.h>
.PP
.B struct __res_state;
.B typedef struct __res_state *res_state;
.PP
.BI "int res_ninit(res_state " statep );
.PP
.BI "int res_nquery(res_state " statep ,
.BI " const char *" dname ", int " class ", int " type ,
.BI " unsigned char *" answer ", int " anslen );
.PP
.BI "int res_nsearch(res_state " statep ,
.BI " const char *" dname ", int " class ", int " type ,
.BI " unsigned char *" answer ", int " anslen );
.PP
.BI "int res_nquerydomain(res_state " statep ,
.BI " const char *" name ", const char *" domain ,
.BI " int " class ", int " type ", unsigned char *" answer ,
.BI " int " anslen );
.PP
.BI "int res_nmkquery(res_state " statep ,
.BI " int " op ", const char *" dname ", int " class ,
.BI " int " type ", const unsigned char *" data ", int " datalen ,
.BI " const unsigned char *" newrr ,
.BI " unsigned char *" buf ", int " buflen );
.PP
.BI "int res_nsend(res_state " statep ,
.BI " const unsigned char *" msg ", int " msglen ,
.BI " unsigned char *" answer ", int " anslen );
.PP
.BI "int dn_comp(const char *" exp_dn ", unsigned char *" comp_dn ,
.BI " int " length ", unsigned char **" dnptrs ,
.BI " unsigned char **" lastdnptr );
.PP
.BI "int dn_expand(const unsigned char *" msg ,
.BI " const unsigned char *" eomorig ,
.BI " const unsigned char *" comp_dn ", char *" exp_dn ,
@ -82,24 +82,24 @@ dn_comp, dn_expand \- resolver routines
.SS Deprecated
.nf
.B extern struct __res_state _res;
.PP
.B int res_init(void);
.PP
.BI "int res_query(const char *" dname ", int " class ", int " type ,
.BI " unsigned char *" answer ", int " anslen );
.PP
.BI "int res_search(const char *" dname ", int " class ", int " type ,
.BI " unsigned char *" answer ", int " anslen );
.PP
.BI "int res_querydomain(const char *" name ", const char *" domain ,
.BI " int " class ", int " type ", unsigned char *" answer ,
.BI " int " anslen );
.PP
.BI "int res_mkquery(int " op ", const char *" dname ", int " class ,
.BI " int " type ", const unsigned char *" data ", int " datalen ,
.BI " const unsigned char *" newrr ,
.BI " unsigned char *" buf ", int " buflen );
.PP
.BI "int res_send(const unsigned char *" msg ", int " msglen ,
.BI " unsigned char *" answer ", int " anslen );
.fi

View File

@ -32,7 +32,7 @@ rpmatch \- determine if the answer to a question is affirmative or negative
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
.PP
.BI "int rpmatch(const char *" response );
.fi
.PP

View File

@ -20,7 +20,7 @@ rtnetlink \- macros to manipulate rtnetlink messages
.B #include <linux/rtnetlink.h>
.br
.B #include <sys/socket.h>
.PP
.BI "rtnetlink_socket = socket(AF_NETLINK, int " socket_type \
", NETLINK_ROUTE);"
.PP

View File

@ -55,13 +55,13 @@ scanf, fscanf, sscanf, vscanf, vsscanf, vfscanf \- input format conversion
.SH SYNOPSIS
.nf
.B #include <stdio.h>
.PP
.BI "int scanf(const char *" format ", ...);"
.BI "int fscanf(FILE *" stream ", const char *" format ", ...);"
.BI "int sscanf(const char *" str ", const char *" format ", ...);"
.PP
.B #include <stdarg.h>
.B #include <stdarg.h>
.PP
.BI "int vscanf(const char *" format ", va_list " ap );
.BI "int vsscanf(const char *" str ", const char *" format ", va_list " ap );
.BI "int vfscanf(FILE *" stream ", const char *" format ", va_list " ap );

View File

@ -51,13 +51,13 @@ setbuf, setbuffer, setlinebuf, setvbuf \- stream buffering operations
.SH SYNOPSIS
.nf
.B #include <stdio.h>
.PP
.BI "void setbuf(FILE *" stream ", char *" buf );
.PP
.BI "void setbuffer(FILE *" stream ", char *" buf ", size_t " size );
.PP
.BI "void setlinebuf(FILE *" stream );
.PP
.BI "int setvbuf(FILE *" stream ", char *" buf ", int " mode \
", size_t " size );
.fi

View File

@ -40,7 +40,7 @@ strchr, strrchr, strchrnul \- locate character in string
.BI "char *strchr(const char *" s ", int " c );
.PP
.BI "char *strrchr(const char *" s ", int " c );
.PP
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <string.h>
.PP

View File

@ -36,7 +36,7 @@ a string
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
.PP
.BI "int strfromd(char *restrict " str ", size_t " n ",
.BI " const char *restrict " format ", double " fp ");"
.BI "int strfromf(char *restrict " str ", size_t " n ",
@ -44,7 +44,7 @@ a string
.BI "int strfroml(char *restrict " str ", size_t " n ",
.BI " const char *restrict " format ", long double " fp ");"
.fi
.PP
.in -4
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):

View File

@ -29,7 +29,6 @@ strverscmp \- compare two version strings
.SH SYNOPSIS
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <string.h>
.PP
.BI "int strverscmp(const char *" s1 ", const char *" s2 );

View File

@ -45,7 +45,6 @@ get and set terminal attributes, line control, get and set baud rate
.SH SYNOPSIS
.nf
.B #include <termios.h>
.br
.B #include <unistd.h>
.PP
.BI "int tcgetattr(int " fd ", struct termios *" termios_p );

View File

@ -41,9 +41,8 @@ tsearch, tfind, tdelete, twalk, tdestroy \- manage a binary tree
.BI "void twalk(const void *" root ", void (*" action ")(const void *" nodep ,
.BI " const VISIT " which ,
.BI " const int " depth "));"
.PP
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <search.h>
.PP
.BI "void tdestroy(void *" root ", void (*" free_node ")(void *" nodep ));

View File

@ -49,7 +49,7 @@ putchar_unlocked \- nonlocking stdio functions
.PP
.BI "char *fgets_unlocked(char *" s ", int " n ", FILE *" stream );
.BI "int fputs_unlocked(const char *" s ", FILE *" stream );
.PP
.B #include <wchar.h>
.PP
.BI "wint_t getwc_unlocked(FILE *" stream );

View File

@ -38,7 +38,7 @@ updwtmp, logwtmp \- append an entry to the wtmp file
.BI "void logwtmp(const char *" line ", const char *" name \
", const char *" host );
.fi
.PP
For
.BR logwtmp (),
link with \fI\-lutil\fP.

View File

@ -16,7 +16,7 @@ netlink \- communication between kernel and user space (AF_NETLINK)
.B #include <asm/types.h>
.B #include <sys/socket.h>
.B #include <linux/netlink.h>
.PP
.BI "netlink_socket = socket(AF_NETLINK, " socket_type ", " netlink_family );
.fi
.SH DESCRIPTION

View File

@ -29,9 +29,10 @@
.SH NAME
rtld-audit \- auditing API for the dynamic linker
.SH SYNOPSIS
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <link.h>
.fi
.SH DESCRIPTION
The GNU dynamic linker (run-time linker)
provides an auditing API that allows an application

View File

@ -30,7 +30,7 @@ sock_diag \- obtaining information about sockets
.B #include <linux/sock_diag.h>
.BR "#include <linux/unix_diag.h>" " /* for UNIX domain sockets */"
.BR "#include <linux/inet_diag.h>" " /* for IPv4 and IPv6 sockets */"
.PP
.BI "diag_socket = socket(AF_NETLINK, " socket_type ", NETLINK_SOCK_DIAG);"
.fi
.SH DESCRIPTION

View File

@ -24,7 +24,7 @@ unix \- sockets for local interprocess communication
.B #include <sys/socket.h>
.br
.B #include <sys/un.h>
.PP
.IB unix_socket " = socket(AF_UNIX, type, 0);"
.br
.IB error " = socketpair(AF_UNIX, type, 0, int *" sv ");"