It's pretty nice that we can do this so easily with a single POSIX function call.  I assume things are way more complicated on Windows and Mac OS X.