commit 99929ea4b0b23c43628b1c3f4ef78b80d8d6de12
parent 140cdef5dff9565b0a9828b8a0d6688bb19996db
Author: Drew DeVault <sir@cmpwn.com>
Date: Mon, 1 Feb 2021 10:16:28 -0500
os::open: add docs
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/os/+linux/open.ha b/os/+linux/open.ha
@@ -2,6 +2,7 @@ use io;
use rt;
use strings;
+// Opens a file from the filesystem.
export fn open(path: (str | []u8), mode: io::mode) (*io::stream | io::error) = {
// Verify that these line up with the Linux ABI:
static assert(io::mode::RDONLY: uint == 0u);