From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 100159,805e0071ac25e02c X-Google-Attributes: gid100159,public X-Google-Thread: fc89c,805e0071ac25e02c X-Google-Attributes: gidfc89c,public X-Google-Thread: f6653,805e0071ac25e02c X-Google-Attributes: gidf6653,public X-Google-Thread: 115614,805e0071ac25e02c X-Google-Attributes: gid115614,public X-Google-Thread: fcda7,805e0071ac25e02c X-Google-Attributes: gidfcda7,public X-Google-Thread: 10650a,805e0071ac25e02c X-Google-Attributes: gid10650a,public X-Google-Thread: fee84,805e0071ac25e02c X-Google-Attributes: gidfee84,public X-Google-Thread: 11035d,805e0071ac25e02c X-Google-Attributes: gid11035d,public From: mib@ppe.bb-data.de Subject: Re: best UNIX OS as primary platform for UNIX system software develpoment? Date: 1996/09/03 Message-ID: #1/1 X-Deja-AN: 178146668 distribution: inet sender: mib@LOSIRA references: <4v2j4b$2bs@knot.queensu.ca> <32189D13.3834@arborsoft.com> organization: BB-DATA GmbH, Berlin, Germany newsgroups: comp.unix.solaris,comp.sys.sun.misc,comp.sys.hp.hpux,comp.unix.internals,comp.unix.programmer,comp.unix.aix,comp.unix.osf.osf1,comp.sys.sgi.misc Pawel Wezgowiec writes: > Is HP-UX that bad platform ?? > > Probably there are more Unix systems with > sizeof(int) == sizeof(long). But I don't think it's > really important. If you are a very good developer who doesn't make the stupid kind of mistakes we mere mortals make (and you don't have any code from mere mortals to maintain or incorporate into your code), or if you absolutely, positively know that you'll never port your code to a platform where ints and longs are really distinct types, then it is not important. But my experience, people do make mistakes like time_t t; sprintf(buf, "%ld", t); or long l; time(&l); or int foo(long *l); int i; foo(&i); or int foo(int i) { void *p=(void*)i; } or ... Believe me. It does happen (especially legacy code is full of this kind of stuff). And if you have to weed these out during a port -- nightmare.