This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]