diff options
Diffstat (limited to 'vendor/modernc.org/libc/stdio/stdio_linux_arm64.go')
-rw-r--r-- | vendor/modernc.org/libc/stdio/stdio_linux_arm64.go | 242 |
1 files changed, 152 insertions, 90 deletions
diff --git a/vendor/modernc.org/libc/stdio/stdio_linux_arm64.go b/vendor/modernc.org/libc/stdio/stdio_linux_arm64.go index 33edd7645..e4cc28cd9 100644 --- a/vendor/modernc.org/libc/stdio/stdio_linux_arm64.go +++ b/vendor/modernc.org/libc/stdio/stdio_linux_arm64.go @@ -1,4 +1,4 @@ -// Code generated by 'ccgo stdio/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio/stdio_linux_arm64.go -pkgname stdio', DO NOT EDIT. +// Code generated by 'ccgo stdio/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio/stdio_linux_arm64.go -pkgname stdio', DO NOT EDIT. package stdio @@ -28,6 +28,7 @@ const ( TMP_MAX = 238328 X_ATFILE_SOURCE = 1 X_BITS_STDIO_LIM_H = 1 + X_BITS_TIME64_H = 1 X_BITS_TYPESIZES_H = 1 X_BITS_TYPES_H = 1 X_BSD_SIZE_T_ = 0 @@ -88,14 +89,9 @@ type X__float128 = float64 /* <builtin>:47:21 */ // Define this type if we are doing the whole job, // or if we want this type in particular. -// In 4.3bsd-net2, leave these undefined to indicate that size_t, etc. -// are already defined. -// BSD/OS 3.1 and FreeBSD [23].x require the MACHINE_ANSI_H check here. -// NetBSD 5 requires the I386_ANSI_H and X86_64_ANSI_H checks here. - // A null pointer constant. -// Copyright (C) 1989-2018 Free Software Foundation, Inc. +// Copyright (C) 1989-2020 Free Software Foundation, Inc. // // This file is part of GCC. // @@ -128,7 +124,7 @@ type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */ // if this invocation was from the user program. // bits/types.h -- definitions of __*_t types underlying *_t types. -// Copyright (C) 2002-2018 Free Software Foundation, Inc. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. // This file is part of the GNU C Library. // // The GNU C Library is free software; you can redistribute it and/or @@ -143,11 +139,11 @@ type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */ // // You should have received a copy of the GNU Lesser General Public // License along with the GNU C Library; if not, see -// <http://www.gnu.org/licenses/>. +// <https://www.gnu.org/licenses/>. // Never include this file directly; use <sys/types.h> instead. -// Copyright (C) 1991-2018 Free Software Foundation, Inc. +// Copyright (C) 1991-2020 Free Software Foundation, Inc. // This file is part of the GNU C Library. // // The GNU C Library is free software; you can redistribute it and/or @@ -162,11 +158,11 @@ type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */ // // You should have received a copy of the GNU Lesser General Public // License along with the GNU C Library; if not, see -// <http://www.gnu.org/licenses/>. +// <https://www.gnu.org/licenses/>. // Determine the wordsize from the preprocessor defines. // -// Copyright (C) 2016-2018 Free Software Foundation, Inc. +// Copyright (C) 2016-2020 Free Software Foundation, Inc. // This file is part of the GNU C Library. // // The GNU C Library is free software; you can redistribute it and/or @@ -181,41 +177,80 @@ type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */ // // You should have received a copy of the GNU Lesser General Public // License along with the GNU C Library; if not, see -// <http://www.gnu.org/licenses/>. +// <https://www.gnu.org/licenses/>. + +// Bit size of the time_t type at glibc build time, general case. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// <https://www.gnu.org/licenses/>. + +// Determine the wordsize from the preprocessor defines. +// +// Copyright (C) 2016-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// <https://www.gnu.org/licenses/>. + +// Size in bits of the 'time_t' type of the default ABI. // Convenience types. -type X__u_char = uint8 /* types.h:30:23 */ -type X__u_short = uint16 /* types.h:31:28 */ -type X__u_int = uint32 /* types.h:32:22 */ -type X__u_long = uint64 /* types.h:33:27 */ +type X__u_char = uint8 /* types.h:31:23 */ +type X__u_short = uint16 /* types.h:32:28 */ +type X__u_int = uint32 /* types.h:33:22 */ +type X__u_long = uint64 /* types.h:34:27 */ // Fixed-size types, underlying types depend on word size and compiler. -type X__int8_t = int8 /* types.h:36:21 */ -type X__uint8_t = uint8 /* types.h:37:23 */ -type X__int16_t = int16 /* types.h:38:26 */ -type X__uint16_t = uint16 /* types.h:39:28 */ -type X__int32_t = int32 /* types.h:40:20 */ -type X__uint32_t = uint32 /* types.h:41:22 */ -type X__int64_t = int64 /* types.h:43:25 */ -type X__uint64_t = uint64 /* types.h:44:27 */ +type X__int8_t = int8 /* types.h:37:21 */ +type X__uint8_t = uint8 /* types.h:38:23 */ +type X__int16_t = int16 /* types.h:39:26 */ +type X__uint16_t = uint16 /* types.h:40:28 */ +type X__int32_t = int32 /* types.h:41:20 */ +type X__uint32_t = uint32 /* types.h:42:22 */ +type X__int64_t = int64 /* types.h:44:25 */ +type X__uint64_t = uint64 /* types.h:45:27 */ // Smallest types with at least a given width. -type X__int_least8_t = X__int8_t /* types.h:51:18 */ -type X__uint_least8_t = X__uint8_t /* types.h:52:19 */ -type X__int_least16_t = X__int16_t /* types.h:53:19 */ -type X__uint_least16_t = X__uint16_t /* types.h:54:20 */ -type X__int_least32_t = X__int32_t /* types.h:55:19 */ -type X__uint_least32_t = X__uint32_t /* types.h:56:20 */ -type X__int_least64_t = X__int64_t /* types.h:57:19 */ -type X__uint_least64_t = X__uint64_t /* types.h:58:20 */ +type X__int_least8_t = X__int8_t /* types.h:52:18 */ +type X__uint_least8_t = X__uint8_t /* types.h:53:19 */ +type X__int_least16_t = X__int16_t /* types.h:54:19 */ +type X__uint_least16_t = X__uint16_t /* types.h:55:20 */ +type X__int_least32_t = X__int32_t /* types.h:56:19 */ +type X__uint_least32_t = X__uint32_t /* types.h:57:20 */ +type X__int_least64_t = X__int64_t /* types.h:58:19 */ +type X__uint_least64_t = X__uint64_t /* types.h:59:20 */ // quad_t is also 64 bits. -type X__quad_t = int64 /* types.h:62:18 */ -type X__u_quad_t = uint64 /* types.h:63:27 */ +type X__quad_t = int64 /* types.h:63:18 */ +type X__u_quad_t = uint64 /* types.h:64:27 */ // Largest integral types. -type X__intmax_t = int64 /* types.h:71:18 */ -type X__uintmax_t = uint64 /* types.h:72:27 */ +type X__intmax_t = int64 /* types.h:72:18 */ +type X__uintmax_t = uint64 /* types.h:73:27 */ // The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE // macros for each of the OS types we define below. The definitions @@ -227,7 +262,7 @@ type X__uintmax_t = uint64 /* types.h:72:27 */ // 32 -- "natural" 32-bit type (always int) // 64 -- "natural" 64-bit type (long or long long) // LONG32 -- 32-bit type, traditionally long -// QUAD -- 64-bit type, always long long +// QUAD -- 64-bit type, traditionally long long // WORD -- natural type of __WORDSIZE bits (int or long) // LONGWORD -- type of __WORDSIZE bits, traditionally long // @@ -248,7 +283,7 @@ type X__uintmax_t = uint64 /* types.h:72:27 */ // No need to mark the typedef with __extension__. // bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI. -// Copyright (C) 2011-2018 Free Software Foundation, Inc. +// Copyright (C) 2011-2020 Free Software Foundation, Inc. // This file is part of the GNU C Library. // Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011. // @@ -264,7 +299,7 @@ type X__uintmax_t = uint64 /* types.h:72:27 */ // // You should have received a copy of the GNU Lesser General Public // License along with the GNU C Library. If not, see -// <http://www.gnu.org/licenses/>. +// <https://www.gnu.org/licenses/>. // See <bits/types.h> for the meaning of these macros. This file exists so // that <bits/types.h> need not vary across different GNU platforms. @@ -277,81 +312,108 @@ type X__uintmax_t = uint64 /* types.h:72:27 */ // And for __rlim_t and __rlim64_t. +// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. // Number of descriptors that can fit in an `fd_set'. -type X__dev_t = uint64 /* types.h:143:25 */ // Type of device numbers. -type X__uid_t = uint32 /* types.h:144:25 */ // Type of user identifications. -type X__gid_t = uint32 /* types.h:145:25 */ // Type of group identifications. -type X__ino_t = uint64 /* types.h:146:25 */ // Type of file serial numbers. -type X__ino64_t = uint64 /* types.h:147:27 */ // Type of file serial numbers (LFS). -type X__mode_t = uint32 /* types.h:148:26 */ // Type of file attribute bitmasks. -type X__nlink_t = uint32 /* types.h:149:27 */ // Type of file link counts. -type X__off_t = int64 /* types.h:150:25 */ // Type of file sizes and offsets. -type X__off64_t = int64 /* types.h:151:27 */ // Type of file sizes and offsets (LFS). -type X__pid_t = int32 /* types.h:152:25 */ // Type of process identifications. -type X__fsid_t = struct{ F__val [2]int32 } /* types.h:153:26 */ // Type of file system IDs. -type X__clock_t = int64 /* types.h:154:27 */ // Type of CPU usage counts. -type X__rlim_t = uint64 /* types.h:155:26 */ // Type for resource measurement. -type X__rlim64_t = uint64 /* types.h:156:28 */ // Type for resource measurement (LFS). -type X__id_t = uint32 /* types.h:157:24 */ // General type for IDs. -type X__time_t = int64 /* types.h:158:26 */ // Seconds since the Epoch. -type X__useconds_t = uint32 /* types.h:159:30 */ // Count of microseconds. -type X__suseconds_t = int64 /* types.h:160:31 */ // Signed count of microseconds. - -type X__daddr_t = int32 /* types.h:162:27 */ // The type of a disk address. -type X__key_t = int32 /* types.h:163:25 */ // Type of an IPC key. +// bits/time64.h -- underlying types for __time64_t. Generic version. +// Copyright (C) 2018-2020 Free Software Foundation, Inc. +// This file is part of the GNU C Library. +// +// The GNU C Library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// The GNU C Library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with the GNU C Library; if not, see +// <https://www.gnu.org/licenses/>. + +// Define __TIME64_T_TYPE so that it is always a 64-bit type. + +// If we already have 64-bit time type then use it. + +type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers. +type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications. +type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications. +type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers. +type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS). +type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks. +type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts. +type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets. +type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS). +type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications. +type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs. +type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts. +type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement. +type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS). +type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs. +type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch. +type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds. +type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds. + +type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address. +type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key. // Clock ID used in clock and timer functions. -type X__clockid_t = int32 /* types.h:166:29 */ +type X__clockid_t = int32 /* types.h:168:29 */ // Timer ID returned by `timer_create'. -type X__timer_t = uintptr /* types.h:169:12 */ +type X__timer_t = uintptr /* types.h:171:12 */ // Type to represent block size. -type X__blksize_t = int32 /* types.h:172:29 */ +type X__blksize_t = int32 /* types.h:174:29 */ // Types from the Large File Support interface. // Type to count number of disk blocks. -type X__blkcnt_t = int64 /* types.h:177:28 */ -type X__blkcnt64_t = int64 /* types.h:178:30 */ +type X__blkcnt_t = int64 /* types.h:179:28 */ +type X__blkcnt64_t = int64 /* types.h:180:30 */ // Type to count file system blocks. -type X__fsblkcnt_t = uint64 /* types.h:181:30 */ -type X__fsblkcnt64_t = uint64 /* types.h:182:32 */ +type X__fsblkcnt_t = uint64 /* types.h:183:30 */ +type X__fsblkcnt64_t = uint64 /* types.h:184:32 */ // Type to count file system nodes. -type X__fsfilcnt_t = uint64 /* types.h:185:30 */ -type X__fsfilcnt64_t = uint64 /* types.h:186:32 */ +type X__fsfilcnt_t = uint64 /* types.h:187:30 */ +type X__fsfilcnt64_t = uint64 /* types.h:188:32 */ // Type of miscellaneous file system fields. -type X__fsword_t = int64 /* types.h:189:28 */ +type X__fsword_t = int64 /* types.h:191:28 */ -type X__ssize_t = int64 /* types.h:191:27 */ // Type of a byte count, or error. +type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error. // Signed long type used in system calls. -type X__syscall_slong_t = int64 /* types.h:194:33 */ +type X__syscall_slong_t = int64 /* types.h:196:33 */ // Unsigned long type used in system calls. -type X__syscall_ulong_t = uint64 /* types.h:196:33 */ +type X__syscall_ulong_t = uint64 /* types.h:198:33 */ // These few don't really vary by system, they always correspond // to one of the other defined types. -type X__loff_t = X__off64_t /* types.h:200:19 */ // Type of file sizes and offsets (LFS). -type X__caddr_t = uintptr /* types.h:201:14 */ +type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS). +type X__caddr_t = uintptr /* types.h:203:14 */ // Duplicates info from stdint.h but this is used in unistd.h. -type X__intptr_t = int64 /* types.h:204:25 */ +type X__intptr_t = int64 /* types.h:206:25 */ // Duplicate info from sys/socket.h. -type X__socklen_t = uint32 /* types.h:207:23 */ +type X__socklen_t = uint32 /* types.h:209:23 */ // C99: An integer type that can be accessed as an atomic entity, // even in the presence of asynchronous interrupts. // It is not currently necessary for this to be machine-specific. -type X__sig_atomic_t = int32 /* types.h:212:13 */ +type X__sig_atomic_t = int32 /* types.h:214:13 */ + +// Seconds since the Epoch, visible to user code when time_t is too +// narrow only for consistency with the old way of widening too-narrow +// types. User code should never use __time64_t. // bits/types.h -- definitions of __*_t types underlying *_t types. -// Copyright (C) 2002-2018 Free Software Foundation, Inc. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. // This file is part of the GNU C Library. // // The GNU C Library is free software; you can redistribute it and/or @@ -366,7 +428,7 @@ type X__sig_atomic_t = int32 /* types.h:212:13 */ // // You should have received a copy of the GNU Lesser General Public // License along with the GNU C Library; if not, see -// <http://www.gnu.org/licenses/>. +// <https://www.gnu.org/licenses/>. // Never include this file directly; use <sys/types.h> instead. @@ -395,7 +457,7 @@ type X_G_fpos_t = struct { type X__fpos_t = X_G_fpos_t /* __fpos_t.h:14:3 */ // bits/types.h -- definitions of __*_t types underlying *_t types. -// Copyright (C) 2002-2018 Free Software Foundation, Inc. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. // This file is part of the GNU C Library. // // The GNU C Library is free software; you can redistribute it and/or @@ -410,7 +472,7 @@ type X__fpos_t = X_G_fpos_t /* __fpos_t.h:14:3 */ // // You should have received a copy of the GNU Lesser General Public // License along with the GNU C Library; if not, see -// <http://www.gnu.org/licenses/>. +// <https://www.gnu.org/licenses/>. // Never include this file directly; use <sys/types.h> instead. @@ -423,7 +485,7 @@ type X_G_fpos64_t = struct { } /* __fpos64_t.h:10:9 */ // bits/types.h -- definitions of __*_t types underlying *_t types. -// Copyright (C) 2002-2018 Free Software Foundation, Inc. +// Copyright (C) 2002-2020 Free Software Foundation, Inc. // This file is part of the GNU C Library. // // The GNU C Library is free software; you can redistribute it and/or @@ -438,7 +500,7 @@ type X_G_fpos64_t = struct { // // You should have received a copy of the GNU Lesser General Public // License along with the GNU C Library; if not, see -// <http://www.gnu.org/licenses/>. +// <https://www.gnu.org/licenses/>. // Never include this file directly; use <sys/types.h> instead. @@ -449,7 +511,7 @@ type X__fpos64_t = X_G_fpos64_t /* __fpos64_t.h:14:3 */ type X_IO_FILE = struct { F_flags int32 - _ [4]byte + F__ccgo_pad1 [4]byte F_IO_read_ptr uintptr F_IO_read_end uintptr F_IO_read_base uintptr @@ -468,8 +530,8 @@ type X_IO_FILE = struct { F_old_offset X__off_t F_cur_column uint16 F_vtable_offset int8 - F_shortbuf [1]int8 - _ [4]byte + F_shortbuf [1]uint8 + F__ccgo_pad2 [4]byte F_lock uintptr F_offset X__off64_t F_codecvt uintptr @@ -478,7 +540,7 @@ type X_IO_FILE = struct { F_freeres_buf uintptr F__pad5 Size_t F_mode int32 - F_unused2 [20]int8 + F_unused2 [20]uint8 } /* __FILE.h:4:1 */ type X__FILE = X_IO_FILE /* __FILE.h:5:25 */ @@ -502,4 +564,4 @@ type Fpos_t = X__fpos64_t /* stdio.h:86:20 */ // If we are compiling with optimizing read this file. It contains // several optimizing inline functions and macros. -var _ int8 /* gen.c:2:13: */ +var _ uint8 /* gen.c:2:13: */ |