POSIX-standard system-level APIs
More...
|
int | uname (struct utsname *n) |
| Retrieve version and other similar information about the kernel.
|
|
POSIX-standard system-level APIs
◆ _UTSNAME_LENGTH
#define _UTSNAME_LENGTH 64 |
◆ MAX_FN_LEN
◆ NAME_MAX
◆ PATH_MAX
◆ SYMLOOP_MAX
Max number of symlinks resolved.
◆ uname()
Retrieve version and other similar information about the kernel.
This function retrieves information about the current version of the kernel that is running, storing it in the provided buffer.
- Parameters
-
n | The buffer to store version information in. |
- Returns
- 0 on success, -1 on error (setting errno appropriately).