diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-07-01 08:45:52 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-07-01 08:45:52 +0000 |
commit | ca56076ae22c4e4eaafed078c3d0a3b29871e385 (patch) | |
tree | c365edee96208ae42acf6d937719fdfc4ba3cc53 /newlib/libc/include/sys/stat.h | |
parent | 5eb491d26e14e7f46f99aabc692322e864fcdd8d (diff) | |
download | cygnal-ca56076ae22c4e4eaafed078c3d0a3b29871e385.tar.gz cygnal-ca56076ae22c4e4eaafed078c3d0a3b29871e385.tar.bz2 cygnal-ca56076ae22c4e4eaafed078c3d0a3b29871e385.zip |
2010-06-29 Antony King <antony.king@sr.com>
* libc/ctype/ctype_.c (__ctype_ptr): Reinstate definition (guarded by
_NEED_OLD_CTYPE_PTR_DEFINITION) for backwards compatibility with newlib
1.16.0 and earlier.
2010-06-28 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* libc/include/sys/stat.h: Add ACCESSPERMS, ALLPERMS, and DEFFILEMODE.
Diffstat (limited to 'newlib/libc/include/sys/stat.h')
-rw-r--r-- | newlib/libc/include/sys/stat.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h index 9d8bdfb65..2c69c4852 100644 --- a/newlib/libc/include/sys/stat.h +++ b/newlib/libc/include/sys/stat.h @@ -122,6 +122,12 @@ struct stat #define S_IWOTH 0000002 /* write permission, other */ #define S_IXOTH 0000001/* execute/search permission, other */ +#ifndef _POSIX_SOURCE +#define ACCESSPERMS (S_IRWXU | S_IRWXG | S_IRWXO) /* 0777 */ +#define ALLPERMS (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO) /* 07777 */ +#define DEFFILEMODE (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) /* 0666 */ +#endif + #define S_ISBLK(m) (((m)&_IFMT) == _IFBLK) #define S_ISCHR(m) (((m)&_IFMT) == _IFCHR) #define S_ISDIR(m) (((m)&_IFMT) == _IFDIR) |