Skip to content

Commit 5484d6f

Browse files
committed
auto merge of #19439 : nodakai/rust/liblibc-getsid, r=acrichto
``` #include <unistd.h> pid_t getsid(pid_t pid); CONFORMING TO SVr4, POSIX.1-2001. ```
2 parents 21ba1d5 + 2018510 commit 5484d6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/liblibc/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ pub use funcs::bsd43::{shutdown};
192192
#[cfg(unix)] pub use types::os::arch::posix01::{stat, utimbuf};
193193
#[cfg(unix)] pub use types::os::common::bsd44::{ifaddrs};
194194
#[cfg(unix)] pub use funcs::posix88::unistd::{sysconf, setgid, setsid, setuid, pread, pwrite};
195-
#[cfg(unix)] pub use funcs::posix88::unistd::{getgid, getuid};
195+
#[cfg(unix)] pub use funcs::posix88::unistd::{getgid, getuid, getsid};
196196
#[cfg(unix)] pub use funcs::posix88::unistd::{_PC_NAME_MAX, utime, nanosleep, pathconf, link};
197197
#[cfg(unix)] pub use funcs::posix88::unistd::{chown};
198198
#[cfg(unix)] pub use funcs::posix88::mman::{mmap, munmap, mprotect};
@@ -4402,6 +4402,7 @@ pub mod funcs {
44024402
pub fn getpid() -> pid_t;
44034403
pub fn getppid() -> pid_t;
44044404
pub fn getuid() -> uid_t;
4405+
pub fn getsid(pid: pid_t) -> pid_t;
44054406
pub fn isatty(fd: c_int) -> c_int;
44064407
pub fn link(src: *const c_char, dst: *const c_char) -> c_int;
44074408
pub fn lseek(fd: c_int, offset: off_t, whence: c_int)

0 commit comments

Comments
 (0)