1 /* This file was automatically generated by make-map from Mono.Posix.dll */
17 int map_Mono_Posix_AccessMode (int mode);
18 int map_Mono_Posix_FileMode (int mode);
19 int map_Mono_Posix_OpenFlags (int flags);
20 int map_Mono_Posix_PollEvents (int x);
21 int map_Mono_Posix_Signals (int x);
22 int map_Mono_Posix_WaitOptions (int wait_options);
24 int map_Mono_Posix_OpenFlags (int x)
27 if ((x & Mono_Posix_OpenFlags_O_RDONLY) != 0)
29 if ((x & Mono_Posix_OpenFlags_O_WRONLY) != 0)
31 if ((x & Mono_Posix_OpenFlags_O_RDWR) != 0)
33 if ((x & Mono_Posix_OpenFlags_O_CREAT) != 0)
35 if ((x & Mono_Posix_OpenFlags_O_EXCL) != 0)
37 if ((x & Mono_Posix_OpenFlags_O_NOCTTY) != 0)
39 if ((x & Mono_Posix_OpenFlags_O_TRUNC) != 0)
41 if ((x & Mono_Posix_OpenFlags_O_APPEND) != 0)
43 if ((x & Mono_Posix_OpenFlags_O_NONBLOCK) != 0)
46 if ((x & Mono_Posix_OpenFlags_O_SYNC) != 0)
52 int map_Mono_Posix_FileMode (int x)
55 if ((x & Mono_Posix_FileMode_S_ISUID) != 0)
57 if ((x & Mono_Posix_FileMode_S_ISGID) != 0)
59 if ((x & Mono_Posix_FileMode_S_ISVTX) != 0)
61 if ((x & Mono_Posix_FileMode_S_IRUSR) != 0)
63 if ((x & Mono_Posix_FileMode_S_IWUSR) != 0)
65 if ((x & Mono_Posix_FileMode_S_IXUSR) != 0)
67 if ((x & Mono_Posix_FileMode_S_IRGRP) != 0)
69 if ((x & Mono_Posix_FileMode_S_IWGRP) != 0)
71 if ((x & Mono_Posix_FileMode_S_IXGRP) != 0)
73 if ((x & Mono_Posix_FileMode_S_IROTH) != 0)
75 if ((x & Mono_Posix_FileMode_S_IWOTH) != 0)
77 if ((x & Mono_Posix_FileMode_S_IXOTH) != 0)
82 int map_Mono_Posix_WaitOptions (int x)
85 if ((x & Mono_Posix_WaitOptions_WNOHANG) != 0)
87 if ((x & Mono_Posix_WaitOptions_WUNTRACED) != 0)
92 int map_Mono_Posix_AccessMode (int x)
95 if ((x & Mono_Posix_AccessMode_R_OK) != 0)
97 if ((x & Mono_Posix_AccessMode_W_OK) != 0)
99 if ((x & Mono_Posix_AccessMode_X_OK) != 0)
101 if ((x & Mono_Posix_AccessMode_F_OK) != 0)
106 int map_Mono_Posix_Signals (int x)
108 if (x == Mono_Posix_Signals_SIGHUP)
110 if (x == Mono_Posix_Signals_SIGINT)
112 if (x == Mono_Posix_Signals_SIGQUIT)
114 if (x == Mono_Posix_Signals_SIGILL)
116 if (x == Mono_Posix_Signals_SIGTRAP)
118 if (x == Mono_Posix_Signals_SIGABRT)
120 if (x == Mono_Posix_Signals_SIGBUS)
122 if (x == Mono_Posix_Signals_SIGFPE)
124 if (x == Mono_Posix_Signals_SIGKILL)
126 if (x == Mono_Posix_Signals_SIGUSR1)
128 if (x == Mono_Posix_Signals_SIGSEGV)
130 if (x == Mono_Posix_Signals_SIGUSR2)
132 if (x == Mono_Posix_Signals_SIGPIPE)
134 if (x == Mono_Posix_Signals_SIGALRM)
136 if (x == Mono_Posix_Signals_SIGTERM)
138 if (x == Mono_Posix_Signals_SIGCHLD)
140 if (x == Mono_Posix_Signals_SIGCONT)
142 if (x == Mono_Posix_Signals_SIGSTOP)
144 if (x == Mono_Posix_Signals_SIGTSTP)
146 if (x == Mono_Posix_Signals_SIGTTIN)
148 if (x == Mono_Posix_Signals_SIGTTOU)
150 if (x == Mono_Posix_Signals_SIGURG)
152 if (x == Mono_Posix_Signals_SIGXCPU)
154 if (x == Mono_Posix_Signals_SIGXFSZ)
156 if (x == Mono_Posix_Signals_SIGVTALRM)
158 if (x == Mono_Posix_Signals_SIGPROF)
160 if (x == Mono_Posix_Signals_SIGWINCH)
162 if (x == Mono_Posix_Signals_SIGIO)
164 if (x == Mono_Posix_Signals_SIGSYS)
169 int map_Mono_Posix_PollEvents (int x)
172 if ((x & Mono_Posix_PollEvents_POLLIN) != 0)
174 if ((x & Mono_Posix_PollEvents_POLLPRI) != 0)
176 if ((x & Mono_Posix_PollEvents_POLLOUT) != 0)
178 if ((x & Mono_Posix_PollEvents_POLLERR) != 0)
180 if ((x & Mono_Posix_PollEvents_POLLHUP) != 0)
182 if ((x & Mono_Posix_PollEvents_POLLNVAL) != 0)