MCPcopy Index your code
hub / github.com/RustPython/RustPython / cvt_fd

Function cvt_fd

crates/common/src/crt_fd.rs:49–51  ·  view source on GitHub ↗
(ret: Raw)

Source from the content-addressed store, hash-verified

47}
48
49fn cvt_fd(ret: Raw) -> io::Result<Owned> {
50 cvt(ret).map(|fd| unsafe { Owned::from_raw(fd) })
51}
52
53const MAX_RW: usize = if cfg!(any(windows, target_vendor = "apple")) {
54 i32::MAX as usize

Callers 3

openFunction · 0.85
wopenFunction · 0.85
openatFunction · 0.85

Calls 2

cvtFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected