MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / close

Function close

src/backend/linux_raw/io/syscalls.rs:273–276  ·  view source on GitHub ↗
(fd: RawFd)

Source from the content-addressed store, hash-verified

271
272#[inline]
273pub(crate) unsafe fn close(fd: RawFd) {
274 // See the documentation for [`io::close`] for why errors are ignored.
275 syscall_readonly!(__NR_close, raw_fd(fd)).decode_void();
276}
277
278#[cfg(feature = "try_close")]
279#[inline]

Callers

nothing calls this directly

Calls 1

decode_voidMethod · 0.80

Tested by

no test coverage detected