Skip to content

Commit 87230e4

Browse files
committed
Set F_SETLK and F_SETLKW
1 parent e6ffc36 commit 87230e4

File tree

1 file changed

+10
-2
lines changed
  • src/unix/linux_like/linux/gnu/b32

1 file changed

+10
-2
lines changed

src/unix/linux_like/linux/gnu/b32/mod.rs

+10-2
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,16 @@ cfg_if! {
260260

261261
pub const PTRACE_DETACH: ::c_uint = 17;
262262

263-
pub const F_SETLK: ::c_int = 6;
264-
pub const F_SETLKW: ::c_int = 7;
263+
#[cfg(target_arch = "mips")]
264+
pub const F_SETLK64: ::c_int = 34;
265+
#[cfg(not(target_arch = "mips"))]
266+
pub const F_SETLK64: ::c_int = 13;
267+
#[cfg(target_arch = "mips")]
268+
pub const F_SETLKW64: ::c_int = 35;
269+
#[cfg(not(target_arch = "mips"))]
270+
pub const F_SETLKW64: ::c_int = 14;
271+
pub const F_SETLK: ::c_int = F_SETLK64;
272+
pub const F_SETLKW: ::c_int = F_SETLKW64;
265273

266274
pub const F_RDLCK: ::c_int = 0;
267275
pub const F_WRLCK: ::c_int = 1;

0 commit comments

Comments
 (0)