summaryrefslogtreecommitdiff
path: root/src/unistd.rs
diff options
context:
space:
mode:
authorValerii Hiora <valerii.hiora@gmail.com>2015-01-03 14:37:30 +0200
committerValerii Hiora <valerii.hiora@gmail.com>2015-01-03 16:55:42 +0200
commit0fd15870b9e2f899bd7b6a4c7a4646773cb1d34c (patch)
treeb8e12f347f5c288d1bd16a24f8024bc4106abb40 /src/unistd.rs
parentc82c8cced23256ebeeea978fda67abd976280425 (diff)
downloadnix-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.rs7
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};