about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2023-02-22 10:35:10 +0100
committerGitHub <noreply@github.com>2023-02-22 10:35:10 +0100
commit0d0de4971e2b134549f5e8019cbc06dadc5596ca (patch)
treea99c7de86937b00129c1c526e380112dbd5efd5a
parent8d33b780ff125e7386b77c08be26dcd07bce7816 (diff)
parent7867aa8aeeaddce0ea1879bb8b5700f7cf984dd7 (diff)
downloadrust-0d0de4971e2b134549f5e8019cbc06dadc5596ca.tar.gz
rust-0d0de4971e2b134549f5e8019cbc06dadc5596ca.zip
Rollup merge of #108318 - tmiasko:rm-get_cloexec, r=the8472
Remove unused FileDesc::get_cloexec
-rw-r--r--library/std/src/sys/unix/fd.rs5
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",