mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-06 23:02:10 +03:00
befa5866ee
placing the opening brace on the same line as the struct keyword/tag is the style I prefer and seems to be the prevailing practice in more recent additions. these changes were generated by the command: find include/ arch/*/bits -name '*.h' \ -exec sed -i '/^struct [^;{]*$/{N;s/\n/ /;}' {} + and subsequently checked by hand to ensure that the regex did not pick up any false positives.
30 lines
372 B
C
30 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
|