@@ -198,12 +198,14 @@ pub mod types {
198
198
// Standard types that are scalar but vary by OS and arch.
199
199
200
200
#[ cfg( target_os = "linux" ) ]
201
+ #[ cfg( target_os = "android" ) ]
201
202
pub mod os {
202
203
pub mod common {
203
204
pub mod posix01 { }
204
205
}
205
206
206
207
#[ cfg( target_arch = "x86" ) ]
208
+ #[ cfg( target_arch = "arm" ) ]
207
209
pub mod arch {
208
210
pub mod c95 {
209
211
pub type c_char = i8 ;
@@ -797,6 +799,7 @@ pub mod consts {
797
799
798
800
799
801
#[ cfg( target_os = "linux" ) ]
802
+ #[ cfg( target_os = "android" ) ]
800
803
pub mod os {
801
804
pub mod c95 {
802
805
pub const EXIT_FAILURE : int = 1 ;
@@ -1264,6 +1267,7 @@ pub mod funcs {
1264
1267
1265
1268
1266
1269
#[ cfg( target_os = "linux" ) ]
1270
+ #[ cfg( target_os = "android" ) ]
1267
1271
#[ cfg( target_os = "macos" ) ]
1268
1272
#[ cfg( target_os = "freebsd" ) ]
1269
1273
pub mod posix88 {
@@ -1283,7 +1287,8 @@ pub mod funcs {
1283
1287
1284
1288
#[ cfg( target_os = "linux" ) ]
1285
1289
#[ cfg( target_os = "freebsd" ) ]
1286
- unsafe fn fstat ( fildes : c_int , buf : * mut stat ) -> c_int ;
1290
+ #[ cfg( target_os = "android" ) ]
1291
+ unsafe fn fstat ( fildes : c_int , buf : * mut stat ) -> c_int ;
1287
1292
1288
1293
#[ cfg( target_os = "macos" ) ]
1289
1294
#[ link_name = "fstat64" ]
@@ -1294,6 +1299,7 @@ pub mod funcs {
1294
1299
1295
1300
#[ cfg( target_os = "linux" ) ]
1296
1301
#[ cfg( target_os = "freebsd" ) ]
1302
+ #[ cfg( target_os = "android" ) ]
1297
1303
unsafe fn stat ( path : * c_char , buf : * mut stat ) -> c_int ;
1298
1304
1299
1305
#[ cfg( target_os = "macos" ) ]
@@ -1382,6 +1388,7 @@ pub mod funcs {
1382
1388
}
1383
1389
1384
1390
#[ cfg( target_os = "linux" ) ]
1391
+ #[ cfg( target_os = "android" ) ]
1385
1392
#[ cfg( target_os = "macos" ) ]
1386
1393
#[ cfg( target_os = "freebsd" ) ]
1387
1394
pub mod posix01 {
@@ -1394,6 +1401,7 @@ pub mod funcs {
1394
1401
pub extern mod stat_ {
1395
1402
#[ cfg( target_os = "linux" ) ]
1396
1403
#[ cfg( target_os = "freebsd" ) ]
1404
+ #[ cfg( target_os = "android" ) ]
1397
1405
unsafe fn lstat ( path : * c_char , buf : * mut stat ) -> c_int ;
1398
1406
1399
1407
#[ cfg( target_os = "macos" ) ]
@@ -1410,6 +1418,7 @@ pub mod funcs {
1410
1418
unsafe fn fsync ( fd : c_int ) -> c_int ;
1411
1419
1412
1420
#[ cfg( target_os = "linux" ) ]
1421
+ #[ cfg( target_os = "android" ) ]
1413
1422
unsafe fn fdatasync ( fd : c_int ) -> c_int ;
1414
1423
1415
1424
unsafe fn setenv ( name : * c_char , val : * c_char ,
@@ -1442,6 +1451,7 @@ pub mod funcs {
1442
1451
1443
1452
#[ cfg( target_os = "win32" ) ]
1444
1453
#[ cfg( target_os = "linux" ) ]
1454
+ #[ cfg( target_os = "android" ) ]
1445
1455
#[ cfg( target_os = "macos" ) ]
1446
1456
#[ cfg( target_os = "freebsd" ) ]
1447
1457
pub mod posix08 {
@@ -1473,6 +1483,7 @@ pub mod funcs {
1473
1483
1474
1484
1475
1485
#[ cfg( target_os = "linux" ) ]
1486
+ #[ cfg( target_os = "android" ) ]
1476
1487
#[ cfg( target_os = "win32" ) ]
1477
1488
pub mod bsd44 {
1478
1489
}
@@ -1492,6 +1503,7 @@ pub mod funcs {
1492
1503
}
1493
1504
1494
1505
#[ cfg( target_os = "linux" ) ]
1506
+ #[ cfg( target_os = "android" ) ]
1495
1507
pub mod extra {
1496
1508
}
1497
1509
0 commit comments