Skip to content

Commit 0d0de49

Browse files
Rollup merge of #108318 - tmiasko:rm-get_cloexec, r=the8472
Remove unused FileDesc::get_cloexec
2 parents 8d33b78 + 7867aa8 commit 0d0de49

File tree

1 file changed

+0
-5
lines changed
  • library/std/src/sys/unix

1 file changed

+0
-5
lines changed

library/std/src/sys/unix/fd.rs

-5
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,6 @@ impl FileDesc {
197197
}
198198
}
199199

200-
#[cfg(target_os = "linux")]
201-
pub fn get_cloexec(&self) -> io::Result<bool> {
202-
unsafe { Ok((cvt(libc::fcntl(self.as_raw_fd(), libc::F_GETFD))? & libc::FD_CLOEXEC) != 0) }
203-
}
204-
205200
#[cfg(not(any(
206201
target_env = "newlib",
207202
target_os = "solaris",

0 commit comments

Comments
 (0)