File tree Expand file tree Collapse file tree 3 files changed +300
-0
lines changed
src/unix/linux_like/android Expand file tree Collapse file tree 3 files changed +300
-0
lines changed Original file line number Diff line number Diff line change @@ -1627,6 +1627,7 @@ fn test_android(target: &str) {
1627
1627
"linux/seccomp.h" ,
1628
1628
"linux/sched.h" ,
1629
1629
"linux/sockios.h" ,
1630
+ "linux/uinput.h" ,
1630
1631
"linux/vm_sockets.h" ,
1631
1632
"linux/wait.h" ,
1632
1633
@@ -1663,6 +1664,17 @@ fn test_android(target: &str) {
1663
1664
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => s. to_string ( ) ,
1664
1665
// FIXME: appears that `epoll_event.data` is an union
1665
1666
"u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
1667
+ // The following structs have a field called `type` in C,
1668
+ // but `type` is a Rust keyword, so these fields are translated
1669
+ // to `type_` in Rust.
1670
+ "type_"
1671
+ if struct_ == "input_event"
1672
+ || struct_ == "input_mask"
1673
+ || struct_ == "ff_effect" =>
1674
+ {
1675
+ "type" . to_string ( )
1676
+ }
1677
+
1666
1678
s => s. to_string ( ) ,
1667
1679
}
1668
1680
} ) ;
@@ -1792,6 +1804,8 @@ fn test_android(target: &str) {
1792
1804
( struct_ == "ifaddrs" && field == "ifa_ifu" ) ||
1793
1805
// sigval is actually a union, but we pretend it's a struct
1794
1806
( struct_ == "sigevent" && field == "sigev_value" ) ||
1807
+ // this one is an anonymous union
1808
+ ( struct_ == "ff_effect" && field == "u" ) ||
1795
1809
// FIXME: `sa_sigaction` has type `sighandler_t` but that type is
1796
1810
// incorrect, see: https://github.com/rust-lang/libc/issues/1359
1797
1811
( struct_ == "sigaction" && field == "sa_sigaction" ) ||
Original file line number Diff line number Diff line change
1
+ ABS_CNT
2
+ ABS_MAX
1
3
ADDR_COMPAT_LAYOUT
2
4
ADDR_LIMIT_32BIT
3
5
ADDR_LIMIT_3GB
@@ -568,6 +570,8 @@ ETXTBSY
568
570
EUCLEAN
569
571
EUNATCH
570
572
EUSERS
573
+ EV_CNT
574
+ EV_MAX
571
575
EWOULDBLOCK
572
576
EXDEV
573
577
EXFULL
@@ -595,6 +599,8 @@ FD_ZERO
595
599
FF0
596
600
FF1
597
601
FFDLY
602
+ FF_CNT
603
+ FF_MAX
598
604
FILE
599
605
FILENAME_MAX
600
606
FIOCLEX
@@ -786,6 +792,8 @@ INADDR_LOOPBACK
786
792
INADDR_NONE
787
793
INLCR
788
794
INPCK
795
+ INPUT_PROP_CNT
796
+ INPUT_PROP_MAX
789
797
INT_MAX
790
798
INT_MIN
791
799
IN_ACCESS
@@ -1020,6 +1028,8 @@ IXANY
1020
1028
IXOFF
1021
1029
IXON
1022
1030
JFFS2_SUPER_MAGIC
1031
+ KEY_CNT
1032
+ KEY_MAX
1023
1033
LC_ADDRESS
1024
1034
LC_ADDRESS_MASK
1025
1035
LC_ALL
@@ -1046,6 +1056,8 @@ LC_TELEPHONE
1046
1056
LC_TELEPHONE_MASK
1047
1057
LC_TIME
1048
1058
LC_TIME_MASK
1059
+ LED_CNT
1060
+ LED_MAX
1049
1061
LINUX_REBOOT_CMD_CAD_OFF
1050
1062
LINUX_REBOOT_CMD_CAD_ON
1051
1063
LINUX_REBOOT_CMD_HALT
@@ -1170,6 +1182,8 @@ MPOL_F_STATIC_NODES
1170
1182
MPOL_INTERLEAVE
1171
1183
MPOL_LOCAL
1172
1184
MPOL_PREFERRED
1185
+ MSC_CNT
1186
+ MSC_MAX
1173
1187
MSDOS_SUPER_MAGIC
1174
1188
MSG_CMSG_CLOEXEC
1175
1189
MSG_CONFIRM
@@ -1860,9 +1874,13 @@ REG_PEND
1860
1874
REG_STARTEND
1861
1875
REG_TRACE
1862
1876
REISERFS_SUPER_MAGIC
1877
+ REL_CNT
1878
+ REL_MAX
1863
1879
RENAME_EXCHANGE
1864
1880
RENAME_NOREPLACE
1865
1881
RENAME_WHITEOUT
1882
+ REP_CNT
1883
+ REP_MAX
1866
1884
RLIMIT_AS
1867
1885
RLIMIT_CORE
1868
1886
RLIMIT_CPU
@@ -2131,6 +2149,8 @@ SIOCSIFSLAVE
2131
2149
SIOCSRARP
2132
2150
SI_LOAD_SHIFT
2133
2151
SMB_SUPER_MAGIC
2152
+ SND_CNT
2153
+ SND_MAX
2134
2154
SOCK_CLOEXEC
2135
2155
SOCK_DCCP
2136
2156
SOCK_DGRAM
@@ -2227,6 +2247,10 @@ ST_NOSUID
2227
2247
ST_RDONLY
2228
2248
ST_RELATIME
2229
2249
ST_SYNCHRONOUS
2250
+ SW_CNT
2251
+ SW_MAX
2252
+ SYN_CNT
2253
+ SYN_MAX
2230
2254
SYS_accept4
2231
2255
SYS_acct
2232
2256
SYS_add_key
@@ -2579,6 +2603,8 @@ TIOCSWINSZ
2579
2603
TMPFS_MAGIC
2580
2604
TMP_MAX
2581
2605
TOSTOP
2606
+ UINPUT_MAX_NAME_SIZE
2607
+ UINPUT_VERSION
2582
2608
UIO_MAXIOV
2583
2609
USBDEVICE_SUPER_MAGIC
2584
2610
USER_PROCESS
@@ -2923,6 +2949,15 @@ feof
2923
2949
ferror
2924
2950
fexecve
2925
2951
fflush
2952
+ ff_condition_effect
2953
+ ff_constant_effect
2954
+ ff_effect
2955
+ ff_envelope
2956
+ ff_periodic_effect
2957
+ ff_ramp_effect
2958
+ ff_replay
2959
+ ff_rumble_effect
2960
+ ff_trigger
2926
2961
fgetc
2927
2962
fgetpos
2928
2963
fgets
@@ -3045,6 +3080,11 @@ inotify_event
3045
3080
inotify_init
3046
3081
inotify_init1
3047
3082
inotify_rm_watch
3083
+ input_absinfo
3084
+ input_event
3085
+ input_id
3086
+ input_keymap_entry
3087
+ input_mask
3048
3088
int16_t
3049
3089
int32_t
3050
3090
int64_t
@@ -3509,6 +3549,11 @@ ttyname_r
3509
3549
ucontext_t
3510
3550
ucred
3511
3551
uid_t
3552
+ uinput_abs_setup
3553
+ uinput_ff_erase
3554
+ uinput_ff_upload
3555
+ uinput_setup
3556
+ uinput_user_dev
3512
3557
uint16_t
3513
3558
uint32_t
3514
3559
uint64_t
You can’t perform that action at this time.
0 commit comments