summaryrefslogtreecommitdiff
path: root/LibC/sys
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-11-09 10:24:41 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-11-09 10:24:41 +0100
commit7b3b5f745f16eaf4a31a2aefce02a1325e1ab091 (patch)
treee8dfbef4c7b13233e4d7ef4fbba3e32a28efe731 /LibC/sys
parent8249c086c3b33cdd586afaf88bb7afe7791869eb (diff)
downloadserenity-7b3b5f745f16eaf4a31a2aefce02a1325e1ab091.zip
Move <utsname.h> to <sys/utsname.h> for correctness.
Diffstat (limited to 'LibC/sys')
-rw-r--r--LibC/sys/utsname.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/LibC/sys/utsname.h b/LibC/sys/utsname.h
new file mode 100644
index 0000000000..e617b2e34d
--- /dev/null
+++ b/LibC/sys/utsname.h
@@ -0,0 +1,20 @@
+#pragma once
+
+#include <sys/cdefs.h>
+
+#define UTSNAME_ENTRY_LEN 65
+
+__BEGIN_DECLS
+
+struct utsname {
+ char sysname[UTSNAME_ENTRY_LEN];
+ char nodename[UTSNAME_ENTRY_LEN];
+ char release[UTSNAME_ENTRY_LEN];
+ char version[UTSNAME_ENTRY_LEN];
+ char machine[UTSNAME_ENTRY_LEN];
+};
+
+int uname(struct utsname*);
+
+__END_DECLS
+