mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:32:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			198 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			198 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include <Kernel/Syscall.h>
 | |
| #include <errno.h>
 | |
| #include <sys/utsname.h>
 | |
| 
 | |
| extern "C" {
 | |
| 
 | |
| int uname(struct utsname* buf)
 | |
| {
 | |
|     int rc = syscall(SC_uname, buf);
 | |
|     __RETURN_WITH_ERRNO(rc, rc, -1);
 | |
| }
 | |
| }
 | 
