diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2023-02-20 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2023-02-21 18:52:25 +0100 |
| commit | 7867aa8aeeaddce0ea1879bb8b5700f7cf984dd7 (patch) | |
| tree | 7144d784efd3f1cffad52f1ba808cbbb7baa8392 /library/std/src | |
| parent | 3200982b7689ff496e63584c5c8f9bf707b98ae3 (diff) | |
| download | rust-7867aa8aeeaddce0ea1879bb8b5700f7cf984dd7.tar.gz rust-7867aa8aeeaddce0ea1879bb8b5700f7cf984dd7.zip | |
Remove unused FileDesc::get_cloexec
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/sys/unix/fd.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/library/std/src/sys/unix/fd.rs b/library/std/src/sys/unix/fd.rs index ab57fba6c9f..66c33d58d6c 100644 --- a/library/std/src/sys/unix/fd.rs +++ b/library/std/src/sys/unix/fd.rs @@ -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", |
