Skip to content

Commit 36ef860

Browse files
krajakiernan
authored andcommitted
musl/riscv32: Define F_SETLK, F_SETLKW and fix F_GETLK
F_SETLK and F_SETLKW were not defined therefore define them and F_GETLK value was not matching the musl port hence fixed
1 parent 5ab4734 commit 36ef860

File tree

1 file changed

+4
-2
lines changed
  • src/unix/linux_like/linux/musl/b32/riscv32

1 file changed

+4
-2
lines changed

src/unix/linux_like/linux/musl/b32/riscv32/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,11 @@ pub const POLLWRBAND: ::c_short = 512;
323323
pub const O_ASYNC: ::c_int = 8192;
324324
pub const O_NDELAY: ::c_int = 2048;
325325
pub const EFD_NONBLOCK: ::c_int = 2048;
326-
pub const F_GETLK: ::c_int = 5;
327-
pub const F_GETOWN: ::c_int = 9;
328326
pub const F_SETOWN: ::c_int = 8;
327+
pub const F_GETOWN: ::c_int = 9;
328+
pub const F_GETLK: ::c_int = 12;
329+
pub const F_SETLK: ::c_int = 13;
330+
pub const F_SETLKW: ::c_int = 14;
329331
pub const SFD_NONBLOCK: ::c_int = 2048;
330332
pub const TCSANOW: ::c_int = 0;
331333
pub const TCSADRAIN: ::c_int = 1;

0 commit comments

Comments
 (0)