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