@@ -680,7 +680,7 @@ fn test_windows(target: &str) {
680
680
// Just pass all these through, no need for a "struct" prefix
681
681
"FILE" | "DIR" | "Dl_info" => ty. to_string ( ) ,
682
682
683
- // FIXME: these don't exist:
683
+ // FIXME(windows) : these don't exist:
684
684
"time64_t" => "__time64_t" . to_string ( ) ,
685
685
"ssize_t" => "SSIZE_T" . to_string ( ) ,
686
686
@@ -712,7 +712,7 @@ fn test_windows(target: &str) {
712
712
cfg. skip_type ( move |name| match name {
713
713
"SSIZE_T" if !gnu => true ,
714
714
"ssize_t" if !gnu => true ,
715
- // FIXME: The size and alignment of this type are incorrect
715
+ // FIXME(windows) : The size and alignment of this type are incorrect
716
716
"time_t" if gnu && i686 => true ,
717
717
_ => false ,
718
718
} ) ;
@@ -722,20 +722,20 @@ fn test_windows(target: &str) {
722
722
return true ;
723
723
}
724
724
match ty {
725
- // FIXME: The size and alignment of this struct are incorrect
725
+ // FIXME(windows) : The size and alignment of this struct are incorrect
726
726
"timespec" if gnu && i686 => true ,
727
727
_ => false ,
728
728
}
729
729
} ) ;
730
730
731
731
cfg. skip_const ( move |name| {
732
732
match name {
733
- // FIXME: API error:
733
+ // FIXME(windows) : API error:
734
734
// SIG_ERR type is "void (*)(int)", not "int"
735
735
"SIG_ERR" |
736
736
// Similar for SIG_DFL/IGN/GET/SGE/ACK
737
737
"SIG_DFL" | "SIG_IGN" | "SIG_GET" | "SIG_SGE" | "SIG_ACK" => true ,
738
- // FIXME: newer windows-gnu environment on CI?
738
+ // FIXME(windows) : newer windows-gnu environment on CI?
739
739
"_O_OBTAIN_DIR" if gnu => true ,
740
740
_ => false ,
741
741
}
@@ -745,7 +745,7 @@ fn test_windows(target: &str) {
745
745
"CONTEXT" if field == "Fp" => true ,
746
746
_ => false ,
747
747
} ) ;
748
- // FIXME: All functions point to the wrong addresses?
748
+ // FIXME(windows) : All functions point to the wrong addresses?
749
749
cfg. skip_fn_ptrcheck ( |_| true ) ;
750
750
751
751
cfg. skip_signededness ( move |c| {
@@ -1042,7 +1042,7 @@ fn test_solarish(target: &str) {
1042
1042
// are still ABI compatible. We can wait for the next major release
1043
1043
// to be compliant with the new API.
1044
1044
//
1045
- // FIXME: unskip these for next major release
1045
+ // FIXME(solarish) : unskip these for next major release
1046
1046
"setpriority" | "personality" => true ,
1047
1047
1048
1048
// signal is defined in terms of sighandler_t, so ignore
@@ -1077,7 +1077,7 @@ fn test_solarish(target: &str) {
1077
1077
// excluded from the tests.
1078
1078
"getifaddrs" if is_illumos => true ,
1079
1079
1080
- // FIXME: Our API is unsound. The Rust API allows aliasing
1080
+ // FIXME(ctest) : Our API is unsound. The Rust API allows aliasing
1081
1081
// pointers, but the C API requires pointers not to alias.
1082
1082
// We should probably be at least using `&`/`&mut` here, see:
1083
1083
// https://github.com/gnzlbg/ctest/issues/68
@@ -1223,7 +1223,7 @@ fn test_netbsd(target: &str) {
1223
1223
return true ;
1224
1224
}
1225
1225
match ty {
1226
- // FIXME: sighandler_t is crazy across platforms
1226
+ // FIXME(netbsd) : sighandler_t is crazy across platforms
1227
1227
"sighandler_t" => true ,
1228
1228
_ => false ,
1229
1229
}
@@ -1267,7 +1267,7 @@ fn test_netbsd(target: &str) {
1267
1267
1268
1268
cfg. skip_fn ( move |name| {
1269
1269
match name {
1270
- // FIXME: netbsd 10 minimum
1270
+ // FIXME(netbsd) : netbsd 10 minimum
1271
1271
"getentropy" | "getrandom" => true ,
1272
1272
1273
1273
"getrlimit" | "getrlimit64" | // non-int in 1st arg
@@ -1406,7 +1406,7 @@ fn test_dragonflybsd(target: &str) {
1406
1406
| "Elf64_Shdr" | "Elf32_Sym" | "Elf64_Sym" | "Elf32_Ehdr" | "Elf64_Ehdr"
1407
1407
| "Elf32_Chdr" | "Elf64_Chdr" => ty. to_string ( ) ,
1408
1408
1409
- // FIXME: OSX calls this something else
1409
+ // FIXME(dragonflybsd) : OSX calls this something else
1410
1410
"sighandler_t" => "sig_t" . to_string ( ) ,
1411
1411
1412
1412
t if is_union => format ! ( "union {}" , t) ,
@@ -1451,7 +1451,7 @@ fn test_dragonflybsd(target: &str) {
1451
1451
return true ;
1452
1452
}
1453
1453
match ty {
1454
- // FIXME: These are tested as part of the linux_fcntl tests since
1454
+ // FIXME(dragonflybsd) : These are tested as part of the linux_fcntl tests since
1455
1455
// there are header conflicts when including them with all the other
1456
1456
// structs.
1457
1457
"termios2" => true ,
@@ -1815,7 +1815,7 @@ fn test_android(target: &str) {
1815
1815
// Our stat *_nsec fields normally don't actually exist but are part
1816
1816
// of a timeval struct
1817
1817
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => s. to_string ( ) ,
1818
- // FIXME: appears that `epoll_event.data` is an union
1818
+ // FIXME(union) : appears that `epoll_event.data` is an union
1819
1819
"u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
1820
1820
// The following structs have a field called `type` in C,
1821
1821
// but `type` is a Rust keyword, so these fields are translated
@@ -1834,7 +1834,7 @@ fn test_android(target: &str) {
1834
1834
1835
1835
cfg. skip_type ( move |ty| {
1836
1836
match ty {
1837
- // FIXME: `sighandler_t` type is incorrect, see:
1837
+ // FIXME(android) : `sighandler_t` type is incorrect, see:
1838
1838
// https://github.com/rust-lang/libc/issues/1359
1839
1839
"sighandler_t" => true ,
1840
1840
@@ -1845,7 +1845,7 @@ fn test_android(target: &str) {
1845
1845
"posix_spawn_file_actions_t" => true ,
1846
1846
"posix_spawnattr_t" => true ,
1847
1847
1848
- // FIXME: "'__uint128' undeclared" in C
1848
+ // FIXME(android) : "'__uint128' undeclared" in C
1849
1849
"__uint128" => true ,
1850
1850
1851
1851
_ => false ,
@@ -1868,12 +1868,12 @@ fn test_android(target: &str) {
1868
1868
// These are tested in the `linux_elf.rs` file.
1869
1869
"Elf64_Phdr" | "Elf32_Phdr" => true ,
1870
1870
1871
- // FIXME: The type of `iv` has been changed.
1871
+ // FIXME(android) : The type of `iv` has been changed.
1872
1872
"af_alg_iv" => true ,
1873
1873
1874
- // FIXME: The size of struct has been changed:
1874
+ // FIXME(android) : The size of struct has been changed:
1875
1875
"inotify_event" => true ,
1876
- // FIXME: The field has been changed:
1876
+ // FIXME(android) : The field has been changed:
1877
1877
"sockaddr_vm" => true ,
1878
1878
1879
1879
_ => false ,
@@ -1900,13 +1900,13 @@ fn test_android(target: &str) {
1900
1900
// The `ARPHRD_CAN` is tested in the `linux_if_arp.rs` tests:
1901
1901
"ARPHRD_CAN" => true ,
1902
1902
1903
- // FIXME: deprecated: not available in any header
1903
+ // FIXME(deprecated) : deprecated: not available in any header
1904
1904
// See: https://github.com/rust-lang/libc/issues/1356
1905
1905
"ENOATTR" => true ,
1906
1906
1907
- // FIXME: still necessary?
1907
+ // FIXME(android) : still necessary?
1908
1908
"SIG_DFL" | "SIG_ERR" | "SIG_IGN" => true , // sighandler_t weirdness
1909
- // FIXME: deprecated - removed in glibc 2.26
1909
+ // FIXME(deprecated) : deprecated - removed in glibc 2.26
1910
1910
"SIGUNUSED" => true ,
1911
1911
1912
1912
// Needs a newer Android SDK for the definition
@@ -1915,7 +1915,7 @@ fn test_android(target: &str) {
1915
1915
// Requires Linux kernel 5.6
1916
1916
"VMADDR_CID_LOCAL" => true ,
1917
1917
1918
- // FIXME: conflicts with standard C headers and is tested in
1918
+ // FIXME(android) : conflicts with standard C headers and is tested in
1919
1919
// `linux_termios.rs` below:
1920
1920
"BOTHER" => true ,
1921
1921
"IBSHIFT" => true ,
@@ -1945,7 +1945,7 @@ fn test_android(target: &str) {
1945
1945
// kernel 6.2 minimum
1946
1946
"TUN_F_USO4" | "TUN_F_USO6" | "IFF_NO_CARRIER" => true ,
1947
1947
1948
- // FIXME: NDK r22 minimum required
1948
+ // FIXME(android) : NDK r22 minimum required
1949
1949
| "FDB_NOTIFY_BIT"
1950
1950
| "FDB_NOTIFY_INACTIVE_BIT"
1951
1951
| "IFLA_ALT_IFNAME"
@@ -1958,16 +1958,16 @@ fn test_android(target: &str) {
1958
1958
| "NFEA_DONT_REFRESH"
1959
1959
| "NFEA_UNSPEC" => true ,
1960
1960
1961
- // FIXME: NDK r23 minimum required
1961
+ // FIXME(android) : NDK r23 minimum required
1962
1962
| "IFLA_PARENT_DEV_BUS_NAME"
1963
1963
| "IFLA_PARENT_DEV_NAME" => true ,
1964
1964
1965
- // FIXME: NDK r25 minimum required
1965
+ // FIXME(android) : NDK r25 minimum required
1966
1966
| "IFLA_GRO_MAX_SIZE"
1967
1967
| "NDA_FLAGS_EXT"
1968
1968
| "NTF_EXT_MANAGED" => true ,
1969
1969
1970
- // FIXME: NDK above r25 required
1970
+ // FIXME(android) : NDK above r25 required
1971
1971
| "IFLA_ALLMULTI"
1972
1972
| "IFLA_DEVLINK_PORT"
1973
1973
| "IFLA_GRO_IPV4_MAX_SIZE"
@@ -1981,18 +1981,18 @@ fn test_android(target: &str) {
1981
1981
| "NTF_EXT_LOCKED"
1982
1982
| "ALG_SET_DRBG_ENTROPY" => true ,
1983
1983
1984
- // FIXME: Something has been changed on r26b:
1984
+ // FIXME(android) : Something has been changed on r26b:
1985
1985
| "IPPROTO_MAX"
1986
1986
| "NFNL_SUBSYS_COUNT"
1987
1987
| "NF_NETDEV_NUMHOOKS"
1988
1988
| "NFT_MSG_MAX"
1989
1989
| "SW_MAX"
1990
1990
| "SW_CNT" => true ,
1991
1991
1992
- // FIXME: aarch64 env cannot find it:
1992
+ // FIXME(android) : aarch64 env cannot find it:
1993
1993
| "PTRACE_GETREGS"
1994
1994
| "PTRACE_SETREGS" if aarch64 => true ,
1995
- // FIXME: The value has been changed on r26b:
1995
+ // FIXME(android) : The value has been changed on r26b:
1996
1996
| "SYS_syscalls" if aarch64 => true ,
1997
1997
1998
1998
// From `<include/linux/sched.h>`.
@@ -2034,7 +2034,7 @@ fn test_android(target: &str) {
2034
2034
cfg. skip_fn ( move |name| {
2035
2035
// skip those that are manually verified
2036
2036
match name {
2037
- // FIXME: for unknown reasons linker unable to find "fexecve"
2037
+ // FIXME(android) : for unknown reasons linker unable to find "fexecve"
2038
2038
"fexecve" => true ,
2039
2039
2040
2040
// There are two versions of the sterror_r function, see
@@ -2088,7 +2088,7 @@ fn test_android(target: &str) {
2088
2088
// Added in API level 26, but some tests use level 24.
2089
2089
"getdomainname" | "setdomainname" => true ,
2090
2090
2091
- // FIXME: bad function pointers:
2091
+ // FIXME(android) : bad function pointers:
2092
2092
"isalnum" | "isalpha" | "iscntrl" | "isdigit" | "isgraph" | "islower" | "isprint"
2093
2093
| "ispunct" | "isspace" | "isupper" | "isxdigit" | "isblank" | "tolower"
2094
2094
| "toupper" => true ,
@@ -2104,12 +2104,12 @@ fn test_android(target: &str) {
2104
2104
( struct_ == "sigevent" && field == "sigev_value" ) ||
2105
2105
// this one is an anonymous union
2106
2106
( struct_ == "ff_effect" && field == "u" ) ||
2107
- // FIXME: `sa_sigaction` has type `sighandler_t` but that type is
2107
+ // FIXME(android) : `sa_sigaction` has type `sighandler_t` but that type is
2108
2108
// incorrect, see: https://github.com/rust-lang/libc/issues/1359
2109
2109
( struct_ == "sigaction" && field == "sa_sigaction" ) ||
2110
2110
// signalfd had SIGSYS fields added in Android 4.19, but CI does not have that version yet.
2111
2111
( struct_ == "signalfd_siginfo" && field == "ssi_call_addr" ) ||
2112
- // FIXME: Seems the type has been changed on NDK r26b
2112
+ // FIXME(android) : Seems the type has been changed on NDK r26b
2113
2113
( struct_ == "flock64" && ( field == "l_start" || field == "l_len" ) )
2114
2114
} ) ;
2115
2115
@@ -2304,7 +2304,7 @@ fn test_freebsd(target: &str) {
2304
2304
| "devstat_match_flags"
2305
2305
| "devstat_priority" => ty. to_string ( ) ,
2306
2306
2307
- // FIXME: https://github.com/rust-lang/libc/issues/1273
2307
+ // FIXME(freebsd) : https://github.com/rust-lang/libc/issues/1273
2308
2308
"sighandler_t" => "sig_t" . to_string ( ) ,
2309
2309
2310
2310
t if is_union => format ! ( "union {}" , t) ,
@@ -2367,12 +2367,12 @@ fn test_freebsd(target: &str) {
2367
2367
true
2368
2368
}
2369
2369
2370
- // FIXME: These are deprecated - remove in a couple of releases.
2370
+ // FIXME(deprecated) : These are deprecated - remove in a couple of releases.
2371
2371
// These constants were removed in FreeBSD 11 (svn r273250) but will
2372
2372
// still be accepted and ignored at runtime.
2373
2373
"MAP_RENAME" | "MAP_NORESERVE" => true ,
2374
2374
2375
- // FIXME: This is deprecated - remove in a couple of releases.
2375
+ // FIXME(deprecated) : This is deprecated - remove in a couple of releases.
2376
2376
// This was removed in FreeBSD 14 (git 1b4701fe1e8) and never
2377
2377
// should've been used anywhere anyway.
2378
2378
"TDF_UNUSED23" => true ,
@@ -2389,7 +2389,7 @@ fn test_freebsd(target: &str) {
2389
2389
// Removed in FreeBSD 14 (git 7ff9ae90f0b)
2390
2390
"IFF_NOGROUP" => true ,
2391
2391
2392
- // FIXME: These are deprecated - remove in a couple of releases.
2392
+ // FIXME(deprecated) : These are deprecated - remove in a couple of releases.
2393
2393
// These symbols are not stable across OS-versions. They were
2394
2394
// changed for FreeBSD 14 in git revisions b62848b0c3f and
2395
2395
// 2cf7870864e.
@@ -2503,7 +2503,7 @@ fn test_freebsd(target: &str) {
2503
2503
}
2504
2504
2505
2505
// Added in FreeBSD 14.
2506
- "F_KINFO" => true , // FIXME: depends how frequent freebsd 14 is updated on CI, this addition went this week only.
2506
+ "F_KINFO" => true , // FIXME(freebsd) : depends how frequent freebsd 14 is updated on CI, this addition went this week only.
2507
2507
"SHM_RENAME_NOREPLACE"
2508
2508
| "SHM_RENAME_EXCHANGE"
2509
2509
| "SHM_LARGEPAGE_ALLOC_DEFAULT"
@@ -2559,11 +2559,11 @@ fn test_freebsd(target: &str) {
2559
2559
// Added in FreeBSD 14
2560
2560
"IFCAP_NV" if Some ( 14 ) > freebsd_ver => true ,
2561
2561
2562
- // FIXME: Removed in https://reviews.freebsd.org/D38574 and https://reviews.freebsd.org/D38822
2562
+ // FIXME(freebsd) : Removed in https://reviews.freebsd.org/D38574 and https://reviews.freebsd.org/D38822
2563
2563
// We maybe should deprecate them once a stable release ships them.
2564
2564
"IP_BINDMULTI" | "IP_RSS_LISTEN_BUCKET" => true ,
2565
2565
2566
- // FIXME: Removed in https://reviews.freebsd.org/D39127.
2566
+ // FIXME(freebsd) : Removed in https://reviews.freebsd.org/D39127.
2567
2567
"KERN_VNODE" => true ,
2568
2568
2569
2569
// Added in FreeBSD 14
@@ -2586,10 +2586,10 @@ fn test_freebsd(target: &str) {
2586
2586
true
2587
2587
}
2588
2588
2589
- // FIXME: Removed in FreeBSD 15:
2589
+ // FIXME(freebsd) : Removed in FreeBSD 15:
2590
2590
"LOCAL_CONNWAIT" => true ,
2591
2591
2592
- // FIXME: The values has been changed in FreeBSD 15:
2592
+ // FIXME(freebsd) : The values has been changed in FreeBSD 15:
2593
2593
"CLOCK_BOOTTIME" if Some ( 15 ) <= freebsd_ver => true ,
2594
2594
2595
2595
// Added in FreeBSD 14.0
@@ -2643,7 +2643,7 @@ fn test_freebsd(target: &str) {
2643
2643
| "sctp_send_failed_event"
2644
2644
| "sctp_stream_reset_event" => true ,
2645
2645
2646
- // FIXME: Changed in FreeBSD 15
2646
+ // FIXME(freebsd) : Changed in FreeBSD 15
2647
2647
"tcp_info" | "sockstat" if Some ( 15 ) >= freebsd_ver => true ,
2648
2648
2649
2649
_ => false ,
@@ -2661,7 +2661,7 @@ fn test_freebsd(target: &str) {
2661
2661
// Therefore the function pointer comparison does not make sense for it.
2662
2662
"uname" => true ,
2663
2663
2664
- // FIXME: Our API is unsound. The Rust API allows aliasing
2664
+ // FIXME(ctest) : Our API is unsound. The Rust API allows aliasing
2665
2665
// pointers, but the C API requires pointers not to alias.
2666
2666
// We should probably be at least using `&`/`&mut` here, see:
2667
2667
// https://github.com/gnzlbg/ctest/issues/68
@@ -2724,7 +2724,7 @@ fn test_freebsd(target: &str) {
2724
2724
2725
2725
cfg. skip_field ( move |struct_, field| {
2726
2726
match ( struct_, field) {
2727
- // FIXME: `sa_sigaction` has type `sighandler_t` but that type is
2727
+ // FIXME(freebsd) : `sa_sigaction` has type `sighandler_t` but that type is
2728
2728
// incorrect, see: https://github.com/rust-lang/libc/issues/1359
2729
2729
( "sigaction" , "sa_sigaction" ) => true ,
2730
2730
@@ -2756,7 +2756,7 @@ fn test_freebsd(target: &str) {
2756
2756
// anonymous struct
2757
2757
( "devstat" , "dev_links" ) => true ,
2758
2758
2759
- // FIXME: structs too complicated to bind for now...
2759
+ // FIXME(freebsd) : structs too complicated to bind for now...
2760
2760
( "kinfo_proc" , "ki_paddr" ) => true ,
2761
2761
( "kinfo_proc" , "ki_addr" ) => true ,
2762
2762
( "kinfo_proc" , "ki_tracep" ) => true ,
@@ -2800,7 +2800,7 @@ fn test_emscripten(target: &str) {
2800
2800
assert ! ( target. contains( "emscripten" ) ) ;
2801
2801
2802
2802
let mut cfg = ctest_cfg ( ) ;
2803
- cfg. define ( "_GNU_SOURCE" , None ) ; // FIXME: ??
2803
+ cfg. define ( "_GNU_SOURCE" , None ) ; // FIXME(emscripten) : ??
2804
2804
2805
2805
headers ! { cfg:
2806
2806
"ctype.h" ,
@@ -2916,7 +2916,7 @@ fn test_emscripten(target: &str) {
2916
2916
cfg. skip_type ( move |ty| {
2917
2917
match ty {
2918
2918
// sighandler_t is crazy across platforms
2919
- // FIXME: is this necessary?
2919
+ // FIXME(emscripten) : is this necessary?
2920
2920
"sighandler_t" => true ,
2921
2921
2922
2922
// No epoll support
@@ -2937,7 +2937,7 @@ fn test_emscripten(target: &str) {
2937
2937
// This is actually a union, not a struct
2938
2938
"sigval" => true ,
2939
2939
2940
- // FIXME: Investigate why the test fails.
2940
+ // FIXME(emscripten) : Investigate why the test fails.
2941
2941
// Skip for now to unblock CI.
2942
2942
"pthread_condattr_t" => true ,
2943
2943
"pthread_mutexattr_t" => true ,
0 commit comments