Added ucred (sockpeercred) for OpenBSD and Bitrig
@@ -14,6 +14,7 @@ pub type pthread_cond_t = *mut ::c_void;
pub type pthread_condattr_t = *mut ::c_void;
pub type pthread_rwlock_t = *mut ::c_void;
pub type pthread_rwlockattr_t = *mut ::c_void;
+pub type ucred = ::sockpeercred;
s! {
pub struct dirent {
@@ -187,6 +188,12 @@ s! {
pub sdl_slen: ::c_uchar,
pub sdl_data: [::c_char; 24],
}
+
+ pub struct sockpeercred {
+ pub uid: ::uid_t,
+ pub gid: ::gid_t,
+ pub pid: ::pid_t,
+ }
}
pub const UT_NAMESIZE: usize = 32;
