File tree Expand file tree Collapse file tree 5 files changed +9
-5
lines changed Expand file tree Collapse file tree 5 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,6 @@ fn do_ctest() {
124124 }
125125 cfg. header ( "arpa/inet.h" ) ;
126126 cfg. header ( "xlocale.h" ) ;
127- cfg. header ( "utmp.h" ) ;
128127 cfg. header ( "ifaddrs.h" ) ;
129128 if i686 || x86_64 {
130129 cfg. header ( "sys/reg.h" ) ;
@@ -208,6 +207,7 @@ fn do_ctest() {
208207 cfg. header ( "sys/personality.h" ) ;
209208 cfg. header ( "sys/swap.h" ) ;
210209 cfg. header ( "pty.h" ) ;
210+ cfg. header ( "utmp.h" ) ;
211211 if !uclibc {
212212 cfg. header ( "sys/sysinfo.h" ) ;
213213 }
Original file line number Diff line number Diff line change @@ -3168,6 +3168,7 @@ extern {
31683168 name : * mut :: c_char ,
31693169 termp : * mut termios ,
31703170 winp : * mut :: winsize ) -> :: pid_t ;
3171+ pub fn login_tty ( fd : :: c_int ) -> :: c_int ;
31713172 pub fn duplocale ( base : :: locale_t ) -> :: locale_t ;
31723173 pub fn freelocale ( loc : :: locale_t ) -> :: c_int ;
31733174 pub fn localeconv_l ( loc : :: locale_t ) -> * mut lconv ;
Original file line number Diff line number Diff line change @@ -1299,6 +1299,7 @@ extern {
12991299 name : * mut :: c_char ,
13001300 termp : * mut termios ,
13011301 winp : * mut :: winsize ) -> :: pid_t ;
1302+ pub fn login_tty ( fd : :: c_int ) -> :: c_int ;
13021303}
13031304
13041305cfg_if ! {
Original file line number Diff line number Diff line change @@ -643,6 +643,7 @@ extern {
643643 name : * mut :: c_char ,
644644 termp : * mut termios ,
645645 winp : * mut :: winsize ) -> :: pid_t ;
646+ pub fn login_tty ( fd : :: c_int ) -> :: c_int ;
646647 pub fn getpriority ( which : :: c_int , who : :: id_t ) -> :: c_int ;
647648 pub fn setpriority ( which : :: c_int , who : :: id_t , prio : :: c_int ) -> :: c_int ;
648649
Original file line number Diff line number Diff line change @@ -1383,6 +1383,11 @@ 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 ;
1390+ pub fn login_tty ( fd : :: c_int ) -> :: c_int ;
13861391 pub fn execvpe ( file : * const :: c_char , argv : * const * const :: c_char ,
13871392 envp : * const * const :: c_char ) -> :: c_int ;
13881393 pub fn fexecve ( fd : :: c_int , argv : * const * const :: c_char ,
@@ -1422,7 +1427,3 @@ cfg_if! {
14221427 // Unknown target_os
14231428 }
14241429}
1425- // pub fn forkpty(amaster: *mut ::c_int,
1426- // name: *mut ::c_char,
1427- // termp: *const termios,
1428- // winp: *const ::winsize) -> ::pid_t;
You can’t perform that action at this time.
0 commit comments