The globvar Utility Program

To permit the use of the utility while you progress through this chapter, compile the globvar utility now. The following shows a FreeBSD make(1) session:

$ make
cc -c  -Wall -DHAVE_SEMUN -g globat.c
cc -c  -Wall -DHAVE_SEMUN -g globcr.c
cc -c  -Wall -DHAVE_SEMUN -g globget.c
cc -c  -Wall -DHAVE_SEMUN -g globlk.c
cc -c  -Wall -DHAVE_SEMUN -g globset.c
cc -c  -Wall -DHAVE_SEMUN -g globvar.c
cc -c  -Wall -DHAVE_SEMUN -g globdest.c
cc -c  -Wall -DHAVE_SEMUN -g globun.c
cc -o globvar globat.o globcr.o globget.o globlk.o globset.o  globvar.o globdest.o globun.o
$
					

The usage information display is available with the -h option:

$ ./globvar -h globvar [-i] [-s size] [-e] [-u] [-r] [-c] var... var=value... Options: -i Initialize new ...

Get Advanced UNIX Programming 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.