Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site sdcc7.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!ittatc!dcdwest!sdcsvax!sdcc3!sdcc7!ln63fkn From: ln63fkn@sdcc7.UUCP (Paul van de Graaf) Newsgroups: net.lang.c Subject: Re: Unix/C program modularity Message-ID: <133@sdcc7.UUCP> Date: Mon, 21-Oct-85 05:19:12 EDT Article-I.D.: sdcc7.133 Posted: Mon Oct 21 05:19:12 1985 Date-Received: Wed, 23-Oct-85 05:58:31 EDT References: <637@dicomed.UUCP> <1219@wucs.UUCP> Reply-To: ln63fkn@sdcc7.UUCP (Paul van de Graaf) Organization: U.C. San Diego, Academic Computer Center Lines: 25 The problem here is not a question of programmers forever reinventing the wheel, but rather a lack of uniformity of the various flavors of Unix. Most defensive programmers take into account that the programs they write might be ported to v6 or XENIX or even a micro that only has an incomplete implementation of the stdio package (if that much). Writing a program with a myriad of fancy pipes and filters may be faster and easier, but if you don't want to go the extra mile to write emulations of certain system calls and a lot of ugly #ifdefs, you're going to lose if you try to port. The GNU project, the ANSI C standardization commitee, and the /usr/group people are all working on this problem from different directions, so don't expect an answer too soon. The GNU effort has great promise, because it could act as a clearinghouse for all those system-call emulators. Whether this fits in with their plans, I can't say, but I'd love to be able to call them up and get the 102nd version of getopt() for my Hal 9000 for a nominal charge. I kind of feel the ANSI C people decided that it was boring to standardize C, so they spilled over into Unix interface standardization. C and Unix aren't always synonymous, especially on micros: witness the Amiga and the Atari ST. If they don't stay on track, they may jeapordize their whole standard. The /usr/group folks talk a lot, but nobody listens... they're JUST a user group anyway :-)! Tough decisions need to be made in order to come up with a standard. In the meanwhile, I'm coding defensively. Paul van de Graaf sdcsvax!sdcc7!ln63fkn U. C. San Diego