1
0
Mirror von https://github.com/tkuschel/bees.git synchronisiert 2026-05-07 20:49:38 +02:00

lib: add Uname, a constructor for utsname

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
Dieser Commit ist enthalten in:
Zygo Blaxell
2021-11-02 21:50:36 -04:00
Ursprung 7f67f55746
Commit 5d7e815eb4
3 geänderte Dateien mit 26 neuen und 0 gelöschten Zeilen
+14
Datei anzeigen
@@ -0,0 +1,14 @@
#ifndef CRUCIBLE_UNAME_H
#define CRUCIBLE_UNAME_H
#include <sys/utsname.h>
namespace crucible {
using namespace std;
struct Uname : public utsname {
Uname();
};
}
#endif
+1
Datei anzeigen
@@ -19,6 +19,7 @@ CRUCIBLE_OBJS = \
string.o \
task.o \
time.o \
uname.o \
include ../makeflags
-include ../localconf
+11
Datei anzeigen
@@ -0,0 +1,11 @@
#include "crucible/error.h"
#include "crucible/uname.h"
namespace crucible {
using namespace std;
Uname::Uname()
{
DIE_IF_NON_ZERO(uname(static_cast<utsname*>(this)));
}
}