diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2020-07-31 00:54:33 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2020-07-31 16:41:25 +0200 |
| commit | 4d9eff4bdb368dd4dad99b6b19c83468607cd1d2 (patch) | |
| tree | 49b95454ae4485624d4dc145255f7a6f586c6d3a /lib/std/os/bits/windows.zig | |
| parent | a694f575adbe4ca6852cc7c9022101ebcfc3a8d7 (diff) | |
| download | zig-4d9eff4bdb368dd4dad99b6b19c83468607cd1d2.tar.gz zig-4d9eff4bdb368dd4dad99b6b19c83468607cd1d2.zip | |
Add prelim `openW` and `openatW`
Added POSIX functions targeting Windows pass `open` and `openat`
smoke tests.
Diffstat (limited to 'lib/std/os/bits/windows.zig')
| -rw-r--r-- | lib/std/os/bits/windows.zig | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/std/os/bits/windows.zig b/lib/std/os/bits/windows.zig index 4988cafbe0..53a590ff1e 100644 --- a/lib/std/os/bits/windows.zig +++ b/lib/std/os/bits/windows.zig @@ -237,3 +237,28 @@ pub const IPPROTO_TCP = ws2_32.IPPROTO_TCP; pub const IPPROTO_UDP = ws2_32.IPPROTO_UDP; pub const IPPROTO_ICMPV6 = ws2_32.IPPROTO_ICMPV6; pub const IPPROTO_RM = ws2_32.IPPROTO_RM; + +pub const O_RDONLY = 0o0; +pub const O_WRONLY = 0o1; +pub const O_RDWR = 0o2; + +pub const O_CREAT = 0o100; +pub const O_EXCL = 0o200; +pub const O_NOCTTY = 0o400; +pub const O_TRUNC = 0o1000; +pub const O_APPEND = 0o2000; +pub const O_NONBLOCK = 0o4000; +pub const O_DSYNC = 0o10000; +pub const O_SYNC = 0o4010000; +pub const O_RSYNC = 0o4010000; +pub const O_DIRECTORY = 0o200000; +pub const O_NOFOLLOW = 0o400000; +pub const O_CLOEXEC = 0o2000000; + +pub const O_ASYNC = 0o20000; +pub const O_DIRECT = 0o40000; +pub const O_LARGEFILE = 0; +pub const O_NOATIME = 0o1000000; +pub const O_PATH = 0o10000000; +pub const O_TMPFILE = 0o20200000; +pub const O_NDELAY = O_NONBLOCK;
\ No newline at end of file |
