Skip to content

Commit

Permalink
chore: add labels to FIXMEs
Browse files Browse the repository at this point in the history
  • Loading branch information
lvllvl committed Jan 5, 2025
1 parent a7a1e6f commit 769702c
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 440 deletions.
392 changes: 0 additions & 392 deletions fixmes.csv

This file was deleted.

12 changes: 6 additions & 6 deletions src/unix/bsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ cfg_if! {
f.debug_struct("sockaddr_un")
.field("sun_len", &self.sun_len)
.field("sun_family", &self.sun_family)
// FIXME: .field("sun_path", &self.sun_path)
// FIXME(bsd): .field("sun_path", &self.sun_path)
.finish()
}
}
Expand Down Expand Up @@ -232,11 +232,11 @@ cfg_if! {
impl fmt::Debug for utsname {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("utsname")
// FIXME: .field("sysname", &self.sysname)
// FIXME: .field("nodename", &self.nodename)
// FIXME: .field("release", &self.release)
// FIXME: .field("version", &self.version)
// FIXME: .field("machine", &self.machine)
// FIXME(bsd): .field("sysname", &self.sysname)
// FIXME(bsd): .field("nodename", &self.nodename)
// FIXME(bsd): .field("release", &self.release)
// FIXME(bsd): .field("version", &self.version)
// FIXME(bsd): .field("machine", &self.machine)
.finish()
}
}
Expand Down
20 changes: 10 additions & 10 deletions src/unix/bsd/netbsdlike/openbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ cfg_if! {
.field("d_reclen", &self.d_reclen)
.field("d_type", &self.d_type)
.field("d_namlen", &self.d_namlen)
// FIXME: .field("d_name", &self.d_name)
// FIXME(openbsd): .field("d_name", &self.d_name)
.finish()
}
}
Expand Down Expand Up @@ -873,8 +873,8 @@ cfg_if! {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("lastlog")
.field("ll_time", &self.ll_time)
// FIXME: .field("ll_line", &self.ll_line)
// FIXME: .field("ll_host", &self.ll_host)
// FIXME(openbsd): .field("ll_line", &self.ll_line)
// FIXME(openbsd): .field("ll_host", &self.ll_host)
.finish()
}
}
Expand Down Expand Up @@ -913,9 +913,9 @@ cfg_if! {
impl fmt::Debug for utmp {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("utmp")
// FIXME: .field("ut_line", &self.ut_line)
// FIXME: .field("ut_name", &self.ut_name)
// FIXME: .field("ut_host", &self.ut_host)
// FIXME(openbsd): .field("ut_line", &self.ut_line)
// FIXME(openbsd): .field("ut_name", &self.ut_name)
// FIXME(openbsd): .field("ut_host", &self.ut_host)
.field("ut_time", &self.ut_time)
.finish()
}
Expand Down Expand Up @@ -1048,10 +1048,10 @@ cfg_if! {
.field("f_namemax", &self.f_namemax)
.field("f_owner", &self.f_owner)
.field("f_ctime", &self.f_ctime)
// FIXME: .field("f_fstypename", &self.f_fstypename)
// FIXME: .field("f_mntonname", &self.f_mntonname)
// FIXME: .field("f_mntfromname", &self.f_mntfromname)
// FIXME: .field("f_mntfromspec", &self.f_mntfromspec)
// FIXME(openbsd): .field("f_fstypename", &self.f_fstypename)
// FIXME(openbsd): .field("f_mntonname", &self.f_mntonname)
// FIXME(openbsd): .field("f_mntfromname", &self.f_mntfromname)
// FIXME(openbsd): .field("f_mntfromspec", &self.f_mntfromspec)
.field("mount_info", &self.mount_info)
.finish()
}
Expand Down
4 changes: 2 additions & 2 deletions src/unix/bsd/netbsdlike/openbsd/x86_64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ cfg_if! {
.field("fx_rdp", &{ self.fx_rdp })
.field("fx_mxcsr", &{ self.fx_mxcsr })
.field("fx_mxcsr_mask", &{ self.fx_mxcsr_mask })
// FIXME: .field("fx_st", &{self.fx_st})
// FIXME: .field("fx_xmm", &{self.fx_xmm})
// FIXME(openbsd): .field("fx_st", &{self.fx_st})
// FIXME(openbsd): .field("fx_xmm", &{self.fx_xmm})
.finish()
}
}
Expand Down
10 changes: 5 additions & 5 deletions src/unix/haiku/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ cfg_if! {
f.debug_struct("sockaddr_un")
.field("sun_len", &self.sun_len)
.field("sun_family", &self.sun_family)
// FIXME: .field("sun_path", &self.sun_path)
// FIXME(haiku): .field("sun_path", &self.sun_path)
.finish()
}
}
Expand Down Expand Up @@ -599,7 +599,7 @@ cfg_if! {
.field("ss_family", &self.ss_family)
.field("__ss_pad1", &self.__ss_pad1)
.field("__ss_pad2", &self.__ss_pad2)
// FIXME: .field("__ss_pad3", &self.__ss_pad3)
// FIXME(haiku): .field("__ss_pad3", &self.__ss_pad3)
.finish()
}
}
Expand Down Expand Up @@ -636,7 +636,7 @@ cfg_if! {
.field("d_ino", &self.d_ino)
.field("d_pino", &self.d_pino)
.field("d_reclen", &self.d_reclen)
// FIXME: .field("d_name", &self.d_name)
// FIXME(haiku): .field("d_name", &self.d_name)
.finish()
}
}
Expand Down Expand Up @@ -868,7 +868,7 @@ pub const LC_NUMERIC: c_int = 4;
pub const LC_TIME: c_int = 5;
pub const LC_MESSAGES: c_int = 6;

// FIXME: Haiku does not have MAP_FILE, but library/std/os.rs requires it
// FIXME(haiku): Haiku does not have MAP_FILE, but library/std/os.rs requires it
pub const MAP_FILE: c_int = 0x00;
pub const MAP_SHARED: c_int = 0x01;
pub const MAP_PRIVATE: c_int = 0x02;
Expand Down Expand Up @@ -1301,7 +1301,7 @@ pub const PTHREAD_MUTEX_NORMAL: c_int = 1;
pub const PTHREAD_MUTEX_ERRORCHECK: c_int = 2;
pub const PTHREAD_MUTEX_RECURSIVE: c_int = 3;

pub const FIOCLEX: c_ulong = 0; // FIXME: does not exist on Haiku!
pub const FIOCLEX: c_ulong = 0; // FIXME(haiku): does not exist on Haiku!

pub const RUSAGE_CHILDREN: c_int = -1;

Expand Down
10 changes: 5 additions & 5 deletions src/unix/haiku/x86_64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ cfg_if! {
.field("rdp", &self.rdp)
.field("mxcsr", &self.mxcsr)
.field("mscsr_mask", &self.mscsr_mask)
// FIXME: .field("_fpreg", &self._fpreg)
// FIXME: .field("_xmm", &self._xmm)
// FIXME: .field("_reserved_416_511", &self._reserved_416_511)
// FIXME(haiku): .field("_fpreg", &self._fpreg)
// FIXME(haiku): .field("_xmm", &self._xmm)
// FIXME(haiku): .field("_reserved_416_511", &self._reserved_416_511)
.finish()
}
}
Expand Down Expand Up @@ -133,7 +133,7 @@ cfg_if! {
f.debug_struct("xstate_hdr")
.field("bv", &self.bv)
.field("xcomp_bv", &self.xcomp_bv)
// FIXME: .field("_reserved", &field._reserved)
// FIXME(haiku): .field("_reserved", &field._reserved)
.finish()
}
}
Expand Down Expand Up @@ -162,7 +162,7 @@ cfg_if! {
f.debug_struct("savefpu")
.field("fp_fxsave", &self.fp_fxsave)
.field("fp_xstate", &self.fp_xstate)
// FIXME: .field("_fp_ymm", &field._fp_ymm)
// FIXME(haiku): .field("_fp_ymm", &field._fp_ymm)
.finish()
}
}
Expand Down
12 changes: 6 additions & 6 deletions src/unix/nto/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ cfg_if! {
f.debug_struct("sockaddr_un")
.field("sun_len", &self.sun_len)
.field("sun_family", &self.sun_family)
// FIXME: .field("sun_path", &self.sun_path)
// FIXME(nto): .field("sun_path", &self.sun_path)
.finish()
}
}
Expand Down Expand Up @@ -1015,11 +1015,11 @@ cfg_if! {
impl fmt::Debug for utsname {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("utsname")
// FIXME: .field("sysname", &self.sysname)
// FIXME: .field("nodename", &self.nodename)
// FIXME: .field("release", &self.release)
// FIXME: .field("version", &self.version)
// FIXME: .field("machine", &self.machine)
// FIXME(nto): .field("sysname", &self.sysname)
// FIXME(nto): .field("nodename", &self.nodename)
// FIXME(nto): .field("release", &self.release)
// FIXME(nto): .field("version", &self.version)
// FIXME(nto): .field("machine", &self.machine)
.finish()
}
}
Expand Down
28 changes: 14 additions & 14 deletions src/unix/solarish/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ cfg_if! {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("sockaddr_un")
.field("sun_family", &self.sun_family)
// FIXME: .field("sun_path", &self.sun_path)
// FIXME(solarish): .field("sun_path", &self.sun_path)
.finish()
}
}
Expand Down Expand Up @@ -631,11 +631,11 @@ cfg_if! {
impl fmt::Debug for utsname {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("utsname")
// FIXME: .field("sysname", &self.sysname)
// FIXME: .field("nodename", &self.nodename)
// FIXME: .field("release", &self.release)
// FIXME: .field("version", &self.version)
// FIXME: .field("machine", &self.machine)
// FIXME(solarish): .field("sysname", &self.sysname)
// FIXME(solarish): .field("nodename", &self.nodename)
// FIXME(solarish): .field("release", &self.release)
// FIXME(solarish): .field("version", &self.version)
// FIXME(solarish): .field("machine", &self.machine)
.finish()
}
}
Expand Down Expand Up @@ -690,7 +690,7 @@ cfg_if! {
.field("ss_family", &self.ss_family)
.field("__ss_pad1", &self.__ss_pad1)
.field("__ss_align", &self.__ss_align)
// FIXME: .field("__ss_pad2", &self.__ss_pad2)
// FIXME(solarish): .field("__ss_pad2", &self.__ss_pad2)
.finish()
}
}
Expand Down Expand Up @@ -739,7 +739,7 @@ cfg_if! {
&& self.si_code == other.si_code
&& self.si_errno == other.si_errno
{
// FIXME: The `si_pad` field in the 64-bit version of the struct is ignored
// FIXME(solarish): The `si_pad` field in the 64-bit version of the struct is ignored
// (for now) when doing comparisons.

let field_count = self.data_field_count();
Expand All @@ -759,7 +759,7 @@ cfg_if! {
.field("si_signo", &self.si_signo)
.field("si_code", &self.si_code)
.field("si_errno", &self.si_errno)
// FIXME: .field("__pad", &self.__pad)
// FIXME(solarish): .field("__pad", &self.__pad)
.finish()
}
}
Expand All @@ -769,7 +769,7 @@ cfg_if! {
self.si_code.hash(state);
self.si_errno.hash(state);

// FIXME: The `si_pad` field in the 64-bit version of the struct is ignored
// FIXME(solarish): The `si_pad` field in the 64-bit version of the struct is ignored
// (for now) when doing hashing.

let field_count = self.data_field_count();
Expand Down Expand Up @@ -802,7 +802,7 @@ cfg_if! {
.field("sdl_nlen", &self.sdl_nlen)
.field("sdl_alen", &self.sdl_alen)
.field("sdl_slen", &self.sdl_slen)
// FIXME: .field("sdl_data", &self.sdl_data)
// FIXME(solarish): .field("sdl_data", &self.sdl_data)
.finish()
}
}
Expand Down Expand Up @@ -852,7 +852,7 @@ cfg_if! {
impl PartialEq for pad128_t {
fn eq(&self, other: &pad128_t) -> bool {
unsafe {
// FIXME: self._q == other._q ||
// FIXME(solarish): self._q == other._q ||
self._l == other._l
}
}
Expand All @@ -869,7 +869,7 @@ cfg_if! {
impl PartialEq for upad128_t {
fn eq(&self, other: &upad128_t) -> bool {
unsafe {
// FIXME: self._q == other._q ||
// FIXME(solarish): self._q == other._q ||
self._l == other._l
}
}
Expand All @@ -878,7 +878,7 @@ cfg_if! {
impl hash::Hash for upad128_t {
fn hash<H: hash::Hasher>(&self, state: &mut H) {
unsafe {
// FIXME: state.write_i64(self._q as i64);
// FIXME(solarish): state.write_i64(self._q as i64);
self._l.hash(state);
}
}
Expand Down

0 comments on commit 769702c

Please sign in to comment.