@@ -2662,8 +2662,8 @@ fn test_freebsd(target: &str) {
2662
2662
2663
2663
// These constants may change or disappear in future OS releases, and they probably
2664
2664
// have no legitimate use in applications anyway.
2665
- "CAP_UNUSED0_44" | "CAP_UNUSED0_57" | "CAP_UNUSED1_22" | "CAP_UNUSED1_57" |
2666
- "CAP_ALL0" | "CAP_ALL1" => true ,
2665
+ "CAP_UNUSED0_44" | "CAP_UNUSED0_57" | "CAP_UNUSED1_22" | "CAP_UNUSED1_57"
2666
+ | "CAP_ALL0" | "CAP_ALL1" => true ,
2667
2667
2668
2668
_ => false ,
2669
2669
}
@@ -3036,11 +3036,11 @@ fn test_emscripten(target: &str) {
3036
3036
3037
3037
cfg. skip_const ( move |name| {
3038
3038
match name {
3039
- // FIXME: deprecated - SIGNUNUSED was removed in glibc 2.26
3039
+ // FIXME(deprecated) : deprecated - SIGNUNUSED was removed in glibc 2.26
3040
3040
// users should use SIGSYS instead
3041
3041
"SIGUNUSED" => true ,
3042
3042
3043
- // FIXME: emscripten uses different constants to constructs these
3043
+ // FIXME(emscripten) : emscripten uses different constants to constructs these
3044
3044
n if n. contains ( "__SIZEOF_PTHREAD" ) => true ,
3045
3045
3046
3046
// No epoll support
@@ -3097,7 +3097,7 @@ fn test_emscripten(target: &str) {
3097
3097
( struct_ == "siginfo_t" && field == "_pad" ) ||
3098
3098
// musl names this __dummy1 but it's still there
3099
3099
( struct_ == "glob_t" && field == "gl_flags" ) ||
3100
- // FIXME: After musl 1.1.24, it have only one field `sched_priority`,
3100
+ // FIXME(emscripten) : After musl 1.1.24, it have only one field `sched_priority`,
3101
3101
// while other fields become reserved.
3102
3102
( struct_ == "sched_param" && [
3103
3103
"sched_ss_low_priority" ,
@@ -3264,7 +3264,7 @@ fn test_neutrino(target: &str) {
3264
3264
3265
3265
cfg. skip_type ( move |ty| {
3266
3266
match ty {
3267
- // FIXME: `sighandler_t` type is incorrect, see:
3267
+ // FIXME(sighandler) : `sighandler_t` type is incorrect, see:
3268
3268
// https://github.com/rust-lang/libc/issues/1359
3269
3269
"sighandler_t" => true ,
3270
3270
@@ -3282,7 +3282,7 @@ fn test_neutrino(target: &str) {
3282
3282
match ty {
3283
3283
"Elf64_Phdr" | "Elf32_Phdr" => true ,
3284
3284
3285
- // FIXME: This is actually a union, not a struct
3285
+ // FIXME(union) : This is actually a union, not a struct
3286
3286
"sigval" => true ,
3287
3287
3288
3288
// union
@@ -3316,7 +3316,7 @@ fn test_neutrino(target: &str) {
3316
3316
// wrong signature of callback ptr
3317
3317
"__cxa_atexit" => true ,
3318
3318
3319
- // FIXME: Our API is unsound. The Rust API allows aliasing
3319
+ // FIXME(ctest) : Our API is unsound. The Rust API allows aliasing
3320
3320
// pointers, but the C API requires pointers not to alias.
3321
3321
// We should probably be at least using `&`/`&mut` here, see:
3322
3322
// https://github.com/gnzlbg/ctest/issues/68
@@ -3426,15 +3426,15 @@ fn test_vxworks(target: &str) {
3426
3426
"pathLib.h" ,
3427
3427
"mqueue.h" ,
3428
3428
}
3429
- // FIXME
3429
+ // FIXME(vxworks)
3430
3430
cfg. skip_const ( move |name| match name {
3431
3431
// sighandler_t weirdness
3432
3432
"SIG_DFL" | "SIG_ERR" | "SIG_IGN"
3433
3433
// This is not defined in vxWorks
3434
3434
| "RTLD_DEFAULT" => true ,
3435
3435
_ => false ,
3436
3436
} ) ;
3437
- // FIXME
3437
+ // FIXME(vxworks)
3438
3438
cfg. skip_type ( move |ty| match ty {
3439
3439
"stat64" | "sighandler_t" | "off64_t" => true ,
3440
3440
_ => false ,
@@ -3457,7 +3457,7 @@ fn test_vxworks(target: &str) {
3457
3457
t => t. to_string ( ) ,
3458
3458
} ) ;
3459
3459
3460
- // FIXME
3460
+ // FIXME(vxworks)
3461
3461
cfg. skip_fn ( move |name| match name {
3462
3462
// sigval
3463
3463
"sigqueue" | "_sigqueue"
@@ -3670,7 +3670,7 @@ fn test_linux(target: &str) {
3670
3670
"linux/netfilter_ipv6/ip6_tables.h" ,
3671
3671
"linux/netlink.h" ,
3672
3672
"linux/openat2.h" ,
3673
- // FIXME: some items require Linux >= 5.6:
3673
+ // FIXME(linux) : some items require Linux >= 5.6:
3674
3674
"linux/ptp_clock.h" ,
3675
3675
"linux/ptrace.h" ,
3676
3676
"linux/quota.h" ,
@@ -3733,7 +3733,7 @@ fn test_linux(target: &str) {
3733
3733
s if s. ends_with ( "_nsec" ) && struct_. starts_with ( "stat" ) => {
3734
3734
s. replace ( "e_nsec" , ".tv_nsec" )
3735
3735
}
3736
- // FIXME: epoll_event.data is actually a union in C, but in Rust
3736
+ // FIXME(linux) : epoll_event.data is actually a union in C, but in Rust
3737
3737
// it is only a u64 because we only expose one field
3738
3738
// http://man7.org/linux/man-pages/man2/epoll_wait.2.html
3739
3739
"u64" if struct_ == "epoll_event" => "data.u64" . to_string ( ) ,
@@ -3753,7 +3753,7 @@ fn test_linux(target: &str) {
3753
3753
} ) ;
3754
3754
3755
3755
cfg. skip_type ( move |ty| {
3756
- // FIXME: very recent additions to musl, not yet released.
3756
+ // FIXME(musl) : very recent additions to musl, not yet released.
3757
3757
// also apparently some glibc versions
3758
3758
if ty == "Elf32_Relr" || ty == "Elf64_Relr" {
3759
3759
return true ;
@@ -3762,7 +3762,7 @@ fn test_linux(target: &str) {
3762
3762
return true ;
3763
3763
}
3764
3764
match ty {
3765
- // FIXME: `sighandler_t` type is incorrect, see:
3765
+ // FIXME(sighandler) : `sighandler_t` type is incorrect, see:
3766
3766
// https://github.com/rust-lang/libc/issues/1359
3767
3767
"sighandler_t" => true ,
3768
3768
@@ -3800,7 +3800,7 @@ fn test_linux(target: &str) {
3800
3800
return true ;
3801
3801
}
3802
3802
3803
- // FIXME: CI has old headers
3803
+ // FIXME(linux) : CI has old headers
3804
3804
if ty == "ptp_sys_offset_extended" {
3805
3805
return true ;
3806
3806
}
@@ -3810,7 +3810,7 @@ fn test_linux(target: &str) {
3810
3810
return true ;
3811
3811
}
3812
3812
3813
- // FIXME: sparc64 CI has old headers
3813
+ // FIXME(linux) : sparc64 CI has old headers
3814
3814
if sparc64 && ( ty == "uinput_ff_erase" || ty == "uinput_abs_setup" ) {
3815
3815
return true ;
3816
3816
}
@@ -3833,7 +3833,7 @@ fn test_linux(target: &str) {
3833
3833
return true ;
3834
3834
}
3835
3835
3836
- // FIXME: musl doesn't compile with `struct fanout_args` for unknown reasons.
3836
+ // FIXME(musl) : musl doesn't compile with `struct fanout_args` for unknown reasons.
3837
3837
if musl && ty == "fanout_args" {
3838
3838
return true ;
3839
3839
}
@@ -3851,21 +3851,21 @@ fn test_linux(target: &str) {
3851
3851
// which is absent in glibc, has to be defined.
3852
3852
"__timeval" => true ,
3853
3853
3854
- // FIXME: This is actually a union, not a struct
3854
+ // FIXME(union) : This is actually a union, not a struct
3855
3855
"sigval" => true ,
3856
3856
3857
3857
// This type is tested in the `linux_termios.rs` file since there
3858
3858
// are header conflicts when including them with all the other
3859
3859
// structs.
3860
3860
"termios2" => true ,
3861
3861
3862
- // FIXME: remove once we set minimum supported glibc version.
3862
+ // FIXME(linux) : remove once we set minimum supported glibc version.
3863
3863
// ucontext_t added a new field as of glibc 2.28; our struct definition is
3864
3864
// conservative and omits the field, but that means the size doesn't match for newer
3865
3865
// glibcs (see https://github.com/rust-lang/libc/issues/1410)
3866
3866
"ucontext_t" if gnu => true ,
3867
3867
3868
- // FIXME: Somehow we cannot include headers correctly in glibc 2.30.
3868
+ // FIXME(linux) : Somehow we cannot include headers correctly in glibc 2.30.
3869
3869
// So let's ignore for now and re-visit later.
3870
3870
// Probably related: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91085
3871
3871
"statx" => true ,
@@ -3885,49 +3885,49 @@ fn test_linux(target: &str) {
3885
3885
"sctp_initmsg" | "sctp_sndrcvinfo" | "sctp_sndinfo" | "sctp_rcvinfo"
3886
3886
| "sctp_nxtinfo" | "sctp_prinfo" | "sctp_authinfo" => true ,
3887
3887
3888
- // FIXME: requires >= 6.1 kernel headers
3888
+ // FIXME(linux) : requires >= 6.1 kernel headers
3889
3889
"canxl_frame" => true ,
3890
3890
3891
- // FIXME: The size of `iv` has been changed since Linux v6.0
3891
+ // FIXME(linux) : The size of `iv` has been changed since Linux v6.0
3892
3892
// https://github.com/torvalds/linux/commit/94dfc73e7cf4a31da66b8843f0b9283ddd6b8381
3893
3893
"af_alg_iv" => true ,
3894
3894
3895
- // FIXME: Requires >= 5.1 kernel headers.
3895
+ // FIXME(linux) : Requires >= 5.1 kernel headers.
3896
3896
// Everything that uses install-musl.sh has 4.19 kernel headers.
3897
3897
"tls12_crypto_info_aes_gcm_256"
3898
3898
if ( aarch64 || arm || i686 || s390x || x86_64) && musl =>
3899
3899
{
3900
3900
true
3901
3901
}
3902
3902
3903
- // FIXME: Requires >= 5.11 kernel headers.
3903
+ // FIXME(linux) : Requires >= 5.11 kernel headers.
3904
3904
// Everything that uses install-musl.sh has 4.19 kernel headers.
3905
3905
"tls12_crypto_info_chacha20_poly1305"
3906
3906
if ( aarch64 || arm || i686 || s390x || x86_64) && musl =>
3907
3907
{
3908
3908
true
3909
3909
}
3910
3910
3911
- // FIXME: Requires >= 5.3 kernel headers.
3911
+ // FIXME(linux) : Requires >= 5.3 kernel headers.
3912
3912
// Everything that uses install-musl.sh has 4.19 kernel headers.
3913
3913
"xdp_options" if musl => true ,
3914
3914
3915
- // FIXME: Requires >= 5.4 kernel headers.
3915
+ // FIXME(linux) : Requires >= 5.4 kernel headers.
3916
3916
// Everything that uses install-musl.sh has 4.19 kernel headers.
3917
3917
"xdp_ring_offset" | "xdp_mmap_offsets" if musl => true ,
3918
3918
3919
- // FIXME: Requires >= 6.8 kernel headers.
3919
+ // FIXME(linux) : Requires >= 6.8 kernel headers.
3920
3920
// A field was added in 6.8.
3921
3921
// https://github.com/torvalds/linux/commit/341ac980eab90ac1f6c22ee9f9da83ed9604d899
3922
3922
// The previous version of the struct was removed in 6.11 due to a bug.
3923
3923
// https://github.com/torvalds/linux/commit/32654bbd6313b4cfc82297e6634fa9725c3c900f
3924
3924
"xdp_umem_reg" => true ,
3925
3925
3926
- // FIXME: Requires >= 5.9 kernel headers.
3926
+ // FIXME(linux) : Requires >= 5.9 kernel headers.
3927
3927
// Everything that uses install-musl.sh has 4.19 kernel headers.
3928
3928
"xdp_statistics" if musl => true ,
3929
3929
3930
- // FIXME: Requires >= 6.8 kernel headers.
3930
+ // FIXME(linux) : Requires >= 6.8 kernel headers.
3931
3931
"xsk_tx_metadata"
3932
3932
| "__c_anonymous_xsk_tx_metadata_union"
3933
3933
| "xsk_tx_metadata_request"
@@ -3951,7 +3951,7 @@ fn test_linux(target: &str) {
3951
3951
// kernel so we can drop this and test the type once this new version is used in CI.
3952
3952
"sched_attr" => true ,
3953
3953
3954
- // FIXME: Requires >= 6.9 kernel headers.
3954
+ // FIXME(linux) : Requires >= 6.9 kernel headers.
3955
3955
"epoll_params" => true ,
3956
3956
3957
3957
_ => false ,
@@ -3996,7 +3996,7 @@ fn test_linux(target: &str) {
3996
3996
}
3997
3997
}
3998
3998
if musl {
3999
- // FIXME: Requires >= 5.0 kernel headers
3999
+ // FIXME(linux) : Requires >= 5.0 kernel headers
4000
4000
if name == "SECCOMP_GET_NOTIF_SIZES"
4001
4001
|| name == "SECCOMP_FILTER_FLAG_NEW_LISTENER"
4002
4002
|| name == "SECCOMP_FILTER_FLAG_TSYNC_ESRCH"
@@ -4007,11 +4007,11 @@ fn test_linux(target: &str) {
4007
4007
{
4008
4008
return true ;
4009
4009
}
4010
- // FIXME: Requires >= 4.20 kernel headers
4010
+ // FIXME(linux) : Requires >= 4.20 kernel headers
4011
4011
if name == "PTP_SYS_OFFSET_EXTENDED" {
4012
4012
return true ;
4013
4013
}
4014
- // FIXME: Requires >= 5.4 kernel headers
4014
+ // FIXME(linux) : Requires >= 5.4 kernel headers
4015
4015
if name == "PTP_CLOCK_GETCAPS2"
4016
4016
|| name == "PTP_ENABLE_PPS2"
4017
4017
|| name == "PTP_EXTTS_REQUEST2"
@@ -4024,15 +4024,15 @@ fn test_linux(target: &str) {
4024
4024
{
4025
4025
return true ;
4026
4026
}
4027
- // FIXME: Requires >= 5.4.1 kernel headers
4027
+ // FIXME(linux) : Requires >= 5.4.1 kernel headers
4028
4028
if name. starts_with ( "J1939" )
4029
4029
|| name. starts_with ( "RTEXT_FILTER_" )
4030
4030
|| name. starts_with ( "SO_J1939" )
4031
4031
|| name. starts_with ( "SCM_J1939" )
4032
4032
{
4033
4033
return true ;
4034
4034
}
4035
- // FIXME: Requires >= 5.10 kernel headers
4035
+ // FIXME(linux) : Requires >= 5.10 kernel headers
4036
4036
if name. starts_with ( "MEMBARRIER_CMD_REGISTER" )
4037
4037
|| name. starts_with ( "MEMBARRIER_CMD_PRIVATE" )
4038
4038
{
@@ -4073,15 +4073,15 @@ fn test_linux(target: &str) {
4073
4073
// because including `linux/if_arp.h` causes some conflicts:
4074
4074
"ARPHRD_CAN" => true ,
4075
4075
4076
- // FIXME: deprecated: not available in any header
4076
+ // FIXME(deprecated) : deprecated: not available in any header
4077
4077
// See: https://github.com/rust-lang/libc/issues/1356
4078
4078
"ENOATTR" => true ,
4079
4079
4080
- // FIXME: SIGUNUSED was removed in glibc 2.26
4080
+ // FIXME(deprecated) : SIGUNUSED was removed in glibc 2.26
4081
4081
// Users should use SIGSYS instead.
4082
4082
"SIGUNUSED" => true ,
4083
4083
4084
- // FIXME: conflicts with glibc headers and is tested in
4084
+ // FIXME(linux) : conflicts with glibc headers and is tested in
4085
4085
// `linux_termios.rs` below:
4086
4086
| "BOTHER"
4087
4087
| "IBSHIFT"
@@ -4090,11 +4090,11 @@ fn test_linux(target: &str) {
4090
4090
| "TCSETSW2"
4091
4091
| "TCSETSF2" => true ,
4092
4092
4093
- // FIXME: on musl the pthread types are defined a little differently
4093
+ // FIXME(musl) : on musl the pthread types are defined a little differently
4094
4094
// - these constants are used by the glibc implementation.
4095
4095
n if musl && n. contains ( "__SIZEOF_PTHREAD" ) => true ,
4096
4096
4097
- // FIXME: It was extended to 4096 since glibc 2.31 (Linux 5.4).
4097
+ // FIXME(linux) : It was extended to 4096 since glibc 2.31 (Linux 5.4).
4098
4098
// We should do so after a while.
4099
4099
"SOMAXCONN" if gnu => true ,
4100
4100
@@ -4106,37 +4106,37 @@ fn test_linux(target: &str) {
4106
4106
| "IPPROTO_ETHERNET"
4107
4107
| "IPPROTO_MPTCP" => true ,
4108
4108
4109
- // FIXME: Not yet implemented on sparc64
4109
+ // FIXME(linux) : Not yet implemented on sparc64
4110
4110
"SYS_clone3" if sparc64 => true ,
4111
4111
4112
- // FIXME: Not defined on ARM, gnueabihf, musl, PowerPC, riscv64, s390x, and sparc64.
4112
+ // FIXME(linux) : Not defined on ARM, gnueabihf, musl, PowerPC, riscv64, s390x, and sparc64.
4113
4113
"SYS_memfd_secret" if arm | gnueabihf | musl | ppc | riscv64 | s390x | sparc64 => true ,
4114
4114
4115
- // FIXME: Added in Linux 5.16
4115
+ // FIXME(linux) : Added in Linux 5.16
4116
4116
// https://github.com/torvalds/linux/commit/039c0ec9bb77446d7ada7f55f90af9299b28ca49
4117
4117
"SYS_futex_waitv" => true ,
4118
4118
4119
- // FIXME: Added in Linux 5.17
4119
+ // FIXME(linux) : Added in Linux 5.17
4120
4120
// https://github.com/torvalds/linux/commit/c6018b4b254971863bd0ad36bb5e7d0fa0f0ddb0
4121
4121
"SYS_set_mempolicy_home_node" => true ,
4122
4122
4123
- // FIXME: Added in Linux 5.18
4123
+ // FIXME(linux) : Added in Linux 5.18
4124
4124
// https://github.com/torvalds/linux/commit/8b5413647262dda8d8d0e07e14ea1de9ac7cf0b2
4125
4125
"NFQA_PRIORITY" => true ,
4126
4126
4127
- // FIXME: requires more recent kernel headers on CI
4127
+ // FIXME(linux) : requires more recent kernel headers on CI
4128
4128
| "UINPUT_VERSION"
4129
4129
| "SW_MAX"
4130
4130
| "SW_CNT"
4131
4131
if ppc64 || riscv64 => true ,
4132
4132
4133
- // FIXME: requires more recent kernel headers on CI
4133
+ // FIXME(linux) : requires more recent kernel headers on CI
4134
4134
| "MFD_EXEC"
4135
4135
| "MFD_NOEXEC_SEAL"
4136
4136
| "SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV"
4137
4137
if sparc64 => true ,
4138
4138
4139
- // FIXME: Not currently available in headers on ARM and musl.
4139
+ // FIXME(linux) : Not currently available in headers on ARM and musl.
4140
4140
"NETLINK_GET_STRICT_CHK" if arm => true ,
4141
4141
4142
4142
// Skip as this signal codes and trap reasons need newer headers
0 commit comments