From 30f6da8a640b3efd36719d6fd8c4df08ba2383f6 Mon Sep 17 00:00:00 2001 From: jD91mZM2 Date: Sat, 9 Jun 2018 07:54:27 +0200 Subject: Add getpid --- src/redox/mod.rs | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.1