diff options
author | Jessica Hamilton <jessica.l.hamilton@gmail.com> | 2017-09-26 01:01:22 +0000 |
---|---|---|
committer | Jessica Hamilton <jessica.l.hamilton@gmail.com> | 2017-09-26 01:01:22 +0000 |
commit | ee8a490e061729dcb6ea8c4269672f040f62593b (patch) | |
tree | 5ddab8d495677c0e44119a4f50d3f820498787c4 /src/unix/haiku | |
parent | 6de9e63431cf204d5d291c783798f7ad22b6b1e0 (diff) | |
download | rust-libc-ee8a490e061729dcb6ea8c4269672f040f62593b.tar.gz |
haiku: add openpty/forkpty, and link to libbsd.
Diffstat (limited to 'src/unix/haiku')
-rw-r--r-- | src/unix/haiku/mod.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/unix/haiku/mod.rs b/src/unix/haiku/mod.rs index c98f5cb53d..14e31cc240 100644 --- a/src/unix/haiku/mod.rs +++ b/src/unix/haiku/mod.rs @@ -860,6 +860,7 @@ f! { } } +#[link(name = "bsd")] extern { pub fn clock_gettime(clk_id: ::c_int, tp: *mut ::timespec) -> ::c_int; pub fn clock_settime(clk_id: ::c_int, tp: *const ::timespec) -> ::c_int; @@ -995,6 +996,15 @@ extern { link_name = "popen$UNIX2003")] pub fn popen(command: *const c_char, mode: *const c_char) -> *mut ::FILE; + 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! { |