Code Examples

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 ...

Get Linux Application Development, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.