This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
RE: /usr/include/sys/stat.h does not define DEFFILEMODE
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin-apps at cygwin dot com>
- Date: Tue, 11 Mar 2008 17:28:06 -0000
- Subject: RE: /usr/include/sys/stat.h does not define DEFFILEMODE
- References: <lk4pw5vf.fsf@blue.sea.net>
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....