Source Code
You can download each
chapter's source code samples, or download
one large tarball with them all.
Download by chapter:
- Chapter 2, The Compiler
Includes debuglog.m,
define.m,
describeObjects.m,
fat-macro-warn.c,
long-double.m,
multilineMacro.m,
predef.m,
preprocTest.m,
sizeprinter.c,
vararg.m,
warning.m
- Chapter 3, Libraries
Includes Adder,
BundlePrinter.h,
Cocoa-Plugins,
adder.h,
bundleprinter-dl.m,
bundleprinter.m,
dlopen-Plugins,
dylib-Plugins,
src[0-4].c,
useadd.m
- Chapter 4, Command Line Programs
Includes dumpargs.m,
getopt.m,
upcase-env.m,
upcase-fnmatch.m,
upcase.m
- Chapter 5, Memory
Includes dataseg.m,
limits.m,
mallocalign.m,
malloccheckstart.m,
mallocguard.m,
mallochelp.m,
mallochistory.m,
mallocscribble.m,
mallocsize.m,
memerror.m,
nodepool.m,
objectleak.m,
openfiles
- Chapter 6, Debugging with GDB
Includes assert.m,
assert2.m,
memerror.m
- Chapter 7, Exceptions, Error Handling, and Signals
Includes asl-list.m,
asl-log-n-query.m,
catch.m,
catchblock.m,
exception.m,
interrupt.m,
longjmp.m,
open.m,
raise-classic.m,
raise-native.m,
syslog.m
- Chapter 8, Files, Part 1: I/O and Permissions
Includes access.m,
append.m,
buffread.m,
fbinaryio.m,
mmap-rot13.m,
readstring.m,
readvecstring.m,
tempfun.m,
uid.m,
writestring.m,
writevecstring.m
- Chapter 9, Files, Part2: Directories, File Systems, and Links
Includes cheapls-direntries.m,
cheapls.m,
foldersize.m,
permtype-getattrlist.m,
permtype.m
- Chapter 10, NSFileManager
Includes Remover_A.tar.gz,
Remover_B.tar.gz,
Remover_C.tar.gz
- Chapter 11, Network Programming With Sockets
Includes chatterclient.m,
chatterserver.m,
ptontoa.m,
resolve.m,
simpleclient.m,
simpleserver
- Chapter 12, CFRunLoop
Includes CFChatterClient,
SCFMonitor,
scf-dump.m
- Chapter 13, Multiprocessing
Includes fork.m,
pcal.m,
pipeline.m,
status.m,
webserve.m
- Chapter 14, Using NSTask
Includes SortThem,
TraceRoute
- Chapter 15, kqueues
Includes CocoaDirWatcher,
dirwatcher.m,
sigwatcher.m
- Chapter 16, Accessing the Keychain
- Chapter 17, Authorization
Includes Remover,
Remover_A.tgz,
Remover_B.tgz
- Chapter 18, Distributed Objects
Includes ChatterClient,
ChatterServing.h,
chatterd
- Chapter 19, Bonjour
Includes ChatterClient,
ChatterServing.h,
chatterd
- Chapter 20, Daemons and launchd
Includes minimal-daemon.m,
minimal-daemon.plist,
minimal-service.pl,
minimal-service.plist,
sampled.m,
sampled.plist
- Chapter 21, Directory Services
- Chapter 22, Multithreading
Includes ThreadDraw,
basics.m,
mutex.m,
synchronized.m,
webserve-thread.m
- Chapter 23, Using Distributed Objects Between Threads
Includes Mandelbrotter
- Chapter 24, Subversion
No source code for this chapter.
- Chapter 25, Performance Tuning
Includes locality.m,
machtime.m
- Chapter 25, Performance Tuning - Screen Shots (2 meg)