diff options
author | Anthony Pesch <inolen@gmail.com> | 2013-07-16 16:00:10 -0700 |
---|---|---|
committer | Anthony Pesch <inolen@gmail.com> | 2013-07-20 11:19:15 -0700 |
commit | 9c52c8a191c553f9c44d25c733b7b4d88aa47bfd (patch) | |
tree | 49d3295f87a79b1d284b0746faea99099b01e1f4 /system/include | |
parent | 475e72dc5539d9c59fc267927441a502c14a178f (diff) |
- added lchmod
- fixed up errno values for mknod
- split up stat tests into test_stat, test_stat_chmod, test_stat_mknod
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 |