summaryrefslogtreecommitdiff
path: root/src/fcntl.rs
diff options
context:
space:
mode:
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 93009bd8..ca6686f7 100644
--- a/src/fcntl.rs
+++ b/src/fcntl.rs
@@ -18,6 +18,7 @@ mod ffi {
use libc::{c_int, c_short, off_t, pid_t};
#[repr(C)]
+ #[deriving(Copy)]
pub struct flock {
pub l_type: c_short,
pub l_whence: c_short,
@@ -122,6 +123,7 @@ mod consts {
use libc::c_int;
bitflags!(
+ #[deriving(Copy)]
flags OFlag: c_int {
const O_ACCMODE = 0o00000003,
const O_RDONLY = 0o00000000,
@@ -148,6 +150,7 @@ mod consts {
)
bitflags!(
+ #[deriving(Copy)]
flags FdFlag: c_int {
const FD_CLOEXEC = 1
}