diff options
Diffstat (limited to 'src/unistd.rs')
-rw-r--r-- | src/unistd.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unistd.rs b/src/unistd.rs index 1dc7e7d8..f24e883d 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -53,6 +53,7 @@ mod ffi { } } +#[deriving(Copy)] pub enum Fork { Parent(pid_t), Child @@ -101,7 +102,9 @@ pub fn fork() -> SysResult<Fork> { type IovecR = Iovec<ToRead>; type IovecW = Iovec<ToWrite>; +#[deriving(Copy)] pub struct ToRead; +#[deriving(Copy)] pub struct ToWrite; #[repr(C)] |