File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
src/unix/bsd/netbsdlike/netbsd Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1002,6 +1002,7 @@ fn test_netbsd(target: &str) {
1002
1002
"sys/times.h" ,
1003
1003
"sys/timex.h" ,
1004
1004
"sys/ucontext.h" ,
1005
+ "sys/ucred.h" ,
1005
1006
"sys/uio.h" ,
1006
1007
"sys/un.h" ,
1007
1008
"sys/utsname.h" ,
Original file line number Diff line number Diff line change @@ -1466,6 +1466,7 @@ utmpx
1466
1466
utmpxname
1467
1467
utpname
1468
1468
utrace
1469
+ uucred
1469
1470
vm_size_t
1470
1471
wait4
1471
1472
waitid
Original file line number Diff line number Diff line change @@ -343,6 +343,14 @@ s! {
343
343
pub sc_groups: [ :: gid_t; 1 ] ,
344
344
}
345
345
346
+ pub struct uucred {
347
+ pub cr_unused: :: c_ushort,
348
+ pub cr_uid: :: uid_t,
349
+ pub cr_gid: :: gid_t,
350
+ pub cr_ngroups: :: c_int,
351
+ pub cr_groups: [ :: gid_t; NGROUPS_MAX as usize ] ,
352
+ }
353
+
346
354
pub struct unpcbid {
347
355
pub unp_pid: :: pid_t,
348
356
pub unp_euid: :: uid_t,
@@ -2012,6 +2020,8 @@ pub const KVME_FLAG_PAGEABLE: ::c_int = 0x000000008;
2012
2020
pub const KVME_FLAG_GROWS_UP : :: c_int = 0x000000010 ;
2013
2021
pub const KVME_FLAG_GROWS_DOWN : :: c_int = 0x000000020 ;
2014
2022
2023
+ pub const NGROUPS_MAX : :: c_int = 16 ;
2024
+
2015
2025
const_fn ! {
2016
2026
{ const } fn _ALIGN( p: usize ) -> usize {
2017
2027
( p + _ALIGNBYTES) & !_ALIGNBYTES
You can’t perform that action at this time.
0 commit comments