Import Upstream version 20180207
[hcoop/debian/mlton.git] / runtime / basis / Posix / FileSys / FileSys-consts.c
CommitLineData
7f918cf1
CE
1#include "platform.h"
2
3const C_Int_t Posix_FileSys_A_F_OK = F_OK;
4const C_Int_t Posix_FileSys_A_R_OK = R_OK;
5const C_Int_t Posix_FileSys_A_W_OK = W_OK;
6const C_Int_t Posix_FileSys_A_X_OK = X_OK;
7
8const C_Int_t Posix_FileSys_O_RDONLY = O_RDONLY;
9const C_Int_t Posix_FileSys_O_RDWR = O_RDWR;
10const C_Int_t Posix_FileSys_O_WRONLY = O_WRONLY;
11
12const C_Int_t Posix_FileSys_O_APPEND = O_APPEND;
13#ifndef O_BINARY
14#define O_BINARY 0
15#endif
16const C_Int_t Posix_FileSys_O_BINARY = O_BINARY;
17const C_Int_t Posix_FileSys_O_CREAT = O_CREAT;
18#ifndef O_DSYNC
19#define O_DSYNC 0
20#endif
21const C_Int_t Posix_FileSys_O_DSYNC = O_DSYNC;
22const C_Int_t Posix_FileSys_O_EXCL = O_EXCL;
23const C_Int_t Posix_FileSys_O_NOCTTY = O_NOCTTY;
24const C_Int_t Posix_FileSys_O_NONBLOCK = O_NONBLOCK;
25#ifndef O_RSYNC
26#define O_RSYNC 0
27#endif
28const C_Int_t Posix_FileSys_O_RSYNC = O_RSYNC;
29const C_Int_t Posix_FileSys_O_SYNC = O_SYNC;
30#ifndef O_TEXT
31#define O_TEXT 0
32#endif
33const C_Int_t Posix_FileSys_O_TEXT = O_TEXT;
34const C_Int_t Posix_FileSys_O_TRUNC = O_TRUNC;
35
36#ifndef _PC_FILESIZEBITS
37#define _PC_FILESIZEBITS -1
38#endif
39const 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
46const C_Int_t Posix_FileSys_PC_LINK_MAX = _PC_LINK_MAX;
47#ifndef _PC_MAX_CANON
48#define _PC_MAX_CANON -1
49#endif
50const C_Int_t Posix_FileSys_PC_MAX_CANON = _PC_MAX_CANON;
51#ifndef _PC_MAX_INPUT
52#define _PC_MAX_INPUT -1
53#endif
54const C_Int_t Posix_FileSys_PC_MAX_INPUT = _PC_MAX_INPUT;
55#ifndef _PC_NAME_MAX
56#define _PC_NAME_MAX -1
57#endif
58const C_Int_t Posix_FileSys_PC_NAME_MAX = _PC_NAME_MAX;
59#ifndef _PC_PATH_MAX
60#define _PC_PATH_MAX -1
61#endif
62const C_Int_t Posix_FileSys_PC_PATH_MAX = _PC_PATH_MAX;
63#ifndef _PC_PIPE_BUF
64#define _PC_PIPE_BUF -1
65#endif
66const C_Int_t Posix_FileSys_PC_PIPE_BUF = _PC_PIPE_BUF;
67#ifndef _PC_2_SYMLINKS
68#define _PC_2_SYMLINKS -1
69#endif
70const 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
74const 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
78const 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
82const 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
86const 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
90const 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
94const C_Int_t Posix_FileSys_PC_SYMLINK_MAX = _PC_SYMLINK_MAX;
95#ifndef _PC_CHOWN_RESTRICTED
96#define _PC_CHOWN_RESTRICTED -1
97#endif
98const C_Int_t Posix_FileSys_PC_CHOWN_RESTRICTED = _PC_CHOWN_RESTRICTED;
99#ifndef _PC_NO_TRUNC
100#define _PC_NO_TRUNC -1
101#endif
102const C_Int_t Posix_FileSys_PC_NO_TRUNC = _PC_NO_TRUNC;
103#ifndef _PC_VDISABLE
104#define _PC_VDISABLE -1
105#endif
106const C_Int_t Posix_FileSys_PC_VDISABLE = _PC_VDISABLE;
107#ifndef _PC_ASYNC_IO
108#define _PC_ASYNC_IO -1
109#endif
110const C_Int_t Posix_FileSys_PC_ASYNC_IO = _PC_ASYNC_IO;
111#ifndef _PC_PRIO_IO
112#define _PC_PRIO_IO -1
113#endif
114const C_Int_t Posix_FileSys_PC_PRIO_IO = _PC_PRIO_IO;
115#ifndef _PC_SYNC_IO
116#define _PC_SYNC_IO -1
117#endif
118const C_Int_t Posix_FileSys_PC_SYNC_IO = _PC_SYNC_IO;
119
120const C_Mode_t Posix_FileSys_S_IFBLK = S_IFBLK;
121const C_Mode_t Posix_FileSys_S_IFCHR = S_IFCHR;
122const C_Mode_t Posix_FileSys_S_IFDIR = S_IFDIR;
123const C_Mode_t Posix_FileSys_S_IFIFO = S_IFIFO;
124const C_Mode_t Posix_FileSys_S_IFLNK = S_IFLNK;
125const C_Mode_t Posix_FileSys_S_IFMT = S_IFMT;
126const C_Mode_t Posix_FileSys_S_IFREG = S_IFREG;
127const C_Mode_t Posix_FileSys_S_IFSOCK = S_IFSOCK;
128const C_Mode_t Posix_FileSys_S_IRGRP = S_IRGRP;
129const C_Mode_t Posix_FileSys_S_IROTH = S_IROTH;
130const C_Mode_t Posix_FileSys_S_IRUSR = S_IRUSR;
131const C_Mode_t Posix_FileSys_S_IRWXG = S_IRWXG;
132const C_Mode_t Posix_FileSys_S_IRWXO = S_IRWXO;
133const C_Mode_t Posix_FileSys_S_IRWXU = S_IRWXU;
134const C_Mode_t Posix_FileSys_S_ISGID = S_ISGID;
135const C_Mode_t Posix_FileSys_S_ISUID = S_ISUID;
136const C_Mode_t Posix_FileSys_S_ISVTX = S_ISVTX;
137const C_Mode_t Posix_FileSys_S_IWGRP = S_IWGRP;
138const C_Mode_t Posix_FileSys_S_IWOTH = S_IWOTH;
139const C_Mode_t Posix_FileSys_S_IWUSR = S_IWUSR;
140const C_Mode_t Posix_FileSys_S_IXGRP = S_IXGRP;
141const C_Mode_t Posix_FileSys_S_IXOTH = S_IXOTH;
142const C_Mode_t Posix_FileSys_S_IXUSR = S_IXUSR;