blob: c6e620ba46be7cdebacbce10a25c1f94326700c9 (
plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
#ifndef __TYPES_H__
#define __TYPES_H__
/* only types from primitive types are defined in this file */
typedef volatile unsigned char register_t;
typedef unsigned int uint;
typedef char int8_t;
typedef unsigned char uint8_t;
typedef int int16_t;
typedef unsigned int uint16_t;
typedef long int int32_t;
typedef unsigned long int uint32_t;
typedef uint16_t size_t;
typedef int16_t ssize_t;
typedef uint8_t pid_t;
typedef uint16_t ino_t;
typedef uint8_t dev_t;
typedef uint32_t devsize_t;
typedef uint8_t fd_t;
typedef uint16_t blk_t;
typedef uint8_t user_t;
typedef struct {
uint8_t member[3];
} uint24_t;
typedef uint32_t fsize_t;
typedef struct
{
dev_t dev; // device id, global in the fs
ino_t inode; // inode id relative to the volume
} inode_t;
typedef struct time_s
{
struct
{
uint minutes :6;
uint hour :5;
} time;
struct
{
uint day :5;
uint month :4;
uint year :12;
} date;
} time_t;
#endif
|