1 /* This file was automatically generated by make-map from Mono.Posix.dll */
15 int map_Mono_Posix_OpenFlags (int x)
18 if ((x & Mono_Posix_OpenFlags_O_RDONLY) != 0)
20 if ((x & Mono_Posix_OpenFlags_O_WRONLY) != 0)
22 if ((x & Mono_Posix_OpenFlags_O_RDWR) != 0)
24 if ((x & Mono_Posix_OpenFlags_O_CREAT) != 0)
26 if ((x & Mono_Posix_OpenFlags_O_EXCL) != 0)
28 if ((x & Mono_Posix_OpenFlags_O_NOCTTY) != 0)
30 if ((x & Mono_Posix_OpenFlags_O_TRUNC) != 0)
32 if ((x & Mono_Posix_OpenFlags_O_APPEND) != 0)
34 if ((x & Mono_Posix_OpenFlags_O_NONBLOCK) != 0)
37 if ((x & Mono_Posix_OpenFlags_O_SYNC) != 0)
43 int map_Mono_Posix_FileMode (int x)
46 if ((x & Mono_Posix_FileMode_S_ISUID) != 0)
48 if ((x & Mono_Posix_FileMode_S_ISGID) != 0)
50 if ((x & Mono_Posix_FileMode_S_ISVTX) != 0)
52 if ((x & Mono_Posix_FileMode_S_IRUSR) != 0)
54 if ((x & Mono_Posix_FileMode_S_IWUSR) != 0)
56 if ((x & Mono_Posix_FileMode_S_IXUSR) != 0)
58 if ((x & Mono_Posix_FileMode_S_IRGRP) != 0)
60 if ((x & Mono_Posix_FileMode_S_IWGRP) != 0)
62 if ((x & Mono_Posix_FileMode_S_IXGRP) != 0)
64 if ((x & Mono_Posix_FileMode_S_IROTH) != 0)
66 if ((x & Mono_Posix_FileMode_S_IWOTH) != 0)
68 if ((x & Mono_Posix_FileMode_S_IXOTH) != 0)
73 int map_Mono_Posix_WaitOptions (int x)
76 if ((x & Mono_Posix_WaitOptions_WNOHANG) != 0)
78 if ((x & Mono_Posix_WaitOptions_WUNTRACED) != 0)
83 int map_Mono_Posix_AccessMode (int x)
86 if ((x & Mono_Posix_AccessMode_R_OK) != 0)
88 if ((x & Mono_Posix_AccessMode_W_OK) != 0)
90 if ((x & Mono_Posix_AccessMode_X_OK) != 0)
92 if ((x & Mono_Posix_AccessMode_F_OK) != 0)
97 int map_Mono_Posix_Signals (int x)
99 if (x == Mono_Posix_Signals_SIGHUP)
101 if (x == Mono_Posix_Signals_SIGINT)
103 if (x == Mono_Posix_Signals_SIGQUIT)
105 if (x == Mono_Posix_Signals_SIGILL)
107 if (x == Mono_Posix_Signals_SIGTRAP)
109 if (x == Mono_Posix_Signals_SIGABRT)
111 if (x == Mono_Posix_Signals_SIGBUS)
113 if (x == Mono_Posix_Signals_SIGFPE)
115 if (x == Mono_Posix_Signals_SIGKILL)
117 if (x == Mono_Posix_Signals_SIGUSR1)
119 if (x == Mono_Posix_Signals_SIGSEGV)
121 if (x == Mono_Posix_Signals_SIGUSR2)
123 if (x == Mono_Posix_Signals_SIGPIPE)
125 if (x == Mono_Posix_Signals_SIGALRM)
127 if (x == Mono_Posix_Signals_SIGTERM)
129 if (x == Mono_Posix_Signals_SIGCHLD)
131 if (x == Mono_Posix_Signals_SIGCONT)
133 if (x == Mono_Posix_Signals_SIGSTOP)
135 if (x == Mono_Posix_Signals_SIGTSTP)
137 if (x == Mono_Posix_Signals_SIGTTIN)
139 if (x == Mono_Posix_Signals_SIGTTOU)
141 if (x == Mono_Posix_Signals_SIGURG)
143 if (x == Mono_Posix_Signals_SIGXCPU)
145 if (x == Mono_Posix_Signals_SIGXFSZ)
147 if (x == Mono_Posix_Signals_SIGVTALRM)
149 if (x == Mono_Posix_Signals_SIGPROF)
151 if (x == Mono_Posix_Signals_SIGWINCH)
153 if (x == Mono_Posix_Signals_SIGIO)
155 if (x == Mono_Posix_Signals_SIGSYS)
160 int map_Mono_Posix_PollEvents (int x)
163 if ((x & Mono_Posix_PollEvents_POLLIN) != 0)
165 if ((x & Mono_Posix_PollEvents_POLLPRI) != 0)
167 if ((x & Mono_Posix_PollEvents_POLLOUT) != 0)
169 if ((x & Mono_Posix_PollEvents_POLLERR) != 0)
171 if ((x & Mono_Posix_PollEvents_POLLHUP) != 0)
173 if ((x & Mono_Posix_PollEvents_POLLNVAL) != 0)