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