Click on one of the files below to view it in your browser.

Shift-click to download it.

      Name                    Last modified       Size  Description

[DIR] Parent Directory 05-Jan-2004 08:31 - [   ] buffer.c 21-May-2003 18:07 1k [   ] buffer.h 21-May-2003 18:07 1k [   ] bufferbad.c 21-May-2003 18:07 1k [   ] buffercond.c 21-May-2003 18:07 1k [   ] bufferconddone.c 21-May-2003 18:07 3k [   ] bufferinitmutex.c 21-May-2003 18:07 1k [   ] bufferinitonce.c 21-May-2003 18:07 1k [   ] buffersem.c 21-May-2003 18:07 2k [   ] bufferseminit.c 21-May-2003 18:07 2k [   ] convertlinux 21-May-2003 18:07 1k [   ] convertlinux.ed 21-May-2003 18:07 1k [   ] convertmac 21-May-2003 18:07 1k [   ] convertmac.ed 21-May-2003 18:07 1k [   ] doneflag.h 21-May-2003 18:07 1k [   ] globalerror.c 21-May-2003 18:07 1k [   ] globalerror.h 21-May-2003 18:07 1k [   ] isregular.c 21-May-2003 18:07 1k [   ] isregulartest.c 21-May-2003 18:07 1k [   ] makefile 21-May-2003 18:07 3k [   ] randconsumer.c 21-May-2003 18:07 1k [   ] randconsumerdone.c 21-May-2003 18:07 1k [   ] randpcdone.c 21-May-2003 18:07 2k [   ] randpcforever.c 21-May-2003 18:07 1k [   ] randpcsig.c 21-May-2003 18:07 2k [   ] randproducer.c 21-May-2003 18:07 1k [   ] randproducerdone.c 21-May-2003 18:07 1k [   ] randsafe.c 21-May-2003 18:07 1k [   ] randsafe.h 21-May-2003 18:07 1k [   ] sharedsum.c 21-May-2003 18:07 1k [   ] sharedsum.h 21-May-2003 18:07 1k [   ] showresults.c 21-May-2003 18:07 1k [   ] signalthread.c 21-May-2003 18:07 2k [   ] signalthread.h 21-May-2003 18:07 1k

This file contains information about compiling the programs from Chapter 16
of UNIX Systems Programming.

Under Solaris: no changes needed.

Under Linux:
   Compiling the programs under Linux typically requires that the constant
   _GNU_SOURCE be defined.  Run the convertlinux program once to modify the
   makefile use this constant.

Under Mac OS X:
   Mac OS X does not need to have the rt library explicitly included on the
   compile line.  Run the convertmac program once to modify the makeilfe
   to remove this.

   The dirent.h include file needs the stdlib.h include file.
   The convertmac program also modifies isregulartest.c to
   include stdlib.h before dirent.h:

If you run the programs on another system and need to make modifications to
make them work, please send email to authors@usp.cs.utsa.edu to let us know
what you did.