14.3. Interfaces for libc

Table 14-1 defines the library name and shared object name for the libc library

Table 14-1. libc Definition

Library:libc
SONAME:See architecture specific part.

The behavior of the interfaces in this library is specified by the following specifications:

[LFS] Large File Support
[LSB] This Specification
[RPC + XDR] RFC 5531/4506 RPC & XDR
[SUSv2] SUSv2
[SUSv3] POSIX 1003.1-2001 (ISO/IEC 9945-2003)
[SUSv4] POSIX 1003.1-2008 (ISO/IEC 9945-2009)
[SVID.4] SVID Issue 4

14.3.1. RPC

14.3.1.1. Interfaces for RPC

An LSB conforming implementation shall provide the generic functions for RPC specified in Table 14-2, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-2. libc - RPC Function Interfaces

authnone_create [SVID.4]callrpc [RPC + XDR]clnt_create [SVID.4]clnt_pcreateerror [SVID.4]
clnt_perrno [SVID.4]clnt_perror [SVID.4]clnt_spcreateerror [SVID.4]clnt_sperrno [SVID.4]
clnt_sperror [SVID.4]clntraw_create [RPC + XDR]clnttcp_create [RPC + XDR]clntudp_bufcreate [RPC + XDR]
clntudp_create [RPC + XDR]key_decryptsession [SVID.4]pmap_getport [LSB]pmap_set [LSB]
pmap_unset [LSB]svc_getreqset [SVID.4]svc_register [LSB]svc_run [LSB]
svc_sendreply [LSB]svcerr_auth [SVID.4]svcerr_decode [SVID.4]svcerr_noproc [SVID.4]
svcerr_noprog [SVID.4]svcerr_progvers [SVID.4]svcerr_systemerr [SVID.4]svcerr_weakauth [SVID.4]
svcfd_create [RPC + XDR]svcraw_create [RPC + XDR]svctcp_create [LSB]svcudp_create [LSB]
xdr_accepted_reply [SVID.4]xdr_array [SVID.4]xdr_bool [SVID.4]xdr_bytes [SVID.4]
xdr_callhdr [SVID.4]xdr_callmsg [SVID.4]xdr_char [SVID.4]xdr_double [SVID.4]
xdr_enum [SVID.4]xdr_float [SVID.4]xdr_free [SVID.4]xdr_int [SVID.4]
xdr_long [SVID.4]xdr_opaque [SVID.4]xdr_opaque_auth [SVID.4]xdr_pointer [SVID.4]
xdr_reference [SVID.4]xdr_rejected_reply [SVID.4]xdr_replymsg [SVID.4]xdr_short [SVID.4]
xdr_string [SVID.4]xdr_u_char [SVID.4]xdr_u_int [LSB]xdr_u_long [SVID.4]
xdr_u_short [SVID.4]xdr_union [SVID.4]xdr_vector [SVID.4]xdr_void [SVID.4]
xdr_wrapstring [SVID.4]xdrmem_create [SVID.4]xdrrec_create [SVID.4]xdrrec_endofrecord [RPC + XDR]
xdrrec_eof [SVID.4]xdrrec_skiprecord [RPC + XDR]xdrstdio_create [LSB] 

An LSB conforming implementation shall provide the generic deprecated functions for RPC specified in Table 14-3, with the full mandatory functionality as described in the referenced underlying specification.

Note: These interfaces are deprecated, and applications should avoid using them. These interfaces may be withdrawn in future releases of this specification.

Table 14-3. libc - RPC Deprecated Function Interfaces

key_decryptsession [SVID.4]   

14.3.2. Epoll

14.3.2.1. Interfaces for Epoll

An LSB conforming implementation shall provide the generic functions for Epoll specified in Table 14-4, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-4. libc - Epoll Function Interfaces

epoll_create(GLIBC_2.3.2) [LSB]epoll_ctl(GLIBC_2.3.2) [LSB]epoll_wait(GLIBC_2.3.2) [LSB] 

14.3.3. System Calls

14.3.3.1. Interfaces for System Calls

An LSB conforming implementation shall provide the generic functions for System Calls specified in Table 14-5, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-5. libc - System Calls Function Interfaces

__chk_fail(GLIBC_2.3.4) [LSB]__fxstat [LSB]__fxstatat(GLIBC_2.4) [LSB]__getgroups_chk(GLIBC_2.4) [LSB]
__getpgid [LSB]__lxstat [LSB]__read_chk(GLIBC_2.4) [LSB]__readlink_chk(GLIBC_2.4) [LSB]
__stack_chk_fail(GLIBC_2.4) [LSB]__xmknod [LSB]__xmknodat(GLIBC_2.4) [LSB]__xstat [LSB]
access [SUSv4]acct [LSB]alarm [SUSv4]backtrace [LSB]
backtrace_symbols [LSB]backtrace_symbols_fd [LSB]brk [SUSv2]chdir [SUSv4]
chmod [SUSv4]chown [SUSv4]chroot [SUSv2]clock [SUSv4]
close [SUSv4]closedir [SUSv4]creat [SUSv4]dup [SUSv4]
dup2 [SUSv4]execl [SUSv4]execle [SUSv4]execlp [SUSv4]
execv [SUSv4]execve [SUSv4]execvp [SUSv4]exit [SUSv4]
faccessat(GLIBC_2.4) [SUSv4]fchdir [SUSv4]fchmod [SUSv4]fchmodat(GLIBC_2.4) [SUSv4]
fchown [SUSv4]fchownat(GLIBC_2.4) [SUSv4]fcntl [LSB]fdatasync [SUSv4]
fdopendir(GLIBC_2.4) [SUSv4]fexecve [SUSv4]flock [LSB]fork [SUSv4]
fstatfs [LSB]fstatvfs [SUSv4]fsync [SUSv4]ftime [SUSv3]
ftruncate [SUSv4]futimens(GLIBC_2.6) [SUSv4]futimes(GLIBC_2.3) [LSB]getcontext [SUSv3]
getdtablesize [LSB]getegid [SUSv4]geteuid [SUSv4]getgid [SUSv4]
getgroups [SUSv4]getitimer [SUSv4]getloadavg [LSB]getpagesize [LSB]
getpgid [SUSv4]getpgrp [SUSv4]getpid [SUSv4]getppid [SUSv4]
getpriority [SUSv4]getrlimit [LSB]getrusage [SUSv4]getsid [SUSv4]
getuid [SUSv4]getwd [SUSv3]initgroups [LSB]ioctl [LSB]
kill [LSB]killpg [SUSv4]lchown [SUSv4]link [LSB]
linkat(GLIBC_2.4) [SUSv4]lockf [SUSv4]lseek [SUSv4]lutimes(GLIBC_2.3) [LSB]
mkdir [SUSv4]mkdirat(GLIBC_2.4) [SUSv4]mkfifo [SUSv4]mkfifoat(GLIBC_2.4) [SUSv4]
mlock [SUSv4]mlockall [SUSv4]mmap [SUSv4]mprotect [SUSv4]
mremap [LSB]msync [SUSv4]munlock [SUSv4]munlockall [SUSv4]
munmap [SUSv4]nanosleep [SUSv4]nice [SUSv4]open [SUSv4]
openat(GLIBC_2.4) [SUSv4]opendir [SUSv4]pathconf [SUSv4]pause [SUSv4]
pipe [SUSv4]poll [SUSv4]pread [SUSv4]pselect [SUSv4]
ptrace [LSB]pwrite [SUSv4]read [SUSv4]readdir [SUSv4]
readdir_r [SUSv4]readlink [SUSv4]readlinkat(GLIBC_2.4) [SUSv4]readv [SUSv4]
rename [SUSv4]renameat(GLIBC_2.4) [SUSv4]rmdir [SUSv4]sbrk [SUSv2]
sched_get_priority_max [SUSv4]sched_get_priority_min [SUSv4]sched_getaffinity(GLIBC_2.3.4) [LSB]sched_getparam [SUSv4]
sched_getscheduler [SUSv4]sched_rr_get_interval [SUSv4]sched_setaffinity(GLIBC_2.3.4) [LSB]sched_setparam [SUSv4]
sched_setscheduler [LSB]sched_yield [SUSv4]select [SUSv4]setcontext [SUSv3]
setegid [SUSv4]seteuid [SUSv4]setgid [SUSv4]setitimer [SUSv4]
setpgid [SUSv4]setpgrp [SUSv4]setpriority [SUSv4]setregid [SUSv4]
setreuid [SUSv4]setrlimit [LSB]setrlimit64 [LFS]setsid [SUSv4]
setuid [SUSv4]sleep [SUSv4]statfs [LSB]statvfs [SUSv4]
stime [LSB]symlink [SUSv4]symlinkat(GLIBC_2.4) [SUSv4]sync [SUSv4]
sysconf [LSB]sysinfo [LSB]time [SUSv4]times [SUSv4]
truncate [SUSv4]ulimit [SUSv4]umask [SUSv4]uname [SUSv4]
unlink [LSB]unlinkat(GLIBC_2.4) [SUSv4]utime [SUSv4]utimensat(GLIBC_2.6) [SUSv4]
utimes [SUSv4]vfork [SUSv3]wait [SUSv4]wait4 [LSB]
waitid [SUSv4]waitpid [SUSv4]write [SUSv4]writev [SUSv4]

An LSB conforming implementation shall provide the generic deprecated functions for System Calls specified in Table 14-6, with the full mandatory functionality as described in the referenced underlying specification.

Note: These interfaces are deprecated, and applications should avoid using them. These interfaces may be withdrawn in future releases of this specification.

Table 14-6. libc - System Calls Deprecated Function Interfaces

fstatfs [LSB]getdtablesize [LSB]getpagesize [LSB]getwd [SUSv3]
statfs [LSB]   

14.3.4. Standard I/O

14.3.4.1. Interfaces for Standard I/O

An LSB conforming implementation shall provide the generic functions for Standard I/O specified in Table 14-7, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-7. libc - Standard I/O Function Interfaces

_IO_feof [LSB]_IO_getc [LSB]_IO_putc [LSB]_IO_puts [LSB]
__fgets_chk(GLIBC_2.4) [LSB]__fgets_unlocked_chk(GLIBC_2.4) [LSB]__fgetws_unlocked_chk(GLIBC_2.4) [LSB]__fprintf_chk [LSB]
__printf_chk [LSB]__snprintf_chk [LSB]__sprintf_chk [LSB]__vfprintf_chk [LSB]
__vprintf_chk [LSB]__vsnprintf_chk [LSB]__vsprintf_chk [LSB]asprintf [LSB]
clearerr [SUSv4]clearerr_unlocked [LSB]ctermid [SUSv4]dprintf [SUSv4]
fclose [SUSv4]fdopen [SUSv4]feof [SUSv4]feof_unlocked [LSB]
ferror [SUSv4]ferror_unlocked [LSB]fflush [SUSv4]fflush_unlocked [LSB]
fgetc [SUSv4]fgetc_unlocked [LSB]fgetpos [SUSv4]fgets [SUSv4]
fgets_unlocked [LSB]fgetwc_unlocked [LSB]fgetws_unlocked [LSB]fileno [SUSv4]
fileno_unlocked [LSB]flockfile [SUSv4]fopen [SUSv4]fprintf [SUSv4]
fputc [SUSv4]fputc_unlocked [LSB]fputs [SUSv4]fputs_unlocked [LSB]
fputwc_unlocked [LSB]fputws_unlocked [LSB]fread [SUSv4]fread_unlocked [LSB]
freopen [SUSv4]fscanf [LSB]fseek [SUSv4]fseeko [SUSv4]
fsetpos [SUSv4]ftell [SUSv4]ftello [SUSv4]fwrite [SUSv4]
fwrite_unlocked [LSB]getc [SUSv4]getc_unlocked [SUSv4]getchar [SUSv4]
getchar_unlocked [SUSv4]getdelim [SUSv4]getline [SUSv4]getw [SUSv2]
getwc_unlocked [LSB]getwchar_unlocked [LSB]pclose [SUSv4]popen [SUSv4]
printf [SUSv4]putc [SUSv4]putc_unlocked [SUSv4]putchar [SUSv4]
putchar_unlocked [SUSv4]puts [SUSv4]putw [SUSv2]putwc_unlocked [LSB]
putwchar_unlocked [LSB]remove [SUSv4]rewind [SUSv4]rewinddir [SUSv4]
scanf [LSB]seekdir [SUSv4]setbuf [SUSv4]setbuffer [LSB]
setvbuf [SUSv4]snprintf [SUSv4]sprintf [SUSv4]sscanf [LSB]
telldir [SUSv4]tempnam [SUSv4]ungetc [SUSv4]vasprintf [LSB]
vdprintf [SUSv4]vfprintf [SUSv4]vprintf [SUSv4]vsnprintf [SUSv4]
vsprintf [SUSv4]   

An LSB conforming implementation shall provide the generic deprecated functions for Standard I/O specified in Table 14-8, with the full mandatory functionality as described in the referenced underlying specification.

Note: These interfaces are deprecated, and applications should avoid using them. These interfaces may be withdrawn in future releases of this specification.

Table 14-8. libc - Standard I/O Deprecated Function Interfaces

tempnam [SUSv4]   

An LSB conforming implementation shall provide the generic data interfaces for Standard I/O specified in Table 14-9, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-9. libc - Standard I/O Data Interfaces

stderr [SUSv4]stdin [SUSv4]stdout [SUSv4] 

14.3.5. Signal Handling

14.3.5.1. Interfaces for Signal Handling

An LSB conforming implementation shall provide the generic functions for Signal Handling specified in Table 14-10, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-10. libc - Signal Handling Function Interfaces

__libc_current_sigrtmax [LSB]__libc_current_sigrtmin [LSB]__sigsetjmp [LSB]__sysv_signal [LSB]
__xpg_sigpause [LSB]bsd_signal [SUSv3]psiginfo(GLIBC_2.10) [SUSv4]psignal [SUSv4]
raise [SUSv4]sigaction [SUSv4]sigaddset [SUSv4]sigaltstack [SUSv4]
sigandset [LSB]sigdelset [SUSv4]sigemptyset [SUSv4]sigfillset [SUSv4]
sighold [SUSv4]sigignore [SUSv4]siginterrupt [SUSv4]sigisemptyset [LSB]
sigismember [SUSv4]siglongjmp [SUSv4]signal [SUSv4]sigorset [LSB]
sigpause [LSB]sigpending [SUSv4]sigprocmask [SUSv4]sigqueue [SUSv4]
sigrelse [SUSv4]sigreturn [LSB]sigset [SUSv4]sigsuspend [SUSv4]
sigtimedwait [SUSv4]sigwait [SUSv4]sigwaitinfo [SUSv4] 

An LSB conforming implementation shall provide the generic deprecated functions for Signal Handling specified in Table 14-11, with the full mandatory functionality as described in the referenced underlying specification.

Note: These interfaces are deprecated, and applications should avoid using them. These interfaces may be withdrawn in future releases of this specification.

Table 14-11. libc - Signal Handling Deprecated Function Interfaces

sigpause [LSB]   

An LSB conforming implementation shall provide the generic data interfaces for Signal Handling specified in Table 14-12, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-12. libc - Signal Handling Data Interfaces

_sys_siglist [LSB]   

14.3.6. Localization Functions

14.3.6.1. Interfaces for Localization Functions

An LSB conforming implementation shall provide the generic functions for Localization Functions specified in Table 14-13, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-13. libc - Localization Functions Function Interfaces

bind_textdomain_codeset [LSB]bindtextdomain [LSB]catclose [SUSv4]catgets [SUSv4]
catopen [SUSv4]dcgettext [LSB]dcngettext [LSB]dgettext [LSB]
dngettext [LSB]duplocale(GLIBC_2.3) [SUSv4]freelocale(GLIBC_2.3) [SUSv4]gettext [LSB]
iconv [SUSv4]iconv_close [SUSv4]iconv_open [SUSv4]localeconv [SUSv4]
newlocale(GLIBC_2.3) [SUSv4]ngettext [LSB]nl_langinfo [SUSv4]setlocale [SUSv4]
textdomain [LSB]uselocale(GLIBC_2.3) [SUSv4]  

An LSB conforming implementation shall provide the generic data interfaces for Localization Functions specified in Table 14-14, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-14. libc - Localization Functions Data Interfaces

_nl_msg_cat_cntr [LSB]   

14.3.7. Posix Spawn Option

14.3.7.1. Interfaces for Posix Spawn Option

An LSB conforming implementation shall provide the generic functions for Posix Spawn Option specified in Table 14-15, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-15. libc - Posix Spawn Option Function Interfaces

posix_spawn [SUSv4]posix_spawn_file_actions_addclose [SUSv4]posix_spawn_file_actions_adddup2 [SUSv4]posix_spawn_file_actions_addopen [SUSv4]
posix_spawn_file_actions_destroy [SUSv4]posix_spawn_file_actions_init [SUSv4]posix_spawnattr_destroy [SUSv4]posix_spawnattr_getflags [SUSv4]
posix_spawnattr_getpgroup [SUSv4]posix_spawnattr_getschedparam [SUSv4]posix_spawnattr_getschedpolicy [SUSv4]posix_spawnattr_getsigdefault [SUSv4]
posix_spawnattr_getsigmask [SUSv4]posix_spawnattr_init [SUSv4]posix_spawnattr_setflags [SUSv4]posix_spawnattr_setpgroup [SUSv4]
posix_spawnattr_setschedparam [SUSv4]posix_spawnattr_setschedpolicy [SUSv4]posix_spawnattr_setsigdefault [SUSv4]posix_spawnattr_setsigmask [SUSv4]
posix_spawnp [SUSv4]   

14.3.8. Posix Advisory Option

14.3.8.1. Interfaces for Posix Advisory Option

An LSB conforming implementation shall provide the generic functions for Posix Advisory Option specified in Table 14-16, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-16. libc - Posix Advisory Option Function Interfaces

posix_fadvise [SUSv4]posix_fallocate [SUSv4]posix_madvise [SUSv4]posix_memalign [SUSv4]

14.3.9. Socket Interface

14.3.9.1. Interfaces for Socket Interface

An LSB conforming implementation shall provide the generic functions for Socket Interface specified in Table 14-17, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-17. libc - Socket Interface Function Interfaces

__gethostname_chk(GLIBC_2.4) [LSB]__h_errno_location [LSB]__recv_chk(GLIBC_2.4) [LSB]__recvfrom_chk(GLIBC_2.4) [LSB]
accept [SUSv4]bind [SUSv4]bindresvport [LSB]connect [SUSv4]
freeifaddrs(GLIBC_2.3) [LSB]gethostid [SUSv4]gethostname [SUSv4]getifaddrs(GLIBC_2.3) [LSB]
getpeername [SUSv4]getsockname [SUSv4]getsockopt [LSB]if_freenameindex [SUSv4]
if_indextoname [SUSv4]if_nameindex [SUSv4]if_nametoindex [SUSv4]listen [SUSv4]
recv [SUSv4]recvfrom [SUSv4]recvmsg [SUSv4]send [SUSv4]
sendmsg [SUSv4]sendto [SUSv4]setsockopt [LSB]shutdown [SUSv4]
sockatmark [SUSv4]socket [SUSv4]socketpair [SUSv4] 

An LSB conforming implementation shall provide the generic data interfaces for Socket Interface specified in Table 14-18, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-18. libc - Socket Interface Data Interfaces

in6addr_any [SUSv3]in6addr_loopback [SUSv3]  

14.3.10. Wide Characters

14.3.10.1. Interfaces for Wide Characters

An LSB conforming implementation shall provide the generic functions for Wide Characters specified in Table 14-19, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-19. libc - Wide Characters Function Interfaces

__fgetws_chk(GLIBC_2.4) [LSB]__fwprintf_chk(GLIBC_2.4) [LSB]__mbsnrtowcs_chk(GLIBC_2.4) [LSB]__mbsrtowcs_chk(GLIBC_2.4) [LSB]
__mbstowcs_chk(GLIBC_2.4) [LSB]__swprintf_chk(GLIBC_2.4) [LSB]__vfwprintf_chk(GLIBC_2.4) [LSB]__vswprintf_chk(GLIBC_2.4) [LSB]
__vwprintf_chk(GLIBC_2.4) [LSB]__wcpcpy_chk(GLIBC_2.4) [LSB]__wcpncpy_chk(GLIBC_2.4) [LSB]__wcrtomb_chk(GLIBC_2.4) [LSB]
__wcscat_chk(GLIBC_2.4) [LSB]__wcscpy_chk(GLIBC_2.4) [LSB]__wcsncat_chk(GLIBC_2.4) [LSB]__wcsncpy_chk(GLIBC_2.4) [LSB]
__wcsnrtombs_chk(GLIBC_2.4) [LSB]__wcsrtombs_chk(GLIBC_2.4) [LSB]__wcstod_internal [LSB]__wcstof_internal [LSB]
__wcstol_internal [LSB]__wcstold_internal [LSB]__wcstombs_chk(GLIBC_2.4) [LSB]__wcstoul_internal [LSB]
__wctomb_chk(GLIBC_2.4) [LSB]__wmemcpy_chk(GLIBC_2.4) [LSB]__wmemmove_chk(GLIBC_2.4) [LSB]__wmempcpy_chk(GLIBC_2.4) [LSB]
__wmemset_chk(GLIBC_2.4) [LSB]__wprintf_chk(GLIBC_2.4) [LSB]btowc [SUSv4]fgetwc [SUSv4]
fgetws [SUSv4]fputwc [SUSv4]fputws [SUSv4]fwide [SUSv4]
fwprintf [SUSv4]fwscanf [LSB]getwc [SUSv4]getwchar [SUSv4]
iswalnum_l(GLIBC_2.3) [SUSv4]iswalpha_l(GLIBC_2.3) [SUSv4]iswblank_l(GLIBC_2.3) [SUSv4]iswcntrl_l(GLIBC_2.3) [SUSv4]
iswctype_l(GLIBC_2.3) [SUSv4]iswdigit_l(GLIBC_2.3) [SUSv4]iswgraph_l(GLIBC_2.3) [SUSv4]iswlower_l(GLIBC_2.3) [SUSv4]
iswprint_l(GLIBC_2.3) [SUSv4]iswpunct_l(GLIBC_2.3) [SUSv4]iswspace_l(GLIBC_2.3) [SUSv4]iswupper_l(GLIBC_2.3) [SUSv4]
iswxdigit_l(GLIBC_2.3) [SUSv4]mblen [SUSv4]mbrlen [SUSv4]mbrtowc [SUSv4]
mbsinit [SUSv4]mbsnrtowcs [SUSv4]mbsrtowcs [SUSv4]mbstowcs [SUSv4]
mbtowc [SUSv4]putwc [SUSv4]putwchar [SUSv4]swprintf [SUSv4]
swscanf [LSB]towctrans [SUSv4]towctrans_l(GLIBC_2.3) [SUSv4]towlower [SUSv4]
towlower_l(GLIBC_2.3) [SUSv4]towupper [SUSv4]towupper_l(GLIBC_2.3) [SUSv4]ungetwc [SUSv4]
vfwprintf [SUSv4]vfwscanf [LSB]vswprintf [SUSv4]vswscanf [LSB]
vwprintf [SUSv4]vwscanf [LSB]wcpcpy [SUSv4]wcpncpy [SUSv4]
wcrtomb [SUSv4]wcscasecmp [SUSv4]wcscasecmp_l(GLIBC_2.3) [SUSv4]wcscat [SUSv4]
wcschr [SUSv4]wcscmp [SUSv4]wcscoll [SUSv4]wcscoll_l(GLIBC_2.3) [SUSv4]
wcscpy [SUSv4]wcscspn [SUSv4]wcsdup [SUSv4]wcsftime [SUSv4]
wcslen [SUSv4]wcsncasecmp [SUSv4]wcsncasecmp_l(GLIBC_2.3) [SUSv4]wcsncat [SUSv4]
wcsncmp [SUSv4]wcsncpy [SUSv4]wcsnlen [SUSv4]wcsnrtombs [SUSv4]
wcspbrk [SUSv4]wcsrchr [SUSv4]wcsrtombs [SUSv4]wcsspn [SUSv4]
wcsstr [SUSv4]wcstod [SUSv4]wcstof [SUSv4]wcstoimax [SUSv4]
wcstok [SUSv4]wcstol [SUSv4]wcstold [SUSv4]wcstoll [SUSv4]
wcstombs [SUSv4]wcstoq [LSB]wcstoul [SUSv4]wcstoull [SUSv4]
wcstoumax [SUSv4]wcstouq [LSB]wcswcs [SUSv3]wcswidth [SUSv4]
wcsxfrm [SUSv4]wcsxfrm_l(GLIBC_2.3) [SUSv4]wctob [SUSv4]wctomb [SUSv4]
wctrans [SUSv4]wctrans_l(GLIBC_2.3) [SUSv4]wctype [SUSv4]wctype_l(GLIBC_2.3) [SUSv4]
wcwidth [SUSv4]wmemchr [SUSv4]wmemcmp [SUSv4]wmemcpy [SUSv4]
wmemmove [SUSv4]wmemset [SUSv4]wprintf [SUSv4]wscanf [LSB]

14.3.11. String Functions

14.3.11.1. Interfaces for String Functions

An LSB conforming implementation shall provide the generic functions for String Functions specified in Table 14-20, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-20. libc - String Functions Function Interfaces

__memcpy_chk(GLIBC_2.3.4) [LSB]__memmove_chk(GLIBC_2.3.4) [LSB]__mempcpy [LSB]__mempcpy_chk(GLIBC_2.3.4) [LSB]
__memset_chk(GLIBC_2.3.4) [LSB]__rawmemchr [LSB]__stpcpy [LSB]__stpcpy_chk(GLIBC_2.3.4) [LSB]
__stpncpy_chk(GLIBC_2.4) [LSB]__strcat_chk(GLIBC_2.3.4) [LSB]__strcpy_chk(GLIBC_2.3.4) [LSB]__strdup [LSB]
__strncat_chk(GLIBC_2.3.4) [LSB]__strncpy_chk(GLIBC_2.3.4) [LSB]__strtod_internal [LSB]__strtof_internal [LSB]
__strtok_r [LSB]__strtol_internal [LSB]__strtold_internal [LSB]__strtoll_internal [LSB]
__strtoul_internal [LSB]__strtoull_internal [LSB]__xpg_strerror_r(GLIBC_2.3.4) [LSB]bcmp [SUSv3]
bcopy [SUSv3]bzero [SUSv3]ffs [SUSv4]index [SUSv3]
memccpy [SUSv4]memchr [SUSv4]memcmp [SUSv4]memcpy [SUSv4]
memmove [SUSv4]memrchr [LSB]memset [SUSv4]rindex [SUSv3]
stpcpy [SUSv4]stpncpy [SUSv4]strcasecmp [SUSv4]strcasecmp_l(GLIBC_2.3) [SUSv4]
strcasestr [LSB]strcat [SUSv4]strchr [SUSv4]strcmp [SUSv4]
strcoll [SUSv4]strcoll_l(GLIBC_2.3) [SUSv4]strcpy [SUSv4]strcspn [SUSv4]
strdup [SUSv4]strerror [SUSv4]strerror_l(GLIBC_2.6) [SUSv4]strerror_r [LSB]
strfmon [SUSv4]strfmon_l(GLIBC_2.3) [SUSv4]strftime [SUSv4]strftime_l(GLIBC_2.3) [SUSv4]
strlen [SUSv4]strncasecmp [SUSv4]strncasecmp_l(GLIBC_2.3) [SUSv4]strncat [SUSv4]
strncmp [SUSv4]strncpy [SUSv4]strndup [SUSv4]strnlen [SUSv4]
strpbrk [SUSv4]strptime [LSB]strrchr [SUSv4]strsep [LSB]
strsignal [SUSv4]strspn [SUSv4]strstr [SUSv4]strtof [SUSv4]
strtoimax [SUSv4]strtok [SUSv4]strtok_r [SUSv4]strtold [SUSv4]
strtoll [SUSv4]strtoq [LSB]strtoull [SUSv4]strtoumax [SUSv4]
strtouq [LSB]strxfrm [SUSv4]strxfrm_l(GLIBC_2.3) [SUSv4]swab [SUSv4]

An LSB conforming implementation shall provide the generic deprecated functions for String Functions specified in Table 14-21, with the full mandatory functionality as described in the referenced underlying specification.

Note: These interfaces are deprecated, and applications should avoid using them. These interfaces may be withdrawn in future releases of this specification.

Table 14-21. libc - String Functions Deprecated Function Interfaces

strerror_r [LSB]   

14.3.12. IPC Functions

14.3.12.1. Interfaces for IPC Functions

An LSB conforming implementation shall provide the generic functions for IPC Functions specified in Table 14-22, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-22. libc - IPC Functions Function Interfaces

ftok [SUSv4]msgctl [SUSv4]msgget [SUSv4]msgrcv [SUSv4]
msgsnd [SUSv4]semctl [SUSv4]semget [SUSv4]semop [SUSv4]
shmat [SUSv4]shmctl [SUSv4]shmdt [SUSv4]shmget [SUSv4]

14.3.13. Regular Expressions

14.3.13.1. Interfaces for Regular Expressions

An LSB conforming implementation shall provide the generic functions for Regular Expressions specified in Table 14-23, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-23. libc - Regular Expressions Function Interfaces

regcomp [SUSv4]regerror [SUSv4]regexec [LSB]regfree [SUSv4]

14.3.14. Character Type Functions

14.3.14.1. Interfaces for Character Type Functions

An LSB conforming implementation shall provide the generic functions for Character Type Functions specified in Table 14-24, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-24. libc - Character Type Functions Function Interfaces

__ctype_b_loc(GLIBC_2.3) [LSB]__ctype_get_mb_cur_max [LSB]__ctype_tolower_loc(GLIBC_2.3) [LSB]__ctype_toupper_loc(GLIBC_2.3) [LSB]
_tolower [SUSv4]_toupper [SUSv4]isalnum [SUSv4]isalnum_l(GLIBC_2.3) [SUSv4]
isalpha [SUSv4]isalpha_l(GLIBC_2.3) [SUSv4]isascii [SUSv4]isblank_l(GLIBC_2.3) [SUSv4]
iscntrl [SUSv4]iscntrl_l(GLIBC_2.3) [SUSv4]isdigit [SUSv4]isdigit_l(GLIBC_2.3) [SUSv4]
isgraph [SUSv4]isgraph_l(GLIBC_2.3) [SUSv4]islower [SUSv4]islower_l(GLIBC_2.3) [SUSv4]
isprint [SUSv4]isprint_l(GLIBC_2.3) [SUSv4]ispunct [SUSv4]ispunct_l(GLIBC_2.3) [SUSv4]
isspace [SUSv4]isspace_l(GLIBC_2.3) [SUSv4]isupper [SUSv4]isupper_l(GLIBC_2.3) [SUSv4]
iswalnum [SUSv4]iswalpha [SUSv4]iswblank [SUSv4]iswcntrl [SUSv4]
iswctype [SUSv4]iswdigit [SUSv4]iswgraph [SUSv4]iswlower [SUSv4]
iswprint [SUSv4]iswpunct [SUSv4]iswspace [SUSv4]iswupper [SUSv4]
iswxdigit [SUSv4]isxdigit [SUSv4]isxdigit_l(GLIBC_2.3) [SUSv4]toascii [SUSv4]
tolower [SUSv4]tolower_l(GLIBC_2.3) [SUSv4]toupper [SUSv4]toupper_l(GLIBC_2.3) [SUSv4]

14.3.15. Time Manipulation

14.3.15.1. Interfaces for Time Manipulation

An LSB conforming implementation shall provide the generic functions for Time Manipulation specified in Table 14-25, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-25. libc - Time Manipulation Function Interfaces

adjtime [LSB]asctime [SUSv4]asctime_r [SUSv4]ctime [SUSv4]
ctime_r [SUSv4]difftime [SUSv4]gmtime [SUSv4]gmtime_r [SUSv4]
localtime [SUSv4]localtime_r [SUSv4]mktime [SUSv4]tzset [SUSv4]
ualarm [SUSv3]   

An LSB conforming implementation shall provide the generic data interfaces for Time Manipulation specified in Table 14-26, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-26. libc - Time Manipulation Data Interfaces

__daylight [LSB]__timezone [LSB]__tzname [LSB]daylight [SUSv4]
timezone [SUSv4]tzname [SUSv4]  

14.3.16. Terminal Interface Functions

14.3.16.1. Interfaces for Terminal Interface Functions

An LSB conforming implementation shall provide the generic functions for Terminal Interface Functions specified in Table 14-27, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-27. libc - Terminal Interface Functions Function Interfaces

cfgetispeed [SUSv4]cfgetospeed [SUSv4]cfmakeraw [LSB]cfsetispeed [SUSv4]
cfsetospeed [SUSv4]cfsetspeed [LSB]tcdrain [SUSv4]tcflow [SUSv4]
tcflush [SUSv4]tcgetattr [SUSv4]tcgetpgrp [SUSv4]tcgetsid [SUSv4]
tcsendbreak [SUSv4]tcsetattr [SUSv4]tcsetpgrp [SUSv4] 

14.3.17. System Database Interface

14.3.17.1. Interfaces for System Database Interface

An LSB conforming implementation shall provide the generic functions for System Database Interface specified in Table 14-28, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-28. libc - System Database Interface Function Interfaces

endgrent [SUSv4]endprotoent [SUSv4]endpwent [SUSv4]endservent [SUSv4]
endutent [LSB]endutxent [SUSv4]getgrent [SUSv4]getgrent_r [LSB]
getgrgid [SUSv4]getgrgid_r [SUSv4]getgrnam [SUSv4]getgrnam_r [SUSv4]
getgrouplist [LSB]gethostbyaddr [SUSv3]gethostbyaddr_r [LSB]gethostbyname [SUSv3]
gethostbyname2 [LSB]gethostbyname2_r [LSB]gethostbyname_r [LSB]getprotobyname [SUSv4]
getprotobyname_r [LSB]getprotobynumber [SUSv4]getprotobynumber_r [LSB]getprotoent [SUSv4]
getprotoent_r [LSB]getpwent [SUSv4]getpwent_r [LSB]getpwnam [SUSv4]
getpwnam_r [SUSv4]getpwuid [SUSv4]getpwuid_r [SUSv4]getservbyname [SUSv4]
getservbyname_r [LSB]getservbyport [SUSv4]getservbyport_r [LSB]getservent [SUSv4]
getservent_r [LSB]getutent [LSB]getutent_r [LSB]getutxent [SUSv4]
getutxid [SUSv4]getutxline [SUSv4]pututxline [SUSv4]setgrent [SUSv4]
setgroups [LSB]setprotoent [SUSv4]setpwent [SUSv4]setservent [SUSv4]
setutent [LSB]setutxent [SUSv4]utmpname [LSB] 

An LSB conforming implementation shall provide the generic deprecated functions for System Database Interface specified in Table 14-29, with the full mandatory functionality as described in the referenced underlying specification.

Note: These interfaces are deprecated, and applications should avoid using them. These interfaces may be withdrawn in future releases of this specification.

Table 14-29. libc - System Database Interface Deprecated Function Interfaces

gethostbyaddr [SUSv3]gethostbyaddr_r [LSB]gethostbyname [SUSv3]gethostbyname2 [LSB]
gethostbyname2_r [LSB]gethostbyname_r [LSB]  

14.3.18. Language Support

14.3.18.1. Interfaces for Language Support

An LSB conforming implementation shall provide the generic functions for Language Support specified in Table 14-30, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-30. libc - Language Support Function Interfaces

__libc_start_main [LSB]__register_atfork(GLIBC_2.3.2) [LSB]  

14.3.19. Large File Support

14.3.19.1. Interfaces for Large File Support

An LSB conforming implementation shall provide the generic functions for Large File Support specified in Table 14-31, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-31. libc - Large File Support Function Interfaces

__fxstat64 [LSB]__fxstatat64(GLIBC_2.4) [LSB]__lxstat64 [LSB]__xstat64 [LSB]
creat64 [LFS]fgetpos64 [LFS]fopen64 [LFS]freopen64 [LFS]
fseeko64 [LFS]fsetpos64 [LFS]fstatfs64 [LSB]fstatvfs64 [LFS]
ftello64 [LFS]ftruncate64 [LFS]ftw64 [LFS]getrlimit64 [LFS]
lockf64 [LFS]lseek64 [LFS]mkstemp64 [LSB]mmap64 [LFS]
nftw64 [LFS]open64 [LFS]openat64(GLIBC_2.4) [LSB]posix_fadvise64 [LSB]
posix_fallocate64 [LSB]pread64 [LSB]pwrite64 [LSB]readdir64 [LFS]
readdir64_r [LSB]statfs64 [LSB]statvfs64 [LFS]tmpfile64 [LFS]
truncate64 [LFS]   

An LSB conforming implementation shall provide the generic deprecated functions for Large File Support specified in Table 14-32, with the full mandatory functionality as described in the referenced underlying specification.

Note: These interfaces are deprecated, and applications should avoid using them. These interfaces may be withdrawn in future releases of this specification.

Table 14-32. libc - Large File Support Deprecated Function Interfaces

fstatfs64 [LSB]statfs64 [LSB]  

14.3.20. Inotify

14.3.20.1. Interfaces for Inotify

An LSB conforming implementation shall provide the generic functions for Inotify specified in Table 14-33, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-33. libc - Inotify Function Interfaces

inotify_add_watch(GLIBC_2.4) [LSB]inotify_init(GLIBC_2.4) [LSB]inotify_rm_watch(GLIBC_2.4) [LSB] 

14.3.21. Standard Library

14.3.21.1. Interfaces for Standard Library

An LSB conforming implementation shall provide the generic functions for Standard Library specified in Table 14-34, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-34. libc - Standard Library Function Interfaces

_Exit [SUSv4]__assert_fail [LSB]__confstr_chk(GLIBC_2.4) [LSB]__cxa_atexit [LSB]
__cxa_finalize [LSB]__errno_location [LSB]__fpending [LSB]__getcwd_chk(GLIBC_2.4) [LSB]
__getlogin_r_chk(GLIBC_2.4) [LSB]__getpagesize [LSB]__isinf [LSB]__isinff [LSB]
__isinfl [LSB]__isnan [LSB]__isnanf [LSB]__isnanl [LSB]
__pread64_chk(GLIBC_2.4) [LSB]__pread_chk(GLIBC_2.4) [LSB]__realpath_chk(GLIBC_2.4) [LSB]__sysconf [LSB]
__syslog_chk(GLIBC_2.4) [LSB]__ttyname_r_chk(GLIBC_2.4) [LSB]__vsyslog_chk(GLIBC_2.4) [LSB]__xpg_basename [LSB]
_exit [SUSv4]_longjmp [SUSv4]_setjmp [SUSv4]a64l [SUSv4]
abort [SUSv4]abs [SUSv4]alphasort [SUSv4]alphasort64 [LSB]
argz_add [LSB]argz_add_sep [LSB]argz_append [LSB]argz_count [LSB]
argz_create [LSB]argz_create_sep [LSB]argz_delete [LSB]argz_extract [LSB]
argz_insert [LSB]argz_next [LSB]argz_replace [LSB]argz_stringify [LSB]
atof [SUSv4]atoi [SUSv4]atol [SUSv4]atoll [SUSv4]
basename [LSB]bsearch [SUSv4]calloc [SUSv4]closelog [SUSv4]
confstr [SUSv4]cuserid [SUSv2]daemon [LSB]dirfd [SUSv4]
dirname [SUSv4]div [SUSv4]dl_iterate_phdr [LSB]drand48 [SUSv4]
drand48_r [LSB]ecvt [SUSv3]envz_add [LSB]envz_entry [LSB]
envz_get [LSB]envz_merge [LSB]envz_remove [LSB]envz_strip [LSB]
erand48 [SUSv4]erand48_r [LSB]err [LSB]error [LSB]
errx [LSB]fcvt [SUSv3]fmemopen [SUSv4]fmtmsg [SUSv4]
fnmatch [LSB]fpathconf [SUSv4]free [SUSv4]freeaddrinfo [SUSv4]
ftrylockfile [SUSv4]ftw [SUSv4]funlockfile [SUSv4]gai_strerror [SUSv4]
gcvt [SUSv3]getaddrinfo [SUSv4]getcwd [LSB]getdate [SUSv4]
getdomainname [LSB]getenv [SUSv4]getlogin [SUSv4]getlogin_r [SUSv4]
getnameinfo [SUSv4]getopt [LSB]getopt_long [LSB]getopt_long_only [LSB]
getsubopt [SUSv4]gettimeofday [SUSv4]glob [SUSv4]glob64 [LSB]
globfree [SUSv4]globfree64 [LSB]grantpt [SUSv4]hcreate [SUSv4]
hcreate_r [LSB]hdestroy [SUSv4]hdestroy_r [LSB]hsearch [SUSv4]
hsearch_r [LSB]htonl [SUSv4]htons [SUSv4]imaxabs [SUSv4]
imaxdiv [SUSv4]inet_addr [SUSv4]inet_aton [LSB]inet_ntoa [SUSv4]
inet_ntop [SUSv4]inet_pton [SUSv4]initstate [SUSv4]initstate_r [LSB]
insque [SUSv4]isatty [SUSv4]isblank [SUSv4]jrand48 [SUSv4]
jrand48_r [LSB]l64a [SUSv4]labs [SUSv4]lcong48 [SUSv4]
lcong48_r [LSB]ldiv [SUSv4]lfind [SUSv4]llabs [SUSv4]
lldiv [SUSv4]longjmp [SUSv4]lrand48 [SUSv4]lrand48_r [LSB]
lsearch [SUSv4]makecontext [SUSv3]malloc [SUSv4]memmem [LSB]
mkdtemp [SUSv4]mkstemp [SUSv4]mktemp [SUSv3]mrand48 [SUSv4]
mrand48_r [LSB]nftw [SUSv4]nrand48 [SUSv4]nrand48_r [LSB]
ntohl [SUSv4]ntohs [SUSv4]open_memstream [SUSv4]open_wmemstream(GLIBC_2.4) [SUSv4]
openlog [SUSv4]perror [SUSv4]posix_openpt [SUSv4]ptsname [SUSv4]
putenv [SUSv4]qsort [SUSv4]rand [SUSv4]rand_r [SUSv4]
random [SUSv4]random_r [LSB]realloc [SUSv4]realpath [SUSv4]
remque [SUSv4]scandir [SUSv4]scandir64 [LSB]seed48 [SUSv4]
seed48_r [LSB]sendfile [LSB]sendfile64(GLIBC_2.3) [LSB]setenv [SUSv4]
sethostname [LSB]setlogmask [SUSv4]setstate [SUSv4]setstate_r [LSB]
srand [SUSv4]srand48 [SUSv4]srand48_r [LSB]srandom [SUSv4]
srandom_r [LSB]strtod [SUSv4]strtol [SUSv4]strtoul [SUSv4]
swapcontext [SUSv3]syslog [SUSv4]system [LSB]tdelete [SUSv4]
tfind [SUSv4]tmpfile [SUSv4]tmpnam [SUSv4]tsearch [SUSv4]
ttyname [SUSv4]ttyname_r [SUSv4]twalk [SUSv4]unlockpt [SUSv4]
unsetenv [SUSv4]usleep [SUSv3]verrx [LSB]vfscanf [LSB]
vscanf [LSB]vsscanf [LSB]vsyslog [LSB]warn [LSB]
warnx [LSB]wordexp [SUSv4]wordfree [SUSv4] 

An LSB conforming implementation shall provide the generic deprecated functions for Standard Library specified in Table 14-35, with the full mandatory functionality as described in the referenced underlying specification.

Note: These interfaces are deprecated, and applications should avoid using them. These interfaces may be withdrawn in future releases of this specification.

Table 14-35. libc - Standard Library Deprecated Function Interfaces

basename [LSB]getdomainname [LSB]inet_aton [LSB]tmpnam [SUSv4]

An LSB conforming implementation shall provide the generic data interfaces for Standard Library specified in Table 14-36, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-36. libc - Standard Library Data Interfaces

__environ [LSB]_environ [LSB]_sys_errlist [LSB]environ [SUSv4]
getdate_err [SUSv4]optarg [SUSv4]opterr [SUSv4]optind [SUSv4]
optopt [SUSv4]   

14.3.22. GNU Extensions for libc

14.3.22.1. Interfaces for GNU Extensions for libc

An LSB conforming implementation shall provide the generic functions for GNU Extensions for libc specified in Table 14-37, with the full mandatory functionality as described in the referenced underlying specification.

Table 14-37. libc - GNU Extensions for libc Function Interfaces

gnu_get_libc_release [LSB]gnu_get_libc_version [LSB]