Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!dali.cs.montana.edu!milton!sumax!thebes!camco!bill From: bill@camco.Celestial.COM (Bill Campbell) Newsgroups: comp.unix.programmer Subject: Re: Books on portibility between Unixes? Message-ID: <993@camco.Celestial.COM> Date: 12 May 91 01:41:34 GMT References: <1991May9.181650.12516@homecare.COM> Organization: Celestial Software, Mercer Island, WA Lines: 26 In <1991May9.181650.12516@homecare.COM> jessea@homecare.COM (Jesse W. Asher) writes: :I'd like to write some software that is very portable between different :types of Unix. I'm not just talking about BSD vs. SystemV, but also how :different system's compilers handle various functions differently. I've :written a program that I've compiled on a 386 running SysV, an NCR tower :running SysV, and a SparcStation running SunOS, and I had to make :modifications all three times. So first, I'd like to find out what :functions are most portable, and then find out how to use directives :(ifdef, ifndef, etc) to make the software as portable as possible. I'd :like to take the tact that I want to eventually post this software to :the net, but I don't know how to make it as portable as possible. I've :looked at various programs already posted on the net (Cnews, elm, etc) :and that has given me ideas. But does anyone know of a good publication :on this type of programming? Two books I've found very useful are: Portable C & Unix System Programming by J.E. Lapin Prentice-Hall Software Series ISBN 0-13-686494-5 Reliable Data Structures in C by Thomas Plum Plum Hall ISBN 0-911537-04-X -- INTERNET: bill@Celestial.COM Bill Campbell; Celestial Software UUCP: ...!thebes!camco!bill 6641 East Mercer Way uunet!camco!bill Mercer Island, WA 98040; (206) 947-5591