@@ -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(ctest) : 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(ctest) : 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(ctest) : 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(ctest) : 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(ctest) : 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(ctest) : 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
@@ -2081,7 +2081,7 @@ fn test_android(target: &str) {
2081
2081
// Added in API level 26, but some tests use level 24.
2082
2082
"endgrent" => true ,
2083
2083
2084
- // FIXME: bad function pointers:
2084
+ // FIXME(android) : bad function pointers:
2085
2085
"isalnum" | "isalpha" | "iscntrl" | "isdigit" | "isgraph" | "islower" | "isprint"
2086
2086
| "ispunct" | "isspace" | "isupper" | "isxdigit" | "isblank" | "tolower"
2087
2087
| "toupper" => true ,
@@ -2097,12 +2097,12 @@ fn test_android(target: &str) {
2097
2097
( struct_ == "sigevent" && field == "sigev_value" ) ||
2098
2098
// this one is an anonymous union
2099
2099
( struct_ == "ff_effect" && field == "u" ) ||
2100
- // FIXME: `sa_sigaction` has type `sighandler_t` but that type is
2100
+ // FIXME(android) : `sa_sigaction` has type `sighandler_t` but that type is
2101
2101
// incorrect, see: https://github.com/rust-lang/libc/issues/1359
2102
2102
( struct_ == "sigaction" && field == "sa_sigaction" ) ||
2103
2103
// signalfd had SIGSYS fields added in Android 4.19, but CI does not have that version yet.
2104
2104
( struct_ == "signalfd_siginfo" && field == "ssi_call_addr" ) ||
2105
- // FIXME: Seems the type has been changed on NDK r26b
2105
+ // FIXME(android) : Seems the type has been changed on NDK r26b
2106
2106
( struct_ == "flock64" && ( field == "l_start" || field == "l_len" ) )
2107
2107
} ) ;
2108
2108
@@ -2296,7 +2296,7 @@ fn test_freebsd(target: &str) {
2296
2296
| "devstat_match_flags"
2297
2297
| "devstat_priority" => ty. to_string ( ) ,
2298
2298
2299
- // FIXME: https://github.com/rust-lang/libc/issues/1273
2299
+ // FIXME(freebsd) : https://github.com/rust-lang/libc/issues/1273
2300
2300
"sighandler_t" => "sig_t" . to_string ( ) ,
2301
2301
2302
2302
t if is_union => format ! ( "union {}" , t) ,
@@ -2358,12 +2358,12 @@ fn test_freebsd(target: &str) {
2358
2358
true
2359
2359
}
2360
2360
2361
- // FIXME: These are deprecated - remove in a couple of releases.
2361
+ // FIXME(deprecated) : These are deprecated - remove in a couple of releases.
2362
2362
// These constants were removed in FreeBSD 11 (svn r273250) but will
2363
2363
// still be accepted and ignored at runtime.
2364
2364
"MAP_RENAME" | "MAP_NORESERVE" => true ,
2365
2365
2366
- // FIXME: This is deprecated - remove in a couple of releases.
2366
+ // FIXME(deprecated) : This is deprecated - remove in a couple of releases.
2367
2367
// This was removed in FreeBSD 14 (git 1b4701fe1e8) and never
2368
2368
// should've been used anywhere anyway.
2369
2369
"TDF_UNUSED23" => true ,
@@ -2380,7 +2380,7 @@ fn test_freebsd(target: &str) {
2380
2380
// Removed in FreeBSD 14 (git 7ff9ae90f0b)
2381
2381
"IFF_NOGROUP" => true ,
2382
2382
2383
- // FIXME: These are deprecated - remove in a couple of releases.
2383
+ // FIXME(deprecated) : These are deprecated - remove in a couple of releases.
2384
2384
// These symbols are not stable across OS-versions. They were
2385
2385
// changed for FreeBSD 14 in git revisions b62848b0c3f and
2386
2386
// 2cf7870864e.
@@ -2494,7 +2494,7 @@ fn test_freebsd(target: &str) {
2494
2494
}
2495
2495
2496
2496
// Added in FreeBSD 14.
2497
- "F_KINFO" => true , // FIXME: depends how frequent freebsd 14 is updated on CI, this addition went this week only.
2497
+ "F_KINFO" => true , // FIXME(freebsd) : depends how frequent freebsd 14 is updated on CI, this addition went this week only.
2498
2498
"SHM_RENAME_NOREPLACE"
2499
2499
| "SHM_RENAME_EXCHANGE"
2500
2500
| "SHM_LARGEPAGE_ALLOC_DEFAULT"
@@ -2550,11 +2550,11 @@ fn test_freebsd(target: &str) {
2550
2550
// Added in FreeBSD 14
2551
2551
"IFCAP_NV" if Some ( 14 ) > freebsd_ver => true ,
2552
2552
2553
- // FIXME: Removed in https://reviews.freebsd.org/D38574 and https://reviews.freebsd.org/D38822
2553
+ // FIXME(freebsd) : Removed in https://reviews.freebsd.org/D38574 and https://reviews.freebsd.org/D38822
2554
2554
// We maybe should deprecate them once a stable release ships them.
2555
2555
"IP_BINDMULTI" | "IP_RSS_LISTEN_BUCKET" => true ,
2556
2556
2557
- // FIXME: Removed in https://reviews.freebsd.org/D39127.
2557
+ // FIXME(freebsd) : Removed in https://reviews.freebsd.org/D39127.
2558
2558
"KERN_VNODE" => true ,
2559
2559
2560
2560
// Added in FreeBSD 14
@@ -2577,10 +2577,10 @@ fn test_freebsd(target: &str) {
2577
2577
true
2578
2578
}
2579
2579
2580
- // FIXME: Removed in FreeBSD 15:
2580
+ // FIXME(freebsd) : Removed in FreeBSD 15:
2581
2581
"LOCAL_CONNWAIT" => true ,
2582
2582
2583
- // FIXME: The values has been changed in FreeBSD 15:
2583
+ // FIXME(freebsd) : The values has been changed in FreeBSD 15:
2584
2584
"CLOCK_BOOTTIME" if Some ( 15 ) <= freebsd_ver => true ,
2585
2585
2586
2586
// Added in FreeBSD 14.0
@@ -2634,7 +2634,7 @@ fn test_freebsd(target: &str) {
2634
2634
| "sctp_send_failed_event"
2635
2635
| "sctp_stream_reset_event" => true ,
2636
2636
2637
- // FIXME: Changed in FreeBSD 15
2637
+ // FIXME(freebsd) : Changed in FreeBSD 15
2638
2638
"tcp_info" | "sockstat" if Some ( 15 ) >= freebsd_ver => true ,
2639
2639
2640
2640
_ => false ,
@@ -2652,7 +2652,7 @@ fn test_freebsd(target: &str) {
2652
2652
// Therefore the function pointer comparison does not make sense for it.
2653
2653
"uname" => true ,
2654
2654
2655
- // FIXME: Our API is unsound. The Rust API allows aliasing
2655
+ // FIXME(ctest) : Our API is unsound. The Rust API allows aliasing
2656
2656
// pointers, but the C API requires pointers not to alias.
2657
2657
// We should probably be at least using `&`/`&mut` here, see:
2658
2658
// https://github.com/gnzlbg/ctest/issues/68
@@ -2715,7 +2715,7 @@ fn test_freebsd(target: &str) {
2715
2715
2716
2716
cfg. skip_field ( move |struct_, field| {
2717
2717
match ( struct_, field) {
2718
- // FIXME: `sa_sigaction` has type `sighandler_t` but that type is
2718
+ // FIXME(freebsd) : `sa_sigaction` has type `sighandler_t` but that type is
2719
2719
// incorrect, see: https://github.com/rust-lang/libc/issues/1359
2720
2720
( "sigaction" , "sa_sigaction" ) => true ,
2721
2721
@@ -2747,7 +2747,7 @@ fn test_freebsd(target: &str) {
2747
2747
// anonymous struct
2748
2748
( "devstat" , "dev_links" ) => true ,
2749
2749
2750
- // FIXME: structs too complicated to bind for now...
2750
+ // FIXME(ctest) : structs too complicated to bind for now...
2751
2751
( "kinfo_proc" , "ki_paddr" ) => true ,
2752
2752
( "kinfo_proc" , "ki_addr" ) => true ,
2753
2753
( "kinfo_proc" , "ki_tracep" ) => true ,
@@ -2791,7 +2791,7 @@ fn test_emscripten(target: &str) {
2791
2791
assert ! ( target. contains( "emscripten" ) ) ;
2792
2792
2793
2793
let mut cfg = ctest_cfg ( ) ;
2794
- cfg. define ( "_GNU_SOURCE" , None ) ; // FIXME: ??
2794
+ cfg. define ( "_GNU_SOURCE" , None ) ; // FIXME(emscripten) : ??
2795
2795
2796
2796
headers ! { cfg:
2797
2797
"ctype.h" ,
@@ -2907,7 +2907,7 @@ fn test_emscripten(target: &str) {
2907
2907
cfg. skip_type ( move |ty| {
2908
2908
match ty {
2909
2909
// sighandler_t is crazy across platforms
2910
- // FIXME: is this necessary?
2910
+ // FIXME(emscripten) : is this necessary?
2911
2911
"sighandler_t" => true ,
2912
2912
2913
2913
// No epoll support
@@ -2928,7 +2928,7 @@ fn test_emscripten(target: &str) {
2928
2928
// This is actually a union, not a struct
2929
2929
"sigval" => true ,
2930
2930
2931
- // FIXME: Investigate why the test fails.
2931
+ // FIXME(ctest) : Investigate why the test fails.
2932
2932
// Skip for now to unblock CI.
2933
2933
"pthread_condattr_t" => true ,
2934
2934
"pthread_mutexattr_t" => true ,
0 commit comments