shithub: npe

Download patch

ref: 6fa06d8a266d0fdf5c2382fcd108edc1dba4ca12
parent: ab3b4d3d9fc91716220b146dc0f57653a5b1daf4
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Sun Jun 20 08:13:30 EDT 2021

fcntl: add a few open(2) flags

--- a/include/npe/fcntl.h
+++ b/include/npe/fcntl.h
@@ -1,1 +1,12 @@
+#ifndef _npe_fcntl_h_
+#define _npe_fcntl_h_
+
 #include <npe.h>
+
+#define O_RDONLY OREAD
+#define O_WRITE OWRITE
+#define O_RDWR ORDWR
+#define O_CLOEXEC OCEXEC
+#define O_TRUNC OTRUNC
+
+#endif