Xref: utzoo comp.unix.misc:1144 comp.os.os2.misc:871 comp.os.os2.programmer:534 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!pacbell.com!tandem!zorch!vsi1!daver!genco!rad From: rad@genco.bungi.com (Bob Daniel) Newsgroups: comp.unix.misc,comp.os.os2.misc,comp.os.os2.programmer Subject: Re: Porting C under UNIX to OS/2 Keywords: UNIX, OS/2, Porting Message-ID: <583@genco.bungi.com> Date: 18 Mar 91 20:15:07 GMT References: <907@npdiss1.StPaul.NCR.COM> Reply-To: rad@genco.bungi.com (Bob Daniel) Followup-To: comp.unix.misc Organization: Gentry & Assoc. Excelsior Springs, MO Lines: 17 In article <907@npdiss1.StPaul.NCR.COM> remde@npdiss1.StPaul.NCR.COM (Kevin Remde) writes: >I've recently been given the task of researching the ins and outs of >porting C code from UNIX to OS/2 platforms. I was wondering where I >might find books or other resources that might help me in this task. I have not ported a UNIX app to OS/2 but have done it to Macintosh. The key issue is the compiler you use. I was using a compiler that contained all the UNIX libraries (and ANSI C). It was Think C. This biggest issue that came up was forking processes. It was however relatively easy to deal with. Just modify it to run under the same process. I've ported some small apps to Mac with almost no modifications. I would think the same can be done to OS/2 with a decent compiler. I have not seen any books on porting code but if you are familiar with UNIX and OS/2 programming, it isn't as difficult a task as it may seem. (Unless you have a compiler w/out UNIX libs.)