int gethostname(char *name, size_t namelen)
Get name of current host.
size_t strlcpy(char *dst, const char *src, size_t siz)
Copy src to string dst of size siz.
char machine[UTSBUF]
Name of the hardware type on which the system is running.
char version[UTSBUF]
Current version level of this release.
int uname(struct utsname *name)
Get the name of the current system.
#define UTSBUF
Size of each buffer in the utsname structure fields.
char sysname[UTSBUF]
Name of this implementation of the operating system.
char nodename[UTSBUF]
Name of this node within the communications network to which this node is attached,...
char release[UTSBUF]
Current release level of this implementation.