@@ -729,6 +729,7 @@ pub const FIOCLEX: ::c_ulong = 0x5451;
729729pub const TCGETS : :: c_ulong = 0x5401 ;
730730pub const TCSETS : :: c_ulong = 0x5402 ;
731731pub const TCFLSH : :: c_ulong = 0x540B ;
732+ pub const TIOCSCTTY : :: c_ulong = 0x540E ;
732733pub const TIOCGPGRP : :: c_ulong = 0x540F ;
733734pub const TIOCSPGRP : :: c_ulong = 0x5410 ;
734735pub const TIOCGWINSZ : :: c_ulong = 0x5413 ;
@@ -1138,6 +1139,15 @@ extern "C" {
11381139 clock_id : :: clockid_t ,
11391140 ) -> :: c_int ;
11401141
1142+ //pty.h
1143+ pub fn openpty (
1144+ amaster : * mut :: c_int ,
1145+ aslave : * mut :: c_int ,
1146+ name : * mut :: c_char ,
1147+ termp : * const termios ,
1148+ winp : * const :: winsize ,
1149+ ) -> :: c_int ;
1150+
11411151 // pwd.h
11421152 pub fn getpwent ( ) -> * mut passwd ;
11431153 pub fn setpwent ( ) ;
@@ -1173,9 +1183,15 @@ extern "C" {
11731183 pub fn sigwait ( set : * const sigset_t , sig : * mut :: c_int ) -> :: c_int ;
11741184
11751185 // stdlib.h
1186+ pub fn getsubopt (
1187+ optionp : * mut * mut c_char ,
1188+ tokens : * const * mut c_char ,
1189+ valuep : * mut * mut c_char ,
1190+ ) -> :: c_int ;
11761191 pub fn reallocarray ( ptr : * mut :: c_void , nmemb : :: size_t , size : :: size_t ) -> * mut :: c_void ;
11771192
11781193 // string.h
1194+ pub fn explicit_bzero ( p : * mut :: c_void , len : :: size_t ) ;
11791195 pub fn strlcat ( dst : * mut :: c_char , src : * const :: c_char , siz : :: size_t ) -> :: size_t ;
11801196 pub fn strlcpy ( dst : * mut :: c_char , src : * const :: c_char , siz : :: size_t ) -> :: size_t ;
11811197
@@ -1202,6 +1218,8 @@ extern "C" {
12021218 pub fn shm_unlink ( name : * const :: c_char ) -> :: c_int ;
12031219
12041220 // sys/resource.h
1221+ pub fn getpriority ( which : :: c_int , who : :: id_t ) -> :: c_int ;
1222+ pub fn setpriority ( which : :: c_int , who : :: id_t , prio : :: c_int ) -> :: c_int ;
12051223 pub fn getrlimit ( resource : :: c_int , rlim : * mut :: rlimit ) -> :: c_int ;
12061224 pub fn setrlimit ( resource : :: c_int , rlim : * const :: rlimit ) -> :: c_int ;
12071225
@@ -1230,17 +1248,8 @@ extern "C" {
12301248 pub fn gettimeofday ( tp : * mut :: timeval , tz : * mut :: timezone ) -> :: c_int ;
12311249 pub fn clock_gettime ( clk_id : :: clockid_t , tp : * mut :: timespec ) -> :: c_int ;
12321250
1233- // strings.h
1234- pub fn explicit_bzero ( p : * mut :: c_void , len : :: size_t ) ;
1235-
1236- pub fn getpriority ( which : :: c_int , who : :: id_t ) -> :: c_int ;
1237- pub fn setpriority ( which : :: c_int , who : :: id_t , prio : :: c_int ) -> :: c_int ;
1238-
1239- pub fn getsubopt (
1240- optionp : * mut * mut c_char ,
1241- tokens : * const * mut c_char ,
1242- valuep : * mut * mut c_char ,
1243- ) -> :: c_int ;
1251+ // utmp.h
1252+ pub fn login_tty ( fd : :: c_int ) -> :: c_int ;
12441253}
12451254
12461255cfg_if ! {
0 commit comments