delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/02/14/13:47:36

Date: Sat, 14 Feb 1998 13:47:34 -0500 (EST)
Message-Id: <199802141847.NAA24062@delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: nedu AT ee DOT washington DOT edu
CC: djgpp-workers AT delorie DOT com
In-reply-to: <199802141800.KAA08409@mailhost2.cac.washington.edu>
(nedu AT ee DOT washington DOT edu)
Subject: Re: Suggestion: Portability section for libc docs

> Also, I assume that Unix means BSD--are there any differences among 
> major Unix flavors that will actually make a difference?

Ha!  There is a *lot* of difference.  For example, SunOS free() takes
a char* not a void*, so you can't pass it just any pointer, and you
can't even cast to void* to make it work!  You have to cast to char*.

This is what POSIX tried to solve.  The X/Open stuff also tried.

Check out gnu's autoconf to see what kinds of things they have to test
for just to keep things working across unix platforms!

There are two major Unix flavors - BSD and SYSV.  I think SYSV is more
like POSIX, but BSD covers Linux, BSDs, FreeBSD, SunOS, etc.  It's a
mess.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019