RTEMS  5.0.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
fs.h
1 #ifndef __LINUX_FS_H__
2 #define __LINUX_FS_H__
3 
4 #include <linux/stat.h>
5 #include <sys/types.h>
6 #include <sys/dirent.h>
7 #include <sys/time.h>
8 
9 #ifdef DT_DIR
10 #define RTEMS_JFFS2_HAVE_D_TYPE
11 #else
12 #define DT_UNKNOWN 0
13 #define DT_DIR 4
14 #define DT_REG 8
15 #define DT_LNK 10
16 #endif
17 
18 #define ATTR_MODE (1U << 0)
19 #define ATTR_UID (1U << 1)
20 #define ATTR_GID (1U << 2)
21 #define ATTR_SIZE (1U << 3)
22 #define ATTR_ATIME (1U << 4)
23 #define ATTR_MTIME (1U << 5)
24 #define ATTR_CTIME (1U << 6)
25 
26 struct iattr {
27  unsigned int ia_valid;
28  mode_t ia_mode;
29  uid_t ia_uid;
30  gid_t ia_gid;
31  off_t ia_size;
32  time_t ia_atime;
33  time_t ia_mtime;
34  time_t ia_ctime;
35 };
36 
37 #endif /* __LINUX_FS_H__ */
Definition: fs.h:26