summaryrefslogtreecommitdiff
path: root/src/fcntl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/fcntl.rs')
-rw-r--r--src/fcntl.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/fcntl.rs b/src/fcntl.rs
index f4f0fded..486b95fe 100644
--- a/src/fcntl.rs
+++ b/src/fcntl.rs
@@ -34,7 +34,7 @@ bitflags!(
)
mod ffi {
- pub use libc::{open, close};
+ pub use libc::open;
}
pub fn open(path: &Path, oflag: OFlag, mode: FilePermission) -> SysResult<Fd> {
@@ -46,8 +46,3 @@ pub fn open(path: &Path, oflag: OFlag, mode: FilePermission) -> SysResult<Fd> {
Ok(fd)
}
-
-pub fn close(fd: Fd) -> SysResult<()> {
- let res = unsafe { ffi::close(fd) };
- from_ffi(res)
-}