Skip to content

Commit 29fceba

Browse files
committed
Set F_SETLK and F_SETLKW
1 parent 5021c3e commit 29fceba

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
@@ -255,8 +255,16 @@ cfg_if! {
255255

256256
pub const PTRACE_DETACH: ::c_uint = 17;
257257

258-
pub const F_SETLK: ::c_int = 6;
259-
pub const F_SETLKW: ::c_int = 7;
258+
#[cfg(target_arch = "mips")]
259+
pub const F_SETLK64: ::c_int = 34;
260+
#[cfg(not(target_arch = "mips"))]
261+
pub const F_SETLK64: ::c_int = 13;
262+
#[cfg(target_arch = "mips")]
263+
pub const F_SETLKW64: ::c_int = 35;
264+
#[cfg(not(target_arch = "mips"))]
265+
pub const F_SETLKW64: ::c_int = 14;
266+
pub const F_SETLK: ::c_int = F_SETLK64;
267+
pub const F_SETLKW: ::c_int = F_SETLKW64;
260268

261269
pub const F_RDLCK: ::c_int = 0;
262270
pub const F_WRLCK: ::c_int = 1;

0 commit comments

Comments
 (0)