commit b37f60a97ca6702ecfea0df5c6baf852f870f69a
parent 67690e797d4a78f4636f60ea18811ca4f931b1d6
Author: Willow Barraco <contact@willowbarraco.fr>
Date: Fri, 10 Feb 2023 15:09:20 +0100
rt: Add flock LOCK_NB (and fix LOCK_UN value)
Signed-off-by: Willow Barraco <contact@willowbarraco.fr>
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/rt/+linux/types.ha b/rt/+linux/types.ha
@@ -841,7 +841,8 @@ export def SEEK_END: int = 2;
// Flock operations
export def LOCK_SH: int = 1;
export def LOCK_EX: int = 2;
-export def LOCK_UN: int = 4;
+export def LOCK_NB: int = 4;
+export def LOCK_UN: int = 8;
// Inotify init1 flags
export def IN_NONBLOCK: int = O_NONBLOCK;