mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
LibC: Move struct stat to sys/stat.h
This commit is contained in:
parent
dc93ed4368
commit
868b1a24bb
2 changed files with 16 additions and 16 deletions
|
@ -40,6 +40,22 @@ __BEGIN_DECLS
|
||||||
#define S_ISLNK(m) (((m)&S_IFMT) == S_IFLNK)
|
#define S_ISLNK(m) (((m)&S_IFMT) == S_IFLNK)
|
||||||
#define S_ISSOCK(m) (((m)&S_IFMT) == S_IFSOCK)
|
#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);
|
mode_t umask(mode_t);
|
||||||
int chmod(const char* pathname, mode_t);
|
int chmod(const char* pathname, mode_t);
|
||||||
int fchmod(int fd, mode_t);
|
int fchmod(int fd, mode_t);
|
||||||
|
|
|
@ -67,22 +67,6 @@ typedef uint32_t clock_t;
|
||||||
#define __socklen_t uint32_t
|
#define __socklen_t uint32_t
|
||||||
typedef __socklen_t socklen_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 {
|
struct utimbuf {
|
||||||
time_t actime;
|
time_t actime;
|
||||||
time_t modtime;
|
time_t modtime;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue