Poorly written code to test memory checkers | 59 | |
Simple example of a shared library | 86 | |
Simple example of calling a function in a shared library | 86 | |
Demonstration of | 133 | |
The first pass at a simple command shell | 140 | |
Demonstration of creating and writing to a file | 169 | |
Implementation of cat illustrating | 174 | |
Displays results of | 178 | |
Displays status of ext3 extended attributes | 185 | |
Sets values of ext3 extended attributes | 187 | |
Creates device files and named pipes | 189 | |
Demonstration of | 225 | |
Demonstration of signal queuing and reordering | 228 | |
Sample of values for | 233 | |
Display fields from | 236 | |
Shows using | 238 | |
Displays input from two pipes, alternatively | 242 | |
Displays input from two pipes via nonblocking I/O | 244 | |
Displays input from two pipes using | 247 | |
Displays input from two pipes using | 252 | |
Compares the performance of | 254 | |
Displays input from two pipes using | 261 | |
Compares the performance of | 263 | |
Cat-like program which uses | 272 | |
Simple example of record locking | 282 | |
Uses leases to tell when other processes open files | 287 | |
Simple example of scatter/gather writes | 291 | |
Lists all of the files in the current directory | 298 | |
Runs a subshell to glob files in a portable manner | 300 | |
Globs all of its arguments, and displays the matches | 304 | |
A restricted reimplementation of find which uses | 315 | |
Tracks changes to directories as they occur | 319 | |
Displays job control signals as they are sent | 327 | |
Dumps raw contents of utmp and wtmp files | 347 | |
Reads a password without displaying it on the terminal | 354 | |
A simple serial port interaction program | 355 | |
Allocate a matched pair of pty devices | 393 | |
Runs a subshell in a new tty using | 396 | |
Shows how to use ptys with hand-coded pty handling | 400 | |
Utility functions used in socket example programs | 411 | |
Simple Unix Domain Socket server | 419 | |
Simple Unix Domain Socket client | 422 | |
Cat-like program which uses file descriptor passing | 425 | |
Illustrates how clients lookup hosts and ports | 442 | |
Illustrates how servers lookup hosts and ports | 443 | |
Demonstrates the features of | 445 | |
Demonstrates features of | 451 | |
Simple TCP/IP server | 455 | |
Simple TCP/IP tclient | 458 | |
Minimal tftp server to illustrate UDP sockets | 465 | |
Uses legacy host lookup calls for hostnames | 475 | |
Displays port information using legacy functions | 477 | |
Displays the limits of time on this system | 489 | |
Demonstrates use of interval timers | 493 | |
Runs a shell on the first unused tty | 510 | |
A simple example of a buffer overflow | 537 | |
Matches a string against a regular expression | 560 | |
Limited reimplementation of the grep command | 562 | |
Simple demonstration of S-Lang input handling | 570 | |
Skeletal example of S-Lang’s | 575 | |
S-Lang program to show normal and alternate character sets | 579 | |
Opens and closes a qdbm database | 586 | |
Telephone number database built using db library | 591 | |
Library which provides a popt table for nesting | 610 | |
Example of using a nested popt table from a library | 611 | |
Manually loads and makes use of a simple shared library | 624 | |
Displays uid, gid, and supplemental group information | 630 | |
Simple example of authentication using PAM | 641 | |
Header file for libhello.c shared library | 649 | |
Defines function interface for ptypair.c | 649 | |
Prototypes for utility functions used in socket examples | 649 | |
The complete version of a basic system shell | 651 |