Skip to content

Commit 1256e15

Browse files
author
Jesse Hoogervorst
committed
Changed type definition and removed reserved field (+1 squashed commits)
Squashed commits: [19a8526] Removed polyfill implementation and updated struct and constants required (+2 squashed commit) Squashed commit: [7aeabc9] Fixed style issues [a393299] Implemented flock for vxworks using ioctl
1 parent c451445 commit 1256e15

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/vxworks/mod.rs

+11
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,14 @@ s! {
413413
pub mq_flags: ::c_long,
414414
pub mq_curmsgs: ::c_long,
415415
}
416+
417+
pub struct flock {
418+
pub l_type: ::c_short,
419+
pub l_whence: ::c_short,
420+
pub l_start: ::c_long,
421+
pub l_len: ::c_long,
422+
pub l_pid: ::c_long,
423+
}
416424
}
417425

418426
s_no_extra_traits! {
@@ -944,6 +952,9 @@ pub const F_GETLK: ::c_int = 7;
944952
pub const F_SETLK: ::c_int = 8;
945953
pub const F_SETLKW: ::c_int = 9;
946954
pub const F_DUPFD_CLOEXEC: ::c_int = 14;
955+
pub const F_RDLCK: ::c_int = 1;
956+
pub const F_WRLCK: ::c_int = 2;
957+
pub const F_UNLCK: ::c_int = 3;
947958

948959
// signal.h
949960
pub const SIG_DFL: sighandler_t = 0 as sighandler_t;

0 commit comments

Comments
 (0)