We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7667d4d commit 19a8526Copy full SHA for 19a8526
src/vxworks/mod.rs
@@ -412,6 +412,15 @@ s! {
412
pub mq_flags: ::c_long,
413
pub mq_curmsgs: ::c_long,
414
}
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
+ }
424
425
426
s_no_extra_traits! {
@@ -943,6 +952,9 @@ pub const F_GETLK: ::c_int = 7;
943
952
pub const F_SETLK: ::c_int = 8;
944
953
pub const F_SETLKW: ::c_int = 9;
945
954
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;
946
958
947
959
// signal.h
948
960
pub const SIG_DFL: sighandler_t = 0 as sighandler_t;
0 commit comments