From ca56076ae22c4e4eaafed078c3d0a3b29871e385 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 1 Jul 2010 08:45:52 +0000 Subject: 2010-06-29 Antony King * 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 * libc/include/sys/stat.h: Add ACCESSPERMS, ALLPERMS, and DEFFILEMODE. --- newlib/libc/include/sys/stat.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'newlib/libc/include/sys/stat.h') 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) -- cgit v1.2.3