Something went wrong. Try again.
An experiment in static, refcounted, procedural language with ownership
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051type c-char* = i8type c-uchar* = u8type c-short* = i16type c-ushort* = u16type c-int* = i32type c-uint* = u32type c-long* = i64type c-ulong* = u64type c-longlong* = i64type c-ulonglong* = u64type c-size* = uinttype c-ssize* = inttype mode* = u32fn extern "c" close*(fd: c-int) c-intfn extern "c" open*(pathname: ptr[c-char], flags: c-int, mode: mode) c-intfn extern "c" printf*(format: ptr[c-uchar], ..) c-intfn extern "c" read*(fd: c-int, buf: ptr[c-uchar], count: c-size) c-ssizefn extern "c" unlink*(pathname: ptr[c-char]) c-intfn extern "c" write*(fd: c-int, buf: ptr[c-uchar], count: c-size) c-ssizefn extern "c" __errno_location*() ptr[c-int]const O_RDONLY*: c-int = 0const O_WRONLY*: c-int = 1const O_RDWR*: c-int = 2const O_DIRECT*: c-int = 0x4000const O_DIRECTORY*: c-int = 0x10000const O_NOFOLLOW*: c-int = 0x20000const O_APPEND*: c-int = 1024const O_CREAT*: c-int = 64const O_EXCL*: c-int = 128const O_NOCTTY*: c-int = 256const O_NONBLOCK*: c-int = 2048const O_SYNC*: c-int = 1052672const O_RSYNC*: c-int = 1052672const O_DSYNC*: c-int = 4096const O_FSYNC*: c-int = 0x101000const O_NOATIME*: c-int = 0o1000000const O_PATH*: c-int = 0o10000000const O_TMPFILE*: c-int = 0o20000000 | O_DIRECTORYconst O_TRUNC*: c-int = 512