diff options
author | Alex Crichton <alex@alexcrichton.com> | 2016-03-08 21:43:44 -0800 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2016-03-08 21:43:44 -0800 |
commit | 04213bbac5e66c59482cf80ed47ec886e30ed8f7 (patch) | |
tree | 6ce8b3eca1b2fa30603b23ddca9fb0b74656f4fe /src/unix/bsd/apple/mod.rs | |
parent | b47bc673bae102f724bfb167ed5199344018fe6a (diff) | |
parent | 89a7700e23a0849af488349603e8753a7915603f (diff) | |
download | rust-libc-04213bbac5e66c59482cf80ed47ec886e30ed8f7.tar.gz |
Merge pull request #202 from kamalmarhubi/openpty
apple: Add openpty(3) and forkpty(3)
Diffstat (limited to 'src/unix/bsd/apple/mod.rs')
-rw-r--r-- | src/unix/bsd/apple/mod.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 3d96ed9308..ec0fe7c111 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -927,6 +927,15 @@ extern { len: *mut ::off_t, hdtr: *mut ::sf_hdtr, flags: ::c_int) -> ::c_int; + pub fn openpty(amaster: *mut ::c_int, + aslave: *mut ::c_int, + name: *mut ::c_char, + termp: *mut termios, + winp: *mut ::winsize) -> ::c_int; + pub fn forkpty(amaster: *mut ::c_int, + name: *mut ::c_char, + termp: *mut termios, + winp: *mut ::winsize) -> ::pid_t; } cfg_if! { |