X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=include%2Fsys%2Fstat.h;h=2eb6fb0c11615d2dc9078bbd83ae2c1637cade8e;hb=f5ba2bc9ca84d67f03f2542bfff0525f2f478e4c;hp=25c199f9d3dab96670d04329c7828e5ba6bbc5ce;hpb=d5ca067c7bb47081c169ff8b0213c73418f0525e;p=musl diff --git a/include/sys/stat.h b/include/sys/stat.h index 25c199f9..2eb6fb0c 100644 --- a/include/sys/stat.h +++ b/include/sys/stat.h @@ -47,29 +47,23 @@ extern "C" { #define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) #define S_ISSOCK(mode) (((mode) & S_IFMT) == S_IFSOCK) +#ifndef S_IRUSR #define S_ISUID 04000 #define S_ISGID 02000 #define S_ISVTX 01000 - -#define S_IREAD 0400 -#define S_IWRITE 0200 -#define S_IEXEC 0100 - #define S_IRUSR 0400 #define S_IWUSR 0200 #define S_IXUSR 0100 #define S_IRWXU 0700 - #define S_IRGRP 0040 #define S_IWGRP 0020 #define S_IXGRP 0010 #define S_IRWXG 0070 - #define S_IROTH 0004 #define S_IWOTH 0002 #define S_IXOTH 0001 #define S_IRWXO 0007 - +#endif int stat(const char *, struct stat *); int fstat(int, struct stat *); @@ -86,6 +80,9 @@ int mkdirat(int, const char *, mode_t); int mknodat(int, const char *, mode_t, dev_t); int mkfifoat(int, const char *, mode_t); +int futimens(int, const struct timespec [2]); +int utimensat(int, const char *, const struct timespec [2], int); + #ifdef _BSD_SOURCE int lchmod(const char *, mode_t); #endif