Skip to content

Commit

Permalink
Remove unused FileDesc::get_cloexec
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiasko committed Feb 21, 2023
1 parent 7919e47 commit 5801873
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions std/src/sys/unix/fd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,6 @@ impl FileDesc {
}
}

#[cfg(target_os = "linux")]
pub fn get_cloexec(&self) -> io::Result<bool> {
unsafe { Ok((cvt(libc::fcntl(self.as_raw_fd(), libc::F_GETFD))? & libc::FD_CLOEXEC) != 0) }
}

#[cfg(not(any(
target_env = "newlib",
target_os = "solaris",
Expand Down

0 comments on commit 5801873

Please sign in to comment.