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