Skip to content

Commit 83ccc7b

Browse files
committed
add forkpty to linux
1 parent 0348155 commit 83ccc7b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/unix/notbsd/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,6 +1383,10 @@ extern {
13831383
name: *mut ::c_char,
13841384
termp: *const termios,
13851385
winp: *const ::winsize) -> ::c_int;
1386+
pub fn forkpty(amaster: *mut ::c_int,
1387+
name: *mut ::c_char,
1388+
termp: *const termios,
1389+
winp: *const ::winsize) -> ::pid_t;
13861390
pub fn login_tty(fd: ::c_int) -> ::c_int;
13871391
pub fn execvpe(file: *const ::c_char, argv: *const *const ::c_char,
13881392
envp: *const *const ::c_char) -> ::c_int;
@@ -1423,7 +1427,3 @@ cfg_if! {
14231427
// Unknown target_os
14241428
}
14251429
}
1426-
// pub fn forkpty(amaster: *mut ::c_int,
1427-
// name: *mut ::c_char,
1428-
// termp: *const termios,
1429-
// winp: *const ::winsize) -> ::pid_t;

0 commit comments

Comments
 (0)