Porting to FreeBSD, chapter 2