/usr/include/sys/stat.h does not define DEFFILEMODE

Dave Korn dave.korn@artimi.com
Tue Mar 11 17:28:00 GMT 2008


Jari Aalto wrote on 11 March 2008 17:03:

> Debian Linux defines:
> 
>     /usr/include/sys/stat.h:# define DEFFILEMODE
> (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)/* 0666*/
> 
> But this is not in Cygwin's
> 
>     /usr/include/sys/stat.h

  POSIX doesn't specify it.  I think it's a BSD-ism.
 
> What might be the equivalent? 

  Well, chmod 666 means the same on debian as it does on cygwin.  (Then
again, I always thought 755 was the more usual default file mode most
places.)

> One package uses that value.

  It seems to exist on RH-based linux too, so I guess they didn't think it
needed autoconfiscation.  I can't see any reason not to just use the exact
same symbolic definition.

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....



More information about the Cygwin-apps mailing list