From 2018510dd9578b9c3ca25d574130056f9c36aaf9 Mon Sep 17 00:00:00 2001 From: "NODA, Kai" Date: Tue, 2 Dec 2014 02:39:40 +0800 Subject: [PATCH] liblibc: getsid() was missing though setsid() was already there. include pid_t getsid(pid_t pid); CONFORMING TO SVr4, POSIX.1-2001. Signed-off-by: NODA, Kai --- src/liblibc/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs index 6ce85d1d802..18e9d832c00 100644 --- a/src/liblibc/lib.rs +++ b/src/liblibc/lib.rs @@ -192,7 +192,7 @@ pub use funcs::bsd43::{shutdown}; #[cfg(unix)] pub use types::os::arch::posix01::{stat, utimbuf}; #[cfg(unix)] pub use types::os::common::bsd44::{ifaddrs}; #[cfg(unix)] pub use funcs::posix88::unistd::{sysconf, setgid, setsid, setuid, pread, pwrite}; -#[cfg(unix)] pub use funcs::posix88::unistd::{getgid, getuid}; +#[cfg(unix)] pub use funcs::posix88::unistd::{getgid, getuid, getsid}; #[cfg(unix)] pub use funcs::posix88::unistd::{_PC_NAME_MAX, utime, nanosleep, pathconf, link}; #[cfg(unix)] pub use funcs::posix88::unistd::{chown}; #[cfg(unix)] pub use funcs::posix88::mman::{mmap, munmap, mprotect}; @@ -4402,6 +4402,7 @@ pub mod funcs { pub fn getpid() -> pid_t; pub fn getppid() -> pid_t; pub fn getuid() -> uid_t; + pub fn getsid(pid: pid_t) -> pid_t; pub fn isatty(fd: c_int) -> c_int; pub fn link(src: *const c_char, dst: *const c_char) -> c_int; pub fn lseek(fd: c_int, offset: off_t, whence: c_int)