1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 20:17:45 +00:00

Merge pull request #253 from ebfe/fix-c-group

c_types: fix c_group (struct group) memory layout
This commit is contained in:
Arcterus 2014-06-16 13:53:05 -07:00
commit e0428b290b

View file

@ -6,6 +6,7 @@ use self::libc::{
c_char, c_char,
c_int, c_int,
uid_t, uid_t,
gid_t,
}; };
#[cfg(target_os = "macos")] use self::libc::time_t; #[cfg(target_os = "macos")] use self::libc::time_t;
use self::libc::funcs::posix88::unistd::getgroups; use self::libc::funcs::posix88::unistd::getgroups;
@ -60,7 +61,10 @@ pub struct utsname {
} }
pub struct c_group { 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 { pub struct c_tm {