Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define SO_PROTOCOL and SO_DOMAIN on OpenBSD and Solarish. #3316

Merged
merged 2 commits into from Aug 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions libc-test/semver/openbsd.txt
Expand Up @@ -778,8 +778,10 @@ SOCK_RAW
SOCK_RDM
SOMAXCONN
SO_BINDANY
SO_DOMAIN
SO_NETPROC
SO_PEERCRED
SO_PROTOCOL
SO_RTABLE
SO_SPLICE
SO_TIMESTAMP
Expand Down
2 changes: 2 additions & 0 deletions src/unix/bsd/netbsdlike/openbsd/mod.rs
Expand Up @@ -999,6 +999,8 @@ pub const SO_NETPROC: ::c_int = 0x1020;
pub const SO_RTABLE: ::c_int = 0x1021;
pub const SO_PEERCRED: ::c_int = 0x1022;
pub const SO_SPLICE: ::c_int = 0x1023;
pub const SO_DOMAIN: ::c_int = 0x1024;
pub const SO_PROTOCOL: ::c_int = 0x1025;

// sys/netinet/in.h
// Protocols (RFC 1700)
Expand Down
2 changes: 2 additions & 0 deletions src/unix/solarish/mod.rs
Expand Up @@ -1825,6 +1825,8 @@ pub const SO_SNDTIMEO: ::c_int = 0x1005;
pub const SO_RCVTIMEO: ::c_int = 0x1006;
pub const SO_ERROR: ::c_int = 0x1007;
pub const SO_TYPE: ::c_int = 0x1008;
pub const SO_PROTOTYPE: ::c_int = 0x1009;
pub const SO_DOMAIN: ::c_int = 0x100c;
pub const SO_TIMESTAMP: ::c_int = 0x1013;

pub const SCM_RIGHTS: ::c_int = 0x1010;
Expand Down