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

Function close

src/io/close.rs:54–56  ·  view source on GitHub ↗
(raw_fd: RawFd)

Source from the content-addressed store, hash-verified

52/// not valid after the call.
53#[inline]
54pub unsafe fn close(raw_fd: RawFd) {
55 backend::io::syscalls::close(raw_fd)
56}
57
58/// `close(raw_fd)`—Closes a `RawFd` directly, and report any errors returned
59/// by the OS.

Callers 3

dropMethod · 0.50
test_close_fileFunction · 0.50
test_close_socketFunction · 0.50

Calls

no outgoing calls

Tested by 2

test_close_fileFunction · 0.40
test_close_socketFunction · 0.40