summaryrefslogtreecommitdiff
path: root/utils/utsname.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-05-11 21:31:14 +0100
committerVincent Sanders <vince@kyllikki.org>2014-05-11 21:31:14 +0100
commit39b0393d31a86a8fcfa770ad040207ace95bde0d (patch)
treed59b25fbd066984d0feaf57a4763134d0e9a2884 /utils/utsname.h
parent06a3f84e5032b93052f1eb95946d5f51aa9368f2 (diff)
downloadnetsurf-39b0393d31a86a8fcfa770ad040207ace95bde0d.tar.gz
netsurf-39b0393d31a86a8fcfa770ad040207ace95bde0d.tar.bz2
cleanup utils header, remove cruft and add documentation
Diffstat (limited to 'utils/utsname.h')
-rw-r--r--utils/utsname.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/utils/utsname.h b/utils/utsname.h
index cef183670..b4c0a79d9 100644
--- a/utils/utsname.h
+++ b/utils/utsname.h
@@ -27,16 +27,23 @@
#ifdef HAVE_UTSNAME
#include <sys/utsname.h>
#else
-/* from posix spec */
+/** system information filled in by uname derived from posix spec. */
struct utsname {
- char sysname[65]; /* Operating system name (e.g., "Linux") */
- char nodename[65]; /* Name within "some implementation-defined
- network" */
- char release[65]; /* OS release (e.g., "2.6.28") */
- char version[65]; /* OS version */
- char machine[65]; /* Hardware identifier */
+ char sysname[65]; /**< Operating system name (e.g., "Linux") */
+ char nodename[65]; /**< Name within "some implementation-defined
+ * network"
+ */
+ char release[65]; /**< OS release (e.g., "2.6.28") */
+ char version[65]; /**< OS version */
+ char machine[65]; /**< Hardware identifier */
};
+/**
+ * Get the system information.
+ *
+ * @param buf the buffer to fill with teh information.
+ * @return 0 on sucess or -1 and errno set on faliure.
+ */
int uname(struct utsname *buf);
#endif