HP-UX Reference (11i v2 03/08) - 5 Miscellaneous Topics, 7 Device (Special) Files, 9 General Information, Index (vol 9)

t
thread_safety(5) thread_safety(5)
NAME
thread_safety - list of libc, libpthread and libgen interfaces which are: Not thread-safe, Cancellation
Points, Cancel Safe, Async Signal Safe, and Async Cancel Safe
DESCRIPTION
Refer to this man page when writing thread-safe applications using libc, libpthread and libgen interfaces.
This man page gives the list of libc, libpthread and libgen interfaces which are: Not thread-safe, Cancel-
lation Points, Cancel Safe, Async Signal Safe, and Async Cancel Safe.
Interfaces That Are Not thread-safe
All the interfaces are thread-safe except:
bgets() bufsplit() copylist() dbmclose()
dbminit() delete() endmntent() fattach()
fdetach() fetch() firstkey() getc_unlocked()
getchar_unlocked() getopt() inet_ntop() inet_pton()
isastream() nextkey() putc_unlocked() putchar_unlocked()
setmntent() store() strord() strtold()
NOTE: If an interface has a
_r
counterpart, then the _r interface is thread-safe, and the non-_r is
not thread-safe.
Cancellation Points
Cancellation Points can occur when a thread is executing in the following interfaces:
_pututline() accept() aio_suspend()
bgets() bwtmpname() catclose()
catgets() catopen() close()
closedir() closelog() confstr()
connect() copylist() creat()
ctermid() cuserid() dbm_close()
dbm_delete() dbm_fetch() dbm_firstkey()
dbm_nextkey() dbm_open() dbm_store()
devnm() dial() endbwent()
endgrent() endpwent() endusershell()
endutent() endutsent() endutxent()
fclose() fcntl() fdopen()
fflush() fgetc() fgetpos()
fgetpwent() fgets() fgetwc()
fgetws() fopen() fprintf()
fputc() fputs() fputwc()
fputws() fread() freopen()
fscanf() fseek() fseeko()
fsetpos() fstatvfsdev() fsync()
ftell() ftello() ftw()
fwprintf() fwrite() fwscanf()
getbwent() getc() getc_unlocked()
getchar() getchar_unlocked() getcwd()
getdate() getgrent() getgrgid()
getgrgid_r() getgrnam() getgrnam_r()
getlogin() getlogin_r() getmsg()
getpmsg() getpwent() getpwnam()
getpwnam_r() getpwuid() getpwuid_r()
gets() gettxt() getusershell()
getutent() getutid() getutline()
getutxent() getutsent() getutsid()
getutsline() getutspid() getutxid()
getutxline() getw() getwc()
getwchar() getwd() glob()
globfree() iconv() iconv_close()
Section 5314 Hewlett-Packard Company 1 HP-UX 11i Version 2: August 2003