Example | Relevant Functions | |
---|---|---|
C.1 | notatty.c |
open, printf, isatty (implied) |
C.2 | longpath.c |
mkdir,
chdir,
creat, getcwd, path_alloc, realloc |
C.3 | getpwsvr4.c |
getspnam |
C.4 | getpw44bsd.c |
getpwnam |
C.5 | prtime.c |
time, localtime, strftime |
C.6 | vfork3.c |
vfork (not under IRIX) |
C.7 | zombie.c |
fork,
err_sys (Stevens' lib), sleep, system, exit |
C.8 | raise |
getpid, kill |
C.9 | lib.sun/sleepus.c |
select |
C.10 | lib.svr4/sleepus.c |
poll |
C.11 | selectpipe.c |
select
pipe, err_sys (Stevens' lib), FD_ZERO, FD_SET, write, printf, exit |
C.12 | sess/tdaemon2.c |
daemon_init
(see 13.1), close, getlogin, sprintf, write, exit |
C.13 | ipc/fifo1.c |
unlink,
mkfifo,
open, err_sys (Stevens' lib), clr_fl (Stevens' lib), exit |