From mboxrd@z Thu Jan 1 00:00:00 1970
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10872d,d4c1f7c0fe672a4
X-Google-Attributes: gid10872d,public
X-Google-Thread: 1164f8,d4c1f7c0fe672a4
X-Google-Attributes: gid1164f8,public
X-Google-Thread: 1070f0,d4c1f7c0fe672a4
X-Google-Attributes: gid1070f0,public
X-Google-Thread: 1020c6,d4c1f7c0fe672a4
X-Google-Attributes: gid1020c6,public
X-Google-Thread: fcda7,d4c1f7c0fe672a4
X-Google-Attributes: gidfcda7,public
X-Google-Thread: 111731,d4c1f7c0fe672a4
X-Google-Attributes: gid111731,public
From: c.c.eiftj@79.usenet.us.com (Rahul Dhesi)
Subject: Re: Different UNIX pro's and con's.
Date: 1998/09/13
Message-ID: <6thkga$q0n$1@samba.rahul.net>#1/1
X-Deja-AN: 390815959
References: <35F71814.1E0B911C@iakom.com> <35F7AED0.DC13624@home.com>
<6tbtj6$cb0@web.nmti.com>
Organization: a2i network
X-Comment: Encoded From: line allows replies that preserve original subject
Newsgroups: comp.unix.advocacy,comp.unix.admin,comp.sys.hp.hpux,comp.sys.sgi.admin,comp.sys.sun.admin,comp.sys.dec
NNTP-Posting-User: dhesi
In <6tbtj6$cb0@web.nmti.com> nick@grendel.nmti.com (Nick Manka) writes:
>Funny, that, I can go and get a UNIX actalike more or less tailored to
>my needs, be it for a compute server, high-performance network file
>server, website, development box, realtime application system, or a
>half dozen other things - in fact I have a choice between several in
>each category - and yet people whine that UNIX fails because it is so
>splintered and that they would rather be forced into a shoe that
>doesn't fit anyone and has rusty nails coated with flesh eating
>bacteria in it.
The problem is gratuitous differences. Each vendor changes his include
files ever so slightly, changes the filesystem layout ever so slightly,
changes common system calls ever so slightly. Why? To make it harder
to move away to a different vendor. Result? It's impossible to write
portable software without a bunch of #ifdefs. And when vendors make
these gratuituous changes, they do not provide convenient symbols that
could be tested to check for such changes. So each software author has
to come up with his own symbols based on ad hoc testing.
Example:
retval = read(fd, buf, count);
What's the return value when the file descriptor is in no-block mode,
and there is nothing to read? GIve me a single answer that applies to
everybody.
Explain to me why code like this is needed in perl.h, if not to work
around vendor stupidities:
#ifndef S_ISLNK
# ifdef _S_ISLNK
# define S_ISLNK(m) _S_ISLNK(m)
# else
# ifdef _S_IFLNK
# define S_ISLNK(m) ((m & S_IFMT) == _S_IFLNK)
# else
# ifdef S_IFLNK
# define S_ISLNK(m) ((m & S_IFMT) == S_IFLNK)
# else
# define S_ISLNK(m) (0)
# endif
# endif
# endif
#endif
The other UNIX problem is that data structures are documented only
implicitly in the include files, and not explicitly in the manuals.
Result: Third-party compilers have to rely on the vendor-supplied
include files. Result: If you don't buy the vendor's package that
contains the include files, you can't use third-party compilers.
--
Rahul Dhesi