Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ setmode_binary
Function
setmode_binary
crates/vm/src/stdlib/msvcrt.rs:23–25 ·
view source on GitHub ↗
(fd: crt_fd::Borrowed<'_>)
Source
from the content-addressed store, hash-verified
21
};
22
23
pub fn setmode_binary(fd: crt_fd::Borrowed<'_>) {
24
unsafe { suppress_iph!(_setmode(fd, libc::O_BINARY)) };
25
}
26
27
unsafe extern
"C"
{
28
fn _getch() -> i32;
Callers
1
init
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected