summaryrefslogtreecommitdiff
path: root/src/unistd.rs
diff options
context:
space:
mode:
authorVictor Berger <victor.berger@m4x.org>2014-12-10 19:30:36 +0100
committerVictor Berger <victor.berger@m4x.org>2014-12-10 19:30:36 +0100
commit7c27a173ba2b22e059e8a2a92f070a3853218e09 (patch)
tree53bcb4325bc5630093cc5a1a22bd4dc1c5d246b1 /src/unistd.rs
parent4552f47e4ea04ed8f04bf24b9ba182ab71ea8974 (diff)
downloadnix-7c27a173ba2b22e059e8a2a92f070a3853218e09.zip
Fallout of Copy becoming opt-in.
Diffstat (limited to 'src/unistd.rs')
-rw-r--r--src/unistd.rs3
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)]