示例#1
0
        public static FileHandle openFile(string path, eFileFlags flags)
        {
            int fd = LibC.open(path, flags);

            if (fd >= 0)
            {
                return(new FileHandle(fd));
            }
            throw LibC.exception($"Unable to open the file \"{ path }\"", fd);
        }
示例#2
0
文件: LibC.cs 项目: zeta1999/Vrmac
 public static extern int open([In, MarshalAs(UnmanagedType.LPUTF8Str)] string fileName, eFileFlags flags = eFileFlags.O_CLOEXEC);
示例#3
0
 public static extern int mq_open([In, MarshalAs(UnmanagedType.LPUTF8Str)] string name, eFileFlags flags, eFileAccess access, [In] ref MessageQueueAttributes attributes);