Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libc / include / llvm-libc-types / struct_utsname.h
blobbfd1ad9ceddb7a9815ca0f1256e5d9e3adda19cc
1 //===-- Definition of struct utsname --------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef __LLVM_LIBC_TYPES_STRUCT_UTSNAME_H__
10 #define __LLVM_LIBC_TYPES_STRUCT_UTSNAME_H__
12 #if defined(__linux__)
13 #define __UTS_NAME_LENGTH 65
14 #elif defined(__APPLE__)
15 #define __UTS_NAME_LENGTH 256
16 #else
17 // Arbitray default. Should be specialized for each platform.
18 #define __UTS_NAME_LENGTH 1024
19 #endif
21 struct utsname {
22 char sysname[__UTS_NAME_LENGTH];
23 char nodename[__UTS_NAME_LENGTH];
24 char release[__UTS_NAME_LENGTH];
25 char version[__UTS_NAME_LENGTH];
26 char machine[__UTS_NAME_LENGTH];
27 #ifdef __linux__
28 char domainname[__UTS_NAME_LENGTH];
29 #endif
32 #undef __UTS_NAME_LENGTH
34 #endif // __LLVM_LIBC_TYPES_STRUCT_UTSNAME_H__