diff options
author | dzwdz | 2023-08-24 19:10:35 +0200 |
---|---|---|
committer | dzwdz | 2023-08-24 19:10:35 +0200 |
commit | 3e09037780ca95633749be3acd52e817eed7f98c (patch) | |
tree | 83bcf5026cd4383809c81c5f38473a6b1e46755e /src/libc/include/sys/stat.h | |
parent | 292b2386d766826b15f5ca084d37aa2c485fdda6 (diff) |
libc: get most of binutils to compile
Diffstat (limited to 'src/libc/include/sys/stat.h')
-rw-r--r-- | src/libc/include/sys/stat.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/libc/include/sys/stat.h b/src/libc/include/sys/stat.h index 343db55..b9d0e8b 100644 --- a/src/libc/include/sys/stat.h +++ b/src/libc/include/sys/stat.h @@ -38,6 +38,8 @@ struct stat { #define S_ISGID 02000 #define S_ISVTX 01000 +#define S_IRUSR 0x400 + /* inode(7) */ #define S_ISREG(m) ((m & S_IFMT) == S_IFREG) #define S_ISDIR(m) ((m & S_IFMT) == S_IFDIR) @@ -54,7 +56,7 @@ int mkdir(const char *path, mode_t mode); static inline mode_t umask(mode_t mask) { (void)mask; - __libc_panic("unimplemented"); + return 0; } static inline int chmod(const char *path, mode_t mode) { @@ -63,6 +65,12 @@ static inline int chmod(const char *path, mode_t mode) { return -1; } +static inline int fchmod(int fd, mode_t mode) { + (void)fd; (void)mode; + errno = ENOSYS; + return -1; +} + static inline int mknod(const char *path, mode_t mode, dev_t dev) { (void)path; (void)mode; (void)dev; errno = ENOSYS; |