zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 1d322fe5102368f80fd4d00dcbbe3dca9e6306f8 (tree)
parent 7b0e015eb42272d84396f44fc904ab79f38dd696
Author: David CARLIER <devnexen@gmail.com>
Date:   Sat,  8 Apr 2023 15:21:43 +0100

std: add accept_filter struct to make use of SO_ACCEPTFILTER socket option

Diffstat:
Mlib/std/c/freebsd.zig | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib/std/c/freebsd.zig b/lib/std/c/freebsd.zig @@ -1105,6 +1105,11 @@ pub const DT = struct { pub const WHT = 14; }; +pub const accept_filter = extern struct { + af_name: [16]u8, + af_args: [240]u8, +}; + /// add event to kq (implies enable) pub const EV_ADD = 0x0001;