summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/jffs2/include/linux/fs.h
blob: a638e7b6bf04d18e3f67e258c96216aaacf2a6c8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef __LINUX_FS_H__
#define __LINUX_FS_H__

#include <linux/stat.h>
#include <sys/types.h>
#include <sys/dirent.h>
#include <sys/time.h>

#ifdef DT_DIR
#define RTEMS_JFFS2_HAVE_D_TYPE
#else
#define DT_UNKNOWN	0
#define DT_DIR		4
#define DT_REG		8
#define DT_LNK		10
#endif

#define ATTR_MODE	(1U << 0)
#define ATTR_UID	(1U << 1)
#define ATTR_GID	(1U << 2)
#define ATTR_SIZE	(1U << 3)
#define ATTR_ATIME	(1U << 4)
#define ATTR_MTIME	(1U << 5)
#define ATTR_CTIME	(1U << 6)

struct iattr {
	unsigned int	ia_valid;
	mode_t		ia_mode;
	uid_t		ia_uid;
	gid_t		ia_gid;
	off_t		ia_size;
	time_t		ia_atime;
	time_t		ia_mtime;
	time_t		ia_ctime;
};

#endif /* __LINUX_FS_H__ */