13.5. Interface Definitions for libc

Table of Contents
_IO_feof -- alias for feof
_IO_getc -- alias for getc
_IO_putc -- alias for putc
_IO_puts -- alias for puts
__assert_fail -- abort the program after false assertion
__ctype_b_loc -- accessor function for __ctype_b array for ctype functions
__ctype_get_mb_cur_max -- maximum length of a multibyte character in the current locale
__ctype_tolower_loc -- accessor function for __ctype_b_tolower array for ctype tolower() function
__ctype_toupper_loc -- accessor function for __ctype_b_toupper() array for ctype toupper() function
__cxa_atexit -- register a function to be called by exit or when a shared library is unloaded
__cxa_finalize -- call destructors of global (or local static) C++ objects and exit functions registered with atexit
__daylight -- daylight savings time flag
__environ -- alias for environ - user environment
__errno_location -- address of errno variable
__fpending -- returns in bytes the amount of output pending on a stream
__getpagesize -- alias for getpagesize - get current page size
__getpgid -- get the process group id
__h_errno_location -- address of h_errno variable
__isinf -- test for infinity
__isinff -- test for infinity
__isinfl -- test for infinity
__isnan -- test for infinity
__isnanf -- test for infinity
__isnanl -- test for infinity
__libc_current_sigrtmax -- return number of available real-time signal with lowest priority
__libc_current_sigrtmin -- return number of available real-time signal with highest priority
__libc_start_main -- initialization routine
__lxstat -- inline wrapper around call to lxstat
__mempcpy -- copy given number of bytes of source to destination
__rawmemchr -- scan memory
__register_atfork -- alias for register_atfork
__sigsetjmp -- save stack context for non-local goto
__stpcpy -- alias for stpcpy
__strdup -- alias for strdup
__strtod_internal -- underlying function for strtod
__strtof_internal -- underlying function for strtof
__strtok_r -- alias for strtok_r
__strtol_internal -- alias for strtol
__strtold_internal -- underlying function for strtold
__strtoll_internal -- underlying function for strtoll
__strtoul_internal -- underlying function for strtoul
__strtoull_internal -- underlying function for strtoull
__sysconf -- get configuration information at runtime
__sysv_signal -- signal handling
__timezone -- global variable containing timezone
__tzname -- global variable containing the timezone
__wcstod_internal -- underlying function for wcstod
__wcstof_internal -- underlying function for wcstof
__wcstol_internal -- underlying function for wcstol
__wcstold_internal -- underlying function for wcstold
__wcstoul_internal -- underlying function for wcstoul
__xmknod -- make block or character special file
__xpg_basename -- return the last component of a file name
__xpg_sigpause -- remove a signal from the signal mask and suspend the thread
__xpg_strerror_r -- return string describing error number
__xstat -- get File Status
__xstat64 -- get File Status
_environ -- alias for environ - user environment
_nl_msg_cat_cntr -- new catalog load counter
_sys_errlist -- array containing the "C" locale strings used by strerror()
_sys_siglist -- array containing the names of the signal names
acct -- switch process accounting on or off
adjtime -- correct the time to allow synchronization of the system clock
asprintf -- write formatted output to a dynamically allocated string
basename -- return the last component of a file name
bind_textdomain_codeset -- specify encoding for message retrieval
bindresvport -- bind socket to privileged IP port
bindtextdomain -- specify the location of a message catalog
cfmakeraw -- get and set terminal attributes
cfsetspeed -- set terminal input and output data rate
daemon -- run in the background
dcgettext -- perform domain and category specific lookup in message catalog
dcngettext -- perform domain and category specific lookup in message catalog with plural
dgettext -- perform lookup in message catalog for the current LC_MESSAGES locale
dngettext -- perform lookup in message catalog for the current locale
duplocale -- provide new handle for selection of locale
endutent -- access utmp file entries
err -- display formatted error messages
error -- print error message
errx -- display formatted error message and exit
fcntl -- file control
fflush_unlocked -- non thread safe fflush
fgetwc_unlocked -- non thread safe fgetwc
flock -- apply or remove an advisory lock on an open file
freelocale -- free a locale object
fscanf -- convert formatted input
fstatfs -- (deprecated)
fstatfs64 -- (deprecated)
fwscanf -- convert formatted input
getdomainname -- get NIS domain name (DEPRECATED).
getdtablesize -- get file descriptor table size (DEPRECATED)
getgrouplist -- get groups a user belongs to
gethostbyaddr_r -- find network host database entry matching host name (DEPRECATED)
gethostbyname2 -- find network host database entry matching host name (DEPRECATED)
gethostbyname2_r -- find network host database entry matching host name (DEPRECATED)
gethostbyname_r -- find network host database entry matching host name (DEPRECATED)
getloadavg -- get system load averages
getopt -- parse command line options
getopt_long -- parse command line options
getopt_long_only -- parse command line options
getpagesize -- get memory page size (DEPRECATED)
getsockopt -- get socket options
gettext -- search message catalogs for a string
getutent -- access user accounting database entries
getutent_r -- access user accounting database entries
glob64 -- find pathnames matching a pattern (Large File Support)
globfree64 -- free memory from glob64() (Large File Support)
inet_aton -- Internet address manipulation routine
initgroups -- initialize the supplementary group access list
ioctl -- control device
sockio -- socket ioctl commands
ttyio -- tty ioctl commands
kill -- send a signal
link -- create a link to a file
mbsnrtowcs -- convert a multibyte string to a wide character string
memmem -- locate bytes
memrchr -- scan memory for a character
mremap -- remap a virtual memory address
newlocale -- allocate a locale object
ngettext -- search message catalogs for plural string
pmap_getport -- find the port number assigned to a service registered with a portmapper.
pmap_set -- establishes mapping to machine's RPC Bind service.
pmap_unset --  destroys RPC Binding
posix_fadvise64 -- File advisory information (Large File Support)
posix_fallocate64 -- file space control (Large File Support)
psignal -- print signal message
readdir64_r -- read a directory (Large File Support)
regexec -- regular expression matching
scanf -- convert formatted input
sched_setscheduler -- set scheduling policy and parameters
setbuffer -- stream buffering operation
setgroups -- set list of supplementary group IDs
sethostname -- set host name
setsockopt -- set socket options
setutent -- access user accounting database entries
sigandset -- build a new signal set by combining the two input sets using logical AND
sigisemptyset -- check for empty signal set
sigorset -- build a new signal set by combining the two input sets using logical OR
sigpause -- remove a signal from the signal mask and suspend the thread (deprecated)
sigreturn -- return from signal handler and cleanup stack frame
sscanf -- convert formatted input
statfs -- (deprecated)
statfs64 -- (deprecated)
stime -- set time
stpcpy -- copy a string returning a pointer to its end
stpncpy -- copy a fixed-size string, returning a pointer to its end
strcasestr -- locate a substring ignoring case
strerror_r -- return string describing error number
strndup -- return a malloc'd copy of at most the specified number of bytes of a string
strnlen -- determine the length of a fixed-size string
strptime -- parse a time string
strsep -- extract token from string
strsignal -- return string describing signal
strtoq -- convert string value to a long or quad_t integer
strtouq -- convert a string to an unsigned long long
svc_register -- register Remote Procedure Call interface
svc_run -- waits for RPC requests to arrive and calls service procedure
svc_sendreply -- called by RPC service's dispatch routine
svctcp_create -- create a TCP/IP-based RPC service transport
svcudp_create --  create a UDP-based RPC service transport
swscanf -- convert formatted input
sysconf -- Get configuration information at runtime
system -- execute a shell command
textdomain -- set the current default message domain
unlink -- remove a directory entry
uselocale -- set locale for thread
utmpname -- set user accounting database
vasprintf -- write formatted output to a dynamically allocated string
vdprintf -- write formatted output to a file descriptor
verrx -- display formatted error message and exit
vfscanf -- convert formatted input
vfwscanf -- convert formatted input
vscanf -- convert formatted input
vsscanf -- convert formatted input
vswscanf -- convert formatted input
vsyslog -- log to system log
vwscanf -- convert formatted input
wait4 -- wait for process termination, BSD style
waitpid -- wait for child process
warn -- formatted error messages
warnx -- formatted error messages
wcpcpy -- copy a wide character string, returning a pointer to its end
wcpncpy -- copy a fixed-size string of wide characters, returning a pointer to its end
wcscasecmp -- compare two wide-character strings, ignoring case
wcsdup -- duplicate a wide-character string
wcsncasecmp -- compare two fixed-size wide-character strings, ignoring case
wcsnlen -- determine the length of a fixed-size wide-character string
wcsnrtombs -- convert a wide character string to a multi-byte string
wcstoq -- convert wide string to long long int representation
wcstouq -- convert wide string to unsigned long long int representation
wscanf -- convert formatted input
xdr_u_int -- library routines for external data representation
xdrstdio_create -- library routines for external data representation

The interfaces defined on the following pages are included in libc and are defined by this specification. Unless otherwise noted, these interfaces shall be included in the source standard.

Other interfaces listed in Section 13.3 shall behave as described in the referenced base document.