by W. Richard Stevens
Addison-Wesley Professional Computing Series
0-201-56317-7 * Hardcover * 768 pages * ©1992
[Buy this book]
Example | Relevant Functions | |
---|---|---|
18.1 | calld.h |
See below |
18.2 | main.c |
loop |
18.3 | loop.c |
signal_intr (Stevens' lib), log_sys, log_msg, log_quit (Stevens' lib), serv_listen (Stevens' func), FD_ZERO, FD_SET, FD_CLR, FD_ISSET, strcpy, select, read, serv_accept (Stevens' func), client_add, client_del (Stevens' func), lock_rel (Stevens' func), request (Stevens' func), send_err (Stevens' func), close |
18.4 | cli_args |
strcmp,
strcpy,
sprintf, getopt, optind, opterr, |
18.5 | client.c |
malloc,
realloc, err_sys, log_quit (Stevens' lib) |
18.6 | lock.c |
strcmp,
strcpy,
malloc,
realloc, err_sys, log_msg (Stevens' lib), |
18.7 | sysfile.c |
fopen,
fgets,
strtok, log_sys, log_quit (Stevens' lib), ftell, rewind, fseek |
18.8 | devfile.c |
fopen,
fgets,
strtok, log_sys, log_quit (Stevens' lib), rewind, strcmp, sprintf |
18.9 | dialfile.c |
fopen,
fgets,
strtok, log_sys, log_quit (Stevens' lib), rewind, strcmp, sprintf |
18.10 | request |
sys_posn,
sys_next,
child_dial (Stevens' func), DEBUG, is_locked, lock_set (Stevens' func), dev_find (Stevens' func), strcmp, sprintf, fork, TELL_WAIT, TELL_CHILD (Stevens' lib), WAIT_PARENT, log_sys (Stevens' lib), |
18.11 | sig_chld |
waitpid
client_sigchld
log_sys (Stevens' lib), log_msg (Stevens' lib) |
18.12 | childdial.c |
DEBUG (Stevens' func), tty_open, tty_dial, dial_find (Stevens' func), send_fd, log_sys, writen (Stevens' lib), strcmp, strlen |
18.13 | debug.c |
va_start,
va_end,
vsprintf,
strlen, log_sys, writen (Stevens' lib), |
18.14 | tty_open |
strcmp,
strcpy, strcat, sprintf, open, isatty, tcgetattr, tcsetattr, cfsetispeed, cfsetospeed, clr_fl (Stevens' lib) |
18.15 | tty_dial |
strtok, expect_str, send_str (Stevens' func) |
18.16 | calld/sendstr.c |
sprintf, DEBUG, DEBUG_NONL (Stevens' funcs), read, write, log_sys (Stevens' lib) |
18.17 | ctl_str |
sprintf |
18.18 | expect_str |
strcmp,
strncmp,
strlen, sprintf, signal, alarm, read, log_quit, log_sys (Stevens' lib), DEBUG (Stevens' func) |
18.19 | The Client: call.h |
See below |
18.20 | main.c |
getopt,
optind, opterr, call.c (Stevens' func.), strcat, printf, atexit, exit, tty_raw, err_sys (Stevens' lib), loop (main client loop) |
18.21 | call |
cli_conn (Stevens' func.), strlen, writev, err_sys, recv_fd (Stevens' lib) |
18.22 | loop |
setbuf,
poll,
read, err_sys (Stevens' lib), doescape (Stevens' func), writen (Stevens' lib), write |
18.23 | doescape |
read,
write, err_sys, tty_reset, tty_raw (Stevens' lib), getpid, kill, tcsendbreak, take, put (Stevens' func) |
18.24 | take |
prompt_read (Stevens' func), printf, fopen, err_ret, err_sys (Stevens' lib), putc, fflush, sprintf, strlen, write, ferror, fclose, read |
18.25 | take_put_args, prompt_read |
tty_reset,
tty_raw,
err_sys (Stevens' lib), strlen, write, read, buf_args (Stevens' func), |
18.26 | put |
prompt_read (Stevens' func), printf, fopen, err_ret, err_sys (Stevens' lib), putc, fflush, sprintf, strlen, write, tcdrain, sleep, getc, tty_termios (Stevens' lib), tcflush, ferror, fclose |