Section C.4. HP-UX and Linux Library API Comparison Table


C.4. HP-UX and Linux Library API Comparison Table

Table C-4. HP-UX and Linux Library API Comparison Table

HP-UX Library Calls

Linux Equivalent

Description

a64l, l64a

a64l, l64a

Convert between long integer and base-64 ASCII string.

l64a_r

None

Convert between long integer and base-64 ASCII string (reentrant).

abs

abs

Return integer absolute value.

aclentrystart

None

Convert string to access control list (ACL) structure.

aclsort

None

Sort ACL entries on JFS.

acltostr

None

Convert access control list (ACL) structure to string form.

acos, acosf, acosl

acos, acosf, acosl

Arccosine functions.

acosw, acosq

None

Arccosine functions.

acosd, acosdf, acosdl, acosdw, acosdq

None

Degree-valued arccosine functions.

acosh, acoshf, acoshl

acosh, acoshf, acoshl

Arc hyperbolic cosine functions.

acoshw acoshq

None

Arc hyperbolic cosine functions.

add_wch, mvadd_wch, mvwadd_wch, wadd_ch

add_wch, mvadd_wch, mvwadd_wch, wadd_ch

Add a complex character and rendition to a window.

add_wchstr, mvadd_wchnstr, mvadd_wchstr, mvwadd_wchnstr, mvwadd_wchstr, add_wchnstr, wadd_wchstr

add_wchstr, mvadd_wchnstr, mvadd_wchstr, mvwadd_wchnstr, mvwadd_wchstr, wadd_wchnstr, wadd_wchstr (libncurses)

Add an array of complex characters and renditions to a window.

addch, mvaddch, mvwaddch, waddch

addch, mvaddch, mvwaddch, waddch (libncurses)

Add a single-byte character and rendition to a window and advance the cursor.

addmntent

addmntent

Get file system descriptor file entry.

addstr, mvaddnstr, mvaddstr, mvwaddnstr, mvwaddstr, waddnstr, waddstr

addstr, mvaddnstr, mvaddstr, mvwaddnstr, mvwaddstr, waddnstr, waddstr (lincurses)

Add a string of multibyte characters without rendition to a window and advance cursor.

addnwstr, addwstr, mvaddnwstr, mvaddwstr, mvwaddnwstr, mvwaddwstr, waddnwstr, waddwstr

addnwstr, addwstr, mvaddnwstr, mvaddwstr, mvwaddnwstr, mvwaddwstr, waddnwstr, waddwstr (libncurses)

Add a wide-character string to a window and advance the cursor.

alloca

alloca

Allocate space from the stack.

alphasort

alphasort

Sort a directory pointer array.

asctime, asctime_r

asctime, asctime_r

Convert date and time to string.

asin, asinf, asinl, asinw, asinq

asin, asinf, asinl

Arcsine functions.

asinh, asinhf asinhl, asinhw, asinhq

asinh, asinhf asinhl

Arc hyperbolic sine functions.

assert

assert

Verify program assertion.

atan, atanf, atanl, atanw, atanq

atan, atanf, atanl

Arctangent functions.

atan2, atan2f, atan2l, atan2w, atan2q

atan2, atan2f, atan2l

Arctangent-and-quadrant functions.

atan2d, atan2df

None

Degree-valued arctangent-and-quadrant functions.

atand, atandf

atand, atandf, atanl

Degree-valued arctangent functions.

atanh, atanhf, atanhl, atanhw, atanhq

atanh, atanhf, atanhl

Arc hyperbolic tangent functions.

atexit

atexit

Register a function to be called at program termination.

atof

atof

Convert string to double-precision number.

atoi

atoi

Convert string to integer.

atol

atol

Convert string to integer.

attr_off, attr_on, attr_set, color_set, wattr_get, wattr_off, wattr_on, wattr_set, wcolor_set

attr_off, attr_on, attr_set, color_set, wattr_get, wattr_off, wattr_on, wattr_set, wcolor_set (libncurses)

Window attribute control functions.

attron, attrset, wattroff, wattron, wattrset

attron, attrset, wattroff, wattron, wattrset (libncurses)

Restricted window attribute control functions.

auth_destroy

auth_destroy

Library routines for client-side RPC authentication.

authdes_getucred

authdes_getucred

Library routines for secure remote procedure calls.

authdes_seccreate

None

Library routines for secure remote procedure calls.

authnone_create

authnone_create

Library routines for client-side RPC authentication.

authsys_create

authunix_create

Library routines for client-side RPC authentication.

authsys_create_default

authunix_create_default

Library routines for client-side RPC authentication.

basename, dirname

basename, dirname

Extract components of a path name.

baudrate

baudrate (libncurses)

Get terminal baud rate.

bcmp

bcmp

Memory operations, compare bytes.

bcopy

bcopy

Memory operations, copy bytes.

beep

beep (libncurses)

Audible signal.

bgets

None

Read stream up to next delimiter.

bigcrypt

None[13]

Generate hashing encryption on large strings.

bindresvport

bindresvport

Bind a socket to a privileged IP port.

bkgd, bkgdset, getbkgd, wbkgd, wbkgdset

bkgd, bkgdset, getbkgd, wbkgd, wbkgdset (libncurses)

Set or get background character and rendition using a single-byte character.

bkgrnd, bkgrndset, getbkgrnd, wbkgrnd, wbkgrndset, wgetbkgrnd

bkgrnd, bkgrndset, getbkgrnd, wbkgrnd, wbkgrndset, wgetbkgrnd (libncurses)

Set or get background character and rendition using a complex character.

blclose

None

Terminal block-mode library interface.

blget

None

Terminal block-mode library interface.

blopen, blread, blset

None

Terminal block-mode library interface.

box

box

Draw borders from complex characters and renditions.

box_set

box_set

Draw borders from single-byte characters and renditions.

bsd_signal

signal

Simplified signal facilities.

bsearch

bsearch

Binary search a sorted table.

bufsplit

None

Split buffer into fields.

  

Write records into new wtmps and btmps database.

bwtmpname

None

Write records into new wtmps and btmps database.

byte_status

None

Process 16-bit characters.

byteorder: htonl, htons, ntohl, ntohs

htonl, htons, ntohl, ntohs

Convert values between host and network byte order.

bzero

bzero

Memory operations, clear bytes.

c_colwidth

None

Process 16-bit characters.

cabs, cabsf, cabsl, cabsw, cabsq

cabs, cabsf, cabsl

Complex absolute value functions.

cacos, cacosf, cacosl, cacosw, cacosq

cacos, cacosf, cacosl

Complex arccosine functions.

cacosh, cacoshf, cacoshl, cacoshq, cacoshw

cacosh, cacoshf, cacoshl

Complex arc hyperbolic cosine functions.

calloc

calloc

Allocate memory for array.

can_change_color, color_content, has_colors, init_color, init_pair, start_color, pair_content

can_change_color, color_content, has_colors, init_color, init_pair, start_color, pair_content (libncurses)

Color manipulation functions.

carg, cargf, cargl, cargw, cargq

carg, cargf, cargl

Complex argument functions.

casin, casinf, casinl, casinw, casinq

casin, casinf, casinl

Complex arcsine functions.

casinh, casinhf, casinhl, casinhw, casinhq

casinh, casinhf, casinhl

Complex arc hyperbolic sine functions.

catanh, catanhf, catanhl, catanhw, catanhq

catanh, catanhf, catanhl

Complex arc hyperbolic tangent functions.

catgets

catgets

Get a program message.

catopen, catclose

catopen, catclose

Open or close NLS message catalog for reading.

cbreak, nocbreak, noraw, raw

cbreak, nocbreak, noraw, raw (libncurses)

Input mode control functions.

cbrt, cbrtf, cbrtl, cbrtq, cbrtw

cbrt, cbrtf, cbrtl

Cube root function (float, long, and so on).

ccos, ccosf, ccosl, ccosw, ccosq

ccos, ccosf, ccosl

Complex cosine functions.

ccosh, ccoshf, ccoshl, ccoshw, ccoshq

ccosh, ccoshf, ccoshl

Complex hyperbolic cosine functions.

ceil, ceilf, ceill, ceilw, ceilq

ceil, ceilf, ceill

Rounding functions.

cexp, cexpf, cexpl, cexpw, cexpq

cexp, cexpf, cexpl

Complex exponential functions.

cfgetispeed, cfgetospeed

cfgetispeed, cfgetospeed

Get/set tty intput baud rate.

cfsetispeed, cfsetospeed

cfsetispeed, cfsetospeed

Get/set tty output baud rate.

chgat, mvchgat mvwchgat, wchgat

chgat, mvchgat mvwchgat, wchgat

Change renditions of characters in a window.

chownacl

None

Change owner and/or group in access control list.

cimag, cimagf

cimag, cimagf, cimagl

Complex imaginary-part functions.

clear, erase, wclear, werase

clear, erase, wclear, werase

Clear a window.

clearenv

clearenv

Clear the process environment.

clearerr

clearerr

Stream status inquiries.

clearerr_unlocked

clearerr_unlocked

Stream status inquiries.

clearok, idlok, leaveok, scrollok setscrreg, wsetscrreg

clearok, idlok, leaveok, scrollok setscrreg, wsetscrreg (libncurses)

Terminal output control functions.

clnt_call

clnt_call

Library routine for client-side calls, rpc.

clnt_control

clnt_control

Library routines for dealing with client handles, rpc.

clnt_create

clnt_create

Library routines for dealing with client handles, rpc.

clnt_create_vers

None

Library routines for dealing with client handles, rpc.

clnt_control, clnt_create, clnt_create_vers, clnt_destroy, clnt_dg_create, clnt_pcreateerror, clnt_raw_create, clnt_spcreateerror, clnt_tli_create, clnt_tp_create, clnt_vc_create, rpc_createerr

clnt_pcreateerror, clnt_geterr

Library routines for dealing with client handles.

clock

clock

Report CPU time used.

clog, clogf, clogl

clog, clogf, clogl

Complex logarithm functions.

closedir

closedir

Directory operations.

closelog

closelog

Control system log.

clrtobot, wclrtobot

clrtobot, wclrtobot

Clear from cursor to end of window.

clrtoeol, wclrtoeol

clrtoeol, wclrtoeol

Clear from cursor to end of line.

compile

None

Regular expression compile and match routines.

compound, compoundf, compoundl, compoundw, compoundq

None

Compound interest factor.

confstr

confstr

Get string-valued configuration values.

conj, conjf, conjl, conjw, conjq

conj, conjf, conjl

conjl Complex conjugate functions.

copydvagent

None

Copy device assignment structure.

copylist

None

Copy a file into memory.

copysign, copysignf, copysignl, copysignw, copysignq

copysign, copysignf, copysignl

Copysign functions.

copywin

copywin

Copy a region of the window.

cos, cosf, cosl

cos, cosf, cosl

Cosine functions.

cosh, coshf, coshl

cosh, coshf, coshl

Hyperbolic cosine functions.

cpacl, fcpacl

None

Copy access control list (ACL) to another file.

cpow, cpowf, cpowl

cpow, cpowf, cpowl

Complex power functions.

cproj, cprojf, cprojl

cproj, cprojf, cprojl

Complex projection functions.

cr_close

None

Close a crash dump descriptor.

cr_info

None

Retrieve crash dump information.

cr_isaddr

None

Validate whether physical page number was dumped.

cr_open

None

Open crash dump for reading.

cr_perror

None

Print libcrash error or warning message.

cr_read

None

Read from crash dump.

cr_set_node

None

Set crash dump node number.

cr_uncompress

None

Uncompress a file in a crash dump.

cr_verify

None

Verify integrity of crash dump.

creal, crealf, creall

creal, crealf, creall

Complex real-part functions.

crypt, crypt_r, encrypt, encrypt_r, setkey, setkey_r

crypt, crypt_r, encrypt, encrypt_r, setkey, setkey_r

Generate hashing encryption.

csin, csinf, csinl

csin, csinf, csinl

Complex sine functions.

csqrt, csqrtf, csqrtl

csqrt, csqrtf, csqrtl

Complex square root functions.

ctan, ctanf, ctanl

ctan, ctanf, ctanl

Complex tangent functions.

ctermid

ctermid

Generate filename for terminal.

ctime, ctime_r, localtime, localtime_r, difftime, mktime, gmtime, gmtime_r, asctime, asctime_r, timezone, daylight, tzname, tzset

ctime, ctime_r, localtime, localtime_r, difftime, mktime, gmtime, gmtime_r, asctime, asctime_r, timezone, daylight, tzname, tzset

Convert date and time to string.

character classification

character classification

Classify characters.

isalpha, isupper, islower, isdigit, isxdigit, isalnum, isspace, ispunct, isprint, isgraph, iscntrl, isascii

isalpha, isupper, islower, isdigit, isxdigit, isalnum, isspace, ispunct, isprint, isgraph, iscntrl, isascii

 

cur_term

cur_term (libncurses)

Current terminal information.

curs_set

curs_set (libncurses)

Set the cursor mode.

curscr

curscr (libncurses)

Current window.

cuserid

cuserid

Get character login name of the user.

datalock

None

Lock process into memory after allocating data and stack space.

daylight

daylight

Convert date and time to string.

db_initialize, db_create_table, db_destroy_table, db_first_entry, db_next_entry, db_reset_next_entry, db_list_entries, db_remove_entry, db_add_entry, db_table_exists, db_unload_table, db_checkpoint, db_standby, db_free_result

db_initialize, db_create_table, db_destroy_table, db_first_entry, db_next_entry, db_reset_next_entry, db_list_entries, db_remove_entry, db_add_entry, db_table_exists, db_unload_table, db_checkpoint, db_standby, db_free_result

Write data to a file.

dbminit, fetch, store, delete, firstkey, nextkey, dbmclose

dbminit, fetch, store, delete, firstkey, nextkey, dbmclose (db.h)

Database subroutines.

dbm_open, dbm_close, dbm_fetch, dbm_store, dbm_delete, dbm_firstkey, dbm_nextkey, dbm_error, dbm_clearerr

dbm_open, dbm_close, dbm_fetch, dbm_store, dbm_delete, dbm_firstkey, dbm_nextkey, dbm_error, dbm_clearerr (nbdm.h)

Database subroutines.

def_prog_mode, def_shell_mode, reset_prog_mode, reset_shell_mode

def_prog_mode, def_shell_mode, reset_prog_mode, reset_shell_mode (libncurses)

Low-level curses routines.

del_curterm, restartterm, set_curterm, setupterm

del_curterm, restartterm, set_curterm, setupterm (libncurses)

Interfaces to terminfo database.

delay_output

delay_output (libncurses)

Miscellaneous curses utility routine.

delch, mvdelch, mvwdelch, wdelch

delch, mvdelch, mvwdelch, wdelch (libncurses)

Delete character from a window.

deleteln, wdeleteln

deleteln, wdeleteln (libncurses)

Delete lines in a window.

delscreen

delscreen (libncurses)

Free storage associated with a screen.

delwin

delwin (libncurses)

Delete a window.

devnm

None

Map device ID to file path.

dial, undial

None

Establish an outgoing terminal line connection.

difftime

difftime

Difference between calendar times.

directory operations

directory operations

Directory operations.

opendir, readdir, telldir, seekdir, rewinddir, closedir

opendir, readdir, telldir, seekdir, rewinddir, closedir

 

dirname

dirname

Return path name of parent directory.

div, ldiv

div, ldiv

Integer division and remainder.

dladdr

None

Symbolic information for an address.

dld_getenv

None

Explicit load of shared libraries.

dlerror

dlerror

Get diagnostic information from dynamic linking process.

dlget

None

Retrieve information on loaded module (program or shared library).

dlgetmodinfo

None

Retrieve information on loaded module (program or shared library).

dlgetname

None

Retrieve name of load module.

dlmodadd

None

Register information about dynamically generated functions.

dlmodinfo

None

Retrieve information on loaded module (program or shared library).

dlmodremove

None

Remove information registered using dlmodadd.

dlmodremove

None

Remove information registered using dlmodadd.

dlopen

dlopen

Open a shared library.

dlclose

dlclose

Close a shared library.

dlsym

dlsym

Get address of symbol in shared object.

dn_comp, dn_expand, get_resfield, herror, res_init, res_mkquery, res_query, res_search, res_send, set_resfield

dn_comp, dn_expand, herror, res_init, res_mkquery, res_querydomain, res_search, res_send

Resolver routines.

doupdate, refresh, wnoutrefresh, wrefresh

doupdate, refresh, wnoutrefresh, wrefresh

Refresh windows and lines.

drand48, erand48, lrand48, nrand48, mrand48, jrand48, srand48, seed48, lcong48

drand48, erand48, lrand48, nrand48, mrand48, jrand48, srand48, seed48, lcong48

Generate uniformly distributed pseudorandom numbers.

dupwin

dupwin (libncurses)

Duplicate a window.

echo, noecho

echo, noecho

Enable/disable terminal echo.

echo_wchar, wecho_wchar

echo_wchar, wecho_wchar (libncurses)

Write a complex character and immediately refresh the window.

echochar, wechochar

echochar, wechochar (libncurses)

Echo single-byte character and rendition to a window and refresh.

ecvt, fcvt, gcvt

ecvt, fcvt, gcvt

Convert floating-point number to string.

edata

None

Last locations in program.

elf_*

None[14]

Elf object file access library.

encrypt

encrypt

Generate hashing encryption.

end, etext, edata

None

Last locations in program.

endbwent

None

Write records into new wtmps and btmps database.

enddvagent

None

Free memory and closes file.

endfsent

endfsent

Get file system descriptor file entry.

endgrent

endgrent

Get group file entry.

endhostent, endhostent_r, gethostbyaddr, gethostbyaddr_r, gethostbyname, gethostbyname_r, gethostent, gethostent_r, sethostent, sethostent_r

endhostent, gethostbyaddr, gethostbyaddr_r, gethostbyname, gethostbyname_r, gethostent, sethostent

Get, set, or end network host entry.

getnetconfig, setnetconfig, getnetconfigent, freenetconfigent, nc_perror, nc_sperror

None

Get network configuration database entry.

getmntent, getmntent_r, setmntent, addmntent, delmntent, endmntent, hasmntopt

getmntent, getmntent_r, setmntent, addmntent, endmntent, hasmntopt

Get file system descriptor file entry.

getnetent, getnetbyaddr, getnetbyname, setnetent, endnetent

getnetent, getnetbyaddr, getnetbyname, setnetent, endnetent

Get network entry.

getnetgrent, setnetgrent, endnetgrent, innetgr

getnetgrent, setnetgrent, endnetgrent, innetgr

Get network group entry.

endnetpath

None

Get etc/netconfig entry corresponding to NETPATH component.

endusershell

endusershell

Close legal user shells file.

endutent

endutent

Access utmp file entry.

endutsent

endutsent

Access/update routines for user-accounting database maintained by utmpd.

endutxent

endutxent

Access utmpx file entry.

endwin

endwin

Suspend curses session.

erand48

erand48

Generate pseudorandom numbers.

erase

erase

Clear a window.

erasechar, killchar

erasechar, killchar (libncurses)

Single-byte terminal environment query functions.

erf, erff, erfl, erfw, erfq, erfc, erfcf, erfcl, erfcw, erfcq

erf, erff, erfl, erfc, erfcf, erfcl

Error and complementary error functions.

errno

errno[15]

System error messages.

etext

None

Last locations in program.

exp, expf, expl

exp, expf, expl

Exponential functions.

exp10, exp10f, exp10l,

exp10, exp10f, exp10l

Base-10 exponential functions.

exp2, exp2f, exp2l

exp2, exp2f, exp2l

Base-2 exponential functions.

expm1, expm1f, expm11,

expm1, exp1f, expm11

Exponential minus 1 functions.

fabs, fabsf, fabsl

fabs, fabsf, fabsl

Absolute value functions.

fattach

fattach

Attach a STREAMS file descriptor to an object in the file system name space.

fclose, fflush, fclose_unlocked, fflush_unlocked

fclose, fflush

Close or flush a stream.

fcpacl

None

Copy access control list (ACL) to another file.

fcvt

fcvt

Convert floating-point number to string.

fdetach

fdetach

Detach a STREAMS-based file descriptor from a filename.

fdim, fdimf, fdiml

fdim, fdimf, fdiml

Positive difference functions.

fdopen

fdopen

Associate a stream with a file descriptor.

feclearexcept

feclearexcept

Clear floating-point exceptions.

fegetenv

fegetenv

Get floating-point environment.

fegetexceptflag

fegetexceptflag

Get floating-point exception flags.

fegetflushtozero

None

Get floating-point underflow mode.

fegetround

fegetround

Get floating-point rounding mode.

fegettrapenable

None

Get exception trap enables.

feholdexcept

feholdexcept

Save floating-point environment.

feof

feof

Stream status inquiries.

feraiseexcept

feraiseexcept

Raise floating-point exceptions.

ferror, feof, clearer, ferror_unlocked, feof_unlocked, clearerr_unlocked

ferror, feof, clearer, ferror_unlocked, feof_unlocked, clearerr_unlocked

Stream status inquiries.

fesetenv

fesetenv

Set floating-point environment.

feupdateenv

feupdateenv

Set floating-point env.

fetch

fetch[16]

Database subroutines.

fflush, fflush_unlocked

fflush, fflush_unlocked

Close or flush a stream.

ffs

ffs

Memory operations, find first bit set.

fgetc

fgetc

Get character from a stream file.

fgetpos, fsetpos

fgetpos, fsetpos

Save or restore file position indicator for a stream.

fopen64, freopen64, fseeko64, fsetpos64, statvfsdev64, ftello64, ftw64, nftw64, statvfsdev64, tmpfile64

fopen64, freopen64, fseeko64, fsetpos64, ftello64, ftw64, nftw64, tmpfile64

File system APIs to support large files.

fgetpwent

fgetpwent

Get password file entry.

fgets, fgets_unlocked

fgets, fgets_unlocked

Get a string from a stream.

fgetspent, fgetspwent, fgetspwent_r

None

Get secure password file entry. Get secure password file entry on trusted systems.

fgetwc, fgetwc_unlocked

fgetwc, fgetwc_unlocked

Get a wide character from a stream files.

fgetws

fgetws

Get a wide string from a stream.

fileno

fileno

Map stream pointer to file descriptor.

filter

filter (libncurses)

Disable the use of certain terminal capabilities.

finite

finite

Floating-point finiteness macro.

firstkey

firstkey

Database subroutines.

firstof2

None

Process 16-bit characters.

flash

flash (lincurses)

Flash the screen.

flockfile, funflockfile

flockfile, funflockfile

Explicit locking of streams within a multithread application.

floor, floorf, floorl floorw, floorq

floor, floorf, floorl

Floor functions.

flushinp

 

Discard input.

fma, fmaf, fmal

fma, fmaf, fmal

Floating multiply-add functions.

fmax, fmaxf, fmaxl

fmax, fmaxf, fmaxl

Maximum value functions.

fmin, fminf, fminl

fmin, fminf, fminl

Minimum value functions.

fmod, fmodf, fmodl

fmod, fmodf, fmodl

Remainder functions.

fmtmsg

fmtmsg

Displays formatted message on standard error and console.

fnmatch

fnmatch

Match filename patterns.

fopen, freopen, fdopen

fopen, freopen, fdopen

Open or reopen a stream file; convert file to stream.

fpclassify

fpclassify

Floating-point classification macro.

fprintf

fprintf

Print formatted output to a file.

fputc

fputc

Put character or word on a stream.

fputs

fputs

Put a string on a stream.

fputs_unlocked

fputs_unlocked

Put a string on a stream.

fputwc

fputwc

Put a wide character on a stream file.

fputwc_unlocked

fputwc_unlocked

Put a wide character on a stream file.

fputws fputws_unlocked

fputws fputws_unlocked

Put a wide-character string on a stream file.

fread, fwrite, fread_unlocked, fwrite_unlocked

fread, fwrite, fread_unlocked, fwrite_unlocked

Buffered binary input/output to a stream file.

free

free

Release allocated block of main memory.

freeaddrinfo

freeaddrinfo

Get hostname and address entry.

freenetconfigent

None

Get network configuration database entry.

freopen

freopen

Reopen a stream file; convert file to stream.

frexp, frexpf, frexpl

frexp, frexpf, frexpl_

Extract mantissa and exponent from floating-point number.

fscanf

fscanf

Formatted input conversion, read from stream file.

fseek, fseeko, ftell, ftello, rewind, ftell_unlocked, rewind_unlocked

fseek, fseeko, ftell, ftello, rewind

Reposition a file pointer in a stream.

fseek_unlocked

None

Reposition a file pointer in a stream.

fseeko

fseeko

Reposition a file pointer in a stream.

fsetaclentry

None

Add, modify, or delete access control list entry.

fsetpos

fsetpos

Restore file position indicator for a stream.

fstatfsdev

None

Get file system statistics.

ftell

ftell

Reposition a file pointer in a stream.

ftell_unlocked

None

Reposition a file pointer in a stream.

ftello

ftello

Reposition a file pointer in a stream.

ftok

ftok

Create interprocess communication identifier.

ftw, nftw, nftw2

ftw, nftw

Walk a file tree, executing a function.

funflockfile

funflockfile

Explicit locking of streams within a multithread application.

fwide

fwide

Set stream orientation.

fwprintf, wprintf, swprintf

fwprintf, wprintf, swprintf

Print formatted wide-character output.

fwrite, fwrite_unlocked

fwrite, fwrite_unlocked

Buffered binary input/output to a stream file.

fwscanf, wscanf, swscanf

fwscanf, wscanf, swscanf

Convert formatted wide-character input.

gai_strerror

gai_strerror

Get hostname and address entry.

gamma, gammaf, gammal

gamma, gammaf, gammal

Log gamma function.

gcvt

gcvt

Convert floating-point number to string.

get_expiration_time

None

Add a specific time interval to the current absolute system time.

get_myaddress

get_myaddress

Obsolete library routines for RPC.

get_resfield

None

Resolver routines.

get_wch, mvget_wch, mvwget_wch, wget_wch

get_wch, mvget_wch, mvwget_wch, wget_wch (libncurses)

Get a wide character from a terminal.

get_wstr

get_wstr

Get an array of wide characters and function key codes from a terminal.

getaddrinfo, getnameinfo, freeaddrinfo, gai_strerror, getipnodebyaddr, getipnodebyname

getaddrinfo, getnameinfo

Get hostname and address entry.

getbegyx, getmaxyx, getparyx

getbegyx, getmaxyx, getparyx (libncurses)

Get additional cursor and window coordinates.

getbkgd

getbkgd (libncurses)

Set or get background character and rendition using a single-byte character.

getbkgrnd

getbkgrnd (libncurses)

Set or get background character and rendition using a complex character.

getbootpent, putbootpent setbootpent, endbootpent parse_bp_htype, parse_bp_hpaddr parse_bp_iaddr

None

Get or put bootptab entry.

getbwent

getbwent

Write records into new wtmps and btmps database.

getc, getc_unlocked, getchar, getchar_unlocked, fgetc, getw, getw_unlocked

getc, getc_unlocked, getchar, getchar_unlocked, fgetc, getw, getw_unlocked

Get character or word from a stream file.

getcchar

getcchar

Get a wide-character string.

getch, wgetch, mvgetch, mvwgetch

getch, wgetch, mvgetch, mvwgetch (libncurses)

Get a single-byte character from the terminal.

getchar

getchar

Get character from a stream file.

getclock

None

Get current value of system-wide clock.

getcwd

getcwd

Get pathname of current working directory.

getdate, getdate_r

geTDate, getdate_r

Convert user format date and time.

getdiskbyname, getdiskbyname_r

None

Get disk description by its name.

geTDvagent, getdvagnam, setdvagent, enddvagent, putdvagnam, copydvagent

None

Manipulate device assignment database entry for a trusted system.

getenv

getenv

Return value for environment name.

getfsent, getfsspec, getfsfile, getfstype, setfsent, endfsent

getfsent, getfsspec, getfsfile, setfsent, endfsent

Get file system descriptor file entry.

getgrent, setgrent, endgrent, fgetgrent

getgrent, setgrent, endgrent, fgetgrent

Get group file entry.

getgrgid, getgrnam

getgrgid, getgrnam

Get group file entry.

gethostbyaddr

gethostbyaddr

Get network host entry.

gethostbyname

gethostbyname

Get network host entry.

endhostent_r, gethostbyaddr_r, gethostbyname_r, gethostent_r, sethostent_r

endhostent, gethostbyaddr, gethostbyname, gethostent, sethostent

Get, set, or end network host entry.

gethostent, gethostbyaddr, gethostbyname, sethostent, endhostent

endhostent, gethostbyaddr, gethostbyname, gethostent, sethostent

Get network host entry.

gethrtime

None

Get high-resolution time.

getipnodebyaddr

None

Get hostname and address entry.

getipnodebyname

None

Get hostname and address entry.

getlocale, getlocale_r

None

Get the locale of a program. Get the locale of a program (mt-safe).

getlogin, getlogin_r

getlogin

Get name of user logged in on this terminal.

getmaxyx

getmaxyx

Get additional cursor and window coordinates.

getmntent, setmntent, addmntent, delmntent, endmntent, hasmntopt

getmntent, setmntent, addmntent, delmntent, endmntent, hasmntopt

Get file system descriptor file entry.

getmntent_r

getmntent_r

Reentrant get file system descriptor fileentry.

getn_wstr, get_wstr, mvgetn_wstr, mvget_wstr, mvwgetn_wstr, mvwget_wstr, wgetn_wstr, wget_wstr

getn_wstr, get_wstr, mvgetn_wstr, mvget_wstr, mvwgetn_wstr, mvwget_wstr, wgetn_wstr, wget_wstr (libncurses)

Get an array of wide characters and function key codes from a terminal.

getnameinfo

getnameinfo

Get hostname and address entry.

getnetbyaddr, getnetbyname

getnetbyaddr, getnetbyname

Get network entry.

getnetbyaddr_r, getnetbyname_r

None

Reentrant get network entry.

getnetconfig, setnetconfig, endnetconfig, getnetconfigent, freenetconfigent, nc_perror, nc_sperror

None

Get network configuration database entry.

getnetent, getnetbyadd, getnetbyname, setnetent, endnetent

getnetent, getnetbyadd getnetbyname, setnetent endnetent

Get network entry.

getnetgrent, setnetgrent, endnetgrent, innetgr

getnetgrent, setnetgrent, endnetgrent, innetgr

Get network group entry.

getnetname

getnetname

Library routines for secure remote procedure calls.

getnetpath, setnetpath, endnetpath

None

Get /etc/netconfig entry corresponding to NETPATH component.

getnstr, mvgetnstr, mvwgetnstr, wgetnstr

getnstr, mvgetnstr, mvwgetnstr, wgetnstr

Get a multibyte character-length-limited string from the terminal.

getopt, optarg optind, opterr

getopt, optarg optind, opterr

Get option letter from argument vector.

getparyx

getparyx (libncurses)

Get additional cursor and window coordinates.

getpass

getpass

Read a password.

getprdfent, getprdfnam, setprdfent, endprdfent, putprdfnam

None

Manipulate system default database entry for a trusted system.

getprdfnam

None

Search for file.

getprotoent, getprotobynumber getprotobyname, setprotoent endprotoent

getprotoent, getprotobynumber getprotobyname, setprotoent endprotoent

Get, set, or end protocol entry.

getprpwaid

None

Get protected password database audit ID.

getprpwent, getprpwuid getprpwnam, getprpwaid setprpwent, endprpwent putprpwnam

None

Manipulate protected password database entry.

getprtcent, getprtcnam setprtcent, endprtcent, putprtcnam

None

Manipulate terminal control database entry for a trusted system.

getpublickey, getsecretkey publickey

None

Retrieve public or secret key.

getpw

getpw

Get name from UID.

getpwent, getpwuid getpwnam, setpwent endpwent, fgetpwent

getpwent, getpwuid getpwnam, setpwent endpwent, fgetpwent

Get password file entry.

getresuid, getresgid

getresuid, getresgid

Get real, effective, and saved user or group IDs.

getrpcent, getrpcbyname getrpcbynumber

getrpcent, getrpcbyname getrpcbynumber

Get RPC entry.

getrpcport

getrpcport

Get RPC port number.

gets, fgets fgets_unlocked

gets, fgets fgets_unlocked

Get a string from a stream.

getsecretkey

None

Retrieve public or secret key.

getservbyname

getservbyname

Get service entry.

getservbyport

getservbyport

Get service entry.

getservbyport_r, getservbyname_r

None

Reentrant get service entry.

endservent, getservbyname, getservbyport, getservent, setservent

endservent, getservbyname, getservbyport, getservent, setservent

Get, set, or end service entry.

endservent_r, getservbyname_r, getservbyport_r, getservent_r setservent_r

None

Reentrant get, set, or end service entry.

getspent, fgetspent getspnam, getspnam_r setspent, endspent

None

Get secure password file entry.

getspwaid getspwaid_r

None

Get secure password file entry on trusted systems.

getspwent, getspwuid getspwaid, getspwnam setspwent, endspwent fgetspwent, getspwent_r getspwuid_r, getspwaid_r getspwnam_r, setspwent_r endspwent_r, fgetspwent_r

None

Get secure password file entry on trusted systems.

getstr, mvgetstr mvwgetstr, wgetstr

getstr, mvgetstr mvwgetstr, wgetstr (libncurses)

Get a multibyte character string from the terminal.

getsubopt

getsubopt

Parse suboptions from a string.

gettimer

None

Get value of a per-process timer.

gettxt

None

Read text string from message file.

getusershell, setusershell, endusershell

None

Get legal user shells.

getutent, getutent_r, getutid, getutid_r, getutline, getutline_r, pututline, setutent, endutent, utmpname

getutent, getutent_r, getutid, getutid_r, getutline, getutline_r, pututline, setutent, endutent, utmpname

Access utmp file entry.

pututline_r, setutent_r, endutent_r, utmpname_r

None

Access utmp file entry (reentrant).

getutsent, getutsid, getutsline, pututsline, setutsent, endutsent

None

Access/update routines for user-accounting database maintained by utmpd.

getutxent, getutxid getutxline, pututxline setutxent, endutxent

getutxent, getutxid getutxline, pututxline setutxent, endutxent

Access utmpx file entry.

getwc, getwchar, fgetwc, fgetwc_unlocked

getwc, fgetwc, getwc_unlocked, fgetwc_unlocked

Get a wide character from a stream file.

getwd

getwd

Get pathname of current working directory.

getwin, putwin

getwin, putwin (libncurses)

Dump window to, and reload window from, a file.

getyx

getyx (libncurses)

Get cursor and window coordinates.

glob, globfree

glob, globfree (libncurses)

Filename generation function.

gmtime, gmtime_r

gmtime, gmtime_r

Convert date and time to string.

grantpt

grantpt

Grant access to the STREAMS slavepty.

gsignal

gsignal

Software signals.

gssapi, gss_accept_sec_context, gss_acquire_cred, gss_add_cred, gss_add_oid_set_member, gss_canonicalize_name gss_*

Supported through the GNU Generic Security Service Library[17]

Generic security sevice application programming interface.

halfdelay

halfdelay

Control input character delay mode.

has_colors

has_colors

Color manipulation functions.

has_ic, has_il

has_ic, has_il(libncurses)

Query functions for terminal insert and delay capability.

hasmntopt

hasmntopt

Get file system descriptor file entry.

hcreate

hcreate

Manage hash search function.

hdestroy

hdestroy

Manage hash search function.

herror

herror

Resolver routines.

hline, mvhline, mvvline, mvwhline, mvwvline, vline, whline, wvline

hline, mvhline, mvvline, mvwhline, mvwvline, vline, whline, wvline (libncurses)

Draw lines from single-byte characters and renditions.

hline_set, mvhline_set, mvvline_set, mvwhline_set, mvwvline_set, vline_set, whline_set, wvline_set

hline_set, mvhline_set, mvvline_set, mvwhline_set, mvwvline_set, vline_set, whline_set, wvline_set (libncurses)

Draw lines from complex characters and renditions.

host2netname

host2netname (rpc/auth.h)

Library routines for secure remote procedure calls.

hosts_access, hosts_ctl request_init, request_set

hosts_access, hosts_ctl request_init, request_set

Access control library.

hsearch, hcreate hdestroy

hsearch, hcreate hdestroy

Manage hash search tables.

htonl, htons

htonl, htons

Convert values from host to network byte order.

hypot, hypotf, hypotl

hypot, hypotf, hypotl

Euclidean distance (hypotenuse) functions.

iconv, iconv_open, iconv_close

iconv, iconv_open, iconv_close

Code set conversion routines.

idcok

idcok (libncurses)

Enable or disable use of hardware insert- and delete-character features.

idlok

idlok (libncurses)

Terminal output control functions.

if_freenameindex

if_freenameindex

Interface name to index mapping.

if_indextoname

if_indextoname

Interface name to index mapping.

if_nametoindex, if_indextoname if_nameindex, if_freenameindex

if_nametoindex, if_indextoname if_nameindex, if_freenameindex

Interface name to index mapping.

ilogb, ilogbf, ilogbl

ilogb, ilogbf, ilogbl

Radix-independent exponent functions.

immedok

immedok (libncurses)

Enable or disable immediate terminal refresh.

in_wch, mvin_wch, mvwin_wch, win_wch

in_wch, mvin_wch, mvwin_wch, win_wch (libncurses)

Extract a complex character and rendition from a window.

in_wchnstr, in_wchstr, mvin_wchnstr, vin_wchstr, mvwin_wchnstr, mvwin_wchstr, win_wchnstr, win_wchstr

in_wchnstr, in_wchstr, mvin_wchnstr, mvin_wchstr, mvwin_wchnstr, mvwin_wchstr, win_wchnstr, win_wchstr (libncurses)

Input an array of complex characters and renditions from a window.

inch, mvinch, mvwinch, winch

inch, mvinch, mvwinch, winch (libncurses)

Input a single-byte character and rendition from a window.

inchnstr, inchstr, mvinchnstr, mvinchstr, mvwinchnstr, mvwinchstr, winchnstr, winchstr

inchnstr, inchstr, mvinchnstr, mvinchstr, mvwinchnstr, mvwinchstr, winchnstr, winchstr (libncurses)

Input an array of single-byte characters and renditions from a window.

index

index

BSD portability string routine.

inet_addr, inet_lnaof, inet_makeaddr, inet_netof, inet_network, inet_ntoa

inet_addr, inet_lnaof, inet_makeaddr, inet_netof, inet_network, inet_ntoa

Internet address manipulation routines.

inet_pton, inet_nton, inet_ntoa_r

inet_pton

Internet address manipulation routines.

init_colors, init_pair

init_colors, init_pair (libncurses)

Color manipulation functions.

initgroups

initgroups

Initialize group access list.

initstate

initstate

Pseudorandom number functions.

innstr, instr, mvinnstr, mvinstr mvwinnstr, mvwinstr, winnstr, winstr

innstr, instr, mvinnstr, mvinstr mvwinnstr, mvwinstr, winnstr, winstr (libncurses)

Input a multibyte character string from a window.

ins_nwstr, ins_wstr, mvins_nwstr mvins_wstr, vwins_nwstr mvwins_wstr, wins_nwstr, wins_wstr

ins_nwstr, ins_wstr, mvins_nwstr mvins_wstr, mvwins_nwstr mvwins_wstr, wins_nwstr, wins_wstr (libncurses)

Insert a wide-character string into a window.

ins_wch, mvins_wch, mvwins_wch, wins_wch

ins_wch, mvins_wch, mvwins_wch, wins_wch (libncurses)

Insert a complex character and rendition into a window.

insch, mvinsch, mvwinsch, winsch

insch, mvinsch, mvwinsch, winsch (libncurses)

Insert a single-byte character and rendition into a window.

insdelln, winsdelln

insdelln, winsdelln (libncurses)

Delete or insert lines into a window.

insertln, winsertln

insertln, winsertln (libncurses)

Insert lines into a window.

insnstr, insstr, mvinsnstr, mvinsstr, mvwinsnstr, mvwinsstr, winsnstr, winsstr

insnstr, insstr, mvinsnstr, mvinsstr, mvwinsnstr, mvwinsstr, winsnstr, winsstr (libncurses)

Insert a multibyte character into a window.

insque, remque

insque, remque

Insert or remove an element in a queue.

intrflush

intrflush (libncurses)

Enable or disable flush on interrupt.

inwstr

inwstr (libncurses)

Input a string of wide characters from a window.

is_linetouched, is_wintouched, touchline, untouchwin, wtouchln

is_linetouched, is_wintouched, touchline, untouchwin, wtouchln

Window refresh control functions.

isalnum, isalpha, isascii

isalnum, isalpha, isascii

Classify characters.

isastream

isastream

Determine if file descriptor refers to STREAMS device or STREAMS-based pipe.

isatty

isatty

Find name of a terminal.

iscntrl

iscntrl

Classify characters.

isendwin

isendwin (libncurses)

Determine whether a screen has been refreshed.

isfinite, finite

isfinite, finite

Floating-point finiteness macro.

isgraph

isgraph

Classify characters.

isgreater

isgreater

Floating-point quiet comparison macro.

isgreaterequal

isgreaterequal

Floating-point quiet comparison macro.

isinf

isinf

Test for infinity.

isless

isles

Floating-point quiet comparison macro.

islessequal

islessequal

Floating-point quiet comparison macro.

islessgreater

islessgreater

Floating-point quiet comparison macro.

islower

islower

Classify characters.

isnan

isnan

Test for nan.

isnormal

isnormal

Test for normal value.

ispunct, isspace isprint, isupper isxdigit

ispunct, isspace isprint, isupper isxdigit

Classify characters.

isunordered

isunordered

Floating-point comparison macro.

iswalpha, iswupper, iswlower, iswdigit, iswxdigit, iswalnum, iswspace, iswpunct, iswprint, iswgraph, iswcntrl, iswctype

iswalpha, iswupper, iswlower, iswdigit, iswxdigit, iswalnum, iswspace, iswpunct, iswprint, iswgraph, iswcntrl, iswctype

Classify wide characters.

jrand48

jrand48

Generate pseudorandom numbers.

keyname, key_name

keyname, key_name (libncurses)

Get name of key.

keypad

keypad (libncurses)

Enable/disable abbreviation of function keys.

killchar

killchar (libncurses)

Single-byte line kill character.

killwchar

killwchar (libncurses)

Current line kill character.

l64a, l64a_r

l64a

Convert between long integer and base-64 ASCII string.

lckpwdf, ulckpwdf

lckpwdf, ulckpwdf (shadow.h)

Control access to /etc/passwd and /etc/shadow files.

lcong48

lcong48

Generate pseudorandom numbers.

ldexp, ldexpf, ldexpl ldexpw, ldexpq

ldexp, ldexpf ldexpl

Scale exponent of a floating-point number.

ldiv

ldiv

Long integer division and remainder.

leaveok

leaveok (libncurses)

Terminal output control functions.

lfind

lfind

Linear search and update.

lgamma, lgammaf, lgammal, lgamma_r, lgammaf_r, lgammal_r

lgamma, lgammaf, lgammal, lgamma_r, lgammaf_r, lgammal_r

Log gamma functions.

llrint, llrintf, llrintl

llrint, llrintf, llrintl, llrintw, llrintq

Round to nearest long long function.

llround, llroundf, llroundl

llround, llroundf, llroundl

Round to long long functions.

localeconv

localeconv

Query numeric formatting conventions of current locale.

localtime, localtime_r

localtime, localtime_r

Convert date and time to string.

log, logf, logl, logw, logq

log, logf, logl

Natural logarithm functions.

log10, log10f, log101

log10, log10f, log101

Common logarithm functions.

log2, log2f, log2l

log2, log2f, log2l

Logarithm base 2 functions.

logb, logbf, logbl

logb, logbf, logbl

Radix-independent exponent functions.

longname

longname (libncurses)

Get verbose description of current terminal.

lrand48

lrand48

Generate pseudorandom numbers.

lrint, lrintf, lrintl

lrint, lrintf, lrintl

Round to nearest long int functions.

lround, lroundf, lroundl

lround, lroundf, lroundl

Round to long int functions.

lsearch, lfind

lsearch, lfind

Linear search and update.

ltostr, ltostr_r, ultostr, ultostr_r, ltoa, ltoa_rultoa, ultoa_r

None

Convert long integers to strings.

mallinfo

mallinfo

Display memory space usage.

calloc, free, malloc, mallopt, realloc, valloc

malloc, free, realloc, calloc, mallopt, valloc

Memory allocator routines.

alloca

alloca

Memory allocator routines.

mblen

mblen

Multibyte character and string conversions.

mbrlen

mbrlen

Get number of bytes in a character.

mbrtowc

mbrtowc

Convert a character to a wide-character code.

mbsinit

mbsinit

Determine conversion object status.

mbsrtowcs

mbsrtowcs

Convert a string to a wide-character string.

memalign

memalign

Allocate aligned memory.

memccpy, memchr, memcmp, memcpy, memset, bcopy, bcmp, bzero

memccpy, memchr, memcmp, memcpy, memset, bcopy, bcmp, bzero

Memory operations.

meta

meta (libncurses)

Enable/disable meta-keys.

mkdirp, rmdirp

None (see mkdir)

Create, remove directories in a path.

mkfifo

mkfifo

Make a FIFO special file.

mktemp

mktemp

Make a unique filename.

mktime

mktime

Create calendar time value.

mktimer

None

Allocate a per-process timer.

modf, modff, modfl

modf, modff, modfl

Decompose floating-point number.

monitor

None

Prepare execution profile.

mount

mount

Keep track of remotely mounted file systems.

move, wmove

move, wmove

Window cursor location functions.

mrand48

mrand48

Generate pseudorandom numbers.

mblen, mbtowc, mbstowcs, wctomb, wcstombs

mblen, mbtowc, mbstowcs, wctomb, wcstombs

Multibyte character and string conversions.

mvaddchnstr, mvwaddchnstr, waddchnstr

mvaddchnstr, mvwaddchnstr, waddchnstr (libncurses)

Add length-limited string of single-byte characters and renditions to a window.

mvaddchstr, mvwaddchstr, waddchstr

mvaddchstr, mvwaddchstr, waddchstr (libncurses)

Add string of single-byte characters and renditions to a window.

mvprintw, mvwprintw, printw, wprintw

mvprintw, mvwprintw, printw, wprintw (libncurses)

Print formatted output in window.

mvscanw, mvwscanw, scanw, wscanw

mvscanw, mvwscanw, scanw, wscanw (libncurses)

Convert formatted input from a window.

mvwin

mvwin (libncurses)

Move window.

nan, nanf, nanl

nan, nanf, nanl

String-to-nan conversion functions.

napms

napms (libncurses)

Suspend the calling process (low-level curses routine)

dbm_open, dbm_close, dbm_fetch, dbm_store, dbm_delete, dbm_firstkey, dbm_nextkey, dbm_error, dbm_clearerr

dbm_open, dbm_close, dbm_fetch, dbm_store, dbm_delete, dbm_firstkey, dbm_nextkey, dbm_error[18]

Database subroutines.

net_aton, net_ntoa

None

Network station address string conversion routines.

neTDir_getbyname, netdir_getbyaddr, netdir_free, netdir_options, taddr2uaddr, uaddr2taddr, netdir_perror, netdir_sperror

None

Generic transport name-to-address translation.

newpad, pnoutrefresh, prefresh

newpad, pnoutrefresh, prefresh (libncurses)

Pad management functions.

newwin, subwin newwin,

subwin (libncurses)

Window creation functions.

nextafter, nextafterf, nextafterl, nexttoward, nexttowardf, nexttowardl

nextafter, nextafterf, nextafterl, nexttoward, nexttowardf, nexttowardl

Next representable floating-point values.

nis_error, nis_sperrno, nis_perror, nis_lerror, nis_sperror, nis_sperror_r

nis_error nis_sperrno, nis_perror, nis_lerror, nis_sperror, nis_sperror_r

Display NIS+ error messages.

nis_groups, nis_ismember, nis_addmember, nis_removemember, nis_creategroup nis_destroygroup, nis_verifygroup, nis_print_group_entry, nis_map_group, _nis_map_group

nis_groups, nis_ismember, nis_addmember, nis_removemember, nis_creategroup nis_destroygroup, nis_verifygroup, nis_print_group_entry

NIS+ group manipulation functions.

nis_lookup, nis_add, nis_remove nis_modify, nis_freeresult

nis_lookup, nis_add, nis_remove nis_modify, nis_freeresult

NIS+ namespace functions.

nis_objects

nis_objects

NIS+ object formats.

nis_ping, nis_checkpoint

nis_ping, nis_checkpoint

NIS+ log administration functions.

nis_mkdir, nis_rmdir, nis_servstate nis_stats, nis_getservlist nis_freeservlist, nis_freetags

nis_mkdir, nis_rmdir, nis_servstate nis_stats, nis_getservlist nis_freeservlist, nis_freetags

NIS+ miscellaneous functions.

nis_leaf_of, nis_name_of nis_domain_of, nis_getnames nis_freenames, nis_dir_cmp nis_clone_object, nis_destroy_object nis_print_object

nis_leaf_of, nis_name_of nis_domain_of, nis_getnames nis_freenames, nis_dir_cmp nis_clone_object, nis_destroy_object nis_print_object

NIS+ subroutines.

nis_list, nis_add_entry nis_remove_entry, nis_modify_entry nis_first_entry, nis_next_entry

nis_list, nis_add_entry nis_remove_entry, nis_modify_entry nis_first_entry, nis_next_entry

NIS+ table functions file.

nl, nonl

nl, nonl (libncurses)

Enable/disable newline translation.

nl_langinfo

nl_langinfo

NLS information about native languages.

nlist

None[19]

Get entries from name list.

noqiflush, qiflush

noqiflush, qiflush (libncurses)

Enable/disable queue flushing.

notimeout, timeout, wtimeout

notimeout, timeout, wtimeout

Control blocking on input.

nrand48

nrand48

Generate pseudorandom numbers.

ntohl, ntohs

ntohl, ntohs

Convert values from network to host byte order.

opendir

opendir

Directory operations.

openlog

openlog

Control system log.

optarg, opterr, optind

optarg, opterr, optind

Get option letter from argument vector.

overlay, overwrite

overlay, overwrite

Copy overlapped windows.

pam, pam_acct_mgmt, pam_authenticate, pam_chauthtok, pam_close_session, pam_get_user, pam_open_session, pam_close_session, pam_set_data, pam_get_data, pam_set_item, pam_get_item, pam_setcred, pam_sm, pam_sm_acct_mgmt, pam_sm_authenticate, pam_start, pam_end, pam_strerror

pam (libpam) pam_authenticate, pam_chauthtok, pam_console, pam_console_apply, pam_end, pam_fail_delay, pam_get_item, pam_krb5, pam_krb5, pam_localuser, pam_open/close_session, pam_passwdqc, pam_postgresok, pam_rps, pam_selinux, pam_selinux_check, pam_set_item, pam_setcred, pam_stack, pam_start, pam_strerror, pam_succeed_if, pam_timestamp, pam_timestamp_check, pam_xauth

Pluggable authentication module.

pathfind

None

Search for named file in named directories.

pechochar, pecho_wchar

pechochar, pecho_wchar

Write a character rendition and immediately refresh the pad.

perror, errno, sys_errlist, sys_nerr

perror, errno

System error messages.

pfmt, vpfmt

None

Display message in standard format.

popen, pclose

popen, pclose

Initiate pipe I/O to/from a process.

pow, powf, powl

pow, powf, powl

Power functions.

prcmd

None

Return streams to parallel remote commands.

printf, fprintf, sprintf, snprintf,

printf, fprintf, sprintf, snprintf

Print formatted output.

pthread routines (see 6.10 in Chapter 6, "Porting HP-UX Applications")

Native POSIX Threads Library

POSIX Threads implementation.

ptsname, ptsname_r

ptsname

Get the name of a slave pty.

publickey

None

Retrieve public or secret key.

putc, fputc, putchar, putw, putc_unlocked, putchar_unlocked, putw_unlocked

putc, fputc, putchar, putw, putc_unlocked, putchar_unlocked

Put character or word on a stream.

putenv

putenv

Change or add value to environment.

putp, tputs

putp, tputs

Output commands to the terminal.

putpwent

putpwent

Write password file entry.

puts, fputs, puts_unlocked fputs_unlocked

puts, fputs, puts_unlocked fputs_unlocked

Put a string on a stream.

putspent

putspent (shadow.h)

Write shadow password file entry.

putwc, putwchar, fputwc putwc_unlocked, putwchar_unlocked_fputwc_unlocked

putwc, putwchar, fputwc putwc_unlocked, putwchar_unlocked fputwc_unlocked

Put a wide character on a stream file.

qsort

qsort

Quicker sort.

rand, srand

rand, srand

Simple random-number generator.

random, srandom initstate, setstate

random, srandom initstate, setstate

Generate a pseudorandom number.

rcmd, rcmd_af, rresvport rresvport_af, ruserok

rcmd, rresvport, ruserok

Return a stream to a remote command.

re_comp, re_exec

re_comp, re_exec

Compile and execute regular expressions.

realloc

realloc

Change size of allocated memory block.

realpath

realpath

Resolve pathname.

redrawwin, wredrawln

redrawwin, wredrawln

Line update status functions.

regcmp, regex

None

Compile and execute regular expression.

regcomp, regerror, regexec, regfree

regcomp, regerror, regexec, regfree

Regular expression matching routines.

reltimer

None

Relatively arm a per-process timer.

remainder, remainderf, remainderl

remainder, remainderf, remainderl

Remainder functions.

remove

remove

Remove an element in a queue.

remquo, remquof, remquol

remquo, remquof, remquol

Remainder functions with quotient.

res_init, res_mkquery res_query, res_search res_send

res_init, res_mkquery res_query, res_search res_send

Resolver routines.

resetty, savetty

resetty, savetty

Save/restore terminal mode.

dn_comp, dn_expand get_resfield, herror, set_resfield

dn_comp, dn_expand, herror

Resolver routines.

rexec

rexec (netdb.h)

Return stream to a remote command.

rint rintf rintl, rintw rintq, nearbyint nearbyintf, nearbyintl nearbyintw, nearbyintq

rint, rintf, rintl nearbyint, nearbyintf, nearbyintl

Round to nearest int functions.

ripoffline

rippoffline (libncurses)

Reserve a dedicated line for a purpose.

rmdirp

None

Remove directories in a path.

rmtimer

None

Free a per-process timer.

rnusers, rusers

None

Return information about users on remote machines.

round, roundf, roundl

round, roundf, roundl

Round to nearest integer, away from 0.

rpc_clnt:
auth_destroy
, authnone_create, authsys_create, authsys_create_ default

auth_destroy, authnone_create autunix_create, authunix_create_ default

Library routines for client-side remote procedure call authentication.

rpc_services:
clnt_call
, clnt_freeres clnt_geterr, clnt_perrno clnt_perror, clnt_sperrno clnt_sperror, rpc_broadcast rpc_broadcast_exp, rpc_call

callrpc, clnt_broadcast clnt_call, clnt_destroy, clnt_freeres, clnt_perrno, clnt_spcreeateerror, clnt_sperror

Library routines for client-side calls, RPC.

rpc_services:
clnt_control
, clnt_create clnt_create_vers, clnt_destroy clnt_dg_create, clnt_pcreateerror clnt_raw_create, clnt_spcreateerror clnt_tli_create, clnt_tp_create clnt_vc_create, rpc_createerr

clnt_control, clnt_create, clnt_destroy, clntraw_create, clnttcp_create, clntudp_create, clntudp_bufcreate

Library routines for dealing with client handles.

rpc_services:
svc_dg_enablecache
, svc_done, svc_exit, svc_fdset svc_freeargs, svc_getargs svc_getreq_common, svc_getreq_poll svc_getreqset, svc_getrpccaller svc_pollset, svc_run svc_sendreply

svc_getargs, svc_getcaller svc_getreqset, svc_getreq svc_register, svc_sendreply

Library routines for RPC servers.

rpc_svc_create:
svc_control
, svc_create svc_destroy, svc_dg_create svc_fd_create, svc_raw_create svc_tli_create, svc_tp_create svc_vc_create

svc_destroy, svc_freeargs svc_fd_create, svcraw_create, svctcp_create, svc_udpcreate, svcudp_bufcreate

Library routines for the creation of server handles, RPC.

rpc_svc_err:
svcerr_auth
, svcerr_decode svcerr_noproc, svcerr_noprog svcerr_progvers, svcerr_systemerr svcerr_weakauth

svcerr_auth, svcerr_decode svcerr_noproc, svcerr_noprog svcerr_progvers, svcerr_systemerr svcerr_weakauth

Library routines for server-side remote procedure call errors.

rpc_svc_reg:
svc_reg
, svc_unreg svc_auth_reg, xprt_register xprt_unregister

svc_register, svc_unregister

Library routines for registering servers, RPC.

rpc_xdr:
xdr_accepted_reply
, xdr_authsys_parms xdr_callhdr, xdr_callmsg xdr_opaque_auth, xdr_rejected_reply, xdr_replymsg

xdr_accepted_reply, xdr_authunix_parms xdr_callhdr, xdr_callmsg xdr_rejected_reply xdr_replymsg

XDR library routines for remote procedure calls.

rpcb_getmaps, rpcb_getaddr, rpcb_gettime, rpcb_rmtcall, rpcb_set, rpcb_unset

pmap_set, pmap_unset, pmap_rmtcall, pmap_getport, pmap_getports

Library routines for RPC bind service.

rsqrt, rsqrtf, rsqrtl

None

Reciprocal square root functions.

rstat, havedisk

None

Get performance data from remote kernel.

ruserok

ruserok

Return a stream to a remote command.

rwall

 

Write to specified remote machines.

scalb, scalbf, scalbl

scalb, scalbf, scalbl

Scale exponent of a radix-independent floating-point number.

scalbln, scalblnf, scalblnl

scalbln, scalblnf, scalblnl

Scale exponent of a radix-independent floating-point number.

scalbn, scalbnf, scalbnl

scalbn, scalbnf, scalbnl

Scale exponent of a radix-independent floating-point number.

scandir, alphasort

scandir, alphasort

Scan a directory.

scanf, fscanf, sscanf

scanf, fscanf, sscanf

Formatted input conversion, read from stream file.

scr_dump, scr_init, scr_restore, scr_set

scr_dump, scr_init, scr_restore, scr_set

Screen file input/output functions.

scrl, wscrl

None

Enhanced scroll curses window functions.

scroll

scroll

Scroll a curses window.

scrollok

scrollok

Terminal output control functions.

secdef

None

Security defaults configuration file routines.

secure_rpc authdes_getucred, authdes_seccreate, getnetname, host2netname, key_decryptsession, key_encryptsession key_gendes, key_setsecret, key_secretkey_is_set, netname2host, netname2user, user2netname

secure_rpc authdes_getucred, getnetname, host2netname, key_decryptsession, key_encryptsession, key_gendes, key_setsecret, key_secretkey_is_set, netname2host, netname2user, user2netname

Library routines for secure remote procedure calls.

set_term

set_term (libncurses)

Switch between screens.

setaclentry, fsetaclentry

 

Add, modify, or delete access control list entry.

setbuf, setvbuf, setvbuf_unlocked

setbuf, setvbuf

Assign buffering to a stream file.

setbwent

None

Write records into new wtmps and btmps database.

setcat

None

Set the default message catalog.

setcchar

setcchar

Set cchar_t from a wide character and rendition.

setclock

None

Set value of system-wide clock.

setkey, setkey_r

None

Generate hashing encryption.

setlabel

None

Define label for formatting routines.

setlocale_r, getlocale, getlocale_r

setlocale

Set and get the locale of a program.

shl_load, shl_definesym, shl_findsym, shl_get, shl_get_r, shl_gethandle, shl_gethandle_r, shl_getsymbols, shl_unload, dld_getenv

dladdr, dlclose, dlerror, dlopen, dlsym, dlvsym

Explicit load of shared libraries.

signbit

signbit

Floating-point sign determination.

sigpause

sigpause

Atomically release blocked signals and wait for interrupt.

sigset, sighold, sigrelse, sigignore, sigpause

sigset, sighold, sigrelse, sigignore, sigpause

Signal management.

sigemptyset, sigfillset, sigaddset, sigdelset, sigismember

sigemptyset, sigfillset, sigaddset, sigdelset, sigismember

POSIX signal set operations.

sin, sinf, sinl, sinw, sinq

sin, sinf, sinl

Sine functions.

sincos, sincosf, sincosl, sincosw, sincosq

sincos, sincosf, sincosl

Calculate sin and cos simultaneously.

sind, sindf

None

Sine functions of degree argument.

sinh, sinhf, sinhl

sinh, sinhf, sinhl

Hyperbolic sine functions.

sleep

sleep

Suspend execution for interval.

slk_attroff, slk_attr_off, slk_attron, slk_attr_on, slk_attrset, slk_attr_set, slk_clear, slk_color, slk_init, slk_label, slk_noutrefresh, slk_refresh, slk_restore, slk_set, slk_touch, slk_wset

slk_attroff, slk_attr_off, slk_attron, slk_attr_on, slk_attrset, slk_attr_set, slk_clear, slk_color, slk_init, slk_label, slk_noutrefresh, slk_refresh, slk_restore, slk_set, slk_touch,

Soft label routines.

SLPOpen, SLPClose, SLPReg, SLPDereg, SLPDelAttrs, SLPFindSrvs, SLPFindSrvTypes, SLPFindAttrs, SLPParseSrvURL, SLPEscape, SLPUnescape, SLPFree, SLPGetRefreshInterval, SLPFindScopes, SLPGetProperty, SLPSetProperty

None (refer to OpenSLP[20])

SLP (Service Location Protocol) library routines.

spray

None

Scatter data for network checking.

sqrt, sqrtf, sqrtl

sqrt, sqrtf, sqrtl

Square root functions.

ssignal, gsignal

ssignal, gsignal

Software signals facility.

standend, standout, wstandend, wstandout

standend, standout, wstandend, wstandout (libncurses)

Set and clear window attributes.

statfsdev, fstatfsdev

None

Get file system statistics.

statvfsdev, fstatvfsdev

None

Get file system statistics.

stdio

stdio

Standard buffered input/output stream file package.

stdscr

stdscr

Default window.

strerror

strerror

System error messages.

strfmon

strfmon

Convert monetary value to string.

strftime

strftime

Convert date and time to string.

string, strlen

string, strlen

Character string operations.

strord

None

Convert string data order.

strptime

strptime

Date and time conversion.

strtoacl, strtoaclpatt

strtoacl, strtoaclpatt

Convert string to access control list (ACL) structure.

strtod, strtof, strtold_

strtod, strtof, strtold_

Convert string to floating-point number.

strtof

strtof

Convert string to floating-point number (float).

strtoimax, strtoumax

strtoimax, strtoumax

Convert string to integer.

strtol, strtoul, atoll, atoi, strtoll, strtoull

strtol, strtoul, atoll, atoi, strtoll, strtoull

Convert string to integer.

subpad

subpad (libncurses)

Enhanced pad management function.

swab

swab

Swap bytes.

syncok, wcursyncup wsyncdown, wsyncup

syncok, wcursyncup, wsyncdown, wsyncup (libncurses)

Synchronize a window with its parents or children.

syslog, openlog, closelog, setlogmask

syslog, openlog, closelog, setlogmask

Control system log.

system

system

Issue a shell command.

t_accept, t_alloc, t_bind, t_close, t_connect, t_error, t_free, t_getinfo, t_getprotaddr, t_getstate, t_listen, t_look, t_open, t_optmgmt, t_rcv, t_rcvconnect, t_rcvdis, t_rcvrel, t_rcvudata, t_rcvuderr, t_snd, t_snddis, t_sndrel, t_sndudata, t_strerror, t_sync, t_unbind

None

X/open tli-xti.

taddr2uaddr

None

Generic transport name-to-address translation.

tan, tanf

tan, tanf, tanl

Tangent functions.

tand, tandf

None

Tangent functions of a degree argument.

tcgetattr, tcsetattr

tcgetattr, tcsetattr

Control tty device.

tcsendbreak, tcdrain, tcflush, tcflow

tcsendbreak, tcdrain, tcflush, tcflow

Tty line control functions.

tcgetpgrp

tcgetpgrp

Get foreground process group ID.

tcgetsid

tcgetsid

Get terminal session ID.

termattrs, term_attrs

termattrs, term_attrs (libncurses)

Get supported terminal video attributes.

tgetent, tgetflag, tgetnum, tgetstr, tgoto, tputs

tgetent, tgetflag, tgetnum, tgetstr, tgoto, tputs (libncurses)

Emulate /usr/share/lib/termcap access routines.

termname

termname (libncurses)

Get terminal name.

tgamma, tgammaf, tgammal

tgamma, tgammaf, tgammal

True gamma functions.

tigetflag, tigetnum, tigetstr, tparm

tigetflag, tigetnum, tigetstr, tparm[21]

Retrieve capabilities from the terminfo database.

timezone

timezone

Convert date and time to string.

tmpnam

tmpnam, tmpnam_r

Create a name for a temporary file.

toupper

toupper

Translate characters to uppercase, lowercase, or 7-bit ASCII.

towlower

towlower

Translate wide characters.

towupper

towupper

Translate wide characters.

trunc, truncf, truncl

TRunc, truncf, truncl

Truncation functions.

tsearch, tfind, tdelete, twalk

tsearch, tfind, tdelete, twalk

Manage binary search trees.

ttyname, isatty

ttyname, isatty

Find name of a terminal.

ttyslot

None

Find the slot in the utmpx file of the current user.

typeahead

None

Control checking for typeahead.

tzname, tzset

tzname, tzset

Convert date and time to string.

unctrl

unctrl

Generate printable representation of a character.

ungetc, ungetc_unlocked

ungetc

Push character back into input stream.

ungetch, unget_wch

None

Push a character onto the input queue.

ungetwc, ungetwc_unlocked

ungetwc

Push a wide character back into an input stream.

unlockpt

None

Unlock a STREAMS pty master and slave pair.

untouchwin

untouchwin (libncurses)

Window refresh control functions.

updatebwdb

None

Write records into new wtmps and btmps database.

use_env

None

Specify source of screen size information.

valloc

valloc

Allocate space on boundary aligned to sysconf value.

vfprintf

vfprintf

Print formatted output of a varargs argument list.

vfscanf

vfscanf

Formatted input conversion to a varargs argument.

vfwprintf

vfwprintf

Print formatted output to a file.

vidattr

vidattr (libncurses)

Output attributes to the terminal.

vsprintf, vsnprintf

vsprintf, vsnprintf

Print formatted output of a varargs argument list.

vscanf, vfscanf, vsscanf

vscanf, vfscanf, vsscanf

Formatted input conversion to a varargs argument.

vwprintf, vfwprintf, vswprintf

vwprintf, vfwprintf, vswprintf

Print formatted output.

vwprintw

vwprintw (libncurses)

Print formatted output in a window.

vwscanw

vwscanw (libncurses)

Convert formatted input from a window.

wborder

wborder (libncurses)

Draw borders from single-byte characters and renditions.

wcrtomb

wcrtomb

Convert wide-character code to a character.

wcsftime

wcsftime

Convert date and time to wide-character string.

wctob

wctob

Convert between single-byte and wide-character.

wcsrtombs

wcsrtombs

Convert a wide-character string to a string.

wcstod

wcstod

Convert wide-character string to double-precision number.

wcstoimax, wcstoumax

wcstoimax, wcstoumax

Convert wide-character string to long integer.

wcstol, wcstoll, wcstoul, wcstoull

wcstol, wcstoll, wcstoul, wcstoull

Convert wide-character string to integer.

wcscat, wcsncat, wcscmp, wcsncmp, wcscpy, wcsncpy, wcslen, wcschr, wcsrchr, wcsstr, wcspbrk, wcsspn, wcscspn, wcstok, wcstok_r, nl_wcscmp, nl_wcsncmp

wcscat, wcsncat, wcscmp, wcsncmp, wcscpy, wcsncpy, wcslen, wcschr, wcsrchr, wcsstr, wcspbrk, wcsspn, wcscspn, wcstok

Wide-character string operations.

iswalpha, iswupper, iswlower, iswdigit, iswxdigit, iswalnum, iswspace, iswpunct, iswprint, iswgraph, iswcntrl, iswctype

iswalpha, iswupper, iswlower, iswdigit, iswxdigit, iswalnum, iswspace, iswpunct, iswprint, iswgraph, iswcntrl, iswctype

Classify wide-character functions.

wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset

wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset

Memory operations based on wide character.

wordexp, wordfree

wordexp, wordfree

Perform word expansions.

wunctrl

wunctrl

Generate printable representation of a wide character.

xdr_control, xdr_getpos, xdr_inline, xdrrec_endofrecord, xdrrec_eof, xdrrec_readbytes, xdrrec_skiprecord, xdr_setpos, xdr_sizeof

xdr_getpos, xdr_setpos, xdr_inline, xdrrec_endofrecord, xdrrec_skiprecord, xdrrec_eof

Library routines for external data representation.

xdr_array, xdr_bytes, xdr_opaque, xdr_pointer, xdr_reference, xdr_string, xdr_string, xdr_vector, xdr_wrapstring

xdr_array, xdr_bytes, xdr_opaque, xdr_pointer, xdr_reference, xdr_string, xdr_string, xdr_vector, xdr_wrapstring

Library routines for external data representation.

xdr_destroy, xdrmem_create, xdrrec_create, xdrstdio_create

xdr_destroy, xdrmem_create, xdrrec_create, xdrstdio_create

Library routines for external data representation stream creation.

xdr_bool, xdr_char, xdr_double, xdr_enum, xdr_float, xdr_free, xdr_hyper, xdr_int, xdr_long, xdr_longlong_t, xdr_quadruple, xdr_short, xdr_u_char, xdr_u_hyper, xdr_u_int, xdr_u_long, xdr_u_longlong_t, xdr_u_short, xdr_void

xdr_bool, xdr_char, xdr_double, xdr_enum, xdr_float, xdr_free, xdr_int, xdr_long, xdr_u_int, xdr_u_long, xdr_u_char, xdr_short, xdr_u_short, xdr_void

Library routines for external data representation.

y0, y0f, y1, y1f, yn, ynf

y0, y0f, y1, y1f, yn, ynf

Bessel functions of the second kind.

yp_all, yp_bind, yp_first, yp_get_default_domain, yp_master, yp_match, yp_next, yp_order, yp_unbind, yperr_string, ypprot_err

yp_all, yp_bind, yp_first, yp_get_default_domain, yp_master, yp_match, yp_next, yp_order, yp_unbind, yperr_string, ypprot_err[22]

Network Information Service client interface.

yppasswd

yppasswd[23]

Update user password in Network Information Service (NIS).

ypupdate

ypupdate[24]

Changes NIS information.


[13] Closet equivalent on Linux is crypt

[14] See readelf or objdump utilities.

[15] Declared as a volatile int in glibc.

[16] See rpm/db.h.

[17] See http://josefsson.org/gss/manual/.

[18] ndbm.h

[19] Look at lsof source code for nlist_private example.

[20] www.openslp.org/

[21] Supported through libncurses library.

[22] Undocumented Linux calls. See /usr/include/rpcsvc/ypclnt.h.

[23] Undocumented Linux call. See /usr/include/rpcsvc/yppasswd.h.

[24] Undocumented Linux call. See /usr/include/rcpsvc/ypupd.h.




UNIX to Linux Porting. A Comprehensive Reference
UNIX to Linux Porting: A Comprehensive Reference
ISBN: 0131871099
EAN: 2147483647
Year: 2004
Pages: 175

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net