mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
fixed bpf namespace
This commit is contained in:
parent
bc1536f4bf
commit
80fabe1850
@ -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();
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user