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

#include <sys/cdefs.h>

#define UTSNAME_ENTRY_LEN 65

__BEGIN_DECLS

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*);

__END_DECLS