diff options
| author | Matt Knight <mattnite@protonmail.com> | 2020-08-20 18:54:41 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-08-21 11:40:35 -0700 |
| commit | 80fabe18506193978ed60dcd45790ef9486c4eb3 (patch) | |
| tree | a67842596ce997697a2f812670ac4f77593d4b5f /lib/std/os | |
| parent | bc1536f4bf01e45af80a930b31b9271551de1dc0 (diff) | |
| download | zig-80fabe18506193978ed60dcd45790ef9486c4eb3.tar.gz zig-80fabe18506193978ed60dcd45790ef9486c4eb3.zip | |
fixed bpf namespace
Diffstat (limited to 'lib/std/os')
| -rw-r--r-- | lib/std/os/bits/linux.zig | 2 | ||||
| -rw-r--r-- | lib/std/os/linux.zig | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/os/bits/linux.zig b/lib/std/os/bits/linux.zig index 5c81ee8c06..133b903110 100644 --- a/lib/std/os/bits/linux.zig +++ b/lib/std/os/bits/linux.zig @@ -24,7 +24,7 @@ pub usingnamespace switch (builtin.arch) { }; pub usingnamespace @import("linux/netlink.zig"); -pub const bpf = @import("linux/bpf.zig"); +pub const BPF = @import("linux/bpf.zig"); const is_mips = builtin.arch.isMIPS(); diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig index f64e7d2add..c5edacfab1 100644 --- a/lib/std/os/linux.zig +++ b/lib/std/os/linux.zig @@ -1221,7 +1221,7 @@ pub fn copy_file_range(fd_in: fd_t, off_in: ?*i64, fd_out: fd_t, off_out: ?*i64, ); } -pub fn bpf_syscall(cmd: bpf.Cmd, attr: *bpf.Attr, size: u32) usize { +pub fn bpf(cmd: BPF.Cmd, attr: *BPF.Attr, size: u32) usize { return syscall3(.bpf, @enumToInt(cmd), @ptrToInt(attr), size); } |
