Skip to content

Commit dd81021

Browse files
committed
Add lockf
Fix #1631
1 parent 783ddd8 commit dd81021

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/unix/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1447,6 +1447,12 @@ extern "C" {
14471447
n: *mut size_t,
14481448
stream: *mut FILE,
14491449
) -> ssize_t;
1450+
1451+
pub fn lockf(
1452+
fd: ::c_int,
1453+
cmd: ::c_int,
1454+
len: ::off_t,
1455+
) -> ::c_int;
14501456
}
14511457

14521458
cfg_if! {

0 commit comments

Comments
 (0)