broken.c | Poorly written code to test memory checkers | 59 |
libhello.c | Simple example of a shared library | 86 |
usehello.c | Simple example of calling a function in a shared library | 86 |
calc.c | Demonstration of pipe() to implement a calculator | 133 |
ladsh1.c | The first pass at a simple command shell | 140 |
hwwrite.c | Demonstration of creating and writing to a file | 169 |
cat.c | Implementation of cat illustrating read() and write() | 174 |
statsamp.c | Displays results of stat(), lstat(), and fstat() | 178 |
checkflags.c | Displays status of ext3 extended attributes | 185 |
setflags.c | Sets values of ext3 extended attributes | 187 |
mknod.c | Creates device files and named pipes | 189 |
sighup.c | Demonstration of SIGHUP forcing log file resets | 225 |
queued.c | Demonstration of signal queuing and reordering | 228 |
sicode.c | Sample of values for si_code on signal delivery | 233 |
catch-segv.c | Display fields from siginfo_t for SIGSEGV | 236 |
sigval.c | Shows using sigqueue() to send data with a signal | 238 |
mpx-blocks.c | Displays input from two pipes, alternatively | 242 |
mpx-nonblock.c | Displays input from two pipes via nonblocking I/O | 244 |
mpx-poll.c | Displays input from two pipes using poll() | 247 |
mpx-select.c | Displays input from two pipes using select() | 252 |
select-vs-poll.c | Compares the performance of select() and poll() | 254 |
mpx-epoll.c | Displays input from two pipes using epoll | 261 |
poll-vs-epoll.c | Compares the performance of poll() and epoll | 263 |
map-cat.c | Cat-like program which uses mmap() for file access | 272 |
lock.c | Simple example of record locking | 282 |
leases.c | Uses leases to tell when other processes open files | 287 |
gather.c | Simple example of scatter/gather writes | 291 |
dircontents.c | Lists all of the files in the current directory | 298 |
popenglob.c | Runs a subshell to glob files in a portable manner | 300 |
globit.c | Globs all of its arguments, and displays the matches | 304 |
find.c | A restricted reimplementation of find which uses nftw() | 315 |
dirchange.c | Tracks changes to directories as they occur | 319 |
monitor.c | Displays job control signals as they are sent | 327 |
utmp.c | Dumps raw contents of utmp and wtmp files | 347 |
readpass.c | Reads a password without displaying it on the terminal | 354 |
robin.c | A simple serial port interaction program | 355 |
ptypair.c | Allocate a matched pair of pty devices | 393 |
forkptytest.c | Runs a subshell in a new tty using forkpty() | 396 |
ptytest.c | Shows how to use ptys with hand-coded pty handling | 400 |
sockutil.c | Utility functions used in socket example programs | 411 |
userver.c | Simple Unix Domain Socket server | 419 |
uclient.c | Simple Unix Domain Socket client | 422 |
passfd.c | Cat-like program which uses file descriptor passing | 425 |
clientlookup.c | Illustrates how clients lookup hosts and ports | 442 |
serverlookup.c | Illustrates how servers lookup hosts and ports | 443 |
netlookup.c | Demonstrates the features of getaddrinfo() | 445 |
reverselookup.c | Demonstrates features of getnameinfo() | 451 |
tserver.c | Simple TCP/IP server | 455 |
tclient.c | Simple TCP/IP tclient | 458 |
tftpserver.c | Minimal tftp server to illustrate UDP sockets | 465 |
lookup.c | Uses legacy host lookup calls for hostnames | 475 |
services.c | Displays port information using legacy functions | 477 |
daytime.c | Displays the limits of time on this system | 489 |
itimer.c | Demonstrates use of interval timers | 493 |
minopen.c | Runs a shell on the first unused tty | 510 |
bufferoverflow.c | A simple example of a buffer overflow | 537 |
match.c | Matches a string against a regular expression | 560 |
grep.c | Limited reimplementation of the grep command | 562 |
slecho.c | Simple demonstration of S-Lang input handling | 570 |
slinit.c | Skeletal example of S-Lang's SLsmg layer | 575 |
slcharset.c | S-Lang program to show normal and alternate character sets | 579 |
qdbmsimple.c | Opens and closes a qdbm database | 586 |
phones.c | Telephone number database built using db library | 591 |
popt-lib.c | Library which provides a popt table for nesting | 610 |
popt-nest.c | Example of using a nested popt table from a library | 611 |
loadhello.c | Manually loads and makes use of a simple shared library | 624 |
id.c | Displays uid, gid, and supplemental group information | 630 |
pamexample.c | Simple example of authentication using PAM | 641 |
libhello.h | Header file for libhello.c shared library | 649 |
ptypair.h | Defines function interface for ptypair.c | 649 |
sockutil.h | Prototypes for utility functions used in socket examples | 649 |
ladsh4.c | The complete version of a basic system shell | 651 |