Skip to content

Commit d120b92

Browse files
committed
Fix F_GETLK, F_SETLK, F_SETLKW for DragonFly
1 parent 963f7da commit d120b92

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/unix/bsd/freebsdlike/dragonfly/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,6 @@ pub const KERN_PROC_PATHNAME: ::c_int = 9;
6565
pub const SIGSTKSZ: ::size_t = 40960;
6666
pub const MADV_INVAL: ::c_int = 10;
6767
pub const O_CLOEXEC: ::c_int = 0x00020000;
68+
pub const F_GETLK: ::c_int = 7;
69+
pub const F_SETLK: ::c_int = 8;
70+
pub const F_SETLKW: ::c_int = 9;

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ pub const SF_NODISKIO: ::c_int = 0x00000001;
5050
pub const SF_MNOWAIT: ::c_int = 0x00000002;
5151
pub const SF_SYNC: ::c_int = 0x00000004;
5252
pub const O_CLOEXEC: ::c_int = 0x00100000;
53+
pub const F_GETLK: ::c_int = 11;
54+
pub const F_SETLK: ::c_int = 12;
55+
pub const F_SETLKW: ::c_int = 13;
5356

5457
extern {
5558
pub fn __error() -> *mut ::c_int;

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,6 @@ pub const F_TEST: ::c_int = 3;
182182
pub const F_TLOCK: ::c_int = 2;
183183
pub const F_ULOCK: ::c_int = 0;
184184
pub const F_DUPFD_CLOEXEC: ::c_int = 17;
185-
pub const F_GETLK: ::c_int = 11;
186-
pub const F_SETLK: ::c_int = 12;
187-
pub const F_SETLKW: ::c_int = 13;
188185
pub const SIGHUP: ::c_int = 1;
189186
pub const SIGINT: ::c_int = 2;
190187
pub const SIGQUIT: ::c_int = 3;

0 commit comments

Comments
 (0)