[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / libc / include / llvm-libc-types / struct_utsname.h
blob8d41938ab6932eab2c85b67cec06fe1f76ba6271
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 #ifdef __unix__
13 #define __UTS_NAME_LENGTH 65
14 #else
15 // Arbitray default. Should be specialized for each platform.
16 #define __UTS_NAME_LENGTH 1024
17 #endif
19 struct utsname {
20 char sysname[__UTS_NAME_LENGTH];
21 char nodename[__UTS_NAME_LENGTH];
22 char release[__UTS_NAME_LENGTH];
23 char version[__UTS_NAME_LENGTH];
24 char machine[__UTS_NAME_LENGTH];
25 #ifdef __unix__
26 char domainname[__UTS_NAME_LENGTH];
27 #endif
30 #undef __UTS_NAME_LENGTH
32 #endif // __LLVM_LIBC_TYPES_STRUCT_UTSNAME_H__