Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Thursday, June 13, 2019
 
 

libc (3LIB)

Name

libc - C library

Description

Functions in this library provide various facilities defined by System V, ANSI C, POSIX, and so on. See standards(7). In addition, those facilities previously defined in the following libraries are now defined in this library:

libaio

asynchronous I/O library

libcmd

command utility library

libdl

dynamic linking library

libdoor

doors library

libintl

internationalization library

libnsl

network services library

libpthread

POSIX threads library

librt

POSIX.1b Realtime Extensions library

libsched

scheduling library

libsecdb

security attributes database library

libsendfile

sendfile library

libsocket

sockets library

libthread

Solaris threads library

libw

wide character library

libxnet

X/Open Networking library

INTERFACES

The shared object libc.so.1 provides the public interfaces defined below. See intro(3) for additional information on shared object interfaces.

____loc1
___errno
__builtin_alloca
__ctype
__fbufsize
__flbf
__flt_rounds
__fpending
__fpurge
__freadable
__freading
__fsetlocking
__fwritable
__fwriting
__huge_val
__iob
__loc1
__major
__makedev
__minor
__nsw_extended_action
__nsw_freeconfig
__nsw_getconfig
__posix_asctime_r
__posix_ctime_r
__posix_getgrgid_r
__posix_getgrnam_r
__posix_getlogin_r
__posix_getpwnam_r
__posix_getpwuid_r
__posix_sigwait
__posix_ttyname_r
__priocntl
__priocntlset
__pthread_cleanup_pop
__pthread_cleanup_push
__rpc_createerr
__sysconf_xpg5
__t_errno
__xnet_bind
__xnet_connect
__xnet_getsockopt
__xnet_listen
__xnet_recvmsg
__xnet_sendmsg
__xnet_sendto
__xnet_socket
__xnet_socketpair
__xpg4
__xpg4_putmsg
__xpg4_putpmsg
_altzone
_assert
_cleanup
_ctype
_daylight
_environ
_exit
_exithandle
_filbuf
_flsbuf
_flushlbf
_getdate_err
_getdate_err_addr
_iob
_isnan
_isnand
_lwp_cond_broadcast
_lwp_cond_reltimedwait
_lwp_cond_signal
_lwp_cond_timedwait
_lwp_cond_wait
_lwp_continue
_lwp_info
_lwp_kill
_lwp_mutex_lock
_lwp_mutex_trylock
_lwp_mutex_unlock
_lwp_self
_lwp_sema_init
_lwp_sema_post
_lwp_sema_trywait
_lwp_sema_wait
_lwp_suspend
_lwp_suspend2
_modf
_nderror
_nextafter
_nsc_trydoorcall
_nss_netdb_aliases
_nss_XbyY_buf_alloc
_nss_XbyY_buf_free
_null_auth
_numeric
_scalb
_sibuf
_sobuf
_stack_grow
_sys_buslist
_sys_cldlist
_sys_fpelist
_sys_illlist
_sys_segvlist
_sys_siginfolistp
_sys_siglist
_sys_siglistn
_sys_siglistp
_sys_traplist
_timezone
_tolower
_toupper
_tzname
_xftw
_xti_accept
_xti_alloc
_xti_bind
_xti_close
_xti_connect
_xti_error
_xti_free
_xti_getinfo
_xti_getprotaddr
_xti_getstate
_xti_listen
_xti_look
_xti_open
_xti_optmgmt
_xti_rcv
_xti_rcvconnect
_xti_rcvdis
_xti_rcvrel
_xti_rcvreldata
_xti_rcvudata
_xti_rcvuderr
_xti_rcvv
_xti_rcvvudata
_xti_snd
_xti_snddis
_xti_sndrel
_xti_sndreldata
_xti_sndudata
_xti_sndv
_xti_sndvudata
_xti_strerror
_xti_sync
_xti_sysconf
_xti_unbind
_xti_xns5_accept
_xti_xns5_snd
a64l
abort
abs
accept
accept4
access
acct
acl
addrtosymstr
addsev
addseverity
adjtime
aio_cancel
aio_error
aio_fsync
aio_read
aio_return
aio_suspend
aio_waitn
aio_write
aiocancel
aioread
aiowait
aiowrite
alarm
aligned_alloc
alphasort
altzone
arc4random
arc4random_addrandom
arc4random_buf
arc4random_stir
arc4random_uniform
ascftime
asctime
asctime_r
asprintf
at_quick_exit
atexit
atof
atoi
atol
atoll
atomic_add_16
atomic_add_16_nv
atomic_add_32
atomic_add_32_nv
atomic_add_64
atomic_add_64_nv
atomic_add_8
atomic_add_8_nv
atomic_add_char
atomic_add_char_nv
atomic_add_int
atomic_add_int_nv
atomic_add_long
atomic_add_long_nv
atomic_add_ptr
atomic_add_ptr_nv
atomic_add_short
atomic_add_short_nv
atomic_and_16
atomic_and_16_nv
atomic_and_32
atomic_and_32_nv
atomic_and_64
atomic_and_64_nv
atomic_and_8
atomic_and_8_nv
atomic_and_uchar
atomic_and_uchar_nv
atomic_and_uint
atomic_and_uint_nv
atomic_and_ulong
atomic_and_ulong_nv
atomic_and_ushort
atomic_and_ushort_nv
atomic_cas_16
atomic_cas_32
atomic_cas_64
atomic_cas_8
atomic_cas_ptr
atomic_cas_uchar
atomic_cas_uint
atomic_cas_ulong
atomic_cas_ushort
atomic_clear_long_excl
atomic_dec_16
atomic_dec_16_nv
atomic_dec_32
atomic_dec_32_nv
atomic_dec_64
atomic_dec_64_nv
atomic_dec_8
atomic_dec_8_nv
atomic_dec_ptr
atomic_dec_ptr_nv
atomic_dec_uchar
atomic_dec_uchar_nv
atomic_dec_uint
atomic_dec_uint_nv
atomic_dec_ulong
atomic_dec_ulong_nv
atomic_dec_ushort
atomic_dec_ushort_nv
atomic_inc_16
atomic_inc_16_nv
atomic_inc_32
atomic_inc_32_nv
atomic_inc_64
atomic_inc_64_nv
atomic_inc_8
atomic_inc_8_nv
atomic_inc_ptr
atomic_inc_ptr_nv
atomic_inc_uchar
atomic_inc_uchar_nv
atomic_inc_uint
atomic_inc_uint_nv
atomic_inc_ulong
atomic_inc_ulong_nv
atomic_inc_ushort
atomic_inc_ushort_nv
atomic_or_16
atomic_or_16_nv
atomic_or_32
atomic_or_32_nv
atomic_or_64
atomic_or_64_nv
atomic_or_8
atomic_or_8_nv
atomic_or_uchar
atomic_or_uchar_nv
atomic_or_uint
atomic_or_uint_nv
atomic_or_ulong
atomic_or_ulong_nv
atomic_or_ushort
atomic_or_ushort_nv
atomic_set_long_excl
atomic_swap_16
atomic_swap_32
atomic_swap_64
atomic_swap_8
atomic_swap_ptr
atomic_swap_uchar
atomic_swap_uint
atomic_swap_ulong
atomic_swap_ushort
attropen
auth_destroy
authdes_create
authdes_getucred
authdes_lock
authdes_seccreate
authnone_create
authsys_create
authsys_create_default
b32_decode
b32_encode
b64_decode
b64_encode
backtrace
backtrace_symbols
backtrace_symbols_fd
basename
bcmp
bcopy
bind
bind_textdomain_codeset
bindtextdomain
brk
bsd_signal
bsearch
btowc
bzero
c16rtomb
c32rtomb
call_once
calloc
callrpc
canonicalize_file_name
catclose
catgets
catopen
cconv
cconv_close
cconv_open
cconvctl
cfgetispeed
cfgetospeed
cfsetispeed
cfsetospeed
cftime
chdir
chkauthattr
chmod
chown
chroot
clearenv
clearerr
clnt_broadcast
clnt_call
clnt_control
clnt_create
clnt_create_timed
clnt_create_vers
clnt_create_vers_timed
clnt_destroy
clnt_dg_create
clnt_door_create
clnt_freeres
clnt_geterr
clnt_pcreateerror
clnt_perrno
clnt_perror
clnt_raw_create
clnt_spcreateerror
clnt_sperrno
clnt_sperror
clnt_tli_create
clnt_tp_create
clnt_tp_create_timed
clnt_vc_create
clntraw_create
clnttcp_create
clntudp_bufcreate
clntudp_create
clock
clock_getres
clock_gettime
clock_nanosleep
clock_settime
close
closedir
closefrom
closelog
cnd_broadcast
cnd_destroy
cnd_init
cnd_signal
cnd_timedwait
cnd_wait
cond_broadcast
cond_destroy
cond_init
cond_reltimedwait
cond_signal
cond_timedwait
cond_wait
confstr
connect
creat
crypt
crypt_genhash_impl
crypt_gensalt
crypt_gensalt_impl
csetcol
csetlen
ctermid
ctermid_r
ctime
ctime_r
cuserid
daemon
daylight
dbm_clearerr
dbm_close
dbm_delete
dbm_error
dbm_fetch
dbm_firstkey
dbm_nextkey
dbm_open
dbm_store
dbmclose
dbminit
dcgettext
dcngettext
decimal_to_double
decimal_to_extended
decimal_to_quadruple
decimal_to_single
delete
des_setparity
dgettext
dial
difftime
directio
dirfd
dirname
div
dl_iterate_phdr
dladdr
dladdr1
dlclose
dldump
dlerror
dlinfo
dlmopen
dlopen
dlsym
dngettext
doconfig
door_bind
door_call
door_create
door_cred
door_getparam
door_info
door_return
door_revoke
door_server_create
door_setparam
door_ucred
door_unbind
door_xcreate
double_to_decimal
dprintf
drand48
drand48_r
dup
dup2
dup3
duplocale
eaccess
econvert
ecvt
enable_extended_FILE_stdio
encrypt
endauthattr
endexecattr
endgrent
endhostent
endnetconfig
endnetent
endnetgrent
endnetpath
endprofattr
endprotoent
endpwent
endrpcent
endservent
endspent
enduserattr
endusershell
endutent
endutxent
environ
erand48
erand48_r
err
errno
errx
ether_aton
ether_hostton
ether_line
ether_ntoa
ether_ntohost
euccol
euclen
eucscol
euidaccess
execl
execle
execlp
execv
execve
execvex
execvp
execvpe
exit
extended_to_decimal
faccessat
facl
fattach
fchdir
fchmod
fchmodat
fchown
fchownat
fchroot
fclose
fcloseall
fcntl
fconvert
fcvt
fdatasync
fdetach
fdopen
fdopendir
fdwalk
feof
ferror
fetch
fexecve
fflush
ffs
ffsl
ffsll
fgetattr
fgetc
fgetgrent
fgetgrent_r
fgetpos
fgetpwent
fgetpwent_r
fgets
fgetspent
fgetspent_r
fgetuserattr
fgetwc
fgetws
file_to_decimal
fileno
finite
firstkey
flockfile
fls
flsl
flsll
fmemopen
fmtmsg
fnmatch
fopen
fork
fork1
forkall
forkallx
forkpty
forkx
fpathconf
fpclass
fpgetmask
fpgetround
fpgetsticky
fprintf
fpsetmask
fpsetround
fpsetsticky
fputc
fputs
fputwc
fputws
fread
frealpath
free
free_authattr
free_execattr
free_profattr
free_proflist
free_userattr
freeaddrinfo
freehostent
freeifaddrs
freeipsecalgent
freelocale
freenetconfigent
freopen
frexp
fscanf
fseek
fseeko
fsetattr
fsetpos
fstat
fstatat
fstatfs
fstatvfs
fsync
ftell
ftello
ftime
ftok
ftruncate
ftrylockfile
fts_children
fts_close
fts_get_clientptr
fts_get_stream
fts_open
fts_read
fts_set
fts_set_clientptr
ftw
func_to_decimal
funlockfile
futimens
futimesat
fwide
fwrite
fwprintf
fwscanf
gai_strerror
gconvert
gcvt
get_hrusec
get_myaddress
get_nprocs
get_nprocs_conf
get_nsec_fromepoch
get_sec_fromepoch
getaccess_times
getacct
getaddrinfo
getattrat
getauthattr
getauthnam
getc
getc_unlocked
getchar
getchar_unlocked
getcontext
getcpuid
getcwd
getdate
getdate_err
getdelim
getdents
getdtablesize
getegid
getentropy
getenv
geteuid
getexecattr
getexecname
getexecprof
getexecuser
getextmntent
getgid
getgrent
getgrent_r
getgrgid
getgrgid_r
getgrnam
getgrnam_r
getgrouplist
getgroups
gethomelgroup
gethostbyaddr
gethostbyaddr_r
gethostbyname
gethostbyname_r
gethostent
gethostent_r
gethostid
gethostname
gethrtime
gethrvtime
getifaddrs
getipnodebyaddr
getipnodebyname
getipsecalgbyname
getipsecalgbynum
getipsecprotobyname
getipsecprotobynum
getisax
getitimer
getline
getloadavg
getlogin
getlogin_r
getmntany
getmntent
getmsg
getnameinfo
getnetbyaddr
getnetbyaddr_r
getnetbyname
getnetbyname_r
getnetconfig
getnetconfigent
getnetent
getnetent_r
getnetgrent
getnetgrent_r
getnetname
getnetpath
getopt
getopt_clip
getopt_long
getopt_long_only
getpagesize
getpagesizes
getpass
getpassphrase
getpeername
getpeerucred
getpflags
getpgid
getpgrp
getpid
getpmsg
getppid
getppriv
getpriority
getprofattr
getprofnam
getprogname
getprojid
getprotobyname
getprotobyname_r
getprotobynumber
getprotobynumber_r
getprotoent
getprotoent_r
getpublickey
getpw
getpwent
getpwent_r
getpwnam
getpwnam_r
getpwuid
getpwuid_r
getrandom
getrctl
getrctlx
getrlimit
getrpcbyname
getrpcbyname_r
getrpcbynumber
getrpcbynumber_r
getrpcent
getrpcent_r
getrpcport
getrusage
gets
getsecretkey
getservbyname
getservbyname_r
getservbyport
getservbyport_r
getservent
getservent_r
getsid
getsockname
getsockopt
getspent
getspent_r
getspnam
getspnam_r
getsubopt
gettaskid
gettext
gettimeofday
gettxt
getuid
getuserattr
getuserattrnam
getuserattruid
getusernam
getusershell
getuseruid
getustack
getutent
getutid
getutline
getutmp
getutmpx
getutxent
getutxid
getutxline
getvfsany
getvfsent
getvfsfile
getvfsspec
getw
getwc
getwchar
getwd
getwidth
getws
getzoneid
getzoneidbyname
getzonenamebyid
glob
globfree
gmtime
gmtime_r
grantpt
gsignal
h_errno
hasmntopt
hcreate
hdestroy
host2netname
hsearch
htonl
htonll
htons
iconv
iconv_close
iconv_open
iconvctl
iconvstr
if_freenameindex
if_indextoname
if_nameindex
if_nametoindex
imaxabs
imaxdiv
in6addr_any
in6addr_loopback
index
inet_addr
inet_lnaof
inet_makeaddr
inet_netof
inet_network
inet_ntoa
inet_ntoa_r
inet_ntop
inet_pton
initgroups
initstate
innetgr
insque
ioctl
is_system_labeled
isaexec
isalnum
isalnum_l
isalpha
isalpha_l
isascii
isastream
isatty
isblank
isblank_l
iscntrl
iscntrl_l
isdigit
isdigit_l
isenglish
isgraph
isgraph_l
isideogram
islower
islower_l
isnan
isnand
isnanf
isnumber
isphonogram
isprint
isprint_l
ispunct
ispunct_l
issetugid
isspace
isspace_l
isspecial
isupper
isupper_l
iswalnum
iswalnum_l
iswalpha
iswalpha_l
iswblank
iswblank_l
iswcntrl
iswcntrl_l
iswctype
iswctype_l
iswdigit
iswdigit_l
iswgraph
iswgraph_l
iswlower
iswlower_l
iswprint
iswprint_l
iswpunct
iswpunct_l
iswspace
iswspace_l
iswupper
iswupper_l
iswxdigit
iswxdigit
isxdigit_l
jrand48
key_decryptsession
key_encryptsession
key_gendes
key_secretkey_is_set
key_setsecret
kill
killpg
kva_match
l64a
labs
ladd
lchown
lckpwdf
lcong48
lcong48_r
ldexp
ldiv
ldivide
lexp10
lfind
lfmt
link
linkat
lio_listio
listen
llabs
lldiv
llog10
llseek
lltostr
localeconv
localelist
localelistfree
localtime
localtime_r
lockf
logb
login_tty
lone
longjmp
lrand48
lrand48_r
lsearch
lseek
lshiftl
lstat
lsub
lten
lzero
madvise
makecontext
makeutx
malloc
malloc_usable_size
match_execattr
maxbno
mblen
mbrlen
mbrtoc16
mbrtoc32
mbrtowc
mbsinit
mbsrtowcs
mbstowcs
mbtowc
memalign
membar_consumer
membar_enter
membar_exit
membar_producer
memccpy
memchr
memcmp
memcntl
memcpy
meminfo
memmem
memmove
memset
mincore
mkdir
mkdirat
mkdtemp
mkfifo
mkfifoat
mknod
mknodat
mkstemp
mkstemps
mktemp
mktime
mlock
mlockall
mmap
mmapobj
modctl
modf
modff
modutx
monitor
mount
mprotect
mq_close
mq_getattr
mq_notify
mq_open
mq_receive
mq_reltimedreceive_np
mq_reltimedsend_np
mq_send
mq_setattr
mq_timedreceive
mq_timedsend
mq_unlink
mrand48
msgctl
msgget
msgids
msgrcv
msgsnap
msgsnd
msync
mtx_destroy
mtx_init
mtx_lock
mtx_timedlock
mtx_trylock
mtx_unlock
munlock
munlockall
munmap
mutex_consistent
mutex_destroy
mutex_init
mutex_lock
mutex_trylock
mutex_unlock
nanosleep
nc_perror
nc_sperror
netdir_free
netdir_getbyaddr
netdir_getbyname
netdir_options
netdir_perror
netdir_sperror
netname2host
netname2user
newlocale
nextafter
nextkey
nfs_getfh
nftw
ngettext
nice
nl_langinfo
nl_langinfo_l
nrand48
nss_default_finders
nss_delete
nss_endent
nss_getent
nss_search
nss_setent
ntohl
ntohll
ntohs
ntp_adjtime
ntp_gettime
open
open_memstream
open_wmemstream
openat
opendir
openlog
openprt
optarg
opterr
optind
optopt
optreset
p_online
pathconf
pause
pclose
pcsample
perror
pfmt
pipe
pipe2
plock
pmap_getmaps
pmap_getport
pmap_rmtcall
pmap_set
pmap_unset
poll
popen
port_alert
port_associate
port_create
port_dissociate
port_get
port_getn
port_send
port_sendn
posix_fadvise
posix_fallocate
posix_madvise
posix_memalign
posix_openpt
posix_spawn
posix_spawn_file_actions_addchdir_np
posix_spawn_file_actions_addclose
posix_spawn_file_actions_addclosefrom_np
posix_spawn_file_actions_adddup2
posix_spawn_file_actions_addopen
posix_spawn_file_actions_destroy
posix_spawn_file_actions_init
posix_spawnattr_destroy
posix_spawnattr_getflags
posix_spawnattr_getpgroup
posix_spawnattr_getschedparam
posix_spawnattr_getschedpolicy
posix_spawnattr_getsigdefault
posix_spawnattr_getsigignore_np
posix_spawnattr_getsigmask
posix_spawnattr_init
posix_spawnattr_setflags
posix_spawnattr_setpgroup
posix_spawnattr_setschedparam
posix_spawnattr_setschedpolicy
posix_spawnattr_setsigdefault
posix_spawnattr_setsigignore_np
posix_spawnattr_setsigmask
posix_spawnp
postwait_genkey
postwait_post
postwait_post_deferred
postwait_postn
ppoll
pread
printf
printstack
priocntl
priocntlset
priv_addset
priv_allocset
priv_basicset
priv_copyset
priv_delset
priv_emptyset
priv_fillset
priv_freeset
priv_getbyname
priv_getbynum
priv_getsetbyname
priv_getsetbynum
priv_gettext
priv_ineffect
priv_intersect
priv_inverse
priv_isemptyset
priv_isequalset
priv_isfullset
priv_ismember
priv_issubset
priv_set
priv_set_to_str
priv_str_to_set
priv_union
proc_thr_kill
proc_thr_sigqueue
proc_thr_sigqueue_wait
processor_affinity
processor_bind
processor_info
profil
pselect
pset_assign
pset_bind
pset_create
pset_destroy
pset_getattr
pset_getloadavg
pset_info
pset_list
pset_setattr
psiginfo
psignal
pthread_atfork
pthread_attr_destroy
pthread_attr_getdetachstate
pthread_attr_getguardsize
pthread_attr_getname_np
pthread_attr_getinheritsched
pthread_attr_getschedpolicy
pthread_attr_getstack
pthread_attr_getstackaddr
pthread_attr_getstacksize
pthread_attr_init
pthread_attr_setdetachstate
pthread_attr_setguardsize
pthread_attr_setinheritsched
pthread_attr_setname_np
pthread_attr_setschedparam
pthread_attr_setschedpolicy
pthread_attr_setscope
pthread_attr_setstack
pthread_attr_setstackaddr
pthread_attr_setstacksize
pthread_barrier_destroy
pthread_barrier_init
pthread_barrier_wait
pthread_barrierattr_destroy
pthread_barrierattr_getpshared
pthread_barrierattr_init
pthread_barrierattr_setpshared
pthread_cancel
pthread_cond_broadcast
pthread_cond_destroy
pthread_cond_init
pthread_cond_reltimedwait_np
pthread_cond_signal
pthread_cond_timedwait
pthread_cond_wait
pthread_condattr_destroy
pthread_condattr_getclock
pthread_condattr_getpshared
pthread_condattr_init
pthread_condattr_setclock
pthread_condattr_setpshared
pthread_create
pthread_detach
pthread_equal
pthread_exit
pthread_getattr_np
pthread_getconcurrency
pthread_getname_np
pthread_getschedparam
pthread_getspecific
pthread_join
pthread_key_create
pthread_key_create_once_np
pthread_key_delete
pthread_kill
pthread_mutex_consistent
pthread_mutex_destroy
pthread_mutex_getprioceiling
pthread_mutex_init
pthread_mutex_lock
pthread_mutex_reltimedlock_np
pthread_mutex_setprioceiling
pthread_mutex_timedlock
pthread_mutex_trylock
pthread_mutex_unlock
pthread_mutexattr_destroy
pthread_mutexattr_getprioceiling
pthread_mutexattr_getprotocol
pthread_mutexattr_getpshared
pthread_mutexattr_getrobust
pthread_mutexattr_gettype
pthread_mutexattr_init
pthread_mutexattr_setprioceiling
pthread_mutexattr_setprotocol
pthread_mutexattr_setpshared
pthread_mutexattr_setrobust
pthread_mutexattr_settype
pthread_once
pthread_rwlock_destroy
pthread_rwlock_init
pthread_rwlock_rdlock
pthread_rwlock_reltimedrdlock_np
pthread_rwlock_reltimedwrlock_np
pthread_rwlock_timedrdlock
pthread_rwlock_timedwrlock
pthread_rwlock_tryrdlock
pthread_rwlock_trywrlock
pthread_rwlock_unlock
pthread_rwlock_wrlock
pthread_rwlockattr_destroy
pthread_rwlockattr_getpshared
pthread_rwlockattr_gettype_np
pthread_rwlockattr_init
pthread_rwlockattr_setpshared
pthread_rwlockattr_settype_np
pthread_self
pthread_setcancelstate
pthread_setcanceltype
pthread_setconcurrency
pthread_setname_np
pthread_setschedparam
pthread_setschedprio
pthread_setspecific
pthread_sigmask
pthread_sigqueue
pthread_sigqueue_wait
pthread_spin_destroy
pthread_spin_init
pthread_spin_lock
pthread_spin_trylock
pthread_spin_unlock
pthread_testcancel
ptsname
putacct
putc
putc_unlocked
putchar
putchar_unlocked
putenv
putmsg
putpmsg
putpwent
puts
putspent
pututline
pututxline
putw
putwc
putwchar
putws
pwrite
qeconvert
qecvt
qfconvert
qfcvt
qgconvert
qgcvt
qsort
quadruple_to_decimal
quick_exit
raise
rand
rand_r
random
rbac_chkauth
rcmd
rcmd_af
rctl_walk
rctlblk_get_enforced_value
rctlblk_get_firing_time
rctlblk_get_global_action
rctlblk_get_global_flags
rctlblk_get_local_action
rctlblk_get_local_flags
rctlblk_get_privilege
rctlblk_get_recipient_pid
rctlblk_get_value
rctlblk_set_local_action
rctlblk_set_local_flags
rctlblk_set_privilege
rctlblk_set_recipient_pid
rctlblk_set_value
rctlblk_size
re_comp
re_exec
read
readdir
readdir_r
readlink
readlinkat
readv
realloc
reallocarray
realpath
reboot
recv
recvfrom
recvmmsg
recvmsg
reflink
reflinkat
regcmp
regcomp
regerror
regex
regexec
regfree
registerrpc
remove
remque
rename
renameat
resetmnttab
resolvepath
rewind
rewinddir
rexec
rexec_af
rindex
rmdir
rpc_broadcast
rpc_broadcast_exp
rpc_call
rpc_control
rpc_createerr
rpc_gss_get_error
rpc_gss_get_mech_info
rpc_gss_get_mechanisms
rpc_gss_get_principal_name
rpc_gss_get_versions
rpc_gss_getcred
rpc_gss_is_installed
rpc_gss_max_data_length
rpc_gss_mech_to_oid
rpc_gss_qop_to_num
rpc_gss_seccreate
rpc_gss_set_callback
rpc_gss_set_defaults
rpc_gss_set_svc_name
rpc_gss_svc_max_data_length
rpc_reg
rpcb_getaddr
rpcb_getmaps
rpcb_gettime
rpcb_rmtcall
rpcb_set
rpcb_unset
rresvport
rresvport_af
ruserok
rw_rdlock
rw_read_held
rw_tryrdlock
rw_trywrlock
rw_unlock
rw_write_held
rw_wrlock
rwlock_destroy
rwlock_init
sbrk
scalb
scandir
scanf
sched_get_priority_max
sched_get_priority_min
sched_getparam
sched_getscheduler
sched_rr_get_interval
sched_setparam
sched_setscheduler
sched_yield
schedctl_exit
schedctl_init
schedctl_lookup
schedctl_start
schedctl_stop
seconvert
secure_getenv
seed48
seed48_r
seekdir
select
sem_close
sem_destroy
sem_getvalue
sem_init
sem_open
sem_post
sem_reltimedwait_np
sem_timedwait
sem_trywait
sem_unlink
sem_wait
sema_destroy
sema_held
sema_init
sema_post
sema_trywait
sema_wait
semctl
semget
semids
semop
semtimedop
send
sendfile
sendfilev
sendmsg
sendmmsg
sendto
setattrat
setauthattr
setbuf
setbuffer
setcat
setcontext
setegid
setenv
seteuid
setexecattr
setgid
setgrent
setgroups
sethostent
sethostname
setitimer
setjmp
setkey
setlabel
setlinebuf
setlocale
setlogmask
setnetconfig
setnetent
setnetgrent
setnetpath
setpflags
setpgid
setpgrp
setppriv
setpriority
setprofattr
setprogname
setprotoent
setpwent
setrctl
setrctlx
setregid
setreuid
setrlimit
setrpcent
setservent
setsid
setsockopt
setspent
setstate
settaskid
settimeofday
setuid
setuserattr
setusershell
setustack
setutent
setutxent
setvbuf
sfconvert
sgconvert
shm_open
shm_unlink
shmadv
shmat
shmctl
shmdt
shmget
shmget_osm
shmids
shutdown
sig2str
sigaction
sigaddset
sigaltstack
sigdelset
sigemptyset
sigfillset
sigfpe
sighold
sigignore
siginterrupt
sigismember
siglongjmp
signal
sigpause
sigpending
sigprocmask
sigqueue
sigrelse
sigsend
sigsendset
sigset
sigsetjmp
sigstack
sigsuspend
sigtimedwait
sigwait
sigwaitinfo
single_to_decimal
sleep
smt_nano_pause
smt_pause
snprintf
sockatmark
socket
socketpair
sprintf
srand
srand48
srand48_r
srandom
sscanf
ssignal
stack_getbounds
stack_inbounds
stack_setbounds
stack_violation
stat
statfs
statvfs
stime
store
stpcpy
stpncpy
str2sig
strcasecmp
strcasecmp_l
strcasestr
strcat
strchr
strchrnul
strcmp
strcoll
strcoll_l
strcpy
strcspn
strdup
strdupa
strerror
strerror_l
strerror_r
strfmon
strfmon_l
strftime
strftime_l
string_to_decimal
strlcat
strlcpy
strlen
strncasecmp
strncasecmp_l
strncat
strncmp
strncpy
strndup
strndupa
strnlen
strnstr
strpbrk
strptime
strrchr
strsep
strsignal
strspn
strstr
strtod
strtof
strtoimax
strtok
strtok_r
strtol
strtold
strtoll
strtoul
strtoull
strtoumax
strtows
strxfrm
strxfrm_l
svc_add_input
svc_auth_reg
svc_control
svc_create
svc_destroy
svc_dg_create
svc_dg_enablecache
svc_done
svc_door_create
svc_exit
svc_fd_create
svc_fdset
svc_freeargs
svc_get_local_cred
svc_getargs
svc_getreq
svc_getreq_common
svc_getreq_poll
svc_getreqset
svc_getrpccaller
svc_max_pollfd
svc_pollfd
svc_raw_create
svc_reg
svc_register
svc_run
svc_sendreply
svc_tli_create
svc_tp_create
svc_unreg
svc_unregister
svc_vc_create
svcerr_auth
svcerr_decode
svcerr_noproc
svcerr_noprog
svcerr_progvers
svcerr_systemerr
svcerr_weakauth
svcfd_create
svcraw_create
svctcp_create
svcudp_bufcreate
svcudp_create
swab
swapcontext
swapctl
swprintf
swscanf
sx_enabled
symlink
symlinkat
sync
sync_instruction_memory
sysconf
sysfs
sysinfo
syslog
system
t_accept
t_alloc
t_bind
t_close
t_connect
t_errno
t_error
t_free
t_getinfo
t_getname
t_getstate
t_listen
t_look
t_nerr
t_open
t_optmgmt
t_rcv
t_rcvconnect
t_rcvdis
t_rcvrel
t_rcvudata
t_rcvuderr
t_snd
t_snddis
t_sndrel
t_sndudata
t_strerror
t_sync
t_unbind
taddr2uaddr
tcdrain
tcflow
tcflush
tcgetattr
tcgetpgrp
tcgetsid
tcsendbreak
tcsetattr
tcsetpgrp
tdelete
tdestroy
tell
telldir
tempnam
textdomain
tfind
thr_continue
thr_create
thr_exit
thr_getconcurrency
thr_getprio
thr_getspecific
thr_join
thr_keycreate
thr_keycreate_once
thr_kill
thr_main
thr_min_stack
thr_self
thr_setconcurrency
thr_setprio
thr_setspecific
thr_sigsetmask
thr_stksegment
thr_suspend
thr_yield
thrd_create
thrd_current
thrd_detach
thrd_equal
thrd_exit
thrd_join
thrd_sleep
thrd_yield
time
timegm
timelocal
timer_create
timer_delete
timer_getoverrun
timer_gettime
timer_settime
times
timespec_get
timespecadd
timespecclear
timespeccompare
timespecfix
timespecisset
timespecsub
timezone
timingsafe_bcmp
timingsafe_memcmp
tmpfile
tmpnam
tmpnam_r
toascii
tolower
tolower_l
toupper
toupper_l
towctrans
towctrans_l
towlower
towlower_l
towupper
towupper_l
truncate
tsearch
tss_create
tss_delete
tss_get
tss_set
ttyname
ttyname_r
ttyslot
twalk
tzname
tzset
u8_strcmp
u8_textprep_str
u8_validate
uaddr2taddr
uadmin
ualarm
uconv_u16tou32
uconv_u16tou8
uconv_u32tou16
uconv_u32tou8
uconv_u8tou16
uconv_u8tou32
ucred_free
ucred_get
ucred_getegid
ucred_geteuid
ucred_getgroups
ucred_getlabel
ucred_getpflags
ucred_getpid
ucred_getprivset
ucred_getprojid
ucred_getrgid
ucred_getruid
ucred_getsgid
ucred_getsuid
ucred_getzoneid
ucred_size
ulckpwdf
ulimit
ulltostr
umask
umount
umount2
uname
undial
ungetc
ungetwc
unlink
unlinkat
unlockpt
unordered
unsetenv
updwtmp
updwtmpx
uselocale
user2netname
usleep
ustat
utime
utimensat
utimes
utmpname
utmpxname
uucopy
valloc
vasprintf
verr
verrx
vfork
vforkx
vfprintf
vfscanf
vfwprintf
vfwscanf
vhangup
vlfmt
vpfmt
vprintf
vscanf
vsnprintf
vsprintf
vsscanf
vswprintf
vswscanf
vsyslog
vwarn
vwarnx
vwprintf
vwscanf
wait
wait3
wait4
waitid
waitpid
walkcontext
warn
warnx
watoll
wcpcpy
wcpncpy
wcrtomb
wcscasecmp
wcscasecmp_l
wcscat
wcschr
wcscmp
wcscoll_l
wcscoll
wcscpy
wcscspn
wcsdup
wcsftime
wcslen
wcsncasecmp
wcsncasecmp_l
wcsncat
wcsncmp
wcsncpy
wcsnlen
wcspbrk
wcsrchr
wcsrtombs
wcsnrtombs
wcsspn
wcsstr
wcstod
wcstof
wcstoimax
wcstok
wcstol
wcstold
wcstoll
wcstombs
wcstoul
wcstoull
wcstoumax
wcswcs
wcswidth
wcsxfrm
wcsxfrm_l
wctob
wctomb
wctrans
wctrans_l
wctype
wctype_l
wcwidth
wmemchr
wmemcmp
wmemcpy
wmemmove
wmemset
wordexp
wordfree
wprintf
wracct
write
writev
wscanf
wscasecmp
wscat
wschr
wscmp
wscol
wscoll
wscpy
wscspn
wsdup
wslen
wsncasecmp
wsncat
wsncmp
wsncpy
wspbrk
wsprintf
wsrchr
wsscanf
wsspn
wstod
wstok
wstol
wstoll
wstostr
wsxfrm
xdr_accepted_reply
xdr_array
xdr_authsys_parms
xdr_bool
xdr_bytes
xdr_callhdr
xdr_callmsg
xdr_char
xdr_destroy
xdr_double
xdr_enum
xdr_float
xdr_free
xdr_getpos
xdr_hyper
xdr_inline
xdr_int
xdr_int16_t
xdr_int32_t
xdr_int64_t
xdr_int8_t
xdr_long
xdr_longlong_t
xdr_opaque
xdr_opaque_auth
xdr_pointer
xdr_quadruple
xdr_reference
xdr_rejected_reply
xdr_replymsg
xdr_setpos
xdr_short
xdr_sizeof
xdr_string
xdr_u_char
xdr_u_hyper
xdr_u_int
xdr_u_long
xdr_u_longlong_t
xdr_u_short
xdr_uint16_t
xdr_uint32_t
xdr_uint64_t
xdr_uint8_t
xdr_union
xdr_vector
xdr_void
xdr_wrapstring
xdrmem_create
xdrrec_create
xdrrec_endofrecord
xdrrec_eof
xdrrec_readbytes
xdrrec_skiprecord
xdrstdio_create
xprt_register
xprt_unregister
yield
yp_all
yp_bind
yp_first
yp_get_default_domain
yp_master
yp_match
yp_next
yp_order
yp_unbind
yp_update
yperr_string
ypprot_err

The following interfaces are unique to the 32-bit version of this library:

__div64
__mul64
__posix_readdir_r
__rem64
__udiv64
__urem64
_bufendtab
_lastbuf
_s_fcntl
_sys_nsig
_xftw64
aio_cancel64
aio_error64
aio_fsync64
aio_read64
aio_return64
aio_suspend64
aio_waitn64
aio_write64
creat64
fgetpos64
fopen64
freopen64
fseeko64
fsetpos64
fstat64
fstatvfs64
ftello64
ftruncate64
ftw64
getdents64
getrlimit64
lio_listio64
lockf64
lseek64
lstat64
mkstemp64
mmap64
nftw64
open64
pread64
ptrace
pwrite64
readdir64
readdir64_r
s_fcntl
s_ioctl
select_large_fdset
sendfile64
sendfilev64
setrlimit64
stat64
statvfs64
sys_errlist
sys_nerr
tell64
tmpfile64
truncate64

The following interfaces are unique to the 32-bit SPARC version of this library:

.div
.mul
.rem
.stret1
.stret2
.stret4
.stret8
.udiv
.umul
.urem
_Q_add
_Q_cmp
_Q_cmpe
_Q_div
_Q_dtoq
_Q_feq
_Q_fge
_Q_fgt
_Q_fle
_Q_flt
_Q_fne
_Q_itoq
_Q_lltoq
_Q_mul
_Q_neg
_Q_qtod
_Q_qtoi
_Q_qtoll
_Q_qtos
_Q_qtou
_Q_qtoull
_Q_sqrt
_Q_stoq
_Q_sub
_Q_ulltoq
_Q_utoq
__dtoll
__dtou
__dtoull
__ftoll
__ftou
__ftoull
__umul64

The following interfaces are unique to the 32-bit x86 version of this library:

__fpstart
_fp_hw
_fpstart
_fxstat
_lxstat
_nuname
_thr_errno_addr
_xmknod
_xstat
nuname

The following interfaces are unique to the 64-bit SPARC version of this library:

_Qp_add
_Qp_cmp
_Qp_cmpe
_Qp_div
_Qp_dtoq
_Qp_feq
_Qp_fge
_Qp_fgt
_Qp_fle
_Qp_flt
_Qp_fne
_Qp_itoq
_Qp_mul
_Qp_neg
_Qp_qtod
_Qp_qtoi
_Qp_qtos
_Qp_qtoui
_Qp_qtoux
_Qp_qtox
_Qp_sqrt
_Qp_stoq
_Qp_sub
_Qp_uitoq
_Qp_uxtoq
_Qp_xtoq
__align_cpy_1
__align_cpy_16
__align_cpy_2
__align_cpy_4
__align_cpy_8
__dtoul
__ftoul
__sparc_utrap_install
adi_blksz
adi_clr_version
adi_get_enabled
adi_get_precise
adi_get_version
adi_memset
adi_set_enabled
adi_set_precise
adi_set_version
adi_version_max
adi_version_nbits

The new bound checking APIs. These are extensions of existing standard (without _s suffix) interfaces, which do additional bound checks.

asctime_s
bsearch_s
ctime_s
fopen_s
fprintf_s
freopen_s
fscanf_s
fwprintf_s
fwscanf_s
getenv_s
gets_s
gmtime_s
localtime_s
mbsrtowcs_s
mbstowcs_s
memcpy_s
memmove_s
memset_s
printf_s
qsort_s
scanf_s
snprintf_s
snwprintf_s
sprintf_s
sscanf_s
strcat_s
strcpy_s
strerror_s
strerrorlen_s
strncat_s
strncpy_s
strnlen_s
strtok_s
swprintf_s
swscanf_s
tmpfile_s
tmpnam_s
vfprintf_s
vfscanf_s
vfwprintf_s
vfwscanf_s
vprintf_s
vscanf_s
vsnprintf_s
vsnwprintf_s
vsprintf_s
vsscanf_s
vswprintf_s
vswscanf_s
vwprintf_s
vwscanf_s
wcrtomb_s
wcscat_s
wcscpy_s
wcsncat_s
wcsncpy_s
wcsnlen_s
wcsrtombs_s
wcstok_s
wcstombs_s
wctomb_s
wmemcpy_s
wmemmove_s
wprintf_s
wscanf_s

In addition there are three runtime-constraint handler functions:

  • abort_handler_s()

  • ignore_handler_s()

  • set_constraint_handler_s()

Files

/lib/libc.so.1

shared object

/lib/64/libc.so.1

64–bit shared object

/lib/c_synonyms.so.1

A compatibility library to provide access to obsolete libc synonym symbols

/lib/64/c_synonyms.so.1

A 64-bit compatibility library to provide access to obsolete libc synonym symbols

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/library
MT-Level
Safe

See Also

pvs(1), Intro(2), intro(3), attributes(7), lf64(7), standards(7)

Notes

The synonyms compatibility library, c_synonyms.so.1, provides a mechanism to support old applications and libraries that were mistakenly built using now-obsolete synonym symbols from libc.

Before the advent of direct binding (-B direct) libc provided many functions with two names. For example, getpwent() and _getpwent(). These two names referred to exactly the same function in libc. The leading-underscore symbol was intended to be used by system libraries in order to avoid conflicting with an application that might define its own version of getpwent () with completely different semantics. Standard-conforming applications may not define and use function names with leading underscores.

Oracle Solaris system libraries are now built with direct binding. This means that a system library that calls getpwent() will bind directly to the instance of getpwent() in libc, even if the application to which it is linked defines a different getpwent() for its own use. The application binds to its instance of getpwent() and there is no resulting conflict. The direct binding mechanism is equally available to libraries not delivered with Oracle Solaris.

As a result of this evolution, most of the leading-underscore synonym symbols have been removed from libc. This means that applications that call these now-obsolete function names will cease to work. They will typically draw the error:

$ ./application
ld.so.1: fatal: relocation error: symbol _getpwent:
referenced symbol not found
Killed

All of the old leading-underscore symbols have been copied to the synonyms compatibility library. This library simply redirects the calls to the non-underscore instances of the corresponding functions in libc. Use it as a pre-loaded object:

$ LD_PRELOAD=c_synonyms.so.1 ./application

The synonyms compatibility library is intended neither to enable the generation of applications that call the obsolete leading-underscore synonym functions, nor to endorse this particular programming practice.