mirror of
https://github.com/fluencelabs/wasmer
synced 2025-05-12 02:27:11 +00:00
12 lines
236 B
Rust
12 lines
236 B
Rust
|
// use libc::isatty;
|
||
|
|
||
|
extern "C" {
|
||
|
pub fn isatty(fd: i32) -> i32;
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
println!("stdin: {}", unsafe { isatty(0) });
|
||
|
println!("stdout: {}", unsafe { isatty(1) });
|
||
|
println!("stderr: {}", unsafe { isatty(2) });
|
||
|
}
|