}
fn isatty(&self) -> bool {
- unsafe { uvll::uv_guess_handle(self.fd) == uvll::UV_TTY }
+ unsafe { uvll::guess_handle(self.fd) == uvll::UV_TTY as libc::c_int }
}
}
rust_uv_populate_uv_stat(req_in, stat_out)
}
+pub unsafe fn guess_handle(handle: c_int) -> c_int {
+ #[fixed_stack_segment]; #[inline(never)];
+
+ rust_uv_guess_handle(handle)
+}
// uv_support is the result of compiling rust_uv.cpp
fn rust_set_stdio_container_stream(c: *uv_stdio_container_t,
stream: *uv_stream_t);
fn rust_uv_process_pid(p: *uv_process_t) -> c_int;
+ fn rust_uv_guess_handle(fd: c_int) -> c_int;
}
// generic uv functions
externfn!(fn uv_tty_set_mode(tty: *uv_tty_t, mode: c_int) -> c_int)
externfn!(fn uv_tty_get_winsize(tty: *uv_tty_t, width: *c_int,
height: *c_int) -> c_int)
-externfn!(fn uv_guess_handle(fd: c_int) -> uv_handle_type)
// signals
externfn!(fn uv_signal_init(loop_: *uv_loop_t, handle: *uv_signal_t) -> c_int)