Skip to content

Commit 8b82c29

Browse files
Introduce type aliases for ucred fields
1 parent 8788872 commit 8b82c29

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/unix/redox/mod.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ pub type suseconds_t = ::c_int;
4848
pub type tcflag_t = u32;
4949
pub type time_t = ::c_longlong;
5050
pub type id_t = ::c_uint;
51+
pub type pid_t = usize;
52+
pub type uid_t = u32;
53+
pub type gid_t = u32;
5154

5255
#[cfg_attr(feature = "extra_traits", derive(Debug))]
5356
pub enum timezone {}
@@ -258,9 +261,9 @@ s! {
258261
}
259262

260263
pub struct ucred {
261-
pub pid: i32,
262-
pub uid: i32,
263-
pub gid: i32,
264+
pub pid: pid_t,
265+
pub uid: uid_t,
266+
pub gid: gid_t,
264267
}
265268
}
266269

0 commit comments

Comments
 (0)