1 LIBC(3LIB) Interface Libraries LIBC(3LIB) 2 3 4 5 NAME 6 libc - C library 7 8 DESCRIPTION 9 Functions in this library provide various facilities defined by System 10 V, ANSI C, POSIX, and so on. See standards(5). In addition, those 11 facilities previously defined in the internationalization and the wide- 12 character libraries are now defined in this library, as are the 13 facilities previously defined in the multithreading libraries, 14 libthread and libpthread. 15 16 INTERFACES 17 The shared object libc.so.1 provides the public interfaces defined 18 below. See Intro(3) for additional information on shared object 19 interfaces. 20 21 22 23 24 ____loc1 ___errno 25 __builtin_alloca __ctype 26 __fbufsize __flbf 27 __flt_rounds __fpending 28 __fpurge __freadable 29 __freading __fsetlocking 30 __fwritable __fwriting 31 __huge_val __iob 32 __loc1 __major 33 __makedev __mb_cur_max_l 34 __minor 35 __nsw_extended_action __nsw_freeconfig 36 __nsw_getconfig __posix_asctime_r 37 __posix_ctime_r __posix_getgrgid_r 38 __posix_getgrnam_r __posix_getlogin_r 39 __posix_getpwnam_r __posix_getpwuid_r 40 __posix_sigwait __posix_ttyname_r 41 __priocntl __priocntlset 42 __pthread_cleanup_pop __pthread_cleanup_push 43 __sysconf_xpg5 __unlockpt_xpg4 44 __xpg4 __xpg4_putmsg 45 __xpg4_putpmsg _Exit 46 _altzone _assert 47 _cleanup _ctype 48 _daylight _environ 49 _exit _exithandle 50 _filbuf _flsbuf 51 _flushlbf _getdate_err 52 _getdate_err_addr _iob 53 _isnan _isnand 54 _lwp_cond_broadcast _lwp_cond_reltimedwait 55 _lwp_cond_signal _lwp_cond_timedwait 56 _lwp_cond_wait _lwp_continue 57 _lwp_info _lwp_kill 58 _lwp_mutex_lock _lwp_mutex_trylock 59 _lwp_mutex_unlock _lwp_self 60 _lwp_sema_init _lwp_sema_post 61 _lwp_sema_trywait _lwp_sema_wait 62 _lwp_suspend _lwp_suspend2 63 _modf _nextafter 64 _nsc_trydoorcall _nss_XbyY_buf_alloc 65 _nss_XbyY_buf_free _nss_netdb_aliases 66 _numeric _scalb 67 _sibuf _sobuf 68 _stack_grow _sys_buslist 69 _sys_cldlist _sys_fpelist 70 _sys_illlist _sys_segvlist 71 _sys_siginfolistp _sys_siglist 72 _sys_siglistn _sys_siglistp 73 _sys_traplist _timezone 74 _tolower _toupper 75 _tzname _xftw 76 a64l 77 abort abs 78 access acct 79 acl addrtosymstr 80 addsev addseverity 81 adjtime aio_cancel 82 aio_error aio_fsync 83 aio_read aio_return 84 aio_suspend aio_waitn 85 aio_write aiocancel 86 aioread aiowait 87 aiowrite alarm 88 alphasort altzone 89 ascftime asctime 90 asctime_r asprintf 91 atexit atof 92 atoi atol 93 atoll atomic_add_16 94 atomic_add_16_nv atomic_add_32 95 atomic_add_32_nv atomic_add_64 96 atomic_add_64_nv atomic_add_8 97 atomic_add_8_nv atomic_add_char 98 atomic_add_char_nv atomic_add_int 99 atomic_add_int_nv atomic_add_long 100 atomic_add_long_nv atomic_add_ptr 101 atomic_add_ptr_nv atomic_add_short 102 atomic_add_short_nv atomic_and_16 103 atomic_and_16_nv atomic_and_32 104 atomic_and_32_nv atomic_and_64 105 atomic_and_64_nv atomic_and_8 106 atomic_and_8_nv atomic_and_uchar 107 atomic_and_uchar_nv atomic_and_uint 108 atomic_and_uint_nv atomic_and_ulong 109 atomic_and_ulong_nv atomic_and_ushort 110 atomic_and_ushort_nv atomic_cas_16 111 atomic_cas_32 atomic_cas_64 112 atomic_cas_8 atomic_cas_ptr 113 atomic_cas_uchar atomic_cas_uint 114 atomic_cas_ulong atomic_cas_ushort 115 atomic_clear_long_excl atomic_dec_16 116 atomic_dec_16_nv atomic_dec_32 117 atomic_dec_32_nv atomic_dec_64 118 atomic_dec_64_nv atomic_dec_8 119 atomic_dec_8_nv atomic_dec_ptr 120 atomic_dec_ptr_nv atomic_dec_uchar 121 atomic_dec_uchar_nv atomic_dec_uint 122 atomic_dec_uint_nv atomic_dec_ulong 123 atomic_dec_ulong_nv atomic_dec_ushort 124 atomic_dec_ushort_nv atomic_inc_16 125 atomic_inc_16_nv atomic_inc_32 126 atomic_inc_32_nv atomic_inc_64 127 atomic_inc_64_nv atomic_inc_8 128 atomic_inc_8_nv atomic_inc_ptr 129 atomic_inc_ptr_nv atomic_inc_uchar 130 atomic_inc_uchar_nv atomic_inc_uint 131 atomic_inc_uint_nv atomic_inc_ulong 132 atomic_inc_ulong_nv atomic_inc_ushort 133 atomic_inc_ushort_nv atomic_or_16 134 atomic_or_16_nv atomic_or_32 135 atomic_or_32_nv atomic_or_64 136 atomic_or_64_nv atomic_or_8 137 atomic_or_8_nv atomic_or_uchar 138 atomic_or_uchar_nv atomic_or_uint 139 atomic_or_uint_nv atomic_or_ulong 140 atomic_or_ulong_nv atomic_or_ushort 141 atomic_or_ushort_nv atomic_set_long_excl 142 atomic_swap_16 atomic_swap_32 143 atomic_swap_64 atomic_swap_8 144 atomic_swap_ptr atomic_swap_uchar 145 atomic_swap_uint atomic_swap_ulong 146 atomic_swap_ushort attropen 147 backtrace backtrace_symbols 148 backtrace_symbols_fd basename 149 bcmp bcopy 150 bindtextdomain bind_textdomain_codeset 151 brk bsd_signal 152 bsearch btowc 153 btowc_l bzero 154 calloc canonicalize_file_name 155 catclose catgets 156 catopen cfgetispeed 157 cfgetospeed cfsetispeed 158 cfsetospeed cftime 159 chdir chmod 160 chown chroot 161 clearerr clearenv 162 clock clock_getres 163 clock_gettime clock_nanosleep 164 clock_settime close 165 closedir closefrom 166 closelog cond_broadcast 167 cond_destroy cond_init 168 cond_reltimedwait cond_signal 169 cond_timedwait cond_wait 170 confstr creat 171 crypt crypt_genhash_impl 172 crypt_gensalt crypt_gensalt_impl 173 csetcol csetlen 174 ctermid ctermid_r 175 ctime ctime_r 176 cuserid daemon 177 daylight dbm_clearerr 178 dbm_close dbm_delete 179 dbm_error dbm_fetch 180 dbm_firstkey dbm_nextkey 181 dbm_open dbm_store 182 dcgettext dcngettext 183 decimal_to_double decimal_to_extended 184 decimal_to_quadruple decimal_to_single 185 dgettext difftime 186 directio dirfd 187 dirname div 188 dladdr dladdr1 189 dlclose dldump 190 dlerror dlinfo 191 dlmopen dlopen 192 dlsym dngettext 193 door_bind door_call 194 door_create door_cred 195 door_getparam door_info 196 door_return door_revoke 197 door_server_create door_setparam 198 door_ucred door_unbind 199 double_to_decimal drand48 200 dup dup2 201 duplocale econvert 202 ecvt enable_extended_FILE_stdio 203 encrypt endgrent 204 endnetgrent endpwent 205 endspent endusershell 206 endutent endutxent 207 environ erand48 208 err errno 209 errx euccol 210 euclen eucscol 211 execl execle 212 execlp execv 213 execve execvp 214 exit extended_to_decimal 215 faccessat facl 216 fattach fchdir 217 fchmod fchmodat 218 fchown fchownat 219 fchroot fclose 220 fcloseall fcntl 221 fconvert fcvt 222 fdatasync fdetach 223 fdopen fdopendir 224 fdwalk feof 225 ferror fflush 226 ffs ffsl 227 ffsll fls 228 flsl flsll 229 fgetattr fgetc 230 fgetgrent fgetgrent_r 231 fgetpos fgetpwent 232 fgetpwent_r fgets 233 fgetspent fgetspent_r 234 fgetwc fgetwc_l 235 fgetws file_to_decimal 236 fileno finite 237 flockfile fmtmsg 238 fnmatch fopen 239 fork fork1 240 forkall forkallx 241 forkx fpathconf 242 fpclass fpgetmask 243 fpgetround fpgetsticky 244 fprintf fpsetmask 245 fpsetround fpsetsticky 246 fputc fputs 247 fputwc fputws 248 fread free 249 freelocale freopen 250 frexp fscanf 251 fseek fseeko 252 fsetattr fsetpos 253 fstat fstatat 254 fstatfs fstatvfs 255 fsync ftell 256 ftello ftime 257 ftok ftruncate 258 ftrylockfile ftw 259 func_to_decimal funlockfile 260 futimens futimesat 261 fwide fwprintf 262 fwrite fwscanf 263 gconvert gcvt 264 getacct getattrat 265 getc getc_unlocked 266 getchar getchar_unlocked 267 getcontext getcpuid 268 getcwd getdate 269 getdate_err getdents 270 getdtablesize getegid 271 getenv geteuid 272 getexecname getextmntent 273 getgid getgrent 274 getgrent_r getgrgid 275 getgrgid_r getgrnam 276 getgrnam_r getgroups 277 gethomelgroup gethostid 278 gethostname gethrtime 279 gethrvtime getisax 280 getitimer getloadavg 281 getlogin getlogin_r 282 getmntany getmntent 283 getmsg get_nprocs 284 get_nprocs_conf getnetgrent 285 getnetgrent_r getopt 286 getopt_clip getopt_long 287 getopt_long_only getpagesize 288 getpagesizes getpass 289 getpassphrase getpeerucred 290 getpflags getpgid 291 getpgrp getpid 292 getpmsg getppid 293 getppriv getpriority 294 getprogname getprojid 295 getpw getpwent 296 getpwent_r getpwnam 297 getpwnam_r getpwuid 298 getpwuid_r getrctl 299 getrlimit getrusage 300 gets getsid 301 getspent getspent_r 302 getspnam getspnam_r 303 getsubopt gettaskid 304 gettext gettimeofday 305 gettxt getuid 306 getusershell getustack 307 getutent getutid 308 getutline getutmp 309 getutmpx getutxent 310 getutxid getutxline 311 getvfsany getvfsent 312 getvfsfile getvfsspec 313 getw getwc 314 getwc_l getwchar 315 getwchar_l getwd 316 getwidth getws 317 getzoneid getzoneidbyname 318 getzonenamebyid glob 319 globfree gmtime 320 gmtime_r grantpt 321 gsignal hasmntopt 322 hcreate hdestroy 323 hsearch iconv 324 iconv_close iconv_open 325 imaxabs imaxdiv 326 index initgroups 327 initstate innetgr 328 insque ioctl 329 is_system_labeled isaexec 330 isalnum isalnum_l 331 isalpha isalpha_l 332 isascii isastream 333 isatty isblank 334 isblank_l iscntrl 335 iscntrl_l isdigit 336 isdigit_l isenglish 337 isgraph isgraph_l 338 isideogram islower 339 islower_l isnan 340 isnand isnanf 341 isnumber isphonogram 342 isprint isprint_l 343 ispunct ispunct_l 344 issetugid isspace 345 isspace_l isspecial 346 isupper isupper_l 347 iswalnum iswalnum_l 348 iswalpha iswalpha_l 349 iswblank iswblank_l 350 iswcntrl iswcntrl_l 351 iswctype iswctype_l 352 iswdigit iswdigit_l 353 iswideogram iswideogram_l 354 iswgraph iswgraph_l 355 iswhexnumber iswhexnumber_l 356 iswlower iswlower_l 357 iswnumber iswnumber_l 358 iswphonogram iswphonogram_l 359 iswprint iswprint_l 360 iswpunct iswpunct_l 361 iswspace iswspace_l 362 iswspecial iswspecial_l 363 iswupper iswupper_l 364 iswxdigit iswxdigit_l 365 isxdigit isxdigit_l 366 jrand48 kill 367 killpg l64a 368 labs ladd 369 lchown lckpwdf 370 lcong48 ldexp 371 ldivide lexp10 372 lfind lfmt 373 link linkat 374 lio_listio llabs 375 lldiv llog10 376 llseek lltostr 377 localeconv localtime 378 localtime_r lockf 379 logb lone 380 longjmp lrand48 381 lsearch lseek 382 lshiftl lstat 383 lsub lten 384 lzero madvise 385 makecontext makeutx 386 malloc mblen 387 mblen_l mbrlen 388 mbrlen_l mbrtowc 389 mbrtowc_l mbsinit 390 mbsinit_l mbsnrtowcs 391 mbsnrtowcs_l mbsrtowcs 392 mbsrtowcs_l mbstowcs 393 mbstowcs_l mbtowc 394 mbtowc_l memalign 395 membar_consumer membar_enter 396 membar_exit membar_producer 397 memccpy memchr 398 memcmp memcntl 399 memcpy meminfo 400 memmem memmove 401 memset mincore 402 mkdir mkdirat 403 mkfifo mkfifoat 404 mknod mknodat 405 mkstemp mktemp 406 mktime mlock 407 mlockall mmap 408 mmapobj modctl 409 modf modff 410 modutx monitor 411 mount mprotect 412 mq_close mq_getattr 413 mq_notify mq_open 414 mq_receive mq_reltimedreceive_np 415 mq_reltimedsend_np mq_send 416 mq_setattr mq_timedreceive 417 mq_timedsend mq_unlink 418 mrand48 msgctl 419 msgget msgids 420 msgrcv msgsnap 421 msgsnd msync 422 munlock munlockall 423 munmap mutex_consistent 424 mutex_destroy mutex_init 425 mutex_lock mutex_trylock 426 mutex_unlock nanosleep 427 nextafter newlocale 428 nfs_getfh nftw 429 ngettext nice 430 nl_langinfo nl_langinfo_l 431 nrand48 nss_default_finders 432 nss_delete nss_endent 433 nss_getent nss_search 434 nss_setent ntp_adjtime 435 ntp_gettime open 436 openat opendir 437 openlog optarg 438 opterr optind 439 optopt p_online 440 pathconf pause 441 pclose pcsample 442 perror pfmt 443 pipe plock 444 poll popen 445 port_alert port_associate 446 port_create port_dissociate 447 port_get port_getn 448 port_send port_sendn 449 posix_fadvise posix_fallocate 450 posix_madvise posix_memalign 451 posix_openpt posix_spawn 452 posix_spawn_file_actions_addclose posix_spawn_file_actions_addclosefrom_np 453 posix_spawn_file_actions_adddup2 posix_spawn_file_actions_addopen 454 posix_spawn_file_actions_destroy posix_spawn_file_actions_init 455 posix_spawn_pipe_np posix_spawnattr_destroy 456 posix_spawnattr_getflags posix_spawnattr_getpgroup 457 posix_spawnattr_getschedparam posix_spawnattr_getschedpolicy 458 posix_spawnattr_getsigdefault posix_spawnattr_getsigignore_np 459 posix_spawnattr_getsigmask posix_spawnattr_init 460 posix_spawnattr_setflags posix_spawnattr_setpgroup 461 posix_spawnattr_setschedparam posix_spawnattr_setschedpolicy 462 posix_spawnattr_setsigdefault posix_spawnattr_setsigignore_np 463 posix_spawnattr_setsigmask posix_spawnp 464 pread preadv 465 printf printstack 466 priocntl priocntlset 467 priv_addset priv_allocset 468 priv_copyset priv_delset 469 priv_emptyset priv_fillset 470 priv_freeset priv_getbyname 471 priv_getbynum priv_getsetbyname 472 priv_getsetbynum priv_gettext 473 priv_ineffect priv_intersect 474 priv_inverse priv_isemptyset 475 priv_isequalset priv_isfullset 476 priv_ismember priv_issubset 477 priv_set priv_set_to_str 478 priv_str_to_set priv_union 479 processor_bind processor_info 480 profil pselect 481 pset_assign pset_bind 482 pset_create pset_destroy 483 pset_getattr pset_getloadavg 484 pset_info pset_list 485 pset_setattr psiginfo 486 psignal pthread_atfork 487 pthread_attr_destroy pthread_attr_get_np 488 pthread_attr_getdetachstate pthread_attr_getguardsize 489 pthread_attr_getinheritsched pthread_attr_getschedparam 490 pthread_attr_getschedpolicy pthread_attr_getscope 491 pthread_attr_getstack pthread_attr_getstackaddr 492 pthread_attr_getstacksize pthread_attr_init 493 pthread_attr_setdetachstate pthread_attr_setguardsize 494 pthread_attr_setinheritsched pthread_attr_setschedparam 495 pthread_attr_setschedpolicy pthread_attr_setscope 496 pthread_attr_setstack pthread_attr_setstackaddr 497 pthread_attr_setstacksize pthread_barrier_destroy 498 pthread_barrier_init pthread_barrier_wait 499 pthread_barrierattr_destroy pthread_barrierattr_getpshared 500 pthread_barrierattr_init pthread_barrierattr_setpshared 501 pthread_cancel pthread_cond_broadcast 502 pthread_cond_destroy pthread_cond_init 503 pthread_cond_reltimedwait_np pthread_cond_signal 504 pthread_cond_timedwait pthread_cond_wait 505 pthread_condattr_destroy pthread_condattr_getclock 506 pthread_condattr_getpshared pthread_condattr_init 507 pthread_condattr_setclock pthread_condattr_setpshared 508 pthread_create pthread_detach 509 pthread_equal pthread_exit 510 pthread_getconcurrency pthread_getschedparam 511 pthread_getspecific pthread_join 512 pthread_key_create pthread_key_create_once_np 513 pthread_key_delete pthread_kill 514 pthread_mutex_consistent pthread_mutex_destroy 515 pthread_mutex_getprioceiling pthread_mutex_init 516 pthread_mutex_lock pthread_mutex_reltimedlock_np 517 pthread_mutex_setprioceiling pthread_mutex_timedlock 518 pthread_mutex_trylock pthread_mutex_unlock 519 pthread_mutexattr_destroy pthread_mutexattr_getprioceiling 520 pthread_mutexattr_getprotocol pthread_mutexattr_getpshared 521 pthread_mutexattr_getrobust pthread_mutexattr_gettype 522 pthread_mutexattr_init pthread_mutexattr_setprioceiling 523 pthread_mutexattr_setprotocol pthread_mutexattr_setpshared 524 pthread_mutexattr_setrobust pthread_mutexattr_settype 525 pthread_once pthread_rwlock_destroy 526 pthread_rwlock_init pthread_rwlock_rdlock 527 pthread_rwlock_reltimedrdlock_np pthread_rwlock_reltimedwrlock_np 528 pthread_rwlock_timedrdlock pthread_rwlock_timedwrlock 529 pthread_rwlock_tryrdlock pthread_rwlock_trywrlock 530 pthread_rwlock_unlock pthread_rwlock_wrlock 531 pthread_rwlockattr_destroy pthread_rwlockattr_getpshared 532 pthread_rwlockattr_init pthread_rwlockattr_setpshared 533 pthread_self pthread_setcancelstate 534 pthread_setcanceltype pthread_setconcurrency 535 pthread_setspecific pthread_sigmask 536 pthread_setschedparam pthread_setschedprio 537 pthread_spin_destroy pthread_spin_init 538 pthread_spin_lock pthread_spin_trylock 539 pthread_spin_unlock pthread_testcancel 540 ptsname putacct 541 putc putc_unlocked 542 putchar putchar_unlocked 543 putenv putmsg 544 putpmsg putpwent 545 puts putspent 546 pututline pututxline 547 putw putwc 548 putwchar putws 549 pwrite pwritev 550 qeconvert qecvt 551 qfconvert qfcvt 552 qgconvert qgcvt 553 qsort quadruple_to_decimal 554 raise rand 555 rand_r random 556 rctl_walk rctlblk_get_enforced_value 557 rctlblk_get_firing_time rctlblk_get_global_action 558 rctlblk_get_global_flags rctlblk_get_local_action 559 rctlblk_get_local_flags rctlblk_get_privilege 560 rctlblk_get_recipient_pid rctlblk_get_value 561 rctlblk_set_local_action rctlblk_set_local_flags 562 rctlblk_set_privilege rctlblk_set_recipient_pid 563 rctlblk_set_value rctlblk_size 564 re_comp re_exec 565 read readdir 566 readdir_r readlink 567 readlinkat readv 568 realloc realpath 569 reboot regcmp 570 regcomp regerror 571 regex regexec 572 regfree remove 573 remque rename 574 renameat resetmnttab 575 resolvepath rewind 576 rewinddir rindex 577 rmdir rw_rdlock 578 rw_read_held rw_tryrdlock 579 rw_trywrlock rw_unlock 580 rw_write_held rw_wrlock 581 rwlock_destroy rwlock_init 582 sbrk scalb 583 scandir scanf 584 sched_get_priority_max sched_get_priority_min 585 sched_getparam sched_getscheduler 586 sched_rr_get_interval sched_setparam 587 sched_setscheduler sched_yield 588 schedctl_exit schedctl_init 589 schedctl_lookup schedctl_start 590 schedctl_stop seconvert 591 seed48 seekdir 592 select sem_close 593 sem_destroy sem_getvalue 594 sem_init sem_open 595 sem_post sem_reltimedwait_np 596 sem_timedwait sem_trywait 597 sem_unlink sem_wait 598 sema_destroy sema_held 599 sema_init sema_post 600 sema_trywait sema_wait 601 semctl semget 602 semids semop 603 semtimedop setattrat 604 setbuf setbuffer 605 setcat setcontext 606 setegid setenv 607 seteuid setgid 608 setgrent setgroups 609 sethostname setitimer 610 setjmp setkey 611 setlabel setlinebuf 612 setlocale setlogmask 613 setnetgrent setpflags 614 setpgid setpgrp 615 setppriv setpriority 616 setprogname setpwent 617 setrctl setregid 618 setreuid setrlimit 619 setsid setspent 620 setstate settaskid 621 settimeofday setuid 622 setusershell setustack 623 setutent setutxent 624 setvbuf sfconvert 625 sgconvert shm_open 626 shm_unlink shmat 627 shmctl shmdt 628 shmget shmids 629 sig2str sigaction 630 sigaddset sigaltstack 631 sigdelset sigemptyset 632 sigfillset sigfpe 633 sighold sigignore 634 siginterrupt sigismember 635 siglongjmp signal 636 sigpause sigpending 637 sigprocmask sigqueue 638 sigrelse sigsend 639 sigsendset sigset 640 sigsetjmp sigstack 641 sigsuspend sigtimedwait 642 sigwait sigwaitinfo 643 single_to_decimal sleep 644 smt_pause snprintf 645 sprintf srand 646 srand48 srandom 647 sscanf ssignal 648 stack_getbounds stack_inbounds 649 stack_setbounds stack_violation 650 stat statfs 651 statvfs stime 652 str2sig strcasecmp 653 strcasecmp_l strcat 654 strchr strcmp 655 strcoll strcpy 656 strcspn strdup 657 strerror strerror_l 658 strerror_r strfmon 659 strfmon_l strftime 660 strftime_l string_to_decimal 661 strlcat strlcpy 662 strlen strncasecmp 663 strncasecmp_l strncat 664 strncmp strncpy 665 strnstr strpbrk 666 strptime strptime_l 667 strrchr strsep 668 strsignal strspn 669 strstr strtod 670 strtof strtoimax 671 strtok strtok_r 672 strtol strtold 673 strtoll strtoul 674 strtoull strtoumax 675 strtows strxfrm 676 swab swapcontext 677 swapctl swprintf 678 swscanf symlink 679 symlinkat sync 680 sync_instruction_memory sysconf 681 sysfs sysinfo 682 syslog system 683 tcdrain tcflow 684 tcflush tcgetattr 685 tcgetpgrp tcgetsid 686 tcsendbreak tcsetattr 687 tcsetpgrp tdelete 688 tell telldir 689 tempnam textdomain 690 tfind thr_continue 691 thr_create thr_exit 692 thr_getconcurrency thr_getprio 693 thr_getspecific thr_join 694 thr_keycreate thr_keycreate_once 695 thr_kill thr_main 696 thr_min_stack thr_self 697 thr_setconcurrency thr_setprio 698 thr_setspecific thr_sigsetmask 699 thr_stksegment thr_suspend 700 thr_yield time 701 timer_create timer_delete 702 timer_getoverrun timer_gettime 703 timer_settime times 704 timezone tmpfile 705 tmpnam tmpnam_r 706 toascii tolower 707 tolower_l toupper 708 toupper_l towctrans 709 towctrans_l towlower 710 towlower_l towupper 711 towupper_l truncate 712 tsearch ttyname 713 ttyname_r ttyslot 714 twalk tzname 715 tzset u8_strcmp 716 u8_textprep_str u8_validate 717 uadmin ualarm 718 uconv_u16tou32 uconv_u16tou8 719 uconv_u32tou16 uconv_u32tou8 720 uconv_u8tou16 uconv_u8tou32 721 ucred_free ucred_get 722 ucred_getegid ucred_geteuid 723 ucred_getgroups ucred_getpflags 724 ucred_getpid ucred_getprivset 725 ucred_getprojid ucred_getrgid 726 ucred_getruid ucred_getsgid 727 ucred_getsuid ucred_getzoneid 728 ucred_size ulckpwdf 729 ulimit ulltostr 730 umask umount 731 umount2 uname 732 ungetc ungetwc 733 unlink unlinkat 734 unlockpt unordered 735 unsetenv updwtmp 736 updwtmpx uselocale 737 usleep ustat 738 utime utimensat 739 utimes utmpname 740 utmpxname uucopy 741 valloc vasprintf 742 verr verrx 743 vfork vforkx 744 vfprintf vfscanf 745 vfwprintf vfwscanf 746 vhangup vlfmt 747 vpfmt vprintf 748 vscanf vsnprintf 749 vsprintf vsscanf 750 vswprintf vswscanf 751 vsyslog vwarn 752 vwarnx vwprintf 753 vwscanf wait 754 wait3 wait4 755 waitid waitpid 756 walkcontext warn 757 warnx watoll 758 wcpcpy wcpncpy 759 wcrtomb wcrtomb_l 760 wcscasecmp wcscasecmp_l 761 wcscat wcschr 762 wcscmp wcscoll 763 wcscoll_l wcscpy 764 wcscspn wcsdup 765 wcsftime wcslen 766 wcsncat wcsncasecmp 767 wcsncasecmp_l wcsncmp 768 wcsncpy wcsnrtombs 769 wcsnrtombs_l wcspbrk 770 wcsrchr wcsrtombs 771 wcsrtombs_l wcsspn 772 wcsstr wcstod 773 wcstof wcstoimax 774 wcstok wcstol 775 wcstold wcstoll 776 wcstombs wctombs_l 777 wcstoul wcstoull 778 wcstoumax wcswcs 779 wcswidth wcswidth_l 780 wcsxfrm wcsxfrm_l 781 wctob wctob_l 782 wctomb wctomb_l 783 wctrans wctrans_l 784 wctype wctype_l 785 wcwidth wcwidth_l 786 wmemchr wmemcmp 787 wmemcpy wmemmove 788 wmemset wordexp 789 wordfree wprintf 790 wracct write 791 writev wscanf 792 wscasecmp wscat 793 wschr wscmp 794 wscol wscoll 795 wscpy wscspn 796 wsdup wslen 797 wsncasecmp wsncat 798 wsncmp wsncpy 799 wspbrk wsprintf 800 wsrchr wsscanf 801 wsspn wstod 802 wstok wstol 803 wstoll wstostr 804 wsxfrm yield 805 806 807 808 The following interfaces are unique to the 32-bit version of this 809 library: 810 811 812 813 814 __div64 __mul64 815 __posix_readdir_r __rem64 816 __udiv64 __urem64 817 _bufendtab _lastbuf 818 _s_fcntl _sys_nsig 819 _xftw64 aio_cancel64 820 aio_error64 aio_fsync64 821 aio_read64 aio_return64 822 aio_suspend64 aio_waitn64 823 aio_write64 creat64 824 fgetpos64 fopen64 825 freopen64 fseeko64 826 fsetpos64 fstat64 827 fstatvfs64 ftello64 828 ftruncate64 ftw64 829 getdents64 getrlimit64 830 lio_listio64 lockf64 831 lseek64 lstat64 832 mkstemp64 mmap64 833 nftw64 open64 834 pread64 preadv64 835 ptrace pwrite64 836 pwritev64 readdir64 837 readdir64_r s_fcntl 838 s_ioctl select_large_fdset 839 setrlimit64 stat64 840 statvfs64 sys_errlist 841 sys_nerr tell64 842 tmpfile64 truncate64 843 844 845 846 The following interfaces are unique to the 32-bit SPARC version of this 847 library: 848 849 850 851 852 .div .mul 853 .rem .stret1 854 .stret2 .stret4 855 .stret8 .udiv 856 .umul .urem 857 _Q_add _Q_cmp 858 _Q_cmpe _Q_div 859 _Q_dtoq _Q_feq 860 _Q_fge _Q_fgt 861 _Q_fle _Q_flt 862 _Q_fne _Q_itoq 863 _Q_lltoq _Q_mul 864 _Q_neg _Q_qtod 865 _Q_qtoi _Q_qtoll 866 _Q_qtos _Q_qtou 867 _Q_qtoull _Q_sqrt 868 _Q_stoq _Q_sub 869 _Q_ulltoq _Q_utoq 870 __dtoll __dtou 871 __dtoull __ftoll 872 __ftou __ftoull 873 __umul64 874 875 876 877 The following interfaces are unique to the 32-bit x86 version of this 878 library: 879 880 881 882 883 __fpstart _fp_hw 884 _fpstart _fxstat 885 _lxstat _nuname 886 _thr_errno_addr _xmknod 887 _xstat nuname 888 889 890 891 The following interfaces are unique to the 64-bit SPARC version of this 892 library: 893 894 895 896 897 _Qp_add _Qp_cmp 898 _Qp_cmpe _Qp_div 899 _Qp_dtoq _Qp_feq 900 _Qp_fge _Qp_fgt 901 _Qp_fle _Qp_flt 902 _Qp_fne _Qp_itoq 903 _Qp_mul _Qp_neg 904 _Qp_qtod _Qp_qtoi 905 _Qp_qtos _Qp_qtoui 906 _Qp_qtoux _Qp_qtox 907 _Qp_sqrt _Qp_stoq 908 _Qp_sub _Qp_uitoq 909 _Qp_uxtoq _Qp_xtoq 910 __align_cpy_1 __align_cpy_16 911 __align_cpy_2 __align_cpy_4 912 __align_cpy_8 __dtoul 913 __ftoul __sparc_utrap_install 914 915 916 FILES 917 /lib/libc.so.1 918 shared object 919 920 921 /lib/64/libc.so.1 922 64-bit shared object 923 924 925 /lib/c_synonyms.so.1 926 A compatibility library to provide access to 927 obsolete libc synonym symbols 928 929 930 /lib/64/c_synonyms.so.1 931 A 64-bit compatibility library to provide 932 access to obsolete libc synonym symbols 933 934 935 ATTRIBUTES 936 See attributes(5) for descriptions of the following attributes: 937 938 939 940 941 +---------------+-----------------+ 942 |ATTRIBUTE TYPE | ATTRIBUTE VALUE | 943 |MT-Level | Safe | 944 +---------------+-----------------+ 945 946 SEE ALSO 947 pvs(1), Intro(2), Intro(3), attributes(5), lf64(5), standards(5) 948 949 NOTES 950 The synonyms compatibility library, c_synonyms.so.1, provides a 951 mechanism to support old applications and libraries that were 952 mistakenly built using now-obsolete synonym symbols from libc. 953 954 Before the advent of direct binding (-B direct) libc provided many 955 functions with two names. For example, getpwent() and _getpwent(). 956 These two names referred to exactly the same function in libc. The 957 leading-underscore symbol was intended to be used by system libraries 958 in order to avoid conflicting with an application that might define its 959 own version of getpwent() with completely different semantics. 960 Standard-conforming applications may not define and use function names 961 with leading underscores. 962 963 illumos system libraries are now built with direct binding. This means 964 that a system library that calls getpwent() will bind directly to the 965 instance of getpwent() in libc, even if the application to which it is 966 linked defines a different getpwent() for its own use. The application 967 binds to its instance of getpwent() and there is no resulting conflict. 968 The direct binding mechanism is equally available to libraries not 969 delivered with illumos. 970 971 As a result of this evolution, most of the leading-underscore synonym 972 symbols have been removed from libc. This means that applications that 973 call these now-obsolete function names will cease to work. They will 974 typically draw the error: 975 976 $ ./application 977 ld.so.1: fatal: relocation error: symbol _getpwent: 978 referenced symbol not found 979 Killed 980 981 982 983 984 All of the old leading-underscore symbols have been copied to the 985 synonyms compatibility library. This library simply redirects the calls 986 to the non-underscore instances of the corresponding functions in libc. 987 Use it as a pre-loaded object: 988 989 $ LD_PRELOAD=c_synonyms.so.1 ./application 990 991 992 993 The synonyms compatibility library is intended neither to enable the 994 generation of applications that call the obsolete leading-underscore 995 synonym functions, nor to endorse this particular programming practice. 996 997 998 999 February 14, 2020 LIBC(3LIB)