mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:52:43 +00:00 
			
		
		
		
	
		
			
				
	
	
	
	
		
			621 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			621 B
		
	
	
	
	
	
	
	
Name
uname - retrieve information about the current kernel
Synopsis
#include <sys/utsname.h>
int uname(struct utsname* buf);
Description
Retrieves information about the current kernel and writes it into the utsname
structure pointed to by buf.
struct utsname {
    char sysname[];
    char nodename[];
    char release[];
    char version[];
    char machine[];
};
Return value
If successful, returns 0. Otherwise, returns -1 and sets errno to describe the error.
Errors
- EFAULT:- bufis not a writable address.
