mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-02 03:14:15 +01:00
20 lines
657 B
C
20 lines
657 B
C
#pragma once
|
|
|
|
#ifndef FASTFETCH_INCLUDED_UTSNAME_H
|
|
#define FASTFETCH_INCLUDED_UTSNAME_H
|
|
|
|
#define UTSNAME_MAXLENGTH 256
|
|
|
|
struct utsname
|
|
{
|
|
char sysname[UTSNAME_MAXLENGTH]; // name of this implementation of the operating system
|
|
char nodename[UTSNAME_MAXLENGTH]; // name of this node within an implementation - dependent communications network
|
|
char release[UTSNAME_MAXLENGTH]; // current release level of this implementation
|
|
char version[UTSNAME_MAXLENGTH]; // current version level of this release
|
|
char machine[UTSNAME_MAXLENGTH]; // name of the hardware type on which the system is running
|
|
};
|
|
|
|
int uname(struct utsname *name);
|
|
|
|
#endif
|