about summary refs log tree commit diff
path: root/src/misc/uname.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/uname.c')
-rw-r--r--src/misc/uname.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/misc/uname.c b/src/misc/uname.c
new file mode 100644
index 00000000..fbe86643
--- /dev/null
+++ b/src/misc/uname.c
@@ -0,0 +1,8 @@
+#include <sys/utsname.h>
+#include <string.h>
+#include "syscall.h"
+
+int uname(struct utsname *uts)
+{
+	return syscall1(__NR_uname, (long)uts);
+}