Skip to content

Commit 4d0643b

Browse files
committed
Auto merge of #1947 - fornwall:android-lockf-operations, r=JohnTitor
Add lockf() operations to Android Reference: https://github.com/aosp-mirror/platform_bionic/blob/master/libc/include/bits/lockf.h#L39-L46
2 parents 2995d71 + 90b2f51 commit 4d0643b

File tree

1 file changed

+5
-0
lines changed
  • src/unix/linux_like/android

1 file changed

+5
-0
lines changed

src/unix/linux_like/android/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,11 @@ pub const _SC_V7_LPBIG_OFFBIG: ::c_int = 140;
853853
pub const _SC_XOPEN_STREAMS: ::c_int = 141;
854854
pub const _SC_XOPEN_UUCP: ::c_int = 142;
855855

856+
pub const F_LOCK: ::c_int = 1;
857+
pub const F_TEST: ::c_int = 3;
858+
pub const F_TLOCK: ::c_int = 2;
859+
pub const F_ULOCK: ::c_int = 0;
860+
856861
pub const PTHREAD_MUTEX_NORMAL: ::c_int = 0;
857862
pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 1;
858863
pub const PTHREAD_MUTEX_ERRORCHECK: ::c_int = 2;

0 commit comments

Comments
 (0)