Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
utsname.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Meta
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6#ifndef ZEPHYR_INCLUDE_POSIX_SYS_UTSNAME_H_
7#define ZEPHYR_INCLUDE_POSIX_SYS_UTSNAME_H_
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13struct utsname {
14 char sysname[sizeof("Zephyr")];
15 char nodename[CONFIG_POSIX_UNAME_NODENAME_LEN + 1];
16 char release[sizeof("99.99.99-rc1")];
17 char version[CONFIG_POSIX_UNAME_VERSION_LEN + 1];
18 char machine[sizeof(CONFIG_ARCH)];
19};
20
21int uname(struct utsname *name);
22
23#ifdef __cplusplus
24}
25#endif
26
27#endif /* ZEPHYR_INCLUDE_POSIX_SYS_UTSNAME_H_ */
Definition: utsname.h:13
char version[CONFIG_POSIX_UNAME_VERSION_LEN+1]
Definition: utsname.h:17
char machine[sizeof(CONFIG_ARCH)]
Definition: utsname.h:18
char sysname[sizeof("Zephyr")]
Definition: utsname.h:14
char nodename[CONFIG_POSIX_UNAME_NODENAME_LEN+1]
Definition: utsname.h:15
char release[sizeof("99.99.99-rc1")]
Definition: utsname.h:16
int uname(struct utsname *name)