diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-02-08 01:39:39 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-02-11 13:38:55 -0700 |
| commit | 7680c5330cbc9141b9a5444e30c512b6068ab50d (patch) | |
| tree | 682d40e0853c392c1a5cf6dc5aa94c4c7016e859 /lib/std/os/linux/riscv64.zig | |
| parent | 320c4d68f5f40794ae31d5535de9c3a8ff5cb471 (diff) | |
| download | zig-7680c5330cbc9141b9a5444e30c512b6068ab50d.tar.gz zig-7680c5330cbc9141b9a5444e30c512b6068ab50d.zip | |
some API work on std.c, std.os, std.os.wasi
* std.c: consolidate some definitions, making them share code. For
example, freebsd, dragonfly, and openbsd can all share the same
`pthread_mutex_t` definition.
* add type safety to std.c.O
- this caught a bug where mode flags were incorrectly passed as the
open flags.
* 3 fewer uses of usingnamespace keyword
* as per convention, remove purposeless field prefixes from struct field
names even if they have those prefixes in the corresponding C code.
* fix incorrect wasi libc Stat definition
* remove C definitions from incorrectly being in std.os.wasi
* make std.os.wasi definitions type safe
* go through wasi native APIs even when linking libc because the libc
APIs are problematic and wasteful
* don't expose WASI definitions in std.posix
* remove std.os.wasi.rights_t.ALL: this is a footgun. should it be all
future rights too? or only all current rights known? both are
the wrong answer.
Diffstat (limited to 'lib/std/os/linux/riscv64.zig')
| -rw-r--r-- | lib/std/os/linux/riscv64.zig | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/std/os/linux/riscv64.zig b/lib/std/os/linux/riscv64.zig index 45821ddefa..c23fc5e4df 100644 --- a/lib/std/os/linux/riscv64.zig +++ b/lib/std/os/linux/riscv64.zig @@ -110,29 +110,6 @@ pub fn restore_rt() callconv(.Naked) noreturn { ); } -pub const O = struct { - pub const CREAT = 0o100; - pub const EXCL = 0o200; - pub const NOCTTY = 0o400; - pub const TRUNC = 0o1000; - pub const APPEND = 0o2000; - pub const NONBLOCK = 0o4000; - pub const DSYNC = 0o10000; - pub const SYNC = 0o4010000; - pub const RSYNC = 0o4010000; - pub const DIRECTORY = 0o200000; - pub const NOFOLLOW = 0o400000; - pub const CLOEXEC = 0o2000000; - - pub const ASYNC = 0o20000; - pub const DIRECT = 0o40000; - pub const LARGEFILE = 0o100000; - pub const NOATIME = 0o1000000; - pub const PATH = 0o10000000; - pub const TMPFILE = 0o20200000; - pub const NDELAY = NONBLOCK; -}; - pub const F = struct { pub const DUPFD = 0; pub const GETFD = 1; |
