From 4e1a6f1b3c543b9fbeb882a9e97551f7c58ca65a Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 25 Dec 2023 18:36:02 +0100 Subject: ports: curl :^) had to do a lot of hacky stuff, but it's there. worked on this on and off for a while now --- src/libc/include/sys/stat.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/libc/include/sys/stat.h') diff --git a/src/libc/include/sys/stat.h b/src/libc/include/sys/stat.h index b9d0e8b..0d828ec 100644 --- a/src/libc/include/sys/stat.h +++ b/src/libc/include/sys/stat.h @@ -4,6 +4,7 @@ #include #include // struct timespec #include // only for ENOSYS +#include // for R_OK etc. (curl) struct stat { dev_t st_dev; @@ -38,7 +39,15 @@ struct stat { #define S_ISGID 02000 #define S_ISVTX 01000 -#define S_IRUSR 0x400 +#define S_IRUSR 0400 +#define S_IWUSR 0200 +#define S_IXUSR 0100 +#define S_IRGRP 0040 +#define S_IWGRP 0020 +#define S_IXGRP 0010 +#define S_IROTH 0004 +#define S_IWOTH 0002 +#define S_IXOTH 0001 /* inode(7) */ #define S_ISREG(m) ((m & S_IFMT) == S_IFREG) -- cgit v1.2.3