source: rtems/cpukit/libfs/src/jffs2/include/linux/fs.h @ 03fcbb1

5
Last change on this file since 03fcbb1 was 03fcbb1, checked in by Sebastian Huber <sebastian.huber@…>, on 11/27/18 at 11:45:53

fs: Add struct dirent::d_type support

  • Property mode set to 100644
File size: 670 bytes
Line 
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
26struct 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__ */
Note: See TracBrowser for help on using the repository browser.