[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] lib/nolibc: Provide _SC_OPEN_MAX with unistd.h



Populates _SC_OPEN_MAX with nolibc. lib/posix-sysinfo uses it with
commit f587ed23 "lib/vfscore: Expose max fds to sysconf".

Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
---
 lib/nolibc/include/unistd.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/nolibc/include/unistd.h b/lib/nolibc/include/unistd.h
index 99b5d305..d4cdb581 100644
--- a/lib/nolibc/include/unistd.h
+++ b/lib/nolibc/include/unistd.h
@@ -51,6 +51,7 @@ extern "C" {
 /*
  * Sysconf name values
  */
+#define _SC_OPEN_MAX 4
 #define _SC_PAGESIZE 8
 #define _SC_NPROCESSORS_ONLN 10
 
-- 
2.20.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.