next up previous contents
Next: E About this Document Up: Unix Communication Facilities Previous: C Glossary

D Used UNIX System & Library Calls

The tables below give an overview of all used UNIX system & library calls. The second, third and fourth column indicate whether the function is conforming to 4.4BSD, SVID2 and POSIX.1 respectively. All used systems claim to be be POSIX.1 conforming, therefore they support all the POSIX.1 function calls, even if they are not marked as such. Note that some system calls are used in local and distributed IPC, these are not repeated in the distributed IPC table.

More information about the used system & library calls can be obtained via the `man function' command, or see B.3 for additional information.

Name BSDSVIDPOSIXPurpose
kill tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 send signal to a process
sigaction     tex2html_wrap_inline9217 set up a signal handler with diverse options
sigaddset     tex2html_wrap_inline9217 Adds a signal to asignal set
signal tex2html_wrap_inline9217 tex2html_wrap_inline9217   set up a signal handler
sigprocmask     tex2html_wrap_inline9217 examines and changes blocked signals
sigsuspend     tex2html_wrap_inline9217 atomically swap out the signal mask while waiting for a signal
Table 38: UNIX Signal Handling Functions

Name BSD SVID POSIX Purpose
close tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 close a file descriptor
dup tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 create a copy of a file descriptor
dup2 tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 create a copy of a file descriptor
mkfifo     tex2html_wrap_inline9217 create a FIFO (named pipe)
open tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 open and possibly create a file or device
pipe tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 create pipe (pair of file descriptors, one for reading, one for writing)
read tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 read from a file descriptor
socketpair tex2html_wrap_inline9217     create a pair of connected sockets
unlink tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 delete a name and possibly the file it refers to
write tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 write to a file descriptor
Table 39: UNIX System Calls for Local IPC

Name BSD SVID POSIX Purpose
msgctl   tex2html_wrap_inline9217   diverse message control operations
msgget   tex2html_wrap_inline9217   get a message queue identifier
msgrcv   tex2html_wrap_inline9217   receive a message from a message queue
msgsnd   tex2html_wrap_inline9217   send a message to a message queue
semctl   tex2html_wrap_inline9217   diverse semaphore control operations
semget   tex2html_wrap_inline9217   get a semaphore set identifier
semop   tex2html_wrap_inline9217   semaphore operations
shmat   tex2html_wrap_inline9217   attaches a shared memory region to the data segment of the calling process
shmctl   tex2html_wrap_inline9217   diverse shared memory control operations
shmdt   tex2html_wrap_inline9217   detaches a shared memory region from the calling process's data segment
shmget   tex2html_wrap_inline9217   allocates a shared memory region
Table 40: UNIX System V IPC Specific System Calls

Name BSD SVID POSIX Purpose
accept tex2html_wrap_inline9217     waits for a client to connect
bind tex2html_wrap_inline9217     register name for a socket
connect tex2html_wrap_inline9217     establish a connection with a server
gethostbyname tex2html_wrap_inline9217     get network host entry
gethostname tex2html_wrap_inline9217     get host name
getservbyname tex2html_wrap_inline9217     get service entry
inet_addr tex2html_wrap_inline9217     converts the Internet host address from numbers-and-dots notation into binary data in network byte order
inet_ntoa tex2html_wrap_inline9217     converts the Internet host address given in network byte order to a string in standard numbers-and-dots notation
listen tex2html_wrap_inline9217     used by connection-oriented server to indicate that it is willing to receive connections
recv tex2html_wrap_inline9217     receive a message from a socket (only if in connected state)
recvfrom tex2html_wrap_inline9217     receive a message from a socket
rresvport tex2html_wrap_inline9217    
send tex2html_wrap_inline9217     transmit a message to another socket (only if in connected state)
sendto tex2html_wrap_inline9217     transmit a message to another socket
socket tex2html_wrap_inline9217     create an endpoint for communication
Table 41: UNIX System & Library Calls for BSD's Socket API

Name BSD SVID POSIX Purpose
t_accept   tex2html_wrap_inline9217   accept a connect request
t_alloc   tex2html_wrap_inline9217   allocate a library structure
t_bind   tex2html_wrap_inline9217   bind an address to a transport endpoint
t_close   tex2html_wrap_inline9217   close a transport endpoint
t_listen   tex2html_wrap_inline9217   listen for a connect request
t_open   tex2html_wrap_inline9217   establish a transport endpoint
t_rcv   tex2html_wrap_inline9217   receive data or expedited data sent over a connection
t_rcvudata   tex2html_wrap_inline9217   receive a data unit
t_snd   tex2html_wrap_inline9217   send data or expedited data over a connection
t_sndudata   tex2html_wrap_inline9217   send a data unit
Table 42: UNIX Library Calls for the System V TLI

Name BSD SVID POSIX Purpose
sleep tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 sleep for specified number of seconds
gettimeofday tex2html_wrap_inline9217     get system time in seconds and microseconds
time tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 returns the value of time in seconds since 00:00:00 UTC, January 1, 1970
times tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 get process and child process (user and system) time
Table 43: UNIX Timing System & Library Calls

Name BSD SVID POSIX Purpose
sprintf tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 formatted output in a string
strcat tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 appends a string to another string
strerror tex2html_wrap_inline9217   tex2html_wrap_inline9217 return string describing error code
strncmp tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 compare two strings up to n characters
strtol tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 convert a string to a long integer
vsprintf tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 formatted output of a varargs argument list in a string
Table 44: UNIX String Library Calls

Name BSD SVID POSIX Purpose
exit tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 exit a process normally
fork tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 create an identical child process
getpid tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 get process identification of current process
getppid tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 get process identification of parent process
waitpid tex2html_wrap_inline9217   tex2html_wrap_inline9217 wait for process termination
Table 45: UNIX Process Related Library and System Calls

Name BSD SVID POSIX Purpose
bcopy tex2html_wrap_inline9217     copy byte strings
bzero tex2html_wrap_inline9217     write zeros to a byte string
free tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 free dynamically allocated memory
malloc tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 allocate memory dynamically
memcpy tex2html_wrap_inline9217 tex2html_wrap_inline9217   copy memory area
memset tex2html_wrap_inline9217 tex2html_wrap_inline9217   fill memory with a constant byte
select tex2html_wrap_inline9217     synchronous I/O multiplexing
sysconf tex2html_wrap_inline9217   tex2html_wrap_inline9217 get configuration information at runtime
umask tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 set file creation mask
uname tex2html_wrap_inline9217 tex2html_wrap_inline9217 tex2html_wrap_inline9217 get name and information about current kernel
Table 46: Diverse UNIX System and Library Calls


next up previous contents
Next: E About this Document Up: Unix Communication Facilities Previous: C Glossary

Gerhard Müller