Skip to content

Commit

Permalink
Changed type definition and removed reserved field (+1 squashed commits)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Jesse Hoogervorst committed Nov 19, 2024
1 parent c451445 commit 1256e15
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 @@ -413,6 +413,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 @@ -944,6 +952,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 1256e15

Please sign in to comment.