@@ -729,6 +729,7 @@ pub const FIOCLEX: ::c_ulong = 0x5451;
729
729
pub const TCGETS : :: c_ulong = 0x5401 ;
730
730
pub const TCSETS : :: c_ulong = 0x5402 ;
731
731
pub const TCFLSH : :: c_ulong = 0x540B ;
732
+ pub const TIOCSCTTY : :: c_ulong = 0x540E ;
732
733
pub const TIOCGPGRP : :: c_ulong = 0x540F ;
733
734
pub const TIOCSPGRP : :: c_ulong = 0x5410 ;
734
735
pub const TIOCGWINSZ : :: c_ulong = 0x5413 ;
@@ -1138,6 +1139,15 @@ extern "C" {
1138
1139
clock_id : :: clockid_t ,
1139
1140
) -> :: c_int ;
1140
1141
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
+
1141
1151
// pwd.h
1142
1152
pub fn getpwent ( ) -> * mut passwd ;
1143
1153
pub fn setpwent ( ) ;
@@ -1173,9 +1183,15 @@ extern "C" {
1173
1183
pub fn sigwait ( set : * const sigset_t , sig : * mut :: c_int ) -> :: c_int ;
1174
1184
1175
1185
// 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 ;
1176
1191
pub fn reallocarray ( ptr : * mut :: c_void , nmemb : :: size_t , size : :: size_t ) -> * mut :: c_void ;
1177
1192
1178
1193
// string.h
1194
+ pub fn explicit_bzero ( p : * mut :: c_void , len : :: size_t ) ;
1179
1195
pub fn strlcat ( dst : * mut :: c_char , src : * const :: c_char , siz : :: size_t ) -> :: size_t ;
1180
1196
pub fn strlcpy ( dst : * mut :: c_char , src : * const :: c_char , siz : :: size_t ) -> :: size_t ;
1181
1197
@@ -1202,6 +1218,8 @@ extern "C" {
1202
1218
pub fn shm_unlink ( name : * const :: c_char ) -> :: c_int ;
1203
1219
1204
1220
// 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 ;
1205
1223
pub fn getrlimit ( resource : :: c_int , rlim : * mut :: rlimit ) -> :: c_int ;
1206
1224
pub fn setrlimit ( resource : :: c_int , rlim : * const :: rlimit ) -> :: c_int ;
1207
1225
@@ -1230,17 +1248,8 @@ extern "C" {
1230
1248
pub fn gettimeofday ( tp : * mut :: timeval , tz : * mut :: timezone ) -> :: c_int ;
1231
1249
pub fn clock_gettime ( clk_id : :: clockid_t , tp : * mut :: timespec ) -> :: c_int ;
1232
1250
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 ;
1244
1253
}
1245
1254
1246
1255
cfg_if ! {
0 commit comments