X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/270869139db617e29a35bb9ded41087bb702f9ac..0fd474df7001837bde53da0e42e83081827c9641:/lunaix-os/includes/usr/lunaix/fcntl_defs.h diff --git a/lunaix-os/includes/usr/lunaix/fcntl_defs.h b/lunaix-os/includes/usr/lunaix/fcntl_defs.h index 186f5f4..36af62e 100644 --- a/lunaix-os/includes/usr/lunaix/fcntl_defs.h +++ b/lunaix-os/includes/usr/lunaix/fcntl_defs.h @@ -26,22 +26,43 @@ #define O_RDWR FO_RDWR #define O_TRUNC FO_TRUNC +#define AT_SYMLINK_FOLLOW 0b0000 +#define AT_SYMLINK_NOFOLLOW 0b0001 +#define AT_FDCWD 0b0010 +#define AT_EACCESS 0b0100 + +#define R_OK 0b100100100 +#define W_OK 0b010010010 +#define X_OK 0b001001001 +#define F_OK 0b111111111 + /* Mount with read-only flag */ #define MNT_RO (1 << 0) /* Mount with block-cache-disabled flag */ #define MNT_NC (1 << 1) +typedef unsigned int mode_t; +typedef unsigned int nlink_t; + struct file_stat { - dev_t st_dev; - ino_t st_ino; - unsigned int mode; - dev_t st_rdev; - off_t st_size; - size_t st_blksize; - size_t st_ioblksize; - size_t st_blocks; + dev_t st_dev; + ino_t st_ino; + mode_t st_mode; + nlink_t st_nlink; + uid_t st_uid; + gid_t st_gid; + dev_t st_rdev; + off_t st_size; + size_t st_blksize; + size_t st_blocks; + + unsigned long st_atim; + unsigned long st_ctim; + unsigned long st_mtim; + + size_t st_ioblksize; }; #endif /* __LUNAIX_FNCTL_DEFS_H */