Solaris Transition Guide

Library Routines

Table C-1 Library Routines Reference Table: a64l() through authunix_create _default()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

a64l() (3)

 

abort() (3)

 

abs() (3)

 

acos() (3M)

In the SunOS release 4 software, if the absolute value of the argument of acos() is greater than 1, NaN is returned with an EDOM error and a DOMAIN math err. The SunOS release 5.7, the SVID, or SVR4 versions return zero with an EDOM error and a DOMAIN math err.

acosh() (3M)

 

addch() (3V) -- SysV

 

addexportent() (3)

The /etc/dfs/sharetab file replaces /etc/exports. Refer to the share (1M), unshare (1M), and sharetab (4) man pages for more information.

addmntent() (3)

The putmntent() routine provides similar functionality. Refer to getmntent() (3C).

addstr() (3V) -- SysV

 

agt_create() (3L)

 

agt_enumerate() (3L)

 

agt_trap() (3L)

 

aint() (3M)

 

aiocancel() (3)

 

aioread() (3)

 

aiowait() (3)

 

aiowrite() (3)

 

alarm() (3V)

 

alloca() (3)

 

alphasort() (3)

 

anint() (3M)

 

annuity() (3M)

 

arc() (3X)

 

asctime() (3V)

See ctime() (3V).

asin() (3M)

In the SunOS release 4 software, if the absolute value of the argument of asin() is greater than 1, NaN is returned with an EDOM error and a DOMAIN math err. The SunOS release 5.7, SVID, or SVR4 versions return zero with an EDOM error and a DOMAIN math err.

asinh() (3M)

 

assert() (3V)

The SunOS release 4 version of assert() calls exit() (3C) while the SunOS release 5.7, ABI, SVID, or SVR4 versions call abort() (3C).

assert() (3V) -- SysV

 

atan() (3M)

 

atan2() (3M)

The SunOS release 5.7, the SVID, or SVR4 version of atan2(0.0,0.0)() returns zero and sets errno to EDOM. In the SunOS release 4 version, the same call might return +/-0.0 or +/- PI in conformance with 4.3BSD in the spirit of ANSI/IEEEStd754- 1985.

atanh() (3M)

 

atof() (3)

See strtod() (3).

atoi() (3)

 

atol() (3)

 

attroff() (3V) -- SysV

 

attron() (3V) -- SysV

 

attrset() (3V) -- SysV

 

audit_args() (3)

 

audit_text() (3)

 

authdes_create() (3N)

This routine is still available, but is superseded by authdes_seccreate() (3N) in SunOS release 5.7, or the ABI, SVID, or SVR4.

authdes_getucred() (3N)

 

auth_destroy() (3N)

 

authnone_create() (3N)

 

authunix_create() (3N)

This routine is still available, but is superseded by authsys_seccreate() (3N).

authunix_create _default() (3N)

This routine is still available, but is superseded by authsys_create_default() (3N).

Table C-2 Library Routines Reference Table: baudrate() through bzero()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

baudrate() (3V) -- SysV

 

bcmp() (3)

Now bcmp() (3C).

bcopy() (3)

S  

Now bcopy() (3C).

beep() (3V) -- SysV

 

bindresvport() (3N)

 

bootparam() (3R)

 

box() (3V)

The SunOS release 4 version of box() is a function while the SunOS release 5.7, or the SVID or SVR4 version of box(win,verch,horch)() is a macro that calls

wborder(win, verch, verch, horch, horch, 0, 0, 0, 0)().

Default values defined in <curses.h> in the SunOS release 5.7, or the SVID or SVR4 environment--ACS_ULCORNER, ACS_URCORNER, ACS_BLCORNER, and ACS_BRCORNER, are used to draw the upper left and right and bottom left and right corners of the box around the window. Also, the type of arguments verch and horch in the SunOS release 4 software is char, while in SunOS release 5.7, or the SVID or SVR4 versions they are ch type.

box() (3V) -- SysV

 

bsearch() (3)

 

byteorder() (3N)

 

bzero() (3)

Now bzero() (3C).

Table C-3 Library Routines Reference Table: calloc() through cv_waiters()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

calloc() (3)

 

callrpc() (3N)

A  

This routine is still available, but is superseded by rpc_call() (3N).

catclose() (3C)

 

catgetmsg() (3C)

A  

In the SunOS release 5.7, or the ABI, SVID, or SVR4 environment, use catgets() (3C) followed by strncpy() (3) to copy the catalog message from the internal buffer area to a program buffer.

catgets() (3C)

 

catopen() (3C)

 

cbc_crypt() (3)

 

cbreak() (3V) -- SysV

 

cbrt() (3M)

 

ceil() (3M)

 

cfgetispeed() (3V)

 

cfgetospeed() (3V)

 

cfree() (3)

A  

This routine is replaced by

void free(void*ptr)().

Refer to malloc() (3C)) man page.

cfsetispeed() (3V)

 

cfsetospeed() (3V)

 

CHECK() (3L)

 

circle() (3X)

 

clear() (3V) -- SysV

 

clearerr() (3V) -- SysV

 

clearok() (3V) -- SysV

 

clnt_broadcast() (3N)

S  

This routine is still available, but is superseded by rpc_broadcast() (3N).

clnt_call() (3N)

 

clnt_control() (3N)

 

clnt_create() (3N)

 

clnt_destroy() (3N)

 

clnt_freeres() (3N)

 

clnt_geterr() (3N)

 

clnt_pcreateerror() (3N)

 

clnt_perrno() (3N)

 

clnt_perror() (3N)

 

clnt_spcreateerror() (3N)

 

clnt_sperrno() (3N)

 

clnt_sperror() (3N)

 

clntraw_create() (3N)

This routine is still available, but is superseded by clnt_raw_create() (3N) in the SunOS release 5.7 and SVR4 software.

clnttcp_create() (3N)

This routine is still available, but is superseded by the clnt_create() (3N), clnt_tli_create() (3N), and clnt_vc_create() (3N) routines in SunOS release 5.7, or the ABI, SVID, or SVR4.

clntudp_bufcreate() (3N)

This routine is still available, but is superceded by clnt_create() (3N), clnt_tli_create() (3N), and clnt_dg_create() (3N) routines.

 

clntudp_create() (3N)

This routine is still available, but is superseded by the clnt_create() (3N), clnt_tli_create() (3N), and clnt_dg_create() (3N) routines .

clock() (3C)

 

closedir() (3V)

 

closedir() (3V) -- SysV

 

closelog() (3)

 

closepl() (3X)

 

clrtobot() (3V) -- SysV

 

clrtoeol() (3V) -- SysV

 

compound() (3M)

 

cont() (3X)

 

copysign() (3M)

 

copywin() (3V) -- SysV

 

cos() (3M)

For arguments that are much lower than zero, the SunOS release 5.7, or the SVID or SVR4 version of these routines returns zero because of the loss of significance. In this case, a message indicating TLOSS (see

matherr() (3M)) appears on the standard output. For cases of partial loss of significance, a PLOSS error is generated, but no error is printed. In both cases, errno is set to ERANGE. In the SunOS release 4 version, an argument reduction takes place for values exceeding PI/4 in magnitude. The reduction could happen in software or hardware.

The variable fp_pi defined in <math.h> allows changing of the precision at runtime. The error exceptions occur in the IEEE 754 spirit for both versions.

cosh() (3M)

 

crmode() (3X)

This routine is replaced by cbreak() . See curs_inopts() (3X).

_crypt() (3)

 C

The crypt() (3C) routine provides similar functionality.

crypt() (3)

In the SunOS release 4 version, the first two characters of the salt argument are interpreted and checked for (##and#$) as special cases in order to call additional authentication routines (pwdauth() (3) and grpauth() (3) respectively). If these functions return TRUE, the salt is returned from crypt(). Otherwise, NULL is returned. In the SunOS release 5.7, or the SVID or SVR4 version, this functionality is not supported.

ctermid() (3V) -- SysV

 

ctime() (3V)

The SunOS release 4 tm structure contains two fields not present in the SunOS release 5.7, or the ABI, SVID, or SVR4 tm structure: tm_zone and tm_gmtoff. Instead, the SunOS release 5.7, or the ABI, SVID, or SVR4 version uses the external variable timezone to contain the difference (in seconds) between GMT and local standard time, and the external variable daylight to indicate if daylight savings should be applied. Additionally, the SunOS release 5.7, or the ABI, SVID, or SVR4 version uses an external variable tzname to store standard and summer time zone names. These external variables (timezone, daylight, and tzname) are supported by the SunOS release 4 System V ctime() (3V) library routines.

The use of the environmental variable TZ differs between the SunOS release 4 and the SunOS release 5.7, or the ABI, SVID, or SVR4 versions. In the SunOS release 4 version, TZ contains the pathname of tzfile-format file from which to read the time conversion information. In the SunOS release 5.7, or the ABI, SVID, or SVR4 versions, TZ itself contains the time conversion information (of different format than the tzfile-format).

curs_set() (3V) -- SysV

 

cuserid() (3V)

 

cv_broadcast() (3L)

 

cv_create() (3L)

 

cv_destroy() (3L)

 

cv_enumerate() (3L)

 

cv_notify() (3L)

 

cv_send() (3L)

 

cv_wait() (3L)

 

cv_waiters() (3L)

 

Table C-4 Library Routines Reference Table: dbm_clearerr() through dysize()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

dbm_clearerr() (3)

 

dbm_close() (3X)

The dbm_close() (3) routine provides similar functionality.

dbm_delete() (3)

The dbm_delete() (3) routine provides similar functionality.

dbm_error() (3)

 

dbm_fetch() (3)

 

dbm_firstkey() (3)

 

dbm_nextkey() (3)

 

dbm_open() (3)

 

dbm_store() (3)

 

dbmclose() (3X)

 

dbminit() (3X)

 

decimal_to_double() (3)

 

decimal_to_extended() (3)

 

decimal_to_floating() (3)

 

decimal_to_single() (3)

 

def_prog_mode() (3V) -- SysV

 

def_shell_mode() (3V) -- SysV

 

del_curterm() (3V) -- SysV

 

delay_output() (3V) -- SysV

 

delch() (3V) -- SysV

 

delete() (3X)

 

deleteln() (3V) -- SysV

 

des_crypt() (3)

 

des_setparity() (3)

 

delwin() (3V) -- SysV

 

dlclose() (3X)

 

dlerror() (3X)

 

dlopen() (3X)

 

dlsym() (3X)

 

dn_comp() (3)

 

dn_expand() (3)

 

double_to_decimal() (3)

 

doupdate() (3V) -- SysV

 

draino() (3V) -- SysV

 

drand48() (3)

 

dysize() (3V)

 

Table C-5 Library Routines Reference Table: ecb_crypt() through extended_to_decimal()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

ecb_crypt() (3)

 

echo() (3V) -- SysV

 

echochar() (3V) -- SysV

 

econvert() (3)

 

ecvt() (3)

 

edata() (3)

 

encrypt() (3)

 

end() (3)

 

endac() (3)

 

endexportent() (3)

The /etc/dfs/sharetab file replaces /etc/exports. Refer to share (1M), unshare (1M), and sharetab (4) for more information.

endfsent() (3)

This routine is replaced by fclose() (3).

endgraent() (3)

 

endgrent() (3V)

 

endhostent() (3N)

 

endmntent() (3)

This routine is replaced by fclose() (3).

endnetent() (3N)

 

endnetgrent() (3N)

 

endprotoent() (3N)

 

endpwaent() (3)

 

endpwent() (3V)

 

endrpcent() (3N)

 

endservent() (3N)

 

endttyent() (3)

Refer to ttymon (1) and ttydefs (4) for information about SunOS release 5.7 tty system.

endusershell() (3)

 

endwin() (3V)

The SunOS release 4 version of endwin() return value is undefined, while the SunOS release 5.7, or the SVID or SVR4 version returns OK upon success; otherwise , it returns ERR.

endwin() (3V) -- SysV

 

erand48() (3)

 

erase() (3V) -- SysV

 

erasechar() (3V) -- SysV

 

erf() (3M)

 

erfc() (3M)

 

errno() (3)

 

etext() (3)

 

ether() (3R)

 

ether_aton() (3N)

 

ether_hostton() (3N)

 

ether_line() (3N)

 

ether_ntoa() (3N)

 

ether_ntohost() (3N)

 

exc_bound() (3L)

 

exc_handle() (3L)

 

exc_notify() (3L)

 

exc_on_exit() (3L)

 

exc_raise() (3L)

 

exc_unhandle() (3L)

 

exc_uniqpatt() (3L)

 

execl() (3V)

C  

 

execl() (3V) -- SysV

S  

 

execle() (3V)

 

execle() (3V) -- SysV

 

execlp() (3V)

C  

 

execlp() (3V) -- SysV

 

execv() (3V)

C  

 

execv() (3V) -- SysV

 

execvp() (3V)

C  

 

execvp() (3V) -- SysV

 

exit() (3)

Both the SunOS release 4 and SunOS release 5.7, or the ABI, SVID, or SVR4 exit() routines do additional processing before the process exits. The SunOS release 4 exit() calls all functions registered by the on_exit() (3) routine while SunOS release 5.7, or the ABI, SVID, or SVR4 exit() calls all functions registered by the atexit() routine. If no functions have been added using the on_exit() (3) routine, then the SunOS release 4 and SunOS release 5.7, or the ABI, SVID, or SVR4 versions of exit() are compatible.

exp() (3M)

In the SunOS release 5.7, or the SVID or SVR4 version, exp() returns HUGE for overflow and 0 for underflow. In the SunOS release 4 version, the return values are IEEE overflow and underflow (implementation-defined). In the SunOS release 4 version, since HUGE is defined as +Infinity, exp()(HUGE) and exp()(-HUGE) do not overflow or underflow, hence no errno is produced. The SunOS release 5.7, or the SVID or SVR4 version sets errno to ERANGE.

exp10() (3M)

 

exp2() (3M)

 

expm1() (3M)

 

exportent() (3)

A  

The /etc/dfs/sharetab file replaces /etc/exports. Refer to share (1M), unshare (1M), and sharetab (4) man pages for more information.

extended_to_decimal() (3)

 

Table C-6 Library Routines Reference Table: fabs() through fwrite()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

fabs() (3M)

 

fclose() (3S)

 

fconvert() (3)

 

fcvt() (3)

 

fdopen() (3V)

 

feof() (3V)

 

ferror() (3V)

 

fetch() (3X)

A  

This routine is replaced by dbm_fetch() (3) in the SunOS release 5.7 software.

fflush() (3S)

 

ffs() (3)

 

fgetc() (3V)

 

fgetgraent() (3)

 

fgetgrent() (3V)

 

fgetpwaent() (3)

 

fgetpwent() (3V)

 

fgets() (3S)

 

fileno() (3V)

 

file_to_decimal() (3)

 

filter() (3V) -- SysV

 

finite() (3M)

 

firstkey() (3X)

This routine is replaced by dbm_firstkey() (3) in the SunOS release 5.7 software.

fixterm() (3V)

The reset_prog_mode() (3X) routine provides similar functionality.

flash() (3V) -- SysV

 

floatingpoint() (3)

 

floor() (3M)

 

flushinp() (3V) -- SysV

 

flusok() (3X)

 

fmod() (3M)

In the SunOS release 5.7, or the SVID or SVR4 version, fmod(x,0.0)() returns x and sets errno to EDOM. In the SunOS release 4 version, the same call returns NaN in conformance with 4.3 BSD and in the spirit of ANSI/IEEE Std 754-1985.

fopen() (3V)

 

fp_class() (3M)

 

fprintf() (3V)

 

fputc() (3S)

 

fputs() (3S)

 

fread() (3S)

 

free() (3)

 

freopen() (3V)

 

frexp() (3M)

 

fscanf() (3V)

 

fseek() (3S)

 

ftell() (3S)

 

ftime() (3V)

Now ftime() (3C).

ftok() (3)

 

ftw() (3)

 

func_to_decimal() (3)

 

fwrite() (3S)

 

Table C-7 Library Routines Reference Table: gamma() through gtty()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

gamma() (3M)

 

garbagedlines() (3V) -- SysV

 

gcd() (3X)

 

gconvert() (3)

 

gcvt() (3)

 

getacdir() (3)

 

getacflg() (3)

 

getacinfo() (3)

 

getacmin() (3)

 

getauditflagsbin() (3)

 

getauditflagschar() (3)

 

getbegyx() (3V) -- SysV

 

getc() (3V)

 

getcap() (3X)

 

getch() (3V)

In the SunOS release 5.7, or the SVID or SVR4 software, if the window is not a pad, and it has been moved or modified since the last call to wrefresh(), wrefresh() will be called before another character is read. In the SunOS release 4 software, wrefresh() will not be called under these circumstances.

getch() (3V) -- SysV

 

getchar() (3V)

 

getcwd() (3V)

The SVR4 and SunOS release 5.7 getcwd() routine is compatible with the SunOS release 4 version getcwd(). In the SunOS release 4, if buf is a NULL pointer, getcwd() obtains size bytes of space using malloc() (3). This capability is not supported by the ABI and SVID version of getcwd().

getenv() (3V)

 

getexportent() (3)

The /etc/dfs/sharetab file replaces /etc/exports. Refer to share (1M), unshare (1M), and sharetab (4) man pages for more information.

getexportopt() (3)

The /etc/dfs/sharetab file replaces /etc/exports. Refer to share (1M), unshare (1M), and sharetab (4) man pages for more information.

getfauditflags() (3)

 

getfsent() (3)

This routine is replaced by getvfsent() (3).

getfsfile() (3)

This routine is replaced by getvfsfile() (3).

getfsspec() (3)

This routine is replaced by getvfsfile() (3).

getfstype() (3)

This routine is replaced by getvfsany() (3).

getgraent() (3)

 

getgranam() (3)

 

getgrent() (3V)

 

getgrgid() (3V)

 

getgrnam() (3V)

 

gethostbyaddr() (3N)

 

gethostbyname() (3N)

 

gethostent() (3N)

 

getlogin() (3V)

 

getmaxyx() (3V) -- SysV

 

getmntent() (3)

The SunOS release 4 getmntent() routine and the SunOS release 5.7, SVID, or SVR4 getmntent() routine are incompatible. The SunOS release 4 getmntent() returns a pointer to an object of type mntent while SunOS release 5.7, or the SVID or SVR4 getmntent() returns int. Additionally, SunOS release 5.7, or the SVID or SVR4 getmntent() uses a different incompatible structure type (mnttab) to return the file entry type. Additionally, null pointers are returned for corresponding `-' entries in /etc/vfstab.

get_myaddress() (3N)

This routine is still available, but is superseded by netdir_getbyname() (3N).

getnetbyaddr() (3N)

 

getnetbyname() (3N)

 

getnetent() (3N)

 

getnetgrent() (3N)

 

getnetname() (3N)

 

getopt() (3)

 

getpass() (3V)

 

getprotobyname() (3N)

 

getprotobynumber() (3N)

 

getprotoent() (3N)

 

getpublickey() (3R)

 

getpw() (3)

 

getpwaent() (3)

 

getpwanam() (3)

 

getpwent() (3V)

 

getpwnam() (3V)

 

getpwuid() (3V)

 

getrpcbyname() (3N)

 

getrpcbynumber() (3N)

 

getrpcent() (3N)

 

getrpcport() (3R)

pmap_getport() can be used to get the same result.

gets() (3S)

 

getsecretkey() (3R)

 

getservbyname() (3N)

 

getservbyport() (3N)

 

getservent() (3N)

 

getstr() (3V) -- SysV

 

getsubopt() (3)

 

getsyx() (3V) -- SysV

 

gettext() (3)

In SunOs 5.4 gettext (3)a searches NLSPATH first for the location of the LC_MESSAGES directory.

gettmode() (3V)

The SunOS release 5.7 header file <curses.h> automatically includes the headers <stdio.h> and <unctrl.h> and if CURS_PERFORMANCE is defined, it defines the most commonly used routines as macros for increased performance.

gettmode() (3V) -- SysV

S  

 

getttyent() (3)

Refer to ttymon (1) and ttydefs (4) for information about the SunOS release 5.7 tty system.

getttynam() (3)

Refer to ttymon (1) and ttydefs (4) for information about the SunOS release 5.7 tty system.

getusershell() (3)

 

getw() (3V)

 

getwd() (3)

Now getwd() (3C).

getyx() (3V) -- SysV

 

gmtime() (3V)

See ctime() (3V).

grpauth() (3)

 

gsignal() (3)

 

gtty() (3C)

The termio (7) interface provides similar functionality.

Table C-8 Library Routines Reference Table: halfdelay() through hypot()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

halfdelay() (3V) -- SysV

 

has_ic() (3V) -- SysV

 

has_il() (3V) -- SysV

 

hasmntopt() (3)

 

hcreate() (3)

 

hdestroy() (3)

 

host2netname() (3N)

 

hsearch() (3)

 

HUGE() (3M)

In the SunOS release 4 software, HUGE is defined in <math.h> as infinity() (3M), which produces IEEE Infinity. In SunOS release 5.7, SVID, or SVR4 versions, HUGE is defined in <math.h> as a machine-dependent constant.

HUGE_VAL() (3M)

In the SunOS release 4 software, HUGE_VAL is defined in <math.h> as infinity() (3M), which produces IEEE Infinity. In the SunOS release 5.7, SVID, or SVR4 versions, HUGE_VAL is defined in <math.h> as a machine-dependent constant.

hypot() (3M)

 

Table C-9 Library Routines Reference Table: idlok() through itom()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

idlok() (3V)

The SunOS release 4 version of idlok() sets an insert/delete line flag for the window, which is ignored, while SunOS release 5.7, or the SVID, or SVR4 version of idlok() sets a flag that controls whether the insert/delete line feature is actually used.

idlok() (3V) -- SysV

 

ieee_flags() (3M)

 

ieee_functions() (3M)

 

ieee_handler() (3M)

 

ieee_retrospective() (3M)

 

ilogb() (3M)

 

inch() (3V) -- SysV

 

index() (3)

Now is index() (3C).

inet_lnaof() (3N)

 

inet_makeaddr() (3N)

 

inet_netof() (3N)

 

inet_network() (3N)

 

inet_ntoa() (3N)

 

infinity() (3M)

 

initgroups() (3)

 

initscr() (3V)

The SunOS release 4 version of initscr() is a function while the SunOS release 5.7, SVID, or SVR4 version is a macro that calls initscr32(). If errors occur, the SunOS release 4 initscr() function returns ERR, while the SunOS release 5.7, SVID, or SVR4 version writes an appropriate error message to the standard error and exits.

initscr() (3V) -- SysV

 

initstate() (3)

S  

Now initstate() (3C).

innetgr() (3N)

 

insch() (3V) -- SysV

 

insertln() (3V) -- SysV

 

insque() (3)

 

intrflush() (3V) -- SysV

 

ipalloc() (3R)

 

irint() (3M)

Replaced by (int) rint().

isalnum() (3V)

 

isalpha() (3V)

 

isascii() (3V)

 

isatty() (3V)

 

iscntrl() (3V)

 

isdigit() (3V)

 

isendwin() (3V) -- SysV

 

isgraph() (3V)

 

isinf() (3M)

 

islower() (3V)

 

isnan() (3M)

 

isnormal() (3M)

 

isprint() (3V)

 

ispunct() (3V)

 

issecure() (3)

 

isspace() (3V)

 

issubnormal() (3M)

 

isupper() (3V)

 

isxdigit() (3V)

 

iszero() (3M)

 

itom() (3X)

 

Table C-10 Library Routines Reference Table: j0() through jrand48()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

j0() (3M)

In the SunOS release 4 software, j0(HUGE)(), j1(HUGE)(), and jn(4,HUGE)() will return zero with no error indication. In the SunOS release 5.7, SVID, or SVR4 software these routines will return zero, set errno to ERANGE, and print a message indicating a TLOSS math error on the standard error output.

j1() (3M)

 

jn() (3M)

 

jrand48() (3)

 

Table C-11 Library Routines Reference Table: key_decryptsession() through kvm_write()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

key_decryptsession() (3N)

 

key_encryptsession() (3N)

 

key_gendes() (3N)

 

key_setsecret() (3N)

 

keyname() (3V) -- SysV

 

keypad() (3V) -- SysV

 

killchar() (3V) -- SysV

 

klm_prot() (3R)

 

kvm_close() (3K)

 

kvm_getcmd() (3K)

 

kvm_getproc() (3K)

 

kvm_getu() (3K)

 

kvm_nextproc() (3K)

 

kvm_nlist() (3K)

 

kvm_open() (3K)

 

kvm_read() (3K)

 

kvm_setproc() (3K)

 

kvm_write() (3K)

 

Table C-12 Library Routines Reference Table: l3tol() through lwp_yield()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

l3tol() (3C)

 

l64a() (3)

 

label() (3X)

 

lcong48() (3)

 

ldaclose() (3X)

 

ldahread() (3X)

 

ldaopen() (3X)

 

ldclose() (3X)

 

ldexp() (3M)

The SunOS release 4 version of ldexp() differs from the SunOS release 5.7, ABI, SVID, or SVR4 version only in the case of overflow. The SunOS release 4 ldexp() returns (+/-) 1.0e999 if the correct value would overflow, while the SunOS release 5.7, ABI, SVID, or SVR4 ldexp() returns (+/-) HUGE (according to the sign of value). Both versions set errno to ERANGE.

ldfcn() (3)

 

ldfhread() (3X)

 

ldgetname() (3X)

 

ldlinit() (3X)

 

ldlitem() (3X)

 

ldlread() (3X)

 

ldlseek() (3X)

 

ldnlseek() (3X)

 

ldnrseek() (3X)

 

ldnshread() (3X)

 

ldnsseek() (3X)

 

ldohseek() (3X)

 

ldopen() (3X)

 

ldrseek() (3X)

 

ldshread() (3X)

 

ldsseek() (3X)

 

ldtbindex() (3X)

 

ldtbread() (3X)

 

ldtbseek() (3X)

 

leaveok() (3V) -- SysV

 

lfind() (3)

 

lgamma() (3M)

 

line() (3X)

 

linemod() (3X)

 

localdtconv() (3)

 

localeconv() (3)

 

localtime() (3V)

See ctime() (3V).

lockf() (3)

 

log() (3M)

In the SunOS release 4 software, when log() produces undefined results (for example, log(-1.0)()), it returns NaN, with an EDOM error and a DOMAIN matherr. In the SunOS release 5.7, SVID or SVR4 version, it returns -HUGE with an EDOM error and DOMAIN matherr.

log10() (3M)

In the SunOS release 4 software, when log10() produces undefined results (for example, log10(0)()) it returns NaN, with an EDOM error and a DOMAIN matherr. In the SunOS release 5.7, SVID, or SVR4 version, it returns -HUGE with an EDOM error and DOMAIN matherr.

log1p() (3M)

 

log2() (3M)

 

logb() (3M)

 

_longjmp() (3)

 C

Now _longjmp() (3C). The siglongjmp() (3) routine provides similar functionality.

longjmp() (3V)

 

longname() (3V)

The SunOS release 4 version of longname() requires two arguments, termbuf and name, which do not exist in the SunOS release 5.7, SVID, or SVR4 version. termbuf is a pointer to the terminal entry from termcap, which is replaced by terminfo. name is a pointer to a buffer to hold the result. Since both versions return the same information, simply remove the two arguments from the SunOS release 4 call to port to the SunOS release 5.7, SVID, or SVR4 environment.

longname() (3V) -- SysV

 

lrand48() (3)

 

lsearch() (3)

 

ltol3() (3C)

 

lwp_checkstkset() (3L)

 

lwp_create() (3L)

 

lwp_ctxinit() (3L)

 

lwp_ctxmemget() (3L)

 

lwp_ctxmemset() (3L)

 

lwp_ctxremove() (3L)

 

lwp_ctxset() (3L)

 

lwp_datastk() (3L)

 

lwp_destroy() (3L)

 

lwp_enumerate() (3L)

 

lwp_errstr() (3L)

 

lwp_fpset() (3L)

 

lwp_geterr() (3L)

 

lwp_getregs() (3L)

 

lwp_getstate() (3L)

 

lwp_join() (3L)

 

lwp_libcset() (3L)

 

lwp_newstk() (3L)

 

lwp_perror() (3L)

 

lwp_ping() (3L)

 

lwp_resched() (3L)

 

lwp_resume() (3L)

 

lwp_self() (3L)

 

lwp_setpri() (3L)

 

lwp_setregs() (3L)

 

lwp_setstkcache() (3L)

 

lwp_sleep() (3L)

 

lwp_stkcswset() (3L)

 

lwp_suspend() (3L)

 

lwp_yield() (3L)

 

Table C-13 Library Routines Reference Table: madd() through mvwscanw()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

madd() (3X)

 

madvise() (3)

 

malloc() (3)

 

malloc_debug() (3)

 

malloc_verify() (3)

 

mallocmap() (3)

 

matherr() (3M)

 

max_normal() (3M)

 

max_subnormal() (3M)

 

mblen() (3)

 

mbstowcs() (3)

 

mbtowc() (3)

 

mcmp() (3X)

 

mdiv() (3X)

 

memalign() (3)

 

memccpy() (3)

 

memchr() (3)

 

memcmp() (3)

 

memcpy() (3)

 

memset() (3)

 

meta() (3V) -- SysV

 

mfree() (3X)

 

min() (3X)

 

min_normal() (3M)

 

min_subnormal() (3M)

 

mkstemp() (3)

The mktemp() (3C) routine provides similar functionality.

mktemp() (3)

The SunOS release 4 mktemp() routine replaces the trailing X characters of template with a letter and the current process ID. The SunOS release 5.7, ABI, SVID, or SVR4 version only specifies that it will replace the six trailing Xs with a character string that can be used to create a unique file name. If the application does not depend on the specific file name (that is, the application only cares that the name is unique), the SunOS release 4 and SunOS release 5.7, ABI, SVID, or SVR4 versions of mktemp() are compatible.

mlock() (3)

 

mlockall() (3)

 

modf() (3M)

 

mon_break() (3L)

 

mon_cond_enter() (3L)

 

mon_create() (3L)

 

mon_destroy() (3L)

 

mon_enter() (3L)

 

mon_enumerate() (3L)

 

mon_exit() (3L)

 

mon_waiters() (3L)

 

moncontrol() (3)

A  

This routine is replaced by profil() (2).

MONITOR() (3L)

 

monitor() (3)

The SunOS release 4 monitor() routine differs from the SunOS release 5.7, ABI, SVID, or SVR4 version in the following respects: In the SunOS release 4 software, to profile the entire program it is sufficient to use:

extern etext();

monitor(N_TXTOFF(0),etext, buf, bufsize, nfunc)();

While with the SunOS release 5.7, ABI, SVID, or SVR4 monitor() routine, it is sufficient to use:

extern int etext();

monitor((int(*)())2,etext, buf, bufsize, nfunc)();

In the SunOS release 4 software, to stop execution monitoring and write the results to the buf defined previously, use: 

monitor(0)();

While with the SunOS release 5.7, ABI, SVID, or SVR4 monitor() routine, use:

monitor((int(*)())0,(int(*)())0,(WORD*) 0, 0,0)();

The prof (1) command can then be used to examine the results.

monstartup() (3)

This routine is replaced by profil() (2).

mout() (3X)

 

move() (3V) -- SysV

 

mrand48() (3)

 

msg_enumrecv() (3L)

 

msg_enumsend() (3L)

 

msg_recv() (3L)

 

MSG_RECVALL() (3L)

 

msg_reply() (3L)

 

msg_send() (3L)

 

msub() (3X)

 

msync() (3)

The following errno flag is valid for the SunOS release 4 version of this system call but is not valid in the SunOS release 5.7, ABI, SVID, or SVR4 version: EIO. In the SunOS release 4 version errno flag is set to EPERM if MS_INVALIDATE was specified and one or more of the pages is locked in memory, while in the SunOS release 5.7, ABI, SVID, or SVR4 version, errno is set to EBUSY instead.

mtox() (3X)

 

mult() (3X)

 

munlock() (3)

 

munlockall() (3)

 

mvaddch() (3V) -- SysV

 

mvaddstr() (3V) -- SysV

 

mvcur() (3V)

The return value of the SunOS release 4 version of mvcur() is undefined, while the SunOS release 5.7, SVID, or SVR4 version returns OK upon success; otherwise, it returns ERR.

mvcur() (3V) -- SysV

 

mvdelch(3V) -- SysV

 

mvgetch() (3V) -- SysV

In the SunOS release 5.7, SVID, or SVR4 version, if the window is not a pad, and it has been moved or modified since the last call to wrefresh(), wrefresh() will be called before another character is read. In the SunOS release 4 software, wrefresh() will not be called under these circumstances.

mvgetstr() (3V) -- SysV

See getstr() (3V) -- Sys V.

mvinch() (3V) -- SysV

 

mvinsch() (3V) -- SysV

 

mvprintw() (3V)

See wprintw() (3V).

mvprintw() (3V) -- SysV

 

mvscanw() (3V)

See wscanw() (3V).

mvscanw() (3V) -- SysV

 

mvwaddch() (3V) -- SysV

 

mvwaddstr()(3V -- SysV

 

mvwdelch() (3V) -- SysV

 

mvwgetch() (3V) -- SysV

In the SunOS release 5.7, SVID, or SVR4 version, if the window is not a pad and it has been moved or modified since the last call to wrefresh(), wrefresh() will be called before another character is read. In the SunOS release 4 software, wrefresh() will not be called under these circumstances.

mvwgetstr() (3V) -- SysV

See getstr() (3V) -- Sys V.

mvwin() (3V)

The SunOS release 4 version of mvwin() can be used to move subwindows, while the SunOS release 5.7, SVID, or SVR4 mvderwin() should be used to move subwindows (or derived windows) inside their parent windows.

mvwin() (3V) -- SysV

 

mvwinch() (3V) -- SysV

 

mvwinsch() (3V) -- SysV

 

mvwprintw() (3V)

 

mvwprintw() (3V) -- SysV

 

mvwscanw() (3V)

See wscanw() (3V).

mvwscanw() (3V) -- SysV

 

Table C-14 Library Routines Reference Table: napms() through ntohs()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

napms() (3V) -- SysV

 

net_addr() (3N)

 

netname2host() (3N)

 

netname2user() (3N)

 

newpad() (3V) -- SysV

 

newterm() (3V) -- SysV

 

newwin() (3V) -- SysV

 

nextafter() (3M)

 

nextkey() (3X)

This routine is replaced by dbm_nextkey() (3).

nice() (3V)

 

nint() (3M)

 

nl() (3V) -- SysV

 

nl_init() (3C)

 

nl_langinfo() (3C)

 

nlist() (3V)

The SunOS release 4 version of nlist() returns the number of symbols not found, or -1 on error. The SunOS release 5.7, SVID, or SVR4 version returns 0 on success, and -1 on error. Note that the SunOS release 5.7 nlist() assumes an ELF format file and the 4.1 nlist() works only on a.out format files.

nlm_prot() (3R)

 

nocbreak() (3V) -- SysV

 

nocrmode() (3X)

 

nodelay() (3V) -- SysV

 

noecho() (3V) -- SysV

 

nonl() (3V) -- SysV

 

nonstandard_arithmetic() (3M)

 

noraw() (3V) -- SysV

 

notimeout() (3V) -- SysV

 

nrand48() (3)

 

ntohl() (3N)

 

ntohs() (3N)

 

Table C-15 Library Routines Reference Table: on_exit() through overwrite()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

on_exit() (3)

A

This routine is replaced by atexit(). Note that functions registered using atexit() are called without arguments.

opendir() (3V)

The SunOS release 5.7, ABI, SVID, or SVR4 DIR structure does not have the dd_bsize and dd_off fields. Also, the SunOS release 5.7, ABI, SVID, or SVR4 dd_loc and dd_size fields are int rather than long.

The SunOS release 5.7, ABI, SVID, or SVR4 version includes <sys/types.h> while the SunOS release 4 version does not. The SunOS release 5.7, ABI, SVID, or SVR4 version sets errno to ENOENT when the directory name argument points to an empty string.

opendir() (3V) -- SysV

 

openlog() (3)

 

openpl() (3X)

 

optarg() (3)

 

optind() (3)

 

overlay() (3V)

The SunOS release 4 overlay() is a function while the SunOS release 5.7, SVID, or SVR4 version of overlay(srcwin,dstwin)() is a macro that calls _overlap((srcwin), (dstwin), TRUE)().

The SunOS release 4 version of overlay() return value is undefined, while SunOS release 5.7, or the SVID or SVR4 version returns OK upon success otherwise it returns ERR.

overlay() (3V) -- SysV

 

overwrite() (3V)

The SunOS release 4 version of overwrite() is a function while the SunOS release 5.7, SVID, or SVR4 version of overwrite(srcwin, dstwin)() is a macro that calls _overlap((srcwin), (dstwin), FALSE)().

The SunOS release 4 overwrite() return value is undefined, while the SunOS release 5.7, SVID, or SVR4 version returns OK upon success; otherwise, it returns ERR.

overwrite() (3V) -- SysV

 

Table C-16 Library Routines Reference Table: passwd2des() through pwdauth()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

passwd2des() (3R)

 

pause() (3V)

 

pclose() (3S)

 

pechochar() (3V) -- SysV

 

perror() (3)

 

plock() (3)

 

plot() (3X)

 

pmap_getmaps() (3N)

This routine is still available, but is superseded by rpcb_getmaps() (3N).

pmap_getport() (3N)

This routine is still available, but is superseded by rpcb_getaddr() (3N).

pmap_rmtcall() (3N)

This routine is still available, but is superseded by rpcb_rmtcall() (3N).

pmap_set() (3N)

This routine is still available, but is superseded by rpcb_set() (3N).

pmap_unset() (3N)

This routine is still available, but is superseded by rpcb_unset() (3N).

pnoutrefresh() (3V) -- SysV

 

pnp() (3R)

 

pod_getexit() (3L)

 

pod_getmaxpri() (3L)

 

pod_getmaxsize() (3L)

 

pod_setexit() (3L)

 

pod_setmaxpri() (3L)

 

point() (3X)

 

popen() (3S)

 

pow() (3M)

In the SunOS release 5.7, SVID, or SVR4 version, the routine returns 0 when x == 0 and y is non-positive or when x<0 and y is not integral. For overflow or underflow, pow() returns +/-HUGE or 0, respectively. In both cases, errno is set. In the SunOS release 4 version, pow(x,0.0)() is 1 (which is not mentioned in the SunOS release 5.7, SVID, or SVR4 version); it returns NaN when x < 0 and y not integral, returns +/-infinity when x==0 and y < 0. On overflow and underflow, it returns IEEE implementation-dependent values. In the SunOS release 4 version, since HUGE is defined as +Infinity, pow(10.0,HUGE)() and

pow(10.0,-HUGE)() do not underflow or overflow and therefore no errno is produced. In the SunOS release 5.7, SVID, or SVR4 software, these functions set errno to ERANGE.

prefresh() (3V) -- SysV

 

printf() (3V)

See fprintf (3).

printw() (3V)

The SunOS release 5.7, SVID, or SVR4 version of printw() returns the integer ERR upon failure and an integer value other than ERR upon successful completion. The SunOS release 4 version returns void. The SunOS release 5.7, SVID, or SVR4 headers <curses.h> automatically include the headers <stdio.h> and <unctrl.h> and if CURS_PERFORMANCE is defined, it defines most commonly used routines as macros for increased performance.

printw() (3V) -- SysV

 

prof() (3)

The profil() (2) routine provides similar functionality.

psignal() (3)

The sig argument is defined as an unsigned int in the SunOS release 4 versionbut is defined as an int in the SVR4 and SunOS release 5.7 versions.

putc() (3S)

 

putchar() (3S)

 

putenv() (3)

 

putp() (3V) -- SysV

 

putpwent() (3)

 

puts() (3S)

 

putw() (3S)

 

pwdauth() (3)

 

Table C-17 Library Routines Reference Table: qsort() through quiet_nan()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

qsort() (3)

 

quiet_nan() (3M)

 

Table C-18 Library Routines Reference Table: rand() through rwall()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

rand() (3V)

 

random() (3)

A

Now random() (3C). The drand48() (3C) (for SunOS release 5.7, SVID, or SVR4 software) or rand() (3C) routines provide similar functionality.

raw() (3V) -- SysV

 

rcmd() (3N)

 

readdir() (3V)

The dirent structures of SunOS release 4 readdir() and the ABI and SVID versions only have the d_name field in common. The SunOS release 4 readdir() supports an obsolete data structure direct defined in <sys/dir.h>, which is no longer supported by the SunOS release 5.7, ABI, SVID or SVR4 software. Applications must migrate to the dirent structure defined in <dirent.h>. SunOS release 5.7, ABI, SVID, or SVR4 readdir() updates the directories last accessed time. The dirent structures of SunOS release 4, SVR4, and SunOS release 5.7 only have the d_name and d_reclen fields in common. Also, SunOS release 5.7 dd_loc and dd_size fields are type int rather than type long as in SunOS release 4.

readdir() (3V) -- SysV

The SunOS release 4, SVR4, and SunOS release 5.7 dirent structures only have the d_name and d_reclen fields in common. Also, the SunOS release 5.7 dd_loc and dd_size fields are type int rather than type long as in the SunOS release 4 software. The SunOS release 5.7, ABI, SVID, or SVR4 readdir() updates the directory's last accessed time. The dirent structures of SunOS release 4 readdir() and the ABI and SVID versions only have the d_name field in common.

realloc() (3)

The SunOS release 4 realloc() accepts a pointer to a block freed since the most recent call to malloc(), calloc(), and realloc(). The SunOS release 5.7, ABI, SVID, or SVR4 realloc() does not accept such a pointer.

realpath() (3)

 

re_comp() (3)

Now re_comp() (3C). For the ABI and SVID version, the regexp() (3) general-purpose regular expression matching routines provide similar functionality. This routine is replaced by recomp() (3G).

re_exec() (3)

Now re_exec() (3C). For the ABI and SVID version, the regexp() (3) general-purpose regular expression matching routines provide similar functionality. This routine is replaced by regex() (3G).

refresh() (3V) -- SysV

 

registerrpc() (3N)

This routine is still available, but is superseded by rpc_reg() (3C).

remainder() (3M)

 

remexportent() (3)

The /etc/dfs/sharetab file replaces /etc/exports. Refer to share (1M), unshare (1M), and sharetab (4) man pages for more information.

remque() (3)

 

resetterm() (3V)

This routine is replaced by reset_shell_mode() (3).

res_init() (3)

 

res_mkquery() (3)

 

res_send() (3)

 

reset_prog_mode() (3V) -- SysV

 

reset_shell_mode() (3V) -- SysV

 

resetty() (3V) -- SysV

 

restartterm() (3V) -- SysV

 

rewind() (3S)

 

rewinddir() (3V)

 

rex() (3R)

 

rexec() (3N)

 

rindex() (3)

Now rindex() (3C).

rint() (3M)

ripoffline() (3V) -- SysV

 

rnusers() (3R)

 

rpc_createerr() (3N)

 

rpow() (3X)

 

rquota() (3R)

 

rresvport() (3N)

 

rstat() (3R)

 

rtime() (3N)

 

ruserok() (3N)

 

rusers() (3R)

 

rwall() (3R)

 

Table C-19 Library Routines Reference Table: SAMECV() through system()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

SAMECV() (3L)

 

SAMEMON() (3L)

 

SAMETHREAD() (3L)

 

saveterm() (3V)

This routine is replaced by def_prog_mode() (3X).

savetty() (3V) -- SysV

 

scalb() (3M)

In the SunOS release 5.7, SVID, or SVR4 version, the routine computes the value x * (r**n) where r is the radix of the machine's floating point arithmetic. When r == 2, scalb() is the same as ldexp() (3M) routine. On overflow, the routine returns +/- HUGE (depending on the sign of x). On underflow, it returns 0 and sets the errno. In the SunOS release 4 version, the routine computes the value x * (2**n) at all times; scalb() is not defined when y is not integral.

scalbn() (3M)

 

scandir() (3)

 

scanf() (3V)

 

scanw() (3V)

In the SunOS release 5.7, SVID, or SVR4 software the header <curses.h> automatically includes the headers <stdio.h> and <unctrl.h> and if CURS_PERFORMANCE is defined, it defines most commonly used routines as macros for increased performance.

scanw() (3V) -- SysV

 

scr_dump() (3V) -- SysV

 

scr_init() (3V) -- SysV

 

scr_restore() (3V) -- SysV

 

scroll() (3V)

scroll() returns ERR on failure and an indeterminate value for success. The SunOS release 4 version returns ERR on failure and OK (0) on success. In the SunOS release 5.7, SVID, or SVR4 version the header <curses.h> automatically includes the headers <stdio.h> and <unctrl.h> and if CURS_PERFORMANCE is defined, it defines most commonly used routines as macros for increased performance.

scroll() (3V) -- SysV

 

scrollok() (3V) -- SysV

 

seconvert() (3)

 

seed48() (3)

 

seekdir() (3V)

 

setac() (3)

 

setbuf() (3V)

 

setbuffer() (3V)

 

set_curterm() (3V) -- SysV

 

setegid() (3V)

 

seteuid() (3V)

 

setexportent() (3)

The /etc/dfs/sharetab file replaces /etc/exports. Refer to share (1M), unshare (1M), and sharetab (4) man pages for more information.

setfsent() (3)

A  

This routine is replaced by fopen() (3).

setgid() (3V)

 

setgraent() (3)

 

setgrent() (3V)

 

sethostent() (3N)

 

_setjmp() (3)

 C

Now setjmp() (3C). The sigsetjmp() (3) routine provides the same functionality when the savemask argument is zero. This saves the calling process's registers and stack environment, but not its signalmask.

setjmp() (3V)

 

setkey() (3)

 

setlinebuf() (3V)

 

setlocale() (3V)

 

setlogmask() (3)

 

setmntent() (3)

The fopen() (3) followed by the lockf() (3) routines provide similar functionality.

setnetent() (3N)

 

setnetgrent() (3N)

 

setprotoent() (3N)

 

setpwaent() (3)

 

setpwent() (3V)

 

setpwfile() (3V)

 

setrgid() (3V)

A  

This routine is replaced by setgid() (2).

setrpcent() (3N)

 

setruid() (3V)

A  

This routine is replaced by setuid() (2).

setscrreg() (3V) -- SysV

 

setservent() (3N)

 

setstate() (3)

S  

Now setstate() (3C).

setsyx() (3V) -- SysV

 

set_term() (3V) -- SysV

 

setterm() (3V)

This is an obsolete call that is replaced by setupterm() in both the SunOS release 4 and SunOS release 5.7 software.

See curs_terminfo() (3X). The call:

setupterm(term, 1, (int *) 0)() provides the same functionality as setterm(term)().

setterm() (3V) -- SysV

 

setttyent() (3)

Refer to ttymon (1) and ttydefs (4) man pages for information about SunOS release 5.7 tty system.

setuid() (3V)

 

setupterm() (3V) -- SysV

 

setusershell() (3)

 

setvbuf() (3V)

 

sfconvert() (3)

 

sgconvert() (3)

 

sigaction() (3V)

 

sigaddset() (3V)

 

sigdelset() (3V)

 

sigemptyset() (3V)

 

sigfillset() (3V)

 

sigfpe() (3)

 

siginterrupt() (3V)

A  

The sigaction() (2) routine provides similar functionality.

sigismember() (3V)

 

siglongjmp() (3V)

 

signal() (3V)

The following SunOS release 4 signal is not defined in the SVR4 and SunOS release 5.7 s()ignal() (2) routine: SIGLOST. The following SunOS release 4 signals are not defined in the ABI and SVID signal routine: SIGIO, SIGURG, SIGVTALRM, SIGPROF, SIGLOST.

ssignal() (3V)

 

signaling_nan() (3M)

 

signbit() (3M)

 

significand() (3M)

 

sigsetjmp() (3V)

 

sin() (3M)

For arguments that are much lower than zero, the SunOS release 5.7, SVID, or SVR4 version of these routines return zero because of the loss of significance. In this case, a message indicating TLOSS (see matherr() (3M)) appears on the standard output. For cases of partial loss of significance, a PLOSS error is generated but no error is printed. In both cases, errno is set to ERANGE. In the SunOS release 4 version, an argument reduction takes place for values exceeding PI/4 in magnitude. The reduction could happen in software or hardware. The variable fp_pi defined in <math.h> allows changing of the precision at runtime. The error exceptions occur in the IEEE 754 spirit for both versions.

sinh() (3M)

 

single_precision() (3M)

 

single_to_decimal() (3)

 

sleep() (3V)

 

slk_clear() (3V) -- SysV

 

slk_init() (3V) -- SysV

 

slk_label() (3V) -- SysV

 

slk_noutrefresh() (3V) -- SysV

 

slk_refresh() (3V) -- SysV

 

slk_restore() (3V) -- SysV

 

slk_set() (3V) -- SysV

 

slk_touch() (3V) -- SysV

 

sm_inter() (3R)

 

space() (3X)

 

spray() (3R)

 

sprintf() (3V)

See fprintf (3).

sqrt() (3M)

In the SunOS release 4 software, when sqrt() produces undefined results (for example, sqrt (-3.0)()) it returns NaN, with an EDOM error and a DOMAIN matherr. The SunOS release 5.7, SVID, or SVR4 version returns 0 with an EDOM error and a DOMAIN matherr.

srand() (3V)

In the SunOS release 4 software, argument seed is defined as int while in the SunOS release 5.7, ABI, SVID, or SVR4 software it is defined as unsigned int.

srand48() (3)

 

srandom() (3)

Now srandom() (3C). The srand48() (3C) (in the SunOS release 5.7, SVID, or SVR4 software) or srand() (3C) routines provide similar functionality.

sscanf() (3V)

 

ssignal() (3)

 

standard_arithmetic() (3M)

 

standend() (3V) -- SysV

 

standout() (3V) -- SysV

 

STKTOP() (3L)

 

store() (3X)

This routine is replaced by dbm_store() (3).

strcasecmp() (3)

 

strcat() (3)

 

strchr() (3)

 

strcmp() (3)

 

strcoll() (3)

 

strcpy() (3)

 

strcspn() (3)

 

strdup() (3)

 

strftime() (3V)

There are some differences in the directives specified in the following formats: %k and %l - Not supported in the SunOS release 5.7 software. %S- the SunOS release 4 software specifies seconds to be in the range of 0-59, while the SunOS release 5.7 software defines seconds to be in the range of 0-61 (allows for leap seconds). %V,%W- Under the SunOS release 4 software , week number 01 is the first week in January with four or more days in it, while in the SunOS release 5.7 software, week number 01 is the first week in January starting with a Sunday for %U or a Monday for %W.

The SunOS 4.1 tm structure contains two fields not present in the SunOS release 5.7 tm structure: tm_zone and tm_gmtoff. Instead, the SunOS release 5.7 version uses the external variable timezone to contain the difference (in seconds) between GMT and local standard time, and the external variable daylight to indicate if daylight savings should be applied.

Additionally, the SunOS release 5.7 version uses an external variable tzname to store standard and summer time-zone names. These external variables (timezone, daylight, and tzname) are supported by the SunOS release 4 System V installation option ctime() (3V) library routines.

string_to_decimal() (3)

 

strlen() (3)

 

strncasecmp() (3)

 

strncat() (3)

 

strncmp() (3)

 

strncpy() (3)

 

strpbrk() (3)

 

strptime() (3V)

strrchr() (3)

 

strspn() (3)

 

strtod() (3)

The SunOS release 4 strtod() and atof() routines accept inf_form, infinity_form, nan_form, and nanstring_form, while the SunOS release 5.7, ABI, SVID, or SVR4 strtod() and atof() routines do not accept these forms.

strtok() (3)

 

strtol() (3)

 

strxfrm() (3)

 

stty() (3C)

The termio (7) interface provides similar functionality.

subpad() (3V) -- SysV

 

subwin() (3V)

The SunOS release 5.7, SVID, or SVR4 routine returns a null pointer if a failure occurs. The SunOS release 5.7, SVID, or SVR4 header file <curses.h> automatically includes the header files <stdio.h> and <unctrl.h> and if CURS_PERFORMANCE is defined, it defines most commonly used routines as macros for increased performance.

subwin() (3V) -- SysV

 

svc_destroy() (3N)

 

svc_fds() (3N)

This routine is still available, but is superseded by svc_fdset() (3N).

svc_fdset() (3N)

 

svc_freeargs() (3N)

 

svc_getargs() (3N)

 

svc_getcaller() (3N)

S  

This routine is still available, but is superseded by svc_getrpccaller() (3N).

svc_getreq() (3N)

This routine is still available, but is superseded by svc_getreqset() (3N).

svc_getreqset() (3N)

 

svc_register() (3N)

This routine is still available, but it superseded by svc_reg() (3N).

svc_run() (3N)

 

svc_sendreply() (3N)

 

svc_unregister() (3N)

This routine is still available, but is superseded by svc_unreg() (3N).

svcerr_auth() (3N)

 

svcerr_decode() (3N)

 

svcerr_noproc() (3N)

 

svcerr_noprog() (3N)

 

svcerr_progvers() (3N)

 

svcerr_systemerr() (3N)

 

svcerr_weakauth() (3N)

 

svcfd_create() (3N)

This routine is still available, but is superseded by svc_fd_create() (3N).

svcraw_create() (3N)

This routine is still available, but is superseded by svc_raw_create() (3N).

svctcp_create() (3N)

This routine is still available, but is superseded by svc_create() (3N), svc_tli_create() (3N), and svc_vc_create() (3N).

svcudp_bufcreate() (3N)

This routine is still available, but is superseded by the svc_tli_create() (3N), and svc_dg_create() (3N) routines.

svcudp_create() (3N)

This routine is still available, but is superseded by svc_create() (3N), svc_tli_create() (3N), and svc_dg_create() (3N).

swab() (3)

 

sys_siglist() (3)

Use psignal() (3C).

syslog() (3)

 

system() (3)

 

Table C-20 Library Routines Reference Table: t_accept() through tzsetwall()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

t_accept() (3N)

 

t_alloc() (3N)

 

t_bind() (3N)

 

t_close() (3N)

 

t_connect() (3N)

 

t_error() (3N)

 

t_free() (3N)

 

t_getinfo() (3N)

 

t_getstate() (3N)

 

t_listen() (3N)

 

t_look() (3N)

 

t_open() (3N)

 

t_optmgmt() (3N)

 

t_rcv() (3N)

 

t_rcvconnect() (3N)

 

t_rcvdis() (3N)

 

t_rcvrel() (3N)

 

t_rcvudata() (3N)

 

t_rcvuderr() (3N)

 

t_snd() (3N)

 

t_snddis() (3N)

 

t_sndrel() (3N)

 

t_sndudata() (3N)

 

t_sync() (3N)

 

t_unbind() (3N)

 

tan() (3M)

 

tanh() (3M)

 

tcdrain() (3V)

 

tcflow() (3V)

 

tcflush() (3V)

 

tcgetattr() (3V)

 

tcgetpgrp() (3V)

 

tcsendbreak() (3V)

 

tcsetattr() (3V)

 

tcsetpgrp() (3V)

 

tdelete() (3)

 

telldir() (3V)

 

tempnam() (3S)

 

textdomain() (3)

 

tfind() (3)

 

tgetent() (3X)

The SunOS release 5.7, SVID, or SVR4 software is supporting this routine as a conversion aid and it should not be used in new applications. The SunOS release 5.7, SVID, or SVR4 version returns ERR on failure and an integer value other than ERR upon successful completion.

tgetent() (3V) -- SysV

 

tgetflag() (3X)

The SunOS release 5.7, SVID, or SVR4 software is supporting this routine as a conversion aid and it should not be used in new applications. The SunOS release 5.7, SVID, or SVR4 version returns ERR on failure and an integer value other than ERR upon successful completion.

tgetflag() (3V) -- SysV

 

tgetnum() (3X)

The SunOS release 5.7, SVID, or SVR4 software is supporting this routine as a conversion aid and it should not be used in new applications. The SunOS release 5.7, SVID, or SVR4 version returns ERR on failure and an integer value other than ERR upon successful completion.

tgetnum() (3V) -- SysV

 

tgetstr() (3X)

The SunOS release 5.7, SVID, or SVR4 software is supporting this routine as a conversion aid and it should not be used in new applications. The SunOS release 5.7, SVID, or SVR4 version returns ERR on failure and an integer value other than ERR upon successful completion.

tgetstr() (3V) -- SysV

 

tgoto() (3X)

The SunOS release 5.7, SVID, or SVR4 software is supporting this routine as a conversion aid and it should not be used in new applications. The SunOS release 5.7, SVID, or SVR4 version returns ERR on failure and an integer value other than ERR upon successful completion.

tgoto() (3V) -- SysV

 

tigetflag() (3V) -- SysV

 

tigetnum() (3V) -- SysV

 

tigetstr() (3V) -- SysV

 

time() (3V)

 

timegm() (3V)

This routine is replaced by mktime() (3C).

timelocal() (3V)

This routine is the inverse of localtime() (3C).

times() (3V)

The SunOS release 4 times() routine returns time values in units of 1/HZ seconds, where HZ is 60. The SunOS release 5.7, ABI, SVID, or SVR4 times() routine returns time values in units of 1/CLK_TCK of a second.

timezone() (3C)

 

tmpfile() (3S)

 

tmpnam() (3S)

 

toascii() (3V)

 

toascii() (3V) -- SysV

 

tolower() (3V)

 

_tolower() (3V) -- SysV

 

tolower() (3V) -- SysV

The SunOS release 5.7, ABI, SVID, or SVR4 version of this routine is affected by the program's locale as specified by LC_CTYPE, while the SunOS release 4 version is not.

touchline() (3V)

The SunOS release 5.7, ABI, SVID, or SVR4 version of this routine returns ERR on failure and an integer other than ERR on success.

touchline() (3V) -- SysV

 

touchoverlap() (3X)

 

touchwin(3V)

The SunOS release 5.7, ABI, SVID, or SVR4 version of this routine returns ERR on failure and an integer other than ERR on success.

touchwin() (3V) -- SysV

 

_toupper() (3V) -- SysV

 

toupper() (3V)

 

toupper(3V) -- SysV

The SunOS release 5.7, ABI, SVID, or SVR4 version of this routine is affected by the program's locale as specified by LC_CTYPE, while the SunOS release 4 version is not.

tparm() (3V) -- SysV

 

tputs() (3V)

The SunOS release 5.7, SVID, or SVR4 software supports this routine as a conversion aid. It should not be used in new applications. The SunOS release 5.7, SVID, or SVR4 version returns ERR on failure and an integer value other than ERR upon successful completion.

tputs() (3V) -- SysV

 

traceoff() (3V) -- SysV

 

traceon() (3V) -- SysV

 

tsearch() (3)

 

ttyname() (3V)

 

ttyslot() (3V)

 

twalk() (3)

 

typeahead() (3V) -- SysV

 

tzset() (3V)

See ctime() (3V).

tzsetwall() (3V)

A  

This routine is replaced by tzset() (3C) .

Table C-21 Library Routines Reference Table: ualarm() through utime()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

ualarm() (3)

S  

Now ualarm() (3C). The setitimer() (2) system call with the which argument set to ITIMER_REAL provides similar functionality.

ulimit() (3C)

The SVR4 and SunOS release 5.7 ulimit() is compatible with the SunOS release 4 ulimit(). The SunOS release 4 version of ulimit() routine's integer cmd values 1 and 2 may not be compatible with the equivalent SVID ulimit() routines' symbolic constant cmd values UL_GETFSIZE and UL_SETFSIZE. Also, the SVID ulimit() routine does not support the functionality of 3 (get the maximum possible break value) and 4 (get the size of the process's file descriptor table).

unctrl() (3V) -- SysV

 

ungetc() (3S)

The SVR4 and SunOS release 5.7 ungetc() guarantees to push back four characters, so it is compatible with the SunOS release 4 ungetc(). In the SunOS release 4 software, ungetc() is guaranteed to push back one character on the standard input without a previous read statement, while the ABI and SVID ungetc() does not support this attribute.

ungetch() (3V) -- SysV

 

user2netname() (3N)

 

usleep() (3)

S  

Now usleep() (3C). The setitimer() (2) or select() (3C) routines provide similar functionality.

utime() (3V)

The SunOS release 4 utime() and SunOS release 5.7, ABI, SVID, or SVR4 utime() differ in the type of the second argument. In the SunOS release 4 software, argument timep points to an array of two time_t values, while in theSunOS release 5.7, ABI, SVID, or SVR4 version, argument times points to the utimbuf structure (which contains two time_t members).

Table C-22 Library Routines Reference Table: valloc() through vwscanw()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

valloc() (3)

 

varargs() (3)

 

vfprintf() (3V)

See vprintf() (3V).

vidattr() (3V) -- SysV

 

vidputs() (3V) -- SysV

 

vlimit() (3C)

This routine is replaced by getrlimit() (2).

vprintf() (3V)

The SunOS release 4 vprintf(), vfprintf(), and vsprintf() routines are incompatible with the SunOS release 5.7, ABI, SVID, or SVR4 version of these routines because of variable format list differences. In the SunOS release 4 software, (va_alist (defined in <varargs.h>) is used in a function header to declare a variable argument list (for example, void function(va_alist)). In theSunOS release 5.7, ABI, SVID, or SVR4 version the definition from <stdarg.h> is used in a function header to declare a variable argument list (for example,

void function (int arg1,...)). 

vsprintf() (3V)

See vprintf() (3V).

vsyslog() (3)

This routine is replaced by syslog() (3).

vtimes() (3C)

This routine is replaced by getrusage() (2).

vwprintw() (3V) -- SysV

 

vwscanw() (3V) -- SysV

 

Table C-23 Library Routines Reference Table: waddch() through wstandout()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

waddch() (3V)

The characters in the SunOS release 5.7 software are chtype (long) if CHTYPE is not defined differently for <curses.h>. The SunOS release 5.7, SVID, or SVR4 version returns ERR on failure and an integer value other than ERR upon successful completion. The SunOS release 5.7, SVID, or SVR4 header file <curses.h> automatically includes the headers <stdio.h> and <unctrl.h> and if CURS_PERFORMANCE is defined, it defines most commonly used routines as macros for increased performance.

waddch() (3V) -- SysV

 

waddstr() (3V)

The SunOS release 5.7, SVID, or SVR4 version of waddstr() (3V) returns ERR (-1) on failure. The SunOS release 5.7, SVID, or SVR4 header <curses.h> automatically includes the headers <stdio.h> and <unctrl.h> and if CURS_PERFORMANCE is defined, it defines most commonly used routines as macros for increased performance.

waddstr() (3V) -- SysV

 

wattroff() (3V) -- SysV

 

wattron() (3V) -- SysV

 

wattrset() (3V) -- SysV

 

wclear() (3V)

The SunOS release 5.7, SVID, or SVR4 version of wclear() routine always returns (OK = 0) upon success while the SunOS release 4 software returns void. The SunOS release 5.7, SVID, or SVR4 header <curses.h> automatically includes the headers <stdio.h> and <unctrl.h> and if CURS_PERFORMANCE is defined, it defines most commonly used routines as macros for increased performance.

wclear() (3V) -- SysV

 

wclrtobot() (3V)

The SunOS release 5.7, SVID, or SVR4 version of wclrtobot() (3V) routine always returns (OK = 0) upon success while the SunOS release 4 software returns void. The SunOS release 5.7, SVID, or SVR4 header <curses.h> automatically includes the headers <stdio.h> and <unctrl.h> and if CURS_PERFORMANCE is defined, it defines most commonly used routines as macros for increased performance.

wclrtobot() (3V) -- SysV

 

wclrtoeol() (3V)

The SunOS release 5.7, SVID, or SVR4 routine always returns (OK = 0) upon success while the SunOS release 4 software returns void. The SunOS release 5.7, SVID, or SVR4 header <curses.h> automatically includes the headers <stdio.h> and <unctrl.h> and if CURS_PERFORMANCE is defined, it defines most commonly used routines as macros for increased performance.

wclrtoeol() (3V) -- SysV

 

wcstombs() (3)

The size of wchar_t is short in the SunOS release 4 software and long in the SunOS release 5.7 software. 

wctomb() (3)

The size of wchar_t is short in the SunOS release 4 software and long in the SunOS release 5.7 software. 

wdelch() (3V)

In the SunOS release 5.7, SVID, or SVR4 software this routine may be a macro, while it always is in the SunOS release 4 software. The SunOS release 5.7, SVID, or SVR4 version returns ERR on failure and an integer value other than ERR upon successful completion.

wdelch() (3V) -- SysV

 

wdeleteln() (3V)

In the SunOS release 5.7, SVID, or SVR4 software this routine may be a macro, while it always is in the SunOS release 4 software. The SunOS release 5.7, SVID, or SVR4 version returns ERR on failure and an integer value other than ERR upon successful completion.

wdeleteln() (3V) -- SysV

 

wechochar() (3V) -- SysV

 

werase() (3V)

In the SunOS release 5.7, SVID, or SVR4 software this routine returns OK(0) or a non-negative integer if immedok is set. The SunOS release 5.7, SVID, or SVR4 header <curses.h> automatically includes the headers <stdio.h> and <unctrl.h> and if CURS_PERFORMANCE is defined, it defines most commonly used routines as macros for increased performance.

werase() (3V) -- SysV

 

wgetch() (3V)

The SunOS release 5.7, SVID, or SVR4 version of wgetch() returns ERR on failure and an integer value other than ERR upon successful completion. The SunOS release 5.7, SVID, or SVR4 version also has additional support for function keys.

wgetch() (3V) -- SysV

In the SunOS release 5.7, SVID, or SVR4 software, if the window is not a pad, and it has been moved or modified since the last call to wrefresh(), wrefresh() will be called before another character is read. In the SunOS release 4 software, wrefresh() will not be called under these circumstances.

wgetstr() (3V)

The SunOS release 5.7, SVID, or SVR4 version of wgetstr() returns ERR on failure and an integer value other than ERR upon successful completion.

wgetstr() (3V) -- SysV

See getstr() (3V) -- Sys V.

winch() (3V) -- SysV

 

winsch() (3V)

The SunOS release 5.7, SVID, or SVR4 version of winsch() returns ERR on failure and an integer value other than ERR upon successful completion.

winsch() (3V) -- SysV

 

winsertln() (3V)

The SunOS release 5.7, SVID, or SVR4 version of winsertln() returns ERR on failure and an integer value other than ERR upon successful completion. This can be a macro in SunOS release 5.7, or the SVID or SVR4.

winsertln() (3V) -- SysV

 

wmove() (3V)

The SunOS release 5.7, SVID, or SVR4 version of wmove() returns ERR on failure and an integer value other than ERR upon successful completion.

wmove() (3V) -- SysV

 

wnoutrefresh() (3V) -- SysV

 

wprintw() (3V)

The SunOS release 5.7, SVID, or SVR4 version of wprintw() returns ERR on failure and an integer value other than ERR upon successful completion. The SunOS release 4 version returns void. SunOS release 5.7, or the SVID or SVR4 header <curses.h> automatically includes the headers <stdio.h> and <unctrl.h> and if CURS_PERFORMANCE is defined it defines most commonly used routines as macros for increased performance.

wprintw() (3V) -- SysV

 

wrefresh() (3V)

The SunOS release 5.7, SVID, or SVR4 version of wrefresh() returns (ERR = -1) on failure and some other integer on success while SunOS release 4 returns void. SunOS release 5.7, or the SVID or SVR4 header <curses.h> automatically includes the headers <stdio.h> and <unctrl.h> and if CURS_PERFORMANCE is defined it defines most commonly used routines as macros for increased performance.

wrefresh() (3V) -- SysV

 

wscanw() (3V)

The SunOS release 5.7, SVID, or SVR4 version of wscanw() returns an int containing the number of fields mapped by the call while the SunOS release 4 version returns void. The SunOS release 5.7, SVID, or SVR4 header <curses.h> automatically includes the headers <stdio.h> and <unctrl.h> and if CURS_PERFORMANCE is defined, it defines most commonly used routines as macros for increased performance.

wscanw() (3V) -- SysV

 

wsetscrreg() (3V) -- SysV

 

wstandend() (3V)

This is a curses() (3V) function that clears all window attributes using attrset(0)(). The SunOS release 4 version always returns undefined while the SunOS release 5.7, SVID, or SVR4 standout() routine always returns 1 (success).

wstandend() (3V) -- SysV

 

wstandout() (3V)

This is a curses() (3V) function that sets the A_STANDOUT attribute to enable the terminals best standout mode for a window. The SunOS release 4 version uses attron(A_STANDOUT)() for this function and returns undefined. The SunOS release 5.7, SVID, or SVR4 standout() routine is the same as: attron(A_STANDOUT)() and always returns 1 (success).

wstandout() (3V) -- SysV

 

Table C-24 Library Routines Reference Table: xcrypt() through xtom()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

xcrypt() (3R)

 

xdecrypt() (3R)

 

xdr_accepted_reply() (3N)

 

xdr_array() (3N)

 

xdr_authunix_parms() (3N)

This routine is still available but is superseded by xdr_authsys_parms() (3N).

xdr_bool() (3N)

 

xdr_bytes() (3N)

 

xdr_callhdr() (3N)

 

xdr_callmsg() (3N)

 

xdr_enum() (3N)

 

xdr_float() (3N)

 

xdr_free() (3N)

 

xdr_getpos() (3N)

 

xdr_inline() (3N)

 

xdr_int() (3N)

 

xdr_long() (3N)

 

xdr_opaque() (3N)

 

xdr_pointer() (3N)

 

xdr_reference() (3N)

 

xdr_setpos() (3N)

 

xdr_short() (3N)

 

xdr_string() (3N)

 

xdr_u_char() (3N)

 

xdr_u_int() (3N)

 

xdr_u_long() (3N)

 

xdr_u_short() (3N)

 

xdr_union() (3N)

 

xdr_vector() (3N)

 

xdr_void() (3N)

 

xdr_wrapstring() (3N)

 

xdrmem_create() (3N)

 

xdrrec_create() (3N)

 

xdrrec_endofrecord() (3N)

 

xdrrec_eof() (3N)

 

xdrrec_skiprecord() (3N)

 

xdrstdio_create() (3N)

 

xtom() (3X)

 

Table C-25 Library Routines Reference Table: y0() through yn()

SunOS release 4 

SunOS release 5.7 Status 

Notes 

ABI 

SVID 

SVR4 

BSD 

y0() (3M)

In the SunOS release 4 software, when these routines have undefined results they return NaN, with an EDOM error and a DOMAIN matherr. In the SunOS release 5.7, SVID, or SVR4 software, they return -HUGE with an EDOM error and a DOMAIN matherr. In the SunOS release 4 software, y0(HUGE)(), y1(HUGE)(), yn(9,HUGE)() will return zero with no error indication.

y1() (3M)

In the SunOS release 4 software, when these routines have undefined results they return NaN, with an EDOM error and a DOMAIN matherr. In the SunOS release 5.7, SVID, or SVR4 software, they return -HUGE with an EDOM error and a DOMAIN matherr. In the SunOS release 4 software, y0(HUGE)(), y1(HUGE)(), yn(9,HUGE)() will return zero with no error indication.

yn() (3M)

In the SunOS release 4 software, when these routines have undefined results they return NaN, with an EDOM error and a DOMAIN matherr. In the SunOS release 5.7, SVID, or SVR4 software, they return -HUGE with an EDOM error and a DOMAIN matherr. In the SunOS release 4 software, y0(HUGE)(), y1(HUGE)(), yn(9,HUGE)() will return zero with no error indication.