mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:52:45 +00:00 
			
		
		
		
	 98c0c5e9e6
			
		
	
	
		98c0c5e9e6
		
	
	
	
	
		
			
			The URLs of the form `help://man/<section>/<page>` link to another help page inside the help application. All previous relative page links are replaced by this new form. This doesn't change any behavior but it looks much nicer :^) Note that man doesn't handle these new links, but the previous relative links didn't work either.
		
			
				
	
	
		
			38 lines
		
	
	
	
		
			623 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
	
		
			623 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ## Name
 | |
| 
 | |
| uname - retrieve information about the current kernel
 | |
| 
 | |
| ## Synopsis
 | |
| 
 | |
| ```**c++
 | |
| #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`.
 | |
| 
 | |
| ```**c++
 | |
| 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`: `buf` is not a writable address.
 | |
| 
 | |
| ## See also
 | |
| 
 | |
| * [`uname`(1)](help://man/1/uname)
 |