File indexing completed on 2025-05-11 08:24:17
0001 #ifndef __LINUX_FS_H__
0002 #define __LINUX_FS_H__
0003
0004 #include <linux/stat.h>
0005 #include <sys/types.h>
0006 #include <sys/dirent.h>
0007 #include <sys/time.h>
0008
0009 #ifdef DT_DIR
0010 #define RTEMS_JFFS2_HAVE_D_TYPE
0011 #else
0012 #define DT_UNKNOWN 0
0013 #define DT_DIR 4
0014 #define DT_REG 8
0015 #define DT_LNK 10
0016 #endif
0017
0018 #define ATTR_MODE (1U << 0)
0019 #define ATTR_UID (1U << 1)
0020 #define ATTR_GID (1U << 2)
0021 #define ATTR_SIZE (1U << 3)
0022 #define ATTR_ATIME (1U << 4)
0023 #define ATTR_MTIME (1U << 5)
0024 #define ATTR_CTIME (1U << 6)
0025
0026 struct iattr {
0027 unsigned int ia_valid;
0028 mode_t ia_mode;
0029 uid_t ia_uid;
0030 gid_t ia_gid;
0031 off_t ia_size;
0032 time_t ia_atime;
0033 time_t ia_mtime;
0034 time_t ia_ctime;
0035 };
0036
0037 #define SB_RDONLY 1
0038 #define sb_rdonly(sb) ((sb)->s_flags & SB_RDONLY)
0039
0040 #endif