Update redox_syscall
This commit is contained in:
Generated
+13
-4
@@ -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"
|
||||
|
||||
+1
-1
@@ -4,4 +4,4 @@ version = "0.1.0"
|
||||
authors = ["Alex Lyon <arcterus@mail.com>"]
|
||||
|
||||
[dependencies]
|
||||
redox_syscall = "0.1"
|
||||
redox_syscall = "0.2.4"
|
||||
|
||||
+2
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user