Skip to content

Commit afbf998

Browse files
committed
chore: add labels to FIXMEs
1 parent 8b69878 commit afbf998

File tree

3 files changed

+52
-48
lines changed

3 files changed

+52
-48
lines changed

libc-test/build.rs

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

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

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

29662966
// No epoll support
@@ -3016,7 +3016,7 @@ fn test_emscripten(target: &str) {
30163016
(struct_ == "siginfo_t" && field == "_pad") ||
30173017
// musl names this __dummy1 but it's still there
30183018
(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`,
30203020
// while other fields become reserved.
30213021
(struct_ == "sched_param" && [
30223022
"sched_ss_low_priority",
@@ -3183,7 +3183,7 @@ fn test_neutrino(target: &str) {
31833183

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

@@ -3201,7 +3201,7 @@ fn test_neutrino(target: &str) {
32013201
match ty {
32023202
"Elf64_Phdr" | "Elf32_Phdr" => true,
32033203

3204-
// FIXME: This is actually a union, not a struct
3204+
// FIXME(union): This is actually a union, not a struct
32053205
"sigval" => true,
32063206

32073207
// union
@@ -3232,7 +3232,7 @@ fn test_neutrino(target: &str) {
32323232
// wrong signature of callback ptr
32333233
"__cxa_atexit" => true,
32343234

3235-
// FIXME: Our API is unsound. The Rust API allows aliasing
3235+
// FIXME(ctest): Our API is unsound. The Rust API allows aliasing
32363236
// pointers, but the C API requires pointers not to alias.
32373237
// We should probably be at least using `&`/`&mut` here, see:
32383238
// https://github.com/gnzlbg/ctest/issues/68
@@ -3342,15 +3342,15 @@ fn test_vxworks(target: &str) {
33423342
"pathLib.h",
33433343
"mqueue.h",
33443344
}
3345-
// FIXME
3345+
// FIXME(vxworks)
33463346
cfg.skip_const(move |name| match name {
33473347
// sighandler_t weirdness
33483348
"SIG_DFL" | "SIG_ERR" | "SIG_IGN"
33493349
// This is not defined in vxWorks
33503350
| "RTLD_DEFAULT" => true,
33513351
_ => false,
33523352
});
3353-
// FIXME
3353+
// FIXME(vxworks)
33543354
cfg.skip_type(move |ty| match ty {
33553355
"stat64" | "sighandler_t" | "off64_t" => true,
33563356
_ => false,
@@ -3373,7 +3373,7 @@ fn test_vxworks(target: &str) {
33733373
t => t.to_string(),
33743374
});
33753375

3376-
// FIXME
3376+
// FIXME(vxworks)
33773377
cfg.skip_fn(move |name| match name {
33783378
// sigval
33793379
"sigqueue" | "_sigqueue"
@@ -3586,7 +3586,7 @@ fn test_linux(target: &str) {
35863586
"linux/netfilter_ipv6/ip6_tables.h",
35873587
"linux/netlink.h",
35883588
"linux/openat2.h",
3589-
// FIXME: some items require Linux >= 5.6:
3589+
// FIXME(linux): some items require Linux >= 5.6:
35903590
"linux/ptp_clock.h",
35913591
"linux/ptrace.h",
35923592
"linux/quota.h",
@@ -3649,7 +3649,7 @@ fn test_linux(target: &str) {
36493649
s if s.ends_with("_nsec") && struct_.starts_with("stat") => {
36503650
s.replace("e_nsec", ".tv_nsec")
36513651
}
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
36533653
// it is only a u64 because we only expose one field
36543654
// http://man7.org/linux/man-pages/man2/epoll_wait.2.html
36553655
"u64" if struct_ == "epoll_event" => "data.u64".to_string(),
@@ -3669,7 +3669,7 @@ fn test_linux(target: &str) {
36693669
});
36703670

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

@@ -3716,7 +3716,7 @@ fn test_linux(target: &str) {
37163716
return true;
37173717
}
37183718

3719-
// FIXME: CI has old headers
3719+
// FIXME(linux): CI has old headers
37203720
if ty == "ptp_sys_offset_extended" {
37213721
return true;
37223722
}
@@ -3726,7 +3726,7 @@ fn test_linux(target: &str) {
37263726
return true;
37273727
}
37283728

3729-
// FIXME: sparc64 CI has old headers
3729+
// FIXME(linux): sparc64 CI has old headers
37303730
if sparc64 && (ty == "uinput_ff_erase" || ty == "uinput_abs_setup") {
37313731
return true;
37323732
}
@@ -3749,7 +3749,7 @@ fn test_linux(target: &str) {
37493749
return true;
37503750
}
37513751

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.
37533753
if musl && ty == "fanout_args" {
37543754
return true;
37553755
}
@@ -3767,21 +3767,21 @@ fn test_linux(target: &str) {
37673767
// which is absent in glibc, has to be defined.
37683768
"__timeval" => true,
37693769

3770-
// FIXME: This is actually a union, not a struct
3770+
// FIXME(union): This is actually a union, not a struct
37713771
"sigval" => true,
37723772

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

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

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

3804-
// FIXME: requires >= 6.1 kernel headers
3804+
// FIXME(linux): requires >= 6.1 kernel headers
38053805
"canxl_frame" => true,
38063806

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

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

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

3827-
// FIXME: Requires >= 5.3 kernel headers.
3827+
// FIXME(linux): Requires >= 5.3 kernel headers.
38283828
// Everything that uses install-musl.sh has 4.19 kernel headers.
38293829
"xdp_options" if musl => true,
38303830

3831-
// FIXME: Requires >= 5.4 kernel headers.
3831+
// FIXME(linux): Requires >= 5.4 kernel headers.
38323832
// Everything that uses install-musl.sh has 4.19 kernel headers.
38333833
"xdp_ring_offset" | "xdp_mmap_offsets" if musl => true,
38343834

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

3842-
// FIXME: Requires >= 5.9 kernel headers.
3842+
// FIXME(linux): Requires >= 5.9 kernel headers.
38433843
// Everything that uses install-musl.sh has 4.19 kernel headers.
38443844
"xdp_statistics" if musl => true,
38453845

3846-
// FIXME: Requires >= 6.8 kernel headers.
3846+
// FIXME(linux): Requires >= 6.8 kernel headers.
38473847
"xsk_tx_metadata"
38483848
| "__c_anonymous_xsk_tx_metadata_union"
38493849
| "xsk_tx_metadata_request"
@@ -3867,7 +3867,7 @@ fn test_linux(target: &str) {
38673867
// kernel so we can drop this and test the type once this new version is used in CI.
38683868
"sched_attr" => true,
38693869

3870-
// FIXME: Requires >= 6.9 kernel headers.
3870+
// FIXME(linux): Requires >= 6.9 kernel headers.
38713871
"epoll_params" => true,
38723872

38733873
_ => false,
@@ -3912,7 +3912,7 @@ fn test_linux(target: &str) {
39123912
}
39133913
}
39143914
if musl {
3915-
// FIXME: Requires >= 5.0 kernel headers
3915+
// FIXME(linux): Requires >= 5.0 kernel headers
39163916
if name == "SECCOMP_GET_NOTIF_SIZES"
39173917
|| name == "SECCOMP_FILTER_FLAG_NEW_LISTENER"
39183918
|| name == "SECCOMP_FILTER_FLAG_TSYNC_ESRCH"
@@ -3923,11 +3923,11 @@ fn test_linux(target: &str) {
39233923
{
39243924
return true;
39253925
}
3926-
// FIXME: Requires >= 4.20 kernel headers
3926+
// FIXME(linux): Requires >= 4.20 kernel headers
39273927
if name == "PTP_SYS_OFFSET_EXTENDED" {
39283928
return true;
39293929
}
3930-
// FIXME: Requires >= 5.4 kernel headers
3930+
// FIXME(linux): Requires >= 5.4 kernel headers
39313931
if name == "PTP_CLOCK_GETCAPS2"
39323932
|| name == "PTP_ENABLE_PPS2"
39333933
|| name == "PTP_EXTTS_REQUEST2"
@@ -3940,15 +3940,15 @@ fn test_linux(target: &str) {
39403940
{
39413941
return true;
39423942
}
3943-
// FIXME: Requires >= 5.4.1 kernel headers
3943+
// FIXME(linux): Requires >= 5.4.1 kernel headers
39443944
if name.starts_with("J1939")
39453945
|| name.starts_with("RTEXT_FILTER_")
39463946
|| name.starts_with("SO_J1939")
39473947
|| name.starts_with("SCM_J1939")
39483948
{
39493949
return true;
39503950
}
3951-
// FIXME: Requires >= 5.10 kernel headers
3951+
// FIXME(linux): Requires >= 5.10 kernel headers
39523952
if name.starts_with("MEMBARRIER_CMD_REGISTER")
39533953
|| name.starts_with("MEMBARRIER_CMD_PRIVATE")
39543954
{
@@ -3989,15 +3989,15 @@ fn test_linux(target: &str) {
39893989
// because including `linux/if_arp.h` causes some conflicts:
39903990
"ARPHRD_CAN" => true,
39913991

3992-
// FIXME: deprecated: not available in any header
3992+
// FIXME(deprecated): deprecated: not available in any header
39933993
// See: https://github.com/rust-lang/libc/issues/1356
39943994
"ENOATTR" => true,
39953995

3996-
// FIXME: SIGUNUSED was removed in glibc 2.26
3996+
// FIXME(linux): SIGUNUSED was removed in glibc 2.26
39973997
// Users should use SIGSYS instead.
39983998
"SIGUNUSED" => true,
39993999

4000-
// FIXME: conflicts with glibc headers and is tested in
4000+
// FIXME(linux): conflicts with glibc headers and is tested in
40014001
// `linux_termios.rs` below:
40024002
| "BOTHER"
40034003
| "IBSHIFT"
@@ -4006,11 +4006,11 @@ fn test_linux(target: &str) {
40064006
| "TCSETSW2"
40074007
| "TCSETSF2" => true,
40084008

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

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

@@ -4022,34 +4022,34 @@ fn test_linux(target: &str) {
40224022
| "IPPROTO_ETHERNET"
40234023
| "IPPROTO_MPTCP" => true,
40244024

4025-
// FIXME: Not yet implemented on sparc64
4025+
// FIXME(linux): Not yet implemented on sparc64
40264026
"SYS_clone3" if sparc64 => true,
40274027

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

4031-
// FIXME: Added in Linux 5.16
4031+
// FIXME(linux): Added in Linux 5.16
40324032
// https://github.com/torvalds/linux/commit/039c0ec9bb77446d7ada7f55f90af9299b28ca49
40334033
"SYS_futex_waitv" => true,
40344034

4035-
// FIXME: Added in Linux 5.17
4035+
// FIXME(linux): Added in Linux 5.17
40364036
// https://github.com/torvalds/linux/commit/c6018b4b254971863bd0ad36bb5e7d0fa0f0ddb0
40374037
"SYS_set_mempolicy_home_node" => true,
40384038

4039-
// FIXME: Added in Linux 5.18
4039+
// FIXME(linux): Added in Linux 5.18
40404040
// https://github.com/torvalds/linux/commit/8b5413647262dda8d8d0e07e14ea1de9ac7cf0b2
40414041
"NFQA_PRIORITY" => true,
40424042

4043-
// FIXME: requires more recent kernel headers on CI
4043+
// FIXME(linux): requires more recent kernel headers on CI
40444044
| "UINPUT_VERSION"
40454045
| "SW_MAX"
40464046
| "SW_CNT"
40474047
if ppc64 || riscv64 => true,
40484048

4049-
// FIXME: requires more recent kernel headers on CI
4049+
// FIXME(linux): requires more recent kernel headers on CI
40504050
"SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV" if sparc64 => true,
40514051

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

40554055
// kernel constants not available in uclibc 1.0.34

src/windows/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ impl Clone for FILE {
264264
}
265265
}
266266
#[cfg_attr(feature = "extra_traits", derive(Debug))]
267-
pub enum fpos_t {} // FIXME: fill this out with a struct
267+
pub enum fpos_t {} // FIXME(windows): fill this out with a struct
268268
impl Copy for fpos_t {}
269269
impl Clone for fpos_t {
270270
fn clone(&self) -> fpos_t {

triagebot.toml

+4
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,7 @@ cc = ["@semarie"]
177177
[mentions."src/unix/solarish"]
178178
message = "Some changes occurred in solarish module"
179179
cc = ["@jclulow", "@pfmooney"]
180+
181+
[mentions."src/unix/linux_like/android"]
182+
message = "Some changes occurred in the Android module"
183+
cc = ["@maurer"]

0 commit comments

Comments
 (0)