@@ -724,7 +724,7 @@ fn test_windows(target: &str) {
724
724
// Just pass all these through, no need for a "struct" prefix
725
725
"FILE" | "DIR" | "Dl_info" => ty. to_string ( ) ,
726
726
727
- // FIXME: these don't exist:
727
+ // FIXME(windows) : these don't exist:
728
728
"time64_t" => "__time64_t" . to_string ( ) ,
729
729
"ssize_t" => "SSIZE_T" . to_string ( ) ,
730
730
@@ -756,7 +756,7 @@ fn test_windows(target: &str) {
756
756
cfg. skip_type ( move |name| match name {
757
757
"SSIZE_T" if !gnu => true ,
758
758
"ssize_t" if !gnu => true ,
759
- // FIXME: The size and alignment of this type are incorrect
759
+ // FIXME(windows) : The size and alignment of this type are incorrect
760
760
"time_t" if gnu && i686 => true ,
761
761
_ => false ,
762
762
} ) ;
@@ -766,20 +766,20 @@ fn test_windows(target: &str) {
766
766
return true ;
767
767
}
768
768
match ty {
769
- // FIXME: The size and alignment of this struct are incorrect
769
+ // FIXME(windows) : The size and alignment of this struct are incorrect
770
770
"timespec" if gnu && i686 => true ,
771
771
_ => false ,
772
772
}
773
773
} ) ;
774
774
775
775
cfg. skip_const ( move |name| {
776
776
match name {
777
- // FIXME: API error:
777
+ // FIXME(windows) : API error:
778
778
// SIG_ERR type is "void (*)(int)", not "int"
779
779
"SIG_ERR" |
780
780
// Similar for SIG_DFL/IGN/GET/SGE/ACK
781
781
"SIG_DFL" | "SIG_IGN" | "SIG_GET" | "SIG_SGE" | "SIG_ACK" => true ,
782
- // FIXME: newer windows-gnu environment on CI?
782
+ // FIXME(windows) : newer windows-gnu environment on CI?
783
783
"_O_OBTAIN_DIR" if gnu => true ,
784
784
_ => false ,
785
785
}
@@ -789,7 +789,7 @@ fn test_windows(target: &str) {
789
789
"CONTEXT" if field == "Fp" => true ,
790
790
_ => false ,
791
791
} ) ;
792
- // FIXME: All functions point to the wrong addresses?
792
+ // FIXME(windows) : All functions point to the wrong addresses?
793
793
cfg. skip_fn_ptrcheck ( |_| true ) ;
794
794
795
795
cfg. skip_signededness ( move |c| {
@@ -1093,7 +1093,7 @@ fn test_solarish(target: &str) {
1093
1093
// are still ABI compatible. We can wait for the next major release
1094
1094
// to be compliant with the new API.
1095
1095
//
1096
- // FIXME: unskip these for next major release
1096
+ // FIXME(solarish) : unskip these for next major release
1097
1097
"setpriority" | "personality" => true ,
1098
1098
1099
1099
// signal is defined in terms of sighandler_t, so ignore
@@ -1131,7 +1131,7 @@ fn test_solarish(target: &str) {
1131
1131
// excluded from the tests.
1132
1132
"getifaddrs" if is_illumos => true ,
1133
1133
1134
- // FIXME: Our API is unsound. The Rust API allows aliasing
1134
+ // FIXME(ctest) : Our API is unsound. The Rust API allows aliasing
1135
1135
// pointers, but the C API requires pointers not to alias.
1136
1136
// We should probably be at least using `&`/`&mut` here, see:
1137
1137
// https://github.com/gnzlbg/ctest/issues/68
@@ -1277,7 +1277,7 @@ fn test_netbsd(target: &str) {
1277
1277
return true ;
1278
1278
}
1279
1279
match ty {
1280
- // FIXME: sighandler_t is crazy across platforms
1280
+ // FIXME(netbsd) : sighandler_t is crazy across platforms
1281
1281
"sighandler_t" => true ,
1282
1282
_ => false ,
1283
1283
}
@@ -1321,7 +1321,7 @@ fn test_netbsd(target: &str) {
1321
1321
1322
1322
cfg. skip_fn ( move |name| {
1323
1323
match name {
1324
- // FIXME: https://github.com/rust-lang/libc/issues/1272
1324
+ // FIXME(netbsd) : https://github.com/rust-lang/libc/issues/1272
1325
1325
"execv" | "execve" | "execvp" => true ,
1326
1326
// FIXME: netbsd 10 minimum
1327
1327
"getentropy" | "getrandom" => true ,
@@ -1462,7 +1462,7 @@ fn test_dragonflybsd(target: &str) {
1462
1462
| "Elf64_Shdr" | "Elf32_Sym" | "Elf64_Sym" | "Elf32_Ehdr" | "Elf64_Ehdr"
1463
1463
| "Elf32_Chdr" | "Elf64_Chdr" => ty. to_string ( ) ,
1464
1464
1465
- // FIXME: OSX calls this something else
1465
+ // FIXME(dragonflybsd) : OSX calls this something else
1466
1466
"sighandler_t" => "sig_t" . to_string ( ) ,
1467
1467
1468
1468
t if is_union => format ! ( "union {}" , t) ,
@@ -1507,7 +1507,7 @@ fn test_dragonflybsd(target: &str) {
1507
1507
return true ;
1508
1508
}
1509
1509
match ty {
1510
- // FIXME: These are tested as part of the linux_fcntl tests since
1510
+ // FIXME(dragonflybsd) : These are tested as part of the linux_fcntl tests since
1511
1511
// there are header conflicts when including them with all the other
1512
1512
// structs.
1513
1513
"termios2" => true ,
@@ -1874,7 +1874,7 @@ fn test_android(target: &str) {
1874
1874
// Our stat *_nsec fields normally don't actually exist but are part
1875
1875
// of a timeval struct
1876
1876
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => s. to_string ( ) ,
1877
- // FIXME: appears that `epoll_event.data` is an union
1877
+ // FIXME(union) : appears that `epoll_event.data` is an union
1878
1878
"u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
1879
1879
// The following structs have a field called `type` in C,
1880
1880
// but `type` is a Rust keyword, so these fields are translated
@@ -1893,7 +1893,7 @@ fn test_android(target: &str) {
1893
1893
1894
1894
cfg. skip_type ( move |ty| {
1895
1895
match ty {
1896
- // FIXME: `sighandler_t` type is incorrect, see:
1896
+ // FIXME(android) : `sighandler_t` type is incorrect, see:
1897
1897
// https://github.com/rust-lang/libc/issues/1359
1898
1898
"sighandler_t" => true ,
1899
1899
@@ -1904,7 +1904,7 @@ fn test_android(target: &str) {
1904
1904
"posix_spawn_file_actions_t" => true ,
1905
1905
"posix_spawnattr_t" => true ,
1906
1906
1907
- // FIXME: "'__uint128' undeclared" in C
1907
+ // FIXME(android) : "'__uint128' undeclared" in C
1908
1908
"__uint128" => true ,
1909
1909
1910
1910
_ => false ,
@@ -1927,12 +1927,12 @@ fn test_android(target: &str) {
1927
1927
// These are tested in the `linux_elf.rs` file.
1928
1928
"Elf64_Phdr" | "Elf32_Phdr" => true ,
1929
1929
1930
- // FIXME: The type of `iv` has been changed.
1930
+ // FIXME(android) : The type of `iv` has been changed.
1931
1931
"af_alg_iv" => true ,
1932
1932
1933
- // FIXME: The size of struct has been changed:
1933
+ // FIXME(android) : The size of struct has been changed:
1934
1934
"inotify_event" => true ,
1935
- // FIXME: The field has been changed:
1935
+ // FIXME(android) : The field has been changed:
1936
1936
"sockaddr_vm" => true ,
1937
1937
1938
1938
_ => false ,
@@ -1959,13 +1959,13 @@ fn test_android(target: &str) {
1959
1959
// The `ARPHRD_CAN` is tested in the `linux_if_arp.rs` tests:
1960
1960
"ARPHRD_CAN" => true ,
1961
1961
1962
- // FIXME: deprecated: not available in any header
1962
+ // FIXME(deprecated) : deprecated: not available in any header
1963
1963
// See: https://github.com/rust-lang/libc/issues/1356
1964
1964
"ENOATTR" => true ,
1965
1965
1966
- // FIXME: still necessary?
1966
+ // FIXME(android) : still necessary?
1967
1967
"SIG_DFL" | "SIG_ERR" | "SIG_IGN" => true , // sighandler_t weirdness
1968
- // FIXME: deprecated - removed in glibc 2.26
1968
+ // FIXME(deprecated) : deprecated - removed in glibc 2.26
1969
1969
"SIGUNUSED" => true ,
1970
1970
1971
1971
// Needs a newer Android SDK for the definition
@@ -1974,7 +1974,7 @@ fn test_android(target: &str) {
1974
1974
// Requires Linux kernel 5.6
1975
1975
"VMADDR_CID_LOCAL" => true ,
1976
1976
1977
- // FIXME: conflicts with standard C headers and is tested in
1977
+ // FIXME(android) : conflicts with standard C headers and is tested in
1978
1978
// `linux_termios.rs` below:
1979
1979
"BOTHER" => true ,
1980
1980
"IBSHIFT" => true ,
@@ -2004,7 +2004,7 @@ fn test_android(target: &str) {
2004
2004
// kernel 6.2 minimum
2005
2005
"TUN_F_USO4" | "TUN_F_USO6" | "IFF_NO_CARRIER" => true ,
2006
2006
2007
- // FIXME: NDK r22 minimum required
2007
+ // FIXME(android) : NDK r22 minimum required
2008
2008
| "FDB_NOTIFY_BIT"
2009
2009
| "FDB_NOTIFY_INACTIVE_BIT"
2010
2010
| "IFLA_ALT_IFNAME"
@@ -2017,16 +2017,16 @@ fn test_android(target: &str) {
2017
2017
| "NFEA_DONT_REFRESH"
2018
2018
| "NFEA_UNSPEC" => true ,
2019
2019
2020
- // FIXME: NDK r23 minimum required
2020
+ // FIXME(android) : NDK r23 minimum required
2021
2021
| "IFLA_PARENT_DEV_BUS_NAME"
2022
2022
| "IFLA_PARENT_DEV_NAME" => true ,
2023
2023
2024
- // FIXME: NDK r25 minimum required
2024
+ // FIXME(android) : NDK r25 minimum required
2025
2025
| "IFLA_GRO_MAX_SIZE"
2026
2026
| "NDA_FLAGS_EXT"
2027
2027
| "NTF_EXT_MANAGED" => true ,
2028
2028
2029
- // FIXME: NDK above r25 required
2029
+ // FIXME(android) : NDK above r25 required
2030
2030
| "IFLA_ALLMULTI"
2031
2031
| "IFLA_DEVLINK_PORT"
2032
2032
| "IFLA_GRO_IPV4_MAX_SIZE"
@@ -2040,18 +2040,18 @@ fn test_android(target: &str) {
2040
2040
| "NTF_EXT_LOCKED"
2041
2041
| "ALG_SET_DRBG_ENTROPY" => true ,
2042
2042
2043
- // FIXME: Something has been changed on r26b:
2043
+ // FIXME(android) : Something has been changed on r26b:
2044
2044
| "IPPROTO_MAX"
2045
2045
| "NFNL_SUBSYS_COUNT"
2046
2046
| "NF_NETDEV_NUMHOOKS"
2047
2047
| "NFT_MSG_MAX"
2048
2048
| "SW_MAX"
2049
2049
| "SW_CNT" => true ,
2050
2050
2051
- // FIXME: aarch64 env cannot find it:
2051
+ // FIXME(android) : aarch64 env cannot find it:
2052
2052
| "PTRACE_GETREGS"
2053
2053
| "PTRACE_SETREGS" if aarch64 => true ,
2054
- // FIXME: The value has been changed on r26b:
2054
+ // FIXME(android) : The value has been changed on r26b:
2055
2055
| "SYS_syscalls" if aarch64 => true ,
2056
2056
2057
2057
// From `<include/linux/sched.h>`.
@@ -2093,7 +2093,7 @@ fn test_android(target: &str) {
2093
2093
cfg. skip_fn ( move |name| {
2094
2094
// skip those that are manually verified
2095
2095
match name {
2096
- // FIXME: https://github.com/rust-lang/libc/issues/1272
2096
+ // FIXME(android) : https://github.com/rust-lang/libc/issues/1272
2097
2097
"execv" | "execve" | "execvp" | "execvpe" | "fexecve" => true ,
2098
2098
2099
2099
// There are two versions of the sterror_r function, see
@@ -2147,7 +2147,7 @@ fn test_android(target: &str) {
2147
2147
// Added in API level 26, but some tests use level 24.
2148
2148
"getdomainname" | "setdomainname" => true ,
2149
2149
2150
- // FIXME: bad function pointers:
2150
+ // FIXME(android) : bad function pointers:
2151
2151
"isalnum" | "isalpha" | "iscntrl" | "isdigit" | "isgraph" | "islower" | "isprint"
2152
2152
| "ispunct" | "isspace" | "isupper" | "isxdigit" | "isblank" | "tolower"
2153
2153
| "toupper" => true ,
@@ -2163,12 +2163,12 @@ fn test_android(target: &str) {
2163
2163
( struct_ == "sigevent" && field == "sigev_value" ) ||
2164
2164
// this one is an anonymous union
2165
2165
( struct_ == "ff_effect" && field == "u" ) ||
2166
- // FIXME: `sa_sigaction` has type `sighandler_t` but that type is
2166
+ // FIXME(android) : `sa_sigaction` has type `sighandler_t` but that type is
2167
2167
// incorrect, see: https://github.com/rust-lang/libc/issues/1359
2168
2168
( struct_ == "sigaction" && field == "sa_sigaction" ) ||
2169
2169
// signalfd had SIGSYS fields added in Android 4.19, but CI does not have that version yet.
2170
2170
( struct_ == "signalfd_siginfo" && field == "ssi_call_addr" ) ||
2171
- // FIXME: Seems the type has been changed on NDK r26b
2171
+ // FIXME(android) : Seems the type has been changed on NDK r26b
2172
2172
( struct_ == "flock64" && ( field == "l_start" || field == "l_len" ) )
2173
2173
} ) ;
2174
2174
@@ -2360,7 +2360,7 @@ fn test_freebsd(target: &str) {
2360
2360
| "devstat_match_flags"
2361
2361
| "devstat_priority" => ty. to_string ( ) ,
2362
2362
2363
- // FIXME: https://github.com/rust-lang/libc/issues/1273
2363
+ // FIXME(freebsd) : https://github.com/rust-lang/libc/issues/1273
2364
2364
"sighandler_t" => "sig_t" . to_string ( ) ,
2365
2365
2366
2366
t if is_union => format ! ( "union {}" , t) ,
@@ -2423,12 +2423,12 @@ fn test_freebsd(target: &str) {
2423
2423
true
2424
2424
}
2425
2425
2426
- // FIXME: These are deprecated - remove in a couple of releases.
2426
+ // FIXME(deprecated) : These are deprecated - remove in a couple of releases.
2427
2427
// These constants were removed in FreeBSD 11 (svn r273250) but will
2428
2428
// still be accepted and ignored at runtime.
2429
2429
"MAP_RENAME" | "MAP_NORESERVE" => true ,
2430
2430
2431
- // FIXME: These are deprecated - remove in a couple of releases.
2431
+ // FIXME(deprecated) : These are deprecated - remove in a couple of releases.
2432
2432
// These constants were removed in FreeBSD 11 (svn r262489),
2433
2433
// and they've never had any legitimate use outside of the
2434
2434
// base system anyway.
@@ -2454,7 +2454,7 @@ fn test_freebsd(target: &str) {
2454
2454
// Removed in FreeBSD 14 (git 7ff9ae90f0b)
2455
2455
"IFF_NOGROUP" => true ,
2456
2456
2457
- // FIXME: These are deprecated - remove in a couple of releases.
2457
+ // FIXME(deprecated) : These are deprecated - remove in a couple of releases.
2458
2458
// These symbols are not stable across OS-versions. They were
2459
2459
// changed for FreeBSD 14 in git revisions b62848b0c3f and
2460
2460
// 2cf7870864e.
@@ -2568,7 +2568,7 @@ fn test_freebsd(target: &str) {
2568
2568
}
2569
2569
2570
2570
// Added in FreeBSD 14.
2571
- "F_KINFO" => true , // FIXME: depends how frequent freebsd 14 is updated on CI, this addition went this week only.
2571
+ "F_KINFO" => true , // FIXME(freebsd) : depends how frequent freebsd 14 is updated on CI, this addition went this week only.
2572
2572
"SHM_RENAME_NOREPLACE"
2573
2573
| "SHM_RENAME_EXCHANGE"
2574
2574
| "SHM_LARGEPAGE_ALLOC_DEFAULT"
@@ -2624,11 +2624,11 @@ fn test_freebsd(target: &str) {
2624
2624
// Added in FreeBSD 14
2625
2625
"IFCAP_NV" if Some ( 14 ) > freebsd_ver => true ,
2626
2626
2627
- // FIXME: Removed in https://reviews.freebsd.org/D38574 and https://reviews.freebsd.org/D38822
2627
+ // FIXME(freebsd) : Removed in https://reviews.freebsd.org/D38574 and https://reviews.freebsd.org/D38822
2628
2628
// We maybe should deprecate them once a stable release ships them.
2629
2629
"IP_BINDMULTI" | "IP_RSS_LISTEN_BUCKET" => true ,
2630
2630
2631
- // FIXME: Removed in https://reviews.freebsd.org/D39127.
2631
+ // FIXME(freebsd) : Removed in https://reviews.freebsd.org/D39127.
2632
2632
"KERN_VNODE" => true ,
2633
2633
2634
2634
// Added in FreeBSD 14
@@ -2651,10 +2651,10 @@ fn test_freebsd(target: &str) {
2651
2651
true
2652
2652
}
2653
2653
2654
- // FIXME: Removed in FreeBSD 15:
2654
+ // FIXME(freebsd) : Removed in FreeBSD 15:
2655
2655
"LOCAL_CONNWAIT" if freebsd_ver >= Some ( 15 ) => true ,
2656
2656
2657
- // FIXME: The values has been changed in FreeBSD 15:
2657
+ // FIXME(freebsd) : The values has been changed in FreeBSD 15:
2658
2658
"CLOCK_BOOTTIME" if Some ( 15 ) <= freebsd_ver => true ,
2659
2659
2660
2660
// Added in FreeBSD 14.0
@@ -2713,7 +2713,7 @@ fn test_freebsd(target: &str) {
2713
2713
| "sctp_send_failed_event"
2714
2714
| "sctp_stream_reset_event" => true ,
2715
2715
2716
- // FIXME: Changed in FreeBSD 15
2716
+ // FIXME(freebsd) : Changed in FreeBSD 15
2717
2717
"tcp_info" | "sockstat" if Some ( 15 ) >= freebsd_ver => true ,
2718
2718
2719
2719
_ => false ,
@@ -2732,7 +2732,7 @@ fn test_freebsd(target: &str) {
2732
2732
// Therefore the function pointer comparison does not make sense for it.
2733
2733
"uname" => true ,
2734
2734
2735
- // FIXME: Our API is unsound. The Rust API allows aliasing
2735
+ // FIXME(ctest) : Our API is unsound. The Rust API allows aliasing
2736
2736
// pointers, but the C API requires pointers not to alias.
2737
2737
// We should probably be at least using `&`/`&mut` here, see:
2738
2738
// https://github.com/gnzlbg/ctest/issues/68
@@ -2795,7 +2795,7 @@ fn test_freebsd(target: &str) {
2795
2795
2796
2796
cfg. skip_field ( move |struct_, field| {
2797
2797
match ( struct_, field) {
2798
- // FIXME: `sa_sigaction` has type `sighandler_t` but that type is
2798
+ // FIXME(freebsd) : `sa_sigaction` has type `sighandler_t` but that type is
2799
2799
// incorrect, see: https://github.com/rust-lang/libc/issues/1359
2800
2800
( "sigaction" , "sa_sigaction" ) => true ,
2801
2801
@@ -2826,7 +2826,7 @@ fn test_freebsd(target: &str) {
2826
2826
// anonymous struct
2827
2827
( "devstat" , "dev_links" ) => true ,
2828
2828
2829
- // FIXME: structs too complicated to bind for now...
2829
+ // FIXME(freebsd) : structs too complicated to bind for now...
2830
2830
( "kinfo_proc" , "ki_paddr" ) => true ,
2831
2831
( "kinfo_proc" , "ki_addr" ) => true ,
2832
2832
( "kinfo_proc" , "ki_tracep" ) => true ,
@@ -2874,7 +2874,7 @@ fn test_emscripten(target: &str) {
2874
2874
assert ! ( target. contains( "emscripten" ) ) ;
2875
2875
2876
2876
let mut cfg = ctest_cfg ( ) ;
2877
- cfg. define ( "_GNU_SOURCE" , None ) ; // FIXME: ??
2877
+ cfg. define ( "_GNU_SOURCE" , None ) ; // FIXME(emscripten) : ??
2878
2878
2879
2879
headers ! { cfg:
2880
2880
"ctype.h" ,
@@ -2990,7 +2990,7 @@ fn test_emscripten(target: &str) {
2990
2990
cfg. skip_type ( move |ty| {
2991
2991
match ty {
2992
2992
// sighandler_t is crazy across platforms
2993
- // FIXME: is this necessary?
2993
+ // FIXME(emscripten) : is this necessary?
2994
2994
"sighandler_t" => true ,
2995
2995
2996
2996
// No epoll support
@@ -3008,7 +3008,7 @@ fn test_emscripten(target: &str) {
3008
3008
// This is actually a union, not a struct
3009
3009
"sigval" => true ,
3010
3010
3011
- // FIXME: Investigate why the test fails.
3011
+ // FIXME(emscripten) : Investigate why the test fails.
3012
3012
// Skip for now to unblock CI.
3013
3013
"pthread_condattr_t" => true ,
3014
3014
"pthread_mutexattr_t" => true ,
0 commit comments