Skip to content

Commit f3b70e2

Browse files
committed
Set F_SETLK and F_SETLKW
1 parent f73482e commit f3b70e2

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,16 @@ cfg_if! {
290290

291291
pub const PTRACE_DETACH: ::c_uint = 17;
292292

293-
pub const F_SETLK: ::c_int = 6;
294-
pub const F_SETLKW: ::c_int = 7;
293+
#[cfg(target_arch = "mips")]
294+
pub const F_SETLK64: ::c_int = 34;
295+
#[cfg(not(target_arch = "mips"))]
296+
pub const F_SETLK64: ::c_int = 13;
297+
#[cfg(target_arch = "mips")]
298+
pub const F_SETLKW64: ::c_int = 35;
299+
#[cfg(not(target_arch = "mips"))]
300+
pub const F_SETLKW64: ::c_int = 14;
301+
pub const F_SETLK: ::c_int = F_SETLK64;
302+
pub const F_SETLKW: ::c_int = F_SETLKW64;
295303

296304
pub const F_RDLCK: ::c_int = 0;
297305
pub const F_WRLCK: ::c_int = 1;

0 commit comments

Comments
 (0)