diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-07-24 11:44:53 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-07-24 11:44:53 -0700 |
commit | e6e22495e277b0ae62d9732ff86ccfc2529b5706 (patch) | |
tree | 57c9f911ed3cbf8822a18eb321349e5ad7e38e06 /system/include | |
parent | f4cff4862c66c24d5fd39f1bfdbcd129cb4da738 (diff) | |
parent | 9c52c8a191c553f9c44d25c733b7b4d88aa47bfd (diff) |
Merge pull request #1394 from inolen/stat_tests
added lchmod, new tests, fixed for mknod return values
Diffstat (limited to 'system/include')
-rw-r--r-- | system/include/libc/sys/stat.h | 3 | ||||
-rw-r--r-- | system/include/libc/sys/types.h | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/system/include/libc/sys/stat.h b/system/include/libc/sys/stat.h index e2b20187..2285b294 100644 --- a/system/include/libc/sys/stat.h +++ b/system/include/libc/sys/stat.h @@ -179,7 +179,8 @@ struct stat64 #endif int _EXFUN(chmod,( const char *__path, mode_t __mode )); -int _EXFUN(fchmod,(int __fd, mode_t __mode)); +int _EXFUN(lchmod,( const char *__path, mode_t __mode )); +int _EXFUN(fchmod,(int __fd, mode_t __mode)); int _EXFUN(fstat,( int __fd, struct stat *__sbuf )); int _EXFUN(fstat64,( int __fd, struct stat64 *__sbuf )); /* XXX Emscripten */ int _EXFUN(mkdir,( const char *_path, mode_t __mode )); diff --git a/system/include/libc/sys/types.h b/system/include/libc/sys/types.h index c36f724c..fe5d552a 100644 --- a/system/include/libc/sys/types.h +++ b/system/include/libc/sys/types.h @@ -159,6 +159,10 @@ typedef __gid_t gid_t; typedef __id_t id_t ; /* can hold a uid_t or pid_t */ #endif +__int32_t major(__uint32_t _x); +__int32_t minor(__uint32_t _x); +dev_t makedev(__uint32_t _major, __uint32_t _minor); + #if defined(__XMK__) typedef signed char pid_t; #else |