# std.c: Add accept_filter_arg for some BSDs · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/c449a30213d1252a4dd65e5a7fde9bea9f2ab76f)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: c449a30213d1252a4dd65e5a7fde9bea9f2ab76f

Requested commit: c449a30213d1252a4dd65e5a7fde9bea9f2ab76f

Commit: c449a30213d1252a4dd65e5a7fde9bea9f2ab76f

Tree: 5a05a8ef792d3ac290d369c37dc8276bdbcaaf49

Author: Brandon Black

Committer: Brandon Black

## Message

```
std.c: Add accept_filter_arg for some BSDs

This is the struct type used as set/getsockopt() option data with
SO.ACCEPTFILTER, which is also only declared on this same limited
set of BSD-ish targets.

In theory this could be aliased over to std.posix as well, but I
think for a corner case like this, it's not unreasonable for a
user that is avoiding uneccessary std.c references to access it as
"posix.system.accept_filter_arg" (which would still work fine if,
in the future, FreeBSD escapes its libc dep and defines it in
std.os.freebsd).

```

## Parents

- [c70521e7b1d09d70ecf7dac9638f02a3961249de](https://git.cafe/gitcafe/zig/commit/c70521e7b1d09d70ecf7dac9638f02a3961249de?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/c449a30213d1252a4dd65e5a7fde9bea9f2ab76f?format=markdown)
