source: rtems/cpukit/libfs/src/jffs2/include/linux/fs.h @ 78b85286

4.115
Last change on this file since 78b85286 was 78b85286, checked in by Sebastian Huber <sebastian.huber@…>, on 09/12/13 at 14:53:41

JFFS2: Update Linux compatibility layer

Modify compatbility layer for RTEMS. Add support for Linux 3.11 based
JFFS2.

  • Property mode set to 100644
File size: 587 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/time.h>
7
8#define DT_UNKNOWN      0
9#define DT_DIR          4
10#define DT_REG          8
11#define DT_LNK          10
12
13#define ATTR_MODE       (1U << 0)
14#define ATTR_UID        (1U << 1)
15#define ATTR_GID        (1U << 2)
16#define ATTR_SIZE       (1U << 3)
17#define ATTR_ATIME      (1U << 4)
18#define ATTR_MTIME      (1U << 5)
19#define ATTR_CTIME      (1U << 6)
20
21struct iattr {
22        unsigned int    ia_valid;
23        mode_t          ia_mode;
24        uid_t           ia_uid;
25        gid_t           ia_gid;
26        off_t           ia_size;
27        time_t          ia_atime;
28        time_t          ia_mtime;
29        time_t          ia_ctime;
30};
31
32#endif /* __LINUX_FS_H__ */
Note: See TracBrowser for help on using the repository browser.