(3C) - Libc routines

(3C) - Libc routines


Intro
introduction to libc library

a64l, l64a, l64a_r
convert between long integer and base-64 ASCII string

abort
generate an abnormal termination signal

abs, labs
return integer absolute value

aclsort
sort an Access Control List

addsev
define additional severities

addseverity
build a list of severity levels for an application for use with fmtmsg

altzone
date and time constant

asctime
convert date and time to string

asctime_r
convert date and time to string

atexit
add program termination routine

atof
convert string to double-precision number

atoi
convert ASCII to integer in base 10

atol
convert ASCII to long integer in base 10

atoll
convert ASCII to long long integer in base 10

bcmp
bit and byte string operations

bcopy
bit and byte string operations

bsd_signal
simplified signal facilities

bsearch
binary search a sorted table

bstring: bcopy, bcmp, bzero
bit and byte string operations

bzero
bit and byte string operations

calloc
checking memory allocator

catclose
close a message catalogue

catgets
read a program message

catopen, catclose
open/close a message catalog

cfgetispeed
general terminal interface

cfgetospeed
general terminal interface

cfsetispeed
general terminal interface

cfsetospeed
general terminal interface

clock
report CPU time used

closedir
close named directory stream

confstr
obtain configurable string values

conv: toupper, tolower, _toupper, _tolower, toascii
translate characters

ctime
convert date and time to string

ctime, ctime_r, localtime, localtime_r, gmtime, gmtime_r, asctime, asctime_r, tzset, timezone, altzone, daylight, tzname
convert date and time to string

ctime_r
convert date and time to string

ctype
character handling

daylight
date and time constant

dbm_clearerr
clear the error condition of a database

dbm_close
close a database

dbm_delete
delete a record and its key from a database

dbm_error
return the error condition of a database

dbm_fetch
write a record to a database

dbm_firstkey
return the first key in a database

dbm_nextkey
return the next key in a database

dbm_open
open a database

dbm_store
add a record to a database

difftime
compute the difference between two calendar times

directory: opendir, readdir, readdir64, readdir_r, readdir64_r, telldir, seekdir, rewinddir, closedir
directory operations

div, ldiv, lldiv
compute the quotient and remainder

dladdr
translate address to symbolic information

dlclose
close a shared object

dlerror
get diagnostic information

dlopen
open a shared object

dlsym
get the address of a symbol in shared object

drand48, erand48, lrand48, nrand48, mrand48, jrand48, srand48, seed48, lcong48
generate uniformly distributed pseudo-random numbers

dup2
duplicate an open file descriptor

ecvt
convert floating-point number to string

ecvt, ecvtl, fcvt, fcvtl, gcvt, gcvtl
convert floating-point number to string

ecvtl
convert floating-point number to string

edata
first address above initialized data region

end, etext, edata
last locations in program

endgrent
close the group file

endpwent
close password file

endspent
close the shadow password file

erand48
generate uniformly distributed pseudo-random numbers

etext
first address above program text

fattach
attach STREAMS-based file descriptor to file system object

fcvt
convert floating-point number to string

fcvtl
convert floating-point number to string

FD_CLR
remove from descriptor set

fdetach
detach a name from a STREAMS-based file descriptor

FD_ISSET
query descriptor set

FD_SET
add to descriptor set

FD_ZERO
initialize a null descriptor set

ffs
find first set bit

fgetgrent
return pointer to next group structure in stream

fgetgrent_r
fill in group structure from next in stream

fgetpos
stores current value of file position indicator for a stream

fgetpos64
stores current value of file position indicator for a stream (supports large files)

fgetpwent
return pointer to next password structure in stream

fgetpwent_r
fill in password structure from next in stream

fgetspent
return pointer to shadow password entry from next in stream

fgetspent_r
fill in shadow password entry from next in stream

fgetws
get a wchar_t string from a stream

fmtmsg
display a message on stderr or system console

fnmatch, _fnmcomp, _fnmexec, _fnmfree
match filename against pattern

fpgetround, fpsetround, fpgetmask, fpsetmask, fpgetsticky, fpsetsticky
IEEE floating-point environment control

free
checking memory allocator

frexp
manipulate floating-point numbers

frexpf
manipulate floating-point numbers

frexp, frexpf, frexpl, ilogb, ilogbf, ilogbl, ldexp, ldexpf, ldexpl, logb, logbf, logbl, modf, modff, modfl, nextafter, nextafterf, nextafterl, scalb, scalbf, scalbl
manipulate parts of floating-point numbers

frexpl
manipulate floating-point numbers

fsetpos
set position of next input/output operation on a stream

fsetpos64
set position of next input/output operation on a stream (supports large files)

fsetpos, fsetpos64, fgetpos, fgetpos64
reposition a file pointer in a stream

ftime
get date and time

ftok
standard interprocess communication package

ftw
walk a file tree

ftw64
walk a file tree (supports large files)

ftw, ftw64, nftw, nftw64
walk a file tree

gcvt
convert floating-point number to string

gcvtl
convert floating-point number to string

getcwd
get pathname of current working directory

getdate
convert user format date and time

getdtablesize
get file descriptor table size

getenv
return value for environment name

getgrent
return pointer to group entry

getgrent, getgrent_r, getgrgid, getgrgid_r, getgrnam, getgrnam_r, setgrent, endgrent, fgetgrent, fgetgrent_r
manipulate group file entry

getgrent_r
fill in group structure from next entry

getgrgid
return pointer to group entry matching gid

getgrgid_r
fill in group entry matching gid

getgrnam
return pointer to group entry matching name

getgrnam_r
fill in group entry matching name

gethostid
get an identifier for the current host

gethostname
get name of current host

gethostname, sethostname
get or set name of current host

getitimer
get value of interval timer

getlogin, getlogin_r
get login name

getopt: getopt, optarg, optind, opterr, optopt
get option letter from argument vector

getpagesize
get system page size

getpass
read a password

getpass_r
read a password

getpriority
get program scheduling priority

getpriority, setpriority
get or set program scheduling priority

getpwent
return pointer to password entry

getpwent, getpwent_r, getpwuid, getpwuid_r, getpwnam, getpwnam_r, setpwent, endpwent, fgetpwent, fgetpwent_r
manipulate password file

getpwent_r
fill in password structure from next entry

getpwnam
return pointer to password entry matching login name

getpwnam_r
fill in password entry matching login name

getpwuid
return pointer to password entry matching uid

getpwuid_r
fill in password entry matching uid

getrusage
get information about resource utilization

getspent
return pointer to next shadow password entry

getspent, getspent_r, getspnam, getspnam_r, setspent, endspent, fgetspent, fgetspent_r
manipulate shadow password file

getspent_r
fill in spwd structure from next shadow password entry

getspnam
return pointer to shadow password file entry matching name

getspnam_r
fill in shadow password file entry matching name

getsubopt
parse suboptions from a string

gettxt
retrieve a text string

getwd
get current working directory pathname

getwidth
get information on supplementary code sets

glob, globfree
generate pathnames matching a pattern

gmtime
convert date and time to string

gmtime_r
convert date and time to string

grantpt
grant access to the slave pseudo-terminal device

hcreate
manage hash search tables

hdestroy
manage hash search tables

hsearch, hcreate, hdestroy
manage hash search tables

iconv
codeset conversion function

iconv_close
code conversion deallocation function

iconv_open
code conversion allocation function

ilogb
manipulate floating-point numbers

ilogbf
manipulate floating-point numbers

ilogbl
manipulate floating-point numbers

index
string operations

initgroups
initialize the supplementary group access list

initstate
initialize a state array

insque, remque
insert/remove element from a queue

isalnum
test for alphanumeric character

isalpha
test for alphabetic character

isascii
test for ASCII character

isastream
test a file descriptor

isatty
determine if a file descriptor is a terminal device

isblank
test for blank character

iscntrl
test for control character

isdigit
test for digit character

isgraph
test for printable character except space

islower
test for lowercase character

isnan, isnand, isnanf, finite, fpclass, unordered
determine type of floating-point number

isprint
test for printable character

ispunct
test for punctuation character

isspace
test for space character

isupper
test for uppercase character

iswalnum
test wide characters for alpha or digit class

iswalpha
test wide characters for alpha class

iswcntrl
test wide characters for cntrl class

iswctype, wctype
test wide characters for a particular class

iswdigit
test wide characters for digit class

iswgraph
test wide characters for graph class

iswlower
test wide characters for lower class

iswprint
test wide characters for print class

iswpunct
test wide characters for punct class

iswspace
test wide characters for space class

iswupper
test wide characters for upper class

iswxdigit
test wide characters for xdigit class

isxdigit
test for hexadecimal digit character

jrand48
generate uniformly distributed pseudo-random numbers

killpg
send signal to a process group

l3tol, ltol3
convert between 3-byte integers and long integers

l64a
convert between long integer and base-64 ASCII string

l64a_r
convert between long integer and base-64 ASCII string

labs
return integer absolute value

lckpwdf
lock password file

lcong48
generate uniformly distributed pseudo-random numbers

ldexp
manipulate floating-point numbers

ldexpf
manipulate floating-point numbers

ldexpl
manipulate floating-point numbers

ldiv
compute the quotient and remainder

lfind
linear search and update

lfmt, vlfmt
display error message in standard format and pass to logging and monitoring services

llabs
return integer absolute value

lldiv
compute the quotient and remainder

localeconv
get numeric formatting information

localtime
convert date and time to string

localtime_r
convert date and time to string

lockf
record locking on files

lockf64
record locking on files (supports large files)

lockf, lockf64
record locking on files

logb
manipulate floating-point numbers

logbf
manipulate floating-point numbers

logbl
manipulate floating-point numbers

_longjmp
non-local goto

longjmp
non-local goto

lrand48
generate uniformly distributed pseudo-random numbers

lsearch, lfind
linear search and update

makecontext
modify user context

makedev, major, minor
manage a device number

mallinfo
checking memory allocator

malloc, calloc, free, realloc, memalign, valloc, mallinfo
checking memory allocator

mbchar: mbtowc, wctomb, mblen, mbrtowc, wcrtomb, mbrlen
multibyte character handling

mblen
multibyte character handling

mbrlen
multibyte character handling

mbrtowc
multibyte character handling

mbsinit
test for initial multibyte conversion state

mbsrtowcs
multibyte string functions

mbstowcs
multibyte string functions

mbstring: mbstowcs, wcstombs, mbsrtowcs, wcsrtombs
multibyte string functions

mbtowc
multibyte character handling

memalign
checking memory allocator

memccpy
memory operations

memchr
memory operations

memcmp
memory operations

memcpy
memory operations

memmove
memory operations

memory: memccpy, memchr, memcmp, memcpy, memmove, memset
memory operations

memset
memory operations

mkfifo
create a new FIFO

mkstemp
make a unique file name

mktemp
make a unique file name

mktime
converts a tm structure to a calendar time

mlock
lock pages in memory

mlockall
lock address space

modf
manipulate floating-point numbers

modff
manipulate floating-point numbers

modfl
manipulate floating-point numbers

monitor
prepare execution profile

mrand48
generate uniformly distributed pseudo-random numbers

msync
synchronize memory with physical storage

munlock
unlock pages in memory

munlockall
unlock address space

nap
suspend execution for a short interval

ndbm: dbm_clearerr, dbm_close, dbm_delete, dbm_error, dbm_fetch, dbm_firstkey, dbm_nextkey, dbm_open, dbm_store
database subroutines

nextafter
manipulate floating-point numbers

nextafterf
manipulate floating-point numbers

nextafterl
manipulate floating-point numbers

nftw
walk a file tree, takes defining flags

nftw64
walk a file tree, takes defining flags (supports large files)

nl_langinfo
language information

nrand48
generate uniformly distributed pseudo-random numbers

offsetof
offset of structure member

opendir
open a directory

optarg
pointer to start of option argument

opterr
disable getopt error message

optind
index of the next option argument

optopt
value of character that caused getopt error

perror
print system error messages

pfmt, vpfmt
display error message in standard format

procprivl
add, remove, count, or put privileges associated with the calling process

ptsname
get name of the slave pseudo-terminal device

putenv
change or add value to environment

putpwent
write password file entry

putspent
write shadow password file entry

putws
put a wchar_t string on a stream

qsort
quicker sort

raise
send signal to program

rand
simple random-number generator

random
return psuedo-random number

random: initstate, random, setstate, srandom
pseudorandom number functions

rand_r
simple random-number generator

rand, rand_r, srand
simple random-number generator

rbt_delete
balanced binary tree operations

rbt_find
balanced binary tree operations

rbt_free
balanced binary tree operations

rbt_init
balanced binary tree operations

rbt_insert
balanced binary tree operations

rbtree: rbt_delete, rbt_find, rbt_free, rbt_init, rbt_insert, rbt_walk
manage balanced binary tree

rbt_walk
balanced binary tree operations

readdir
return pointer to next open directory

readdir64
return pointer to next open directory (supports large files)

readdir64_r
return pointer to next open directory (supports large files)

readdir_r
return pointer to next open directory

realloc
checking memory allocator

realpath
returns the real file name

re_comp
compile regular expression

re_comp, re_exec
regular expression handler

re_exec
compare regular expressions

regcmp
compile regular expression

regcmp, regex
regular expression handler

regcomp, regexec, regerror, regfree
regular expression matching

regex
compare regular expressions

remove
remove file

remque
remove element from a queue

rewinddir
reset position of named directory stream

rindex
string operations

scalb
manipulate floating-point numbers

scalbf
manipulate floating-point numbers

scalbl
manipulate floating-point numbers

seed48
generate uniformly distributed pseudo-random numbers

seekdir
set position of next read on directory stream

select, FD_CLR, FD_ISSET, FD_SET, FD_ZERO
synchronous I/O multiplexing

setcat
define default catalog

setgrent
rewind the group file

sethostname
set name of current host

setitimer
set value of interval timer

_setjmp
non-local goto

setjmp
non-local goto

setlabel
define the label for pfmt

setlocale
modify and query a program's locale

setpriority
set program scheduling priority

setpwent
rewind password file for further searches

setregid
set real and effective group IDs

setreuid
set real and effective user IDs

setspent
rewind shadow password file for repeated searches

setstate
switch between state arrays

sigaddset
add to signal set

sigdelset
delete from signal set

sigemptyset
initialize empty signal set

sigfillset
initialize signal set to all signals

siginterrupt
allow signals to interrupt system calls

sigismember
query signal set

siglongjmp
a non-local goto with signal state

sigsetjmp
a non-local goto with signal state

sigsetops: sigemptyset, sigfillset, sigaddset, sigdelset, sigismember
manipulate sets of signals

sleep
suspend execution for interval

srand
simple random-number generator

srand48
generate uniformly distributed pseudo-random numbers

srandom
initialize the current state array

stdipc: ftok
standard interprocess communication package

strcasecmp
string operations

strcasecmp, strncasecmp
case-insensitive string comparisons

strcat
append copy of one string to another

strchr
return pointer to first (last) occurrence of c

strcmp
compare one string to another

strcoll
string collation

strcpy
copy one string to another

strcspn
return length of initial segment of string1 of characters from (not from) string2

strdup
return pointer to new duplicate string

strerror
get error message string

strfmon
convert monetary value to string

strftime, cftime, ascftime
convert date and time to string

string
string operations

strlen
return number of characters in string

strncasecmp
string operations

strncat
append n characters of one string to another

strncmp
compare n characters of one string to another

strncpy
copy n characters of one string to another

strpbrk
return pointer to first occurrence in string1 of any character in string2

strptime
date and time conversion

strrchr
return pointer to first (last) occurrence of c

strspn
return length of initial segment of string1 of characters from (not from) string2

strstr
locate first occurrence in string1 of sequence from string2

strtod, strtold, atof
convert string to double-precision number

strtok
return pointer of string token

strtok_r
return pointer of string token

strtold
convert string to double-precision number

strtoll
convert string to long long integer

strtol, strtoll, strtoul, strtoull, atol, atoll, atoi
convert string to integer

strtoul
convert string to unsigned long integer

strtoull
convert string to unsigned long long integer

strxfrm
string transformation

swab
swap bytes

swapcontext
saves and resets current context

sysconf
get configurable system variables

tcdrain
general terminal interface

tcflow
general terminal interface

tcflush
general terminal interface

tcgetattr
general terminal interface

tcgetpgrp
general terminal interface

tcgetsid
general terminal interface

tcgetspeed, tcsetspeed
get and set baud rate

tcsendbreak
general terminal interface

tcsetattr
general terminal interface

tcsetpgrp
set terminal foreground process group ID

tcsetpgrp
general terminal interface

tcsetspeed
get and set baud rate

tdelete
manage binary search trees

telldir
return current location of named directory stream

termios: tcgetattr, tcsetattr, tcsendbreak, tcdrain, tcflush, tcflow, cfgetospeed, cfgetispeed, cfsetispeed, cfsetospeed, tcgetpgrp, tcsetpgrp, tcgetsid
general terminal interface

tfind
manage binary search trees

timezone
date and time constant

toascii
convert characters to 7-bit ASCII

_tolower
convert lower case characters to upper case

tolower
convert lower case characters to upper case

_toupper
convert upper case characters to lower case

toupper
convert upper case characters to lower case

towlower
translate characters

towupper
translate characters

tsearch, tfind, tdelete, twalk
manage binary search trees

ttyname
find name of a terminal

ttyname_r
find name of a terminal

ttyname, ttyname_r, isatty
find name of a terminal

ttyslot
find the slot in the utmp file of the current user

twalk
manage binary search trees

tzname
date and time constant

tzset
convert date and time to string

ualarm
set the interval timer

ulckpwdf
unlock password file

unlockpt
unlock a pseudo-terminal master/slave pair

usleep
suspend process for interval in microseconds

utimes
set file access and modification times

valloc
checking memory allocator

wait3
wait for child process to change state

wconv: towupper, towlower
translate characters

wcrtomb
multibyte character handling

wcscat
concatenate two wide character strings

wcschr
scan a wide character string

wcscmp
compare two wide character strings

wcscoll
wide character string comparison using collating information

wcscpy
copy a wide character string

wcscspn
get length of complementary wide substring

wcsftime
convert date and time to wide character string

wcslen
obtain wide character string length

wcsncat
concatenate two wide character strings with bound

wcsncmp
compare two wide character strings with bound

wcsncpy
copy a wide character string with bound

wcspbrk
scan a wide character string for wide characters

wcsrchr
reverse wide character string scan

wcsrtombs
multibyte string functions

wcsspn
obtain the length of a wide substring

wcsstr, wcswcs
find wide substring

wcstod, wcstof, wcstold
convert wide string to floating point value

wcstok
split a wide character string into tokens

wcstol
convert a wide character string to a long integer

wcstoll
convert a wide character string to a long long integer

wcstombs
multibyte string functions

wcstoul
convert a wide character string to an unsigned long integer

wcstoull
convert a wide character string to an unsigned long long integer

wcswcs
find wide substring

wcswidth
determine the number of column positions for a wide character string

wcsxfrm
wide character string transformation

wctob
wide character to byte conversion

wctomb
multibyte character handling

wctype: iswalpha, iswupper, iswlower, iswdigit, iswxdigit, iswalnum, iswgraph, iswspace, iswpunct, iswprint, iswcntrl
test wide characters for a specified class

wcwidth
determine the number of column positions for a wide character

wordexp, wordfree
perform word expansions

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004