Skip to content

Commit 5614859

Browse files
mansiverma897993tgross35
authored andcommitted
freebsd: Add SOL_LOCAL
Add SOL_LOCAL constant (value 0) to FreeBSD to match Apple/macOS targets and allow setting local socket options.
1 parent 413bb61 commit 5614859

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

libc-test/semver/freebsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,6 +1451,7 @@ SOCK_MAXADDRLEN
14511451
SOCK_NONBLOCK
14521452
SOCK_RAW
14531453
SOCK_RDM
1454+
SOL_LOCAL
14541455
SOMAXCONN
14551456
SO_ACCEPTFILTER
14561457
SO_BINTIME

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4179,6 +4179,8 @@ pub const KCMP_FILES: c_int = 102;
41794179
pub const KCMP_SIGHAND: c_int = 103;
41804180
pub const KCMP_VM: c_int = 104;
41814181

4182+
pub const SOL_LOCAL: c_int = 0;
4183+
41824184
pub const fn MAP_ALIGNED(a: c_int) -> c_int {
41834185
a << 24
41844186
}

0 commit comments

Comments
 (0)