17#ifndef ZEPHYR_INCLUDE_POSIX_SYS_UTSNAME_H_
18#define ZEPHYR_INCLUDE_POSIX_SYS_UTSNAME_H_
20#include <zephyr/sys/util_macro.h>
27#define _UTSNAME_NODENAME_LENGTH \
28 COND_CODE_1(CONFIG_POSIX_SINGLE_PROCESS, (CONFIG_POSIX_UNAME_VERSION_LEN), (0))
29#define _UTSNAME_VERSION_LENGTH \
30 COND_CODE_1(CONFIG_POSIX_SINGLE_PROCESS, (CONFIG_POSIX_UNAME_VERSION_LEN), (0))
38 char version[_UTSNAME_VERSION_LENGTH + 1];
int uname(struct utsname *name)
Get the name of the current system.
System identification information returned by uname().
char version[_UTSNAME_VERSION_LENGTH+1]
Current version level.
char machine[sizeof(CONFIG_ARCH)]
Hardware type identifier.
char sysname[sizeof("Zephyr")]
Name of the operating system.
char nodename[_UTSNAME_NODENAME_LENGTH+1]
Network node hostname.
char release[sizeof("99.99.99-rc1")]
Current release level.