Add doxygen-style code comments to the `posix-sysinfo` internal library
files.
Signed-off-by: Stefan Jumarea <stefanjumarea02@gmail.com>
#define SI_LOAD_SHIFT 16
+/**
+ * Structure used by the `sysinfo()` system call.
+ * Follows Linux conventions.
+ */
struct sysinfo {
unsigned long uptime;
unsigned long loads[3];
char _f[20-2*sizeof(unsigned long)-sizeof(unsigned int)];
};
+/**
+ * Follows Linux conventions for the `sysinfo()` system call.
+ */
int sysinfo (struct sysinfo *);
+
+/**
+ * Functions currently not implemented.
+ */
int get_nprocs_conf (void);
int get_nprocs (void);
long get_phys_pages (void);
#define __UTSNAMELEN 65 /* synchronize with kernel */
+/**
+ * Structure used by the `uname()` system call.
+ * Follows Linux conventions.
+ */
struct utsname {
char sysname[__UTSNAMELEN];
char nodename[__UTSNAMELEN];
#include <vfscore/file.h>
#endif
+/**
+ * The Unikraft `struct utsname` structure.
+ *
+ * * `sysname` and `nodename` are set to "unikraft".
+ * * `release` is set to * `5-{Unikraft Release Codename}` for glibc
+ * compatibility (see the comments below).
+ * * `version` is set to the Unikraft full version.
+ * * `machine` is set to the current architecture.
+ */
static struct utsname utsname = {
.sysname = "Unikraft",
.nodename = "unikraft",