Skip to content

Commit c18ab84

Browse files
committed
Add F_OFD_* constants
1 parent 248c826 commit c18ab84

File tree

19 files changed

+58
-0
lines changed

19 files changed

+58
-0
lines changed

src/unix/linux_like/android/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,6 +1097,9 @@ pub const F_SETLKW: ::c_int = 7;
10971097
pub const F_RDLCK: ::c_int = 0;
10981098
pub const F_WRLCK: ::c_int = 1;
10991099
pub const F_UNLCK: ::c_int = 2;
1100+
pub const F_OFD_GETLK: ::c_int = 36;
1101+
pub const F_OFD_SETLK: ::c_int = 37;
1102+
pub const F_OFD_SETLKW: ::c_int = 38;
11001103

11011104
pub const RLIMIT_CPU: ::c_int = 0;
11021105
pub const RLIMIT_FSIZE: ::c_int = 1;

src/unix/linux_like/emscripten/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,6 +1578,9 @@ pub const F_GETOWN: ::c_int = 9;
15781578
pub const F_SETLK: ::c_int = 13;
15791579
pub const F_SETLKW: ::c_int = 14;
15801580
pub const F_SETOWN: ::c_int = 8;
1581+
pub const F_OFD_GETLK: ::c_int = 36;
1582+
pub const F_OFD_SETLK: ::c_int = 37;
1583+
pub const F_OFD_SETLKW: ::c_int = 38;
15811584

15821585
pub const VEOF: usize = 4;
15831586
pub const VEOL: usize = 11;

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ pub const F_RDLCK: ::c_int = 0;
143143
pub const F_WRLCK: ::c_int = 1;
144144
pub const F_UNLCK: ::c_int = 2;
145145

146+
pub const F_OFD_GETLK: ::c_int = 36;
147+
pub const F_OFD_SETLK: ::c_int = 37;
148+
pub const F_OFD_SETLKW: ::c_int = 38;
149+
146150
pub const SFD_CLOEXEC: ::c_int = 0x080000;
147151

148152
pub const NCCS: usize = 32;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,9 @@ pub const F_GETOWN: ::c_int = 5;
395395
pub const F_SETOWN: ::c_int = 6;
396396
pub const F_SETLK: ::c_int = 8;
397397
pub const F_SETLKW: ::c_int = 9;
398+
pub const F_OFD_GETLK: ::c_int = 36;
399+
pub const F_OFD_SETLK: ::c_int = 37;
400+
pub const F_OFD_SETLKW: ::c_int = 38;
398401

399402
pub const F_RDLCK: ::c_int = 1;
400403
pub const F_WRLCK: ::c_int = 2;

src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,9 @@ pub const F_GETOWN: ::c_int = 9;
429429
pub const F_SETOWN: ::c_int = 8;
430430
pub const F_SETLK: ::c_int = 6;
431431
pub const F_SETLKW: ::c_int = 7;
432+
pub const F_OFD_GETLK: ::c_int = 36;
433+
pub const F_OFD_SETLK: ::c_int = 37;
434+
pub const F_OFD_SETLKW: ::c_int = 38;
432435

433436
pub const F_RDLCK: ::c_int = 0;
434437
pub const F_WRLCK: ::c_int = 1;

src/unix/linux_like/linux/gnu/b64/mips64/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,9 @@ pub const F_GETOWN: ::c_int = 23;
857857
pub const F_SETOWN: ::c_int = 24;
858858
pub const F_SETLK: ::c_int = 6;
859859
pub const F_SETLKW: ::c_int = 7;
860+
pub const F_OFD_GETLK: ::c_int = 36;
861+
pub const F_OFD_SETLK: ::c_int = 37;
862+
pub const F_OFD_SETLKW: ::c_int = 38;
860863

861864
pub const SFD_NONBLOCK: ::c_int = 0x80;
862865

src/unix/linux_like/linux/gnu/b64/powerpc64/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,9 @@ pub const F_GETOWN: ::c_int = 9;
416416
pub const F_SETOWN: ::c_int = 8;
417417
pub const F_SETLK: ::c_int = 6;
418418
pub const F_SETLKW: ::c_int = 7;
419+
pub const F_OFD_GETLK: ::c_int = 36;
420+
pub const F_OFD_SETLK: ::c_int = 37;
421+
pub const F_OFD_SETLKW: ::c_int = 38;
419422

420423
pub const F_RDLCK: ::c_int = 0;
421424
pub const F_WRLCK: ::c_int = 1;

src/unix/linux_like/linux/gnu/b64/riscv64/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,9 @@ pub const F_SETLKW: ::c_int = 7;
411411
pub const F_RDLCK: ::c_int = 0;
412412
pub const F_WRLCK: ::c_int = 1;
413413
pub const F_UNLCK: ::c_int = 2;
414+
pub const F_OFD_GETLK: ::c_int = 36;
415+
pub const F_OFD_SETLK: ::c_int = 37;
416+
pub const F_OFD_SETLKW: ::c_int = 38;
414417
pub const SFD_NONBLOCK: ::c_int = 2048;
415418
pub const TCSANOW: ::c_int = 0;
416419
pub const TCSADRAIN: ::c_int = 1;

src/unix/linux_like/linux/gnu/b64/s390x.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,9 @@ pub const F_GETOWN: ::c_int = 9;
540540
pub const F_SETOWN: ::c_int = 8;
541541
pub const F_SETLK: ::c_int = 6;
542542
pub const F_SETLKW: ::c_int = 7;
543+
pub const F_OFD_GETLK: ::c_int = 36;
544+
pub const F_OFD_SETLK: ::c_int = 37;
545+
pub const F_OFD_SETLKW: ::c_int = 38;
543546

544547
pub const SFD_NONBLOCK: ::c_int = 0x0800;
545548

src/unix/linux_like/linux/gnu/b64/sparc64/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,9 @@ pub const F_GETOWN: ::c_int = 5;
397397
pub const F_SETOWN: ::c_int = 6;
398398
pub const F_SETLK: ::c_int = 8;
399399
pub const F_SETLKW: ::c_int = 9;
400+
pub const F_OFD_GETLK: ::c_int = 36;
401+
pub const F_OFD_SETLK: ::c_int = 37;
402+
pub const F_OFD_SETLKW: ::c_int = 38;
400403

401404
pub const F_RDLCK: ::c_int = 1;
402405
pub const F_WRLCK: ::c_int = 2;

0 commit comments

Comments
 (0)