diff options
author | joshua stein <jcs@jcs.org> | 2020-02-04 15:22:23 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-05 18:39:45 +0100 |
commit | 868b1a24bb98c095271e8c08d96a23d83ab8b112 (patch) | |
tree | d3a3b58726186cf4d1b74f4d519f4fa4d4f42323 /Libraries | |
parent | dc93ed4368301058e5261c76b9226b4488b990c1 (diff) | |
download | serenity-868b1a24bb98c095271e8c08d96a23d83ab8b112.zip |
LibC: Move struct stat to sys/stat.h
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibC/sys/stat.h | 16 | ||||
-rw-r--r-- | Libraries/LibC/sys/types.h | 16 |
2 files changed, 16 insertions, 16 deletions
diff --git a/Libraries/LibC/sys/stat.h b/Libraries/LibC/sys/stat.h index fc37a4ed03..6d32e99c8c 100644 --- a/Libraries/LibC/sys/stat.h +++ b/Libraries/LibC/sys/stat.h @@ -40,6 +40,22 @@ __BEGIN_DECLS #define S_ISLNK(m) (((m)&S_IFMT) == S_IFLNK) #define S_ISSOCK(m) (((m)&S_IFMT) == S_IFSOCK) +struct stat { + dev_t st_dev; /* ID of device containing file */ + ino_t st_ino; /* inode number */ + mode_t st_mode; /* protection */ + nlink_t st_nlink; /* number of hard links */ + uid_t st_uid; /* user ID of owner */ + gid_t st_gid; /* group ID of owner */ + dev_t st_rdev; /* device ID (if special file) */ + off_t st_size; /* total size, in bytes */ + blksize_t st_blksize; /* blocksize for file system I/O */ + blkcnt_t st_blocks; /* number of 512B blocks allocated */ + time_t st_atime; /* time of last access */ + time_t st_mtime; /* time of last modification */ + time_t st_ctime; /* time of last status change */ +}; + mode_t umask(mode_t); int chmod(const char* pathname, mode_t); int fchmod(int fd, mode_t); diff --git a/Libraries/LibC/sys/types.h b/Libraries/LibC/sys/types.h index 2a279278e5..030d36ba28 100644 --- a/Libraries/LibC/sys/types.h +++ b/Libraries/LibC/sys/types.h @@ -67,22 +67,6 @@ typedef uint32_t clock_t; #define __socklen_t uint32_t typedef __socklen_t socklen_t; -struct stat { - dev_t st_dev; /* ID of device containing file */ - ino_t st_ino; /* inode number */ - mode_t st_mode; /* protection */ - nlink_t st_nlink; /* number of hard links */ - uid_t st_uid; /* user ID of owner */ - gid_t st_gid; /* group ID of owner */ - dev_t st_rdev; /* device ID (if special file) */ - off_t st_size; /* total size, in bytes */ - blksize_t st_blksize; /* blocksize for file system I/O */ - blkcnt_t st_blocks; /* number of 512B blocks allocated */ - time_t st_atime; /* time of last access */ - time_t st_mtime; /* time of last modification */ - time_t st_ctime; /* time of last status change */ -}; - struct utimbuf { time_t actime; time_t modtime; |