summaryrefslogtreecommitdiff
path: root/LibC/utsname.h
blob: d50a5a42705c92e6e0ed1e8b00d92930711db5ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#define UTSNAME_ENTRY_LEN 65

extern "C" {

struct utsname {
    char sysname[UTSNAME_ENTRY_LEN];
    char nodename[UTSNAME_ENTRY_LEN];
    char release[UTSNAME_ENTRY_LEN];
    char version[UTSNAME_ENTRY_LEN];
    char machine[UTSNAME_ENTRY_LEN];
};

int uname(struct utsname*);

}