Multithreaded Programming Guide
  Search only this book
Download this book in PDF

MT Safety Levels: Library Interfaces

B

Table B-1 lists the interfaces from Section 3 of the man Pages(3): Library Routines belonging to one of the safe categories. If an interface from Section 3 (not including the Source Compatibility library) is not in this table, it is probably unsafe (See "MT Interface Safety Levels" on page 103 for explanations of the safety categories.).
Table B-1
Interface (Man Page)Category
_tolower (conv(3C))MT-Safe with exceptions
_toupper (conv(3C))MT-Safe with exceptions
a64l (a64l(3C))MT-Safe
abort (abort(3C))Safe
abs (abs(3C))MT-Safe
acos (trig(3M))MT-Safe
acosh (hyperbolic(3M))MT-Safe
addseverity (addseverity(3C))Safe
alloca (malloc(3C))Safe
ascftime (strftime(3C))Unsafe
asin (trig(3M))MT-Safe
asinh (hyperbolic(3M))MT-Safe
Table B-1
Interface (Man Page)Category
assert (assert(3X))Safe
atan2 (trig(3M))MT-Safe
atan (trig(3M))MT-Safe
atanh (hyperbolic(3M))MT-Safe
atexit (atexit(3C))Safe
atof (strtod(3C))MT-Safe
atoi (strtol(3C))MT-Safe
atol (strtol(3C))MT-Safe
atoll (strtol(3C))MT-Safe
bessel (bessel(3M))MT-Safe
bindtextdomain (gettext(3I))Safe with exceptions
bsearch (bsearch(3C))Safe
calloc (malloc(3C))Safe
calloc (malloc(3X))Safe
calloc (mapmalloc(3X))Safe
catclose (catopen(3C))MT-Safe
catgets (catgets(3C))MT-Safe
catopen (catopen(3C))MT-Safe
cbrt (sqrt(3M))MT-Safe
ceil (floor(3M))MT-Safe
cfgetispeed (termios(3))MT-Safe
cfgetospeed (termios(3))MT-Safe
cfree (mapmalloc(3X))Safe
cfsetispeed (termios(3))MT-Safe
cfsetospeed (termios(3))MT-Safe
cftime (strftime(3C))Unsafe
clearerr (ferror(3S))MT-Safe
Table B-1
Interface (Man Page)Category
clock (clock(3C))MT-Safe
closedir (directory(3C))Safe
closelog (syslog(3))Safe
conv (conv(3C))MT-Safe with exceptions
cos (trig(3M))MT-Safe
cosh (hyperbolic(3M))MT-Safe
crypt (crypt(3C))Safe
csetcol (cset(3I))MT-Safe with exceptions
cset (cset(3I))MT-Safe with exceptions
csetlen (cset(3I))MT-Safe with exceptions
csetno (cset(3I))MT-Safe with exceptions
ctermid (ctermid(3S))Unsafe
ctype (ctype(3C))MT-Safe with exceptions
cuserid (cuserid(3S))MT-Safe
decimal_to_quadruple
(decimal_to_floating(3))
MT-Safe
decimal_to_single
(decimal_to_floating(3))
MT-Safe
dgettext (gettext(3I))Safe with exceptions
directory (directory(3C))Safe
div (div(3C))MT-Safe
dlclose (dlclose(3X))MT-Safe
dlerror (dlerror(3X))MT-Safe
dlopen (dlopen(3X))MT-Safe
dlsym (dlsym(3X))MT-Safe
double_to_decimal
(floating_to_decimal(3))
MT-Safe
drand48 (drand48(3C))Safe
Table B-1
Interface (Man Page)Category
econvert (econvert(3))MT-Safe
encrypt (crypt(3C))Unsafe
erand48 (drand48(3C))Safe
erfc (erf(3M))MT-Safe
erf (erf(3M))MT-Safe
euccol (euclen(3I))Safe
euclen (euclen(3I))Safe
eucscol (euclen(3I))Safe
exit (exit(3C))Safe
exp (exp(3M))MT-Safe
extended_to_decimal
(floating_to_decimal(3))
Mt-safe
fabs (ieee_functions(3M))MT-Safe
fattach (fattach(3C))MT-Safe
fclose (fclose(3S))MT-Safe
fconvert (econvert(3))MT-Safe
fdopen (fopen(3S))MT-Safe
feof (ferror(3S))MT-Safe
ferror (ferror(3S))MT-Safe
fflush (fclose(3S))MT-Safe
ffs (ffs(3C))MT-Safe
fgetc (getc(3S))MT-Safe
fgetpos (fsetpos(3C))MT-Safe
fgets (gets(3S))MT-Safe
fgetwc (getwc(3I))MT-Safe
fgetws (getws(3I))MT-Safe
fileno (ferror(3S))MT-Safe
Table B-1
Interface (Man Page)Category
file_to_decimal
(string_to_decimal(3))
MT-Safe
finite (isnan(3C))MT-Safe
floor (floor(3M))MT-Safe
fmod (ieee_functions(3M))MT-Safe
fmtmsg (fmtmsg(3C))Safe
fopen (fopen(3S))MT-Safe
fpclass (isnan(3C))MT-Safe
fpgetmask (fpgetround(3C))MT-Safe
fpgetround (fpgetround(3C))MT-Safe
fpgetsticky (fpgetround(3C))MT-Safe
fprintf (printf(3S))MT-Safe, Async-Safe
fpsetmask (fpgetround(3C))MT-Safe
fpsetround (fpgetround(3C))MT-Safe
fpsetsticky (fpgetround(3C))MT-Safe
fputc (putc(3S))MT-Safe
fputs (puts(3S))MT-Safe
fputwc (putwc(3I))MT-Safe
fputws (putws(3I))MT-Safe
fread (fread(3S))MT-Safe
free (malloc(3C))Safe
free (malloc(3X))Safe
free (mapmalloc(3X))Safe
freopen (fopen(3S))MT-Safe
frexp (frexp(3C))MT-Safe
fscanf (scanf(3S))MT-Safe
fseek (fseek(3S))MT-Safe
fsetpos (fsetpos(3C))MT-Safe
Table B-1
Interface (Man Page)Category
ftell (fseek(3S))MT-Safe
ftok (stdipc(3C))MT-Safe
ftruncate (truncate(3C))MT-Safe
ftw (ftw(3C))Safe
func_to_decimal
(string_to_decimal(3))
MT-Safe
fwrite (fread(3S))MT-Safe
gconvert (econvert(3))MT-Safe
getc (getc(3S))MT-Safe
getchar (getc(3S))MT-Safe
getchar_unlocked (getc(3S))Unsafe
getc_unlocked (getc(3S))Unsafe
getcwd (getcwd(3C))Safe
getenv (getenv(3C))Safe
getlogin (getlogin(3C))Unsafe
getmntany (getmntent(3C))Safe
getmntent (getmntent(3C))Safe
getpw (getpw(3C))Safe
gets (gets(3S))MT-Safe
getsubopt (getsubopt(3C))MT-Safe
gettext (gettext(3I))Safe with exceptions
gettimeofday (gettimeofday(3C))MT-Safe
gettxt (gettxt(3C))Safe with exceptions
getvfsany (getvfsent(3C))Safe
getvfsent (getvfsent(3C))Safe
getvfsfile (getvfsent(3C))Safe
getvfsspec (getvfsent(3C))Safe
getwc (getwc(3I))MT-Safe
Table B-1
Interface (Man Page)Category
getwchar (getwc(3I))MT-Safe
getw (getc(3S))MT-Safe
getwidth (getwidth(3I))MT-Safe with exceptions
getws (getws(3I))MT-Safe
grantpt (grantpt(3C))Safe
gsignal (ssignal(3C))Unsafe
hasmntopt (getmntent(3C))Safe
hcreate (hsearch(3C))Safe
hdestroy (hsearch(3C))Safe
hsearch (hsearch(3C))Safe
hyperbolic (hyperbolic(3M))MT-Safe
hypot (hypot(3M))MT-Safe
ieee_functions
(ieee_functions(3M))
MT-Safe
ieee_test (ieee_test(3M))MT-Safe
isalnum (ctype(3C))MT-Safe with exceptions
isalpha (ctype(3C))MT-Safe with exceptions
isascii (ctype(3C))MT-Safe with exceptions
isastream (isastream(3C))MT-Safe
iscntrl (ctype(3C))MT-Safe with exceptions
isdigit (ctype(3C))MT-Safe with exceptions
isenglish (wctype(3I))MT-Safe with exceptions
isgraph (ctype(3C))MT-Safe with exceptions
isideogram (wctype(3I))MT-Safe with exceptions
islower (ctype(3C))MT-Safe with exceptions
isnand (isnan(3C))MT-Safe
isnan (ieee_functions(3M))MT-Safe
isnan (isnan(3C))MT-Safe
Table B-1
Interface (Man Page)Category
isnanf (isnan(3C))MT-Safe
isnumber (wctype(3I))MT-Safe with exceptions
isphonogram (wctype(3I))MT-Safe with exceptions
isprint (ctype(3C))MT-Safe with exceptions
ispunct (ctype(3C))MT-Safe with exceptions
isspace (ctype(3C))MT-Safe with exceptions
isspecial (wctype(3I))MT-Safe with exceptions
isupper (ctype(3C))MT-Safe with exceptions
iswalnum (wctype(3I))MT-Safe with exceptions
iswalpha (wctype(3I))MT-Safe with exceptions
iswascii (wctype(3I))MT-Safe with exceptions
iswcntrl (wctype(3I))MT-Safe with exceptions
iswdigit (wctype(3I))MT-Safe with exceptions
iswgraph (wctype(3I))MT-Safe with exceptions
iswlower (wctype(3I))MT-Safe with exceptions
iswprint (wctype(3I))MT-Safe with exceptions
iswpunct (wctype(3I))MT-Safe with exceptions
iswspace (wctype(3I))MT-Safe with exceptions
iswupper (wctype(3I))MT-Safe with exceptions
iswxdigit (wctype(3I))MT-Safe with exceptions
isxdigit (ctype(3C))MT-Safe with exceptions
jrand48 (drand48(3C))Safe
j0 (bessel(3M))MT-Safe
j1 (bessel(3M))MT-Safe
jn (bessel(3M))MT-Safe
jrand48 (drand48(3C))Safe
l64a (a64l(3C))MT-Safe
Table B-1
Interface (Man Page)Category
labs (abs(3C))MT-Safe
lckpwdf (lckpwdf(3C))MT-Safe
lcong48 (drand48(3C))Safe
ldexp (frexp(3C))MT-Safe
ldiv (div(3C))MT-Safe
lfind (lsearch(3C))Safe
llabs (abs(3C))MT-Safe
lldiv (div(3C))MT-Safe
lltostr (strtol(3C))MT-Safe
localeconv (localeconv(3C))Safe with exceptions
lockf (lockf(3C))MT-Safe
log (exp(3M))MT-Safe
log10 (exp(3M))MT-Safe
logb (frexp(3C))MT-Safe
logb (ieee_test(3M))MT-Safe
lrand48 (drand48(3C))Safe
lsearch (lsearch(3C))Safe
madvise (madvise(3))MT-Safe
major (makedev(3C))MT-Safe
makecontext (makecontext(3C))MT-Safe
makedev (makedev(3C))MT-Safe
mallinfo (malloc(3X))Safe
malloc (malloc(3C))Safe
malloc (malloc(3X))Safe
mallopt (malloc(3X))Safe
mapmalloc (mapmalloc(3X))Safe
matherr (matherr(3M))MT-Safe
Table B-1
Interface (Man Page)Category
mbchar (mbchar(3C))MT-Safe with exceptions
mblen (mbchar(3C))MT-Safe with exceptions
mbstowcs (mbstring(3C))MT-Safe with exceptions
mbstring (mbstring(3C))MT-Safe with exceptions
mbtowc (mbchar(3C))MT-Safe with exceptions
memalign (malloc(3C))Safe
memccpy (memory(3C))MT-Safe
memchr (memory(3C))MT-Safe
memcmp (memory(3C))MT-Safe
memcntl (memcntl(3))MT-Safe
memcpy (memory(3C))MT-Safe
memmove (memory(3C))MT-Safe
memory (memory(3C))MT-Safe
memset (memory(3C))MT-Safe
minor (makedev(3C))MT-Safe
mkfifo (mkfifo(3C))MT-Safe
mktemp (mktemp(3C))Safe
mlockall (mlockall(3C))MT-Safe
mlock (mlock(3C))MT-Safe
modf (frexp(3C))MT-Safe
modff (frexp(3C))MT-Safe
monitor (monitor(3C))Safe
mrand48 (drand48(3C))Safe
msync (msync(3C))MT-Safe
munlockall (mlockall(3C))MT-Safe
munlock (mlock(3C))MT-Safe
nextafter (frexp(3C))MT-Safe
Table B-1
Interface (Man Page)Category
nextafter (ieee_functions(3M))MT-Safe
nftw (ftw(3C))Safe with exceptions
nl_langinfo (nl_langinfo(3C))Safe with exceptions
nlist (nlist(3E))Safe
nrand48 (drand48(3C))Safe
offsetof (offsetof(3C))MT-Safe
opendir (directory(3C))Safe
openlog (syslog(3))Safe
perror (perror(3C))MT-Safe
pow (exp(3M))MT-Safe
printf (printf(3S))MT-Safe, Async-Safe
psiginfo (psignal(3C))Safe
psignal (psignal(3C))Safe
ptsname (ptsname(3C))Safe
putc (putc(3S))MT-Safe
putchar (putc(3S))MT-Safe
putenv (putenv(3C))Safe
putmntent (getmntent(3C))Safe
puts (puts(3S))MT-Safe
putwc (putwc(3I))MT-Safe
putwchar (putwc(3I))MT-Safe
putw (putc(3S))MT-Safe
putws (putws(3I))MT-Safe
qsort (qsort(3C))Safe
quadruple_to_decimal
(floating_to_decimal(3))
MT-Safe
raise (raise(3C))MT-Safe
readdir (directory(3C))Unsafe
Table B-1
Interface (Man Page)Category
realloc (malloc(3C))Safe
realloc (malloc(3X))Safe
realpath (realpath(3C))MT-Safe
remainder (ieee_functions(3M))MT-Safe
remove (remove(3C))MT-Safe
rewinddir (directory(3C))Safe
rewind (fseek(3S))MT-Safe
scalb (frexp(3C))MT-Safe
scalb (ieee_test(3M))MT-Safe
scanf (scanf(3S))MT-Safe
seconvert (econvert(3))MT-Safe
seed48 (drand48(3C))Safe
seekdir (directory(3C))Safe
select (select(3C))MT-Safe
setbuf (setbuf(3S))MT-Safe
setkey (crypt(3C))Safe
setlocale (setlocale(3C))Safe with exceptions
setlogmask (syslog(3))Safe
settimeofday (gettimeofday(3C))MT-Safe
setvbuf (setbuf(3S))MT-Safe
sfconvert (econvert(3))MT-Safe
sgconvert (econvert(3))MT-Safe
sigaddset (sigsetops(3C))MT-Safe
sigdelset (sigsetops(3C))MT-Safe
sigemptyset (sigsetops(3C))MT-Safe
sigfillset (sigsetops(3C))MT-Safe
sigismember (sigsetops(3C))MT-Safe
Table B-1
Interface (Man Page)Category
significand (ieee_test(3M))MT-Safe
sigsetops (sigsetops(3C))MT-Safe
sin (trig(3M))MT-Safe
single_to_decimal
(floating_to_decimal(3))
MT-Safe
sinh (hyperbolic(3M))MT-Safe
sleep (sleep(3C))Safe
sprintf (printf(3S))MT-Safe
sqrt (sqrt(3M))MT-Safe
srand48 (drand48(3C))Safe
sscanf (scanf(3S))MT-Safe
ssignal (ssignal(3C))Unsafe
strcasecmp (string(3C))MT-Safe
strcat (string(3C))MT-Safe
strchr (string(3C))MT-Safe
strcmp (string(3C))MT-Safe
strcoll (strcoll(3C))Safe with exceptions
strcpy (string(3C))MT-Safe
strcspn (string(3C))MT-Safe
strdup (string(3C))MT-Safe
strerror (strerror(3C))Safe
strftime (strftime(3C))Unsafe
string (string(3C))MT-Safe
string_to_decimal
(string_to_decimal(3))
MT-Safe
strlen (string(3C))MT-Safe
strncasecmp (string(3C))MT-Safe
strncat (string(3C))MT-Safe
Table B-1
Interface (Man Page)Category
strncmp (string(3C))MT-Safe
strncpy (string(3C))MT-Safe
strpbrk (string(3C))MT-Safe
strrchr (string(3C))MT-Safe
strsignal (strsignal(3C))Safe
strspn (string(3C))MT-Safe
strstr (string(3C))MT-Safe
strtod (strtod(3C))MT-Safe
strtok (string(3C))Unsafe
strtol (strtol(3C))MT-Safe
strtoll (strtol(3C))MT-Safe
strtoul (strtol(3C))MT-Safe
strtoull (strtol(3C))MT-Safe
strxfrm (strxfrm(3C))Safe with exceptions
swab (swab(3C))MT-Safe
swapcontext (makecontext(3C))MT-Safe
sysconf (sysconf(3C))Safe
syslog (syslog(3))Safe
system (system(3S))MT-Safe
t_accept (t_accept(3N))MT-Safe
t_alloc (t_alloc(3N))MT-Safe
t_bind (t_bind(3N))MT-Safe
t_close (t_close(3N))MT-Safe
t_connect (t_connect(3N))MT-Safe
t_error (t_error(3N))MT-Safe
t_free (t_free(3N))MT-Safe
t_getinfo (t_getinfo(3N))MT-Safe
Table B-1
Interface (Man Page)Category
t_getstate (t_getstate(3N))MT-Safe
t_listen (t_listen(3N))MT-Safe
t_look (t_look(3N))MT-Safe
t_open (t_open(3N))MT-Safe
t_optmgmt (t_optmgmt(3N))MT-Safe
t_rcvconnect (t_rcvconnect(3N))MT-Safe
t_rcvdis (t_rcvdis(3N))MT-Safe
t_rcv (t_rcv(3N))MT-Safe
t_rcvrel (t_rcvrel(3N))MT-Safe
t_rcvudata (t_rcvudata(3N))MT-Safe
t_rcvuderr (t_rcvuderr(3N))MT-Safe
t_snddis (t_snddis(3N))MT-Safe
t_snd (t_snd(3N))MT-Safe
t_sndrel (t_sndrel(3N))MT-Safe
t_sndudata (t_sndudata(3N))MT-Safe
t_sync (t_sync(3N))MT-Safe
t_unbind (t_unbind(3N))MT-Safe
tan (trig(3M))MT-Safe
tanh (hyperbolic(3M))MT-Safe
tcdrain (termios(3))MT-Safe
tcflow (termios(3))MT-Safe
tcflush (termios(3))MT-Safe
tcgetattr (termios(3))MT-Safe
tcgetpgrp (termios(3))MT-Safe
tcgetsid (termios(3))MT-Safe
tcsendbreak (termios(3))MT-Safe
tcsetattr (termios(3))MT-Safe
Table B-1
Interface (Man Page)Category
tcsetpgrp (tcsetpgrp(3C))MT-Safe
tcsetpgrp (termios(3))MT-Safe
tdelete (tsearch(3C))Safe
tempnam (tmpnam(3S))Safe
telldir (directory(3C))Safe
termios (termios(3))MT-Safe
textdomain (gettext(3I))Safe with exceptions
tfind (tsearch(3C))Safe
tmpfile (tmpfile(3S))Safe
tmpnam (tmpnam(3S))Unsafe
toascii (conv(3C))MT-Safe with exceptions
tolower (conv(3C))MT-Safe with exceptions
toupper (conv(3C))MT-Safe with exceptions
towlower (wconv(3I))MT-Safe with exceptions
towupper (wconv(3I))MT-Safe with exceptions
trig (trig(3M))MT-Safe
truncate (truncate(3C))MT-Safe
tsearch (tsearch(3C))Safe
ttyslot (ttyslot(3C))Safe
twalk (tsearch(3C))Safe
ulckpwdf (lckpwdf(3C))MT-Safe
ulltostr (strtol(3C))MT-Safe
ungetc (ungetc(3S))MT-Safe
ungetwc (ungetwc(3I)MT-Safe
unlockpt (unlockpt(3C))Safe
unordered (isnan(3C))MT-Safe
valloc (malloc(3C))Safe
Table B-1
Interface (Man Page)Category
vfprintf (vprintf(3S))MT-Safe
vprintf (vprintf(3S))Async-Safe
vsprintf (vprintf(3S))Async-Safe
vsyslog (vsyslog(3))Safe
watof (wstod(3I))MT-Safe
watoi (wstol(3I))MT-Safe
watol (wstol(3I))MT-Safe
watoll (wstol(3I))MT-Safe
wconv (wconv(3I))MT-Safe with exceptions
wcsetno (cset(3I))MT-Safe with exceptions
wcstombs (mbstring(3C))MT-Safe with exceptions
wctomb (mbchar(3C))MT-Safe with exceptions
wctype (wctype(3I))MT-Safe with exceptions
windex (wstring(3I))MT-Safe
wrindex (wstring(3I))MT-Safe
wscat (wstring(3I))MT-Safe
wschr (wstring(3I))MT-Safe
wscmp (wstring(3I))MT-Safe
wscol (wstring(3I))MT-Safe
wscoll (wscoll(3I))Safe with exceptions
wscpy (wstring(3I))MT-Safe
wscspn (wstring(3I))MT-Safe
wsdup (wstring(3I))MT-Safe
wslen (wstring(3I))MT-Safe
wsncat (wstring(3I))MT-Safe
wsncmp (wstring(3I))MT-Safe
wsncpy (wstring(3I))MT-Safe
Table B-1
Interface (Man Page)Category
wspbrk (wstring(3I))MT-Safe
wsprintf (wsprintf(3I))MT-Safe
wsrchr (wstring(3I))MT-Safe
wsscanf (wsscanf(3I))MT-Safe
wsspn (wstring(3I))MT-Safe
wstod (wstod(3I))MT-Safe
wstok (wstring(3I))MT-Safe
wstol (wstol(3I))MT-Safe
wstring (wstring(3I))MT-Safe
wsxfrm (wsxfrm(3I))Safe with exceptions
y0 (bessel(3M))MT-Safe
y1 (bessel(3M))MT-Safe
yn (bessel(3M))MT-Safe