Section A.5. System Calls and Library Functions


[Page 605 (continued)]

A.5. System Calls and Library Functions

Here is an alphabetized list of pages on which each system call or library function is described in Chapter 12, "Systems Programming."


[Pages 606 - 608]

Name

Synopsis

Described on page

accept

accepts a connection request from a client socket

517

alarm

sets a process "alarm clock"

489

bind

binds a socket to a name

516

bzero

fills an array with values of zero

526

chdir

changes a process's current working directory

482

chmod

changes a file's permission settings

466

chown

changes a file's owner and/or group

465

close

closes a file

450

closedir

close a directory stream

463

connect

connects to a named server socket

519

dup

duplicates a file descriptor

466

dup2

similar to dup ()

466

execl

replaces the calling process with an executable file

481

execlp

similar to execl ()

481

execv

similar to execl ()

481

execvp

similar to execl ()

481

exit

terminates a process

478

fchmod

similar to chmod ()

466

fchown

similar to chown ()

465

fcntl

gives access to miscellaneous file characteristics

468

fork

duplicates a process

475

fstat

similar to stat ()

462

ftruncate

similar to truncate ()

472

getegid

returns a process's effective group ID

484

geteuid

returns a process's effective user ID

484

getgid

returns a process's real group ID

484

gethostbyname

returns a structure describing an Internet host

525

gethostname

returns the name of the host

525

getpgid

returns a process's process group ID

498

getpid

returns a process's ID number

475

getppid

returns a parent process's ID number

475

getuid

returns a process's real user ID

484

htonl

converts a host-format number to a network-format number

526

htons

similar to htonl ()

526

inet_addr

returns a 32-bit value IP address

524

inet_ntoa

returns a string-format IP address

525

ioctl

controls a device

469

kill

sends a signal to a specified process or group of processes

492

lchown

similar to chown ()

465

link

creates a hard link

469

listen

sets the maximum number of pending socket connections

517

lseek

moves to a particular offset in a file

449

lstat

similar to stat ()

462

memset

fills an array with a specific value

526

mkdir

create a directory

471

mkfifo

create a named pipe

505

mknod

creates a special file

471

nice

changes a process's priority

483

ntohl

converts a network-format number to a host-format number

526

ntohs

similar to ntohl ()

526

open

opens or creates a file

446

opendir

open a directory stream for reading with readdir ()

463

pause

suspends the calling process and returns when a signal is received

490

perror

displays message text from most recent system call error

435

pipe

creates an unnamed pipe

502

read

reads bytes from a file into a buffer

447

readdir

read a directory entry from an open stream

463

setegid

sets a process's effective group ID

484

seteuid

sets a process's effective user ID

484

setgid

sets a process's real and effective group ID

484

setpgid

sets a process's real and effective group ID

497

setuid

sets a process's real and effective user ID

484

signal

specifies the action that will be taken when a particular signal arrives

490

socket

creates an unnamed socket

515

stat

returns status information about a file

462

sync

schedules all file buffers to be flushed to disk

472

sysctl

examine or modify kernel parameters

591

truncate

truncates a file

472

unlink

removes a file

451

wait

waits for a child process

480

write

writes bytes from a buffer to a file

448





Linux for Programmers and Users
Linux for Programmers and Users
ISBN: 0131857487
EAN: 2147483647
Year: 2007
Pages: 339

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