mirror of
https://github.com/Zygo/bees.git
synced 2025-06-16 17:46:16 +02:00
lib: add Uname, a constructor for utsname
Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
11
lib/uname.cc
Normal file
11
lib/uname.cc
Normal file
@ -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)));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user