1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:07:46 +00:00

Docs: Add uname(1) and uname(2) man pages

This commit is contained in:
Andreas Kling 2019-11-17 19:48:11 +01:00
parent 3093b019d0
commit 3d558f47b0
2 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,38 @@
## 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)](../man1/uname.md)