File tree 1 file changed +16
-0
lines changed
src/unix/bsd/freebsdlike/freebsd
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,14 @@ s! {
127
127
pub shm_dtime: :: time_t,
128
128
pub shm_ctime: :: time_t,
129
129
}
130
+
131
+ pub struct xucred {
132
+ pub cr_version: :: c_uint,
133
+ pub cr_uid: :: uid_t,
134
+ pub cr_ngroups: :: c_short,
135
+ pub cr_groups: [ :: gid_t; 16 ] ,
136
+ __cr_unused1: * mut :: c_void,
137
+ }
130
138
}
131
139
132
140
pub const SIGEV_THREAD_ID : :: c_int = 4 ;
@@ -402,6 +410,11 @@ pub const SO_PROTOCOL: ::c_int = 0x1016;
402
410
pub const SO_PROTOTYPE : :: c_int = SO_PROTOCOL ;
403
411
pub const SO_VENDOR : :: c_int = 0x80000000 ;
404
412
413
+ pub const LOCAL_PEERCRED : :: c_int = 1 ;
414
+ pub const LOCAL_CREDS : :: c_int = 2 ;
415
+ pub const LOCAL_CONNWAIT : :: c_int = 4 ;
416
+ pub const LOCAL_VENDOR : :: c_int = SO_VENDOR ;
417
+
405
418
pub const AF_SLOW : :: c_int = 33 ;
406
419
pub const AF_SCLUSTER : :: c_int = 34 ;
407
420
pub const AF_ARP : :: c_int = 35 ;
@@ -766,6 +779,9 @@ pub const _PC_ACL_NFS4: ::c_int = 64;
766
779
767
780
pub const _SC_CPUSET_SIZE: :: c_int = 122 ;
768
781
782
+ pub const XU_NGROUPS : :: c_int = 16 ;
783
+ pub const XUCRED_VERSION : :: c_uint = 0 ;
784
+
769
785
extern {
770
786
pub fn __error ( ) -> * mut :: c_int ;
771
787
You can’t perform that action at this time.
0 commit comments