mirror of
git://git.musl-libc.org/musl
synced 2024-12-26 00:22:35 +00:00
c1a9658bd1
the old behavior of exposing nothing except plain ISO C can be obtained by defining __STRICT_ANSI__ or using a compiler option (such as -std=c99) that predefines it. the new default featureset is POSIX with XSI plus _BSD_SOURCE. any explicit feature test macros will inhibit the default. installation docs have also been updated to reflect this change.
31 lines
372 B
C
31 lines
372 B
C
#ifndef _SYS_UTSNAME_H
|
|
#define _SYS_UTSNAME_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <features.h>
|
|
|
|
struct utsname
|
|
{
|
|
char sysname[65];
|
|
char nodename[65];
|
|
char release[65];
|
|
char version[65];
|
|
char machine[65];
|
|
#ifdef _GNU_SOURCE
|
|
char domainname[65];
|
|
#else
|
|
char __domainname[65];
|
|
#endif
|
|
};
|
|
|
|
int uname (struct utsname *);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|