13.3. Interfaces for libc

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

Table 13-1. libc Definition

Library:libc
SONAME:See archLSB.

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

[LFS] Large File Support
[LSB] This Specification
[SUSv2] SUSv2
[SUSv3] ISO POSIX (2003)
[SVID.3] SVID Issue 3
[SVID.4] SVID Issue 4

13.3.1. RPC

13.3.1.1. Interfaces for RPC

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

Table 13-2. libc - RPC Function Interfaces

authnone_create [SVID.4]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]
key_decryptsession [SVID.3]pmap_getport [LSB]pmap_set [LSB]pmap_unset [LSB]
svc_getreqset [SVID.3]svc_register [LSB]svc_run [LSB]svc_sendreply [LSB]
svcerr_auth [SVID.3]svcerr_decode [SVID.3]svcerr_noproc [SVID.3]svcerr_noprog [SVID.3]
svcerr_progvers [SVID.3]svcerr_systemerr [SVID.3]svcerr_weakauth [SVID.3]svctcp_create [LSB]
svcudp_create [LSB]xdr_accepted_reply [SVID.3]xdr_array [SVID.3]xdr_bool [SVID.3]
xdr_bytes [SVID.3]xdr_callhdr [SVID.3]xdr_callmsg [SVID.3]xdr_char [SVID.3]
xdr_double [SVID.3]xdr_enum [SVID.3]xdr_float [SVID.3]xdr_free [SVID.3]
xdr_int [SVID.3]xdr_long [SVID.3]xdr_opaque [SVID.3]xdr_opaque_auth [SVID.3]
xdr_pointer [SVID.3]xdr_reference [SVID.3]xdr_rejected_reply [SVID.3]xdr_replymsg [SVID.3]
xdr_short [SVID.3]xdr_string [SVID.3]xdr_u_char [SVID.3]xdr_u_int [LSB]
xdr_u_long [SVID.3]xdr_u_short [SVID.3]xdr_union [SVID.3]xdr_vector [SVID.3]
xdr_void [SVID.3]xdr_wrapstring [SVID.3]xdrmem_create [SVID.3]xdrrec_create [SVID.3]
xdrrec_eof [SVID.3]xdrstdio_create [LSB]  

13.3.2. System Calls

13.3.2.1. Interfaces for System Calls

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

Table 13-3. libc - System Calls Function Interfaces

__fxstat [LSB]__getpgid [LSB]__lxstat [LSB]__xmknod [LSB]
__xstat [LSB]access [SUSv3]acct [LSB]alarm [SUSv3]
brk [SUSv2]chdir [SUSv3]chmod [SUSv3]chown [SUSv3]
chroot [SUSv2]clock [SUSv3]close [SUSv3]closedir [SUSv3]
creat [SUSv3]dup [SUSv3]dup2 [SUSv3]execl [SUSv3]
execle [SUSv3]execlp [SUSv3]execv [SUSv3]execve [SUSv3]
execvp [SUSv3]exit [SUSv3]fchdir [SUSv3]fchmod [SUSv3]
fchown [SUSv3]fcntl [LSB]fdatasync [SUSv3]flock [LSB]
fork [SUSv3]fstatfs [LSB]fstatvfs [SUSv3]fsync [SUSv3]
ftime [SUSv3]ftruncate [SUSv3]getcontext [SUSv3]getdtablesize [LSB]
getegid [SUSv3]geteuid [SUSv3]getgid [SUSv3]getgroups [SUSv3]
getitimer [SUSv3]getloadavg [LSB]getpagesize [LSB]getpgid [SUSv3]
getpgrp [SUSv3]getpid [SUSv3]getppid [SUSv3]getpriority [SUSv3]
getrlimit [SUSv3]getrusage [SUSv3]getsid [SUSv3]getuid [SUSv3]
getwd [SUSv3]initgroups [LSB]ioctl [LSB]kill [LSB]
killpg [SUSv3]lchown [SUSv3]link [LSB]lockf [SUSv3]
lseek [SUSv3]mkdir [SUSv3]mkfifo [SUSv3]mlock [SUSv3]
mlockall [SUSv3]mmap [SUSv3]mprotect [SUSv3]mremap [LSB]
msync [SUSv3]munlock [SUSv3]munlockall [SUSv3]munmap [SUSv3]
nanosleep [SUSv3]nice [SUSv3]open [SUSv3]opendir [SUSv3]
pathconf [SUSv3]pause [SUSv3]pipe [SUSv3]poll [SUSv3]
pselect [SUSv3]read [SUSv3]readdir [SUSv3]readdir_r [SUSv3]
readlink [SUSv3]readv [SUSv3]rename [SUSv3]rmdir [SUSv3]
sbrk [SUSv2]sched_get_priority_max [SUSv3]sched_get_priority_min [SUSv3]sched_getparam [SUSv3]
sched_getscheduler [SUSv3]sched_rr_get_interval [SUSv3]sched_setparam [SUSv3]sched_setscheduler [LSB]
sched_yield [SUSv3]select [SUSv3]setcontext [SUSv3]setegid [SUSv3]
seteuid [SUSv3]setgid [SUSv3]setitimer [SUSv3]setpgid [SUSv3]
setpgrp [SUSv3]setpriority [SUSv3]setregid [SUSv3]setreuid [SUSv3]
setrlimit [SUSv3]setrlimit64 [LFS]setsid [SUSv3]setuid [SUSv3]
sleep [SUSv3]statfs [LSB]statvfs [SUSv3]stime [LSB]
symlink [SUSv3]sync [SUSv3]sysconf [LSB]time [SUSv3]
times [SUSv3]truncate [SUSv3]ulimit [SUSv3]umask [SUSv3]
uname [SUSv3]unlink [LSB]utime [SUSv3]utimes [SUSv3]
vfork [SUSv3]wait [SUSv3]wait4 [LSB]waitid [SUSv3]
waitpid [LSB]write [SUSv3]writev [SUSv3] 

An LSB conforming implementation shall provide the generic deprecated functions for System Calls specified in Table 13-4, 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 13-4. libc - System Calls Deprecated Function Interfaces

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

13.3.3. Standard I/O

13.3.3.1. Interfaces for Standard I/O

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

Table 13-5. libc - Standard I/O Function Interfaces

_IO_feof [LSB]_IO_getc [LSB]_IO_putc [LSB]_IO_puts [LSB]
asprintf [LSB]clearerr [SUSv3]ctermid [SUSv3]fclose [SUSv3]
fdopen [SUSv3]feof [SUSv3]ferror [SUSv3]fflush [SUSv3]
fflush_unlocked [LSB]fgetc [SUSv3]fgetpos [SUSv3]fgets [SUSv3]
fgetwc_unlocked [LSB]fileno [SUSv3]flockfile [SUSv3]fopen [SUSv3]
fprintf [SUSv3]fputc [SUSv3]fputs [SUSv3]fread [SUSv3]
freopen [SUSv3]fscanf [LSB]fseek [SUSv3]fseeko [SUSv3]
fsetpos [SUSv3]ftell [SUSv3]ftello [SUSv3]fwrite [SUSv3]
getc [SUSv3]getc_unlocked [SUSv3]getchar [SUSv3]getchar_unlocked [SUSv3]
getw [SUSv2]pclose [SUSv3]popen [SUSv3]printf [SUSv3]
putc [SUSv3]putc_unlocked [SUSv3]putchar [SUSv3]putchar_unlocked [SUSv3]
puts [SUSv3]putw [SUSv2]remove [SUSv3]rewind [SUSv3]
rewinddir [SUSv3]scanf [LSB]seekdir [SUSv3]setbuf [SUSv3]
setbuffer [LSB]setvbuf [SUSv3]snprintf [SUSv3]sprintf [SUSv3]
sscanf [LSB]telldir [SUSv3]tempnam [SUSv3]ungetc [SUSv3]
vasprintf [LSB]vdprintf [LSB]vfprintf [SUSv3]vprintf [SUSv3]
vsnprintf [SUSv3]vsprintf [SUSv3]  

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

Table 13-6. libc - Standard I/O Data Interfaces

stderr [SUSv3]stdin [SUSv3]stdout [SUSv3] 

13.3.4. Signal Handling

13.3.4.1. Interfaces for Signal Handling

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

Table 13-7. libc - Signal Handling Function Interfaces

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

An LSB conforming implementation shall provide the generic deprecated functions for Signal Handling specified in Table 13-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 13-8. libc - Signal Handling Deprecated Function Interfaces

sigpause [LSB]   

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

Table 13-9. libc - Signal Handling Data Interfaces

_sys_siglist [LSB]   

13.3.5. Localization Functions

13.3.5.1. Interfaces for Localization Functions

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

Table 13-10. libc - Localization Functions Function Interfaces

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

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

Table 13-11. libc - Localization Functions Data Interfaces

_nl_msg_cat_cntr [LSB]   

13.3.6. Posix Spawn Option

13.3.6.1. Interfaces for Posix Spawn Option

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

Table 13-12. libc - Posix Spawn Option Function Interfaces

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

13.3.7. Posix Advisory Option

13.3.7.1. Interfaces for Posix Advisory Option

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

Table 13-13. libc - Posix Advisory Option Function Interfaces

posix_fadvise [SUSv3]posix_fallocate [SUSv3]posix_madvise [SUSv3]posix_memalign [SUSv3]

13.3.8. Socket Interface

13.3.8.1. Interfaces for Socket Interface

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

Table 13-14. libc - Socket Interface Function Interfaces

__h_errno_location [LSB]accept [SUSv3]bind [SUSv3]bindresvport [LSB]
connect [SUSv3]gethostid [SUSv3]gethostname [SUSv3]getpeername [SUSv3]
getsockname [SUSv3]getsockopt [LSB]if_freenameindex [SUSv3]if_indextoname [SUSv3]
if_nameindex [SUSv3]if_nametoindex [SUSv3]listen [SUSv3]recv [SUSv3]
recvfrom [SUSv3]recvmsg [SUSv3]send [SUSv3]sendmsg [SUSv3]
sendto [SUSv3]setsockopt [LSB]shutdown [SUSv3]sockatmark [SUSv3]
socket [SUSv3]socketpair [SUSv3]  

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

Table 13-15. libc - Socket Interface Data Interfaces

in6addr_any [SUSv3]in6addr_loopback [SUSv3]  

13.3.9. Wide Characters

13.3.9.1. Interfaces for Wide Characters

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

Table 13-16. libc - Wide Characters Function Interfaces

__wcstod_internal [LSB]__wcstof_internal [LSB]__wcstol_internal [LSB]__wcstold_internal [LSB]
__wcstoul_internal [LSB]btowc [SUSv3]fgetwc [SUSv3]fgetws [SUSv3]
fputwc [SUSv3]fputws [SUSv3]fwide [SUSv3]fwprintf [SUSv3]
fwscanf [LSB]getwc [SUSv3]getwchar [SUSv3]mblen [SUSv3]
mbrlen [SUSv3]mbrtowc [SUSv3]mbsinit [SUSv3]mbsnrtowcs [LSB]
mbsrtowcs [SUSv3]mbstowcs [SUSv3]mbtowc [SUSv3]putwc [SUSv3]
putwchar [SUSv3]swprintf [SUSv3]swscanf [LSB]towctrans [SUSv3]
towlower [SUSv3]towupper [SUSv3]ungetwc [SUSv3]vfwprintf [SUSv3]
vfwscanf [LSB]vswprintf [SUSv3]vswscanf [LSB]vwprintf [SUSv3]
vwscanf [LSB]wcpcpy [LSB]wcpncpy [LSB]wcrtomb [SUSv3]
wcscasecmp [LSB]wcscat [SUSv3]wcschr [SUSv3]wcscmp [SUSv3]
wcscoll [SUSv3]wcscpy [SUSv3]wcscspn [SUSv3]wcsdup [LSB]
wcsftime [SUSv3]wcslen [SUSv3]wcsncasecmp [LSB]wcsncat [SUSv3]
wcsncmp [SUSv3]wcsncpy [SUSv3]wcsnlen [LSB]wcsnrtombs [LSB]
wcspbrk [SUSv3]wcsrchr [SUSv3]wcsrtombs [SUSv3]wcsspn [SUSv3]
wcsstr [SUSv3]wcstod [SUSv3]wcstof [SUSv3]wcstoimax [SUSv3]
wcstok [SUSv3]wcstol [SUSv3]wcstold [SUSv3]wcstoll [SUSv3]
wcstombs [SUSv3]wcstoq [LSB]wcstoul [SUSv3]wcstoull [SUSv3]
wcstoumax [SUSv3]wcstouq [LSB]wcswcs [SUSv3]wcswidth [SUSv3]
wcsxfrm [SUSv3]wctob [SUSv3]wctomb [SUSv3]wctrans [SUSv3]
wctype [SUSv3]wcwidth [SUSv3]wmemchr [SUSv3]wmemcmp [SUSv3]
wmemcpy [SUSv3]wmemmove [SUSv3]wmemset [SUSv3]wprintf [SUSv3]
wscanf [LSB]   

13.3.10. String Functions

13.3.10.1. Interfaces for String Functions

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

Table 13-17. libc - String Functions Function Interfaces

__mempcpy [LSB]__rawmemchr [LSB]__stpcpy [LSB]__strdup [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 [SUSv3]index [SUSv3]memccpy [SUSv3]memchr [SUSv3]
memcmp [SUSv3]memcpy [SUSv3]memmove [SUSv3]memrchr [LSB]
memset [SUSv3]rindex [SUSv3]stpcpy [LSB]stpncpy [LSB]
strcasecmp [SUSv3]strcasestr [LSB]strcat [SUSv3]strchr [SUSv3]
strcmp [SUSv3]strcoll [SUSv3]strcpy [SUSv3]strcspn [SUSv3]
strdup [SUSv3]strerror [SUSv3]strerror_r [LSB]strfmon [SUSv3]
strftime [SUSv3]strlen [SUSv3]strncasecmp [SUSv3]strncat [SUSv3]
strncmp [SUSv3]strncpy [SUSv3]strndup [LSB]strnlen [LSB]
strpbrk [SUSv3]strptime [LSB]strrchr [SUSv3]strsep [LSB]
strsignal [LSB]strspn [SUSv3]strstr [SUSv3]strtof [SUSv3]
strtoimax [SUSv3]strtok [SUSv3]strtok_r [SUSv3]strtold [SUSv3]
strtoll [SUSv3]strtoq [LSB]strtoull [SUSv3]strtoumax [SUSv3]
strtouq [LSB]strxfrm [SUSv3]swab [SUSv3] 

An LSB conforming implementation shall provide the generic deprecated functions for String Functions specified in Table 13-18, 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 13-18. libc - String Functions Deprecated Function Interfaces

strerror_r [LSB]   

13.3.11. IPC Functions

13.3.11.1. Interfaces for IPC Functions

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

Table 13-19. libc - IPC Functions Function Interfaces

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

13.3.12. Regular Expressions

13.3.12.1. Interfaces for Regular Expressions

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

Table 13-20. libc - Regular Expressions Function Interfaces

regcomp [SUSv3]regerror [SUSv3]regexec [LSB]regfree [SUSv3]

13.3.13. Character Type Functions

13.3.13.1. Interfaces for Character Type Functions

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

Table 13-21. 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 [SUSv3]_toupper [SUSv3]isalnum [SUSv3]isalpha [SUSv3]
isascii [SUSv3]iscntrl [SUSv3]isdigit [SUSv3]isgraph [SUSv3]
islower [SUSv3]isprint [SUSv3]ispunct [SUSv3]isspace [SUSv3]
isupper [SUSv3]iswalnum [SUSv3]iswalpha [SUSv3]iswblank [SUSv3]
iswcntrl [SUSv3]iswctype [SUSv3]iswdigit [SUSv3]iswgraph [SUSv3]
iswlower [SUSv3]iswprint [SUSv3]iswpunct [SUSv3]iswspace [SUSv3]
iswupper [SUSv3]iswxdigit [SUSv3]isxdigit [SUSv3]toascii [SUSv3]
tolower [SUSv3]toupper [SUSv3]  

13.3.14. Time Manipulation

13.3.14.1. Interfaces for Time Manipulation

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

Table 13-22. libc - Time Manipulation Function Interfaces

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

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

Table 13-23. libc - Time Manipulation Data Interfaces

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

13.3.15. Terminal Interface Functions

13.3.15.1. Interfaces for Terminal Interface Functions

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

Table 13-24. libc - Terminal Interface Functions Function Interfaces

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

13.3.16. System Database Interface

13.3.16.1. Interfaces for System Database Interface

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

Table 13-25. libc - System Database Interface Function Interfaces

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

An LSB conforming implementation shall provide the generic deprecated functions for System Database Interface specified in Table 13-26, 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 13-26. libc - System Database Interface Deprecated Function Interfaces

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

13.3.17. Language Support

13.3.17.1. Interfaces for Language Support

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

Table 13-27. libc - Language Support Function Interfaces

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

13.3.18. Large File Support

13.3.18.1. Interfaces for Large File Support

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

Table 13-28. libc - Large File Support Function Interfaces

__fxstat64 [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]
mkstemp64 [LFS]mmap64 [LFS]nftw64 [LFS]posix_fadvise64 [LSB]
posix_fallocate64 [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 13-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 13-29. libc - Large File Support Deprecated Function Interfaces

fstatfs64 [LSB]statfs64 [LSB]  

13.3.19. Standard Library

13.3.19.1. Interfaces for Standard Library

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

Table 13-30. libc - Standard Library Function Interfaces

_Exit [SUSv3]__assert_fail [LSB]__cxa_atexit [LSB]__cxa_finalize [LSB]
__errno_location [LSB]__fpending [LSB]__getpagesize [LSB]__isinf [LSB]
__isinff [LSB]__isinfl [LSB]__isnan [LSB]__isnanf [LSB]
__isnanl [LSB]__sysconf [LSB]__xpg_basename [LSB]_exit [SUSv3]
_longjmp [SUSv3]_setjmp [SUSv3]a64l [SUSv3]abort [SUSv3]
abs [SUSv3]atof [SUSv3]atoi [SUSv3]atol [SUSv3]
atoll [SUSv3]basename [LSB]bsearch [SUSv3]calloc [SUSv3]
closelog [SUSv3]confstr [SUSv3]cuserid [SUSv2]daemon [LSB]
dirname [SUSv3]div [SUSv3]drand48 [SUSv3]ecvt [SUSv3]
erand48 [SUSv3]err [LSB]error [LSB]errx [LSB]
fcvt [SUSv3]fmtmsg [SUSv3]fnmatch [SUSv3]fpathconf [SUSv3]
free [SUSv3]freeaddrinfo [SUSv3]ftrylockfile [SUSv3]ftw [SUSv3]
funlockfile [SUSv3]gai_strerror [SUSv3]gcvt [SUSv3]getaddrinfo [SUSv3]
getcwd [SUSv3]getdate [SUSv3]getdomainname [LSB]getenv [SUSv3]
getlogin [SUSv3]getlogin_r [SUSv3]getnameinfo [SUSv3]getopt [LSB]
getopt_long [LSB]getopt_long_only [LSB]getsubopt [SUSv3]gettimeofday [SUSv3]
glob [SUSv3]glob64 [LSB]globfree [SUSv3]globfree64 [LSB]
grantpt [SUSv3]hcreate [SUSv3]hdestroy [SUSv3]hsearch [SUSv3]
htonl [SUSv3]htons [SUSv3]imaxabs [SUSv3]imaxdiv [SUSv3]
inet_addr [SUSv3]inet_aton [LSB]inet_ntoa [SUSv3]inet_ntop [SUSv3]
inet_pton [SUSv3]initstate [SUSv3]insque [SUSv3]isatty [SUSv3]
isblank [SUSv3]jrand48 [SUSv3]l64a [SUSv3]labs [SUSv3]
lcong48 [SUSv3]ldiv [SUSv3]lfind [SUSv3]llabs [SUSv3]
lldiv [SUSv3]longjmp [SUSv3]lrand48 [SUSv3]lsearch [SUSv3]
makecontext [SUSv3]malloc [SUSv3]memmem [LSB]mkstemp [SUSv3]
mktemp [SUSv3]mrand48 [SUSv3]nftw [SUSv3]nrand48 [SUSv3]
ntohl [SUSv3]ntohs [SUSv3]openlog [SUSv3]perror [SUSv3]
posix_openpt [SUSv3]ptsname [SUSv3]putenv [SUSv3]qsort [SUSv3]
rand [SUSv3]rand_r [SUSv3]random [SUSv3]realloc [SUSv3]
realpath [SUSv3]remque [SUSv3]seed48 [SUSv3]setenv [SUSv3]
sethostname [LSB]setlogmask [SUSv3]setstate [SUSv3]srand [SUSv3]
srand48 [SUSv3]srandom [SUSv3]strtod [SUSv3]strtol [SUSv3]
strtoul [SUSv3]swapcontext [SUSv3]syslog [SUSv3]system [LSB]
tdelete [SUSv3]tfind [SUSv3]tmpfile [SUSv3]tmpnam [SUSv3]
tsearch [SUSv3]ttyname [SUSv3]ttyname_r [SUSv3]twalk [SUSv3]
unlockpt [SUSv3]unsetenv [SUSv3]usleep [SUSv3]verrx [LSB]
vfscanf [LSB]vscanf [LSB]vsscanf [LSB]vsyslog [LSB]
warn [LSB]warnx [LSB]wordexp [SUSv3]wordfree [SUSv3]

An LSB conforming implementation shall provide the generic deprecated functions for Standard Library specified in Table 13-31, 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 13-31. libc - Standard Library Deprecated Function Interfaces

basename [LSB]getdomainname [LSB]inet_aton [LSB] 

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

Table 13-32. libc - Standard Library Data Interfaces

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