File tree 3 files changed +17
-0
lines changed
3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ fn main() {
121
121
cfg. header ( "mach-o/dyld.h" ) ;
122
122
cfg. header ( "mach/mach_time.h" ) ;
123
123
cfg. header ( "malloc/malloc.h" ) ;
124
+ cfg. header ( "util.h" ) ;
124
125
if target. starts_with ( "x86" ) {
125
126
cfg. header ( "crt_externs.h" ) ;
126
127
}
Original file line number Diff line number Diff line change @@ -927,6 +927,15 @@ extern {
927
927
len : * mut :: off_t ,
928
928
hdtr : * mut :: sf_hdtr ,
929
929
flags : :: c_int ) -> :: c_int ;
930
+ pub fn openpty ( amaster : * mut :: c_int ,
931
+ aslave : * mut :: c_int ,
932
+ name : * mut :: c_char ,
933
+ termp : * mut termios ,
934
+ winp : * mut :: winsize ) -> :: c_int ;
935
+ pub fn forkpty ( amaster : * mut :: c_int ,
936
+ name : * mut :: c_char ,
937
+ termp : * mut termios ,
938
+ winp : * mut :: winsize ) -> :: pid_t ;
930
939
}
931
940
932
941
cfg_if ! {
Original file line number Diff line number Diff line change 99
99
pub events: :: c_short,
100
100
pub revents: :: c_short,
101
101
}
102
+
103
+ pub struct winsize {
104
+ pub ws_row: :: c_ushort,
105
+ pub ws_col: :: c_ushort,
106
+ pub ws_xpixel: :: c_ushort,
107
+ pub ws_ypixel: :: c_ushort,
108
+ }
102
109
}
103
110
104
111
pub const SIG_DFL : sighandler_t = 0 as sighandler_t ;
You can’t perform that action at this time.
0 commit comments