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) {
16271627 "linux/seccomp.h" ,
16281628 "linux/sched.h" ,
16291629 "linux/sockios.h" ,
1630+ "linux/uinput.h" ,
16301631 "linux/vm_sockets.h" ,
16311632 "linux/wait.h" ,
16321633
@@ -1663,6 +1664,17 @@ fn test_android(target: &str) {
16631664 s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => s. to_string ( ) ,
16641665 // FIXME: appears that `epoll_event.data` is an union
16651666 "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+
16661678 s => s. to_string ( ) ,
16671679 }
16681680 } ) ;
@@ -1792,6 +1804,8 @@ fn test_android(target: &str) {
17921804 ( struct_ == "ifaddrs" && field == "ifa_ifu" ) ||
17931805 // sigval is actually a union, but we pretend it's a struct
17941806 ( struct_ == "sigevent" && field == "sigev_value" ) ||
1807+ // this one is an anonymous union
1808+ ( struct_ == "ff_effect" && field == "u" ) ||
17951809 // FIXME: `sa_sigaction` has type `sighandler_t` but that type is
17961810 // incorrect, see: https://github.com/rust-lang/libc/issues/1359
17971811 ( struct_ == "sigaction" && field == "sa_sigaction" ) ||
Original file line number Diff line number Diff line change 1+ ABS_CNT
2+ ABS_MAX
13ADDR_COMPAT_LAYOUT
24ADDR_LIMIT_32BIT
35ADDR_LIMIT_3GB
@@ -568,6 +570,8 @@ ETXTBSY
568570EUCLEAN
569571EUNATCH
570572EUSERS
573+ EV_CNT
574+ EV_MAX
571575EWOULDBLOCK
572576EXDEV
573577EXFULL
@@ -595,6 +599,8 @@ FD_ZERO
595599FF0
596600FF1
597601FFDLY
602+ FF_CNT
603+ FF_MAX
598604FILE
599605FILENAME_MAX
600606FIOCLEX
@@ -786,6 +792,8 @@ INADDR_LOOPBACK
786792INADDR_NONE
787793INLCR
788794INPCK
795+ INPUT_PROP_CNT
796+ INPUT_PROP_MAX
789797INT_MAX
790798INT_MIN
791799IN_ACCESS
@@ -1020,6 +1028,8 @@ IXANY
10201028IXOFF
10211029IXON
10221030JFFS2_SUPER_MAGIC
1031+ KEY_CNT
1032+ KEY_MAX
10231033LC_ADDRESS
10241034LC_ADDRESS_MASK
10251035LC_ALL
@@ -1046,6 +1056,8 @@ LC_TELEPHONE
10461056LC_TELEPHONE_MASK
10471057LC_TIME
10481058LC_TIME_MASK
1059+ LED_CNT
1060+ LED_MAX
10491061LINUX_REBOOT_CMD_CAD_OFF
10501062LINUX_REBOOT_CMD_CAD_ON
10511063LINUX_REBOOT_CMD_HALT
@@ -1170,6 +1182,8 @@ MPOL_F_STATIC_NODES
11701182MPOL_INTERLEAVE
11711183MPOL_LOCAL
11721184MPOL_PREFERRED
1185+ MSC_CNT
1186+ MSC_MAX
11731187MSDOS_SUPER_MAGIC
11741188MSG_CMSG_CLOEXEC
11751189MSG_CONFIRM
@@ -1860,9 +1874,13 @@ REG_PEND
18601874REG_STARTEND
18611875REG_TRACE
18621876REISERFS_SUPER_MAGIC
1877+ REL_CNT
1878+ REL_MAX
18631879RENAME_EXCHANGE
18641880RENAME_NOREPLACE
18651881RENAME_WHITEOUT
1882+ REP_CNT
1883+ REP_MAX
18661884RLIMIT_AS
18671885RLIMIT_CORE
18681886RLIMIT_CPU
@@ -2131,6 +2149,8 @@ SIOCSIFSLAVE
21312149SIOCSRARP
21322150SI_LOAD_SHIFT
21332151SMB_SUPER_MAGIC
2152+ SND_CNT
2153+ SND_MAX
21342154SOCK_CLOEXEC
21352155SOCK_DCCP
21362156SOCK_DGRAM
@@ -2227,6 +2247,10 @@ ST_NOSUID
22272247ST_RDONLY
22282248ST_RELATIME
22292249ST_SYNCHRONOUS
2250+ SW_CNT
2251+ SW_MAX
2252+ SYN_CNT
2253+ SYN_MAX
22302254SYS_accept4
22312255SYS_acct
22322256SYS_add_key
@@ -2579,6 +2603,8 @@ TIOCSWINSZ
25792603TMPFS_MAGIC
25802604TMP_MAX
25812605TOSTOP
2606+ UINPUT_MAX_NAME_SIZE
2607+ UINPUT_VERSION
25822608UIO_MAXIOV
25832609USBDEVICE_SUPER_MAGIC
25842610USER_PROCESS
@@ -2923,6 +2949,15 @@ feof
29232949ferror
29242950fexecve
29252951fflush
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
29262961fgetc
29272962fgetpos
29282963fgets
@@ -3045,6 +3080,11 @@ inotify_event
30453080inotify_init
30463081inotify_init1
30473082inotify_rm_watch
3083+ input_absinfo
3084+ input_event
3085+ input_id
3086+ input_keymap_entry
3087+ input_mask
30483088int16_t
30493089int32_t
30503090int64_t
@@ -3509,6 +3549,11 @@ ttyname_r
35093549ucontext_t
35103550ucred
35113551uid_t
3552+ uinput_abs_setup
3553+ uinput_ff_erase
3554+ uinput_ff_upload
3555+ uinput_setup
3556+ uinput_user_dev
35123557uint16_t
35133558uint32_t
35143559uint64_t
You can’t perform that action at this time.
0 commit comments