Displaying 1 result from an estimated 1 matches for "0e21beb".
2013 May 13
0
[klibc:sysconf] Framework and trivial implementation of sysconf(3)
...io/ftell.o stdio/rewind.o \
- stdio/fileno.o stdio/feof.o stdio/ferror.o
+ stdio/fileno.o stdio/feof.o stdio/ferror.o \
+ sysconf/sysconf.o
klib-$(CONFIG_KLIBC_ERRLIST) += errlist.o
diff --git a/usr/klibc/sysconf/sysconf.c b/usr/klibc/sysconf/sysconf.c
new file mode 100644
index 0000000..0e21beb
--- /dev/null
+++ b/usr/klibc/sysconf/sysconf.c
@@ -0,0 +1,8 @@
+#include <sys/sysconf.h>
+
+#undef sysconf
+
+long sysconf(int val)
+{
+ return __sysconf_inline(val);
+}