mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 03:57:44 +00:00
c_types: fix c_group (struct group) memory layout
This commit is contained in:
parent
30df0ca208
commit
66c364c75d
1 changed files with 5 additions and 1 deletions
|
@ -6,6 +6,7 @@ use self::libc::{
|
|||
c_char,
|
||||
c_int,
|
||||
uid_t,
|
||||
gid_t,
|
||||
};
|
||||
#[cfg(target_os = "macos")] use self::libc::time_t;
|
||||
use self::libc::funcs::posix88::unistd::getgroups;
|
||||
|
@ -60,7 +61,10 @@ pub struct utsname {
|
|||
}
|
||||
|
||||
pub struct c_group {
|
||||
pub gr_name: *c_char /* group name */
|
||||
pub gr_name: *c_char, // group name
|
||||
pub gr_passwd: *c_char, // password
|
||||
pub gr_gid: gid_t, // group id
|
||||
pub gr_mem: **c_char, // member list
|
||||
}
|
||||
|
||||
pub struct c_tm {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue