add forkpty to linux

This commit is contained in:
Kevin Kuehler 2019-04-07 03:16:05 -07:00
parent 03481551dd
commit 83ccc7b8a9
No known key found for this signature in database
GPG Key ID: 4430C7D6A331F346

View File

@ -1383,6 +1383,10 @@ extern {
name: *mut ::c_char,
termp: *const termios,
winp: *const ::winsize) -> ::c_int;
pub fn forkpty(amaster: *mut ::c_int,
name: *mut ::c_char,
termp: *const termios,
winp: *const ::winsize) -> ::pid_t;
pub fn login_tty(fd: ::c_int) -> ::c_int;
pub fn execvpe(file: *const ::c_char, argv: *const *const ::c_char,
envp: *const *const ::c_char) -> ::c_int;
@ -1423,7 +1427,3 @@ cfg_if! {
// Unknown target_os
}
}
// pub fn forkpty(amaster: *mut ::c_int,
// name: *mut ::c_char,
// termp: *const termios,
// winp: *const ::winsize) -> ::pid_t;