mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 01:41:18 -10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
77702ef90f | ||
|
|
4e4824afab |
No files matched your search
@@ -0,0 +1,166 @@
|
||||
/* This file was automatically generated by make-map from ../lib/Mono.Posix.dll */
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
#include "map.h"
|
||||
int map_Mono_Posix_OpenFlags (int x)
|
||||
{
|
||||
int r = 0;
|
||||
if ((x & Mono_Posix_OpenFlags_O_RDONLY) != 0)
|
||||
r |= O_RDONLY;
|
||||
if ((x & Mono_Posix_OpenFlags_O_WRONLY) != 0)
|
||||
r |= O_WRONLY;
|
||||
if ((x & Mono_Posix_OpenFlags_O_RDWR) != 0)
|
||||
r |= O_RDWR;
|
||||
if ((x & Mono_Posix_OpenFlags_O_CREAT) != 0)
|
||||
r |= O_CREAT;
|
||||
if ((x & Mono_Posix_OpenFlags_O_EXCL) != 0)
|
||||
r |= O_EXCL;
|
||||
if ((x & Mono_Posix_OpenFlags_O_NOCTTY) != 0)
|
||||
r |= O_NOCTTY;
|
||||
if ((x & Mono_Posix_OpenFlags_O_TRUNC) != 0)
|
||||
r |= O_TRUNC;
|
||||
if ((x & Mono_Posix_OpenFlags_O_APPEND) != 0)
|
||||
r |= O_APPEND;
|
||||
if ((x & Mono_Posix_OpenFlags_O_NONBLOCK) != 0)
|
||||
r |= O_NONBLOCK;
|
||||
if ((x & Mono_Posix_OpenFlags_O_SYNC) != 0)
|
||||
r |= O_SYNC;
|
||||
if ((x & Mono_Posix_OpenFlags_O_NOFOLLOW) != 0)
|
||||
r |= O_NOFOLLOW;
|
||||
if ((x & Mono_Posix_OpenFlags_O_DIRECTORY) != 0)
|
||||
r |= O_DIRECTORY;
|
||||
if ((x & Mono_Posix_OpenFlags_O_DIRECT) != 0)
|
||||
r |= O_DIRECT;
|
||||
if ((x & Mono_Posix_OpenFlags_O_ASYNC) != 0)
|
||||
r |= O_ASYNC;
|
||||
if ((x & Mono_Posix_OpenFlags_O_LARGEFILE) != 0)
|
||||
r |= O_LARGEFILE;
|
||||
return r;
|
||||
}
|
||||
|
||||
int map_Mono_Posix_FileMode (int x)
|
||||
{
|
||||
int r = 0;
|
||||
if ((x & Mono_Posix_FileMode_S_ISUID) != 0)
|
||||
r |= S_ISUID;
|
||||
if ((x & Mono_Posix_FileMode_S_ISGID) != 0)
|
||||
r |= S_ISGID;
|
||||
if ((x & Mono_Posix_FileMode_S_ISVTX) != 0)
|
||||
r |= S_ISVTX;
|
||||
if ((x & Mono_Posix_FileMode_S_IRUSR) != 0)
|
||||
r |= S_IRUSR;
|
||||
if ((x & Mono_Posix_FileMode_S_IWUSR) != 0)
|
||||
r |= S_IWUSR;
|
||||
if ((x & Mono_Posix_FileMode_S_IXUSR) != 0)
|
||||
r |= S_IXUSR;
|
||||
if ((x & Mono_Posix_FileMode_S_IRGRP) != 0)
|
||||
r |= S_IRGRP;
|
||||
if ((x & Mono_Posix_FileMode_S_IWGRP) != 0)
|
||||
r |= S_IWGRP;
|
||||
if ((x & Mono_Posix_FileMode_S_IXGRP) != 0)
|
||||
r |= S_IXGRP;
|
||||
if ((x & Mono_Posix_FileMode_S_IROTH) != 0)
|
||||
r |= S_IROTH;
|
||||
if ((x & Mono_Posix_FileMode_S_IWOTH) != 0)
|
||||
r |= S_IWOTH;
|
||||
if ((x & Mono_Posix_FileMode_S_IXOTH) != 0)
|
||||
r |= S_IXOTH;
|
||||
return r;
|
||||
}
|
||||
|
||||
int map_Mono_Posix_WaitOptions (int x)
|
||||
{
|
||||
int r = 0;
|
||||
if ((x & Mono_Posix_WaitOptions_WNOHANG) != 0)
|
||||
r |= WNOHANG;
|
||||
if ((x & Mono_Posix_WaitOptions_WUNTRACED) != 0)
|
||||
r |= WUNTRACED;
|
||||
return r;
|
||||
}
|
||||
|
||||
int map_Mono_Posix_AccessMode (int x)
|
||||
{
|
||||
int r = 0;
|
||||
if ((x & Mono_Posix_AccessMode_R_OK) != 0)
|
||||
r |= R_OK;
|
||||
if ((x & Mono_Posix_AccessMode_W_OK) != 0)
|
||||
r |= W_OK;
|
||||
if ((x & Mono_Posix_AccessMode_X_OK) != 0)
|
||||
r |= X_OK;
|
||||
if ((x & Mono_Posix_AccessMode_F_OK) != 0)
|
||||
r |= F_OK;
|
||||
return r;
|
||||
}
|
||||
|
||||
int map_Mono_Posix_Signals (int x)
|
||||
{
|
||||
if (x == Mono_Posix_Signals_SIGHUP)
|
||||
return SIGHUP;
|
||||
if (x == Mono_Posix_Signals_SIGINT)
|
||||
return SIGINT;
|
||||
if (x == Mono_Posix_Signals_SIGQUIT)
|
||||
return SIGQUIT;
|
||||
if (x == Mono_Posix_Signals_SIGILL)
|
||||
return SIGILL;
|
||||
if (x == Mono_Posix_Signals_SIGTRAP)
|
||||
return SIGTRAP;
|
||||
if (x == Mono_Posix_Signals_SIGABRT)
|
||||
return SIGABRT;
|
||||
if (x == Mono_Posix_Signals_SIGBUS)
|
||||
return SIGBUS;
|
||||
if (x == Mono_Posix_Signals_SIGFPE)
|
||||
return SIGFPE;
|
||||
if (x == Mono_Posix_Signals_SIGKILL)
|
||||
return SIGKILL;
|
||||
if (x == Mono_Posix_Signals_SIGUSR1)
|
||||
return SIGUSR1;
|
||||
if (x == Mono_Posix_Signals_SIGSEGV)
|
||||
return SIGSEGV;
|
||||
if (x == Mono_Posix_Signals_SIGUSR2)
|
||||
return SIGUSR2;
|
||||
if (x == Mono_Posix_Signals_SIGPIPE)
|
||||
return SIGPIPE;
|
||||
if (x == Mono_Posix_Signals_SIGALRM)
|
||||
return SIGALRM;
|
||||
if (x == Mono_Posix_Signals_SIGTERM)
|
||||
return SIGTERM;
|
||||
if (x == Mono_Posix_Signals_SIGCHLD)
|
||||
return SIGCHLD;
|
||||
if (x == Mono_Posix_Signals_SIGCONT)
|
||||
return SIGCONT;
|
||||
if (x == Mono_Posix_Signals_SIGSTOP)
|
||||
return SIGSTOP;
|
||||
if (x == Mono_Posix_Signals_SIGTSTP)
|
||||
return SIGTSTP;
|
||||
if (x == Mono_Posix_Signals_SIGTTIN)
|
||||
return SIGTTIN;
|
||||
if (x == Mono_Posix_Signals_SIGTTOU)
|
||||
return SIGTTOU;
|
||||
if (x == Mono_Posix_Signals_SIGURG)
|
||||
return SIGURG;
|
||||
if (x == Mono_Posix_Signals_SIGXCPU)
|
||||
return SIGXCPU;
|
||||
if (x == Mono_Posix_Signals_SIGXFSZ)
|
||||
return SIGXFSZ;
|
||||
if (x == Mono_Posix_Signals_SIGVTALRM)
|
||||
return SIGVTALRM;
|
||||
if (x == Mono_Posix_Signals_SIGPROF)
|
||||
return SIGPROF;
|
||||
if (x == Mono_Posix_Signals_SIGWINCH)
|
||||
return SIGWINCH;
|
||||
if (x == Mono_Posix_Signals_SIGIO)
|
||||
return SIGIO;
|
||||
if (x == Mono_Posix_Signals_SIGPWR)
|
||||
return SIGPWR;
|
||||
if (x == Mono_Posix_Signals_SIGSYS)
|
||||
return SIGSYS;
|
||||
if (x == Mono_Posix_Signals_SIGRTMIN)
|
||||
return SIGRTMIN;
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
/* This file was automatically generated by make-map from ../lib/Mono.Posix.dll */
|
||||
|
||||
#define Mono_Posix_OpenFlags_O_RDONLY O_RDONLY
|
||||
#define Mono_Posix_OpenFlags_O_WRONLY O_WRONLY
|
||||
#define Mono_Posix_OpenFlags_O_RDWR O_RDWR
|
||||
#define Mono_Posix_OpenFlags_O_CREAT O_CREAT
|
||||
#define Mono_Posix_OpenFlags_O_EXCL O_EXCL
|
||||
#define Mono_Posix_OpenFlags_O_NOCTTY O_NOCTTY
|
||||
#define Mono_Posix_OpenFlags_O_TRUNC O_TRUNC
|
||||
#define Mono_Posix_OpenFlags_O_APPEND O_APPEND
|
||||
#define Mono_Posix_OpenFlags_O_NONBLOCK O_NONBLOCK
|
||||
#define Mono_Posix_OpenFlags_O_SYNC O_SYNC
|
||||
#define Mono_Posix_OpenFlags_O_NOFOLLOW O_NOFOLLOW
|
||||
#define Mono_Posix_OpenFlags_O_DIRECTORY O_DIRECTORY
|
||||
#define Mono_Posix_OpenFlags_O_DIRECT O_DIRECT
|
||||
#define Mono_Posix_OpenFlags_O_ASYNC O_ASYNC
|
||||
#define Mono_Posix_OpenFlags_O_LARGEFILE O_LARGEFILE
|
||||
|
||||
#define Mono_Posix_FileMode_S_ISUID S_ISUID
|
||||
#define Mono_Posix_FileMode_S_ISGID S_ISGID
|
||||
#define Mono_Posix_FileMode_S_ISVTX S_ISVTX
|
||||
#define Mono_Posix_FileMode_S_IRUSR S_IRUSR
|
||||
#define Mono_Posix_FileMode_S_IWUSR S_IWUSR
|
||||
#define Mono_Posix_FileMode_S_IXUSR S_IXUSR
|
||||
#define Mono_Posix_FileMode_S_IRGRP S_IRGRP
|
||||
#define Mono_Posix_FileMode_S_IWGRP S_IWGRP
|
||||
#define Mono_Posix_FileMode_S_IXGRP S_IXGRP
|
||||
#define Mono_Posix_FileMode_S_IROTH S_IROTH
|
||||
#define Mono_Posix_FileMode_S_IWOTH S_IWOTH
|
||||
#define Mono_Posix_FileMode_S_IXOTH S_IXOTH
|
||||
|
||||
#define Mono_Posix_WaitOptions_WNOHANG WNOHANG
|
||||
#define Mono_Posix_WaitOptions_WUNTRACED WUNTRACED
|
||||
|
||||
#define Mono_Posix_AccessMode_R_OK R_OK
|
||||
#define Mono_Posix_AccessMode_W_OK W_OK
|
||||
#define Mono_Posix_AccessMode_X_OK X_OK
|
||||
#define Mono_Posix_AccessMode_F_OK F_OK
|
||||
|
||||
#define Mono_Posix_Signals_SIGHUP SIGHUP
|
||||
#define Mono_Posix_Signals_SIGINT SIGINT
|
||||
#define Mono_Posix_Signals_SIGQUIT SIGQUIT
|
||||
#define Mono_Posix_Signals_SIGILL SIGILL
|
||||
#define Mono_Posix_Signals_SIGTRAP SIGTRAP
|
||||
#define Mono_Posix_Signals_SIGABRT SIGABRT
|
||||
#define Mono_Posix_Signals_SIGBUS SIGBUS
|
||||
#define Mono_Posix_Signals_SIGFPE SIGFPE
|
||||
#define Mono_Posix_Signals_SIGKILL SIGKILL
|
||||
#define Mono_Posix_Signals_SIGUSR1 SIGUSR1
|
||||
#define Mono_Posix_Signals_SIGSEGV SIGSEGV
|
||||
#define Mono_Posix_Signals_SIGUSR2 SIGUSR2
|
||||
#define Mono_Posix_Signals_SIGPIPE SIGPIPE
|
||||
#define Mono_Posix_Signals_SIGALRM SIGALRM
|
||||
#define Mono_Posix_Signals_SIGTERM SIGTERM
|
||||
#define Mono_Posix_Signals_SIGCHLD SIGCHLD
|
||||
#define Mono_Posix_Signals_SIGCONT SIGCONT
|
||||
#define Mono_Posix_Signals_SIGSTOP SIGSTOP
|
||||
#define Mono_Posix_Signals_SIGTSTP SIGTSTP
|
||||
#define Mono_Posix_Signals_SIGTTIN SIGTTIN
|
||||
#define Mono_Posix_Signals_SIGTTOU SIGTTOU
|
||||
#define Mono_Posix_Signals_SIGURG SIGURG
|
||||
#define Mono_Posix_Signals_SIGXCPU SIGXCPU
|
||||
#define Mono_Posix_Signals_SIGXFSZ SIGXFSZ
|
||||
#define Mono_Posix_Signals_SIGVTALRM SIGVTALRM
|
||||
#define Mono_Posix_Signals_SIGPROF SIGPROF
|
||||
#define Mono_Posix_Signals_SIGWINCH SIGWINCH
|
||||
#define Mono_Posix_Signals_SIGIO SIGIO
|
||||
#define Mono_Posix_Signals_SIGPWR SIGPWR
|
||||
#define Mono_Posix_Signals_SIGSYS SIGSYS
|
||||
#define Mono_Posix_Signals_SIGRTMIN SIGRTMIN
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
Assembly.cs
|
||||
AssemblyNameFlags.cs
|
||||
BindingFlags.cs
|
||||
CallingConventions.cs
|
||||
ConstructorInfo.cs
|
||||
DefaultMemberAttribute.cs
|
||||
EventAttributes.cs
|
||||
EventInfo.cs
|
||||
FieldAttributes.cs
|
||||
FieldInfo.cs
|
||||
ICustomAttributeProvider.cs
|
||||
MemberFilter.cs
|
||||
MemberInfo.cs
|
||||
MemberTypes.cs
|
||||
MethodAttributes.cs
|
||||
MethodBase.cs
|
||||
MethodImplAttributes.cs
|
||||
MethodInfo.cs
|
||||
Module.cs
|
||||
ParameterAttributes.cs
|
||||
PropertyAttributes.cs
|
||||
PropertyInfo.cs
|
||||
ResourceAttributes.cs
|
||||
ResourceLocation.cs
|
||||
TypeAttributes.cs
|
||||
Reference in new issue
Block a user