@@ -2956,11 +2956,11 @@ fn test_emscripten(target: &str) {
2956
2956
2957
2957
cfg. skip_const ( move |name| {
2958
2958
match name {
2959
- // FIXME: deprecated - SIGNUNUSED was removed in glibc 2.26
2959
+ // FIXME(deprecated) : deprecated - SIGNUNUSED was removed in glibc 2.26
2960
2960
// users should use SIGSYS instead
2961
2961
"SIGUNUSED" => true ,
2962
2962
2963
- // FIXME: emscripten uses different constants to constructs these
2963
+ // FIXME(emscripten) : emscripten uses different constants to constructs these
2964
2964
n if n. contains ( "__SIZEOF_PTHREAD" ) => true ,
2965
2965
2966
2966
// No epoll support
@@ -3016,7 +3016,7 @@ fn test_emscripten(target: &str) {
3016
3016
( struct_ == "siginfo_t" && field == "_pad" ) ||
3017
3017
// musl names this __dummy1 but it's still there
3018
3018
( struct_ == "glob_t" && field == "gl_flags" ) ||
3019
- // FIXME: After musl 1.1.24, it have only one field `sched_priority`,
3019
+ // FIXME(emscripten) : After musl 1.1.24, it have only one field `sched_priority`,
3020
3020
// while other fields become reserved.
3021
3021
( struct_ == "sched_param" && [
3022
3022
"sched_ss_low_priority" ,
@@ -3183,7 +3183,7 @@ fn test_neutrino(target: &str) {
3183
3183
3184
3184
cfg. skip_type ( move |ty| {
3185
3185
match ty {
3186
- // FIXME: `sighandler_t` type is incorrect, see:
3186
+ // FIXME(neutrino) : `sighandler_t` type is incorrect, see:
3187
3187
// https://github.com/rust-lang/libc/issues/1359
3188
3188
"sighandler_t" => true ,
3189
3189
@@ -3201,7 +3201,7 @@ fn test_neutrino(target: &str) {
3201
3201
match ty {
3202
3202
"Elf64_Phdr" | "Elf32_Phdr" => true ,
3203
3203
3204
- // FIXME: This is actually a union, not a struct
3204
+ // FIXME(union) : This is actually a union, not a struct
3205
3205
"sigval" => true ,
3206
3206
3207
3207
// union
@@ -3232,7 +3232,7 @@ fn test_neutrino(target: &str) {
3232
3232
// wrong signature of callback ptr
3233
3233
"__cxa_atexit" => true ,
3234
3234
3235
- // FIXME: Our API is unsound. The Rust API allows aliasing
3235
+ // FIXME(ctest) : Our API is unsound. The Rust API allows aliasing
3236
3236
// pointers, but the C API requires pointers not to alias.
3237
3237
// We should probably be at least using `&`/`&mut` here, see:
3238
3238
// https://github.com/gnzlbg/ctest/issues/68
@@ -3342,15 +3342,15 @@ fn test_vxworks(target: &str) {
3342
3342
"pathLib.h" ,
3343
3343
"mqueue.h" ,
3344
3344
}
3345
- // FIXME
3345
+ // FIXME(vxworks)
3346
3346
cfg. skip_const ( move |name| match name {
3347
3347
// sighandler_t weirdness
3348
3348
"SIG_DFL" | "SIG_ERR" | "SIG_IGN"
3349
3349
// This is not defined in vxWorks
3350
3350
| "RTLD_DEFAULT" => true ,
3351
3351
_ => false ,
3352
3352
} ) ;
3353
- // FIXME
3353
+ // FIXME(vxworks)
3354
3354
cfg. skip_type ( move |ty| match ty {
3355
3355
"stat64" | "sighandler_t" | "off64_t" => true ,
3356
3356
_ => false ,
@@ -3373,7 +3373,7 @@ fn test_vxworks(target: &str) {
3373
3373
t => t. to_string ( ) ,
3374
3374
} ) ;
3375
3375
3376
- // FIXME
3376
+ // FIXME(vxworks)
3377
3377
cfg. skip_fn ( move |name| match name {
3378
3378
// sigval
3379
3379
"sigqueue" | "_sigqueue"
@@ -3586,7 +3586,7 @@ fn test_linux(target: &str) {
3586
3586
"linux/netfilter_ipv6/ip6_tables.h" ,
3587
3587
"linux/netlink.h" ,
3588
3588
"linux/openat2.h" ,
3589
- // FIXME: some items require Linux >= 5.6:
3589
+ // FIXME(linux) : some items require Linux >= 5.6:
3590
3590
"linux/ptp_clock.h" ,
3591
3591
"linux/ptrace.h" ,
3592
3592
"linux/quota.h" ,
@@ -3649,7 +3649,7 @@ fn test_linux(target: &str) {
3649
3649
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
3650
3650
s. replace ( "e_nsec" , ".tv_nsec" )
3651
3651
}
3652
- // FIXME: epoll_event.data is actually a union in C, but in Rust
3652
+ // FIXME(linux) : epoll_event.data is actually a union in C, but in Rust
3653
3653
// it is only a u64 because we only expose one field
3654
3654
// http://man7.org/linux/man-pages/man2/epoll_wait.2.html
3655
3655
"u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
@@ -3669,7 +3669,7 @@ fn test_linux(target: &str) {
3669
3669
} ) ;
3670
3670
3671
3671
cfg. skip_type ( move |ty| {
3672
- // FIXME: very recent additions to musl, not yet released.
3672
+ // FIXME(musl) : very recent additions to musl, not yet released.
3673
3673
// also apparently some glibc versions
3674
3674
if ty == "Elf32_Relr" || ty == "Elf64_Relr" {
3675
3675
return true ;
@@ -3678,7 +3678,7 @@ fn test_linux(target: &str) {
3678
3678
return true ;
3679
3679
}
3680
3680
match ty {
3681
- // FIXME: `sighandler_t` type is incorrect, see:
3681
+ // FIXME(linux) : `sighandler_t` type is incorrect, see:
3682
3682
// https://github.com/rust-lang/libc/issues/1359
3683
3683
"sighandler_t" => true ,
3684
3684
@@ -3716,7 +3716,7 @@ fn test_linux(target: &str) {
3716
3716
return true ;
3717
3717
}
3718
3718
3719
- // FIXME: CI has old headers
3719
+ // FIXME(linux) : CI has old headers
3720
3720
if ty == "ptp_sys_offset_extended" {
3721
3721
return true ;
3722
3722
}
@@ -3726,7 +3726,7 @@ fn test_linux(target: &str) {
3726
3726
return true ;
3727
3727
}
3728
3728
3729
- // FIXME: sparc64 CI has old headers
3729
+ // FIXME(linux) : sparc64 CI has old headers
3730
3730
if sparc64 && ( ty == "uinput_ff_erase" || ty == "uinput_abs_setup" ) {
3731
3731
return true ;
3732
3732
}
@@ -3749,7 +3749,7 @@ fn test_linux(target: &str) {
3749
3749
return true ;
3750
3750
}
3751
3751
3752
- // FIXME: musl doesn't compile with `struct fanout_args` for unknown reasons.
3752
+ // FIXME(musl) : musl doesn't compile with `struct fanout_args` for unknown reasons.
3753
3753
if musl && ty == "fanout_args" {
3754
3754
return true ;
3755
3755
}
@@ -3767,21 +3767,21 @@ fn test_linux(target: &str) {
3767
3767
// which is absent in glibc, has to be defined.
3768
3768
"__timeval" => true ,
3769
3769
3770
- // FIXME: This is actually a union, not a struct
3770
+ // FIXME(union) : This is actually a union, not a struct
3771
3771
"sigval" => true ,
3772
3772
3773
3773
// This type is tested in the `linux_termios.rs` file since there
3774
3774
// are header conflicts when including them with all the other
3775
3775
// structs.
3776
3776
"termios2" => true ,
3777
3777
3778
- // FIXME: remove once we set minimum supported glibc version.
3778
+ // FIXME(linux) : remove once we set minimum supported glibc version.
3779
3779
// ucontext_t added a new field as of glibc 2.28; our struct definition is
3780
3780
// conservative and omits the field, but that means the size doesn't match for newer
3781
3781
// glibcs (see https://github.com/rust-lang/libc/issues/1410)
3782
3782
"ucontext_t" if gnu => true ,
3783
3783
3784
- // FIXME: Somehow we cannot include headers correctly in glibc 2.30.
3784
+ // FIXME(linux) : Somehow we cannot include headers correctly in glibc 2.30.
3785
3785
// So let's ignore for now and re-visit later.
3786
3786
// Probably related: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91085
3787
3787
"statx" => true ,
@@ -3801,49 +3801,49 @@ fn test_linux(target: &str) {
3801
3801
"sctp_initmsg" | "sctp_sndrcvinfo" | "sctp_sndinfo" | "sctp_rcvinfo"
3802
3802
| "sctp_nxtinfo" | "sctp_prinfo" | "sctp_authinfo" => true ,
3803
3803
3804
- // FIXME: requires >= 6.1 kernel headers
3804
+ // FIXME(linux) : requires >= 6.1 kernel headers
3805
3805
"canxl_frame" => true ,
3806
3806
3807
- // FIXME: The size of `iv` has been changed since Linux v6.0
3807
+ // FIXME(linux) : The size of `iv` has been changed since Linux v6.0
3808
3808
// https://github.com/torvalds/linux/commit/94dfc73e7cf4a31da66b8843f0b9283ddd6b8381
3809
3809
"af_alg_iv" => true ,
3810
3810
3811
- // FIXME: Requires >= 5.1 kernel headers.
3811
+ // FIXME(linux) : Requires >= 5.1 kernel headers.
3812
3812
// Everything that uses install-musl.sh has 4.19 kernel headers.
3813
3813
"tls12_crypto_info_aes_gcm_256"
3814
3814
if ( aarch64 || arm || i686 || s390x || x86_64) && musl =>
3815
3815
{
3816
3816
true
3817
3817
}
3818
3818
3819
- // FIXME: Requires >= 5.11 kernel headers.
3819
+ // FIXME(linux) : Requires >= 5.11 kernel headers.
3820
3820
// Everything that uses install-musl.sh has 4.19 kernel headers.
3821
3821
"tls12_crypto_info_chacha20_poly1305"
3822
3822
if ( aarch64 || arm || i686 || s390x || x86_64) && musl =>
3823
3823
{
3824
3824
true
3825
3825
}
3826
3826
3827
- // FIXME: Requires >= 5.3 kernel headers.
3827
+ // FIXME(linux) : Requires >= 5.3 kernel headers.
3828
3828
// Everything that uses install-musl.sh has 4.19 kernel headers.
3829
3829
"xdp_options" if musl => true ,
3830
3830
3831
- // FIXME: Requires >= 5.4 kernel headers.
3831
+ // FIXME(linux) : Requires >= 5.4 kernel headers.
3832
3832
// Everything that uses install-musl.sh has 4.19 kernel headers.
3833
3833
"xdp_ring_offset" | "xdp_mmap_offsets" if musl => true ,
3834
3834
3835
- // FIXME: Requires >= 6.8 kernel headers.
3835
+ // FIXME(linux) : Requires >= 6.8 kernel headers.
3836
3836
// A field was added in 6.8.
3837
3837
// https://github.com/torvalds/linux/commit/341ac980eab90ac1f6c22ee9f9da83ed9604d899
3838
3838
// The previous version of the struct was removed in 6.11 due to a bug.
3839
3839
// https://github.com/torvalds/linux/commit/32654bbd6313b4cfc82297e6634fa9725c3c900f
3840
3840
"xdp_umem_reg" => true ,
3841
3841
3842
- // FIXME: Requires >= 5.9 kernel headers.
3842
+ // FIXME(linux) : Requires >= 5.9 kernel headers.
3843
3843
// Everything that uses install-musl.sh has 4.19 kernel headers.
3844
3844
"xdp_statistics" if musl => true ,
3845
3845
3846
- // FIXME: Requires >= 6.8 kernel headers.
3846
+ // FIXME(linux) : Requires >= 6.8 kernel headers.
3847
3847
"xsk_tx_metadata"
3848
3848
| "__c_anonymous_xsk_tx_metadata_union"
3849
3849
| "xsk_tx_metadata_request"
@@ -3867,7 +3867,7 @@ fn test_linux(target: &str) {
3867
3867
// kernel so we can drop this and test the type once this new version is used in CI.
3868
3868
"sched_attr" => true ,
3869
3869
3870
- // FIXME: Requires >= 6.9 kernel headers.
3870
+ // FIXME(linux) : Requires >= 6.9 kernel headers.
3871
3871
"epoll_params" => true ,
3872
3872
3873
3873
_ => false ,
@@ -3912,7 +3912,7 @@ fn test_linux(target: &str) {
3912
3912
}
3913
3913
}
3914
3914
if musl {
3915
- // FIXME: Requires >= 5.0 kernel headers
3915
+ // FIXME(linux) : Requires >= 5.0 kernel headers
3916
3916
if name == "SECCOMP_GET_NOTIF_SIZES"
3917
3917
|| name == "SECCOMP_FILTER_FLAG_NEW_LISTENER"
3918
3918
|| name == "SECCOMP_FILTER_FLAG_TSYNC_ESRCH"
@@ -3923,11 +3923,11 @@ fn test_linux(target: &str) {
3923
3923
{
3924
3924
return true ;
3925
3925
}
3926
- // FIXME: Requires >= 4.20 kernel headers
3926
+ // FIXME(linux) : Requires >= 4.20 kernel headers
3927
3927
if name == "PTP_SYS_OFFSET_EXTENDED" {
3928
3928
return true ;
3929
3929
}
3930
- // FIXME: Requires >= 5.4 kernel headers
3930
+ // FIXME(linux) : Requires >= 5.4 kernel headers
3931
3931
if name == "PTP_CLOCK_GETCAPS2"
3932
3932
|| name == "PTP_ENABLE_PPS2"
3933
3933
|| name == "PTP_EXTTS_REQUEST2"
@@ -3940,15 +3940,15 @@ fn test_linux(target: &str) {
3940
3940
{
3941
3941
return true ;
3942
3942
}
3943
- // FIXME: Requires >= 5.4.1 kernel headers
3943
+ // FIXME(linux) : Requires >= 5.4.1 kernel headers
3944
3944
if name. starts_with ( "J1939" )
3945
3945
|| name. starts_with ( "RTEXT_FILTER_" )
3946
3946
|| name. starts_with ( "SO_J1939" )
3947
3947
|| name. starts_with ( "SCM_J1939" )
3948
3948
{
3949
3949
return true ;
3950
3950
}
3951
- // FIXME: Requires >= 5.10 kernel headers
3951
+ // FIXME(linux) : Requires >= 5.10 kernel headers
3952
3952
if name. starts_with ( "MEMBARRIER_CMD_REGISTER" )
3953
3953
|| name. starts_with ( "MEMBARRIER_CMD_PRIVATE" )
3954
3954
{
@@ -3989,15 +3989,15 @@ fn test_linux(target: &str) {
3989
3989
// because including `linux/if_arp.h` causes some conflicts:
3990
3990
"ARPHRD_CAN" => true ,
3991
3991
3992
- // FIXME: deprecated: not available in any header
3992
+ // FIXME(deprecated) : deprecated: not available in any header
3993
3993
// See: https://github.com/rust-lang/libc/issues/1356
3994
3994
"ENOATTR" => true ,
3995
3995
3996
- // FIXME: SIGUNUSED was removed in glibc 2.26
3996
+ // FIXME(linux) : SIGUNUSED was removed in glibc 2.26
3997
3997
// Users should use SIGSYS instead.
3998
3998
"SIGUNUSED" => true ,
3999
3999
4000
- // FIXME: conflicts with glibc headers and is tested in
4000
+ // FIXME(linux) : conflicts with glibc headers and is tested in
4001
4001
// `linux_termios.rs` below:
4002
4002
| "BOTHER"
4003
4003
| "IBSHIFT"
@@ -4006,11 +4006,11 @@ fn test_linux(target: &str) {
4006
4006
| "TCSETSW2"
4007
4007
| "TCSETSF2" => true ,
4008
4008
4009
- // FIXME: on musl the pthread types are defined a little differently
4009
+ // FIXME(musl) : on musl the pthread types are defined a little differently
4010
4010
// - these constants are used by the glibc implementation.
4011
4011
n if musl && n. contains ( "__SIZEOF_PTHREAD" ) => true ,
4012
4012
4013
- // FIXME: It was extended to 4096 since glibc 2.31 (Linux 5.4).
4013
+ // FIXME(linux) : It was extended to 4096 since glibc 2.31 (Linux 5.4).
4014
4014
// We should do so after a while.
4015
4015
"SOMAXCONN" if gnu => true ,
4016
4016
@@ -4022,34 +4022,34 @@ fn test_linux(target: &str) {
4022
4022
| "IPPROTO_ETHERNET"
4023
4023
| "IPPROTO_MPTCP" => true ,
4024
4024
4025
- // FIXME: Not yet implemented on sparc64
4025
+ // FIXME(linux) : Not yet implemented on sparc64
4026
4026
"SYS_clone3" if sparc64 => true ,
4027
4027
4028
- // FIXME: Not defined on ARM, gnueabihf, musl, PowerPC, riscv64, s390x, and sparc64.
4028
+ // FIXME(linux) : Not defined on ARM, gnueabihf, musl, PowerPC, riscv64, s390x, and sparc64.
4029
4029
"SYS_memfd_secret" if arm | gnueabihf | musl | ppc | riscv64 | s390x | sparc64 => true ,
4030
4030
4031
- // FIXME: Added in Linux 5.16
4031
+ // FIXME(linux) : Added in Linux 5.16
4032
4032
// https://github.com/torvalds/linux/commit/039c0ec9bb77446d7ada7f55f90af9299b28ca49
4033
4033
"SYS_futex_waitv" => true ,
4034
4034
4035
- // FIXME: Added in Linux 5.17
4035
+ // FIXME(linux) : Added in Linux 5.17
4036
4036
// https://github.com/torvalds/linux/commit/c6018b4b254971863bd0ad36bb5e7d0fa0f0ddb0
4037
4037
"SYS_set_mempolicy_home_node" => true ,
4038
4038
4039
- // FIXME: Added in Linux 5.18
4039
+ // FIXME(linux) : Added in Linux 5.18
4040
4040
// https://github.com/torvalds/linux/commit/8b5413647262dda8d8d0e07e14ea1de9ac7cf0b2
4041
4041
"NFQA_PRIORITY" => true ,
4042
4042
4043
- // FIXME: requires more recent kernel headers on CI
4043
+ // FIXME(linux) : requires more recent kernel headers on CI
4044
4044
| "UINPUT_VERSION"
4045
4045
| "SW_MAX"
4046
4046
| "SW_CNT"
4047
4047
if ppc64 || riscv64 => true ,
4048
4048
4049
- // FIXME: requires more recent kernel headers on CI
4049
+ // FIXME(linux) : requires more recent kernel headers on CI
4050
4050
"SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV" if sparc64 => true ,
4051
4051
4052
- // FIXME: Not currently available in headers on ARM and musl.
4052
+ // FIXME(linux) : Not currently available in headers on ARM and musl.
4053
4053
"NETLINK_GET_STRICT_CHK" if arm => true ,
4054
4054
4055
4055
// kernel constants not available in uclibc 1.0.34
0 commit comments