X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=include%2Fsys%2Fstat.h;h=14a5424bb2bcf40944bbb53b094b43e25e91e6c6;hb=15c7af3e21e1e402067f9c2a7c8d3094ddc7f54f;hp=ec69f54d8ef975592e041c2a740313f9900acd97;hpb=4a19634f07821cf4ef0e9a1d060e148dd2a429fd;p=musl diff --git a/include/sys/stat.h b/include/sys/stat.h index ec69f54d..14a5424b 100644 --- a/include/sys/stat.h +++ b/include/sys/stat.h @@ -90,6 +90,23 @@ int utimensat(int, const char *, const struct timespec [2], int); int lchmod(const char *, mode_t); #endif +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +#define S_IREAD S_IRUSR +#define S_IWRITE S_IWUSR +#define S_IEXEC S_IXUSR +#endif + +#ifdef _LARGEFILE64_SOURCE +#define stat64 stat +#define fstat64 fstat +#define lstat64 lstat +#define fstatat64 fstatat +#define blksize64_t blksize_t +#define blkcnt64_t blkcnt_t +#define ino64_t ino_t +#define off64_t off_t +#endif + #ifdef __cplusplus } #endif