예제 #1
0
 public static string gethostname()
 {
     return(Syscall.GetHostName());
 }
예제 #2
0
 public static int creat(string pathname, FileMode flags)
 {
     return(Syscall.syscall_creat(pathname, Syscall.map_Mono_Posix_FileMode(flags)));
 }
예제 #3
0
 public static string getgroupname(int gid)
 {
     return(Syscall.helper_Mono_Posix_GetGroupName(gid));
 }
예제 #4
0
 public static int chmod(string path, FileMode mode)
 {
     return(Syscall.syscall_chmod(path, Syscall.map_Mono_Posix_FileMode(mode)));
 }
예제 #5
0
 public static string strerror(int errnum)
 {
     return(Marshal.PtrToStringAnsi(Syscall._strerror(errnum)));
 }
예제 #6
0
 public static int stat(string filename, out Stat stat)
 {
     return(Syscall.stat2(filename, false, out stat));
 }
예제 #7
0
        public static int open(string pathname, OpenFlags flags, FileMode mode)
        {
            int num = Syscall.map_Mono_Posix_OpenFlags(flags);

            return(Syscall.syscall_open(pathname, num, Syscall.map_Mono_Posix_FileMode(mode)));
        }
예제 #8
0
 public static int mkdir(string pathname, FileMode mode)
 {
     return(Syscall.syscall_mkdir(pathname, Syscall.map_Mono_Posix_FileMode(mode)));
 }
예제 #9
0
 public static int access(string pathname, AccessMode mode)
 {
     return(Syscall.syscall_access(pathname, Syscall.map_Mono_Posix_AccessMode(mode)));
 }
예제 #10
0
 public static string getusername(int uid)
 {
     return(Syscall.helper_Mono_Posix_GetUserName(uid));
 }