mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +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:
commit
e0428b290b
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