Skip to content

Commit

Permalink
Merge pull request #197 from volcano0dr/master
Browse files Browse the repository at this point in the history
Add struct ucred definition in sgx_libc. Thanks to @volcano0dr !
  • Loading branch information
dingelish authored Jan 17, 2020
2 parents 5929e2f + d1cbad2 commit 07f40b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sgx_libc/src/linux/x86_64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ pub type gid_t = u32;
pub type ino64_t = u64;
pub type nfds_t = c_ulong;
pub type pthread_t = c_ulong;
pub type pid_t = i32;

#[derive(Copy, Clone, Debug)]
pub enum DIR {}
Expand Down Expand Up @@ -400,6 +401,12 @@ s! {
pub pw_dir: *mut c_char,
pub pw_shell: *mut c_char,
}

pub struct ucred {
pub pid: pid_t,
pub uid: uid_t,
pub gid: gid_t,
}
}

pub const AT_FDCWD: c_int = -100;
Expand Down

0 comments on commit 07f40b0

Please sign in to comment.