* libc/include/sys/stat.h: Move all POSIX-defined symbolic constants
out of `#ifndef _POSIX_SOURCE' guard.
This commit is contained in:
parent
06cc41a63a
commit
f627504e6b
|
@ -1,3 +1,8 @@
|
||||||
|
2010-08-06 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* libc/include/sys/stat.h: Move all POSIX-defined symbolic constants
|
||||||
|
out of `#ifndef _POSIX_SOURCE' guard.
|
||||||
|
|
||||||
2010-08-03 Craig Howland <howland@LGSInnovations.com>
|
2010-08-03 Craig Howland <howland@LGSInnovations.com>
|
||||||
|
|
||||||
* libm/common/s_lrint.c (lrint): Annotate shift operations with
|
* libm/common/s_lrint.c (lrint): Annotate shift operations with
|
||||||
|
|
|
@ -79,12 +79,13 @@ struct stat
|
||||||
|
|
||||||
#define S_ISUID 0004000 /* set user id on execution */
|
#define S_ISUID 0004000 /* set user id on execution */
|
||||||
#define S_ISGID 0002000 /* set group id on execution */
|
#define S_ISGID 0002000 /* set group id on execution */
|
||||||
#ifndef _POSIX_SOURCE
|
|
||||||
#define S_ISVTX 0001000 /* save swapped text even after use */
|
#define S_ISVTX 0001000 /* save swapped text even after use */
|
||||||
|
#ifndef _POSIX_SOURCE
|
||||||
#define S_IREAD 0000400 /* read permission, owner */
|
#define S_IREAD 0000400 /* read permission, owner */
|
||||||
#define S_IWRITE 0000200 /* write permission, owner */
|
#define S_IWRITE 0000200 /* write permission, owner */
|
||||||
#define S_IEXEC 0000100 /* execute/search permission, owner */
|
#define S_IEXEC 0000100 /* execute/search permission, owner */
|
||||||
#define S_ENFMT 0002000 /* enforcement-mode locking */
|
#define S_ENFMT 0002000 /* enforcement-mode locking */
|
||||||
|
#endif /* !_POSIX_SOURCE */
|
||||||
|
|
||||||
#define S_IFMT _IFMT
|
#define S_IFMT _IFMT
|
||||||
#define S_IFDIR _IFDIR
|
#define S_IFDIR _IFDIR
|
||||||
|
@ -94,7 +95,6 @@ struct stat
|
||||||
#define S_IFLNK _IFLNK
|
#define S_IFLNK _IFLNK
|
||||||
#define S_IFSOCK _IFSOCK
|
#define S_IFSOCK _IFSOCK
|
||||||
#define S_IFIFO _IFIFO
|
#define S_IFIFO _IFIFO
|
||||||
#endif /* !_POSIX_SOURCE */
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
/* The Windows header files define _S_ forms of these, so we do too
|
/* The Windows header files define _S_ forms of these, so we do too
|
||||||
|
|
Loading…
Reference in New Issue