diff options
author | Valerii Hiora <valerii.hiora@gmail.com> | 2015-01-03 14:37:30 +0200 |
---|---|---|
committer | Valerii Hiora <valerii.hiora@gmail.com> | 2015-01-03 16:55:42 +0200 |
commit | 0fd15870b9e2f899bd7b6a4c7a4646773cb1d34c (patch) | |
tree | b8e12f347f5c288d1bd16a24f8024bc4106abb40 /src/unistd.rs | |
parent | c82c8cced23256ebeeea978fda67abd976280425 (diff) | |
download | nix-0fd15870b9e2f899bd7b6a4c7a4646773cb1d34c.zip |
Update to rust master
- cstr fallout
- deriving -> derive
- lib stabilization warnings removal
Diffstat (limited to 'src/unistd.rs')
-rw-r--r-- | src/unistd.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/unistd.rs b/src/unistd.rs index a067dbd1..3f20f887 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -53,7 +53,7 @@ mod ffi { } } -#[deriving(Copy)] +#[derive(Copy)] pub enum Fork { Parent(pid_t), Child @@ -102,9 +102,9 @@ pub fn fork() -> SysResult<Fork> { type IovecR = Iovec<ToRead>; type IovecW = Iovec<ToWrite>; -#[deriving(Copy)] +#[derive(Copy)] pub struct ToRead; -#[deriving(Copy)] +#[derive(Copy)] pub struct ToWrite; #[repr(C)] @@ -410,6 +410,7 @@ pub fn ftruncate(fd: Fd, len: off_t) -> SysResult<()> { #[cfg(target_os = "linux")] mod linux { + use std::c_str::ToCStr; use std::path::Path; use syscall::{syscall, SYSPIVOTROOT}; use errno::{SysResult, SysError}; |