Skip to content

Commit bcbfeb5

Browse files
authored
Merge pull request #1708 from pickfire/lockf
Add Lockf POSIX to UNIX targets
2 parents 8fdf28e + dd81021 commit bcbfeb5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/unix/mod.rs

+6
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)