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_NOATIME
) != 0)
50 if ((x
& Mono_Posix_OpenFlags_O_SYNC
) != 0)
56 int map_Mono_Posix_FileMode (int x
)
59 if ((x
& Mono_Posix_FileMode_S_ISUID
) != 0)
61 if ((x
& Mono_Posix_FileMode_S_ISGID
) != 0)
63 if ((x
& Mono_Posix_FileMode_S_ISVTX
) != 0)
65 if ((x
& Mono_Posix_FileMode_S_IRUSR
) != 0)
67 if ((x
& Mono_Posix_FileMode_S_IWUSR
) != 0)
69 if ((x
& Mono_Posix_FileMode_S_IXUSR
) != 0)
71 if ((x
& Mono_Posix_FileMode_S_IRGRP
) != 0)
73 if ((x
& Mono_Posix_FileMode_S_IWGRP
) != 0)
75 if ((x
& Mono_Posix_FileMode_S_IXGRP
) != 0)
77 if ((x
& Mono_Posix_FileMode_S_IROTH
) != 0)
79 if ((x
& Mono_Posix_FileMode_S_IWOTH
) != 0)
81 if ((x
& Mono_Posix_FileMode_S_IXOTH
) != 0)
86 int map_Mono_Posix_WaitOptions (int x
)
89 if ((x
& Mono_Posix_WaitOptions_WNOHANG
) != 0)
91 if ((x
& Mono_Posix_WaitOptions_WUNTRACED
) != 0)
96 int map_Mono_Posix_AccessMode (int x
)
99 if ((x
& Mono_Posix_AccessMode_R_OK
) != 0)
101 if ((x
& Mono_Posix_AccessMode_W_OK
) != 0)
103 if ((x
& Mono_Posix_AccessMode_X_OK
) != 0)
105 if ((x
& Mono_Posix_AccessMode_F_OK
) != 0)
110 int map_Mono_Posix_Signals (int x
)
112 if (x
== Mono_Posix_Signals_SIGHUP
)
114 if (x
== Mono_Posix_Signals_SIGINT
)
116 if (x
== Mono_Posix_Signals_SIGQUIT
)
118 if (x
== Mono_Posix_Signals_SIGILL
)
120 if (x
== Mono_Posix_Signals_SIGTRAP
)
122 if (x
== Mono_Posix_Signals_SIGABRT
)
124 if (x
== Mono_Posix_Signals_SIGBUS
)
126 if (x
== Mono_Posix_Signals_SIGFPE
)
128 if (x
== Mono_Posix_Signals_SIGKILL
)
130 if (x
== Mono_Posix_Signals_SIGUSR1
)
132 if (x
== Mono_Posix_Signals_SIGSEGV
)
134 if (x
== Mono_Posix_Signals_SIGUSR2
)
136 if (x
== Mono_Posix_Signals_SIGPIPE
)
138 if (x
== Mono_Posix_Signals_SIGALRM
)
140 if (x
== Mono_Posix_Signals_SIGTERM
)
142 if (x
== Mono_Posix_Signals_SIGCHLD
)
144 if (x
== Mono_Posix_Signals_SIGCONT
)
146 if (x
== Mono_Posix_Signals_SIGSTOP
)
148 if (x
== Mono_Posix_Signals_SIGTSTP
)
150 if (x
== Mono_Posix_Signals_SIGTTIN
)
152 if (x
== Mono_Posix_Signals_SIGTTOU
)
154 if (x
== Mono_Posix_Signals_SIGURG
)
156 if (x
== Mono_Posix_Signals_SIGXCPU
)
158 if (x
== Mono_Posix_Signals_SIGXFSZ
)
160 if (x
== Mono_Posix_Signals_SIGVTALRM
)
163 if (x
== Mono_Posix_Signals_SIGPROF
)
166 if (x
== Mono_Posix_Signals_SIGWINCH
)
169 if (x
== Mono_Posix_Signals_SIGIO
)
172 if (x
== Mono_Posix_Signals_SIGSYS
)
177 int map_Mono_Posix_PollEvents (int x
)
180 if ((x
& Mono_Posix_PollEvents_POLLIN
) != 0)
182 if ((x
& Mono_Posix_PollEvents_POLLPRI
) != 0)
184 if ((x
& Mono_Posix_PollEvents_POLLOUT
) != 0)
186 if ((x
& Mono_Posix_PollEvents_POLLERR
) != 0)
188 if ((x
& Mono_Posix_PollEvents_POLLHUP
) != 0)
190 if ((x
& Mono_Posix_PollEvents_POLLNVAL
) != 0)