In addition to what's been pointed out so far on that subject, you might want to have a look at Bill Gallmeister's POSIX.4 book. Despite being somewhat dated now (it was written at the time of the .1b-1993 standard) there's a plethora of application portability advice to be found in that book. - Klaus