Porting to FreeBSD, chapter 1