diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-11-09 10:24:41 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-11-09 10:24:41 +0100 |
commit | 7b3b5f745f16eaf4a31a2aefce02a1325e1ab091 (patch) | |
tree | e8dfbef4c7b13233e4d7ef4fbba3e32a28efe731 /LibC/sys | |
parent | 8249c086c3b33cdd586afaf88bb7afe7791869eb (diff) | |
download | serenity-7b3b5f745f16eaf4a31a2aefce02a1325e1ab091.zip |
Move <utsname.h> to <sys/utsname.h> for correctness.
Diffstat (limited to 'LibC/sys')
-rw-r--r-- | LibC/sys/utsname.h | 20 |
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 + |