Skip to content

Commit fd2868c

Browse files
committed
netbsd/freebsd adding accept_filter_arg as SO_ACCEPTFILTER only makes sense with
1 parent 0cffbc1 commit fd2868c

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

libc-test/semver/freebsd.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1323,6 +1323,7 @@ __xuname
13231323
_sem
13241324
abs
13251325
accept4
1326+
accept_filter_arg
13261327
acct
13271328
aio_cancel
13281329
aio_error

libc-test/semver/netbsd.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,7 @@ _cpuset_zero
10181018
_lwp_self
10191019
abs
10201020
accept4
1021+
accept_filter_arg
10211022
acct
10221023
aio_cancel
10231024
aio_error

src/unix/bsd/freebsdlike/freebsd/mod.rs

+5
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ s! {
112112
pub sc_groups: [::gid_t; 1],
113113
}
114114

115+
pub struct accept_filter_arg {
116+
pub af_name: [::c_char; 16],
117+
af_arg: [[::c_char; 10]; 24],
118+
}
119+
115120
pub struct ptrace_vm_entry {
116121
pub pve_entry: ::c_int,
117122
pub pve_timestamp: ::c_int,

src/unix/bsd/netbsdlike/netbsd/mod.rs

+5
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,11 @@ s! {
435435
pub struct _cpuset {
436436
bits: [u32; 0]
437437
}
438+
439+
pub struct accept_filter_arg {
440+
pub af_name: [::c_char; 16],
441+
af_arg: [[::c_char; 10]; 24],
442+
}
438443
}
439444

440445
s_no_extra_traits! {

0 commit comments

Comments
 (0)