delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/11/25/07:00:46

Date: Tue, 25 Nov 1997 14:00:43 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: DJ Delorie <dj AT delorie DOT com>
cc: k3040e4 AT c210 DOT edvz DOT uni-linz DOT ac DOT at, djgpp-workers AT delorie DOT com
Subject: Re: <sys/stat.h> constants
In-Reply-To: <199711250244.VAA29269@delorie.com>
Message-ID: <Pine.SUN.3.91.971125140021.27505O-100000@is>
MIME-Version: 1.0

On Mon, 24 Nov 1997, DJ Delorie wrote:

> > I'd bet you have troubles finding a S_IFDIR != 0x4000 or S_ISUID != 04000.
> 
> I have no problems finding examples.  SGI's S_ISUID is 0x0800.

S_ISUID is not the main problem.  The S_IFMT bits are.  Does SGI
define these differently as well?

> Programs that
> hard-code values, when macros defined by ANSI and POSIX are available,
> are broken.  Changing DJGPP to support broken programs, at the risk of
> breaking working programs and libraries, is unacceptable.

I agree that such programs are broken, but given that the set of
broken programs includes GNU cpio, I think this is well worth of
changing unless we have grave reasons not to.  (The definition of
``grave reasons'' is left as an excercise to the reader ;-)

- Raw text -


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