mirror of
				https://github.com/Zygo/bees.git
				synced 2025-11-03 19:50:34 +01:00 
			
		
		
		
	lib: add Uname, a constructor for utsname
Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
		@@ -19,6 +19,7 @@ CRUCIBLE_OBJS = \
 | 
			
		||||
	string.o \
 | 
			
		||||
	task.o \
 | 
			
		||||
	time.o \
 | 
			
		||||
	uname.o \
 | 
			
		||||
 | 
			
		||||
include ../makeflags
 | 
			
		||||
-include ../localconf
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										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