From 59c52b4ac4be9880e2551d0046f39bb79c166d5a Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Fri, 15 Jan 2021 13:07:14 -0700 Subject: [PATCH] Update redox_syscall --- Cargo.lock | 17 +++++++++++++---- Cargo.toml | 2 +- src/main.rs | 3 ++- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 498aac0f0a..5570e60107 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,16 +1,25 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. [[package]] -name = "redox_syscall" -version = "0.1.57" +name = "bitflags" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "redox_syscall" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "zerod" version = "0.1.0" dependencies = [ - "redox_syscall 0.1.57 (registry+https://github.com/rust-lang/crates.io-index)", + "redox_syscall 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", ] [metadata] -"checksum redox_syscall 0.1.57 (registry+https://github.com/rust-lang/crates.io-index)" = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce" +"checksum bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" +"checksum redox_syscall 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "05ec8ca9416c5ea37062b502703cd7fcb207736bc294f6e0cf367ac6fc234570" diff --git a/Cargo.toml b/Cargo.toml index 5f51771bc0..2a3cf8d819 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,4 +4,4 @@ version = "0.1.0" authors = ["Alex Lyon "] [dependencies] -redox_syscall = "0.1" +redox_syscall = "0.2.4" diff --git a/src/main.rs b/src/main.rs index e9f6cbfd36..e634702832 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,7 @@ extern crate syscall; use syscall::data::Packet; +use syscall::flag::CloneFlags; use syscall::scheme::Scheme; use std::fs::File; use std::io::{Read, Write}; @@ -9,7 +10,7 @@ use scheme::ZeroScheme; mod scheme; fn main() { - if unsafe { syscall::clone(0).unwrap() } == 0 { + if unsafe { syscall::clone(CloneFlags::empty()).unwrap() } == 0 { let mut socket = File::create(":zero").expect("zerod: failed to create zero scheme"); let scheme = ZeroScheme;