summaryrefslogtreecommitdiff
path: root/src/unix/bsd/apple/mod.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-03-08 21:43:44 -0800
committerAlex Crichton <alex@alexcrichton.com>2016-03-08 21:43:44 -0800
commit04213bbac5e66c59482cf80ed47ec886e30ed8f7 (patch)
tree6ce8b3eca1b2fa30603b23ddca9fb0b74656f4fe /src/unix/bsd/apple/mod.rs
parentb47bc673bae102f724bfb167ed5199344018fe6a (diff)
parent89a7700e23a0849af488349603e8753a7915603f (diff)
downloadrust-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.rs9
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! {