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); }
public static extern int open([In, MarshalAs(UnmanagedType.LPUTF8Str)] string fileName, eFileFlags flags = eFileFlags.O_CLOEXEC);
public static extern int mq_open([In, MarshalAs(UnmanagedType.LPUTF8Str)] string name, eFileFlags flags, eFileAccess access, [In] ref MessageQueueAttributes attributes);