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) {
10021002 "sys/times.h" ,
10031003 "sys/timex.h" ,
10041004 "sys/ucontext.h" ,
1005+ "sys/ucred.h" ,
10051006 "sys/uio.h" ,
10061007 "sys/un.h" ,
10071008 "sys/utsname.h" ,
Original file line number Diff line number Diff line change @@ -1466,6 +1466,7 @@ utmpx
14661466utmpxname
14671467utpname
14681468utrace
1469+ uucred
14691470vm_size_t
14701471wait4
14711472waitid
Original file line number Diff line number Diff line change @@ -343,6 +343,14 @@ s! {
343343 pub sc_groups: [ :: gid_t; 1 ] ,
344344 }
345345
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+
346354 pub struct unpcbid {
347355 pub unp_pid: :: pid_t,
348356 pub unp_euid: :: uid_t,
@@ -2012,6 +2020,8 @@ pub const KVME_FLAG_PAGEABLE: ::c_int = 0x000000008;
20122020pub const KVME_FLAG_GROWS_UP : :: c_int = 0x000000010 ;
20132021pub const KVME_FLAG_GROWS_DOWN : :: c_int = 0x000000020 ;
20142022
2023+ pub const NGROUPS_MAX : :: c_int = 16 ;
2024+
20152025const_fn ! {
20162026 { const } fn _ALIGN( p: usize ) -> usize {
20172027 ( p + _ALIGNBYTES) & !_ALIGNBYTES
You can’t perform that action at this time.
0 commit comments