Skip to content

Commit e6ffc36

Browse files
committed
Update F_GETLK and F_GETLK64
1 parent e894bf4 commit e6ffc36

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,8 @@ pub const MCL_FUTURE: ::c_int = 0x0002;
304304
pub const POLLWRNORM: ::c_short = 0x100;
305305
pub const POLLWRBAND: ::c_short = 0x200;
306306

307-
pub const F_GETLK: ::c_int = 5;
307+
pub const F_GETLK64: ::c_int = 12;
308+
pub const F_GETLK: ::c_int = F_GETLK64;
308309
pub const F_GETOWN: ::c_int = 9;
309310
pub const F_SETOWN: ::c_int = 8;
310311

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ pub const MAP_HUGETLB: ::c_int = 0x080000;
680680

681681
pub const EFD_NONBLOCK: ::c_int = 0x80;
682682

683-
pub const F_GETLK: ::c_int = 14;
683+
pub const F_GETLK: ::c_int = 33;
684684
pub const F_GETOWN: ::c_int = 23;
685685
pub const F_SETOWN: ::c_int = 24;
686686

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ pub const MCL_FUTURE: ::c_int = 0x4000;
281281
pub const POLLWRNORM: ::c_short = 0x100;
282282
pub const POLLWRBAND: ::c_short = 0x200;
283283

284-
pub const F_GETLK: ::c_int = 5;
284+
pub const F_GETLK: ::c_int = 12;
285285
pub const F_GETOWN: ::c_int = 9;
286286
pub const F_SETOWN: ::c_int = 8;
287287

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,8 @@ pub const SA_NOCLDWAIT: ::c_int = 0x00000002;
477477
pub const SOCK_STREAM: ::c_int = 1;
478478
pub const SOCK_DGRAM: ::c_int = 2;
479479

480-
pub const F_GETLK: ::c_int = 5;
480+
pub const F_GETLK64: ::c_int = 12;
481+
pub const F_GETLK: ::c_int = F_GETLK64;
481482
pub const F_GETOWN: ::c_int = 9;
482483
pub const F_SETOWN: ::c_int = 8;
483484

0 commit comments

Comments
 (0)