原文:http://www.cnblogs.com/huyc/archive/2011/10/21/2219758.html
NAME
pthreads —— POSIX线程
1 asctime() 2 basename() 3 catgets() 4 crypt() 5 ctermid() if passed a non-NULL argument 6 ctime() 7 dbm_clearerr() 8 dbm_close() 9 dbm_delete() 10 dbm_error() 11 dbm_fetch() 12 dbm_firstkey() 13 dbm_nextkey() 14 dbm_open() 15 dbm_store() 16 dirname() 17 dlerror() 18 drand48() 19 ecvt() [POSIX.1-2001 only (function removed in POSIX.1-2008)] 20 encrypt() 21 endgrent() 22 endpwent() 23 endutxent() 24 fcvt() [POSIX.1-2001 only (function removed in POSIX.1-2008)] 25 ftw() 26 gcvt() [POSIX.1-2001 only (function removed in POSIX.1-2008)] 27 getc_unlocked() 28 getchar_unlocked() 29 getdate() 30 getenv() 31 getgrent() 32 getgrgid() 33 getgrnam() 34 gethostbyaddr() [POSIX.1-2001 only (function removed in POSIX.1-2008)] 35 gethostbyname() [POSIX.1-2001 only (function removed in POSIX.1-2008)] 36 gethostent() 37 getlogin() 38 getnetbyaddr() 39 getnetbyname() 40 getnetent() 41 getopt() 42 getprotobyname() 43 getprotobynumber() 44 getprotoent() 45 getpwent() 46 getpwnam() 47 getpwuid() 48 getservbyname() 49 getservbyport() 50 getservent() 51 getutxent() 52 getutxid() 53 getutxline() 54 gmtime() 55 hcreate() 56 hdestroy() 57 hsearch() 58 inet_ntoa() 59 l64a() 60 lgamma() 61 lgammaf() 62 lgammal() 63 localeconv() 64 localtime() 65 lrand48() 66 mrand48() 67 nftw() 68 nl_langinfo() 69 ptsname() 70 putc_unlocked() 71 putchar_unlocked() 72 putenv() 73 pututxline() 74 rand() 75 readdir() 76 setenv() 77 setgrent() 78 setkey() 79 setpwent() 80 setutxent() 81 strerror() 82 strsignal() [Added in POSIX.1-2008] 83 strtok() 84 system() [Added in POSIX.1-2008] 85 tmpnam() if passed a non-NULL argument 86 ttyname() 87 unsetenv() 88 wcrtomb() if its final argument is NULL 89 wcsrtombs() if its final argument is NULL 90 wcstombs() 91 wctomb()
1 accept() 2 aio_suspend() 3 clock_nanosleep() 4 close() 5 connect() 6 creat() 7 fcntl() F_SETLKW 8 fdatasync() 9 fsync() 10 getmsg() 11 getpmsg() 12 lockf() F_LOCK 13 mq_receive() 14 mq_send() 15 mq_timedreceive() 16 mq_timedsend() 17 msgrcv() 18 msgsnd() 19 msync() 20 nanosleep() 21 open() 22 openat() [Added in POSIX.1-2008] 23 pause() 24 poll() 25 pread() 26 pselect() 27 pthread_cond_timedwait() 28 pthread_cond_wait() 29 pthread_join() 30 pthread_testcancel() 31 putmsg() 32 putpmsg() 33 pwrite() 34 read() 35 readv() 36 recv() 37 recvfrom() 38 recvmsg() 39 select() 40 sem_timedwait() 41 sem_wait() 42 send() 43 sendmsg() 44 sendto() 45 sigpause() [POSIX.1-2001 only (moves to "may" list in POSIX.1-2008)] 46 sigsuspend() 47 sigtimedwait() 48 sigwait() 49 sigwaitinfo() 50 sleep() 51 system() 52 tcdrain() 53 usleep() [POSIX.1-2001 only (function removed in POSIX.1-2008)] 54 wait() 55 waitid() 56 waitpid() 57 write() 58 writev()
1 access() 2 asctime() 3 asctime_r() 4 catclose() 5 catgets() 6 catopen() 7 chmod() [Added in POSIX.1-2008] 8 chown() [Added in POSIX.1-2008] 9 closedir() 10 closelog() 11 ctermid() 12 ctime() 13 ctime_r() 14 dbm_close() 15 dbm_delete() 16 dbm_fetch() 17 dbm_nextkey() 18 dbm_open() 19 dbm_store() 20 dlclose() 21 dlopen() 22 dprintf() [Added in POSIX.1-2008] 23 endgrent() 24 endhostent() 25 endnetent() 26 endprotoent() 27 endpwent() 28 endservent() 29 endutxent() 30 faccessat() [Added in POSIX.1-2008] 31 fchmod() [Added in POSIX.1-2008] 32 fchmodat() [Added in POSIX.1-2008] 33 fchown() [Added in POSIX.1-2008] 34 fchownat() [Added in POSIX.1-2008] 35 fclose() 36 fcntl() (for any value of cmd argument) 37 fflush() 38 fgetc() 39 fgetpos() 40 fgets() 41 fgetwc() 42 fgetws() 43 fmtmsg() 44 fopen() 45 fpathconf() 46 fprintf() 47 fputc() 48 fputs() 49 fputwc() 50 fputws() 51 fread() 52 freopen() 53 fscanf() 54 fseek() 55 fseeko() 56 fsetpos() 57 fstat() 58 fstatat() [Added in POSIX.1-2008] 59 ftell() 60 ftello() 61 ftw() 62 futimens() [Added in POSIX.1-2008] 63 fwprintf() 64 fwrite() 65 fwscanf() 66 getaddrinfo() 67 getc() 68 getc_unlocked() 69 getchar() 70 getchar_unlocked() 71 getcwd() 72 getdate() 73 getdelim() [Added in POSIX.1-2008] 74 getgrent() 75 getgrgid() 76 getgrgid_r() 77 getgrnam() 78 getgrnam_r() 79 gethostbyaddr() [SUSv3 only (function removed in POSIX.1-2008)] 80 gethostbyname() [SUSv3 only (function removed in POSIX.1-2008)] 81 gethostent() 82 gethostid() 83 gethostname() 84 getline() [Added in POSIX.1-2008] 85 getlogin() 86 getlogin_r() 87 getnameinfo() 88 getnetbyaddr() 89 getnetbyname() 90 getnetent() 91 getopt() (if opterr is non-zero) 92 getprotobyname() 93 getprotobynumber() 94 getprotoent() 95 getpwent() 96 getpwnam() 97 getpwnam_r() 98 getpwuid() 99 getpwuid_r() 100 gets() 101 getservbyname() 102 getservbyport() 103 getservent() 104 getutxent() 105 getutxid() 106 getutxline() 107 getwc() 108 getwchar() 109 getwd() [SUSv3 only (function removed in POSIX.1-2008)] 110 glob() 111 iconv_close() 112 iconv_open() 113 ioctl() 114 link() 115 linkat() [Added in POSIX.1-2008] 116 lio_listio() [Added in POSIX.1-2008] 117 localtime() 118 localtime_r() 119 lockf() [Added in POSIX.1-2008] 120 lseek() 121 lstat() 122 mkdir() [Added in POSIX.1-2008] 123 mkdirat() [Added in POSIX.1-2008] 124 mkdtemp() [Added in POSIX.1-2008] 125 mkfifo() [Added in POSIX.1-2008] 126 mkfifoat() [Added in POSIX.1-2008] 127 mknod() [Added in POSIX.1-2008] 128 mknodat() [Added in POSIX.1-2008] 129 mkstemp() 130 mktime() 131 nftw() 132 opendir() 133 openlog() 134 pathconf() 135 pclose() 136 perror() 137 popen() 138 posix_fadvise() 139 posix_fallocate() 140 posix_madvise() 141 posix_openpt() 142 posix_spawn() 143 posix_spawnp() 144 posix_trace_clear() 145 posix_trace_close() 146 posix_trace_create() 147 posix_trace_create_withlog() 148 posix_trace_eventtypelist_getnext_id() 149 posix_trace_eventtypelist_rewind() 150 posix_trace_flush() 151 posix_trace_get_attr() 152 posix_trace_get_filter() 153 posix_trace_get_status() 154 posix_trace_getnext_event() 155 posix_trace_open() 156 posix_trace_rewind() 157 posix_trace_set_filter() 158 posix_trace_shutdown() 159 posix_trace_timedgetnext_event() 160 posix_typed_mem_open() 161 printf() 162 psiginfo() [Added in POSIX.1-2008] 163 psignal() [Added in POSIX.1-2008] 164 pthread_rwlock_rdlock() 165 pthread_rwlock_timedrdlock() 166 pthread_rwlock_timedwrlock() 167 pthread_rwlock_wrlock() 168 putc() 169 putc_unlocked() 170 putchar() 171 putchar_unlocked() 172 puts() 173 pututxline() 174 putwc() 175 putwchar() 176 readdir() 177 readdir_r() 178 readlink() [Added in POSIX.1-2008] 179 readlinkat() [Added in POSIX.1-2008] 180 remove() 181 rename() 182 renameat() [Added in POSIX.1-2008] 183 rewind() 184 rewinddir() 185 scandir() [Added in POSIX.1-2008] 186 scanf() 187 seekdir() 188 semop() 189 setgrent() 190 sethostent() 191 setnetent() 192 setprotoent() 193 setpwent() 194 setservent() 195 setutxent() 196 sigpause() [Added in POSIX.1-2008] 197 stat() 198 strerror() 199 strerror_r() 200 strftime() 201 symlink() 202 symlinkat() [Added in POSIX.1-2008] 203 sync() 204 syslog() 205 tmpfile() 206 tmpnam() 207 ttyname() 208 ttyname_r() 209 tzset() 210 ungetc() 211 ungetwc() 212 unlink() 213 unlinkat() [Added in POSIX.1-2008] 214 utime() [Added in POSIX.1-2008] 215 utimensat() [Added in POSIX.1-2008] 216 utimes() [Added in POSIX.1-2008] 217 vdprintf() [Added in POSIX.1-2008] 218 vfprintf() 219 vfwprintf() 220 vprintf() 221 vwprintf() 222 wcsftime() 223 wordexp() 224 wprintf() 225 wscanf()
bash$ getconf GNU_LIBPTHREAD_VERSION
NPTL 2.3.4
bash$ $( ldd /bin/ls | grep libc.so | awk '{print $3}' ) | egrep -i 'threads|nptl'
Native POSIX Threads Library by Ulrich Drepper et al
bash$ $( LD_ASSUME_KERNEL=2.2.5 ldd /bin/ls | grep libc.so | awk '{print $3}' ) | egrep -i 'threads|ntpl'
linuxthreads-0.10 by Xavier Leroy