Skip to content

Commit

Permalink
Merge pull request #4043 from jackorobot/vxworks-flock
Browse files Browse the repository at this point in the history
flock for vxworks using ioctl
  • Loading branch information
tgross35 authored Nov 19, 2024
2 parents 0569274 + 1256e15 commit 2f931d9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/vxworks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,14 @@ s! {
pub mq_flags: ::c_long,
pub mq_curmsgs: ::c_long,
}

pub struct flock {
pub l_type: ::c_short,
pub l_whence: ::c_short,
pub l_start: ::c_long,
pub l_len: ::c_long,
pub l_pid: ::c_long,
}
}

s_no_extra_traits! {
Expand Down Expand Up @@ -940,6 +948,9 @@ pub const F_GETLK: ::c_int = 7;
pub const F_SETLK: ::c_int = 8;
pub const F_SETLKW: ::c_int = 9;
pub const F_DUPFD_CLOEXEC: ::c_int = 14;
pub const F_RDLCK: ::c_int = 1;
pub const F_WRLCK: ::c_int = 2;
pub const F_UNLCK: ::c_int = 3;

// signal.h
pub const SIG_DFL: sighandler_t = 0 as sighandler_t;
Expand Down

0 comments on commit 2f931d9

Please sign in to comment.