From cc61fc09945aeec6fc71a07e91b8610fa71f6425 Mon Sep 17 00:00:00 2001 From: Salem Talha Date: Sun, 26 Jan 2014 03:43:42 -0500 Subject: Removed all instances of XXX in preparation for relaxing of FIXME rule --- src/libnative/io/file.rs | 6 +++--- src/libnative/io/mod.rs | 2 +- src/libnative/io/timer_timerfd.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/libnative') diff --git a/src/libnative/io/file.rs b/src/libnative/io/file.rs index af06533d44b..53386433d53 100644 --- a/src/libnative/io/file.rs +++ b/src/libnative/io/file.rs @@ -674,7 +674,7 @@ pub fn chown(p: &CString, uid: int, gid: int) -> IoResult<()> { pub fn readlink(p: &CString) -> IoResult { return os_readlink(p); - // XXX: I have a feeling that this reads intermediate symlinks as well. + // FIXME: I have a feeling that this reads intermediate symlinks as well. #[cfg(windows)] fn os_readlink(p: &CString) -> IoResult { let handle = unsafe { @@ -709,7 +709,7 @@ pub fn readlink(p: &CString) -> IoResult { let p = p.with_ref(|p| p); let mut len = unsafe { libc::pathconf(p, libc::_PC_NAME_MAX) }; if len == -1 { - len = 1024; // XXX: read PATH_MAX from C ffi? + len = 1024; // FIXME: read PATH_MAX from C ffi? } let mut buf = vec::with_capacity::(len as uint); match retry(|| unsafe { @@ -877,7 +877,7 @@ pub fn stat(p: &CString) -> IoResult { pub fn lstat(p: &CString) -> IoResult { return os_lstat(p); - // XXX: windows implementation is missing + // FIXME: windows implementation is missing #[cfg(windows)] fn os_lstat(_p: &CString) -> IoResult { Err(super::unimpl()) diff --git a/src/libnative/io/mod.rs b/src/libnative/io/mod.rs index 00f4a0c099d..c94554f510e 100644 --- a/src/libnative/io/mod.rs +++ b/src/libnative/io/mod.rs @@ -97,7 +97,7 @@ fn translate_error(errno: i32, detail: bool) -> IoError { #[cfg(not(windows))] fn get_err(errno: i32) -> (io::IoErrorKind, &'static str) { - // XXX: this should probably be a bit more descriptive... + // FIXME: this should probably be a bit more descriptive... match errno { libc::EOF => (io::EndOfFile, "end of file"), libc::ECONNREFUSED => (io::ConnectionRefused, "connection refused"), diff --git a/src/libnative/io/timer_timerfd.rs b/src/libnative/io/timer_timerfd.rs index 0556b0c2599..2bcaf4d5c7c 100644 --- a/src/libnative/io/timer_timerfd.rs +++ b/src/libnative/io/timer_timerfd.rs @@ -104,7 +104,7 @@ fn helper(input: libc::c_int, messages: Port) { let mut bits = [0, ..8]; // drain the timerfd of how many times its fired // - // XXX: should this perform a send() this number of + // FIXME: should this perform a send() this number of // times? FileDesc::new(fd, false).inner_read(bits); let remove = { -- cgit 1.4.1-3-g733a5