Skip to content

Commit 71d6ea8

Browse files
committed
chore: add labels to FIXMEs
1 parent 1f68d57 commit 71d6ea8

File tree

1 file changed

+47
-47
lines changed

1 file changed

+47
-47
lines changed

libc-test/build.rs

+47-47
Original file line numberDiff line numberDiff line change
@@ -2959,11 +2959,11 @@ fn test_emscripten(target: &str) {
29592959

29602960
cfg.skip_const(move |name| {
29612961
match name {
2962-
// FIXME: deprecated - SIGNUNUSED was removed in glibc 2.26
2962+
// FIXME(deprecated): deprecated - SIGNUNUSED was removed in glibc 2.26
29632963
// users should use SIGSYS instead
29642964
"SIGUNUSED" => true,
29652965

2966-
// FIXME: emscripten uses different constants to constructs these
2966+
// FIXME(emscripten): emscripten uses different constants to constructs these
29672967
n if n.contains("__SIZEOF_PTHREAD") => true,
29682968

29692969
// No epoll support
@@ -3019,7 +3019,7 @@ fn test_emscripten(target: &str) {
30193019
(struct_ == "siginfo_t" && field == "_pad") ||
30203020
// musl names this __dummy1 but it's still there
30213021
(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`,
30233023
// while other fields become reserved.
30243024
(struct_ == "sched_param" && [
30253025
"sched_ss_low_priority",
@@ -3186,7 +3186,7 @@ fn test_neutrino(target: &str) {
31863186

31873187
cfg.skip_type(move |ty| {
31883188
match ty {
3189-
// FIXME: `sighandler_t` type is incorrect, see:
3189+
// FIXME(neutrino): `sighandler_t` type is incorrect, see:
31903190
// https://github.com/rust-lang/libc/issues/1359
31913191
"sighandler_t" => true,
31923192

@@ -3204,7 +3204,7 @@ fn test_neutrino(target: &str) {
32043204
match ty {
32053205
"Elf64_Phdr" | "Elf32_Phdr" => true,
32063206

3207-
// FIXME: This is actually a union, not a struct
3207+
// FIXME(union): This is actually a union, not a struct
32083208
"sigval" => true,
32093209

32103210
// union
@@ -3235,7 +3235,7 @@ fn test_neutrino(target: &str) {
32353235
// wrong signature of callback ptr
32363236
"__cxa_atexit" => true,
32373237

3238-
// FIXME: Our API is unsound. The Rust API allows aliasing
3238+
// FIXME(ctest): Our API is unsound. The Rust API allows aliasing
32393239
// pointers, but the C API requires pointers not to alias.
32403240
// We should probably be at least using `&`/`&mut` here, see:
32413241
// https://github.com/gnzlbg/ctest/issues/68
@@ -3345,15 +3345,15 @@ fn test_vxworks(target: &str) {
33453345
"pathLib.h",
33463346
"mqueue.h",
33473347
}
3348-
// FIXME
3348+
// FIXME(vxworks)
33493349
cfg.skip_const(move |name| match name {
33503350
// sighandler_t weirdness
33513351
"SIG_DFL" | "SIG_ERR" | "SIG_IGN"
33523352
// This is not defined in vxWorks
33533353
| "RTLD_DEFAULT" => true,
33543354
_ => false,
33553355
});
3356-
// FIXME
3356+
// FIXME(vxworks)
33573357
cfg.skip_type(move |ty| match ty {
33583358
"stat64" | "sighandler_t" | "off64_t" => true,
33593359
_ => false,
@@ -3376,7 +3376,7 @@ fn test_vxworks(target: &str) {
33763376
t => t.to_string(),
33773377
});
33783378

3379-
// FIXME
3379+
// FIXME(vxworks)
33803380
cfg.skip_fn(move |name| match name {
33813381
// sigval
33823382
"sigqueue" | "_sigqueue"
@@ -3589,7 +3589,7 @@ fn test_linux(target: &str) {
35893589
"linux/netfilter_ipv6/ip6_tables.h",
35903590
"linux/netlink.h",
35913591
"linux/openat2.h",
3592-
// FIXME: some items require Linux >= 5.6:
3592+
// FIXME(linux): some items require Linux >= 5.6:
35933593
"linux/ptp_clock.h",
35943594
"linux/ptrace.h",
35953595
"linux/quota.h",
@@ -3652,7 +3652,7 @@ fn test_linux(target: &str) {
36523652
s if s.ends_with("_nsec") && struct_.starts_with("stat") => {
36533653
s.replace("e_nsec", ".tv_nsec")
36543654
}
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
36563656
// it is only a u64 because we only expose one field
36573657
// http://man7.org/linux/man-pages/man2/epoll_wait.2.html
36583658
"u64" if struct_ == "epoll_event" => "data.u64".to_string(),
@@ -3672,7 +3672,7 @@ fn test_linux(target: &str) {
36723672
});
36733673

36743674
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.
36763676
// also apparently some glibc versions
36773677
if ty == "Elf32_Relr" || ty == "Elf64_Relr" {
36783678
return true;
@@ -3681,7 +3681,7 @@ fn test_linux(target: &str) {
36813681
return true;
36823682
}
36833683
match ty {
3684-
// FIXME: `sighandler_t` type is incorrect, see:
3684+
// FIXME(linux): `sighandler_t` type is incorrect, see:
36853685
// https://github.com/rust-lang/libc/issues/1359
36863686
"sighandler_t" => true,
36873687

@@ -3719,7 +3719,7 @@ fn test_linux(target: &str) {
37193719
return true;
37203720
}
37213721

3722-
// FIXME: CI has old headers
3722+
// FIXME(linux): CI has old headers
37233723
if ty == "ptp_sys_offset_extended" {
37243724
return true;
37253725
}
@@ -3729,7 +3729,7 @@ fn test_linux(target: &str) {
37293729
return true;
37303730
}
37313731

3732-
// FIXME: sparc64 CI has old headers
3732+
// FIXME(linux): sparc64 CI has old headers
37333733
if sparc64 && (ty == "uinput_ff_erase" || ty == "uinput_abs_setup") {
37343734
return true;
37353735
}
@@ -3752,7 +3752,7 @@ fn test_linux(target: &str) {
37523752
return true;
37533753
}
37543754

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.
37563756
if musl && ty == "fanout_args" {
37573757
return true;
37583758
}
@@ -3770,21 +3770,21 @@ fn test_linux(target: &str) {
37703770
// which is absent in glibc, has to be defined.
37713771
"__timeval" => true,
37723772

3773-
// FIXME: This is actually a union, not a struct
3773+
// FIXME(union): This is actually a union, not a struct
37743774
"sigval" => true,
37753775

37763776
// This type is tested in the `linux_termios.rs` file since there
37773777
// are header conflicts when including them with all the other
37783778
// structs.
37793779
"termios2" => true,
37803780

3781-
// FIXME: remove once we set minimum supported glibc version.
3781+
// FIXME(linux): remove once we set minimum supported glibc version.
37823782
// ucontext_t added a new field as of glibc 2.28; our struct definition is
37833783
// conservative and omits the field, but that means the size doesn't match for newer
37843784
// glibcs (see https://github.com/rust-lang/libc/issues/1410)
37853785
"ucontext_t" if gnu => true,
37863786

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.
37883788
// So let's ignore for now and re-visit later.
37893789
// Probably related: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91085
37903790
"statx" => true,
@@ -3804,49 +3804,49 @@ fn test_linux(target: &str) {
38043804
"sctp_initmsg" | "sctp_sndrcvinfo" | "sctp_sndinfo" | "sctp_rcvinfo"
38053805
| "sctp_nxtinfo" | "sctp_prinfo" | "sctp_authinfo" => true,
38063806

3807-
// FIXME: requires >= 6.1 kernel headers
3807+
// FIXME(linux): requires >= 6.1 kernel headers
38083808
"canxl_frame" => true,
38093809

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
38113811
// https://github.com/torvalds/linux/commit/94dfc73e7cf4a31da66b8843f0b9283ddd6b8381
38123812
"af_alg_iv" => true,
38133813

3814-
// FIXME: Requires >= 5.1 kernel headers.
3814+
// FIXME(linux): Requires >= 5.1 kernel headers.
38153815
// Everything that uses install-musl.sh has 4.19 kernel headers.
38163816
"tls12_crypto_info_aes_gcm_256"
38173817
if (aarch64 || arm || i686 || s390x || x86_64) && musl =>
38183818
{
38193819
true
38203820
}
38213821

3822-
// FIXME: Requires >= 5.11 kernel headers.
3822+
// FIXME(linux): Requires >= 5.11 kernel headers.
38233823
// Everything that uses install-musl.sh has 4.19 kernel headers.
38243824
"tls12_crypto_info_chacha20_poly1305"
38253825
if (aarch64 || arm || i686 || s390x || x86_64) && musl =>
38263826
{
38273827
true
38283828
}
38293829

3830-
// FIXME: Requires >= 5.3 kernel headers.
3830+
// FIXME(linux): Requires >= 5.3 kernel headers.
38313831
// Everything that uses install-musl.sh has 4.19 kernel headers.
38323832
"xdp_options" if musl => true,
38333833

3834-
// FIXME: Requires >= 5.4 kernel headers.
3834+
// FIXME(linux): Requires >= 5.4 kernel headers.
38353835
// Everything that uses install-musl.sh has 4.19 kernel headers.
38363836
"xdp_ring_offset" | "xdp_mmap_offsets" if musl => true,
38373837

3838-
// FIXME: Requires >= 6.8 kernel headers.
3838+
// FIXME(linux): Requires >= 6.8 kernel headers.
38393839
// A field was added in 6.8.
38403840
// https://github.com/torvalds/linux/commit/341ac980eab90ac1f6c22ee9f9da83ed9604d899
38413841
// The previous version of the struct was removed in 6.11 due to a bug.
38423842
// https://github.com/torvalds/linux/commit/32654bbd6313b4cfc82297e6634fa9725c3c900f
38433843
"xdp_umem_reg" => true,
38443844

3845-
// FIXME: Requires >= 5.9 kernel headers.
3845+
// FIXME(linux): Requires >= 5.9 kernel headers.
38463846
// Everything that uses install-musl.sh has 4.19 kernel headers.
38473847
"xdp_statistics" if musl => true,
38483848

3849-
// FIXME: Requires >= 6.8 kernel headers.
3849+
// FIXME(linux): Requires >= 6.8 kernel headers.
38503850
"xsk_tx_metadata"
38513851
| "__c_anonymous_xsk_tx_metadata_union"
38523852
| "xsk_tx_metadata_request"
@@ -3870,7 +3870,7 @@ fn test_linux(target: &str) {
38703870
// kernel so we can drop this and test the type once this new version is used in CI.
38713871
"sched_attr" => true,
38723872

3873-
// FIXME: Requires >= 6.9 kernel headers.
3873+
// FIXME(linux): Requires >= 6.9 kernel headers.
38743874
"epoll_params" => true,
38753875

38763876
_ => false,
@@ -3915,7 +3915,7 @@ fn test_linux(target: &str) {
39153915
}
39163916
}
39173917
if musl {
3918-
// FIXME: Requires >= 5.0 kernel headers
3918+
// FIXME(linux): Requires >= 5.0 kernel headers
39193919
if name == "SECCOMP_GET_NOTIF_SIZES"
39203920
|| name == "SECCOMP_FILTER_FLAG_NEW_LISTENER"
39213921
|| name == "SECCOMP_FILTER_FLAG_TSYNC_ESRCH"
@@ -3926,11 +3926,11 @@ fn test_linux(target: &str) {
39263926
{
39273927
return true;
39283928
}
3929-
// FIXME: Requires >= 4.20 kernel headers
3929+
// FIXME(linux): Requires >= 4.20 kernel headers
39303930
if name == "PTP_SYS_OFFSET_EXTENDED" {
39313931
return true;
39323932
}
3933-
// FIXME: Requires >= 5.4 kernel headers
3933+
// FIXME(linux): Requires >= 5.4 kernel headers
39343934
if name == "PTP_CLOCK_GETCAPS2"
39353935
|| name == "PTP_ENABLE_PPS2"
39363936
|| name == "PTP_EXTTS_REQUEST2"
@@ -3943,15 +3943,15 @@ fn test_linux(target: &str) {
39433943
{
39443944
return true;
39453945
}
3946-
// FIXME: Requires >= 5.4.1 kernel headers
3946+
// FIXME(linux): Requires >= 5.4.1 kernel headers
39473947
if name.starts_with("J1939")
39483948
|| name.starts_with("RTEXT_FILTER_")
39493949
|| name.starts_with("SO_J1939")
39503950
|| name.starts_with("SCM_J1939")
39513951
{
39523952
return true;
39533953
}
3954-
// FIXME: Requires >= 5.10 kernel headers
3954+
// FIXME(linux): Requires >= 5.10 kernel headers
39553955
if name.starts_with("MEMBARRIER_CMD_REGISTER")
39563956
|| name.starts_with("MEMBARRIER_CMD_PRIVATE")
39573957
{
@@ -3992,15 +3992,15 @@ fn test_linux(target: &str) {
39923992
// because including `linux/if_arp.h` causes some conflicts:
39933993
"ARPHRD_CAN" => true,
39943994

3995-
// FIXME: deprecated: not available in any header
3995+
// FIXME(deprecated): deprecated: not available in any header
39963996
// See: https://github.com/rust-lang/libc/issues/1356
39973997
"ENOATTR" => true,
39983998

3999-
// FIXME: SIGUNUSED was removed in glibc 2.26
3999+
// FIXME(linux): SIGUNUSED was removed in glibc 2.26
40004000
// Users should use SIGSYS instead.
40014001
"SIGUNUSED" => true,
40024002

4003-
// FIXME: conflicts with glibc headers and is tested in
4003+
// FIXME(linux): conflicts with glibc headers and is tested in
40044004
// `linux_termios.rs` below:
40054005
| "BOTHER"
40064006
| "IBSHIFT"
@@ -4009,11 +4009,11 @@ fn test_linux(target: &str) {
40094009
| "TCSETSW2"
40104010
| "TCSETSF2" => true,
40114011

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
40134013
// - these constants are used by the glibc implementation.
40144014
n if musl && n.contains("__SIZEOF_PTHREAD") => true,
40154015

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).
40174017
// We should do so after a while.
40184018
"SOMAXCONN" if gnu => true,
40194019

@@ -4025,34 +4025,34 @@ fn test_linux(target: &str) {
40254025
| "IPPROTO_ETHERNET"
40264026
| "IPPROTO_MPTCP" => true,
40274027

4028-
// FIXME: Not yet implemented on sparc64
4028+
// FIXME(linux): Not yet implemented on sparc64
40294029
"SYS_clone3" if sparc64 => true,
40304030

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.
40324032
"SYS_memfd_secret" if arm | gnueabihf | musl | ppc | riscv64 | s390x | sparc64 => true,
40334033

4034-
// FIXME: Added in Linux 5.16
4034+
// FIXME(linux): Added in Linux 5.16
40354035
// https://github.com/torvalds/linux/commit/039c0ec9bb77446d7ada7f55f90af9299b28ca49
40364036
"SYS_futex_waitv" => true,
40374037

4038-
// FIXME: Added in Linux 5.17
4038+
// FIXME(linux): Added in Linux 5.17
40394039
// https://github.com/torvalds/linux/commit/c6018b4b254971863bd0ad36bb5e7d0fa0f0ddb0
40404040
"SYS_set_mempolicy_home_node" => true,
40414041

4042-
// FIXME: Added in Linux 5.18
4042+
// FIXME(linux): Added in Linux 5.18
40434043
// https://github.com/torvalds/linux/commit/8b5413647262dda8d8d0e07e14ea1de9ac7cf0b2
40444044
"NFQA_PRIORITY" => true,
40454045

4046-
// FIXME: requires more recent kernel headers on CI
4046+
// FIXME(linux): requires more recent kernel headers on CI
40474047
| "UINPUT_VERSION"
40484048
| "SW_MAX"
40494049
| "SW_CNT"
40504050
if ppc64 || riscv64 => true,
40514051

4052-
// FIXME: requires more recent kernel headers on CI
4052+
// FIXME(linux): requires more recent kernel headers on CI
40534053
"SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV" if sparc64 => true,
40544054

4055-
// FIXME: Not currently available in headers on ARM and musl.
4055+
// FIXME(linux): Not currently available in headers on ARM and musl.
40564056
"NETLINK_GET_STRICT_CHK" if arm => true,
40574057

40584058
// kernel constants not available in uclibc 1.0.34

0 commit comments

Comments
 (0)