Skip to content

Commit 19a8526

Browse files
author
Jesse Hoogervorst
committed
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 7667d4d commit 19a8526

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/vxworks/mod.rs

+12
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,15 @@ s! {
412412
pub mq_flags: ::c_long,
413413
pub mq_curmsgs: ::c_long,
414414
}
415+
416+
pub struct flock {
417+
pub l_type: ::c_short,
418+
pub l_whence: ::c_short,
419+
pub l_start: ::c_long,
420+
pub l_len: ::c_long,
421+
pub l_pid: ::c_short,
422+
pub l_xxx: ::c_short,
423+
}
415424
}
416425

417426
s_no_extra_traits! {
@@ -943,6 +952,9 @@ pub const F_GETLK: ::c_int = 7;
943952
pub const F_SETLK: ::c_int = 8;
944953
pub const F_SETLKW: ::c_int = 9;
945954
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;
946958

947959
// signal.h
948960
pub const SIG_DFL: sighandler_t = 0 as sighandler_t;

0 commit comments

Comments
 (0)