File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
src/unix/bsd/netbsdlike/netbsd Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -299,6 +299,12 @@ s! {
299
299
pub sc_groups: [ :: gid_t; 1 ] ,
300
300
}
301
301
302
+ pub struct unpcbid {
303
+ pub unp_pid: :: pid_t,
304
+ pub unp_euid: :: uid_t,
305
+ pub unp_egid: :: gid_t,
306
+ }
307
+
302
308
pub struct sockaddr_dl {
303
309
pub sdl_len: :: c_uchar,
304
310
pub sdl_family: :: c_uchar,
@@ -1047,6 +1053,12 @@ pub const SO_TIMESTAMP: ::c_int = 0x2000;
1047
1053
pub const SO_OVERFLOWED : :: c_int = 0x1009 ;
1048
1054
pub const SO_NOHEADER : :: c_int = 0x100a ;
1049
1055
1056
+ // http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/sys/un.h?annotate
1057
+ pub const LOCAL_OCREDS : :: c_int = 0x0001 ; // pass credentials to receiver
1058
+ pub const LOCAL_CONNWAIT : :: c_int = 0x0002 ; // connects block until accepted
1059
+ pub const LOCAL_PEEREID : :: c_int = 0x0003 ; // get peer identification
1060
+ pub const LOCAL_CREDS : :: c_int = 0x0004 ; // pass credentials to receiver
1061
+
1050
1062
// https://github.com/NetBSD/src/blob/trunk/sys/net/if.h#L373
1051
1063
pub const IFF_UP : :: c_int = 0x0001 ; // interface is up
1052
1064
pub const IFF_BROADCAST : :: c_int = 0x0002 ; // broadcast address valid
You can’t perform that action at this time.
0 commit comments