diff options
author | jD91mZM2 <me@krake.one> | 2018-06-09 07:54:27 +0200 |
---|---|---|
committer | jD91mZM2 <me@krake.one> | 2018-06-09 07:54:56 +0200 |
commit | 30f6da8a640b3efd36719d6fd8c4df08ba2383f6 (patch) | |
tree | ab6233a080ade5ff3f80ea4c8dadd7d031af47de | |
parent | 8a85d662b90c14d458bc4ae9521a05564e20d7ae (diff) | |
download | rust-libc-30f6da8a640b3efd36719d6fd8c4df08ba2383f6.tar.gz |
Add getpid
-rw-r--r-- | src/redox/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/redox/mod.rs b/src/redox/mod.rs index 793fd32c88..e32c4b385b 100644 --- a/src/redox/mod.rs +++ b/src/redox/mod.rs @@ -119,6 +119,7 @@ pub const SIGSYS: ::c_int = 31; extern { pub fn gethostname(name: *mut ::c_char, len: ::size_t) -> ::c_int; + pub fn getpid() -> pid_t; pub fn memalign(align: ::size_t, size: ::size_t) -> *mut ::c_void; pub fn read(fd: ::c_int, buf: *mut ::c_void, count: ::size_t) -> ::ssize_t; |