1 /* This file was automatically generated by make-map from Mono.Posix.dll */
16 int map_Mono_Posix_OpenFlags (int x)
19 if ((x & Mono_Posix_OpenFlags_O_RDONLY) != 0)
21 if ((x & Mono_Posix_OpenFlags_O_WRONLY) != 0)
23 if ((x & Mono_Posix_OpenFlags_O_RDWR) != 0)
25 if ((x & Mono_Posix_OpenFlags_O_CREAT) != 0)
27 if ((x & Mono_Posix_OpenFlags_O_EXCL) != 0)
29 if ((x & Mono_Posix_OpenFlags_O_NOCTTY) != 0)
31 if ((x & Mono_Posix_OpenFlags_O_TRUNC) != 0)
33 if ((x & Mono_Posix_OpenFlags_O_APPEND) != 0)
35 if ((x & Mono_Posix_OpenFlags_O_NONBLOCK) != 0)
38 if ((x & Mono_Posix_OpenFlags_O_SYNC) != 0)
44 int map_Mono_Posix_FileMode (int x)
47 if ((x & Mono_Posix_FileMode_S_ISUID) != 0)
49 if ((x & Mono_Posix_FileMode_S_ISGID) != 0)
51 if ((x & Mono_Posix_FileMode_S_ISVTX) != 0)
53 if ((x & Mono_Posix_FileMode_S_IRUSR) != 0)
55 if ((x & Mono_Posix_FileMode_S_IWUSR) != 0)
57 if ((x & Mono_Posix_FileMode_S_IXUSR) != 0)
59 if ((x & Mono_Posix_FileMode_S_IRGRP) != 0)
61 if ((x & Mono_Posix_FileMode_S_IWGRP) != 0)
63 if ((x & Mono_Posix_FileMode_S_IXGRP) != 0)
65 if ((x & Mono_Posix_FileMode_S_IROTH) != 0)
67 if ((x & Mono_Posix_FileMode_S_IWOTH) != 0)
69 if ((x & Mono_Posix_FileMode_S_IXOTH) != 0)
74 int map_Mono_Posix_WaitOptions (int x)
77 if ((x & Mono_Posix_WaitOptions_WNOHANG) != 0)
79 if ((x & Mono_Posix_WaitOptions_WUNTRACED) != 0)
84 int map_Mono_Posix_AccessMode (int x)
87 if ((x & Mono_Posix_AccessMode_R_OK) != 0)
89 if ((x & Mono_Posix_AccessMode_W_OK) != 0)
91 if ((x & Mono_Posix_AccessMode_X_OK) != 0)
93 if ((x & Mono_Posix_AccessMode_F_OK) != 0)
98 int map_Mono_Posix_Signals (int x)
100 if (x == Mono_Posix_Signals_SIGHUP)
102 if (x == Mono_Posix_Signals_SIGINT)
104 if (x == Mono_Posix_Signals_SIGQUIT)
106 if (x == Mono_Posix_Signals_SIGILL)
108 if (x == Mono_Posix_Signals_SIGTRAP)
110 if (x == Mono_Posix_Signals_SIGABRT)
112 if (x == Mono_Posix_Signals_SIGBUS)
114 if (x == Mono_Posix_Signals_SIGFPE)
116 if (x == Mono_Posix_Signals_SIGKILL)
118 if (x == Mono_Posix_Signals_SIGUSR1)
120 if (x == Mono_Posix_Signals_SIGSEGV)
122 if (x == Mono_Posix_Signals_SIGUSR2)
124 if (x == Mono_Posix_Signals_SIGPIPE)
126 if (x == Mono_Posix_Signals_SIGALRM)
128 if (x == Mono_Posix_Signals_SIGTERM)
130 if (x == Mono_Posix_Signals_SIGCHLD)
132 if (x == Mono_Posix_Signals_SIGCONT)
134 if (x == Mono_Posix_Signals_SIGSTOP)
136 if (x == Mono_Posix_Signals_SIGTSTP)
138 if (x == Mono_Posix_Signals_SIGTTIN)
140 if (x == Mono_Posix_Signals_SIGTTOU)
142 if (x == Mono_Posix_Signals_SIGURG)
144 if (x == Mono_Posix_Signals_SIGXCPU)
146 if (x == Mono_Posix_Signals_SIGXFSZ)
148 if (x == Mono_Posix_Signals_SIGVTALRM)
150 if (x == Mono_Posix_Signals_SIGPROF)
152 if (x == Mono_Posix_Signals_SIGWINCH)
154 if (x == Mono_Posix_Signals_SIGIO)
156 if (x == Mono_Posix_Signals_SIGSYS)
161 int map_Mono_Posix_PollEvents (int x)
164 if ((x & Mono_Posix_PollEvents_POLLIN) != 0)
166 if ((x & Mono_Posix_PollEvents_POLLPRI) != 0)
168 if ((x & Mono_Posix_PollEvents_POLLOUT) != 0)
170 if ((x & Mono_Posix_PollEvents_POLLERR) != 0)
172 if ((x & Mono_Posix_PollEvents_POLLHUP) != 0)
174 if ((x & Mono_Posix_PollEvents_POLLNVAL) != 0)