Tenok
A Linux-like Real-Time Operating System for Robotics and Internet of Things
utsname.h
Go to the documentation of this file.
1 
4 #ifndef __UTSNAME_H__
5 #define __UTSNAME_H__
6 
7 /* The length POSIX systems give these, the null byte included */
8 #define _UTSNAME_LENGTH 65
9 
10 struct utsname {
11  char sysname[_UTSNAME_LENGTH]; /* The system, always "Tenok" */
12  char nodename[_UTSNAME_LENGTH]; /* The board it was built for */
13  char release[_UTSNAME_LENGTH]; /* The revision it was built from */
14  char version[_UTSNAME_LENGTH]; /* When it was built */
15  char machine[_UTSNAME_LENGTH]; /* The architecture */
16  char domainname[_UTSNAME_LENGTH]; /* Tenok has no network, always empty */
17 };
18 
24 int uname(struct utsname *buf);
25 
26 #endif
Definition: utsname.h:10
int uname(struct utsname *buf)
Return the name and the version of the system.
Definition: utsname.c:6