summaryrefslogtreecommitdiff
path: root/src/fcntl.rs
diff options
context:
space:
mode:
authorValerii Hiora <valerii.hiora@gmail.com>2014-12-11 14:49:47 +0200
committerCarl Lerche <me@carllerche.com>2014-12-12 14:07:36 -0800
commite3e5bbf93b0db1d0f0739134e4483fe1c8a5bedc (patch)
tree17b066cade77e21d1bec797ce3119bf4d810b776 /src/fcntl.rs
parent7c27a173ba2b22e059e8a2a92f070a3853218e09 (diff)
downloadnix-e3e5bbf93b0db1d0f0739134e4483fe1c8a5bedc.zip
Fallout of Copy opt-in for non-Linux
Based on #22.
Diffstat (limited to 'src/fcntl.rs')
-rw-r--r--src/fcntl.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fcntl.rs b/src/fcntl.rs
index ca6686f7..50c4ece8 100644
--- a/src/fcntl.rs
+++ b/src/fcntl.rs
@@ -46,6 +46,7 @@ mod ffi {
use libc::{c_int, c_short, off_t, pid_t};
#[repr(C)]
+ #[deriving(Copy)]
pub struct flock {
pub l_start: off_t,
pub l_len: off_t,
@@ -162,6 +163,7 @@ mod consts {
use libc::c_int;
bitflags!(
+ #[deriving(Copy)]
flags OFlag: c_int {
const O_ACCMODE = 0x0000003,
const O_RDONLY = 0x0000000,
@@ -184,6 +186,7 @@ mod consts {
)
bitflags!(
+ #[deriving(Copy)]
flags FdFlag: c_int {
const FD_CLOEXEC = 1
}