_exit, _Exit \- terminate the calling process
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.BI "void _exit(int " status );
-.sp
+.PP
.B #include <stdlib.h>
-.sp
+.PP
.BI "void _Exit(int " status );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR _Exit ():
.RS 4
.SH SYNOPSIS
.nf
.B #include <linux/bpf.h>
-.sp
+.PP
.BI "int bpf(int " cmd ", union bpf_attr *" attr ", unsigned int " size ");
.SH DESCRIPTION
The
.SH SYNOPSIS
.nf
.B #include <asm/cachectl.h>
-.sp
+.PP
.BI "int cacheflush(char *" addr ", int "nbytes ", int "cache );
.fi
.SH DESCRIPTION
capget, capset \- set/get capabilities of thread(s)
.SH SYNOPSIS
.B #include <sys/capability.h>
-.sp
+.PP
.BI "int capget(cap_user_header_t " hdrp ", cap_user_data_t " datap );
-.sp
+.PP
.BI "int capset(cap_user_header_t " hdrp ", const cap_user_data_t " datap );
.SH DESCRIPTION
As of Linux 2.2,
chdir, fchdir \- change working directory
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.BI "int chdir(const char *" path );
.br
.BI "int fchdir(int " fd );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR fchdir ():
.PD 0
.ad l
.SH SYNOPSIS
.nf
.B #include <sys/stat.h>
-.sp
+.PP
.BI "int chmod(const char *" pathname ", mode_t " mode );
.br
.BI "int fchmod(int " fd ", mode_t " mode );
-.sp
+.PP
.BR "#include <fcntl.h>" " /* Definition of AT_* constants */"
.B #include <sys/stat.h>
-.sp
+.PP
.BI "int fchmodat(int " dirfd ", const char *" pathname ", mode_t " \
mode ", int " flags );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.PD 0
.BR fchmod ():
.\" || (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED)
.RE
.PD
-.sp
+.PP
.BR fchmodat ():
.PD 0
.ad l
chroot \- change root directory
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.BI "int chroot(const char *" path );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR chroot ():
.ad l
.RS 4
clock_getres, clock_gettime, clock_settime \- clock and time functions
.SH SYNOPSIS
.B #include <time.h>
-.sp
+.PP
.BI "int clock_getres(clockid_t " clk_id ", struct timespec *" res );
.BI "int clock_gettime(clockid_t " clk_id ", struct timespec *" tp );
.BI "int clock_settime(clockid_t " clk_id ", const struct timespec *" tp );
-.sp
+.PP
Link with \fI\-lrt\fP (only for glibc versions before 2.17).
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR clock_getres (),
.BR clock_gettime (),
.SH SYNOPSIS
.B #include <time.h>
.nf
-.sp
+.PP
.BI "int clock_nanosleep(clockid_t " clock_id ", int " flags ,
.BI " const struct timespec *" request ,
.BI " struct timespec *" remain );
.fi
-.sp
+.PP
Link with \fI\-lrt\fP (only for glibc versions before 2.17).
-.sp
+.PP
.ad l
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR clock_nanosleep ():
.RS 4
_POSIX_C_SOURCE\ >=\ 200112L
.SH SYNOPSIS
.nf
.B #include <unistd.h>
-.sp
+.PP
.BI "int close(int " fd );
.fi
.SH DESCRIPTION
.BR "#include <sys/types.h>" " /* See NOTES */"
.br
.B #include <sys/socket.h>
-.sp
+.PP
.BI "int connect(int " sockfd ", const struct sockaddr *" addr ,
.BI " socklen_t " addrlen );
.fi
.SH SYNOPSIS
.nf
.B #include <linux/module.h>
-.sp
+.PP
.BI "caddr_t create_module(const char *" name ", size_t " size );
.fi
.SH SYNOPSIS
.nf
.B #include <unistd.h>
-.sp
+.PP
.BI "int dup(int " oldfd );
.BI "int dup2(int " oldfd ", int " newfd );
-.sp
+.PP
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.BR "#include <fcntl.h>" " /* Obtain O_* constant definitions */
.B #include <unistd.h>
-.sp
+.PP
.BI "int dup3(int " oldfd ", int " newfd ", int " flags );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <sys/epoll.h>
-.sp
+.PP
.BI "int epoll_create(int " size );
.BI "int epoll_create1(int " flags );
.fi
epoll_ctl \- control interface for an epoll file descriptor
.SH SYNOPSIS
.B #include <sys/epoll.h>
-.sp
+.PP
.BI "int epoll_ctl(int " epfd ", int " op ", int " fd \
", struct epoll_event *" event );
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <sys/epoll.h>
-.sp
+.PP
.BI "int epoll_wait(int " epfd ", struct epoll_event *" events ,
.BI " int " maxevents ", int " timeout );
.BI "int epoll_pwait(int " epfd ", struct epoll_event *" events ,
eventfd \- create a file descriptor for event notification
.SH SYNOPSIS
.B #include <sys/eventfd.h>
-.sp
+.PP
.BI "int eventfd(unsigned int " initval ", int " flags );
.SH DESCRIPTION
.BR eventfd ()
execve \- execute program
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.BI "int execve(const char *" filename ", char *const " argv "[], "
.br
.BI " char *const " envp []);
execveat \- execute program relative to a directory file descriptor
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.BI "int execveat(int " dirfd ", const char *" pathname ","
.br
.BI " char *const " argv "[], char *const " envp "[],"
.SH SYNOPSIS
.nf
.B #include <linux/unistd.h>
-.sp
+.PP
.BI "void exit_group(int " status );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <sys/fanotify.h>
-.sp
+.PP
.BI "int fanotify_mark(int " fanotify_fd ", unsigned int " flags ,
.BI " uint64_t " mask ", int " dirfd \
", const char *" pathname );
flock \- apply or remove an advisory lock on an open file
.SH SYNOPSIS
.B #include <sys/file.h>
-.sp
+.PP
.BI "int flock(int " fd ", int " operation );
.SH DESCRIPTION
Apply or remove an advisory lock on the open file specified by
fork \- create a child process
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.B pid_t fork(void);
.SH DESCRIPTION
.BR fork ()
fsync, fdatasync \- synchronize a file's in-core state with storage device
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.BI "int fsync(int " fd );
-.sp
+.PP
.BI "int fdatasync(int " fd );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR fsync ():
Glibc 2.16 and later:
No feature test macros need be defined
futex \- fast user-space locking
.SH SYNOPSIS
.nf
-.sp
+.PP
.B "#include <linux/futex.h>"
.B "#include <sys/time.h>"
-.sp
+.PP
.BI "int futex(int *" uaddr ", int " futex_op ", int " val ,
.BI " const struct timespec *" timeout , \
" \fR /* or: \fBuint32_t \fIval2\fP */
.nf
.B #include <fcntl.h> /* Definition of AT_* constants */
.B #include <sys/time.h>
-.sp
+.PP
.BI "int futimesat(int " dirfd ", const char *" pathname ,
.BI " const struct timeval " times [2]);
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR futimesat ():
_GNU_SOURCE
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <linux/module.h>
-.sp
+.PP
.BI "int get_kernel_syms(struct kernel_sym *" table );
.fi
.SH SYNOPSIS
.B "#include <numaif.h>"
.nf
-.sp
+.PP
.BI "long get_mempolicy(int *" mode ", unsigned long *" nodemask ,
.BI " unsigned long " maxnode ", void *" addr ,
.BI " unsigned long " flags );
-.sp
+.PP
Link with \fI\-lnuma\fP.
.fi
.SH DESCRIPTION
.B #include <linux/futex.h>
.B #include <sys/types.h>
.B #include <syscall.h>
-.sp
+.PP
.BI "long get_robust_list(int " pid ", struct robust_list_head **" head_ptr ,
.BI " size_t *" len_ptr );
.BI "long set_robust_list(struct robust_list_head *" head ", size_t " len );
.SH SYNOPSIS
.nf
.B #include <linux/getcpu.h>
-.sp
+.PP
.BI "int getcpu(unsigned *" cpu ", unsigned *" node \
", struct getcpu_cache *" tcache );
.fi
getdomainname, setdomainname \- get/set NIS domain name
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.BI "int getdomainname(char *" name ", size_t " len );
.br
.BI "int setdomainname(const char *" name ", size_t " len );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR getdomainname (),
.BR setdomainname ():
.B #include <unistd.h>
.br
.B #include <sys/types.h>
-.sp
+.PP
.B gid_t getgid(void);
.br
.B gid_t getegid(void);
.B #include <sys/types.h>
.br
.B #include <unistd.h>
-.sp
+.PP
.BI "int getgroups(int " size ", gid_t " list []);
-.sp
+.PP
.B #include <grp.h>
-.sp
+.PP
.BI "int setgroups(size_t " size ", const gid_t *" list );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR setgroups ():
Since glibc 2.19:
_DEFAULT_SOURCE
gethostname, sethostname \- get/set hostname
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.BI "int gethostname(char *" name ", size_t " len );
.br
.BI "int sethostname(const char *" name ", size_t " len );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.PD 0
.BR gethostname ():
.SH SYNOPSIS
.nf
.B #include <sys/time.h>
-.sp
+.PP
.BI "int getitimer(int " which ", struct itimerval *" curr_value );
.br
.BI "int setitimer(int " which ", const struct itimerval *" new_value ,
getpagesize \- get memory page size
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.B int getpagesize(void);
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR getpagesize ():
.ad l
.RS 4
getpeername \- get name of connected peer socket
.SH SYNOPSIS
.B #include <sys/socket.h>
-.sp
+.PP
.BI "int getpeername(int " sockfd ", struct sockaddr *" addr \
", socklen_t *" addrlen );
.SH DESCRIPTION
.B #include <sys/types.h>
.br
.B #include <unistd.h>
-.sp
+.PP
.B pid_t getpid(void);
.br
.B pid_t getppid(void);
.B #include <sys/time.h>
.br
.B #include <sys/resource.h>
-.sp
+.PP
.BI "int getpriority(int " which ", id_t " who );
.br
.BI "int setpriority(int " which ", id_t " who ", int " prio );
getrandom \- obtain a series of random bytes
.SH SYNOPSIS
.B #include <sys/random.h>
-.sp
+.PP
.BI "int getrandom(void *"buf ", size_t " buflen ", unsigned int " flags );
.SH DESCRIPTION
The
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <unistd.h>
-.sp
+.PP
.BI "int getresuid(uid_t *" ruid ", uid_t *" euid ", uid_t *" suid );
.br
.BI "int getresgid(gid_t *" rgid ", gid_t *" egid ", gid_t *" sgid );
.B #include <sys/time.h>
.br
.B #include <sys/resource.h>
-.sp
+.PP
.BI "int getrlimit(int " resource ", struct rlimit *" rlim );
.br
.BI "int setrlimit(int " resource ", const struct rlimit *" rlim );
-.sp
+.PP
.BI "int prlimit(pid_t " pid ", int " resource \
", const struct rlimit *" new_limit ,
.br
.BI " struct rlimit *" old_limit );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR prlimit ():
_GNU_SOURCE
.SH DESCRIPTION
.B #include <sys/time.h>
.br
.B #include <sys/resource.h>
-.sp
+.PP
.BI "int getrusage(int " who ", struct rusage *" usage );
.SH DESCRIPTION
.PP
getsid \- get session ID
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.BI "pid_t getsid(pid_t" " pid" );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.PD 0
.BR getsid ():
.SH SYNOPSIS
.nf
.B #include <sys/socket.h>
-.sp
+.PP
.BI "int getsockname(int " sockfd ", struct sockaddr *" addr \
", socklen_t *" addrlen );
.fi
.BR "#include <sys/types.h>" " /* See NOTES */"
.br
.B #include <sys/socket.h>
-.sp
+.PP
.BI "int getsockopt(int " sockfd ", int " level ", int " optname ,
.BI " void *" optval ", socklen_t *" optlen );
.BI "int setsockopt(int " sockfd ", int " level ", int " optname ,
.SH SYNOPSIS
.nf
.B #include <sys/types.h>
-.sp
+.PP
.B pid_t gettid(void);
.fi
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR settimeofday ():
Since glibc 2.19:
_DEFAULT_SOURCE
.B #include <unistd.h>
.br
.B #include <sys/types.h>
-.sp
+.PP
.B uid_t getuid(void);
.br
.B uid_t geteuid(void);
.nf
.B #include <syscall.h>
.B #include <linux/unwind.h>
-.sp
+.PP
.BI "long getunwind(void " *buf ", size_t " buf_size );
.fi
.nf
.B #include <sys/types.h>
.B #include <sys/xattr.h>
-.sp
+.PP
.BI "ssize_t getxattr(const char\ *" path ", const char\ *" name ,
.BI " void\ *" value ", size_t " size );
.BI "ssize_t lgetxattr(const char\ *" path ", const char\ *" name ,
idle \- make process 0 idle
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.B int idle(void);
.SH DESCRIPTION
.BR idle ()
inotify_add_watch \- add a watch to an initialized inotify instance
.SH SYNOPSIS
.B #include <sys/inotify.h>
-.sp
+.PP
.BI "int inotify_add_watch(int " fd ", const char *" pathname ", uint32_t " mask );
.SH DESCRIPTION
.BR inotify_add_watch ()
.SH SYNOPSIS
.nf
.B #include <sys/inotify.h>
-.sp
+.PP
.B "int inotify_init(void);"
.BI "int inotify_init1(int " flags );
.fi
inotify_rm_watch \- remove an existing watch from an inotify instance
.SH SYNOPSIS
.B #include <sys/inotify.h>
-.sp
+.PP
.BI "int inotify_rm_watch(int " fd ", int " wd );
.\" Before glibc 2.10, the second argument was types as uint32_t.
.\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=7040
ioctl \- control device
.SH SYNOPSIS
.B #include <sys/ioctl.h>
-.sp
+.PP
.BI "int ioctl(int " fd ", unsigned long " request ", ...);"
.\" POSIX says 'request' is int, but glibc has the above
.\" See https://bugzilla.kernel.org/show_bug.cgi?id=42705
.B #include <linux/msdos_fs.h>
.br
.B #include <sys/ioctl.h>
-.sp
+.PP
.BI "int ioctl(int " fd ", FAT_IOCTL_GET_ATTRIBUTES, uint32_t *" attr );
.BI "int ioctl(int " fd ", FAT_IOCTL_SET_ATTRIBUTES, uint32_t *" attr );
.BI "int ioctl(int " fd ", FAT_IOCTL_GET_VOLUME_ID, uint32_t *" id );
.B #include <sys/ioctl.h>
.br
.B #include <linux/fs.h>
-.sp
+.PP
.BI "int ioctl(int " dest_fd ", FICLONERANGE, struct file_clone_range *" arg );
.br
.BI "int ioctl(int " dest_fd ", FICLONE, int " src_fd );
.B #include <sys/ioctl.h>
.br
.B #include <linux/fs.h>
-.sp
+.PP
.BI "int ioctl(int " src_fd ", FIDEDUPERANGE, struct file_dedupe_range *" arg );
.SH DESCRIPTION
If a filesystem supports files sharing physical storage between multiple
.B #include <linux/fs.h>
.br
.B #include <linux/fsmap.h>
-.sp
+.PP
.BI "int ioctl(int " fd ", FS_IOC_GETFSMAP, struct fsmap_head * " arg );
.SH DESCRIPTION
This
ioctl_tty \- ioctls for terminals and serial lines
.SH SYNOPSIS
.B "#include <termios.h>"
-.sp
+.PP
.BI "int ioctl(int " fd ", int " cmd ", ...);"
.SH DESCRIPTION
The
.SH SYNOPSIS
.B #include <sys/io.h>
/* for glibc */
-.sp
+.PP
.BI "int ioperm(unsigned long " from ", unsigned long " num ", int " turn_on );
.SH DESCRIPTION
.BR ioperm ()
iopl \- change I/O privilege level
.SH SYNOPSIS
.B #include <sys/io.h>
-.sp
+.PP
.BI "int iopl(int " level );
.SH DESCRIPTION
.BR iopl ()
.nf
.B #include <sys/types.h>
.B #include <keyutils.h>
-.sp
+.PP
.BI "long keyctl(int " operation ", ...)"
-.sp
+.PP
.B "/* For direct call via syscall(2): */"
.B #include <asm/unistd.h>
.B #include <linux/keyctl.h>
.B #include <unistd.h>
-.sp
+.PP
.BI "long syscall(__NR_keyctl, int " operation ", __kernel_ulong_t " arg2 ,
.BI " __kernel_ulong_t " arg3 ", __kernel_ulong_t " arg4 ,
.BI " __kernel_ulong_t " arg5 );
.B #include <sys/types.h>
.br
.B #include <signal.h>
-.sp
+.PP
.BI "int kill(pid_t " pid ", int " sig );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR kill ():
_POSIX_C_SOURCE
.SH SYNOPSIS
.nf
.B #include <unistd.h>
-.sp
+.PP
.BI "int link(const char *" oldpath ", const char *" newpath );
-.sp
+.PP
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.B #include <unistd.h>
-.sp
+.PP
.BI "int linkat(int " olddirfd ", const char *" oldpath ,
.BI " int " newdirfd ", const char *" newpath ", int " flags );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR linkat ():
.PD 0
.ad l
.BR "#include <sys/types.h>" " /* See NOTES */"
.br
.B #include <sys/socket.h>
-.sp
+.PP
.BI "int listen(int " sockfd ", int " backlog );
.fi
.SH DESCRIPTION
.nf
.B #include <sys/types.h>
.B #include <sys/xattr.h>
-.sp
+.PP
.BI "ssize_t listxattr(const char\ *" path ", char\ *" list \
", size_t " size );
.BI "ssize_t llistxattr(const char\ *" path ", char\ *" list \
.nf
.B #include <sys/types.h>
.B #include <unistd.h>
-.sp
+.PP
.BI "int _llseek(unsigned int " fd ", unsigned long " offset_high ,
.BI " unsigned long " offset_low ", loff_t *" result ,
.BI " unsigned int " whence );
.B #include <sys/types.h>
.br
.B #include <unistd.h>
-.sp
+.PP
.BI "off_t lseek(int " fd ", off_t " offset ", int " whence );
.SH DESCRIPTION
The
madvise \- give advice about use of memory
.SH SYNOPSIS
.B #include <sys/mman.h>
-.sp
+.PP
.BI "int madvise(void *" addr ", size_t " length ", int " advice );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR madvise ():
.PD 0
.RS 4
.SH SYNOPSIS
.nf
.B "#include <numaif.h>"
-.sp
+.PP
.BI "long mbind(void *" addr ", unsigned long " len ", int " mode ,
.BI " const unsigned long *" nodemask ", unsigned long " maxnode ,
.BI " unsigned " flags );
-.sp
+.PP
Link with \fI\-lnuma\fP.
.fi
.SH DESCRIPTION
membarrier \- issue memory barriers on a set of threads
.SH SYNOPSIS
.B #include <linux/membarrier.h>
-.sp
+.PP
.BI "int membarrier(int " cmd ", int " flags ");
.SH DESCRIPTION
The
memfd_create \- create an anonymous file
.SH SYNOPSIS
.B #include <sys/memfd.h>
-.sp
+.PP
.BI "int memfd_create(const char *" name ", unsigned int " flags ");"
.IR Note :
.SH SYNOPSIS
.nf
.B #include <numaif.h>
-.sp
+.PP
.BI "long migrate_pages(int " pid ", unsigned long " maxnode,
.BI " const unsigned long *" old_nodes,
.BI " const unsigned long *" new_nodes );
.fi
-.sp
+.PP
Link with \fI\-lnuma\fP.
.SH DESCRIPTION
.BR migrate_pages ()
.B #include <unistd.h>
.br
.B #include <sys/mman.h>
-.sp
+.PP
.BI "int mincore(void *" addr ", size_t " length ", unsigned char *" vec );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR mincore ():
Since glibc 2.19:
_DEFAULT_SOURCE
.B #include <sys/stat.h>
.B #include <sys/types.h>
.\" .B #include <unistd.h>
-.sp
+.PP
.BI "int mkdir(const char *" pathname ", mode_t " mode );
-.sp
+.PP
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.B #include <sys/stat.h>
-.sp
+.PP
.BI "int mkdirat(int " dirfd ", const char *" pathname ", mode_t " mode );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR mkdirat ():
.PD 0
.ad l
.B #include <sys/stat.h>
.B #include <fcntl.h>
.B #include <unistd.h>
-.sp
+.PP
.BI "int mknod(const char *" pathname ", mode_t " mode ", dev_t " dev );
-.sp
+.PP
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.B #include <sys/stat.h>
-.sp
+.PP
.BI "int mknodat(int " dirfd ", const char *" pathname ", mode_t " mode \
", dev_t " dev );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR mknod ():
.ad l
.RS 4
.SH SYNOPSIS
.nf
.B #include <sys/mman.h>
-.sp
+.PP
.BI "int mlock(const void *" addr ", size_t " len );
.BI "int mlock2(const void *" addr ", size_t " len ", int " flags );
.BI "int munlock(const void *" addr ", size_t " len );
-.sp
+.PP
.BI "int mlockall(int " flags );
.B int munlockall(void);
.fi
.SH SYNOPSIS
.nf
.B #include <sys/mman.h>
-.sp
+.PP
.BI "void *mmap(void *" addr ", size_t " length \
", int " prot ", int " flags ,
.BI " int " fd ", off_t " offset );
.SH SYNOPSIS
.nf
.B #include <sys/mman.h>
-.sp
+.PP
.BI "void *mmap2(void *" addr ", size_t " length ", int " prot ,
.BI " int " flags ", int " fd ", off_t " pgoffset );
.fi
.SH SYNOPSIS
.nf
.B #include <sys/types.h>
-.sp
+.PP
.BI "int modify_ldt(int " func ", void *" ptr ", unsigned long " bytecount );
.fi
.PP
.SH SYNOPSIS
.nf
.B "#include <sys/mount.h>"
-.sp
+.PP
.BI "int mount(const char *" source ", const char *" target ,
.BI " const char *" filesystemtype ", unsigned long " mountflags ,
.BI " const void *" data );
.SH SYNOPSIS
.nf
.B #include <numaif.h>
-.sp
+.PP
.BI "long move_pages(int " pid ", unsigned long count, void **" pages ,
.BI " const int *" nodes ", int *" status ", int " flags );
.fi
-.sp
+.PP
Link with \fI\-lnuma\fP.
.SH DESCRIPTION
.BR move_pages ()
.SH SYNOPSIS
.nf
.B #include <sys/mman.h>
-.sp
+.PP
.BI "int mprotect(void *" addr ", size_t " len ", int " prot );
.BI "int pkey_mprotect(void *" addr ", size_t " len ", int " prot ", int " pkey ");
.fi
.nf
.B #include <sys/types.h>
.B #include <mqueue.h>
-.sp
+.PP
.BI "int mq_getsetattr(mqd_t " mqdes ", struct mq_attr *" newattr ","
.BI " struct mq_attr *" oldattr );
.fi
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <sys/mman.h>
-.sp
+.PP
.BI "void *mremap(void *" old_address ", size_t " old_size ,
.BI " size_t " new_size ", int " flags ", ... /* void *" new_address " */);"
.fi
.B #include <sys/types.h>
.B #include <sys/ipc.h>
.B #include <sys/msg.h>
-.sp
+.PP
.BI "int msgsnd(int " msqid ", const void *" msgp ", size_t " msgsz \
", int " msgflg );
-.sp
+.PP
.BI "ssize_t msgrcv(int " msqid ", void *" msgp ", size_t " msgsz \
", long " msgtyp ,
.BI " int " msgflg );
msync \- synchronize a file with a memory map
.SH SYNOPSIS
.B #include <sys/mman.h>
-.sp
+.PP
.BI "int msync(void *" addr ", size_t " length ", int " flags );
.SH DESCRIPTION
.BR msync ()
nanosleep \- high-resolution sleep
.SH SYNOPSIS
.B #include <time.h>
-.sp
+.PP
.BI "int nanosleep(const struct timespec *" req ", struct timespec *" rem );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR nanosleep ():
_POSIX_C_SOURCE\ >=\ 199309L
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <linux/nfsd/syscall.h>
-.sp
+.PP
.BI "long nfsservctl(int " cmd ", struct nfsctl_arg *" argp ,
.BI " union nfsctl_res *" resp );
.fi
nice \- change process priority
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.BI "int nice(int " inc );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR nice ():
_XOPEN_SOURCE
|| /* Since glibc 2.19: */ _DEFAULT_SOURCE
pause \- wait for signal
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.B int pause(void);
.SH DESCRIPTION
.BR pause ()
.SH SYNOPSIS
.nf
.B #include <pci.h>
-.sp
+.PP
.BI "int pciconfig_read(unsigned long " bus ", unsigned long " dfn ,
.BI " unsigned long " off ", unsigned long " len ", void *" buf );
.BI "int pciconfig_write(unsigned long " bus ", unsigned long " dfn ,
.nf
.B #include <linux/perf_event.h>
.B #include <linux/hw_breakpoint.h>
-.sp
+.PP
.BI "int perf_event_open(struct perf_event_attr *" attr ,
.BI " pid_t " pid ", int " cpu ", int " group_fd ,
.BI " unsigned long " flags );
.nf
.B #include <syscall.h>
.B #include <perfmon.h>
-.sp
+.PP
.BI "long perfmonctl(int " fd ", int " cmd ", void *" arg ", int " narg ");
.fi
.IR Note :
personality \- set the process execution domain
.SH SYNOPSIS
.B #include <sys/personality.h>
-.sp
+.PP
.BI "int personality(unsigned long " persona );
.SH DESCRIPTION
Linux supports different execution domains, or personalities, for each
.SH SYNOPSIS
.nf
.B #include <sys/mman.h>
-.sp
+.PP
.BI "int pkey_alloc(unsigned long " flags ", unsigned long " access_rights ");"
.BI "int pkey_free(int " pkey ");"
.fi
.SH SYNOPSIS
.nf
.B #include <poll.h>
-.sp
+.PP
.BI "int poll(struct pollfd *" fds ", nfds_t " nfds ", int " timeout );
-.sp
+.PP
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <signal.h>
.B #include <poll.h>
-.sp
+.PP
.BI "int ppoll(struct pollfd *" fds ", nfds_t " nfds ", "
.BI " const struct timespec *" tmo_p ", const sigset_t *" sigmask );
.fi
.SH SYNOPSIS
.nf
.B #include <fcntl.h>
-.sp
+.PP
.BI "int posix_fadvise(int " fd ", off_t " offset ", off_t " len \
", int " advice ");"
.fi
-.sp
+.PP
.ad l
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR posix_fadvise ():
.RS 4
_POSIX_C_SOURCE\ >=\ 200112L
.SH SYNOPSIS
.nf
.B #include <sys/prctl.h>
-.sp
+.PP
.BI "int prctl(int " option ", unsigned long " arg2 ", unsigned long " arg3 ,
.BI " unsigned long " arg4 ", unsigned long " arg5 );
.fi
pread, pwrite \- read from or write to a file descriptor at a given offset
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.BI "ssize_t pread(int " fd ", void *" buf ", size_t " count \
", off_t " offset );
-.sp
+.PP
.BI "ssize_t pwrite(int " fd ", const void *" buf ", size_t " count \
", off_t " offset );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
+.PP
.PD 0
.ad l
-.sp
.BR pread (),
.BR pwrite ():
.RS 4
.BI " unsigned long " riovcnt ,
.BI " unsigned long " flags ");"
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR process_vm_readv (),
.BR process_vm_writev ():
.PD 0
.SH SYNOPSIS
.nf
.B #include <sys/ptrace.h>
-.sp
+.PP
.BI "long ptrace(enum __ptrace_request " request ", pid_t " pid ", "
.BI " void *" addr ", void *" data );
.fi
.SH SYNOPSIS
.nf
.B #include <linux/module.h>
-.sp
+.PP
.BI "int query_module(const char *" name ", int " which ", void *" buf ,
.BI " size_t " bufsize ", size_t *" ret );
.fi
.SH SYNOPSIS
.nf
.B #include <unistd.h>
-.sp
+.PP
.BI "ssize_t read(int " fd ", void *" buf ", size_t " count );
.fi
.SH DESCRIPTION
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <fcntl.h>
-.sp
+.PP
.BI "ssize_t readahead(int " fd ", off64_t " offset ", size_t " count );
.fi
.SH DESCRIPTION
readdir \- read directory entry
.SH SYNOPSIS
.nf
-.sp
+.PP
.BI "int readdir(unsigned int " fd ", struct old_linux_dirent *" dirp ","
.BI " unsigned int " count );
.fi
.SH SYNOPSIS
.nf
.B #include <sys/uio.h>
-.sp
+.PP
.BI "ssize_t readv(int " fd ", const struct iovec *" iov ", int " iovcnt );
-.sp
+.PP
.BI "ssize_t writev(int " fd ", const struct iovec *" iov ", int " iovcnt );
-.sp
+.PP
.BI "ssize_t preadv(int " fd ", const struct iovec *" iov ", int " iovcnt ,
.BI " off_t " offset );
-.sp
+.PP
.BI "ssize_t pwritev(int " fd ", const struct iovec *" iov ", int " iovcnt ,
.BI " off_t " offset );
-.sp
+.PP
.BI "ssize_t preadv2(int " fd ", const struct iovec *" iov ", int " iovcnt ,
.BI " off_t " offset ", int " flags );
-.sp
+.PP
.BI "ssize_t pwritev2(int " fd ", const struct iovec *" iov ", int " iovcnt ,
.BI " off_t " offset ", int " flags );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR preadv (),
.BR pwritev ():
Since glibc 2.19:
.SH SYNOPSIS
/* Since kernel version 2.1.30 there are symbolic names LINUX_REBOOT_*
for the constants and a fourth argument to the call: */
-.sp
+.PP
.B #include <unistd.h>
.br
.B #include <linux/reboot.h>
-.sp
+.PP
.BI "int reboot(int " magic ", int " magic2 ", int " cmd ", void *" arg );
-.sp
+.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
wrapper around the system call: */
-.sp
+.PP
.B #include <unistd.h>
.br
.B #include <sys/reboot.h>
-.sp
+.PP
.BI "int reboot(int " cmd );
.SH DESCRIPTION
The
.B #include <sys/types.h>
.br
.B #include <sys/socket.h>
-.sp
+.PP
.BI "ssize_t recv(int " sockfd ", void *" buf ", size_t " len ", int " flags );
-.sp
+.PP
.BI "ssize_t recvfrom(int " sockfd ", void *" buf ", size_t " len ", int " flags ,
.BI " struct sockaddr *" src_addr ", socklen_t *" addrlen );
-.sp
+.PP
.BI "ssize_t recvmsg(int " sockfd ", struct msghdr *" msg ", int " flags );
.fi
.SH DESCRIPTION
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <sys/mman.h>
-.sp
+.PP
.BI "int remap_file_pages(void *" addr ", size_t " size ", int " prot ,
.BI " size_t " pgoff ", int " flags );
.fi
.nf
.B #include <sys/types.h>
.B #include <sys/xattr.h>
-.sp
+.PP
.BI "int removexattr(const char\ *" path ", const char\ *" name );
.BI "int lremovexattr(const char\ *" path ", const char\ *" name );
.BI "int fremovexattr(int " fd ", const char\ *" name );
.SH SYNOPSIS
.nf
.B #include <stdio.h>
-.sp
+.PP
.BI "int rename(const char *" oldpath ", const char *" newpath );
-.sp
+.PP
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.B #include <stdio.h>
-.sp
+.PP
.BI "int renameat(int " olddirfd ", const char *" oldpath ,
.BI " int " newdirfd ", const char *" newpath );
There is no glibc wrapper for
.BR renameat2 ();
see NOTES.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR renameat ():
.PD 0
.ad l
.nf
.B #include <sys/types.h>
.B #include <keyutils.h>
-.sp
+.PP
.BI "key_serial_t request_key(const char *" type ", const char *" description ,
.BI " const char *" callout_info ,
.BI " key_serial_t " dest_keyring ");"
rmdir \- delete a directory
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.BI "int rmdir(const char *" pathname );
.SH DESCRIPTION
.BR rmdir ()
.SH SYNOPSIS
.nf
.BI "int rt_sigqueueinfo(pid_t " tgid ", int " sig ", siginfo_t *" uinfo );
-.sp
+.PP
.BI "int rt_tgsigqueueinfo(pid_t " tgid ", pid_t " tid ", int " sig ,
.BI " siginfo_t *" uinfo );
.fi
sched_get_priority_max, sched_get_priority_min \- get static priority range
.SH SYNOPSIS
.B #include <sched.h>
-.sp
+.PP
.BI "int sched_get_priority_max(int " policy );
-.sp
+.PP
.BI "int sched_get_priority_min(int " policy );
.SH DESCRIPTION
.BR sched_get_priority_max ()
sched_rr_get_interval \- get the SCHED_RR interval for the named process
.SH SYNOPSIS
.B #include <sched.h>
-.sp
+.PP
.BI "int sched_rr_get_interval(pid_t " pid ", struct timespec *" tp );
.SH DESCRIPTION
.BR sched_rr_get_interval ()
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <sched.h>
-.sp
+.PP
.BI "int sched_setaffinity(pid_t " pid ", size_t " cpusetsize ,
.BI " const cpu_set_t *" mask );
-.sp
+.PP
.BI "int sched_getaffinity(pid_t " pid ", size_t " cpusetsize ,
.BI " cpu_set_t *" mask );
.fi
.SH SYNOPSIS
.nf
.B #include <sched.h>
-.sp
+.PP
.BI "int sched_setparam(pid_t " pid ", const struct sched_param *" param );
-.sp
+.PP
.BI "int sched_getparam(pid_t " pid ", struct sched_param *" param );
-.sp
+.PP
\fBstruct sched_param {
...
int \fIsched_priority\fB;
.SH SYNOPSIS
.nf
.B #include <sched.h>
-.sp
+.PP
.BI "int sched_setscheduler(pid_t " pid ", int " policy ,
.br
.BI " const struct sched_param *" param );
-.sp
+.PP
.BI "int sched_getscheduler(pid_t " pid );
.fi
.SH DESCRIPTION
sched_yield \- yield the processor
.SH SYNOPSIS
.B #include <sched.h>
-.sp
+.PP
.B int sched_yield(void);
.SH DESCRIPTION
.BR sched_yield ()
/* According to POSIX.1-2001, POSIX.1-2008 */
.br
.B #include <sys/select.h>
-.sp
+.PP
/* According to earlier standards */
.br
.B #include <sys/time.h>
.B #include <sys/types.h>
.br
.B #include <unistd.h>
-.sp
+.PP
.BI "int select(int " nfds ", fd_set *" readfds ", fd_set *" writefds ,
.BI " fd_set *" exceptfds ", struct timeval *" timeout );
-.sp
+.PP
.BI "void FD_CLR(int " fd ", fd_set *" set );
.br
.BI "int FD_ISSET(int " fd ", fd_set *" set );
.BI "void FD_SET(int " fd ", fd_set *" set );
.br
.BI "void FD_ZERO(fd_set *" set );
-.sp
+.PP
.B #include <sys/select.h>
-.sp
+.PP
.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
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR pselect ():
_POSIX_C_SOURCE\ >=\ 200112L
.SH DESCRIPTION
/* According to POSIX.1-2001, POSIX.1-2008 */
.br
.B #include <sys/select.h>
-.sp
+.PP
/* According to earlier standards */
.br
.B #include <sys/time.h>
.B #include <sys/types.h>
.br
.B #include <unistd.h>
-.sp
+.PP
.BI "int select(int " nfds ", fd_set *" readfds ", fd_set *" writefds ,
.BI " fd_set *" exceptfds ", struct timeval *" utimeout );
-.sp
+.PP
.BI "void FD_CLR(int " fd ", fd_set *" set );
.br
.BI "int FD_ISSET(int " fd ", fd_set *" set );
.BI "void FD_SET(int " fd ", fd_set *" set );
.br
.BI "void FD_ZERO(fd_set *" set );
-.sp
+.PP
.B #include <sys/select.h>
-.sp
+.PP
.BI "int pselect(int " nfds ", fd_set *" readfds ", fd_set *" writefds ,
.BI " fd_set *" exceptfds ", const struct timespec *" ntimeout ,
.BI " const sigset_t *" sigmask );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR pselect ():
_POSIX_C_SOURCE\ >=\ 200112L
.SH DESCRIPTION
.B #include <sys/types.h>
.B #include <sys/ipc.h>
.B #include <sys/sem.h>
-.sp
+.PP
.BI "int semctl(int " semid ", int " semnum ", int " cmd ", ...);"
.fi
.SH DESCRIPTION
.B #include <sys/ipc.h>
.B #include <sys/sem.h>
.fi
-.sp
+.PP
.BI "int semget(key_t " key ,
.BI "int " nsems ,
.BI "int " semflg );
.B #include <sys/types.h>
.B #include <sys/ipc.h>
.B #include <sys/sem.h>
-.sp
+.PP
.BI "int semop(int " semid ", struct sembuf *" sops ", size_t " nsops );
-.sp
+.PP
.BI "int semtimedop(int " semid ", struct sembuf *" sops ", size_t " nsops ,
.BI " const struct timespec *" timeout );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR semtimedop ():
_GNU_SOURCE
.SH DESCRIPTION
.nf
.B #include <sys/types.h>
.B #include <sys/socket.h>
-.sp
+.PP
.BI "ssize_t send(int " sockfd ", const void *" buf ", size_t " len \
", int " flags );
sendfile \- transfer data between file descriptors
.SH SYNOPSIS
.B #include <sys/sendfile.h>
-.sp
+.PP
.BI "ssize_t sendfile(int" " out_fd" ", int" " in_fd" ", off_t *" \
offset ", size_t" " count" );
.\" The below is too ugly. Comments about glibc versions belong
.SH SYNOPSIS
.nf
.B "#include <numaif.h>"
-.sp
+.PP
.BI "long set_mempolicy(int " mode ", const unsigned long *" nodemask ,
.BI " unsigned long " maxnode );
-.sp
+.PP
Link with \fI\-lnuma\fP.
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <linux/unistd.h>
-.sp
+.PP
.BI "long set_tid_address(int *" tidptr );
.fi
.B #include <sys/types.h>
.br
.B #include <unistd.h>
-.sp
+.PP
.BI "int seteuid(uid_t " euid );
.br
.BI "int setegid(gid_t " egid );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR seteuid (),
.BR setegid ():
setfsgid \- set group identity used for filesystem checks
.SH SYNOPSIS
.B #include <sys/fsuid.h>
-.sp
+.PP
.BI "int setfsgid(uid_t " fsgid );
.SH DESCRIPTION
The system call
setfsuid \- set user identity used for filesystem checks
.SH SYNOPSIS
.B #include <sys/fsuid.h>
-.sp
+.PP
.BI "int setfsuid(uid_t " fsuid );
.SH DESCRIPTION
The system call
.B #include <sys/types.h>
.br
.B #include <unistd.h>
-.sp
+.PP
.BI "int setgid(gid_t " gid );
.SH DESCRIPTION
.BR setgid ()
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <sched.h>
-.sp
+.PP
.BI "int setns(int " fd ", int " nstype );
.fi
.SH DESCRIPTION
setpgid, getpgid, setpgrp, getpgrp \- set/get process group
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.BI "int setpgid(pid_t " pid ", pid_t " pgid );
.br
.BI "pid_t getpgid(pid_t " pid );
-.sp
+.PP
.BR "pid_t getpgrp(void);" " /* POSIX.1 version */"
.br
.BI "pid_t getpgrp(pid_t " pid ");\ \ \ \ \ \ \ \ \ \ \ "
/* BSD version */
-.sp
+.PP
.BR "int setpgrp(void);" " /* System V version */"
.br
.BI "int setpgrp(pid_t " pid ", pid_t " pgid ");\ "
/* BSD version */
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
-.PD 0
.BR getpgid ():
.RS 4
_XOPEN_SOURCE\ >=\ 500
.br
|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\ >=\ 200809L
.RE
-.sp
+.PP
.BR setpgrp "() (POSIX.1):"
.nf
_XOPEN_SOURCE\ >=\ 500
|| /* Since glibc 2.19: */ _DEFAULT_SOURCE
|| /* Glibc versions <= 2.19: */ _SVID_SOURCE
.fi
-.sp
+.PP
.BR setpgrp "()\ (BSD),"
.BR getpgrp "()\ (BSD):"
.nf
!\ (_POSIX_SOURCE || _POSIX_C_SOURCE || _XOPEN_SOURCE ||
_GNU_SOURCE || _SVID_SOURCE)
.fi
-.PD
.ad
.SH DESCRIPTION
All of these interfaces are available on Linux,
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <unistd.h>
-.sp
+.PP
.BI "int setresuid(uid_t " ruid ", uid_t " euid ", uid_t " suid );
.br
.BI "int setresgid(gid_t " rgid ", gid_t " egid ", gid_t " sgid );
.B #include <sys/types.h>
.br
.B #include <unistd.h>
-.sp
+.PP
.BI "int setreuid(uid_t " ruid ", uid_t " euid );
.br
.BI "int setregid(gid_t " rgid ", gid_t " egid );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR setreuid (),
.BR setregid ():
.RS 4
.SH SYNOPSIS
.ad l
.B #include <unistd.h>
-.sp
+.PP
.B pid_t setsid(void);
.br
.ad b
.B #include <sys/types.h>
.br
.B #include <unistd.h>
-.sp
+.PP
.BI "int setuid(uid_t " uid );
.SH DESCRIPTION
.BR setuid ()
setup \- setup devices and filesystems, mount root filesystem
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.B int setup(void);
.SH DESCRIPTION
.BR setup ()
.nf
.B #include <sys/types.h>
.B #include <sys/xattr.h>
-.sp
+.PP
.BI "int setxattr(const char\ *" path ", const char\ *" name ,
.BI " const void\ *" value ", size_t " size ", int " flags );
.BI "int lsetxattr(const char\ *" path ", const char\ *" name ,
sgetmask, ssetmask \- manipulation of signal mask (obsolete)
.SH SYNOPSIS
.B "long sgetmask(void);"
-.sp
+.PP
.BI "long ssetmask(long " newmask );
.IR Note :
.B #include <sys/ipc.h>
.br
.B #include <sys/shm.h>
-.sp
+.PP
.BI "int shmctl(int " shmid ", int " cmd ", struct shmid_ds *" buf );
.ad b
.SH DESCRIPTION
.B #include <sys/ipc.h>
.br
.B #include <sys/shm.h>
-.sp
+.PP
.BI "int shmget(key_t " key ", size_t " size ", int " shmflg );
.ad b
.SH DESCRIPTION
shutdown \- shut down part of a full-duplex connection
.SH SYNOPSIS
.B #include <sys/socket.h>
-.sp
+.PP
.BI "int shutdown(int " sockfd ", int " how );
.SH DESCRIPTION
The
.SH SYNOPSIS
.nf
.B #include <signal.h>
-.sp
+.PP
.BI "int sigaction(int " signum ", const struct sigaction *" act ,
.BI " struct sigaction *" oldact );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR sigaction ():
_POSIX_C_SOURCE
sigaltstack \- set and/or get signal stack context
.SH SYNOPSIS
.B #include <signal.h>
-.sp
+.PP
.BI "int sigaltstack(const stack_t *" ss ", stack_t *" old_ss );
.PP
.in -4n
sigpending, rt_sigpending \- examine pending signals
.SH SYNOPSIS
.B #include <signal.h>
-.sp
+.PP
.BI "int sigpending(sigset_t *" set );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR sigpending ():
_POSIX_C_SOURCE
sigprocmask, rt_sigprocmask \- examine and change blocked signals
.SH SYNOPSIS
.B #include <signal.h>
-.sp
+.PP
.nf
/* Prototype for the glibc wrapper function */
.BI "int sigprocmask(int " how ", const sigset_t *" set ", sigset_t *" oldset );
.BI " old_kernel_sigset_t *" oldset ); "
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR sigprocmask ():
_POSIX_C_SOURCE
sigsuspend, rt_sigsuspend \- wait for a signal
.SH SYNOPSIS
.B #include <signal.h>
-.sp
+.PP
.BI "int sigsuspend(const sigset_t *" mask );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR sigsuspend ():
_POSIX_C_SOURCE
.SH SYNOPSIS
.nf
.B #include <signal.h>
-.sp
+.PP
.BI "int sigwaitinfo(const sigset_t *" set ", siginfo_t *" info ");"
-.sp
+.PP
.BI "int sigtimedwait(const sigset_t *" set ", siginfo_t *" info ", "
.BI " const struct timespec *" timeout ");"
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR sigwaitinfo (),
.BR sigtimedwait ():
_POSIX_C_SOURCE\ >=\ 199309L
.BR "#include <sys/types.h>" " /* See NOTES */"
.br
.B #include <sys/socket.h>
-.sp
+.PP
.BI "int socket(int " domain ", int " type ", int " protocol );
.SH DESCRIPTION
.BR socket ()
socketcall \- socket system calls
.SH SYNOPSIS
.B #include <linux/net.h>
-.sp
+.PP
.BI "int socketcall(int " call ", unsigned long *" args );
.SH DESCRIPTION
.BR socketcall ()
.BR "#include <sys/types.h>" " /* See NOTES */"
.br
.B #include <sys/socket.h>
-.sp
+.PP
.BI "int socketpair(int " domain ", int " type ", int " protocol \
", int " sv [2]);
.SH DESCRIPTION
.B #include <sys/stat.h>
.br
.B #include <unistd.h>
-.sp
+.PP
.BI "int stat(const char *" pathname ", struct stat *" statbuf );
.br
.BI "int fstat(int " fd ", struct stat *" statbuf );
.br
.BI "int lstat(const char *" pathname ", struct stat *" statbuf );
-.sp
+.PP
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.B #include <sys/stat.h>
-.sp
+.PP
.BI "int fstatat(int " dirfd ", const char *" pathname ", struct stat *" \
statbuf ,
.BI " int " flags );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
+.PP
.ad l
-.PD 0
-.sp
.BR lstat ():
.RS 4
/* glibc 2.19 and earlier */ _BSD_SOURCE
.br
|| /* Since glibc 2.10: */ _POSIX_C_SOURCE\ >=\ 200112L
.RE
-.sp
+.PP
.BR fstatat ():
-.PD 0
.ad l
.RS 4
+.PD 0
.TP 4
Since glibc 2.10:
_POSIX_C_SOURCE\ >=\ 200809L
statfs, fstatfs \- get filesystem statistics
.SH SYNOPSIS
.BR "#include <sys/vfs.h> " "/* or <sys/statfs.h> */"
-.sp
+.PP
.BI "int statfs(const char *" path ", struct statfs *" buf );
.br
.BI "int fstatfs(int " fd ", struct statfs *" buf );
stime \- set time
.SH SYNOPSIS
.B #include <time.h>
-.sp
+.PP
.BI "int stime(const time_t *" t );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR stime ():
Since glibc 2.19:
_DEFAULT_SOURCE
.B #include <unistd.h>
.br
.B #include <sys/swap.h>
-.sp
+.PP
.BI "int swapon(const char *" path ", int " swapflags );
.br
.BI "int swapoff(const char *" path );
.SH SYNOPSIS
.nf
.B #include <unistd.h>
-.sp
+.PP
.BI "int symlink(const char *" target ", const char *" linkpath );
-.sp
+.PP
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.B #include <unistd.h>
-.sp
+.PP
.BI "int symlinkat(const char *" target ", int " newdirfd \
", const char *" linkpath );
-.sp
+.PP
.fi
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR symlink ():
.RS 4
.\" || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE
.RE
-.sp
+.PP
.BR symlinkat ():
.PD 0
.ad l
sync, syncfs \- commit filesystem caches to disk
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.B void sync(void);
-.sp
+.PP
.BI "int syncfs(int " fd );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR sync ():
.ad l
.RS 4
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE
.RE
.ad
-.sp
+.PP
.BR syncfs ():
.ad l
.RS 4
.B #include <unistd.h>
.br
.B #include <linux/sysctl.h>
-.sp
+.PP
.BI "int _sysctl(struct __sysctl_args *" args );
.fi
sysinfo \- return system information
.SH SYNOPSIS
.B #include <sys/sysinfo.h>
-.sp
+.PP
.BI "int sysinfo(struct sysinfo *" info );
.SH DESCRIPTION
.BR sysinfo ()
.nf
.BI "int syslog(int " type ", char *" bufp ", int " len );
.B " /* No wrapper provided in glibc */"
-.sp
+.PP
/* The glibc interface */
.br
.B "#include <sys/klog.h>"
-.sp
+.PP
.BI "int klogctl(int " type ", char *" bufp ", int " len );
.fi
.SH DESCRIPTION
time \- get time in seconds
.SH SYNOPSIS
.B #include <time.h>
-.sp
+.PP
.BI "time_t time(time_t *" tloc );
.SH DESCRIPTION
.BR time ()
.fi
Link with \fI\-lrt\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR timer_create ():
_POSIX_C_SOURCE\ >=\ 199309L
.SH DESCRIPTION
.fi
Link with \fI\-lrt\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR timer_delete ():
_POSIX_C_SOURCE\ >=\ 199309L
.SH DESCRIPTION
.fi
Link with \fI\-lrt\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR timer_getoverrun ():
_POSIX_C_SOURCE\ >=\ 199309L
.SH DESCRIPTION
.fi
Link with \fI\-lrt\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR timer_settime (),
.BR timer_gettime ():
_POSIX_C_SOURCE\ >=\ 199309L
.SH SYNOPSIS
.nf
.B #include <sys/timerfd.h>
-.sp
+.PP
.BI "int timerfd_create(int " clockid ", int " flags );
-.sp
+.PP
.BI "int timerfd_settime(int " fd ", int " flags ,
.BI " const struct itimerspec *" new_value ,
.BI " struct itimerspec *" old_value );
-.sp
+.PP
.BI "int timerfd_gettime(int " fd ", struct itimerspec *" curr_value );
.fi
.SH DESCRIPTION
times \- get process times
.SH SYNOPSIS
.B #include <sys/times.h>
-.sp
+.PP
.BI "clock_t times(struct tms *" buf );
.SH DESCRIPTION
.BR times ()
.SH SYNOPSIS
.nf
.BI "int tkill(int " tid ", int " sig );
-.sp
+.PP
.BI "int tgkill(int " tgid ", int " tid ", int " sig );
.fi
.B #include <unistd.h>
.br
.B #include <sys/types.h>
-.sp
+.PP
.BI "int truncate(const char *" path ", off_t " length );
.br
.BI "int ftruncate(int " fd ", off_t " length );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
.ad l
-.PD 0
-.sp
+.PP
.BR truncate ():
.RS 4
_XOPEN_SOURCE\ >=\ 500
|| /* Since glibc 2.12: */ _POSIX_C_SOURCE\ >=\ 200809L
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE
.RE
-.sp
+.PP
.BR ftruncate ():
.RS 4
_XOPEN_SOURCE\ >=\ 500
|| /* Since glibc 2.3.5: */ _POSIX_C_SOURCE\ >=\ 200112L
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE
.RE
-.PD
.ad b
.SH DESCRIPTION
The
.B #include <sys/types.h>
.br
.B #include <sys/stat.h>
-.sp
+.PP
.BI "mode_t umask(mode_t " mask );
.SH DESCRIPTION
.BR umask ()
.SH SYNOPSIS
.nf
.B "#include <sys/mount.h>"
-.sp
+.PP
.BI "int umount(const char *" target );
-.sp
+.PP
.BI "int umount2(const char *" target ", int " flags );
.fi
.SH DESCRIPTION
uname \- get name and information about current kernel
.SH SYNOPSIS
.B #include <sys/utsname.h>
-.sp
+.PP
.BI "int uname(struct utsname *" buf );
.SH DESCRIPTION
.BR uname ()
.SH SYNOPSIS
.nf
.B #include <unistd.h>
-.sp
+.PP
.BI "int unlink(const char *" pathname );
-.sp
+.PP
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.B #include <unistd.h>
-.sp
+.PP
.BI "int unlinkat(int " dirfd ", const char *" pathname ", int " flags );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR unlinkat ():
.PD 0
.ad l
.nf
.B #define _GNU_SOURCE
.B #include <sched.h>
-.sp
+.PP
.BI "int unshare(int " flags );
.fi
.SH DESCRIPTION
uselib \- load shared library
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.BI "int uselib(const char *" library );
.IR Note :
.nf
.B #include <sys/types.h>
.B #include <linux/userfaultfd.h>
-.sp
+.PP
.BI "int userfaultfd(int " flags );
.fi
.PP
.BR "#include <unistd.h>" " /* libc[45] */"
.br
.BR "#include <ustat.h>" " /* glibc2 */"
-.sp
+.PP
.BI "int ustat(dev_t " dev ", struct ustat *" ubuf );
.fi
.SH DESCRIPTION
.B #include <sys/types.h>
.br
.B #include <utime.h>
-.sp
+.PP
.BI "int utime(const char *" filename ", const struct utimbuf *" times );
-.sp
+.PP
.B #include <sys/time.h>
-.sp
+.PP
.BI "int utimes(const char *" filename ", const struct timeval " times [2]);
.fi
.SH DESCRIPTION
.nf
.B #include <fcntl.h> /* Definition of AT_* constants */
.B #include <sys/stat.h>
-.sp
+.PP
.BI "int utimensat(int " dirfd ", const char *" pathname ,
.BI " const struct timespec " times "[2], int " flags );
.BI "int futimens(int " fd ", const struct timespec " times [2]);
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
+.PP
.ad l
.PD 0
-.sp
.BR utimensat ():
.RS 4
.TP 4
.B #include <sys/types.h>
.br
.B #include <unistd.h>
-.sp
+.PP
.B pid_t vfork(void);
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR vfork ():
.ad l
.RS 4
vhangup \- virtually hangup the current terminal
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.B int vhangup(void);
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR vhangup ():
.nf
vm86old, vm86 \- enter virtual 8086 mode
.SH SYNOPSIS
.B #include <sys/vm86.h>
-.sp
+.PP
.BI "int vm86old(struct vm86_struct *" info );
-.sp
+.PP
.BI "int vm86(unsigned long " fn ", struct vm86plus_struct *" v86 );
.SH DESCRIPTION
The system call
.B #include <sys/types.h>
.br
.B #include <sys/wait.h>
-.sp
+.PP
.BI "pid_t wait(int *" "wstatus" );
.BI "pid_t waitpid(pid_t " pid ", int *" wstatus ", int " options );
", siginfo_t *" infop ", int " options );
/* This is the glibc and POSIX interface; see
NOTES for information on the raw system call. */
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.PD 0
.BR waitid ():
.B #include <sys/time.h>
.B #include <sys/resource.h>
.B #include <sys/wait.h>
-.sp
+.PP
.BI "pid_t wait3(int *" "wstatus" ", int " options ,
.BI " struct rusage *" rusage );
-.sp
+.PP
.BI "pid_t wait4(pid_t " pid ", int *" wstatus ", int " options ,
.BI " struct rusage *" rusage );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR wait3 ():
Since glibc 2.19:
write \- write to a file descriptor
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.BI "ssize_t write(int " fd ", const void *" buf ", size_t " count );
.SH DESCRIPTION
.BR write ()
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <sched.h>
-.sp
+.PP
.BI "void CPU_ZERO(cpu_set_t *" set );
-.sp
+.PP
.BI "void CPU_SET(int " cpu ", cpu_set_t *" set );
.BI "void CPU_CLR(int " cpu ", cpu_set_t *" set );
.BI "int CPU_ISSET(int " cpu ", cpu_set_t *" set );
-.sp
+.PP
.BI "int CPU_COUNT(cpu_set_t *" set );
-.sp
+.PP
.BI "void CPU_AND(cpu_set_t *" destset ,
.BI " cpu_set_t *" srcset1 ", cpu_set_t *" srcset2 );
.BI "void CPU_OR(cpu_set_t *" destset ,
.BI " cpu_set_t *" srcset1 ", cpu_set_t *" srcset2 );
.BI "void CPU_XOR(cpu_set_t *" destset ,
.BI " cpu_set_t *" srcset1 ", cpu_set_t *" srcset2 );
-.sp
+.PP
.BI "int CPU_EQUAL(cpu_set_t *" set1 ", cpu_set_t *" set2 );
-.sp
+.PP
.BI "cpu_set_t *CPU_ALLOC(int " num_cpus );
.BI "void CPU_FREE(cpu_set_t *" set );
.BI "size_t CPU_ALLOC_SIZE(int " num_cpus );
-.sp
+.PP
.BI "void CPU_ZERO_S(size_t " setsize ", cpu_set_t *" set );
-.sp
+.PP
.BI "void CPU_SET_S(int " cpu ", size_t " setsize ", cpu_set_t *" set );
.BI "void CPU_CLR_S(int " cpu ", size_t " setsize ", cpu_set_t *" set );
.BI "int CPU_ISSET_S(int " cpu ", size_t " setsize ", cpu_set_t *" set );
-.sp
+.PP
.BI "int CPU_COUNT_S(size_t " setsize ", cpu_set_t *" set );
-.sp
+.PP
.BI "void CPU_AND_S(size_t " setsize ", cpu_set_t *" destset ,
.BI " cpu_set_t *" srcset1 ", cpu_set_t *" srcset2 );
.BI "void CPU_OR_S(size_t " setsize ", cpu_set_t *" destset ,
.BI " cpu_set_t *" srcset1 ", cpu_set_t *" srcset2 );
.BI "void CPU_XOR_S(size_t " setsize ", cpu_set_t *" destset ,
.BI " cpu_set_t *" srcset1 ", cpu_set_t *" srcset2 );
-.sp
+.PP
.BI "int CPU_EQUAL_S(size_t " setsize ", cpu_set_t *" set1 \
", cpu_set_t *" set2 );
.fi
.BR "#define _ISOC99_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <math.h>
-.sp
+.PP
.B INFINITY
-.sp
+.PP
.B NAN
-.sp
+.PP
.B HUGE_VAL
.br
.B HUGE_VALF
of the Time Base Register on Power architecture and its frequency.
.SH SYNOPSIS
.B #include <sys/platform/ppc.h>
-.sp
+.PP
.BI "uint64_t __ppc_get_timebase(void)"
.BI "uint64_t __ppc_get_timebase_freq(void);"
Set the Program Priority Register
.SH SYNOPSIS
.B #include <sys/platform/ppc.h>
-.sp
+.PP
.B void __ppc_set_ppr_med(void);
.br
.B void __ppc_set_ppr_very_low(void);
Hint the processor to release shared resources
.SH SYNOPSIS
.B #include <sys/platform/ppc.h>
-.sp
+.PP
.B void __ppc_yield(void);
.br
.B void __ppc_mdoio(void);
__setfpucw \- set FPU control word on i386 architecture (obsolete)
.SH SYNOPSIS
.B #include <i386/fpu_control.h>
-.sp
+.PP
.BI "void __setfpucw(unsigned short " control_word );
.SH DESCRIPTION
.BR __setfpucw ()
a64l, l64a \- convert between long and base-64
.SH SYNOPSIS
.B #include <stdlib.h>
-.sp
+.PP
.BI "long a64l(const char *" str64 );
-.sp
+.PP
.BI "char *l64a(long " value );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR a64l (),
.BR l64a ():
.br
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.B void abort(void);
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "int abs(int " j );
.br
.BI "long int labs(long int " j );
.br
.BI "long long int llabs(long long int " j );
-.sp
+.PP
.B #include <inttypes.h>
-.sp
+.PP
.BI "intmax_t imaxabs(intmax_t " j );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR llabs ():
.RS 4
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double acos(double " x );
.BI "float acosf(float " x );
.BI "long double acosl(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR acosf (),
.BR acosl ():
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double acosh(double " x );
.br
.BI "float acoshf(float " x );
.br
.BI "long double acoshl(long double " x );
-.sp
+.PP
.fi
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR acosh ():
.RS 4
addseverity \- introduce new severity classes
.SH SYNOPSIS
.nf
-.sp
+.PP
.B #include <fmtmsg.h>
-.sp
+.PP
.BI "int addseverity(int " severity ", const char *" s );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR addseverity ():
Since glibc 2.19:
_DEFAULT_SOURCE
.SH SYNOPSIS
.nf
.B #include <sys/time.h>
-.sp
+.PP
.BI "int adjtime(const struct timeval *" delta ", struct timeval *" olddelta );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR adjtime ():
Since glibc 2.19:
_DEFAULT_SOURCE
aio_cancel \- cancel an outstanding asynchronous I/O request
.SH SYNOPSIS
.B "#include <aio.h>"
-.sp
+.PP
.BI "int aio_cancel(int " fd ", struct aiocb *" aiocbp );
-.sp
+.PP
Link with \fI\-lrt\fP.
.SH DESCRIPTION
The
aio_error \- get error status of asynchronous I/O operation
.SH SYNOPSIS
.B "#include <aio.h>"
-.sp
+.PP
.BI "int aio_error(const struct aiocb *" aiocbp );
-.sp
+.PP
Link with \fI\-lrt\fP.
.SH DESCRIPTION
The
aio_fsync \- asynchronous file synchronization
.SH SYNOPSIS
.B "#include <aio.h>"
-.sp
+.PP
.BI "int aio_fsync(int " op ", struct aiocb *" aiocbp );
-.sp
+.PP
Link with \fI\-lrt\fP.
.SH DESCRIPTION
The
.BI "void aio_init(const struct aioinit *" init );
.fi
-.sp
+.PP
Link with \fI\-lrt\fP.
.SH DESCRIPTION
The GNU-specific
aio_read \- asynchronous read
.SH SYNOPSIS
.B "#include <aio.h>"
-.sp
+.PP
.BI "int aio_read(struct aiocb *" aiocbp );
-.sp
+.PP
Link with \fI\-lrt\fP.
.SH DESCRIPTION
The
aio_return \- get return status of asynchronous I/O operation
.SH SYNOPSIS
.B "#include <aio.h>"
-.sp
+.PP
.BI "ssize_t aio_return(struct aiocb *" aiocbp );
-.sp
+.PP
Link with \fI\-lrt\fP.
.SH DESCRIPTION
The
aio_suspend \- wait for asynchronous I/O operation or timeout
.SH SYNOPSIS
.nf
-.sp
+.PP
.B "#include <aio.h>"
-.sp
+.PP
.BI "int aio_suspend(const struct aiocb * const " aiocb_list [],
.br
.BI " int " nitems ", const struct timespec *" timeout );
-.sp
+.PP
Link with \fI\-lrt\fP.
.fi
.SH DESCRIPTION
aio_write \- asynchronous write
.SH SYNOPSIS
.B "#include <aio.h>"
-.sp
+.PP
.BI "int aio_write(struct aiocb *" aiocbp );
-.sp
+.PP
Link with \fI\-lrt\fP.
.SH DESCRIPTION
The
alloca \- allocate memory that is automatically freed
.SH SYNOPSIS
.B #include <alloca.h>
-.sp
+.PP
.BI "void *alloca(size_t " size );
.SH DESCRIPTION
The
.SH SYNOPSIS
.nf
.B "#include <argz.h>"
-.sp
+.PP
.BI "error_t argz_add(char **" argz ", size_t *" argz_len \
", const char *" str );
-.sp
+.PP
.BI "error_t argz_add_sep(char **" argz ", size_t *" argz_len ,
.BI " const char *" str ", int " delim );
-.sp
+.PP
.BI "error_t argz_append(char **" argz ", size_t *" argz_len ,
.BI " const char *" buf ", size_t " buf_len );
-.sp
+.PP
.BI "size_t argz_count(const char *" argz ", size_t " argz_len );
-.sp
+.PP
.BI "error_t argz_create(char * const " argv "[], char **" argz ,
.BI " size_t *" argz_len );
-.sp
+.PP
.BI "error_t argz_create_sep(const char *" str ", int " sep ", char **" argz ,
.BI " size_t *" argz_len );
-.sp
+.PP
.BI "void argz_delete(char **" argz ", size_t *" argz_len ", char *" entry );
-.sp
+.PP
.BI "void argz_extract(const char *" argz ", size_t " argz_len ", char **" argv );
-.sp
+.PP
.BI "error_t argz_insert(char **" argz ", size_t *" argz_len ", char *" before ,
.BI " const char *" entry );
-.sp
+.PP
.BI "char *argz_next(const char *" argz ", size_t " argz_len ", const char *" entry );
-.sp
+.PP
.BI "error_t argz_replace(char **" argz ", size_t *" argz_len \
", const char *" str ,
.BI " const char *" with ", unsigned int *" replace_count );
-.sp
+.PP
.BI "void argz_stringify(char *" argz ", size_t " len ", int " sep );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double asin(double " x );
.br
.BI "float asinf(float " x );
.br
.BI "long double asinl(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR asinf (),
.BR asinl ():
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double asinh(double " x );
.br
.BI "float asinhf(float " x );
.br
.BI "long double asinhl(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR asinh ():
.RS 4
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <stdio.h>
-.sp
+.PP
.BI "int asprintf(char **" strp ", const char *" fmt ", ...);"
-.sp
+.PP
.BI "int vasprintf(char **" strp ", const char *" fmt ", va_list " ap );
.SH DESCRIPTION
The functions
.SH SYNOPSIS
.nf
.B #include <assert.h>
-.sp
+.PP
.BI "void assert(scalar " expression );
.fi
.SH DESCRIPTION
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <assert.h>
-.sp
+.PP
.BI "void assert_perror(int " errnum );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double atan(double " x );
.br
.BI "float atanf(float " x );
.br
.BI "long double atanl( long double " x );
-.sp
+.PP
.fi
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR atanf (),
.BR atanl ():
.fi
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR atan2f (),
.BR atan2l ():
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double atanh(double " x );
.br
.BI "float atanhf(float " x );
.br
.BI "long double atanhl(long double " x );
-.sp
+.PP
.fi
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR atanh ():
.RS 4
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "int atexit(void (*" function )(void));
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "double atof(const char *" nptr );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "int atoi(const char *" nptr );
.br
.BI "long atol(const char *" nptr );
.br
.BI "long long atoll(const char *" nptr );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR atoll ():
.RS 4
.SH SYNOPSIS
.nf
.B #include <libgen.h>
-.sp
+.PP
.BI "char *dirname(char *" path );
.BI "char *basename(char *" path );
.SH SYNOPSIS
.nf
.B #include <strings.h>
-.sp
+.PP
.BI "int bcmp(const void *" s1 ", const void *" s2 ", size_t " n );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <strings.h>
-.sp
+.PP
.BI "void bcopy(const void *" src ", void *" dest ", size_t " n );
.fi
.SH DESCRIPTION
bsd_signal \- signal handling with BSD semantics
.SH SYNOPSIS
.B #include <signal.h>
-.sp
+.PP
.B typedef void (*sighandler_t)(int);
-.sp
+.PP
.BI "sighandler_t bsd_signal(int " signum ", sighandler_t " handler );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR bsd_signal ():
.RS 4
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "void *bsearch(const void *" key ", const void *" base ,
.BI " size_t " nmemb ", size_t " size ,
.BI " int (*" compar ")(const void *, const void *));"
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "int bcmp(const void *" s1 ", const void *" s2 ", size_t " n );
-.sp
+.PP
.BI "void bcopy(const void *" src ", void *" dest ", size_t " n );
-.sp
+.PP
.BI "void bzero(void *" s ", size_t " n );
-.sp
+.PP
.BI "void *memccpy(void *" dest ", const void *" src ", int " c ", size_t " n );
-.sp
+.PP
.BI "void *memchr(const void *" s ", int " c ", size_t " n );
-.sp
+.PP
.BI "int memcmp(const void *" s1 ", const void *" s2 ", size_t " n );
-.sp
+.PP
.BI "void *memcpy(void *" dest ", const void *" src ", size_t " n );
-.sp
+.PP
.BI "void *memfrob(void *" s ", size_t " n );
-.sp
+.PP
.BI "void *memmem(const void *" needle ", size_t " needlelen ,
.BI " const void *" haystack ", size_t " haystacklen );
-.sp
+.PP
.BI "void *memmove(void *" dest ", const void *" src ", size_t " n );
-.sp
+.PP
.BI "void *memset(void *" s ", int " c ", size_t " n );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "wint_t btowc(int " c );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <arpa/inet.h>
-.sp
+.PP
.BI "uint32_t htonl(uint32_t " hostlong );
-.sp
+.PP
.BI "uint16_t htons(uint16_t " hostshort );
-.sp
+.PP
.BI "uint32_t ntohl(uint32_t " netlong );
-.sp
+.PP
.BI "uint16_t ntohs(uint16_t " netshort );
.fi
.SH DESCRIPTION
cabs, cabsf, cabsl \- absolute value of a complex number
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double cabs(double complex " z );
.br
.BI "float cabsf(float complex " z );
.br
.BI "long double cabsl(long double complex " z );
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions return the absolute value of the complex number
cacos, cacosf, cacosl \- complex arc cosine
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double complex cacos(double complex " z );
.br
.BI "float complex cacosf(float complex " z );
.br
.BI "long double complex cacosl(long double complex " z );
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions calculate the complex arc cosine of
cacosh, cacoshf, cacoshl \- complex arc hyperbolic cosine
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double complex cacosh(double complex " z );
.br
.BI "float complex cacoshf(float complex " z );
.br
.BI "long double complex cacoshl(long double complex " z );
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions calculate the complex arc hyperbolic cosine of
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <stdlib.h>
-.sp
+.PP
.BI "char *canonicalize_file_name(const char *" path ");"
.SH DESCRIPTION
The
carg, cargf, cargl \- calculate the complex argument
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double carg(double complex " z ");"
.br
.BI "float cargf(float complex " z ");"
.br
.BI "long double cargl(long double complex " z ");"
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions calculate the complex argument (also called phase angle) of
casin, casinf, casinl \- complex arc sine
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double complex casin(double complex " z );
.br
.BI "float complex casinf(float complex " z );
.br
.BI "long double complex casinl(long double complex " z );
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions calculate the complex arc sine of
casinh, casinhf, casinhl \- complex arc sine hyperbolic
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double complex casinh(double complex " z );
.br
.BI "float complex casinhf(float complex " z );
.br
.BI "long double complex casinhl(long double complex " z );
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions calculate the complex arc hyperbolic sine of
catan, catanf, catanl \- complex arc tangents
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double complex catan(double complex " z );
.br
.BI "float complex catanf(float complex " z );
.br
.BI "long double complex catanl(long double complex " z );
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions calculate the complex arc tangent of
catanh, catanhf, catanhl \- complex arc tangents hyperbolic
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double complex catanh(double complex " z );
.br
.BI "float complex catanhf(float complex " z );
.br
.BI "long double complex catanhl(long double complex " z );
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions calculate the complex arc hyperbolic tangent of
catopen, catclose \- open/close a message catalog
.SH SYNOPSIS
.B #include <nl_types.h>
-.sp
+.PP
.BI "nl_catd catopen(const char *" name ", int " flag );
.BI "int catclose(nl_catd " catalog );
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double cbrt(double " x );
.br
.BI "float cbrtf(float " x );
.br
.BI "long double cbrtl(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR cbrt ():
.br
ccos, ccosf, ccosl \- complex cosine function
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double complex ccos(double complex " z ");"
.br
.BI "float complex ccosf(float complex " z ");"
.br
.BI "long double complex ccosl(long double complex " z ");"
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions calculate the complex cosine of
ccosh, ccoshf, ccoshl \- complex hyperbolic cosine
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double complex ccosh(double complex " z ");"
.br
.BI "float complex ccoshf(float complex " z ");"
.br
.BI "long double complex ccoshl(long double complex " z ");"
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions calculate the complex hyperbolic cosine of
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double ceil(double " x );
.br
.BI "float ceilf(float " x );
.br
.BI "long double ceill(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR ceilf (),
.BR ceill ():
cexp, cexpf, cexpl \- complex exponential function
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double complex cexp(double complex " z ");"
.br
.BI "float complex cexpf(float complex " z ");"
.br
.BI "long double complex cexpl(long double complex " z ");"
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions calculate e (2.71828..., the base of natural logarithms)
cexp2, cexp2f, cexp2l \- base-2 exponent of a complex number
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double complex cexp2(double complex " z ");"
.br
.BI "float complex cexp2f(float complex " z ");"
.br
.BI "long double complex cexp2l(long double complex " z ");"
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
The function returns 2 raised to the power of
cfree \- free allocated memory
.SH SYNOPSIS
.nf
-.sp
+.PP
.B "#include <stdlib.h>"
-.sp
+.PP
/* In SunOS 4 */
.BI "int cfree(void *" ptr );
-.sp
+.PP
/* In glibc or FreeBSD libcompat */
.BI "void cfree(void *" ptr );
-.sp
+.PP
/* In SCO OpenServer */
.BI "void cfree(char *" ptr ", unsigned " num ", unsigned " size );
-.sp
+.PP
/* In Solaris watchmalloc.so.1 */
.BI "void cfree(void *" ptr ", size_t " nelem ", size_t " elsize );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR cfree ():
Since glibc 2.19:
_DEFAULT_SOURCE
cimag, cimagf, cimagl \- get imaginary part of a complex number
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double cimag(double complex " z ");"
.br
.BI "float cimagf(float complex " z ");"
.br
.BI "long double cimagl(long double complex " z ");"
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions return the imaginary part of the complex number
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.B "int clearenv(void);"
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR clearenv ():
/* Glibc since 2.19: */ _DEFAULT_SOURCE
|| /* Glibc versions <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE
.SH SYNOPSIS
.nf
.B #include <time.h>
-.sp
+.PP
.B clock_t clock(void);
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.B #include <time.h>
.nf
-.sp
+.PP
.BI "int clock_getcpuclockid(pid_t " pid ", clockid_t *" clock_id );
.fi
-.sp
+.PP
Link with \fI\-lrt\fP (only for glibc versions before 2.17).
-.sp
+.PP
.ad l
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR clock_getcpuclockid ():
.RS 4
_POSIX_C_SOURCE\ >=\ 200112L
clog, clogf, clogl \- natural logarithm of a complex number
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double complex clog(double complex " z );
.br
.BI "float complex clogf(float complex " z );
.br
.BI "long double complex clogl(long double complex " z );
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions calculate the complex natural logarithm of
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <complex.h>
-.sp
+.PP
.BI "double complex clog10(double complex " z );
.br
.BI "float complex clog10f(float complex " z );
.br
.BI "long double complex clog10l(long double complex " z );
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
The call
clog2, clog2f, clog2l \- base-2 logarithm of a complex number
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double complex clog2(double complex " z );
.br
.BI "float complex clog2f(float complex " z );
.br
.BI "long double complex clog2l(long double complex " z );
-.\" .sp
+.\" .PP
.\" Link with \fI\-lm\fP.
.SH DESCRIPTION
The call
.SH SYNOPSIS
.nf
.B #include <sys/types.h>
-.sp
+.PP
.B #include <dirent.h>
-.sp
+.PP
.BI "int closedir(DIR *" dirp );
.fi
.SH DESCRIPTION
CMSG_ALIGN, CMSG_SPACE, CMSG_NXTHDR, CMSG_FIRSTHDR \- access ancillary data
.SH SYNOPSIS
.B #include <sys/socket.h>
-.sp
+.PP
.BI "struct cmsghdr *CMSG_FIRSTHDR(struct msghdr *" msgh );
.br
.BI "struct cmsghdr *CMSG_NXTHDR(struct msghdr *" msgh ", struct cmsghdr *" cmsg );
.BI "size_t CMSG_LEN(size_t " length );
.br
.BI "unsigned char *CMSG_DATA(struct cmsghdr *" cmsg );
-.sp
+.PP
.nf
struct cmsghdr {
size_t cmsg_len; /* Data byte count, including header
.SH SYNOPSIS
.nf
.B #include <unistd.h>
-.sp
+.PP
.BI "size_t confstr(int " "name" ", char *" buf ", size_t " len );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR confstr ():
_POSIX_C_SOURCE\ >=\ 2 || _XOPEN_SOURCE
.SH DESCRIPTION
conj, conjf, conjl \- calculate the complex conjugate
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double complex conj(double complex " z );
.br
.BI "float complex conjf(float complex " z );
.br
.BI "long double complex conjl(long double complex " z );
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions return the complex conjugate value of
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double copysign(double " x ", double " y );
.br
.BI "float copysignf(float " x ", float " y );
.br
.BI "long double copysignl(long double " x ", long double " y );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR copysign (),
.BR copysignf (),
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double cos(double " x );
.br
.BI "float cosf(float " x );
.br
.BI "long double cosl(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR cosf (),
.BR cosl ():
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double cosh(double " x );
.br
.BI "float coshf(float " x );
.br
.BI "long double coshl(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR coshf (),
.BR coshl ():
.SH SYNOPSIS
.nf
.B #include <complex.h>
-.sp
+.PP
.BI "double complex cpow(double complex " x ", complex double " z ");"
.br
.BI "float complex cpowf(float complex " x ", complex float " z ");"
.br
.BI "long double complex cpowl(long double complex " x ,
.BI " complex long double " z ");"
-.sp
+.PP
Link with \fI\-lm\fP.
.fi
.SH DESCRIPTION
cproj, cprojf, cprojl \- project into Riemann Sphere
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double complex cproj(double complex " z ");"
.br
.BI "float complex cprojf(float complex " z ");"
.br
.BI "long double complex cprojl(long double complex " z ");"
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions project a point in the plane onto the surface of a
creal, crealf, creall \- get real part of a complex number
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double creal(double complex " z );
.br
.BI "float crealf(float complex " z );
.br
.BI "long double creall(long double complex " z );
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions return the real part of the complex number
.BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <unistd.h>
-.sp
+.PP
.BI "char *crypt(const char *" key ", const char *" salt );
-.sp
+.PP
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <crypt.h>
-.sp
+.PP
.BI "char *crypt_r(const char *" key ", const char *" salt ,
.BI " struct crypt_data *" data );
.fi
-.sp
+.PP
Link with \fI\-lcrypt\fP.
.SH DESCRIPTION
.BR crypt ()
csin, csinf, csinl \- complex sine function
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double complex csin(double complex " z ");"
.br
.BI "float complex csinf(float complex " z );
.br
.BI "long double complex csinl(long double complex " z ");"
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions calculate the complex sine of
csinh, csinhf, csinhl \- complex hyperbolic sine
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double complex csinh(double complex " z ");"
.br
.BI "float complex csinhf(float complex " z ");"
.br
.BI "long double complex csinhl(long double complex " z ");"
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions calculate the complex hyperbolic sine of
csqrt, csqrtf, csqrtl \- complex square root
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double complex csqrt(double complex " z ");"
.br
.BI "float complex csqrtf(float complex " z ");"
.br
.BI "long double complex csqrtl(long double complex " z ");"
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions calculate the complex square root of
ctan, ctanf, ctanl \- complex tangent function
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double complex ctan(double complex " z ");"
.br
.BI "float complex ctanf(float complex " z );
.br
.BI "long double complex ctanl(long double complex " z ");"
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions calculate the complex tangent of
ctanh, ctanhf, ctanhl \- complex hyperbolic tangent
.SH SYNOPSIS
.B #include <complex.h>
-.sp
+.PP
.BI "double complex ctanh(double complex " z ");"
.br
.BI "float complex ctanhf(float complex " z );
.br
.BI "long double complex ctanhl(long double complex " z ");"
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions calculate the complex hyperbolic tangent of
.B #include <stdio.h>
.\" POSIX also requires this function to be declared in <unistd.h>,
.\" and glibc does so if suitable feature test macros are defined.
-.sp
+.PP
.BI "char *ctermid(char *" "s" );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR ctermid ():
_POSIX_C_SOURCE
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <time.h>
-.sp
+.PP
.BI "char *asctime(const struct tm *" tm );
.br
.BI "char *asctime_r(const struct tm *" tm ", char *" buf );
-.sp
+.PP
.BI "char *ctime(const time_t *" timep );
.br
.BI "char *ctime_r(const time_t *" timep ", char *" buf );
-.sp
+.PP
.BI "struct tm *gmtime(const time_t *" timep );
.br
.BI "struct tm *gmtime_r(const time_t *" timep ", struct tm *" result );
-.sp
+.PP
.BI "struct tm *localtime(const time_t *" timep );
.br
.BI "struct tm *localtime_r(const time_t *" timep ", struct tm *" result );
-.sp
+.PP
.BI "time_t mktime(struct tm *" tm );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
.ad l
-.sp
+.PP
.BR asctime_r (),
.BR ctime_r (),
.BR gmtime_r (),
daemon \- run in the background
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.BI "int daemon(int " nochdir ", int " noclose );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR daemon ():
.nf
Since glibc 2.21:
.SH SYNOPSIS
.nf
.B #include <time.h>
-.sp
+.PP
.BI "double difftime(time_t " time1 ", time_t " time0 );
.fi
.SH DESCRIPTION
.B #include <sys/types.h>
.br
.B #include <dirent.h>
-.sp
+.PP
.BI "int dirfd(DIR *" dirp );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR dirfd ():
.br
.RS 4
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "div_t div(int " numerator ", int " denominator );
.br
.BI "ldiv_t ldiv(long " numerator ", long " denominator );
.br
.BI "lldiv_t lldiv(long long " numerator ", long long " denominator );
-.sp
+.PP
.B #include <inttypes.h>
-.sp
+.PP
.BI "imaxdiv_t imaxdiv(intmax_t " numerator ", intmax_t " denominator );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
.ad l
-.sp
+.PP
.BR lldiv ():
.RS 4
_ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L
dlerror \- obtain error diagnostic for functions in the dlopen API
.SH SYNOPSIS
.B #include <dlfcn.h>
-.sp
+.PP
.B "char *dlerror(void);"
-.sp
+.PP
Link with \fI\-ldl\fP.
.SH DESCRIPTION
The
open and close a shared object
.SH SYNOPSIS
.B #include <dlfcn.h>
-.sp
+.PP
.BI "void *dlopen(const char *" filename ", int " flags );
-.sp
+.PP
.BI "int dlclose(void *" handle );
-.sp
+.PP
.B #define _GNU_SOURCE
.br
.B #include <dlfcn.h>
-.sp
+.PP
.BI "void *dlmopen (Lmid_t " lmid ", const char *" filename ", int " flags );
-.sp
+.PP
Link with \fI\-ldl\fP.
.SH DESCRIPTION
.SS dlopen()
dlsym, dlvsym \- obtain address of a symbol in a shared object or executable
.SH SYNOPSIS
.B #include <dlfcn.h>
-.sp
+.PP
.BI "void *dlsym(void *" handle ", const char *" symbol );
-.sp
+.PP
.B #define _GNU_SOURCE
.br
.B #include <dlfcn.h>
-.sp
+.PP
.BI "void *dlvsym(void *" handle ", char *" symbol ", char *" version );
-.sp
+.PP
Link with \fI\-ldl\fP.
.SH DESCRIPTION
The function
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.B double drand48(void);
-.sp
+.PP
.BI "double erand48(unsigned short " xsubi [3]);
-.sp
+.PP
.B long int lrand48(void);
-.sp
+.PP
.BI "long int nrand48(unsigned short " xsubi [3]);
-.sp
+.PP
.B long int mrand48(void);
-.sp
+.PP
.BI "long int jrand48(unsigned short " xsubi [3]);
-.sp
+.PP
.BI "void srand48(long int " seedval );
-.sp
+.PP
.BI "unsigned short *seed48(unsigned short " seed16v [3]);
-.sp
+.PP
.BI "void lcong48(unsigned short " param [7]);
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
All functions shown above:
.\" .BR drand48 (),
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "int drand48_r(struct drand48_data *" buffer ", double *" result );
-.sp
+.PP
.BI "int erand48_r(unsigned short " xsubi [3] ","
.br
.BI " struct drand48_data *"buffer ", double *" result ");"
-.sp
+.PP
.BI "int lrand48_r(struct drand48_data *" buffer ", long int *" result );
-.sp
+.PP
.BI "int nrand48_r(unsigned short int " xsubi[3] ","
.br
.BI " struct drand48_data *"buffer ", long int *" result ");"
-.sp
+.PP
.BI "int mrand48_r(struct drand48_data *" buffer ",long int *" result ");"
-.sp
+.PP
.BI "int jrand48_r(unsigned short int " xsubi[3] ","
.br
.BI " struct drand48_data *" buffer ", long int *" result ");"
-.sp
+.PP
.BI "int srand48_r(long int " seedval ", struct drand48_data *" buffer ");"
-.sp
+.PP
.BI "int seed48_r(unsigned short int " seed16v[3] ","
.br
.BI " struct drand48_data *" buffer ");"
-.sp
+.PP
.BI "int lcong48_r(unsigned short int " param[7] ","
.br
.BI " struct drand48_data *" buffer ");"
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
All functions shown above:
.\" .BR drand48_r (),
.BI "locale_t duplocale(locale_t " locobj );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR duplocale ():
.PD 0
.RS 4
dysize \- get number of days for a given year
.SH SYNOPSIS
.B "#include <time.h>"
-.sp
+.PP
.BI "int dysize(int " year );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR dysize ():
Since glibc 2.19:
_DEFAULT_SOURCE
ecvt, fcvt \- convert a floating-point number to a string
.SH SYNOPSIS
.B #include <stdlib.h>
-.sp
+.PP
.BI "char *ecvt(double " number ", int " ndigits ", int *" decpt ,
.BI "int *" sign );
-.sp
+.PP
.BI "char *fcvt(double " number ", int " ndigits ", int *" decpt ,
.BI "int *" sign );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR ecvt (),
.BR fcvt ():
.ad l
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "int ecvt_r(double " number ", int " ndigits ", int *" decpt ,
.BI " int *" sign ", char *" buf ", size_t " len );
-.sp
+.PP
.BI "int fcvt_r(double " number ", int " ndigits ", int *" decpt ,
.BI " int *" sign ", char *" buf ", size_t " len );
-.sp
+.PP
.BI "int qecvt_r(long double " number ", int " ndigits ", int *" decpt ,
.BI " int *" sign ", char *" buf ", size_t " len );
-.sp
+.PP
.BI "int qfcvt_r(long double " number ", int " ndigits ", int *" decpt ,
.BI " int *" sign ", char *" buf ", size_t " len );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR ecvt_r (),
.BR fcvt_r (),
.BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <unistd.h>
-.sp
+.PP
.BI "void encrypt(char " block "[64], int " edflag );
-.sp
+.PP
.BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <stdlib.h>
-.sp
+.PP
.BI "void setkey(const char *" key );
-.sp
+.PP
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B "#include <crypt.h>"
-.sp
+.PP
.BI "void setkey_r(const char *" key ", struct crypt_data *" data );
.br
.BI "void encrypt_r(char *" block ", int " edflag \
", struct crypt_data *" data );
-.sp
+.PP
Each of these requires linking with \fI\-lcrypt\fP.
.SH DESCRIPTION
These functions encrypt and decrypt 64-bit messages.
.BI "uint64_t be64toh(uint64_t " big_endian_64bits );
.BI "uint64_t le64toh(uint64_t " little_endian_64bits );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR htobe16 (),
.BR htole16 (),
.BR be16toh (),
.fi
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR erf ():
.RS 4
.fi
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR erfc ():
.RS 4
.SH SYNOPSIS
.nf
.B #include <err.h>
-.sp
+.PP
.BI "void err(int " eval ", const char *" fmt ", ...);"
-.sp
+.PP
.BI "void errx(int " eval ", const char *" fmt ", ...);"
-.sp
+.PP
.BI "void warn(const char *" fmt ", ...);"
-.sp
+.PP
.BI "void warnx(const char *" fmt ", ...);"
-.sp
+.PP
.B #include <stdarg.h>
-.sp
+.PP
.BI "void verr(int " eval ", const char *" fmt ", va_list " args );
-.sp
+.PP
.BI "void verrx(int " eval ", const char *" fmt ", va_list " args );
-.sp
+.PP
.BI "void vwarn(const char *" fmt ", va_list " args );
-.sp
+.PP
.BI "void vwarnx(const char *" fmt ", va_list " args );
.fi
.SH DESCRIPTION
errno \- number of last error
.SH SYNOPSIS
.B #include <errno.h>
-.\".sp
+.\".PP
.\".BI "extern int " errno ;
.SH DESCRIPTION
The
.SH SYNOPSIS
.nf
.B #include <netinet/ether.h>
-.sp
+.PP
.BI "char *ether_ntoa(const struct ether_addr *" addr );
-.sp
+.PP
.BI "struct ether_addr *ether_aton(const char *" asc );
-.sp
+.PP
.BI "int ether_ntohost(char *" hostname ", const struct ether_addr *" addr );
-.sp
+.PP
.BI "int ether_hostton(const char *" hostname ", struct ether_addr *" addr );
-.sp
+.PP
.BI "int ether_line(const char *" line ", struct ether_addr *" addr ,
.BI " char *" hostname );
-.sp
+.PP
/* GNU extensions */
.br
.BI "char *ether_ntoa_r(const struct ether_addr *" addr ", char *" buf );
-.sp
+.PP
.BI "struct ether_addr *ether_aton_r(const char *" asc ,
.BI " struct ether_addr *" addr );
.fi
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <unistd.h>
-.sp
+.PP
.BI "int euidaccess(const char *" pathname ", int " mode );
.BI "int eaccess(const char *" pathname ", int " mode );
.fi
execl, execlp, execle, execv, execvp, execvpe \- execute a file
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.B extern char **environ;
-.sp
+.PP
.BI "int execl(const char *" path ", const char *" arg ", ..."
.br
.B " /* (char *) NULL */);"
.BI "int execvpe(const char *" file ", char *const " argv "[],"
.br
.BI " char *const " envp "[]);"
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR execvpe ():
_GNU_SOURCE
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "void exit(int " status );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double exp(double " x );
.br
.BI "float expf(float " x );
.br
.BI "long double expl(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR expf (),
.BR expl ():
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <math.h>
-.sp
+.PP
.BI "double exp10(double " x );
.br
.BI "float exp10f(float " x );
.br
.BI "long double exp10l(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions return the value of 10
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double exp2(double " x );
.br
.BI "float exp2f(float " x );
.br
.BI "long double exp2l(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR exp2 (),
.BR exp2f (),
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double expm1(double " x );
.br
.BI "float expm1f(float " x );
.br
.BI "long double expm1l(long double " x );
-.sp
+.PP
.fi
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR expm1 ():
.RS 4
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double fabs(double " x );
.br
.BI "float fabsf(float " x );
.br
.BI "long double fabsl(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR fabsf (),
.BR fabsl ():
fclose \- close a stream
.SH SYNOPSIS
.B #include <stdio.h>
-.sp
+.PP
.BI "int fclose(FILE *" stream );
.SH DESCRIPTION
The
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <stdio.h>
-.sp
+.PP
.B int fcloseall(void);
.fi
.SH DESCRIPTION
fdim, fdimf, fdiml \- positive difference
.SH SYNOPSIS
.B #include <math.h>
-.sp
+.PP
.BI "double fdim(double " x ", double " y );
.br
.BI "float fdimf(float " x ", float " y );
.br
.BI "long double fdiml(long double " x ", long double " y );
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR fdimf (),
.BR fdiml ():
.SH SYNOPSIS
.nf
.B #include <fenv.h>
-.sp
+.PP
.BI "int feclearexcept(int " excepts );
.br
.BI "int fegetexceptflag(fexcept_t *" flagp ", int " excepts );
.BI "int fesetexceptflag(const fexcept_t *" flagp ", int " excepts );
.br
.BI "int fetestexcept(int " excepts );
-.sp
+.PP
.B "int fegetround(void);"
.br
.BI "int fesetround(int " rounding_mode );
-.sp
+.PP
.BI "int fegetenv(fenv_t *" envp );
.br
.BI "int feholdexcept(fenv_t *" envp );
.br
.BI "int feupdateenv(const fenv_t *" envp );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These eleven functions were defined in C99, and describe the handling
clearerr, feof, ferror, fileno \- check and reset stream status
.SH SYNOPSIS
.B #include <stdio.h>
-.sp
+.PP
.BI "void clearerr(FILE *" stream );
.BI "int feof(FILE *" stream );
.BI "int ferror(FILE *" stream );
.BI "int fileno(FILE *" stream );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR fileno ():
_POSIX_C_SOURCE
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <unistd.h>
-.sp
+.PP
.BI "int fexecve(int " fd ", char *const " argv "[], char *const " envp []);
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR fexecve ():
.PD 0
.ad l
fflush \- flush a stream
.SH SYNOPSIS
.B #include <stdio.h>
-.sp
+.PP
.BI "int fflush(FILE *" stream );
.SH DESCRIPTION
For output streams,
.SH SYNOPSIS
.nf
.B #include <strings.h>
-.sp
+.PP
.BI "int ffs(int " i );
-.sp
+.PP
.B #include <string.h>
-.sp
+.PP
.BI "int ffsl(long int " i );
-.sp
+.PP
.BI "int ffsll(long long int " i );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
+.PP
.PD 0
.ad l
-.sp
.BR ffs ():
.RS 4
.TP 4
.SH SYNOPSIS
.nf
.B #include <stdio.h>
-.sp
+.PP
.BI "int fgetc(FILE *" stream );
.BI "char *fgets(char *" "s" ", int " "size" ", FILE *" "stream" );
.B #include <stdio.h>
.B #include <sys/types.h>
.B #include <grp.h>
-.sp
+.PP
.BI "struct group *fgetgrent(FILE *" stream );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR fgetgrent ():
Since glibc 2.19:
_DEFAULT_SOURCE
.B #include <stdio.h>
.B #include <sys/types.h>
.B #include <pwd.h>
-.sp
+.PP
.BI "struct passwd *fgetpwent(FILE *" stream );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR fgetpwent ():
Since glibc 2.19:
_DEFAULT_SOURCE
.B #include <stdio.h>
.br
.B #include <wchar.h>
-.sp
+.PP
.BI "wint_t fgetwc(FILE *" stream );
.BI "wint_t getwc(FILE *" stream );
.fi
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "wchar_t *fgetws(wchar_t *" ws ", int " n ", FILE *" stream );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "int finite(double " x );
.br
.BI "int finitef(float " x );
.br
.BI "int finitel(long double " x );
-.sp
+.PP
.BI "int isinf(double " x );
.br
.BI "int isinff(float " x );
.br
.BI "int isinfl(long double " x );
-.sp
+.PP
.BI "int isnan(double " x );
.br
.BI "int isnanf(float " x );
.br
.BI "int isnanl(long double " x );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR finite (),
.BR finitef (),
.SH SYNOPSIS
.nf
.B #include <stdio.h>
-.sp
+.PP
.BI "void flockfile(FILE *" filehandle );
.br
.BI "int ftrylockfile(FILE *" filehandle );
.br
.BI "void funlockfile(FILE *" filehandle );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
.ad l
-.sp
+.PP
All functions shown above:
.RS 4
/* Since glibc 2.24: */ _POSIX_C_SOURCE\ >=\ 199309L
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double floor(double " x );
.br
.BI "float floorf(float " x );
.br
.BI "long double floorl(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR floorf (),
.BR floorl ():
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double fma(double " x ", double " y ", double " z );
.br
.BI "float fmaf(float " x ", float " y ", float " z );
.br
.BI "long double fmal(long double " x ", long double " y ", long double " z );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR fma (),
.BR fmaf (),
fmax, fmaxf, fmaxl \- determine maximum of two floating-point numbers
.SH SYNOPSIS
.B #include <math.h>
-.sp
+.PP
.BI "double fmax(double " x ", double " y );
.br
.BI "float fmaxf(float " x ", float " y );
.br
.BI "long double fmaxl(long double " x ", long double " y );
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR fmax (),
.BR fmaxf (),
.BI "FILE *fmemopen(void *"buf ", size_t "size ", const char *" mode ");"
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR fmemopen ():
.PD 0
.ad l
fmin, fminf, fminl \- determine minimum of two floating-point numbers
.SH SYNOPSIS
.B #include <math.h>
-.sp
+.PP
.BI "double fmin(double " x ", double " y );
.br
.BI "float fminf(float " x ", float " y );
.br
.BI "long double fminl(long double " x ", long double " y );
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR fmin (),
.BR fminf (),
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double fmod(double " x ", double " y );
.br
.BI "float fmodf(float " x ", float " y );
.br
.BI "long double fmodl(long double " x ", long double " y );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR fmodf (),
.BR fmodl ():
.SH SYNOPSIS
.nf
.B #include <fmtmsg.h>
-.sp
+.PP
.BI "int fmtmsg(long " classification ", const char *" label ,
.br
.BI " int " severity ", const char *" text ,
.SH SYNOPSIS
.nf
.B #include <fnmatch.h>
-.sp
+.PP
.BI "int fnmatch(const char *" "pattern" ", const char *" string ", int " flags );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <stdio.h>
-.sp
+.PP
.BI "FILE *fopen(const char *" pathname ", const char *" mode );
.BI "FILE *fdopen(int " fd ", const char *" mode );
.BI "FILE *freopen(const char *" pathname ", const char *" mode ", FILE *" stream );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR fdopen ():
_POSIX_C_SOURCE
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <unistd.h>
-.sp
+.PP
.BI "long fpathconf(int " fd ", int " name );
.br
.BI "long pathconf(const char *" path ", int " name );
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "int fpclassify(" x );
-.sp
+.PP
.BI "int isfinite(" x );
-.sp
+.PP
.BI "int isnormal(" x );
-.sp
+.PP
.BI "int isnan(" x );
-.sp
+.PP
.BI "int isinf(" x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.\" I haven't fully grokked the source to determine the FTM requirements;
.\" in part, the following has been tested by experiment.
.ad l
.nf
/* unsupported */
.B #include <stdio.h>
-.sp
+.PP
.BI "int fpurge(FILE *" stream );
-.sp
+.PP
/* supported */
.B #include <stdio.h>
.br
.B #include <stdio_ext.h>
-.sp
+.PP
.BI "void __fpurge(FILE *" stream );
.fi
.SH DESCRIPTION
.B #include <stdio.h>
.br
.B #include <wchar.h>
-.sp
+.PP
.BI "wint_t fputwc(wchar_t " wc ", FILE *" stream );
.BI "wint_t putwc(wchar_t " wc ", FILE *" stream );
.fi
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "int fputws(const wchar_t *" ws ", FILE *" stream );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <stdio.h>
-.sp
+.PP
.BI "size_t fread(void *" ptr ", size_t " size ", size_t " nmemb \
", FILE *" stream );
-.sp
+.PP
.BI "size_t fwrite(const void *" ptr ", size_t " size ", size_t " nmemb ,
.BI " FILE *" stream );
.fi
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double frexp(double " x ", int *" exp );
.br
.BI "float frexpf(float " x ", int *" exp );
.br
.BI "long double frexpl(long double " x ", int *" exp );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR frexpf (),
.BR frexpl ():
fgetpos, fseek, fsetpos, ftell, rewind \- reposition a stream
.SH SYNOPSIS
.B #include <stdio.h>
-.sp
+.PP
.BI "int fseek(FILE *" stream ", long " offset ", int " whence );
.BI "long ftell(FILE *" stream );
.SH SYNOPSIS
.nf
.B #include <stdio.h>
-.sp
+.PP
.BI "int fseeko(FILE *" stream ", off_t " offset ", int " whence );
-.sp
+.PP
.BI "off_t ftello(FILE *" stream );
.BI
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR fseeko (),
.BR ftello ():
.br
ftime \- return date and time
.SH SYNOPSIS
.B "#include <sys/timeb.h>"
-.sp
+.PP
.BI "int ftime(struct timeb *" tp );
.SH DESCRIPTION
This function returns the current time as seconds and milliseconds
.B #include <sys/types.h>
.B #include <sys/ipc.h>
.fi
-.sp
+.PP
.BI "key_t ftok(const char *" pathname ", int " proj_id );
.SH DESCRIPTION
The
.B #include <sys/types.h>
.B #include <sys/stat.h>
.B #include <fts.h>
-.sp
+.PP
.BI "FTS *fts_open(char * const *" path_argv ", int " options ", "
.BI " int (*" compar ")(const FTSENT **, const FTSENT **));"
-.sp
+.PP
.BI "FTSENT *fts_read(FTS *" ftsp );
-.sp
+.PP
.BI "FTSENT *fts_children(FTS *" ftsp ", int " instr );
-.sp
+.PP
.BI "int fts_set(FTS *" ftsp ", FTSENT *" f ", int " instr );
-.sp
+.PP
.BI "int fts_close(FTS *" ftsp );
.fi
.SH DESCRIPTION
.BI " int " typeflag ),
.BI " int " nopenfd );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR nftw ():
_XOPEN_SOURCE >= 500
.SH DESCRIPTION
.BI "int lutimes(const char *" filename ", const struct timeval " tv [2]);
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR futimes (),
.BR lutimes ():
Since glibc 2.19:
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "int fwide(FILE *" stream ", int " mode );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
.ad l
-.sp
+.PP
.BR fwide ():
.RS 4
_XOPEN_SOURCE\ >=\ 500 || _ISOC99_SOURCE ||
gamma, gammaf, gammal \- (logarithm of the) gamma function
.SH SYNOPSIS
.B #include <math.h>
-.sp
+.PP
.BI "double gamma(double " x ");"
.br
.BI "float gammaf(float " x ");"
.br
.BI "long double gammal(long double " x ");"
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR gamma ():
.RS 4
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "char *gcvt(double " number ", int " ndigit ", char *" buf );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR gcvt ():
.ad l
.PD 0
get_nprocs, get_nprocs_conf \- get number of processors
.SH SYNOPSIS
.B #include <sys/sysinfo.h>
-.sp
+.PP
.BI "int get_nprocs(void);"
.br
.BI "int get_nprocs_conf(void);"
.SH SYNOPSIS
.nf
.B "#include <sys/sysinfo.h>"
-.sp
+.PP
.B long int get_phys_pages(void);
.B long int get_avphys_pages(void);
.SH DESCRIPTION
.B #include <sys/types.h>
.B #include <sys/socket.h>
.B #include <netdb.h>
-.sp
+.PP
.BI "int getaddrinfo(const char *" "node" ", const char *" "service" ,
.BI " const struct addrinfo *" "hints" ,
.BI " struct addrinfo **" "res" );
-.sp
+.PP
.BI "void freeaddrinfo(struct addrinfo *" "res" );
-.sp
+.PP
.BI "const char *gai_strerror(int " "errcode" );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.ad l
.in
-.sp
+.PP
.BR getaddrinfo (),
.BR freeaddrinfo (),
.BR gai_strerror ():
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <netdb.h>
-.sp
+.PP
.BI "int getaddrinfo_a(int " "mode" ", struct gaicb *" "list[]" ,
.BI " int " "nitems" ", struct sigevent *" "sevp" );
-.sp
+.PP
.BI "int gai_suspend(const struct gaicb * const " "list[]" ", int " "nitems" ,
.BI " const struct timespec *" "timeout" );
-.sp
+.PP
.BI "int gai_error(struct gaicb *" "req" );
-.sp
+.PP
.BI "int gai_cancel(struct gaicb *" "req" );
-.sp
+.PP
Link with \fI\-lanl\fP.
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <sys/auxv.h>
-.sp
+.PP
.BI "unsigned long getauxval(unsigned long " type );
.fi
.SH DESCRIPTION
getcontext, setcontext \- get or set the user context
.SH SYNOPSIS
.B #include <ucontext.h>
-.sp
+.PP
.BI "int getcontext(ucontext_t *" ucp );
.br
.BI "int setcontext(const ucontext_t *" ucp );
.SH SYNOPSIS
.nf
.B #include <unistd.h>
-.sp
+.PP
.BI "char *getcwd(char *" buf ", size_t " size );
-.sp
+.PP
.BI "char *getwd(char *" buf );
-.sp
+.PP
.B "char *get_current_dir_name(void);"
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
-.sp
.in
+.PP
.BR get_current_dir_name ():
.RS
_GNU_SOURCE
.RE
-.sp
+.PP
.BR getwd ():
.ad l
.RS 4
getdate, getdate_r \- convert a date-plus-time string to broken-down time
.SH SYNOPSIS
.B "#include <time.h>"
-.sp
+.PP
.BI "struct tm *getdate(const char *" string );
-.sp
+.PP
.B "extern int getdate_err;"
-.sp
+.PP
.B "#include <time.h>"
-.sp
+.PP
.BI "int getdate_r(const char *" string ", struct tm *" res );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR getdate ():
.ad l
.RS 4
getdirentries \- get directory entries in a filesystem-independent format
.SH SYNOPSIS
.B #include <dirent.h>
-.sp
+.PP
.BI "ssize_t getdirentries(int " fd ", char *" buf ", size_t " nbytes
.BI ", off_t *" basep );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR getdirentries ():
Since glibc 2.19:
_DEFAULT_SOURCE
getdtablesize \- get file descriptor table size
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.B int getdtablesize(void);
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR getdtablesize ():
.ad l
.RS 4
getentropy \- fill a buffer with random bytes
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.BI "int getentropy(void *" buffer ", size_t " length );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR getentropy ():
.br
.RS 4
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "char *getenv(const char *" name );
.BI "char *secure_getenv(const char *" name );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR secure_getenv ():
_GNU_SOURCE
.SH DESCRIPTION
getfsent, getfsspec, getfsfile, setfsent, endfsent \- handle fstab entries
.SH SYNOPSIS
.B #include <fstab.h>
-.sp
+.PP
.B "void endfsent(void);"
-.sp
+.PP
.B "struct fstab *getfsent(void);"
-.sp
+.PP
.BI "struct fstab *getfsfile(const char *" mount_point );
-.sp
+.PP
.BI "struct fstab *getfsspec(const char *" special_file );
-.sp
+.PP
.B "int setfsent(void);"
.SH DESCRIPTION
These functions read from the file
.nf
.B #include <sys/types.h>
.B #include <grp.h>
-.sp
+.PP
.B struct group *getgrent(void);
-.sp
+.PP
.B void setgrent(void);
-.sp
+.PP
.B void endgrent(void);
.fi
.PP
.SH SYNOPSIS
.nf
.B #include <grp.h>
-.sp
+.PP
.BI "int getgrent_r(struct group *" gbuf ", char *" buf ,
.br
.BI " size_t " buflen ", struct group **" gbufp );
-.sp
+.PP
.BI "int fgetgrent_r(FILE *" stream ", struct group *" gbuf ", char *" buf ,
.br
.BI " size_t " buflen ", struct group **" gbufp );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR getgrent_r ():
_GNU_SOURCE
.\" FIXME . The FTM requirements seem inconsistent here. File a glibc bug?
.nf
.B #include <sys/types.h>
.B #include <grp.h>
-.sp
+.PP
.BI "struct group *getgrnam(const char *" name );
-.sp
+.PP
.BI "struct group *getgrgid(gid_t " gid );
-.sp
+.PP
.BI "int getgrnam_r(const char *" name ", struct group *" grp ,
.br
.BI " char *" buf ", size_t " buflen ", struct group **" result );
-.sp
+.PP
.BI "int getgrgid_r(gid_t " gid ", struct group *" grp ,
.br
.BI " char *" buf ", size_t " buflen ", struct group **" result );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.ad l
.in
-.sp
+.PP
.BR getgrnam_r (),
.BR getgrgid_r ():
.RS 4
getgrouplist \- get list of groups to which a user belongs
.SH SYNOPSIS
.B #include <grp.h>
-.sp
+.PP
.BI "int getgrouplist(const char *" user ", gid_t " group ,
.br
.BI " gid_t *" groups ", int *" ngroups );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR getgrouplist ():
Since glibc 2.19:
_DEFAULT_SOURCE
.nf
.B #include <netdb.h>
.B extern int h_errno;
-.sp
+.PP
.BI "struct hostent *gethostbyname(const char *" name );
-.sp
+.PP
.BR "#include <sys/socket.h>" " /* for AF_INET */"
.BI "struct hostent *gethostbyaddr(const void *" addr ,
.BI " socklen_t " len ", int " type );
-.sp
+.PP
.BI "void sethostent(int " stayopen );
-.sp
+.PP
.B void endhostent(void);
-.sp
+.PP
.BI "void herror(const char *" s );
-.sp
+.PP
.BI "const char *hstrerror(int " err );
-.sp
+.PP
/* System V/POSIX extension */
.br
.B struct hostent *gethostent(void);
-.sp
+.PP
/* GNU extensions */
.br
.BI "struct hostent *gethostbyname2(const char *" name ", int " af );
-.sp
+.PP
.B "int gethostent_r("
.BI " struct hostent *" ret ", char *" buf ", size_t " buflen ,
.BI " struct hostent **" result ", int *" h_errnop );
-.sp
+.PP
.BI "int gethostbyaddr_r(const void *" addr ", socklen_t " len ", int " type ,
.BI " struct hostent *" ret ", char *" buf ", size_t " buflen ,
.BI " struct hostent **" result ", int *" h_errnop );
-.sp
+.PP
.BI "int gethostbyname_r(const char *" name ,
.BI " struct hostent *" ret ", char *" buf ", size_t " buflen ,
.BI " struct hostent **" result ", int *" h_errnop );
-.sp
+.PP
.BI "int gethostbyname2_r(const char *" name ", int " af,
.BI " struct hostent *" ret ", char *" buf ", size_t " buflen ,
.BI " struct hostent **" result ", int *" h_errnop );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.PD 0
.ad l
.BR gethostbyname2 (),
gethostid, sethostid \- get or set the unique identifier of the current host
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.B long gethostid(void);
.br
.BI "int sethostid(long " hostid );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.br
.BR gethostid ():
.nf
.B #include <sys/types.h>
.B #include <ifaddrs.h>
-.sp
+.PP
.BI "int getifaddrs(struct ifaddrs **" "ifap" );
-.sp
+.PP
.BI "void freeifaddrs(struct ifaddrs *" "ifa" );
.fi
.SH DESCRIPTION
.B #include <sys/types.h>
.B #include <sys/socket.h>
.B #include <netdb.h>
-.sp
+.PP
.BI "struct hostent *getipnodebyname(const char *" name ", int " af ,
.BI " int " flags ", int *" error_num );
-.sp
+.PP
.BI "struct hostent *getipnodebyaddr(const void *" addr ", size_t " len ,
.BI " int " af ", int *" "error_num" );
-.sp
+.PP
.BI "void freehostent(struct hostent *" "ip" );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <stdio.h>
-.sp
+.PP
.BI "ssize_t getline(char **" lineptr ", size_t *" n ", FILE *" stream );
.BI "ssize_t getdelim(char **" lineptr ", size_t *" n ", int " delim \
", FILE *" stream );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR getline (),
.BR getdelim ():
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "int getloadavg(double " loadavg[] ", int " nelem );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR getloadavg ():
.nf
Since glibc 2.19:
getlogin, getlogin_r, cuserid \- get username
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.B "char *getlogin(void);"
.br
.BI "int getlogin_r(char *" buf ", size_t " bufsize );
-.sp
+.PP
.B #include <stdio.h>
-.sp
+.PP
.BI "char *cuserid(char *" string );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR getlogin_r ():
.\" Deprecated: _REENTRANT ||
_POSIX_C_SOURCE\ >=\ 199506L
-.sp
+.PP
.BR cuserid ():
.nf
Since glibc 2.24:
.nf
.B #include <stdio.h>
.B #include <mntent.h>
-.sp
+.PP
.BI "FILE *setmntent(const char *" filename ", const char *" type );
-.sp
+.PP
.BI "struct mntent *getmntent(FILE *" stream );
-.sp
+.PP
.BI "int addmntent(FILE *" stream ", const struct mntent *" mnt );
-.sp
+.PP
.BI "int endmntent(FILE *" streamp );
-.sp
+.PP
.BI "char *hasmntopt(const struct mntent *" mnt ", const char *" opt );
-.sp
+.PP
/* GNU extension */
.B #include <mntent.h>
-.sp
+.PP
.BI "struct mntent *getmntent_r(FILE *" streamp ", struct mntent *" mntbuf ,
.BI " char *" buf ", int " buflen );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR getmntent_r ():
Since glibc 2.19:
_DEFAULT_SOURCE
.nf
.B #include <sys/socket.h>
.B #include <netdb.h>
-.sp
+.PP
.BI "int getnameinfo(const struct sockaddr *" "addr" ", socklen_t " "addrlen" ,
.BI " char *" "host" ", socklen_t " "hostlen" ,
.BI " char *" "serv" ", socklen_t " "servlen" ", int " "flags" );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.ad l
.in
-.sp
+.PP
.BR getnameinfo ():
Since glibc 2.22: _POSIX_C_SOURCE >= 201112L
Glibc 2.21 and earlier: _POSIX_C_SOURCE
.SH SYNOPSIS
.nf
.B #include <netdb.h>
-.sp
+.PP
.B struct netent *getnetent(void);
-.sp
+.PP
.BI "struct netent *getnetbyname(const char *" name );
-.sp
+.PP
.BI "struct netent *getnetbyaddr(uint32_t " net ", int " type );
-.sp
+.PP
.BI "void setnetent(int " stayopen );
-.sp
+.PP
.B void endnetent(void);
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <netdb.h>
-.sp
+.PP
.BI "int getnetent_r(struct netent *" result_buf ", char *" buf ,
.BI " size_t " buflen ", struct netent **" result ,
.BI " int *" h_errnop );
-.sp
+.PP
.BI "int getnetbyname_r(const char *" name ,
.BI " struct netent *" result_buf ", char *" buf ,
.BI " size_t " buflen ", struct netent **" result ,
.BI " int *" h_errnop );
-.sp
+.PP
.BI "int getnetbyaddr_r(uint32_t " net ", int " type ,
.BI " struct netent *" result_buf ", char *" buf ,
.BI " size_t " buflen ", struct netent **" result ,
.BI " int *" h_errnop );
-.sp
+.PP
.fi
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.ad l
.in
-.sp
+.PP
.BR getnetent_r (),
.BR getnetbyname_r (),
.BR getnetbyaddr_r ():
.SH SYNOPSIS
.nf
.B #include <unistd.h>
-.sp
+.PP
.BI "int getopt(int " argc ", char * const " argv[] ,
.BI " const char *" optstring );
-.sp
+.PP
.BI "extern char *" optarg ;
.BI "extern int " optind ", " opterr ", " optopt ;
-.sp
+.PP
.B #include <getopt.h>
-.sp
+.PP
.BI "int getopt_long(int " argc ", char * const " argv[] ,
.BI " const char *" optstring ,
.BI " const struct option *" longopts ", int *" longindex );
-.sp
+.PP
.BI "int getopt_long_only(int " argc ", char * const " argv[] ,
.BI " const char *" optstring ,
.BI " const struct option *" longopts ", int *" longindex );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.ad l
.in
-.sp
+.PP
.BR getopt ():
_POSIX_C_SOURCE\ >=\ 2 || _XOPEN_SOURCE
.br
getpass \- get a password
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.BI "char *getpass(const char *" prompt );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR getpass ():
.ad l
.RS 4
.SH SYNOPSIS
.nf
.B #include <netdb.h>
-.sp
+.PP
.B struct protoent *getprotoent(void);
-.sp
+.PP
.BI "struct protoent *getprotobyname(const char *" name );
-.sp
+.PP
.BI "struct protoent *getprotobynumber(int " proto );
-.sp
+.PP
.BI "void setprotoent(int " stayopen );
-.sp
+.PP
.B void endprotoent(void);
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <netdb.h>
-.sp
+.PP
.BI "int getprotoent_r(struct protoent *" result_buf ", char *" buf ,
.BI " size_t " buflen ", struct protoent **" result );
-.sp
+.PP
.BI "int getprotobyname_r(const char *" name ,
.BI " struct protoent *" result_buf ", char *" buf ,
.BI " size_t " buflen ", struct protoent **" result );
-.sp
+.PP
.BI "int getprotobynumber_r(int " proto ,
.BI " struct protoent *" result_buf ", char *" buf ,
.BI " size_t " buflen ", struct protoent **" result );
-.sp
+.PP
.fi
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.ad l
.in
-.sp
+.PP
.BR getprotoent_r (),
.BR getprotobyname_r (),
.BR getprotobynumber_r ():
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <stdlib.h>
-.sp
+.PP
.B "int getpt(void);"
.fi
.SH DESCRIPTION
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <sys/types.h>
.B #include <pwd.h>
-.sp
+.PP
.BI "int getpw(uid_t " uid ", char *" buf );
.fi
.SH DESCRIPTION
.nf
.B #include <sys/types.h>
.B #include <pwd.h>
-.sp
+.PP
.B struct passwd *getpwent(void);
-.sp
+.PP
.B void setpwent(void);
-.sp
+.PP
.B void endpwent(void);
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR getpwent (),
.BR setpwent (),
.SH SYNOPSIS
.nf
.B #include <pwd.h>
-.sp
+.PP
.BI "int getpwent_r(struct passwd *" pwbuf ", char *" buf ,
.br
.BI " size_t " buflen ", struct passwd **" pwbufp );
-.sp
+.PP
.BI "int fgetpwent_r(FILE *" stream ", struct passwd *" pwbuf ", char *" buf ,
.br
.BI " size_t " buflen ", struct passwd **" pwbufp );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR getpwent_r (),
Since glibc 2.19:
_DEFAULT_SOURCE
.nf
.B #include <sys/types.h>
.B #include <pwd.h>
-.sp
+.PP
.BI "struct passwd *getpwnam(const char *" name );
-.sp
+.PP
.BI "struct passwd *getpwuid(uid_t " uid );
-.sp
+.PP
.BI "int getpwnam_r(const char *" name ", struct passwd *" pwd ,
.br
.BI " char *" buf ", size_t " buflen ", struct passwd **" result );
-.sp
+.PP
.BI "int getpwuid_r(uid_t " uid ", struct passwd *" pwd ,
.br
.BI " char *" buf ", size_t " buflen ", struct passwd **" result );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR getpwnam_r (),
.BR getpwuid_r ():
.SH SYNOPSIS
.nf
.B #include <netdb.h>
-.sp
+.PP
.BI "int getrpcent_r(struct rpcent *" result_buf ", char *" buf ,
.BI " size_t " buflen ", struct rpcent **" result );
-.sp
+.PP
.BI "int getrpcbyname_r(const char *" name ,
.BI " struct rpcent *" result_buf ", char *" buf ,
.BI " size_t " buflen ", struct rpcent **" result );
-.sp
+.PP
.BI "int getrpcbynumber_r(int " number ,
.BI " struct rpcent *" result_buf ", char *" buf ,
.BI " size_t " buflen ", struct rpcent **" result );
-.sp
+.PP
.fi
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.ad l
.in
-.sp
+.PP
.BR getrpcent_r (),
.BR getrpcbyname_r (),
.BR getrpcbynumber_r ():
.SH SYNOPSIS
.nf
.B "#include <rpc/rpc.h>"
-.sp
+.PP
.BI "int getrpcport(const char *" host ", unsigned long " prognum ,
.BI " unsigned long " versnum ", unsigned " proto );
.fi
.SH SYNOPSIS
.nf
.B #include <stdio.h>
-.sp
+.PP
.BI "char *gets(char *" "s" );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <netdb.h>
-.sp
+.PP
.B struct servent *getservent(void);
-.sp
+.PP
.BI "struct servent *getservbyname(const char *" name ", const char *" proto );
-.sp
+.PP
.BI "struct servent *getservbyport(int " port ", const char *" proto );
-.sp
+.PP
.BI "void setservent(int " stayopen );
-.sp
+.PP
.B void endservent(void);
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <netdb.h>
-.sp
+.PP
.BI "int getservent_r(struct servent *" result_buf ", char *" buf ,
.BI " size_t " buflen ", struct servent **" result );
-.sp
+.PP
.BI "int getservbyname_r(const char *" name ", const char *" proto ,
.BI " struct servent *" result_buf ", char *" buf ,
.BI " size_t " buflen ", struct servent **" result );
-.sp
+.PP
.BI "int getservbyport_r(int " port ", const char *" proto ,
.BI " struct servent *" result_buf ", char *" buf ,
.BI " size_t " buflen ", struct servent **" result );
-.sp
+.PP
.fi
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.ad l
.in
-.sp
+.PP
.BR getservent_r (),
.BR getservbyname_r (),
.BR getservbyport_r ():
/* General shadow password file API */
.br
.B #include <shadow.h>
-.sp
+.PP
.BI "struct spwd *getspnam(const char *" name );
-.sp
+.PP
.B struct spwd *getspent(void);
-.sp
+.PP
.B void setspent(void);
-.sp
+.PP
.B void endspent(void);
-.sp
+.PP
.BI "struct spwd *fgetspent(FILE *" stream );
-.sp
+.PP
.BI "struct spwd *sgetspent(const char *" s );
-.sp
+.PP
.BI "int putspent(const struct spwd *" p ", FILE *" stream );
-.sp
+.PP
.B int lckpwdf(void);
-.sp
+.PP
.B int ulckpwdf(void);
-.sp
+.PP
/* GNU extension */
.br
.B #include <shadow.h>
-.sp
+.PP
.BI "int getspent_r(struct spwd *" spbuf ,
.br
.BI " char *" buf ", size_t " buflen ", struct spwd **" spbufp );
-.sp
+.PP
.BI "int getspnam_r(const char *" name ", struct spwd *" spbuf ,
.br
.BI " char *" buf ", size_t " buflen ", struct spwd **" spbufp );
-.sp
+.PP
.BI "int fgetspent_r(FILE *" stream ", struct spwd *" spbuf ,
.br
.BI " char *" buf ", size_t " buflen ", struct spwd **" spbufp );
-.sp
+.PP
.BI "int sgetspent_r(const char *" s ", struct spwd *" spbuf ,
.br
.BI " char *" buf ", size_t " buflen ", struct spwd **" spbufp );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR getspent_r (),
.BR getspnam_r (),
.BI "int getsubopt(char **"optionp ", char * const *" tokens \
", char **" valuep );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR getsubopt ():
.ad l
.RS 4
getttyent, getttynam, setttyent, endttyent \- get ttys file entry
.SH SYNOPSIS
.B "#include <ttyent.h>"
-.sp
+.PP
.B "struct ttyent *getttyent(void);"
-.sp
+.PP
.BI "struct ttyent *getttynam(const char *" name );
-.sp
+.PP
.B "int setttyent(void);"
-.sp
+.PP
.B "int endttyent(void);"
.SH DESCRIPTION
These functions provide an interface to the file
.B "#include <sys/types.h>"
.br
.B "#include <sys/stat.h>"
-.sp
+.PP
.B "mode_t getumask(void);"
.SH DESCRIPTION
This function returns the current file creation mask.
.SH SYNOPSIS
.nf
.B #include <unistd.h>
-.sp
+.PP
.B char *getusershell(void);
-.sp
+.PP
.B void setusershell(void);
-.sp
+.PP
.B void endusershell(void);
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR getusershell (),
.BR setusershell (),
utmpname \- access utmp file entries
.SH SYNOPSIS
.B #include <utmp.h>
-.sp
+.PP
.B struct utmp *getutent(void);
.br
.BI "struct utmp *getutid(const struct utmp *" ut );
.br
.BI "struct utmp *getutline(const struct utmp *" ut );
-.sp
+.PP
.BI "struct utmp *pututline(const struct utmp *" ut );
-.sp
+.PP
.B void setutent(void);
.br
.B void endutent(void);
-.sp
+.PP
.BI "int utmpname(const char *" file );
.SH DESCRIPTION
New applications should use the POSIX.1-specified "utmpx" versions of
.SH SYNOPSIS
.nf
.B #include <stdio.h>
-.sp
+.PP
.BI "int getw(FILE *" stream );
.BI "int putw(int " w ", FILE *" stream );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR getw (),
.BR putw ():
.ad l
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.B "wint_t getwchar(void);"
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <glob.h>
-.sp
+.PP
.BI "int glob(const char *" pattern ", int " flags ,
.br
.BI " int (*" errfunc ") (const char *" epath ", int " eerrno ),
grantpt \- grant access to the slave pseudoterminal
.SH SYNOPSIS
.B #include <stdlib.h>
-.sp
+.PP
.BI "int grantpt(int " fd ");"
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
group_member \- test whether a process is in a group
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.BI "int group_member(gid_t " gid );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR group_member ():
_GNU_SOURCE
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <signal.h>
-.sp
+.PP
.B typedef void (*sighandler_t)(int);
-.sp
+.PP
.BI "int gsignal(int " signum );
-.sp
+.PP
.BI "sighandler_t ssignal(int " signum ", sighandler_t " action );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR gsignal (),
.BR ssignal ():
Since glibc 2.19:
.SH SYNOPSIS
.nf
.B #include <search.h>
-.sp
+.PP
.BI "int hcreate(size_t " nel );
-.sp
+.PP
.BI "ENTRY *hsearch(ENTRY " item ", ACTION " action );
-.sp
+.PP
.B "void hdestroy(void);"
-.sp
+.PP
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <search.h>
-.sp
+.PP
.BI "int hcreate_r(size_t " nel ", struct hsearch_data *" htab );
-.sp
+.PP
.BI "int hsearch_r(ENTRY " item ", ACTION " action ", ENTRY **" retval ,
.BI " struct hsearch_data *" htab );
-.sp
+.PP
.BI "void hdestroy_r(struct hsearch_data *" htab );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double hypot(double " x ", double " y );
.br
.BI "float hypotf(float " x ", float " y );
.br
.BI "long double hypotl(long double " x ", long double " y );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR hypot ():
.RS 4
.SH SYNOPSIS
.nf
.B #include <iconv.h>
-.sp
+.PP
.BI "size_t iconv(iconv_t " cd ,
.BI " char **" inbuf ", size_t *" inbytesleft ,
.BI " char **" outbuf ", size_t *" outbytesleft );
.SH SYNOPSIS
.nf
.B #include <iconv.h>
-.sp
+.PP
.BI "int iconv_close(iconv_t " cd );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <iconv.h>
-.sp
+.PP
.BI "iconv_t iconv_open(const char *" tocode ", const char *" fromcode );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <net/if.h>
-.sp
+.PP
.BI "struct if_nameindex *if_nameindex(void);
.BI "void if_freenameindex(struct if_nameindex *" "ptr" );
.fi
.SH SYNOPSIS
.nf
.B #include <net/if.h>
-.sp
+.PP
.BI "unsigned int if_nametoindex(const char *" "ifname" );
-.sp
+.PP
.BI "char *if_indextoname(unsigned int ifindex, char *" ifname );
.fi
.SH DESCRIPTION
ilogb, ilogbf, ilogbl \- get integer exponent of a floating-point value
.SH SYNOPSIS
.B #include <math.h>
-.sp
+.PP
.BI "int ilogb(double " x );
.br
.BI "int ilogbf(float " x );
.br
.BI "int ilogbl(long double " x );
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR ilogb ():
.RS 4
.SH SYNOPSIS
.nf
.B #include <strings.h>
-.sp
+.PP
.BI "char *index(const char *" s ", int " c );
-.sp
+.PP
.BI "char *rindex(const char *" s ", int " c );
.fi
.SH DESCRIPTION
.B #include <sys/socket.h>
.B #include <netinet/in.h>
.B #include <arpa/inet.h>
-.sp
+.PP
.BI "int inet_aton(const char *" cp ", struct in_addr *" inp );
-.sp
+.PP
.BI "in_addr_t inet_addr(const char *" cp );
-.sp
+.PP
.BI "in_addr_t inet_network(const char *" cp );
-.sp
+.PP
.BI "char *inet_ntoa(struct in_addr " in );
-.sp
+.PP
.BI "struct in_addr inet_makeaddr(in_addr_t " net ", in_addr_t " host );
-.sp
+.PP
.BI "in_addr_t inet_lnaof(struct in_addr " in );
-.sp
+.PP
.BI "in_addr_t inet_netof(struct in_addr " in );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR inet_aton (),
.BR inet_ntoa ():
.nf
.BI "char *inet_net_ntop(int " af ", const void *" netp ", int " bits ,
.BI " char *" pres ", size_t " psize );
.fi
-.sp
+.PP
Link with \fI\-lresolv\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR inet_net_pton (),
.BR inet_net_ntop ():
.ad l
.SH SYNOPSIS
.nf
.B #include <arpa/inet.h>
-.sp
+.PP
.BI "const char *inet_ntop(int " "af" ", const void *" "src" ,
.BI " char *" "dst" ", socklen_t " "size" );
.fi
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double infnan(int " error );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
The
.nf
.B #include <sys/types.h>
.B #include <grp.h>
-.sp
+.PP
.BI "int initgroups(const char *" user ", gid_t " group );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR initgroups ():
Since glibc 2.19:
_DEFAULT_SOURCE
.SH SYNOPSIS
.nf
.B #include <search.h>
-.sp
+.PP
.BI "void insque(void *" elem ", void *" prev );
.BI "void remque(void *" elem );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR insque (),
.BR remque ():
.SH SYNOPSIS
.nf
.B #include <ctype.h>
-.sp
+.PP
.BI "int isalnum(int " c );
.BI "int isalpha(int " c );
.BI "int iscntrl(int " c );
.BI "int isascii_l(int " c ", locale_t " locale );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR isascii ():
.RS 4
.SH SYNOPSIS
.nf
.B #include <unistd.h>
-.sp
+.PP
.BI "int isatty(int " fd );
.fi
.SH DESCRIPTION
.BI "int isfdtype(int " fd ", int " fdtype );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR isfdtype ():
.ad l
.RS 4
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "int isgreater(" x ", " y );
-.sp
+.PP
.BI "int isgreaterequal(" x ", " y );
-.sp
+.PP
.BI "int isless(" x ", " y );
-.sp
+.PP
.BI "int islessequal(" x ", " y );
-.sp
+.PP
.BI "int islessgreater(" x ", " y );
-.sp
+.PP
.BI "int isunordered(" x ", " y );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
All functions described here:
.RS
.SH SYNOPSIS
.nf
.B #include <wctype.h>
-.sp
+.PP
.BI "int iswalnum(wint_t " wc );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wctype.h>
-.sp
+.PP
.BI "int iswalpha(wint_t " wc );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wctype.h>
-.sp
+.PP
.BI "int iswblank(wint_t " wc );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR iswblank ():
.RS
.SH SYNOPSIS
.nf
.B #include <wctype.h>
-.sp
+.PP
.BI "int iswcntrl(wint_t " wc );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wctype.h>
-.sp
+.PP
.BI "int iswctype(wint_t " wc ", wctype_t " desc );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wctype.h>
-.sp
+.PP
.BI "int iswdigit(wint_t " wc );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wctype.h>
-.sp
+.PP
.BI "int iswgraph(wint_t " wc );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wctype.h>
-.sp
+.PP
.BI "int iswlower(wint_t " wc );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wctype.h>
-.sp
+.PP
.BI "int iswprint(wint_t " wc );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wctype.h>
-.sp
+.PP
.BI "int iswpunct(wint_t " wc );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wctype.h>
-.sp
+.PP
.BI "int iswspace(wint_t " wc );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wctype.h>
-.sp
+.PP
.BI "int iswupper(wint_t " wc );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wctype.h>
-.sp
+.PP
.BI "int iswxdigit(wint_t " wc );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.fi
.BI "double j0(double " x );
.br
.BI "double j1(double " x );
.br
.BI "double jn(int " n ", double " x );
-.sp
+.PP
.BI "float j0f(float " x );
.br
.BI "float j1f(float " x );
.br
.BI "float jnf(int " n ", float " x );
-.sp
+.PP
.BI "long double j0l(long double " x );
.br
.BI "long double j1l(long double " x );
.br
.BI "long double jnl(int " n ", long double " x );
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR j0 (),
.BR j1 (),
key_secretkey_is_set \- interfaces to rpc keyserver daemon
.SH SYNOPSIS
.B "#include <rpc/rpc.h>"
-.sp
+.PP
.BI "int key_decryptsession(char *" remotename ,
.BI "des_block *" deskey );
-.sp
+.PP
.BI "int key_encryptsession(char *" remotename ,
.BI "des_block *" deskey );
-.sp
+.PP
.BI "int key_gendes(des_block *" deskey );
-.sp
+.PP
.BI "int key_setsecret(char *" key );
-.sp
+.PP
.B "int key_secretkey_is_set(void);"
.SH DESCRIPTION
The functions here are used within the RPC's secure authentication
killpg \- send signal to a process group
.SH SYNOPSIS
.B #include <signal.h>
-.sp
+.PP
.BI "int killpg(int " pgrp ", int " sig );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double ldexp(double " x ", int " exp );
.br
.BI "float ldexpf(float " x ", int " exp );
.br
.BI "long double ldexpl(long double " x ", int " exp );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR ldexpf (),
.BR ldexpl ():
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double lgamma(double " x );
.br
.BI "float lgammaf(float " x );
.br
.BI "long double lgammal(long double " x );
-.sp
+.PP
.BI "double lgamma_r(double " x ", int *" signp );
.br
.BI "float lgammaf_r(float " x ", int *" signp );
.br
.BI "long double lgammal_r(long double " x ", int *" signp );
-.sp
+.PP
.BI "extern int " signgam ;
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR lgamma ():
.RS 4
.SH SYNOPSIS
.nf
.B #include <locale.h>
-.sp
+.PP
.B struct lconv *localeconv(void);
.fi
.SH DESCRIPTION
lockf \- apply, test or remove a POSIX lock on an open file
.SH SYNOPSIS
.B #include <unistd.h>
-.sp
+.PP
.BI "int lockf(int " fd ", int " cmd ", off_t " len );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR lockf ():
.ad l
.RS 4
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double log(double " x );
.br
.BI "float logf(float " x );
.br
.BI "long double logl(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR logf (),
.BR logl ():
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double log10(double " x );
.br
.BI "float log10f(float " x );
.br
.BI "long double log10l(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR log10f (),
.BR log10l ():
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double log1p(double " x );
.br
.BI "float log1pf(float " x );
.br
.BI "long double log1pl(long double " x );
-.sp
+.PP
.fi
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR log1p ():
.RS 4
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double log2(double " x );
.br
.BI "float log2f(float " x );
.br
.BI "long double log2l(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR log2 (),
.BR log2f (),
logb, logbf, logbl \- get exponent of a floating-point value
.SH SYNOPSIS
.B #include <math.h>
-.sp
+.PP
.BI "double logb(double " x );
.br
.BI "float logbf(float " x );
.br
.BI "long double logbl(long double " x );
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR logb ():
.RS 4
login, logout \- write utmp and wtmp entries
.SH SYNOPSIS
.B #include <utmp.h>
-.sp
+.PP
.BI "void login(const struct utmp *" ut );
-.sp
+.PP
.BI "int logout(const char *" ut_line );
-.sp
+.PP
Link with \fI\-lutil\fP.
.SH DESCRIPTION
The utmp file records who is currently using the system.
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "long int lrint(double " x );
.br
.BI "long int lrintf(float " x );
.br
.BI "long int lrintl(long double " x );
-.sp
+.PP
.BI "long long int llrint(double " x );
.br
.BI "long long int llrintf(float " x );
.br
.BI "long long int llrintl(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
All functions shown above:
.RS 4
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "long int lround(double " x );
.br
.BI "long int lroundf(float " x );
.br
.BI "long int lroundl(long double " x );
-.sp
+.PP
.BI "long long int llround(double " x );
.br
.BI "long long int llroundf(float " x );
.br
.BI "long long int llroundl(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
All functions shown above:
.RS 4
.SH SYNOPSIS
.nf
.B #include <search.h>
-.sp
+.PP
.BI "void *lfind(const void *" key ", const void *" base ", size_t *" nmemb ,
.BI " size_t " size ", int(*" compar ")(const void *, const void *));"
-.sp
+.PP
.BI "void *lsearch(const void *" key ", void *" base ", size_t *" nmemb ,
.BI " size_t " size ", int(*" compar ")(const void *, const void *));"
.fi
.B #include <sys/types.h>
.br
.B #include <unistd.h>
-.sp
+.PP
.BI "off64_t lseek64(int " fd ", off64_t " offset ", int " whence );
.SH DESCRIPTION
The
makecontext, swapcontext \- manipulate user context
.SH SYNOPSIS
.B #include <ucontext.h>
-.sp
+.PP
.BI "void makecontext(ucontext_t *" ucp ", void (*" func )(),
.BI "int " argc ", ...);"
-.sp
+.PP
.BI "int swapcontext(ucontext_t *" oucp ", const ucontext_t *" ucp );
.SH DESCRIPTION
In a System V-like environment, one has the type \fIucontext_t\fP defined in
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "void *malloc(size_t " "size" );
.BI "void free(void " "*ptr" );
.BI "void *calloc(size_t " "nmemb" ", size_t " "size" );
.SH SYNOPSIS
.nf
.B #include <malloc.h>
-.sp
+.PP
.BI "void* malloc_get_state(void);"
.BI "int malloc_set_state(void *" state );
.SH SYNOPSIS
.nf
.B "#include <malloc.h>"
-.sp
+.PP
.BI "void *(*__malloc_hook)(size_t " size ", const void *" caller );
-.sp
+.PP
.BI "void *(*__realloc_hook)(void *" ptr ", size_t " size \
", const void *" caller );
-.sp
+.PP
.BI "void *(*__memalign_hook)(size_t " alignment ", size_t " size ,
.BI " const void *" caller );
-.sp
+.PP
.BI "void (*__free_hook)(void *" ptr ", const void *" caller );
-.sp
+.PP
.B "void (*__malloc_initialize_hook)(void);"
-.sp
+.PP
.B "void (*__after_morecore_hook)(void);"
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <malloc.h>
-.sp
+.PP
.BI "int malloc_info(int " options ", FILE *" stream );
.fi
.SH DESCRIPTION
.B extern _LIB_VERSION_TYPE _LIB_VERSION;
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
|| /* Glibc versions <= 2.19: */ _SVID_SOURCE
.RE
.ad b
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
The System V Interface Definition (SVID) specifies that various
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "int mblen(const char *" s ", size_t " n );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "size_t mbrlen(const char *" s ", size_t " n ", mbstate_t *" ps );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "size_t mbrtowc(wchar_t *" pwc ", const char *" s ", size_t " n \
", mbstate_t *" ps );
.fi
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "int mbsinit(const mbstate_t *" ps );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "size_t mbsnrtowcs(wchar_t *" dest ", const char **" src ,
.BI " size_t " nms ", size_t " len ", mbstate_t *" ps );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR mbsnrtowcs ():
.PD 0
.ad l
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "size_t mbsrtowcs(wchar_t *" dest ", const char **" src ,
.BI " size_t " len ", mbstate_t *" ps );
.fi
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "size_t mbstowcs(wchar_t *" dest ", const char *" src ", size_t " n );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "int mbtowc(wchar_t *" pwc ", const char *" s ", size_t " n );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <mcheck.h>
-.sp
+.PP
.BI "int mcheck(void (*" abortfunc ")(enum mcheck_status " mstatus ));
.BI "int mcheck_pedantic(void (*" abortfunc ")(enum mcheck_status " mstatus ));
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "void *memccpy(void *" dest ", const void *" src ", int " c ", size_t " n );
.fi
.SH DESCRIPTION
.BI "void *rawmemchr(const void *" s ", int " c );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR memrchr (),
.BR rawmemchr ():
_GNU_SOURCE
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "int memcmp(const void *" s1 ", const void *" s2 ", size_t " n );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "void *memcpy(void *" dest ", const void *" src ", size_t " n );
.fi
.SH DESCRIPTION
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <string.h>
-.sp
+.PP
.BI "void *memfrob(void *" s ", size_t " n );
.fi
.SH DESCRIPTION
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <string.h>
-.sp
+.PP
.BI "void *memmem(const void *" haystack ", size_t " haystacklen ,
.BI " const void *" needle ", size_t " needlelen );
.fi
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "void *memmove(void *" dest ", const void *" src ", size_t " n );
.fi
.SH DESCRIPTION
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <string.h>
-.sp
+.PP
.BI "void *mempcpy(void *" dest ", const void *" src ", size_t " n );
-.sp
+.PP
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <wchar.h>
-.sp
+.PP
.BI "wchar_t *wmempcpy(wchar_t *" dest ", const wchar_t *" src ", size_t " n );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "void *memset(void *" s ", int " c ", size_t " n );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "char *mkdtemp(char *" template );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR mkdtemp ():
.br
.ad l
.nf
.B #include <sys/types.h>
.B #include <sys/stat.h>
-.sp
+.PP
.BI "int mkfifo(const char *" pathname ", mode_t " mode );
-.sp
+.PP
.BR "#include <fcntl.h> " "/* Definition of AT_* constants */"
.B #include <sys/stat.h>
-.sp
+.PP
.BI "int mkfifoat(int " dirfd ", const char *" pathname ", mode_t " mode );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR mkfifoat ():
.PD 0
.ad l
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "int mkstemp(char *" template );
-.sp
+.PP
.BI "int mkostemp(char *" template ", int " flags );
-.sp
+.PP
.BI "int mkstemps(char *" template ", int " suffixlen );
-.sp
+.PP
.BI "int mkostemps(char *" template ", int " suffixlen ", int " flags );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR mkstemp ():
.ad l
.RS 4
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "char *mktemp(char *" template );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR mktemp ():
.ad l
.PD 0
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double modf(double " x ", double *" iptr );
.br
.BI "float modff(float " x ", float *" iptr );
.br
.BI "long double modfl(long double " x ", long double *" iptr );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR modf (),
.BR modfl ():
.nf
.B #include <db.h>
.B #include <mpool.h>
-.sp
+.PP
.BI "MPOOL *mpool_open(DBT *" key ", int " fd ", pgno_t " pagesize \
", pgno_t " maxcache );
-.sp
+.PP
.BI "void mpool_filter(MPOOL *" mp ", void (*pgin)(void *, pgno_t, void *),"
.BI " void (*" pgout ")(void *, pgno_t, void *),"
.BI " void *" pgcookie );
-.sp
+.PP
.BI "void *mpool_new(MPOOL *" mp ", pgno_t *" pgnoaddr );
-.sp
+.PP
.BI "void *mpool_get(MPOOL *" mp ", pgno_t " pgno ", unsigned int " flags );
-.sp
+.PP
.BI "int mpool_put(MPOOL *" mp ", void *" pgaddr ", unsigned int " flags );
-.sp
+.PP
.BI "int mpool_sync(MPOOL *" mp );
-.sp
+.PP
.BI "int mpool_close(MPOOL *" mp );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <mqueue.h>
-.sp
+.PP
.BI "int mq_close(mqd_t " mqdes );
.fi
-.sp
+.PP
Link with \fI\-lrt\fP.
.SH DESCRIPTION
.BR mq_close ()
.SH SYNOPSIS
.nf
.B #include <mqueue.h>
-.sp
+.PP
.BI "int mq_getattr(mqd_t " mqdes ", struct mq_attr *" attr );
.BI "int mq_setattr(mqd_t " mqdes ", const struct mq_attr *" newattr ","
.BI " struct mq_attr *" oldattr );
.fi
-.sp
+.PP
Link with \fI\-lrt\fP.
.SH DESCRIPTION
.BR mq_getattr ()
.SH SYNOPSIS
.nf
.B #include <mqueue.h>
-.sp
+.PP
.BI "int mq_notify(mqd_t " mqdes ", const struct sigevent *" sevp );
.fi
-.sp
+.PP
Link with \fI\-lrt\fP.
.SH DESCRIPTION
.BR mq_notify ()
.BR "#include <fcntl.h>" " /* For O_* constants */"
.BR "#include <sys/stat.h>" " /* For mode constants */"
.B #include <mqueue.h>
-.sp
+.PP
.BI "mqd_t mq_open(const char *" name ", int " oflag );
.BI "mqd_t mq_open(const char *" name ", int " oflag ", mode_t " mode ,
.BI " struct mq_attr *" attr );
.fi
-.sp
+.PP
Link with \fI\-lrt\fP.
.SH DESCRIPTION
.BR mq_open ()
.SH SYNOPSIS
.nf
.B #include <mqueue.h>
-.sp
+.PP
.BI "ssize_t mq_receive(mqd_t " mqdes ", char *" msg_ptr ,
.BI " size_t " msg_len ", unsigned int *" msg_prio );
-.sp
+.PP
.B #include <time.h>
.B #include <mqueue.h>
-.sp
+.PP
.BI "ssize_t mq_timedreceive(mqd_t " mqdes ", char *" msg_ptr ,
.BI " size_t " msg_len ", unsigned int *" msg_prio ,
.BI " const struct timespec *" abs_timeout );
.fi
-.sp
+.PP
Link with \fI\-lrt\fP.
-.sp
+.PP
.ad l
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR mq_timedreceive ():
.RS 4
_POSIX_C_SOURCE\ >=\ 200112L
.SH SYNOPSIS
.nf
.B #include <mqueue.h>
-.sp
+.PP
.BI "int mq_send(mqd_t " mqdes ", const char *" msg_ptr ,
.BI " size_t " msg_len ", unsigned int " msg_prio );
-.sp
+.PP
.B #include <time.h>
.B #include <mqueue.h>
-.sp
+.PP
.BI "int mq_timedsend(mqd_t " mqdes ", const char *" msg_ptr ,
.BI " size_t " msg_len ", unsigned int " msg_prio ,
.BI " const struct timespec *" abs_timeout );
.fi
-.sp
+.PP
Link with \fI\-lrt\fP.
-.sp
+.PP
.ad l
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR mq_timedsend ():
.RS 4
_POSIX_C_SOURCE\ >=\ 200112L
.SH SYNOPSIS
.nf
.B #include <mqueue.h>
-.sp
+.PP
.BI "int mq_unlink(const char *" name );
.fi
-.sp
+.PP
Link with \fI\-lrt\fP.
.SH DESCRIPTION
.BR mq_unlink ()
mtrace, muntrace \- malloc tracing
.SH SYNOPSIS
.B "#include <mcheck.h>"
-.sp
+.PP
.B "void mtrace(void);"
-.sp
+.PP
.B "void muntrace(void);"
.SH DESCRIPTION
The
nan, nanf, nanl \- return 'Not a Number'
.SH SYNOPSIS
.B #include <math.h>
-.sp
+.PP
.BI "double nan(const char *" tagp );
.br
.BI "float nanf(const char *" tagp );
.br
.BI "long double nanl(const char *" tagp );
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR nan (),
.BR nanf (),
.B #include <asm/types.h>
.br
.B #include <linux/netlink.h>
-.sp
+.PP
.BI "int NLMSG_ALIGN(size_t " len );
.br
.BI "int NLMSG_LENGTH(size_t " len );
.BI "void freelocale(locale_t " locobj );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR newlocale (),
.BR freelocale ():
.PD 0
floating-point number manipulation
.SH SYNOPSIS
.B #include <math.h>
-.sp
+.PP
.BI "double nextafter(double " x ", double " y );
.br
.BI "float nextafterf(float " x ", float " y );
.br
.BI "long double nextafterl(long double " x ", long double " y );
-.sp
+.PP
.BI "double nexttoward(double " x ", long double " y );
.br
.BI "float nexttowardf(float " x ", long double " y );
.br
.BI "long double nexttowardl(long double " x ", long double " y );
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR nextafter ():
.RS 4
.SH SYNOPSIS
.nf
.B #include <langinfo.h>
-.sp
+.PP
.BI "char *nl_langinfo(nl_item " item );
-.sp
+.PP
.BI "char *nl_langinfo_l(nl_item " item ", locale_t " locale );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR nl_langinfo_l ():
.RS 4
.SH SYNOPSIS
.nf
.B #include <stddef.h>
-.sp
+.PP
.BI "size_t offsetof(" type ", " member );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "int on_exit(void (*" function ")(int , void *), void *" arg );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR on_exit ():
Since glibc 2.19:
_DEFAULT_SOURCE
.BI "FILE *open_wmemstream(wchar_t **" ptr ", size_t *" sizeloc );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR open_memstream (),
.BR open_wmemstream ():
.PD 0
.B #include <sys/types.h>
.br
.B #include <dirent.h>
-.sp
+.PP
.BI "DIR *opendir(const char *" name );
.BI "DIR *fdopendir(int " fd );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR fdopendir ():
.PD 0
.ad l
.SH SYNOPSIS
.nf
.B #include <pty.h>
-.sp
+.PP
.BI "int openpty(int *" amaster ", int *" aslave ", char *" name ,
.BI " const struct termios *" termp ,
.BI " const struct winsize *" winp );
-.sp
+.PP
.BI "pid_t forkpty(int *" amaster ", char *" name ,
.BI " const struct termios *" termp ,
.BI " const struct winsize *" winp );
-.sp
+.PP
.B #include <utmp.h>
-.sp
+.PP
.BI "int login_tty(int " fd );
-.sp
+.PP
Link with \fI\-lutil\fP.
.fi
.SH DESCRIPTION
perror \- print a system error message
.SH SYNOPSIS
.B #include <stdio.h>
-.sp
+.PP
.BI "void perror(const char *" s );
-.sp
+.PP
.B #include <errno.h>
-.sp
+.PP
.BI "const char * const " sys_errlist [];
.br
.BI "int " sys_nerr ;
.br
.BI "int " errno "; \fR/* Not really declared this way; see errno(3) */"
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.IR sys_errlist ,
.IR sys_nerr :
Since glibc 2.19:
.SH SYNOPSIS
.nf
.B #include <stdio.h>
-.sp
+.PP
.BI "FILE *popen(const char *" command ", const char *" type );
-.sp
+.PP
.BI "int pclose(FILE *" stream );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.ad l
.in
-.sp
+.PP
.BR popen (),
.BR pclose ():
.RS 4
.SH SYNOPSIS
.nf
.B #include <fcntl.h>
-.sp
+.PP
.BI "int posix_fallocate(int " fd ", off_t " offset ", off_t " len );
.fi
-.sp
+.PP
.ad l
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR posix_fallocate ():
.RS 4
_POSIX_C_SOURCE\ >=\ 200112L
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR posix_madvise ():
.br
.RS 4
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.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 );
-.sp
+.PP
.B #include <malloc.h>
-.sp
+.PP
.BI "void *memalign(size_t " alignment ", size_t " size );
.BI "void *pvalloc(size_t " size );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR posix_memalign ():
_POSIX_C_SOURCE\ >=\ 200112L
-.sp
+.PP
.BR aligned_alloc ():
_ISOC11_SOURCE
-.sp
+.PP
.BR valloc ():
.br
.PD 0
.nf
.B #include <stdlib.h>
.B #include <fcntl.h>
-.sp
+.PP
.BI "int posix_openpt(int " flags ");"
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR posix_openpt ():
_XOPEN_SOURCE\ >=\ 600
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double pow(double " x ", double " y );
.br
.BI "float powf(float " x ", float " y );
.br
.BI "long double powl(long double " x ", long double " y );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR powf (),
.BR powl ():
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <math.h>
-.sp
+.PP
.BI "double pow10(double " x );
.br
.BI "float pow10f(float " x );
.br
.BI "long double pow10l(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
These functions return the value of 10 raised to the power
vsprintf, vsnprintf \- formatted output conversion
.SH SYNOPSIS
.B #include <stdio.h>
-.sp
+.PP
.BI "int printf(const char *" format ", ...);"
.br
.BI "int fprintf(FILE *" stream ", const char *" format ", ...);"
.BI "int sprintf(char *" str ", const char *" format ", ...);"
.br
.BI "int snprintf(char *" str ", size_t " size ", const char *" format ", ...);"
-.sp
+.PP
.B #include <stdarg.h>
-.sp
+.PP
.BI "int vprintf(const char *" format ", va_list " ap );
.br
.BI "int vfprintf(FILE *" stream ", const char *" format ", va_list " ap );
.br
.BI "int vsnprintf(char *" str ", size_t " size ", const char *" format \
", va_list " ap );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR snprintf (),
.BR vsnprintf ():
_XOPEN_SOURCE\ >=\ 500 || _ISOC99_SOURCE ||
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE
.RE
-.sp
+.PP
.BR dprintf (),
.BR vdprintf ():
.PD 0
.SH SYNOPSIS
.nf
.B #include <unistd.h>
-.sp
+.PP
.BI "int profil(unsigned short *" buf ", size_t " bufsiz ,
.BI " size_t " offset ", unsigned int " scale );
-.sp
+.PP
.fi
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR profil ():
.nf
Since glibc 2.21:
.SH SYNOPSIS
.nf
.B #include <signal.h>
-.sp
+.PP
.BI "void psignal(int " sig ", const char *" s );
.BI "void psiginfo(const siginfo_t *" pinfo ", const char *" s );
-.sp
+.PP
.BI "extern const char *const " sys_siglist [];
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR psignal ():
Since glibc 2.19:
_DEFAULT_SOURCE
.BI "int pthread_atfork(void (*" prepare ")(void), void (*" parent ")(void),"
.BI " void (*" child ")(void));"
.fi
-.sp
+.PP
Link with \fI\-pthread\fP.
.SH DESCRIPTION
The
.BI "int pthread_attr_init(pthread_attr_t *" attr );
.BI "int pthread_attr_destroy(pthread_attr_t *" attr );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
.BI " size_t " cpusetsize ", const cpu_set_t *" cpuset );
.BI "int pthread_attr_getaffinity_np(const pthread_attr_t *" attr ,
.BI " size_t " cpusetsize ", cpu_set_t *" cpuset );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
", int " detachstate );
.BI "int pthread_attr_getdetachstate(const pthread_attr_t *" attr \
", int *" detachstate );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
", size_t " guardsize );
.BI "int pthread_attr_getguardsize(const pthread_attr_t *" attr \
", size_t *" guardsize );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
.BI " int " inheritsched );
.BI "int pthread_attr_getinheritsched(const pthread_attr_t *" attr ,
.BI " int *" inheritsched );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
.BI " const struct sched_param *" param );
.BI "int pthread_attr_getschedparam(const pthread_attr_t *" attr ,
.BI " struct sched_param *" param );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
", int " policy );
.BI "int pthread_attr_getschedpolicy(const pthread_attr_t *" attr \
", int " *policy );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
", int " scope );
.BI "int pthread_attr_getscope(const pthread_attr_t *" attr \
", int *" scope );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
.BI " void *" stackaddr ", size_t " stacksize );
.BI "int pthread_attr_getstack(const pthread_attr_t *" attr ,
.BI " void **" stackaddr ", size_t *" stacksize );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR pthread_attr_getstack (),
.BR pthread_attr_setstack ():
", void *" stackaddr );
.BI "int pthread_attr_getstackaddr(const pthread_attr_t *" attr \
", void **" stackaddr );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
", size_t " stacksize );
.BI "int pthread_attr_getstacksize(const pthread_attr_t *" attr \
", size_t *" stacksize );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
.B #include <pthread.h>
.BI "int pthread_cancel(pthread_t " thread );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
.BI "void pthread_cleanup_push(void (*" routine ")(void *),"
.BI " void *" arg );
.BI "void pthread_cleanup_pop(int " execute );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
.BI " void *" arg );
.BI "void pthread_cleanup_pop_restore_np(int " execute );
.fi
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR pthread_cleanup_push_defer_np (),
.BR pthread_cleanup_pop_defer_np ():
.BI "int pthread_create(pthread_t *" thread ", const pthread_attr_t *" attr ,
.BI " void *(*" start_routine ") (void *), void *" arg );
.fi
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.SH DESCRIPTION
The
.BI "int pthread_detach(pthread_t " thread );
.fi
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.SH DESCRIPTION
The
.B #include <pthread.h>
.BI "int pthread_equal(pthread_t " t1 ", pthread_t " t2 );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
.B #include <pthread.h>
.BI "void pthread_exit(void *" retval );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
.BI "int pthread_getattr_default_np(pthread_attr_t *" attr );
.BI "int pthread_setattr_default_np(pthread_attr_t *" attr );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
.B #include <pthread.h>
.BI "int pthread_getattr_np(pthread_t " thread ", pthread_attr_t *" attr );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
.B #include <time.h>
.BI "int pthread_getcpuclockid(pthread_t " thread ", clockid_t *" clock_id );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
.BI "int pthread_join(pthread_t " thread ", void **" retval );
.fi
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.SH DESCRIPTION
The
.BI "int pthread_kill(pthread_t " thread ", int " sig );
.fi
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR pthread_kill ():
.RS 4
.BI " int " pref );
.BI "int pthread_rwlockattr_getkind_np(const pthread_rwlockattr_t *" attr ,
.BI " int *" pref );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
-.sp
+.PP
.fi
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR pthread_rwlockattr_setkind_np (),
.BR pthread_rwlockattr_getkind_np ():
.br
.B #include <pthread.h>
.B pthread_t pthread_self(void);
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
.BI " const cpu_set_t *" cpuset );
.BI "int pthread_getaffinity_np(pthread_t " thread ", size_t " cpusetsize ,
.BI " cpu_set_t *" cpuset );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
.BI "int pthread_setcancelstate(int " state ", int *" oldstate );
.BI "int pthread_setcanceltype(int " type ", int *" oldtype );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
.BI "int pthread_setconcurrency(int " new_level );
.BI "int pthread_getconcurrency(void);
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
.BI "int pthread_getname_np(pthread_t " thread ,
.BI " char *" name ", size_t " len );
.fi
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.SH DESCRIPTION
By default, all the threads created using
.BI " const struct sched_param *" param );
.BI "int pthread_getschedparam(pthread_t " thread ", int *" policy ,
.BI " struct sched_param *" param );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
.B #include <pthread.h>
.BI "int pthread_setschedprio(pthread_t " thread ", int " prio );
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
.BI "int pthread_sigmask(int " how ", const sigset_t *" set \
", sigset_t *" oldset );
.fi
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR pthread_sigmask ():
.RS 4
.BI "int pthread_sigqueue(pthread_t " thread ", int " sig ,
.BI " const union sigval " value );
.fi
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR pthread_sigqueue ():
_GNU_SOURCE
.SH DESCRIPTION
.B #include <pthread.h>
.B void pthread_testcancel(void);
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.fi
.SH DESCRIPTION
.BI "int pthread_timedjoin_np(pthread_t " thread ", void **" retval ,
.BI " const struct timespec *" abstime );
.fi
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.SH DESCRIPTION
These functions operate in the same way as
.B int pthread_yield(void);
.fi
-.sp
+.PP
Compile and link with \fI\-pthread\fP.
.SH DESCRIPTION
.BR pthread_yield ()
ptsname, ptsname_r \- get the name of the slave pseudoterminal
.SH SYNOPSIS
.B #include <stdlib.h>
-.sp
+.PP
.BI "char *ptsname(int " fd ");"
.br
.BI "int ptsname_r(int " fd ", char *" buf ", size_t " buflen ");"
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "int putenv(char *" string );
.\" Not: const char *
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR putenv ():
_XOPEN_SOURCE
|| /* Glibc since 2.19: */ _DEFAULT_SOURCE
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <grp.h>
-.sp
+.PP
.BI "int putgrent(const struct group *" grp ", FILE *" stream );
.SH DESCRIPTION
The
.B #include <stdio.h>
.B #include <sys/types.h>
.B #include <pwd.h>
-.sp
+.PP
.BI "int putpwent(const struct passwd *" p ", FILE *" stream );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR putpwent ():
Since glibc 2.19:
_DEFAULT_SOURCE
.SH SYNOPSIS
.nf
.B #include <stdio.h>
-.sp
+.PP
.BI "int fputc(int " c ", FILE *" stream );
.BI "int fputs(const char *" "s" ", FILE *" "stream" );
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "wint_t putwchar(wchar_t " wc );
.fi
.SH DESCRIPTION
qecvt, qfcvt, qgcvt \- convert a floating-point number to a string
.SH SYNOPSIS
.B #include <stdlib.h>
-.sp
+.PP
.BI "char *qecvt(long double " number ", int " ndigits ", int *" decpt ,
.BI "int *" sign );
-.sp
+.PP
.BI "char *qfcvt(long double " number ", int " ndigits ", int *" decpt ,
.BI "int *" sign );
-.sp
+.PP
.BI "char *qgcvt(long double " number ", int " ndigit ", char *" buf );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR qecvt (),
.BR qfcvt (),
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "void qsort(void *" base ", size_t " nmemb ", size_t " size ,
.BI " int (*" compar ")(const void *, const void *));"
-.sp
+.PP
.BI "void qsort_r(void *" base ", size_t " nmemb ", size_t " size ,
.BI " int (*" compar ")(const void *, const void *, void *),"
.BI " void *" arg ");"
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR qsort_r ():
_GNU_SOURCE
.SH SYNOPSIS
.nf
.B #include <signal.h>
-.sp
+.PP
.BI "int raise(int " sig );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.B int rand(void);
-.sp
+.PP
.BI "int rand_r(unsigned int *" seedp );
-.sp
+.PP
.BI "void srand(unsigned int " seed );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR rand_r ():
.RS 4
Since glibc 2.24:
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.B long int random(void);
.BI "void srandom(unsigned int " seed );
.br
.BI "char *setstate(char *" state );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR random (),
.BR srandom (),
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "int random_r(struct random_data *" buf ", int32_t *" result );
.BI "int srandom_r(unsigned int " seed ", struct random_data *" buf );
.br
.BI "int setstate_r(char *" statebuf ", struct random_data *" buf );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR random_r (),
.BR srandom_r (),
.SH SYNOPSIS
.nf
.B #include <netdb.h> \ \ \fP/* Or <unistd.h> on some systems */
-.sp
+.PP
.BI "int rcmd(char **" ahost ", unsigned short " inport ", const char *" locuser ", "
.BI " const char *" remuser ", const char *" cmd ", int *" fd2p );
-.sp
+.PP
.BI "int rresvport(int *" port );
-.sp
+.PP
.BI "int iruserok(uint32_t " raddr ", int " superuser ", "
.BI " const char *" ruser ", const char *" luser );
-.sp
+.PP
.BI "int ruserok(const char *" rhost ", int " superuser ", "
.BI " const char *" ruser ", const char *" luser );
-.sp
+.PP
.BI "int rcmd_af(char **" ahost ", unsigned short " inport ", const char *" locuser ", "
.BI " const char *" remuser ", const char *" cmd ", int *" fd2p ,
.BI " sa_family_t " af );
-.sp
+.PP
.BI "int rresvport_af(int *" port ", sa_family_t " af );
-.sp
+.PP
.BI "int iruserok_af(const void *" raddr ", int " superuser ", "
.BI " const char *" ruser ", const char *" luser \
", sa_family_t " af );
-.sp
+.PP
.BI "int ruserok_af(const char *" rhost ", int " superuser ", "
.BI " const char *" ruser ", const char *" luser \
", sa_family_t " af );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR rcmd (),
.BR rcmd_af (),
.BR rresvport (),
.B #include <sys/types.h>
.br
.B #include <regex.h>
-.sp
+.PP
.BI "char *re_comp(const char *" regex );
-.sp
+.PP
.BI "int re_exec(const char *" string );
.SH DESCRIPTION
.BR re_comp ()
.SH SYNOPSIS
.nf
.B #include <dirent.h>
-.sp
+.PP
.BI "struct dirent *readdir(DIR *" dirp );
.fi
.SH DESCRIPTION
.nf
.B #include <limits.h>
.B #include <stdlib.h>
-.sp
+.PP
.BI "char *realpath(const char *" path ", char *" resolved_path );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR realpath ():
.ad l
.RS 4
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
/* The C99 versions */
.BI "double remainder(double " x ", double " y );
.BI "float remainderf(float " x ", float " y );
.BI "long double remainderl(long double " x ", long double " y );
-.sp
+.PP
/* Obsolete synonyms */
.BI "double drem(double " x ", double " y );
.BI "float dremf(float " x ", float " y );
.BI "long double dreml(long double " x ", long double " y );
-.sp
+.PP
.fi
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR remainder ():
.RS 4
remove \- remove a file or directory
.SH SYNOPSIS
.B #include <stdio.h>
-.sp
+.PP
.BI "int remove(const char *" pathname );
.SH DESCRIPTION
.BR remove ()
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double remquo(double " x ", double " y ", int *" quo );
.br
.BI "float remquof(float " x ", float " y ", int *" quo );
.br
.BI "long double remquol(long double " x ", long double " y ", int *" quo );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR remquo (),
.BR remquof (),
.BI "int res_send(const unsigned char *" msg ", int " msglen ,
.BI " unsigned char *" answer ", int " anslen );
.fi
-.sp
+.PP
Link with \fI\-lresolv\fP.
.SH DESCRIPTION
.B Note:
.SH SYNOPSIS
.nf
.B #include <sys/types.h>
-.sp
+.PP
.B #include <dirent.h>
-.sp
+.PP
.BI "void rewinddir(DIR *" dirp );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <netdb.h>
-.sp
+.PP
.BI "int rexec(char **" ahost ", int " inport ", const char *" user ", "
.BI " const char *" passwd ", const char *" cmd ", int *" fd2p );
-.sp
+.PP
.BI "int rexec_af(char **" ahost ", int " inport ", const char *" user ", "
.BI " const char *" passwd ", const char *" cmd ", int *" fd2p ,
.BI " sa_family_t " af );
.fi
-.sp
+.PP
.BR rexec (),
.BR rexec_af ():
.nf
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double nearbyint(double " x );
.br
.BI "float nearbyintf(float " x );
.br
.BI "long double nearbyintl(long double " x );
-.sp
+.PP
.BI "double rint(double " x );
.br
.BI "float rintf(float " x );
.br
.BI "long double rintl(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR nearbyint (),
.BR nearbyintf (),
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double round(double " x );
.br
.BI "float roundf(float " x );
.br
.BI "long double roundl(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR round (),
.BR roundf (),
.BI "int rpmatch(const char *" response );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR rpmatch ():
Since glibc 2.19:
_DEFAULT_SOURCE
.SH SYNOPSIS
.nf
.B "#include <rpc/auth_des.h>"
-.sp
+.PP
.BI "int rtime(struct sockaddr_in *" addrp ", struct rpc_timeval *" timep ,
.BI " struct rpc_timeval *" timeout );
.fi
.BI "rtnetlink_socket = socket(AF_NETLINK, int " socket_type \
", NETLINK_ROUTE);"
-.sp
+.PP
.BI "int RTA_OK(struct rtattr *" rta ", int " rtabuflen );
-.sp
+.PP
.BI "void *RTA_DATA(struct rtattr *" rta );
-.sp
+.PP
.BI "unsigned int RTA_PAYLOAD(struct rtattr *" rta );
-.sp
+.PP
.BI "struct rtattr *RTA_NEXT(struct rtattr *" rta \
", unsigned int " rtabuflen );
-.sp
+.PP
.BI "unsigned int RTA_LENGTH(unsigned int " length );
-.sp
+.PP
.BI "unsigned int RTA_SPACE(unsigned int "length );
.SH DESCRIPTION
All
by integral power of radix (OBSOLETE)
.SH SYNOPSIS
.B #include <math.h>
-.sp
+.PP
.BI "double scalb(double " x ", double " exp );
.br
.BI "float scalbf(float " x ", float " exp );
.br
.BI "long double scalbl(long double " x ", long double " exp );
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR scalb ():
.RS 4
multiply floating-point number by integral power of radix
.SH SYNOPSIS
.B #include <math.h>
-.sp
+.PP
.BI "double scalbln(double " x ", long int " exp );
.br
.BI "float scalblnf(float " x ", long int " exp );
.br
.BI "long double scalblnl(long double " x ", long int " exp );
-.sp
+.PP
.BI "double scalbn(double " x ", int " exp );
.br
.BI "float scalbnf(float " x ", int " exp );
.br
.BI "long double scalbnl(long double " x ", int " exp );
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR scalbln (),
.BR scalblnf (),
.SH SYNOPSIS
.nf
.B #include <dirent.h>
-.sp
+.PP
.BI "int scandir(const char *" dirp ", struct dirent ***" namelist ,
.RS
.BI "int (*" filter ")(const struct dirent *),"
.BI "int (*" compar ")(const struct dirent **, const struct dirent **));"
.RE
-.sp
+.PP
.BI "int alphasort(const struct dirent **" a ", const struct dirent **" b );
-.sp
+.PP
.BI "int versionsort(const struct dirent **" a ", const struct dirent **" b );
.BR "#include <fcntl.h>" " /* Definition of AT_* constants */"
.B #include <dirent.h>
-.sp
+.PP
.fi
.BI "int scandirat(int " dirfd ", const char *" dirp ","
.BI "struct dirent ***" namelist ,
.BI "int (*" compar ")(const struct dirent **, const struct dirent **));"
.RE
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR scandir (),
.BR alphasort ():
.br
|| /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
.PD
.RE
-.sp
+.PP
.BR versionsort ():
_GNU_SOURCE
-.sp
+.PP
.BR scandirat ():
_GNU_SOURCE
.SH DESCRIPTION
.BI "int scanf(const char *" format ", ...);"
.BI "int fscanf(FILE *" stream ", const char *" format ", ...);"
.BI "int sscanf(const char *" str ", const char *" format ", ...);"
-.sp
+.PP
.B #include <stdarg.h>
.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 );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
.ad l
-.sp
+.PP
.BR vscanf (),
.BR vsscanf (),
.BR vfscanf ():
.B int sched_getcpu(void);
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR sched_getcpu ():
.ad l
.RS 4
.SH SYNOPSIS
.nf
.B #include <dirent.h>
-.sp
+.PP
.BI "void seekdir(DIR *" dirp ", long " loc );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR seekdir ():
_XOPEN_SOURCE
|| /* Glibc since 2.19: */ _DEFAULT_SOURCE
.SH SYNOPSIS
.nf
.B #include <semaphore.h>
-.sp
+.PP
.BI "int sem_close(sem_t *" sem );
.fi
-.sp
+.PP
Link with \fI\-pthread\fP.
.SH DESCRIPTION
.BR sem_close ()
.SH SYNOPSIS
.nf
.B #include <semaphore.h>
-.sp
+.PP
.BI "int sem_destroy(sem_t *" sem );
.fi
-.sp
+.PP
Link with \fI\-pthread\fP.
.SH DESCRIPTION
.BR sem_destroy ()
.SH SYNOPSIS
.nf
.B #include <semaphore.h>
-.sp
+.PP
.BI "int sem_getvalue(sem_t *" sem ", int *" sval );
.fi
-.sp
+.PP
Link with \fI\-pthread\fP.
.SH DESCRIPTION
.BR sem_getvalue ()
.SH SYNOPSIS
.nf
.B #include <semaphore.h>
-.sp
+.PP
.BI "int sem_init(sem_t *" sem ", int " pshared ", unsigned int " value );
.fi
-.sp
+.PP
Link with \fI\-pthread\fP.
.SH DESCRIPTION
.BR sem_init ()
.BR "#include <fcntl.h>" " /* For O_* constants */"
.BR "#include <sys/stat.h>" " /* For mode constants */"
.B #include <semaphore.h>
-.sp
+.PP
.BI "sem_t *sem_open(const char *" name ", int " oflag );
.BI "sem_t *sem_open(const char *" name ", int " oflag ", "
.BI " mode_t " mode ", unsigned int " value );
.fi
-.sp
+.PP
Link with \fI\-pthread\fP.
.SH DESCRIPTION
.BR sem_open ()
.SH SYNOPSIS
.nf
.B #include <semaphore.h>
-.sp
+.PP
.BI "int sem_post(sem_t *" sem );
.fi
-.sp
+.PP
Link with \fI\-pthread\fP.
.SH DESCRIPTION
.BR sem_post ()
.SH SYNOPSIS
.nf
.B #include <semaphore.h>
-.sp
+.PP
.BI "int sem_unlink(const char *" name );
.fi
-.sp
+.PP
Link with \fI\-pthread\fP.
.SH DESCRIPTION
.BR sem_unlink ()
.SH SYNOPSIS
.nf
.B #include <semaphore.h>
-.sp
+.PP
.BI "int sem_wait(sem_t *" sem );
-.sp
+.PP
.BI "int sem_trywait(sem_t *" sem );
-.sp
+.PP
.BI "int sem_timedwait(sem_t *" sem ", const struct timespec *" abs_timeout );
.fi
-.sp
+.PP
Link with \fI\-pthread\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR sem_timedwait ():
_POSIX_C_SOURCE\ >=\ 200112L
.SH DESCRIPTION
getaliasbyname, getaliasbyname_r \- read an alias entry
.SH SYNOPSIS
.B #include <aliases.h>
-.sp
+.PP
.B "void setaliasent(void);"
-.sp
+.PP
.B "void endaliasent(void);"
-.sp
+.PP
.B "struct aliasent *getaliasent(void);"
-.sp
+.PP
.BI "int getaliasent_r(struct aliasent *" result ","
.br
.BI " char *" buffer ", size_t " buflen ", struct aliasent **" res );
-.sp
+.PP
.BI "struct aliasent *getaliasbyname(const char *" name );
-.sp
+.PP
.BI "int getaliasbyname_r(const char *" name ", struct aliasent *" result ,
.br
.BI " char *" buffer ", size_t " buflen ", struct aliasent **" res );
.BI "int setvbuf(FILE *" stream ", char *" buf ", int " mode \
", size_t " size );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR setbuffer (),
.BR setlinebuf ():
Since glibc 2.19:
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "int setenv(const char *" name ", const char *" value ", int " overwrite );
-.sp
+.PP
.BI "int unsetenv(const char *" name );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR setenv (),
.BR unsetenv ():
.SH SYNOPSIS
.nf
.B #include <locale.h>
-.sp
+.PP
.BI "char *setlocale(int " category ", const char *" locale );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <syslog.h>
-.sp
+.PP
.BI "int setlogmask(int " mask );
.fi
.SH DESCRIPTION
.BI "int innetgr(const char *" netgroup ", const char *" host ","
.BI " const char *" user ", const char *" domain );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR setnetgrent (),
.BR endnetgrent (),
.BR "#include <sys/stat.h>" " /* For mode constants */"
.br
.BR "#include <fcntl.h>" " /* For O_* constants */"
-.sp
+.PP
.BI "int shm_open(const char *" name ", int " oflag ", mode_t " mode );
-.sp
+.PP
.BI "int shm_unlink(const char *" name );
-.sp
+.PP
Link with \fI\-lrt\fP.
.SH DESCRIPTION
.BR shm_open ()
.SH SYNOPSIS
.nf
.B #include <signal.h>
-.sp
+.PP
.BI "int siginterrupt(int " sig ", int " flag );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR siginterrupt ():
.ad l
.RS 4
signbit \- test sign of a real floating-point number
.SH SYNOPSIS
.B "#include <math.h>"
-.sp
+.PP
.BI "int signbit(" x ");"
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR signbit ():
.RS 4
get mantissa of floating-point number
.SH SYNOPSIS
.B #include <math.h>
-.sp
+.PP
.BI "double significand(double " x );
.br
.BI "float significandf(float " x );
.br
.BI "long double significandl(long double " x );
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR significand (),
.BR significandf (),
.SH SYNOPSIS
.nf
.B #include <signal.h>
-.sp
+.PP
.BI "int sigpause(int " sigmask "); /* BSD (but see NOTES) */"
-.sp
+.PP
.BI "int sigpause(int " sig "); /* System V / UNIX 95 */"
.fi
.SH DESCRIPTION
sigqueue \- queue a signal and data to a process
.SH SYNOPSIS
.B #include <signal.h>
-.sp
+.PP
.BI "int sigqueue(pid_t " pid ", int " sig ", const union sigval " value );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR sigqueue ():
_POSIX_C_SOURCE\ >=\ 199309L
.SH DESCRIPTION
sigset, sighold, sigrelse, sigignore \- System V signal API
.SH SYNOPSIS
.B #include <signal.h>
-.sp
+.PP
.B typedef void (*sighandler_t)(int);
-.sp
+.PP
.BI "sighandler_t sigset(int " sig ", sighandler_t " disp );
-.sp
+.PP
.BI "int sighold(int " sig );
-.sp
+.PP
.BI "int sigrelse(int " sig );
-.sp
+.PP
.BI "int sigignore(int " sig );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR sigset (),
.BR sighold (),
sigvec, sigblock, sigsetmask, siggetmask, sigmask \- BSD signal API
.SH SYNOPSIS
.B #include <signal.h>
-.sp
+.PP
.BI "int sigvec(int " sig ", const struct sigvec *" vec ", struct sigvec *" ovec );
-.sp
+.PP
.BI "int sigmask(int " signum );
-.sp
+.PP
.BI "int sigblock(int " mask );
-.sp
+.PP
.BI "int sigsetmask(int " mask );
-.sp
+.PP
.B int siggetmask(void);
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
All functions shown above:
Since glibc 2.19:
_DEFAULT_SOURCE
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR sigwait ():
.RS 4
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double sin(double " x );
.br
.BI "float sinf(float " x );
.br
.BI "long double sinl(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR sinf (),
.BR sinl ():
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <math.h>
-.sp
+.PP
.BI "void sincos(double " x ", double *" sin ", double *" cos );
.br
.BI "void sincosf(float " x ", float *" sin ", float *" cos );
.br
.BI "void sincosl(long double " x ", long double *" sin ", long double *" cos );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
.SH DESCRIPTION
Several applications need sine and cosine of the same angle
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double sinh(double " x );
.br
.BI "float sinhf(float " x );
.br
.BI "long double sinhl(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR sinhf (),
.BR sinhl ():
.SH SYNOPSIS
.nf
.B #include <unistd.h>
-.sp
+.PP
.BI "unsigned int sleep(unsigned int " "seconds" );
.fi
.SH DESCRIPTION
sockatmark \- determine whether socket is at out-of-band mark
.SH SYNOPSIS
.B #include <sys/socket.h>
-.sp
+.PP
.BI "int sockatmark(int " sockfd );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR sockatmark ():
_POSIX_C_SOURCE\ >=\ 200112L
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double sqrt(double " x );
.br
.BI "float sqrtf(float " x );
.br
.BI "long double sqrtl(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR sqrtf (),
.BR sqrtl ():
statvfs, fstatvfs \- get filesystem statistics
.SH SYNOPSIS
.B #include <sys/statvfs.h>
-.sp
+.PP
.BI "int statvfs(const char *" path ", struct statvfs *" buf );
.br
.BI "int fstatvfs(int " fd ", struct statvfs *" buf );
stdarg, va_start, va_arg, va_end, va_copy \- variable argument lists
.SH SYNOPSIS
.B #include <stdarg.h>
-.sp
+.PP
.BI "void va_start(va_list " ap ", " last );
.br
.IB type " va_arg(va_list " ap ", " type );
stdio \- standard input/output library functions
.SH SYNOPSIS
.B #include <stdio.h>
-.sp
+.PP
.BI "FILE *" stdin ;
.br
.BI "FILE *" stdout ;
.B #include <stdio.h>
.br
.B #include <stdio_ext.h>
-.sp
+.PP
.BI "size_t __fbufsize(FILE *" stream );
.br
.BI "size_t __fpending(FILE *" stream );
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "char *stpcpy(char *" dest ", const char *" src );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR stpcpy ():
.PD 0
.ad l
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "char *stpncpy(char *" dest ", const char *" src ", size_t " n );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR stpncpy ():
.PD 0
.ad l
.SH SYNOPSIS
.nf
.B #include <strings.h>
-.sp
+.PP
.BI "int strcasecmp(const char *" s1 ", const char *" s2 );
-.sp
+.PP
.BI "int strncasecmp(const char *" s1 ", const char *" s2 ", size_t " n );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "char *strcat(char *" dest ", const char *" src );
-.sp
+.PP
.BI "char *strncat(char *" dest ", const char *" src ", size_t " n );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "char *strchr(const char *" s ", int " c );
-.sp
+.PP
.BI "char *strrchr(const char *" s ", int " c );
-.sp
+.PP
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <string.h>
-.sp
+.PP
.BI "char *strchrnul(const char *" s ", int " c );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "int strcmp(const char *" s1 ", const char *" s2 );
-.sp
+.PP
.BI "int strncmp(const char *" s1 ", const char *" s2 ", size_t " n );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "int strcoll(const char *" s1 ", const char *" s2 );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "char *strcpy(char *" dest ", const char *" src );
-.sp
+.PP
.BI "char *strncpy(char *" dest ", const char *" src ", size_t " n );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "char *strdup(const char *" s );
-.sp
+.PP
.BI "char *strndup(const char *" s ", size_t " n );
.br
.BI "char *strdupa(const char *" s );
.br
.BI "char *strndupa(const char *" s ", size_t " n );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
+.PP
.PD 0
.ad l
-.sp
.BR strdup ():
.RS 4
_XOPEN_SOURCE\ >=\ 500
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "char *strerror(int " errnum );
-.sp
+.PP
.BI "int strerror_r(int " errnum ", char *" buf ", size_t " buflen );
/* XSI-compliant */
-.sp
+.PP
.BI "char *strerror_r(int " errnum ", char *" buf ", size_t " buflen );
/* GNU-specific */
.BI "char *strerror_l(int " errnum ", locale_t " locale );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
.ad l
-.sp
+.PP
.BR strerror_r ():
.RS 4
The XSI-compliant version is provided if:
.SH SYNOPSIS
.nf
.B #include <monetary.h>
-.sp
+.PP
.BI "ssize_t strfmon(char *" s ", size_t " max ", const char *" format ,
.B "...);"
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR strfromd (),
.BR strfromf (),
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <string.h>
-.sp
+.PP
.BI "char *strfry(char *" string );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <time.h>
-.sp
+.PP
.BI "size_t strftime(char *" s ", size_t " max ", const char *" format ,
.BI " const struct tm *" tm );
.fi
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "size_t strlen(const char *" s );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "size_t strnlen(const char *" s ", size_t " maxlen );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR strnlen ():
.PD 0
.ad l
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "char *strpbrk(const char *" s ", const char *" accept );
.fi
.SH DESCRIPTION
.BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <time.h>
-.sp
+.PP
.BI "char *strptime(const char *" s ", const char *" format ,
.BI "struct tm *" tm );
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "char *strsep(char **" stringp ", const char *" delim );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR strsep ():
Since glibc 2.19:
_DEFAULT_SOURCE
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "char *strsignal(int " sig );
-.sp
+.PP
.BI "extern const char * const " sys_siglist [];
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR strsignal ():
.PD 0
.ad l
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "size_t strspn(const char *" s ", const char *" accept );
-.sp
+.PP
.BI "size_t strcspn(const char *" s ", const char *" reject );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "char *strstr(const char *" haystack ", const char *" needle );
-.sp
+.PP
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
-.sp
+.PP
.B #include <string.h>
-.sp
+.PP
.BI "char *strcasestr(const char *" haystack ", const char *" needle );
.fi
.SH DESCRIPTION
strtod, strtof, strtold \- convert ASCII string to floating-point number
.SH SYNOPSIS
.B #include <stdlib.h>
-.sp
+.PP
.BI "double strtod(const char *" nptr ", char **" endptr );
.br
.BI "float strtof(const char *" nptr ", char **" endptr );
.br
.BI "long double strtold(const char *" nptr ", char **" endptr );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
.ad l
-.sp
+.PP
.BR strtof (),
.BR strtold ():
.RS 4
.SH SYNOPSIS
.nf
.B #include <inttypes.h>
-.sp
+.PP
.BI "intmax_t strtoimax(const char *" nptr ", char **" endptr ", int " base );
.br
.BI "uintmax_t strtoumax(const char *" nptr ", char **" endptr ", int " base );
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "char *strtok(char *" str ", const char *" delim );
-.sp
+.PP
.BI "char *strtok_r(char *" str ", const char *" delim ", char **" saveptr );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR strtok_r ():
_POSIX_C_SOURCE
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "long int strtol(const char *" nptr ", char **" endptr ", int " base );
-.sp
+.PP
.BI "long long int strtoll(const char *" nptr ", char **" endptr \
", int " base );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR strtoll ():
.RS 4
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "unsigned long int strtoul(const char *" nptr ", char **" endptr \
", int " base );
-.sp
+.PP
.BI "unsigned long long int strtoull(const char *" nptr ", char **" endptr ,
.BI " int " base );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR strtoull ():
.RS 4
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <string.h>
-.sp
+.PP
.BI "int strverscmp(const char *" s1 ", const char *" s2 );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <string.h>
-.sp
+.PP
.BI "size_t strxfrm(char *" dest ", const char *" src ", size_t " n );
.fi
.SH DESCRIPTION
.nf
.BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */"
.B #include <unistd.h>
-.sp
+.PP
.BI "void swab(const void *" from ", void *" to ", ssize_t " n );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <unistd.h>
-.sp
+.PP
.BI "long sysconf(int " "name" );
.fi
.SH DESCRIPTION
closelog, openlog, syslog, vsyslog \- send messages to the system logger
.SH SYNOPSIS
.B #include <syslog.h>
-.sp
+.PP
.BI "void openlog(const char *" ident ", int " option ", int " facility );
.br
.BI "void syslog(int " priority ", const char *" format ", ...);"
.br
.B "void closelog(void);"
-.sp
+.PP
.BI "void vsyslog(int " priority ", const char *" format ", va_list " ap );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR vsyslog ():
Since glibc 2.19:
_DEFAULT_SOURCE
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "int system(const char *" "command" );
.fi
.SH DESCRIPTION
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <signal.h>
-.sp
+.PP
.B typedef void (*sighandler_t)(int);
-.sp
+.PP
.BI "sighandler_t sysv_signal(int " signum ", sighandler_t " handler );
.SH DESCRIPTION
The
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double tan(double " x );
.br
.BI "float tanf(float " x );
.br
.BI "long double tanl(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR tanf (),
.BR tanl ():
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double tanh(double " x );
.br
.BI "float tanhf(float " x );
.br
.BI "long double tanhl(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR tanhf (),
.BR tanhl ():
tcgetpgrp, tcsetpgrp \- get and set terminal foreground process group
.SH SYNOPSIS
.B "#include <unistd.h>"
-.sp
+.PP
.BI "pid_t tcgetpgrp(int " fd );
-.sp
+.PP
.BI "int tcsetpgrp(int " fd ", pid_t " pgrp );
.SH DESCRIPTION
The function
.BR "#define _XOPEN_SOURCE 500" " /* See feature_test_macros(7) */"
.br
.B "#include <termios.h>"
-.sp
+.PP
.BI "pid_t tcgetsid(int " fd );
.SH DESCRIPTION
The function
.SH SYNOPSIS
.nf
.B #include <dirent.h>
-.sp
+.PP
.BI "long telldir(DIR *" dirp );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR telldir ():
_XOPEN_SOURCE
|| /* Glibc since 2.19: */ _DEFAULT_SOURCE
.SH SYNOPSIS
.nf
.B #include <stdio.h>
-.sp
+.PP
.BI "char *tempnam(const char *" dir ", const char *" pfx );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR tempnam ():
Since glibc 2.19:
_DEFAULT_SOURCE
.B #include <termios.h>
.br
.B #include <unistd.h>
-.sp
+.PP
.BI "int tcgetattr(int " fd ", struct termios *" termios_p );
-.sp
+.PP
.BI "int tcsetattr(int " fd ", int " optional_actions ,
.BI " const struct termios *" termios_p );
-.sp
+.PP
.BI "int tcsendbreak(int " fd ", int " duration );
-.sp
+.PP
.BI "int tcdrain(int " fd );
-.sp
+.PP
.BI "int tcflush(int " fd ", int " queue_selector );
-.sp
+.PP
.BI "int tcflow(int " fd ", int " action );
-.sp
+.PP
.BI "void cfmakeraw(struct termios *" termios_p );
-.sp
+.PP
.BI "speed_t cfgetispeed(const struct termios *" termios_p );
-.sp
+.PP
.BI "speed_t cfgetospeed(const struct termios *" termios_p );
-.sp
+.PP
.BI "int cfsetispeed(struct termios *" termios_p ", speed_t " speed );
-.sp
+.PP
.BI "int cfsetospeed(struct termios *" termios_p ", speed_t " speed );
-.sp
+.PP
.BI "int cfsetspeed(struct termios *" termios_p ", speed_t " speed );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR cfsetspeed (),
.BR cfmakeraw ():
Since glibc 2.19:
tgamma, tgammaf, tgammal \- true gamma function
.SH SYNOPSIS
.B #include <math.h>
-.sp
+.PP
.BI "double tgamma(double " x );
.br
.BI "float tgammaf(float " x );
.br
.BI "long double tgammal(long double " x );
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR tgamma (),
.BR tgammaf (),
.SH SYNOPSIS
.nf
.B #include <time.h>
-.sp
+.PP
.BI "time_t timelocal(struct tm *" tm );
-.sp
+.PP
.BI "time_t timegm(struct tm *" tm );
-.sp
+.PP
.fi
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR timelocal (),
.BR timegm ():
Since glibc 2.19:
.BI "int timercmp(struct timeval *" a ", struct timeval *" b ", " CMP );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
All functions shown above:
Since glibc 2.19:
_DEFAULT_SOURCE
.SH SYNOPSIS
.nf
.B #include <stdio.h>
-.sp
+.PP
.B FILE *tmpfile(void);
.fi
.SH DESCRIPTION
.BI "char *tmpnam(char *" s );
.BI "char *tmpnam_r(char *" s );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR tmpnam_r ()
.PD 0
.ad l
.SH SYNOPSIS
.nf
.B #include <ctype.h>
-.sp
+.PP
.BI "int toascii(int " "c" );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR toascii ():
_XOPEN_SOURCE
|| /* Glibc since 2.19: */ _DEFAULT_SOURCE
.SH SYNOPSIS
.nf
.B #include <ctype.h>
-.sp
+.PP
.BI "int toupper(int " "c" );
.br
.BI "int tolower(int " "c" );
.BI "int toupper_l(int " c ", locale_t " locale );
.BI "int tolower_l(int " c ", locale_t " locale );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR toupper_l (),
.BR tolower_l ():
.PD 0
.SH SYNOPSIS
.nf
.B #include <wctype.h>
-.sp
+.PP
.BI "wint_t towctrans(wint_t " wc ", wctrans_t " desc );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wctype.h>
-.sp
+.PP
.BI "wint_t towlower(wint_t " wc );
.BI "wint_t towlower_l(wint_t " wc ", locale_t " locale );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR towlower_l ():
.PD 0
.RS 4
.SH SYNOPSIS
.nf
.B #include <wctype.h>
-.sp
+.PP
.BI "wint_t towupper(wint_t " wc );
.BI "wint_t towupper_l(wint_t " wc ", locale_t " locale );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR towupper_l ():
.PD 0
.RS 4
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double trunc(double " x );
.br
.BI "float truncf(float " x );
.br
.BI "long double truncl(long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR trunc (),
.BR truncf (),
.SH SYNOPSIS
.nf
.B #include <search.h>
-.sp
+.PP
.BI "void *tsearch(const void *" key ", void **" rootp ,
.BI " int (*" compar ")(const void *, const void *));"
-.sp
+.PP
.BI "void *tfind(const void *" key ", void *const *" rootp ,
.BI " int (*" compar ")(const void *, const void *));"
-.sp
+.PP
.BI "void *tdelete(const void *" key ", void **" rootp ,
.BI " int (*" compar ")(const void *, const void *));"
-.sp
+.PP
.BI "void twalk(const void *" root ", void (*" action ")(const void *" nodep ,
.BI " const VISIT " which ,
.BI " const int " depth "));"
-.sp
+.PP
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.br
.B #include <search.h>
-.sp
+.PP
.BI "void tdestroy(void *" root ", void (*" free_node ")(void *" nodep ));
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <unistd.h>
-.sp
+.PP
.BI "char *ttyname(int " fd );
.BI "int ttyname_r(int " fd ", char *" buf ", size_t " buflen );
ttyslot \- find the slot of the current user's terminal in some file
.SH SYNOPSIS
.BR "#include <unistd.h>" " /See NOTES */"
-.sp
+.PP
.B "int ttyslot(void);"
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR ttyslot ():
.RS 4
.SH SYNOPSIS
.nf
.B #include <time.h>
-.sp
+.PP
.B void tzset (void);
-.sp
+.PP
.BI "extern char *" tzname [2];
.BI "extern long " timezone ;
.BI "extern int " daylight ;
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR tzset ():
_POSIX_C_SOURCE
.br
.SH SYNOPSIS
.nf
.B "#include <unistd.h>"
-.sp
+.PP
.BI "useconds_t ualarm(useconds_t " usecs ", useconds_t " interval );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR ualarm ():
.ad l
.RS 4
ulimit \- get and set user limits
.SH SYNOPSIS
.B #include <ulimit.h>
-.sp
+.PP
.BI "long ulimit(int " cmd ", long " newlimit );
.SH DESCRIPTION
Warning: this routine is obsolete.
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "wint_t ungetwc(wint_t " wc ", FILE *" stream );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <stdio.h>
-.sp
+.PP
.BI "int getc_unlocked(FILE *" stream );
.B "int getchar_unlocked(void);"
.BI "int putc_unlocked(int " c ", FILE *" stream );
.BI "int putchar_unlocked(int " c );
-.sp
+.PP
.BI "void clearerr_unlocked(FILE *" stream );
.BI "int feof_unlocked(FILE *" stream );
.BI "int ferror_unlocked(FILE *" stream );
.BI " FILE *" stream );
.BI "size_t fwrite_unlocked(const void *" ptr ", size_t " size ", size_t " n ,
.BI " FILE *" stream );
-.sp
+.PP
.BI "char *fgets_unlocked(char *" s ", int " n ", FILE *" stream );
.BI "int fputs_unlocked(const char *" s ", FILE *" stream );
-.sp
+.PP
.B #include <wchar.h>
-.sp
+.PP
.BI "wint_t getwc_unlocked(FILE *" stream );
.B "wint_t getwchar_unlocked(void);"
.BI "wint_t fgetwc_unlocked(FILE *" stream );
.BI "wchar_t *fgetws_unlocked(wchar_t *" ws ", int " n ", FILE *" stream );
.BI "int fputws_unlocked(const wchar_t *" ws ", FILE *" stream );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.ad l
.in
-.sp
+.PP
.BR getc_unlocked (),
.BR getchar_unlocked (),
.BR putc_unlocked (),
|| /* Glibc versions <= 2.23: */ _POSIX_C_SOURCE
|| /* Glibc versions <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE
.RE
-.sp
+.PP
.BR clearerr_unlocked (),
.BR feof_unlocked (),
.BR ferror_unlocked (),
/* Glibc since 2.19: */ _DEFAULT_SOURCE
|| /* Glibc versions <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE
.RE
-.sp
+.PP
.BR fgets_unlocked (),
.BR fputs_unlocked (),
.BR getwc_unlocked (),
.B #define _XOPEN_SOURCE
.br
.B #include <stdlib.h>
-.sp
+.PP
.BI "int unlockpt(int " fd ");"
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.SH SYNOPSIS
.nf
.B #include <utmp.h>
-.sp
+.PP
.BI "void updwtmp(const char *" wtmp_file ", const struct utmp *" ut );
.br
.BI "void logwtmp(const char *" line ", const char *" name \
.BI "locale_t uselocale(locale_t " newloc );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR uselocale ():
.PD 0
.RS 4
.SH SYNOPSIS
.nf
.B "#include <unistd.h>"
-.sp
+.PP
.BI "int usleep(useconds_t " usec );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR usleep ():
.ad l
.RS 4
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "wchar_t *wcpcpy(wchar_t *" dest ", const wchar_t *" src );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR wcpcpy ():
.PD 0
.ad l
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "wchar_t *wcpncpy(wchar_t *" dest ", const wchar_t *" src ", size_t " n );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR wcpncpy ():
.PD 0
.ad l
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "size_t wcrtomb(char *" s ", wchar_t " wc ", mbstate_t *" ps );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "int wcscasecmp(const wchar_t *" s1 ", const wchar_t *" s2 );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR wcscasecmp ():
.PD 0
.ad l
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "wchar_t *wcscat(wchar_t *" dest ", const wchar_t *" src );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "wchar_t *wcschr(const wchar_t *" wcs ", wchar_t " wc );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "int wcscmp(const wchar_t *" s1 ", const wchar_t *" s2 );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "wchar_t *wcscpy(wchar_t *" dest ", const wchar_t *" src );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "size_t wcscspn(const wchar_t *" wcs ", const wchar_t *" reject );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "wchar_t *wcsdup(const wchar_t *" s );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR wcsdup ():
.PD 0
.ad l
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "size_t wcslen(const wchar_t *" s );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "int wcsncasecmp(const wchar_t *" s1 ", const wchar_t *" s2 ", size_t " n );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR wcsncasecmp ():
.PD 0
.ad l
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "wchar_t *wcsncat(wchar_t *" dest ", const wchar_t *" src ", size_t " n );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "int wcsncmp(const wchar_t *" s1 ", const wchar_t *" s2 ", size_t " n );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "wchar_t *wcsncpy(wchar_t *" dest ", const wchar_t *" src ", size_t " n );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "size_t wcsnlen(const wchar_t *" s ", size_t " maxlen );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR wcsnlen ():
.PD 0
.ad l
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "size_t wcsnrtombs(char *" dest ", const wchar_t **" src ", size_t " nwc ,
.BI " size_t " len ", mbstate_t *" ps );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR wcsnrtombs ():
.PD 0
.ad l
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "wchar_t *wcspbrk(const wchar_t *" wcs ", const wchar_t *" accept );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "wchar_t *wcsrchr(const wchar_t *" wcs ", wchar_t " wc );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "size_t wcsrtombs(char *" dest ", const wchar_t **" src ,
.BI " size_t " len ", mbstate_t *" ps );
.fi
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "size_t wcsspn(const wchar_t *" wcs ", const wchar_t *" accept );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "wchar_t *wcsstr(const wchar_t *" haystack ", const wchar_t *" needle );
.fi
.SH DESCRIPTION
.B #include <stddef.h>
.br
.B #include <inttypes.h>
-.sp
+.PP
.BI "intmax_t wcstoimax(const wchar_t *" nptr ", wchar_t **" endptr \
", int " base );
.br
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "wchar_t *wcstok(wchar_t *" wcs ", const wchar_t *" delim \
", wchar_t **" ptr );
.fi
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "size_t wcstombs(char *" dest ", const wchar_t *" src ", size_t " n );
.fi
.SH DESCRIPTION
.nf
.BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */"
.B #include <wchar.h>
-.sp
+.PP
.BI "int wcswidth(const wchar_t *" s ", size_t " n );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "int wctob(wint_t " c );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
-.sp
+.PP
.BI "int wctomb(char *" s ", wchar_t " wc );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wctype.h>
-.sp
+.PP
.BI "wctrans_t wctrans(const char *" name );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wctype.h>
-.sp
+.PP
.BI "wctype_t wctype(const char *" name );
.fi
.SH DESCRIPTION
.nf
.BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */"
.B #include <wchar.h>
-.sp
+.PP
.BI "int wcwidth(wchar_t " c );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "wchar_t *wmemchr(const wchar_t *" s ", wchar_t " c ", size_t " n );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "int wmemcmp(const wchar_t *" s1 ", const wchar_t *" s2 ", size_t " n );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "wchar_t *wmemcpy(wchar_t *" dest ", const wchar_t *" src ", size_t " n );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "wchar_t *wmemmove(wchar_t *" dest ", const wchar_t *" src ", size_t " n );
.fi
.SH DESCRIPTION
.SH SYNOPSIS
.nf
.B #include <wchar.h>
-.sp
+.PP
.BI "wchar_t *wmemset(wchar_t *" wcs ", wchar_t " wc ", size_t " n );
.fi
.SH DESCRIPTION
wordexp, wordfree \- perform word expansion like a posix-shell
.SH SYNOPSIS
.B "#include <wordexp.h>"
-.sp
+.PP
.BI "int wordexp(const char *" s ", wordexp_t *" p ", int " flags );
-.sp
+.PP
.BI "void wordfree(wordexp_t *" p );
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.BR wordexp (),
.BR wordfree ():
_XOPEN_SOURCE
.nf
.B #include <stdio.h>
.B #include <wchar.h>
-.sp
+.PP
.BI "int wprintf(const wchar_t *" format ", ...);"
.BI "int fwprintf(FILE *" stream ", const wchar_t *" format ", ...);"
.BI "int swprintf(wchar_t *" wcs ", size_t " maxlen ,
.BI " const wchar_t *" format ", ...);"
-.sp
+.PP
.BI "int vwprintf(const wchar_t *" format ", va_list " args );
.BI "int vfwprintf(FILE *" stream ", const wchar_t *" format ", va_list " args );
.BI "int vswprintf(wchar_t *" wcs ", size_t " maxlen ,
.BI " const wchar_t *" format ", va_list " args );
.fi
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
All functions shown above:
.RS 4
xencrypt, xdecrypt, passwd2des \- RFS password encryption
.SH SYNOPSIS
.B "#include <rpc/des_crypt.h>"
-.sp
+.PP
.BI "void passwd2des(char " *passwd ", char *" key ");"
-.sp
+.PP
.BI "int xencrypt(char *" secret ", char *" passwd ");"
-.sp
+.PP
.BI "int xdecrypt(char *" secret ", char *" passwd ");"
.SH DESCRIPTION
The function
.SH SYNOPSIS
.nf
.B #include <math.h>
-.sp
+.PP
.BI "double y0(double " x );
.br
.BI "double y1(double " x );
.br
.BI "double yn(int " n ", double " x );
-.sp
+.PP
.BI "float y0f(float " x );
.br
.BI "float y1f(float " x );
.br
.BI "float ynf(int " n ", float " x );
-.sp
+.PP
.BI "long double y0l(long double " x );
.br
.BI "long double y1l(long double " x );
.br
.BI "long double ynl(int " n ", long double " x );
.fi
-.sp
+.PP
Link with \fI\-lm\fP.
-.sp
+.PP
.in -4n
Feature Test Macro Requirements for glibc (see
.BR feature_test_macros (7)):
.in
-.sp
+.PP
.ad l
.BR y0 (),
.BR y1 (),
.SH SYNOPSIS
.nf
#include <asm/dsp56k.h>
-.sp
+.PP
.BI "ssize_t read(int " fd ", void *" data ", size_t " length );
.BI "ssize_t write(int " fd ", void *" data ", size_t " length );
random, urandom \- kernel random number source devices
.SH SYNOPSIS
#include <linux/random.h>
-.sp
+.PP
.BI "int ioctl(" fd ", RND" request ", " param ");"
.SH DESCRIPTION
The character special files \fI/dev/random\fP and
rtc \- real-time clock
.SH SYNOPSIS
#include <linux/rtc.h>
-.sp
+.PP
.BI "int ioctl(" fd ", RTC_" request ", " param ");"
.SH DESCRIPTION
This is the interface to drivers for real-time clocks (RTCs).
.SH SYNOPSIS
.nf
.B #include <sys/mtio.h>
-.sp
+.PP
.BI "int ioctl(int " fd ", int " request " [, (void *)" arg3 "]);"
.BI "int ioctl(int " fd ", MTIOCTOP, (struct mtop *)" mt_cmd );
.BI "int ioctl(int " fd ", MTIOCGET, (struct mtget *)" mt_status );
.B #include <sys/socket.h>
.br
.B #include <netatalk/at.h>
-.sp
+.PP
.IB ddp_socket " = socket(AF_APPLETALK, SOCK_DGRAM, 0);"
.br
.IB raw_socket " = socket(AF_APPLETALK, SOCK_RAW, " protocol ");"
.B #include <netinet/in.h>
.br
.B #include <netinet/ip.h> \fR/* superset of previous */
-.sp
+.PP
.IB tcp_socket " = socket(AF_INET, SOCK_STREAM, 0);"
.br
.IB udp_socket " = socket(AF_INET, SOCK_DGRAM, 0);"
.B #include <sys/socket.h>
.br
.B #include <netinet/in.h>
-.sp
+.PP
.IB tcp6_socket " = socket(AF_INET6, SOCK_STREAM, 0);"
.br
.IB raw6_socket " = socket(AF_INET6, SOCK_RAW, " protocol ");"
.B #include <linux/if_packet.h>
.br
.B #include <net/ethernet.h> /* the L2 protocols */
-.sp
+.PP
.BI "packet_socket = socket(AF_PACKET, int " socket_type ", int "protocol );
.fi
.SH DESCRIPTION
.B #include <linux/rtnetlink.h>
.br
.B #include <sys/socket.h>
-.sp
+.PP
.BI "rtnetlink_socket = socket(AF_NETLINK, int " socket_type ", NETLINK_ROUTE);"
.SH DESCRIPTION
Rtnetlink allows the kernel's routing tables to be read and altered.
socket \- Linux socket interface
.SH SYNOPSIS
.B #include <sys/socket.h>
-.sp
+.PP
.IB sockfd " = socket(int " socket_family ", int " socket_type ", int " protocol );
.SH DESCRIPTION
This manual page describes the Linux networking socket layer user
.B #include <netinet/in.h>
.br
.B #include <netinet/tcp.h>
-.sp
+.PP
.B tcp_socket = socket(AF_INET, SOCK_STREAM, 0);
.SH DESCRIPTION
This is an implementation of the TCP protocol defined in
.B #include <netinet/in.h>
.br
.B #include <netinet/udp.h>
-.sp
+.PP
.B udp_socket = socket(AF_INET, SOCK_DGRAM, 0);
.SH DESCRIPTION
This is an implementation of the User Datagram Protocol
.\" FIXME . see #defines under `BUGS',
.\" when glibc supports this, add
.\" #include <netinet/udplite.h>
-.sp
+.PP
.B sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDPLITE);
.SH DESCRIPTION
This is an implementation of the Lightweight User Datagram Protocol
.B #include <sys/socket.h>
.br
.B #include <linux/x25.h>
-.sp
+.PP
.B x25_socket = socket(AF_X25, SOCK_SEQPACKET, 0);
.SH DESCRIPTION
X25 sockets provide an interface to the X.25 packet layer protocol.