Commit | Line | Data |
---|---|---|
7f918cf1 CE |
1 | #include "platform.h" |
2 | ||
3 | const C_Int_t Posix_FileSys_A_F_OK = F_OK; | |
4 | const C_Int_t Posix_FileSys_A_R_OK = R_OK; | |
5 | const C_Int_t Posix_FileSys_A_W_OK = W_OK; | |
6 | const C_Int_t Posix_FileSys_A_X_OK = X_OK; | |
7 | ||
8 | const C_Int_t Posix_FileSys_O_RDONLY = O_RDONLY; | |
9 | const C_Int_t Posix_FileSys_O_RDWR = O_RDWR; | |
10 | const C_Int_t Posix_FileSys_O_WRONLY = O_WRONLY; | |
11 | ||
12 | const C_Int_t Posix_FileSys_O_APPEND = O_APPEND; | |
13 | #ifndef O_BINARY | |
14 | #define O_BINARY 0 | |
15 | #endif | |
16 | const C_Int_t Posix_FileSys_O_BINARY = O_BINARY; | |
17 | const C_Int_t Posix_FileSys_O_CREAT = O_CREAT; | |
18 | #ifndef O_DSYNC | |
19 | #define O_DSYNC 0 | |
20 | #endif | |
21 | const C_Int_t Posix_FileSys_O_DSYNC = O_DSYNC; | |
22 | const C_Int_t Posix_FileSys_O_EXCL = O_EXCL; | |
23 | const C_Int_t Posix_FileSys_O_NOCTTY = O_NOCTTY; | |
24 | const C_Int_t Posix_FileSys_O_NONBLOCK = O_NONBLOCK; | |
25 | #ifndef O_RSYNC | |
26 | #define O_RSYNC 0 | |
27 | #endif | |
28 | const C_Int_t Posix_FileSys_O_RSYNC = O_RSYNC; | |
29 | const C_Int_t Posix_FileSys_O_SYNC = O_SYNC; | |
30 | #ifndef O_TEXT | |
31 | #define O_TEXT 0 | |
32 | #endif | |
33 | const C_Int_t Posix_FileSys_O_TEXT = O_TEXT; | |
34 | const C_Int_t Posix_FileSys_O_TRUNC = O_TRUNC; | |
35 | ||
36 | #ifndef _PC_FILESIZEBITS | |
37 | #define _PC_FILESIZEBITS -1 | |
38 | #endif | |
39 | const C_Int_t Posix_FileSys_PC_FILESIZEBITS = _PC_FILESIZEBITS; | |
40 | #ifndef _PC_LINK_MAX | |
41 | #define _PC_LINK_MAX -1 | |
42 | #endif | |
43 | #ifndef _PC_LINK_MAX | |
44 | #define _PC_LINK_MAX -1 | |
45 | #endif | |
46 | const C_Int_t Posix_FileSys_PC_LINK_MAX = _PC_LINK_MAX; | |
47 | #ifndef _PC_MAX_CANON | |
48 | #define _PC_MAX_CANON -1 | |
49 | #endif | |
50 | const C_Int_t Posix_FileSys_PC_MAX_CANON = _PC_MAX_CANON; | |
51 | #ifndef _PC_MAX_INPUT | |
52 | #define _PC_MAX_INPUT -1 | |
53 | #endif | |
54 | const C_Int_t Posix_FileSys_PC_MAX_INPUT = _PC_MAX_INPUT; | |
55 | #ifndef _PC_NAME_MAX | |
56 | #define _PC_NAME_MAX -1 | |
57 | #endif | |
58 | const C_Int_t Posix_FileSys_PC_NAME_MAX = _PC_NAME_MAX; | |
59 | #ifndef _PC_PATH_MAX | |
60 | #define _PC_PATH_MAX -1 | |
61 | #endif | |
62 | const C_Int_t Posix_FileSys_PC_PATH_MAX = _PC_PATH_MAX; | |
63 | #ifndef _PC_PIPE_BUF | |
64 | #define _PC_PIPE_BUF -1 | |
65 | #endif | |
66 | const C_Int_t Posix_FileSys_PC_PIPE_BUF = _PC_PIPE_BUF; | |
67 | #ifndef _PC_2_SYMLINKS | |
68 | #define _PC_2_SYMLINKS -1 | |
69 | #endif | |
70 | const C_Int_t Posix_FileSys_PC_TWO_SYMLINKS = _PC_2_SYMLINKS; | |
71 | #ifndef _PC_ALLOC_SIZE_MIN | |
72 | #define _PC_ALLOC_SIZE_MIN -1 | |
73 | #endif | |
74 | const C_Int_t Posix_FileSys_PC_ALLOC_SIZE_MIN = _PC_ALLOC_SIZE_MIN; | |
75 | #ifndef _PC_REC_INCR_XFER_SIZE | |
76 | #define _PC_REC_INCR_XFER_SIZE -1 | |
77 | #endif | |
78 | const C_Int_t Posix_FileSys_PC_REC_INCR_XFER_SIZE = _PC_REC_INCR_XFER_SIZE; | |
79 | #ifndef _PC_REC_MAX_XFER_SIZE | |
80 | #define _PC_REC_MAX_XFER_SIZE -1 | |
81 | #endif | |
82 | const C_Int_t Posix_FileSys_PC_REC_MAX_XFER_SIZE = _PC_REC_MAX_XFER_SIZE; | |
83 | #ifndef _PC_REC_MIN_XFER_SIZE | |
84 | #define _PC_REC_MIN_XFER_SIZE -1 | |
85 | #endif | |
86 | const C_Int_t Posix_FileSys_PC_REC_MIN_XFER_SIZE = _PC_REC_MIN_XFER_SIZE; | |
87 | #ifndef _PC_REC_XFER_ALIGN | |
88 | #define _PC_REC_XFER_ALIGN -1 | |
89 | #endif | |
90 | const C_Int_t Posix_FileSys_PC_REC_XFER_ALIGN = _PC_REC_XFER_ALIGN; | |
91 | #ifndef _PC_SYMLINK_MAX | |
92 | #define _PC_SYMLINK_MAX -1 | |
93 | #endif | |
94 | const C_Int_t Posix_FileSys_PC_SYMLINK_MAX = _PC_SYMLINK_MAX; | |
95 | #ifndef _PC_CHOWN_RESTRICTED | |
96 | #define _PC_CHOWN_RESTRICTED -1 | |
97 | #endif | |
98 | const C_Int_t Posix_FileSys_PC_CHOWN_RESTRICTED = _PC_CHOWN_RESTRICTED; | |
99 | #ifndef _PC_NO_TRUNC | |
100 | #define _PC_NO_TRUNC -1 | |
101 | #endif | |
102 | const C_Int_t Posix_FileSys_PC_NO_TRUNC = _PC_NO_TRUNC; | |
103 | #ifndef _PC_VDISABLE | |
104 | #define _PC_VDISABLE -1 | |
105 | #endif | |
106 | const C_Int_t Posix_FileSys_PC_VDISABLE = _PC_VDISABLE; | |
107 | #ifndef _PC_ASYNC_IO | |
108 | #define _PC_ASYNC_IO -1 | |
109 | #endif | |
110 | const C_Int_t Posix_FileSys_PC_ASYNC_IO = _PC_ASYNC_IO; | |
111 | #ifndef _PC_PRIO_IO | |
112 | #define _PC_PRIO_IO -1 | |
113 | #endif | |
114 | const C_Int_t Posix_FileSys_PC_PRIO_IO = _PC_PRIO_IO; | |
115 | #ifndef _PC_SYNC_IO | |
116 | #define _PC_SYNC_IO -1 | |
117 | #endif | |
118 | const C_Int_t Posix_FileSys_PC_SYNC_IO = _PC_SYNC_IO; | |
119 | ||
120 | const C_Mode_t Posix_FileSys_S_IFBLK = S_IFBLK; | |
121 | const C_Mode_t Posix_FileSys_S_IFCHR = S_IFCHR; | |
122 | const C_Mode_t Posix_FileSys_S_IFDIR = S_IFDIR; | |
123 | const C_Mode_t Posix_FileSys_S_IFIFO = S_IFIFO; | |
124 | const C_Mode_t Posix_FileSys_S_IFLNK = S_IFLNK; | |
125 | const C_Mode_t Posix_FileSys_S_IFMT = S_IFMT; | |
126 | const C_Mode_t Posix_FileSys_S_IFREG = S_IFREG; | |
127 | const C_Mode_t Posix_FileSys_S_IFSOCK = S_IFSOCK; | |
128 | const C_Mode_t Posix_FileSys_S_IRGRP = S_IRGRP; | |
129 | const C_Mode_t Posix_FileSys_S_IROTH = S_IROTH; | |
130 | const C_Mode_t Posix_FileSys_S_IRUSR = S_IRUSR; | |
131 | const C_Mode_t Posix_FileSys_S_IRWXG = S_IRWXG; | |
132 | const C_Mode_t Posix_FileSys_S_IRWXO = S_IRWXO; | |
133 | const C_Mode_t Posix_FileSys_S_IRWXU = S_IRWXU; | |
134 | const C_Mode_t Posix_FileSys_S_ISGID = S_ISGID; | |
135 | const C_Mode_t Posix_FileSys_S_ISUID = S_ISUID; | |
136 | const C_Mode_t Posix_FileSys_S_ISVTX = S_ISVTX; | |
137 | const C_Mode_t Posix_FileSys_S_IWGRP = S_IWGRP; | |
138 | const C_Mode_t Posix_FileSys_S_IWOTH = S_IWOTH; | |
139 | const C_Mode_t Posix_FileSys_S_IWUSR = S_IWUSR; | |
140 | const C_Mode_t Posix_FileSys_S_IXGRP = S_IXGRP; | |
141 | const C_Mode_t Posix_FileSys_S_IXOTH = S_IXOTH; | |
142 | const C_Mode_t Posix_FileSys_S_IXUSR = S_IXUSR; |