@@ -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(ctest) : 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| {
@@ -1041,7 +1041,7 @@ fn test_solarish(target: &str) {
1041
1041
// are still ABI compatible. We can wait for the next major release
1042
1042
// to be compliant with the new API.
1043
1043
//
1044
- // FIXME: unskip these for next major release
1044
+ // FIXME(solarish) : unskip these for next major release
1045
1045
"setpriority" | "personality" => true ,
1046
1046
1047
1047
// signal is defined in terms of sighandler_t, so ignore
@@ -1076,7 +1076,7 @@ fn test_solarish(target: &str) {
1076
1076
// excluded from the tests.
1077
1077
"getifaddrs" if is_illumos => true ,
1078
1078
1079
- // FIXME: Our API is unsound. The Rust API allows aliasing
1079
+ // FIXME(ctest) : Our API is unsound. The Rust API allows aliasing
1080
1080
// pointers, but the C API requires pointers not to alias.
1081
1081
// We should probably be at least using `&`/`&mut` here, see:
1082
1082
// https://github.com/gnzlbg/ctest/issues/68
@@ -1222,7 +1222,7 @@ fn test_netbsd(target: &str) {
1222
1222
return true ;
1223
1223
}
1224
1224
match ty {
1225
- // FIXME: sighandler_t is crazy across platforms
1225
+ // FIXME(netbsd) : sighandler_t is crazy across platforms
1226
1226
"sighandler_t" => true ,
1227
1227
_ => false ,
1228
1228
}
@@ -1266,7 +1266,7 @@ fn test_netbsd(target: &str) {
1266
1266
1267
1267
cfg. skip_fn ( move |name| {
1268
1268
match name {
1269
- // FIXME: netbsd 10 minimum
1269
+ // FIXME(netbsd) : netbsd 10 minimum
1270
1270
"getentropy" | "getrandom" => true ,
1271
1271
1272
1272
"getrlimit" | "getrlimit64" | // non-int in 1st arg
@@ -1405,7 +1405,7 @@ fn test_dragonflybsd(target: &str) {
1405
1405
| "Elf64_Shdr" | "Elf32_Sym" | "Elf64_Sym" | "Elf32_Ehdr" | "Elf64_Ehdr"
1406
1406
| "Elf32_Chdr" | "Elf64_Chdr" => ty. to_string ( ) ,
1407
1407
1408
- // FIXME: OSX calls this something else
1408
+ // FIXME(dragonflybsd) : OSX calls this something else
1409
1409
"sighandler_t" => "sig_t" . to_string ( ) ,
1410
1410
1411
1411
t if is_union => format ! ( "union {}" , t) ,
@@ -1450,7 +1450,7 @@ fn test_dragonflybsd(target: &str) {
1450
1450
return true ;
1451
1451
}
1452
1452
match ty {
1453
- // FIXME: These are tested as part of the linux_fcntl tests since
1453
+ // FIXME(dragonflybsd) : These are tested as part of the linux_fcntl tests since
1454
1454
// there are header conflicts when including them with all the other
1455
1455
// structs.
1456
1456
"termios2" => true ,
@@ -1814,7 +1814,7 @@ fn test_android(target: &str) {
1814
1814
// Our stat *_nsec fields normally don't actually exist but are part
1815
1815
// of a timeval struct
1816
1816
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => s. to_string ( ) ,
1817
- // FIXME: appears that `epoll_event.data` is an union
1817
+ // FIXME(union) : appears that `epoll_event.data` is an union
1818
1818
"u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
1819
1819
// The following structs have a field called `type` in C,
1820
1820
// but `type` is a Rust keyword, so these fields are translated
@@ -1833,7 +1833,7 @@ fn test_android(target: &str) {
1833
1833
1834
1834
cfg. skip_type ( move |ty| {
1835
1835
match ty {
1836
- // FIXME: `sighandler_t` type is incorrect, see:
1836
+ // FIXME(android) : `sighandler_t` type is incorrect, see:
1837
1837
// https://github.com/rust-lang/libc/issues/1359
1838
1838
"sighandler_t" => true ,
1839
1839
@@ -1844,7 +1844,7 @@ fn test_android(target: &str) {
1844
1844
"posix_spawn_file_actions_t" => true ,
1845
1845
"posix_spawnattr_t" => true ,
1846
1846
1847
- // FIXME: "'__uint128' undeclared" in C
1847
+ // FIXME(android) : "'__uint128' undeclared" in C
1848
1848
"__uint128" => true ,
1849
1849
1850
1850
_ => false ,
@@ -1867,12 +1867,12 @@ fn test_android(target: &str) {
1867
1867
// These are tested in the `linux_elf.rs` file.
1868
1868
"Elf64_Phdr" | "Elf32_Phdr" => true ,
1869
1869
1870
- // FIXME: The type of `iv` has been changed.
1870
+ // FIXME(android) : The type of `iv` has been changed.
1871
1871
"af_alg_iv" => true ,
1872
1872
1873
- // FIXME: The size of struct has been changed:
1873
+ // FIXME(android) : The size of struct has been changed:
1874
1874
"inotify_event" => true ,
1875
- // FIXME: The field has been changed:
1875
+ // FIXME(android) : The field has been changed:
1876
1876
"sockaddr_vm" => true ,
1877
1877
1878
1878
_ => false ,
@@ -1899,13 +1899,13 @@ fn test_android(target: &str) {
1899
1899
// The `ARPHRD_CAN` is tested in the `linux_if_arp.rs` tests:
1900
1900
"ARPHRD_CAN" => true ,
1901
1901
1902
- // FIXME: deprecated: not available in any header
1902
+ // FIXME(deprecated) : deprecated: not available in any header
1903
1903
// See: https://github.com/rust-lang/libc/issues/1356
1904
1904
"ENOATTR" => true ,
1905
1905
1906
- // FIXME: still necessary?
1906
+ // FIXME(android) : still necessary?
1907
1907
"SIG_DFL" | "SIG_ERR" | "SIG_IGN" => true , // sighandler_t weirdness
1908
- // FIXME: deprecated - removed in glibc 2.26
1908
+ // FIXME(deprecated) : deprecated - removed in glibc 2.26
1909
1909
"SIGUNUSED" => true ,
1910
1910
1911
1911
// Needs a newer Android SDK for the definition
@@ -1914,7 +1914,7 @@ fn test_android(target: &str) {
1914
1914
// Requires Linux kernel 5.6
1915
1915
"VMADDR_CID_LOCAL" => true ,
1916
1916
1917
- // FIXME: conflicts with standard C headers and is tested in
1917
+ // FIXME(android) : conflicts with standard C headers and is tested in
1918
1918
// `linux_termios.rs` below:
1919
1919
"BOTHER" => true ,
1920
1920
"IBSHIFT" => true ,
@@ -1944,7 +1944,7 @@ fn test_android(target: &str) {
1944
1944
// kernel 6.2 minimum
1945
1945
"TUN_F_USO4" | "TUN_F_USO6" | "IFF_NO_CARRIER" => true ,
1946
1946
1947
- // FIXME: NDK r22 minimum required
1947
+ // FIXME(android) : NDK r22 minimum required
1948
1948
| "FDB_NOTIFY_BIT"
1949
1949
| "FDB_NOTIFY_INACTIVE_BIT"
1950
1950
| "IFLA_ALT_IFNAME"
@@ -1957,16 +1957,16 @@ fn test_android(target: &str) {
1957
1957
| "NFEA_DONT_REFRESH"
1958
1958
| "NFEA_UNSPEC" => true ,
1959
1959
1960
- // FIXME: NDK r23 minimum required
1960
+ // FIXME(android) : NDK r23 minimum required
1961
1961
| "IFLA_PARENT_DEV_BUS_NAME"
1962
1962
| "IFLA_PARENT_DEV_NAME" => true ,
1963
1963
1964
- // FIXME: NDK r25 minimum required
1964
+ // FIXME(android) : NDK r25 minimum required
1965
1965
| "IFLA_GRO_MAX_SIZE"
1966
1966
| "NDA_FLAGS_EXT"
1967
1967
| "NTF_EXT_MANAGED" => true ,
1968
1968
1969
- // FIXME: NDK above r25 required
1969
+ // FIXME(android) : NDK above r25 required
1970
1970
| "IFLA_ALLMULTI"
1971
1971
| "IFLA_DEVLINK_PORT"
1972
1972
| "IFLA_GRO_IPV4_MAX_SIZE"
@@ -1980,18 +1980,18 @@ fn test_android(target: &str) {
1980
1980
| "NTF_EXT_LOCKED"
1981
1981
| "ALG_SET_DRBG_ENTROPY" => true ,
1982
1982
1983
- // FIXME: Something has been changed on r26b:
1983
+ // FIXME(android) : Something has been changed on r26b:
1984
1984
| "IPPROTO_MAX"
1985
1985
| "NFNL_SUBSYS_COUNT"
1986
1986
| "NF_NETDEV_NUMHOOKS"
1987
1987
| "NFT_MSG_MAX"
1988
1988
| "SW_MAX"
1989
1989
| "SW_CNT" => true ,
1990
1990
1991
- // FIXME: aarch64 env cannot find it:
1991
+ // FIXME(android) : aarch64 env cannot find it:
1992
1992
| "PTRACE_GETREGS"
1993
1993
| "PTRACE_SETREGS" if aarch64 => true ,
1994
- // FIXME: The value has been changed on r26b:
1994
+ // FIXME(android) : The value has been changed on r26b:
1995
1995
| "SYS_syscalls" if aarch64 => true ,
1996
1996
1997
1997
// From `<include/linux/sched.h>`.
@@ -2030,7 +2030,7 @@ fn test_android(target: &str) {
2030
2030
cfg. skip_fn ( move |name| {
2031
2031
// skip those that are manually verified
2032
2032
match name {
2033
- // FIXME: for unknown reasons linker unable to find "fexecve"
2033
+ // FIXME(android) : for unknown reasons linker unable to find "fexecve"
2034
2034
"fexecve" => true ,
2035
2035
2036
2036
// There are two versions of the sterror_r function, see
@@ -2084,7 +2084,7 @@ fn test_android(target: &str) {
2084
2084
// Added in API level 26, but some tests use level 24.
2085
2085
"getdomainname" | "setdomainname" => true ,
2086
2086
2087
- // FIXME: bad function pointers:
2087
+ // FIXME(android) : bad function pointers:
2088
2088
"isalnum" | "isalpha" | "iscntrl" | "isdigit" | "isgraph" | "islower" | "isprint"
2089
2089
| "ispunct" | "isspace" | "isupper" | "isxdigit" | "isblank" | "tolower"
2090
2090
| "toupper" => true ,
@@ -2100,12 +2100,12 @@ fn test_android(target: &str) {
2100
2100
( struct_ == "sigevent" && field == "sigev_value" ) ||
2101
2101
// this one is an anonymous union
2102
2102
( struct_ == "ff_effect" && field == "u" ) ||
2103
- // FIXME: `sa_sigaction` has type `sighandler_t` but that type is
2103
+ // FIXME(android) : `sa_sigaction` has type `sighandler_t` but that type is
2104
2104
// incorrect, see: https://github.com/rust-lang/libc/issues/1359
2105
2105
( struct_ == "sigaction" && field == "sa_sigaction" ) ||
2106
2106
// signalfd had SIGSYS fields added in Android 4.19, but CI does not have that version yet.
2107
2107
( struct_ == "signalfd_siginfo" && field == "ssi_call_addr" ) ||
2108
- // FIXME: Seems the type has been changed on NDK r26b
2108
+ // FIXME(android) : Seems the type has been changed on NDK r26b
2109
2109
( struct_ == "flock64" && ( field == "l_start" || field == "l_len" ) )
2110
2110
} ) ;
2111
2111
@@ -2299,7 +2299,7 @@ fn test_freebsd(target: &str) {
2299
2299
| "devstat_match_flags"
2300
2300
| "devstat_priority" => ty. to_string ( ) ,
2301
2301
2302
- // FIXME: https://github.com/rust-lang/libc/issues/1273
2302
+ // FIXME(freebsd) : https://github.com/rust-lang/libc/issues/1273
2303
2303
"sighandler_t" => "sig_t" . to_string ( ) ,
2304
2304
2305
2305
t if is_union => format ! ( "union {}" , t) ,
@@ -2361,12 +2361,12 @@ fn test_freebsd(target: &str) {
2361
2361
true
2362
2362
}
2363
2363
2364
- // FIXME: These are deprecated - remove in a couple of releases.
2364
+ // FIXME(deprecated) : These are deprecated - remove in a couple of releases.
2365
2365
// These constants were removed in FreeBSD 11 (svn r273250) but will
2366
2366
// still be accepted and ignored at runtime.
2367
2367
"MAP_RENAME" | "MAP_NORESERVE" => true ,
2368
2368
2369
- // FIXME: This is deprecated - remove in a couple of releases.
2369
+ // FIXME(deprecated) : This is deprecated - remove in a couple of releases.
2370
2370
// This was removed in FreeBSD 14 (git 1b4701fe1e8) and never
2371
2371
// should've been used anywhere anyway.
2372
2372
"TDF_UNUSED23" => true ,
@@ -2383,7 +2383,7 @@ fn test_freebsd(target: &str) {
2383
2383
// Removed in FreeBSD 14 (git 7ff9ae90f0b)
2384
2384
"IFF_NOGROUP" => true ,
2385
2385
2386
- // FIXME: These are deprecated - remove in a couple of releases.
2386
+ // FIXME(deprecated) : These are deprecated - remove in a couple of releases.
2387
2387
// These symbols are not stable across OS-versions. They were
2388
2388
// changed for FreeBSD 14 in git revisions b62848b0c3f and
2389
2389
// 2cf7870864e.
@@ -2497,7 +2497,7 @@ fn test_freebsd(target: &str) {
2497
2497
}
2498
2498
2499
2499
// Added in FreeBSD 14.
2500
- "F_KINFO" => true , // FIXME: depends how frequent freebsd 14 is updated on CI, this addition went this week only.
2500
+ "F_KINFO" => true , // FIXME(freebsd) : depends how frequent freebsd 14 is updated on CI, this addition went this week only.
2501
2501
"SHM_RENAME_NOREPLACE"
2502
2502
| "SHM_RENAME_EXCHANGE"
2503
2503
| "SHM_LARGEPAGE_ALLOC_DEFAULT"
@@ -2553,11 +2553,11 @@ fn test_freebsd(target: &str) {
2553
2553
// Added in FreeBSD 14
2554
2554
"IFCAP_NV" if Some ( 14 ) > freebsd_ver => true ,
2555
2555
2556
- // FIXME: Removed in https://reviews.freebsd.org/D38574 and https://reviews.freebsd.org/D38822
2556
+ // FIXME(freebsd) : Removed in https://reviews.freebsd.org/D38574 and https://reviews.freebsd.org/D38822
2557
2557
// We maybe should deprecate them once a stable release ships them.
2558
2558
"IP_BINDMULTI" | "IP_RSS_LISTEN_BUCKET" => true ,
2559
2559
2560
- // FIXME: Removed in https://reviews.freebsd.org/D39127.
2560
+ // FIXME(freebsd) : Removed in https://reviews.freebsd.org/D39127.
2561
2561
"KERN_VNODE" => true ,
2562
2562
2563
2563
// Added in FreeBSD 14
@@ -2580,10 +2580,10 @@ fn test_freebsd(target: &str) {
2580
2580
true
2581
2581
}
2582
2582
2583
- // FIXME: Removed in FreeBSD 15:
2583
+ // FIXME(freebsd) : Removed in FreeBSD 15:
2584
2584
"LOCAL_CONNWAIT" => true ,
2585
2585
2586
- // FIXME: The values has been changed in FreeBSD 15:
2586
+ // FIXME(freebsd) : The values has been changed in FreeBSD 15:
2587
2587
"CLOCK_BOOTTIME" if Some ( 15 ) <= freebsd_ver => true ,
2588
2588
2589
2589
// Added in FreeBSD 14.0
@@ -2637,7 +2637,7 @@ fn test_freebsd(target: &str) {
2637
2637
| "sctp_send_failed_event"
2638
2638
| "sctp_stream_reset_event" => true ,
2639
2639
2640
- // FIXME: Changed in FreeBSD 15
2640
+ // FIXME(freebsd) : Changed in FreeBSD 15
2641
2641
"tcp_info" | "sockstat" if Some ( 15 ) >= freebsd_ver => true ,
2642
2642
2643
2643
_ => false ,
@@ -2655,7 +2655,7 @@ fn test_freebsd(target: &str) {
2655
2655
// Therefore the function pointer comparison does not make sense for it.
2656
2656
"uname" => true ,
2657
2657
2658
- // FIXME: Our API is unsound. The Rust API allows aliasing
2658
+ // FIXME(ctest) : Our API is unsound. The Rust API allows aliasing
2659
2659
// pointers, but the C API requires pointers not to alias.
2660
2660
// We should probably be at least using `&`/`&mut` here, see:
2661
2661
// https://github.com/gnzlbg/ctest/issues/68
@@ -2718,7 +2718,7 @@ fn test_freebsd(target: &str) {
2718
2718
2719
2719
cfg. skip_field ( move |struct_, field| {
2720
2720
match ( struct_, field) {
2721
- // FIXME: `sa_sigaction` has type `sighandler_t` but that type is
2721
+ // FIXME(freebsd) : `sa_sigaction` has type `sighandler_t` but that type is
2722
2722
// incorrect, see: https://github.com/rust-lang/libc/issues/1359
2723
2723
( "sigaction" , "sa_sigaction" ) => true ,
2724
2724
@@ -2750,7 +2750,7 @@ fn test_freebsd(target: &str) {
2750
2750
// anonymous struct
2751
2751
( "devstat" , "dev_links" ) => true ,
2752
2752
2753
- // FIXME: structs too complicated to bind for now...
2753
+ // FIXME(freebsd) : structs too complicated to bind for now...
2754
2754
( "kinfo_proc" , "ki_paddr" ) => true ,
2755
2755
( "kinfo_proc" , "ki_addr" ) => true ,
2756
2756
( "kinfo_proc" , "ki_tracep" ) => true ,
@@ -2794,7 +2794,7 @@ fn test_emscripten(target: &str) {
2794
2794
assert ! ( target. contains( "emscripten" ) ) ;
2795
2795
2796
2796
let mut cfg = ctest_cfg ( ) ;
2797
- cfg. define ( "_GNU_SOURCE" , None ) ; // FIXME: ??
2797
+ cfg. define ( "_GNU_SOURCE" , None ) ; // FIXME(emscripten) : ??
2798
2798
2799
2799
headers ! { cfg:
2800
2800
"ctype.h" ,
@@ -2910,7 +2910,7 @@ fn test_emscripten(target: &str) {
2910
2910
cfg. skip_type ( move |ty| {
2911
2911
match ty {
2912
2912
// sighandler_t is crazy across platforms
2913
- // FIXME: is this necessary?
2913
+ // FIXME(emscripten) : is this necessary?
2914
2914
"sighandler_t" => true ,
2915
2915
2916
2916
// No epoll support
@@ -2931,7 +2931,7 @@ fn test_emscripten(target: &str) {
2931
2931
// This is actually a union, not a struct
2932
2932
"sigval" => true ,
2933
2933
2934
- // FIXME: Investigate why the test fails.
2934
+ // FIXME(emscripten) : Investigate why the test fails.
2935
2935
// Skip for now to unblock CI.
2936
2936
"pthread_condattr_t" => true ,
2937
2937
"pthread_mutexattr_t" => true ,
0 commit comments