1
Fork 0
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:
Michael Gehring 2014-06-16 20:04:46 +02:00
parent 30df0ca208
commit 66c364c75d

View file

@ -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 {