ReactOS  0.4.13-dev-259-g5ca9c9c
types.h
Go to the documentation of this file.
1 #ifndef _LINUX_TYPES_H
2 #define _LINUX_TYPES_H
3 
4 #if !defined(_MSC_VER) && !defined(__REACTOS__)
5 #error _MSC_VER not defined
6 #endif
7 
8 
9 typedef unsigned __int8 __u8;
10 typedef signed __int8 __s8;
11 
12 typedef signed __int64 __s64;
13 typedef unsigned __int64 __u64;
14 
15 typedef signed __int16 __s16;
16 typedef unsigned __int16 __u16;
17 
18 typedef signed __int32 __s32;
19 typedef unsigned __int32 __u32;
20 
21 typedef signed __int64 __s64;
22 typedef unsigned __int64 __u64;
23 
24 
25 typedef __u16 u16;
26 typedef __u32 u32;
27 typedef __u32 ino_t;
28 typedef __u32 blk_t;
29 
38 #define container_of(ptr, type, member) ({ \
39  const typeof( ((type *)0)->member ) *__mptr = (ptr); \
40  (type *)( (char *)__mptr - offsetof(type,member) );})
41 
42 
43 
44 /*
45  * Inode flags [from original ext2 sources]
46  */
47 #define EXT2_SECRM_FL 0x00000001 /* Secure deletion */
48 #define EXT2_UNRM_FL 0x00000002 /* Undelete */
49 #define EXT2_COMPR_FL 0x00000004 /* Compress file */
50 #define EXT2_SYNC_FL 0x00000008 /* Synchronous updates */
51 #define EXT2_IMMUTABLE_FL 0x00000010 /* Immutable file */
52 #define EXT2_APPEND_FL 0x00000020 /* writes to file may only append */
53 #define EXT2_NODUMP_FL 0x00000040 /* do not dump file */
54 #define EXT2_NOATIME_FL 0x00000080 /* do not update atime */
55 /* Reserved for compression usage... */
56 #define EXT2_DIRTY_FL 0x00000100
57 #define EXT2_COMPRBLK_FL 0x00000200 /* One or more compressed clusters */
58 #define EXT2_NOCOMP_FL 0x00000400 /* Don't compress */
59 #define EXT2_ECOMPR_FL 0x00000800 /* Compression error */
60 /* End compression flags --- maybe not all used */
61 #define EXT2_BTREE_FL 0x00001000 /* btree format dir */
62 #define EXT2_RESERVED_FL 0x80000000 /* reserved for ext2 lib */
63 
64 #define EXT2_FL_USER_VISIBLE 0x00001FFF /* User visible flags */
65 #define EXT2_FL_USER_MODIFIABLE 0x000000FF /* User modifiable flags */
66 
67 
68 #define __LITTLE_ENDIAN
69 #define le16_to_cpu(x) (x)
70 #define cpu_to_le16(x) (x)
71 
72 #endif /* LINUX_TYPES_H */
unsigned __int32 __u32
Definition: types.h:24
__u32 blk_t
Definition: types.h:28
signed __int64 __s64
Definition: types.h:26
__u32 u32
Definition: types.h:35
signed __int8 __s8
Definition: types.h:18
unsigned __int8 __u8
Definition: types.h:17
unsigned short __u16
Definition: compat.h:89
unsigned int __u32
Definition: compat.h:90
unsigned __int64 __u64
Definition: types.h:27
signed __int32 __s32
Definition: types.h:23
__u32 ino_t
Definition: types.h:27
unsigned __int16 __u16
Definition: types.h:21
#define __int32
Definition: basetyps.h:19
#define __int8
Definition: basetyps.h:25
signed __int16 __s16
Definition: types.h:20
__u16 u16
Definition: types.h:33
#define __int64
Definition: basetyps.h:16
#define __int16
Definition: basetyps.h:22