1 #ifndef _LUNAIX_UHDR_SYS_FCNTL_DEFS_H
2 #define _LUNAIX_UHDR_SYS_FCNTL_DEFS_H
11 #define FO_RDONLY 0x10
15 #define FO_NOFOLLOW 0x10000
21 #define O_CREAT FO_CREATE
22 #define O_APPEND FO_APPEND
23 #define O_DIRECT FO_DIRECT
24 #define O_WRONLY FO_WRONLY
25 #define O_RDONLY FO_RDONLY
26 #define O_RDWR FO_RDWR
27 #define O_TRUNC FO_TRUNC
29 #define AT_SYMLINK_FOLLOW 0b0000
30 #define AT_SYMLINK_NOFOLLOW 0b0001
31 #define AT_FDCWD 0b0010
32 #define AT_EACCESS 0b0100
34 #define R_OK 0b100100100
35 #define W_OK 0b010010010
36 #define X_OK 0b001001001
37 #define F_OK 0b111111111
39 /* Mount with read-only flag */
40 #define MNT_RO (1 << 0)
42 /* Mount with block-cache-disabled flag */
43 #define MNT_NC (1 << 1)
45 typedef unsigned int mode_t;
46 typedef unsigned int nlink_t;
50 __lunaix_dev_t st_dev;
51 __lunaix_ino_t st_ino;
54 __lunaix_uid_t st_uid;
55 __lunaix_gid_t st_gid;
56 __lunaix_dev_t st_rdev;
57 __lunaix_size_t st_size;
58 __lunaix_size_t st_blksize;
59 __lunaix_size_t st_blocks;
61 unsigned long st_atim;
62 unsigned long st_ctim;
63 unsigned long st_mtim;
65 __lunaix_size_t st_ioblksize;
68 #endif /* _LUNAIX_UHDR_FNCTL_DEFS_H */