Update to new rust

parent 5b7594a6
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]] [[package]]
name = "ansi_term" name = "ansi_term"
version = "0.10.2" version = "0.10.2"
......
...@@ -98,9 +98,6 @@ pub fn handle(event_file: &mut File, tty_fd: RawFd, master_fd: RawFd, process: & ...@@ -98,9 +98,6 @@ pub fn handle(event_file: &mut File, tty_fd: RawFd, master_fd: RawFd, process: &
} }
pub fn getpty(columns: u32, lines: u32) -> (RawFd, String) { pub fn getpty(columns: u32, lines: u32) -> (RawFd, String) {
use redox_termios;
use syscall;
let master = syscall::open("pty:", syscall::O_CLOEXEC | syscall::O_RDWR | syscall::O_CREAT | syscall::O_NONBLOCK).expect("getty: failed to create PTY"); let master = syscall::open("pty:", syscall::O_CLOEXEC | syscall::O_RDWR | syscall::O_CREAT | syscall::O_NONBLOCK).expect("getty: failed to create PTY");
if let Ok(winsize_fd) = syscall::dup(master, b"winsize") { if let Ok(winsize_fd) = syscall::dup(master, b"winsize") {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment