Skip to content

Commit 5021c3e

Browse files
committed
Update F_GETLK and F_GETLK64
1 parent 0649df1 commit 5021c3e

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,8 @@ pub const MCL_FUTURE: ::c_int = 0x0002;
336336
pub const POLLWRNORM: ::c_short = 0x100;
337337
pub const POLLWRBAND: ::c_short = 0x200;
338338

339-
pub const F_GETLK: ::c_int = 5;
339+
pub const F_GETLK64: ::c_int = 12;
340+
pub const F_GETLK: ::c_int = F_GETLK64;
340341
pub const F_GETOWN: ::c_int = 9;
341342
pub const F_SETOWN: ::c_int = 8;
342343

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ pub const MAP_HUGETLB: ::c_int = 0x080000;
694694

695695
pub const EFD_NONBLOCK: ::c_int = 0x80;
696696

697-
pub const F_GETLK: ::c_int = 14;
697+
pub const F_GETLK: ::c_int = 33;
698698
pub const F_GETOWN: ::c_int = 23;
699699
pub const F_SETOWN: ::c_int = 24;
700700

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ pub const MCL_FUTURE: ::c_int = 0x4000;
294294
pub const POLLWRNORM: ::c_short = 0x100;
295295
pub const POLLWRBAND: ::c_short = 0x200;
296296

297-
pub const F_GETLK: ::c_int = 5;
297+
pub const F_GETLK: ::c_int = 12;
298298
pub const F_GETOWN: ::c_int = 9;
299299
pub const F_SETOWN: ::c_int = 8;
300300

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,8 @@ pub const SA_NOCLDWAIT: ::c_int = 0x00000002;
490490
pub const SOCK_STREAM: ::c_int = 1;
491491
pub const SOCK_DGRAM: ::c_int = 2;
492492

493-
pub const F_GETLK: ::c_int = 5;
493+
pub const F_GETLK64: ::c_int = 12;
494+
pub const F_GETLK: ::c_int = F_GETLK64;
494495
pub const F_GETOWN: ::c_int = 9;
495496
pub const F_SETOWN: ::c_int = 8;
496497

0 commit comments

Comments
 (0)