chore(deps): Update sqlite dependencies

This commit is contained in:
TwiN
2022-12-01 20:19:56 -05:00
parent 080563bd4f
commit cdec353744
564 changed files with 583632 additions and 1166555 deletions

View File

@ -1,5 +1,7 @@
// 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_darwin_amd64.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 -ignore-unsupported-alignment -o stdio/stdio_darwin_amd64.go -pkgname stdio', DO NOT EDIT.
package stdio
var CAPI = map[string]struct{}{}
var CAPI = map[string]struct{}{
"__darwin_check_fd_set_overflow": {},
}

View File

@ -1,5 +1,7 @@
// 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_darwin_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 -ignore-unsupported-alignment -o stdio/stdio_darwin_arm64.go -pkgname stdio', DO NOT EDIT.
package stdio
var CAPI = map[string]struct{}{}
var CAPI = map[string]struct{}{
"__darwin_check_fd_set_overflow": {},
}

View File

@ -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 -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio/stdio_freebsd_amd64.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 -ignore-unsupported-alignment -o stdio/stdio_freebsd_amd64.go -pkgname stdio', DO NOT EDIT.
package stdio

View File

@ -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 -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio/stdio_linux_amd64.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 -ignore-unsupported-alignment -o stdio/stdio_linux_amd64.go -pkgname stdio', DO NOT EDIT.
package stdio

View File

@ -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 -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio/stdio_netbsd_amd64.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 -ignore-unsupported-alignment -o stdio/stdio_netbsd_amd64.go -pkgname stdio', DO NOT EDIT.
package stdio

View File

@ -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 -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio/stdio_windows_386.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 -ignore-unsupported-alignment -o stdio/stdio_windows_386.go -pkgname stdio', DO NOT EDIT.
package stdio

View File

@ -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 -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio/stdio_windows_amd64.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_windows_amd64.go -pkgname stdio', DO NOT EDIT.
package stdio

View File

@ -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 "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio/stdio_darwin_amd64.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 -ignore-unsupported-alignment -o stdio/stdio_darwin_amd64.go -pkgname stdio', DO NOT EDIT.
package stdio
@ -15,61 +15,60 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
BUFSIZ = 1024
EOF = -1
FILENAME_MAX = 1024
FIXINC_WRAP_STDIO_H_STDIO_STDARG_H = 1
FOPEN_MAX = 20
L_ctermid = 1024
L_tmpnam = 1024
P_tmpdir = "/var/tmp/"
RENAME_EXCL = 0x00000004
RENAME_SECLUDE = 0x00000001
RENAME_SWAP = 0x00000002
SEEK_CUR = 1
SEEK_END = 2
SEEK_SET = 0
TMP_MAX = 308915776
X_BSD_I386__TYPES_H_ = 0
X_BSD_MACHINE_TYPES_H_ = 0
X_BSD_MACHINE__TYPES_H_ = 0
X_CDEFS_H_ = 0
X_CTERMID_H_ = 0
X_DARWIN_FEATURE_64_BIT_INODE = 1
X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1
X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3
X_FILE_OFFSET_BITS = 64
X_FORTIFY_SOURCE = 2
X_FSTDIO = 0
X_INT16_T = 0
X_INT32_T = 0
X_INT64_T = 0
X_INT8_T = 0
X_INTPTR_T = 0
X_IOFBF = 0
X_IOLBF = 1
X_IONBF = 2
X_LP64 = 1
X_MACHTYPES_H_ = 0
X_Nonnull = 0
X_Null_unspecified = 0
X_Nullable = 0
X_OFF_T = 0
X_SECURE__COMMON_H_ = 0
X_SECURE__STDIO_H_ = 0
X_SIZE_T = 0
X_SSIZE_T = 0
X_STDIO_H_ = 0
X_SYS_STDIO_H_ = 0
X_SYS__PTHREAD_TYPES_H_ = 0
X_SYS__TYPES_H_ = 0
X_UINTPTR_T = 0
X_USE_FORTIFY_LEVEL = 2
X_U_INT16_T = 0
X_U_INT32_T = 0
X_U_INT64_T = 0
X_U_INT8_T = 0
X_VA_LIST_T = 0
BUFSIZ = 1024 // stdio.h:103:1:
EOF = -1 // stdio.h:104:1:
FILENAME_MAX = 1024 // stdio.h:108:1:
FOPEN_MAX = 20 // stdio.h:107:1:
L_ctermid = 1024 // stdio.h:202:1:
L_tmpnam = 1024 // stdio.h:114:1:
P_tmpdir = "/var/tmp/" // stdio.h:112:1:
RENAME_EXCL = 0x00000004 // stdio.h:45:1:
RENAME_SECLUDE = 0x00000001 // stdio.h:43:1:
RENAME_SWAP = 0x00000002 // stdio.h:44:1:
SEEK_CUR = 1 // stdio.h:121:1:
SEEK_END = 2 // stdio.h:124:1:
SEEK_SET = 0 // stdio.h:118:1:
TMP_MAX = 308915776 // stdio.h:115:1:
X_BSD_I386__TYPES_H_ = 0 // _types.h:29:1:
X_BSD_MACHINE_TYPES_H_ = 0 // types.h:32:1:
X_BSD_MACHINE__TYPES_H_ = 0 // _types.h:29:1:
X_CDEFS_H_ = 0 // cdefs.h:68:1:
X_CTERMID_H_ = 0 // _ctermid.h:25:1:
X_DARWIN_FEATURE_64_BIT_INODE = 1 // cdefs.h:745:1:
X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:771:1:
X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:779:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FORTIFY_SOURCE = 2 // _types.h:65:1:
X_FSTDIO = 0 // _stdio.h:83:1:
X_INT16_T = 0 // _int16_t.h:29:1:
X_INT32_T = 0 // _int32_t.h:29:1:
X_INT64_T = 0 // _int64_t.h:29:1:
X_INT8_T = 0 // _int8_t.h:29:1:
X_INTPTR_T = 0 // _intptr_t.h:29:1:
X_IOFBF = 0 // stdio.h:99:1:
X_IOLBF = 1 // stdio.h:100:1:
X_IONBF = 2 // stdio.h:101:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHTYPES_H_ = 0 // types.h:67:1:
X_Nonnull = 0 // cdefs.h:243:1:
X_Null_unspecified = 0 // cdefs.h:246:1:
X_Nullable = 0 // cdefs.h:240:1:
X_OFF_T = 0 // _off_t.h:29:1:
X_SECURE__COMMON_H_ = 0 // _common.h:25:1:
X_SECURE__STDIO_H_ = 0 // _stdio.h:29:1:
X_SIZE_T = 0 // _size_t.h:29:1:
X_SSIZE_T = 0 // _ssize_t.h:29:1:
X_STDIO_H_ = 0 // stdio.h:62:1:
X_SYS_STDIO_H_ = 0 // stdio.h:30:1:
X_SYS__PTHREAD_TYPES_H_ = 0 // _pthread_types.h:30:1:
X_SYS__TYPES_H_ = 0 // _types.h:30:1:
X_UINTPTR_T = 0 // _uintptr_t.h:29:1:
X_USE_FORTIFY_LEVEL = 2 // _common.h:30:1:
X_U_INT16_T = 0 // _u_int16_t.h:29:1:
X_U_INT32_T = 0 // _u_int32_t.h:29:1:
X_U_INT64_T = 0 // _u_int64_t.h:29:1:
X_U_INT8_T = 0 // _u_int8_t.h:29:1:
X_VA_LIST_T = 0 // _va_list.h:30:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
@ -90,46 +89,7 @@ type X__uint128_t = struct {
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// DO NOT EDIT THIS FILE.
//
// It has been auto-edited by fixincludes from:
//
// "/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h"
//
// This had to be done to correct non-standard usages in the
// original, manufacturer supplied header file.
// Copyright (C) 1989-2021 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
// GCC is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3, or (at your option)
// any later version.
//
// GCC 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 General Public License for more details.
//
// Under Section 7 of GPL version 3, you are granted additional
// permissions described in the GCC Runtime Library Exception, version
// 3.1, as published by the Free Software Foundation.
//
// You should have received a copy of the GNU General Public License and
// a copy of the GCC Runtime Library Exception along with this program;
// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
// <http://www.gnu.org/licenses/>.
// ISO C Standard: 7.15 Variable arguments <stdarg.h>
// Define __gnuc_va_list.
type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */
// Define the standard macros for the user,
// if this invocation was from the user program.
var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
// Copyright (c) 2000, 2005, 2007, 2009, 2010 Apple Inc. All rights reserved.
//
@ -321,6 +281,13 @@ type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */
// in between its arguments. __CONCAT can also concatenate double-quoted
// strings produced by the __STRING macro, but this only works with ANSI C.
// In non-ANSI C environments, new programs will want ANSI-only C keywords
// deleted from the program and old programs will want them left alone.
// When using a compiler other than gcc, programs using the ANSI C keywords
// const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
// When using "gcc -traditional", we assume that this is the intent; if
// __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
// __unused denotes variables and functions that may not be used, preventing
// the compiler from warning about it if not used.
@ -727,15 +694,6 @@ type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */
// __IPHONE_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable
// DO NOT EDIT THIS FILE.
//
// It has been auto-edited by fixincludes from:
//
// "/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/AvailabilityInternal.h"
//
// This had to be done to correct non-standard usages in the
// original, manufacturer supplied header file.
// Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
//
// @APPLE_LICENSE_HEADER_START@
@ -1014,8 +972,8 @@ type X__darwin_ct_rune_t = int32 /* _types.h:70:33 */ // ct_rune_t
// mbstate_t is an opaque object to keep conversion state, during multibyte
// stream conversions. The content must not be referenced by user programs.
type X__mbstate_t = struct {
_ [0]uint64
F__mbstate8 [128]int8
F__ccgo_pad1 [0]uint64
F__mbstate8 [128]int8
} /* _types.h:79:3 */
type X__darwin_mbstate_t = X__mbstate_t /* _types.h:81:33 */ // mbstate_t
@ -1762,9 +1720,9 @@ type Fpos_t = X__darwin_off_t /* _stdio.h:81:25 */
// stdio buffers
type X__sbuf = struct {
F_base uintptr
F_size int32
_ [4]byte
F_base uintptr
F_size int32
F__ccgo_pad1 [4]byte
} /* _stdio.h:92:1 */
// stdio state variables.
@ -1792,41 +1750,41 @@ type X__sbuf = struct {
//
// NB: see WARNING above before changing the layout of this structure!
type X__sFILE = struct {
F_p uintptr
F_r int32
F_w int32
F_flags int16
F_file int16
_ [4]byte
F_bf struct {
F_base uintptr
F_size int32
_ [4]byte
F_p uintptr
F_r int32
F_w int32
F_flags int16
F_file int16
F__ccgo_pad1 [4]byte
F_bf struct {
F_base uintptr
F_size int32
F__ccgo_pad1 [4]byte
}
F_lbfsize int32
_ [4]byte
F_cookie uintptr
F_close uintptr
F_read uintptr
F_seek uintptr
F_write uintptr
F_ub struct {
F_base uintptr
F_size int32
_ [4]byte
F_lbfsize int32
F__ccgo_pad2 [4]byte
F_cookie uintptr
F_close uintptr
F_read uintptr
F_seek uintptr
F_write uintptr
F_ub struct {
F_base uintptr
F_size int32
F__ccgo_pad1 [4]byte
}
F_extra uintptr
F_ur int32
F_ubuf [3]uint8
F_nbuf [1]uint8
F_lb struct {
F_base uintptr
F_size int32
_ [4]byte
F_base uintptr
F_size int32
F__ccgo_pad1 [4]byte
}
F_blksize int32
_ [4]byte
F_offset Fpos_t
F_blksize int32
F__ccgo_pad3 [4]byte
F_offset Fpos_t
} /* _stdio.h:126:9 */
// stdio state variables.

View File

@ -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_darwin_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 -ignore-unsupported-alignment -o stdio/stdio_darwin_arm64.go -pkgname stdio', DO NOT EDIT.
package stdio
@ -15,96 +15,99 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
BUFSIZ = 1024
EOF = -1
FILENAME_MAX = 1024
FIXINC_WRAP_STDIO_H_STDIO_STDARG_H = 1
FOPEN_MAX = 20
L_ctermid = 1024
L_tmpnam = 1024
MAC_OS_VERSION_11_0 = 110000
MAC_OS_X_VERSION_10_0 = 1000
MAC_OS_X_VERSION_10_1 = 1010
MAC_OS_X_VERSION_10_10 = 101000
MAC_OS_X_VERSION_10_10_2 = 101002
MAC_OS_X_VERSION_10_10_3 = 101003
MAC_OS_X_VERSION_10_11 = 101100
MAC_OS_X_VERSION_10_11_2 = 101102
MAC_OS_X_VERSION_10_11_3 = 101103
MAC_OS_X_VERSION_10_11_4 = 101104
MAC_OS_X_VERSION_10_12 = 101200
MAC_OS_X_VERSION_10_12_1 = 101201
MAC_OS_X_VERSION_10_12_2 = 101202
MAC_OS_X_VERSION_10_12_4 = 101204
MAC_OS_X_VERSION_10_13 = 101300
MAC_OS_X_VERSION_10_13_1 = 101301
MAC_OS_X_VERSION_10_13_2 = 101302
MAC_OS_X_VERSION_10_13_4 = 101304
MAC_OS_X_VERSION_10_14 = 101400
MAC_OS_X_VERSION_10_14_1 = 101401
MAC_OS_X_VERSION_10_14_4 = 101404
MAC_OS_X_VERSION_10_14_6 = 101406
MAC_OS_X_VERSION_10_15 = 101500
MAC_OS_X_VERSION_10_15_1 = 101501
MAC_OS_X_VERSION_10_16 = 101600
MAC_OS_X_VERSION_10_2 = 1020
MAC_OS_X_VERSION_10_3 = 1030
MAC_OS_X_VERSION_10_4 = 1040
MAC_OS_X_VERSION_10_5 = 1050
MAC_OS_X_VERSION_10_6 = 1060
MAC_OS_X_VERSION_10_7 = 1070
MAC_OS_X_VERSION_10_8 = 1080
MAC_OS_X_VERSION_10_9 = 1090
P_tmpdir = "/var/tmp/"
RENAME_EXCL = 0x00000004
RENAME_SECLUDE = 0x00000001
RENAME_SWAP = 0x00000002
SEEK_CUR = 1
SEEK_END = 2
SEEK_SET = 0
TMP_MAX = 308915776
X_BSD_ARM__TYPES_H_ = 0
X_BSD_MACHINE_TYPES_H_ = 0
X_BSD_MACHINE__TYPES_H_ = 0
X_CDEFS_H_ = 0
X_CTERMID_H_ = 0
X_DARWIN_FEATURE_64_BIT_INODE = 1
X_DARWIN_FEATURE_ONLY_64_BIT_INODE = 1
X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1
X_DARWIN_FEATURE_ONLY_VERS_1050 = 1
X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3
X_FILE_OFFSET_BITS = 64
X_FORTIFY_SOURCE = 2
X_FSTDIO = 0
X_INT16_T = 0
X_INT32_T = 0
X_INT64_T = 0
X_INT8_T = 0
X_INTPTR_T = 0
X_IOFBF = 0
X_IOLBF = 1
X_IONBF = 2
X_LP64 = 1
X_MACHTYPES_H_ = 0
X_Nonnull = 0
X_Null_unspecified = 0
X_Nullable = 0
X_OFF_T = 0
X_SECURE__COMMON_H_ = 0
X_SECURE__STDIO_H_ = 0
X_SIZE_T = 0
X_SSIZE_T = 0
X_STDIO_H_ = 0
X_SYS_STDIO_H_ = 0
X_SYS__PTHREAD_TYPES_H_ = 0
X_SYS__TYPES_H_ = 0
X_UINTPTR_T = 0
X_USE_FORTIFY_LEVEL = 2
X_U_INT16_T = 0
X_U_INT32_T = 0
X_U_INT64_T = 0
X_U_INT8_T = 0
X_VA_LIST_T = 0
BUFSIZ = 1024 // stdio.h:103:1:
EOF = -1 // stdio.h:104:1:
FILENAME_MAX = 1024 // stdio.h:108:1:
FOPEN_MAX = 20 // stdio.h:107:1:
L_ctermid = 1024 // stdio.h:202:1:
L_tmpnam = 1024 // stdio.h:114:1:
MAC_OS_VERSION_11_0 = 110000 // AvailabilityVersions.h:238:1:
MAC_OS_VERSION_12_0 = 120000 // AvailabilityVersions.h:239:1:
MAC_OS_X_VERSION_10_0 = 1000 // AvailabilityVersions.h:206:1:
MAC_OS_X_VERSION_10_1 = 1010 // AvailabilityVersions.h:207:1:
MAC_OS_X_VERSION_10_10 = 101000 // AvailabilityVersions.h:216:1:
MAC_OS_X_VERSION_10_10_2 = 101002 // AvailabilityVersions.h:217:1:
MAC_OS_X_VERSION_10_10_3 = 101003 // AvailabilityVersions.h:218:1:
MAC_OS_X_VERSION_10_11 = 101100 // AvailabilityVersions.h:219:1:
MAC_OS_X_VERSION_10_11_2 = 101102 // AvailabilityVersions.h:220:1:
MAC_OS_X_VERSION_10_11_3 = 101103 // AvailabilityVersions.h:221:1:
MAC_OS_X_VERSION_10_11_4 = 101104 // AvailabilityVersions.h:222:1:
MAC_OS_X_VERSION_10_12 = 101200 // AvailabilityVersions.h:223:1:
MAC_OS_X_VERSION_10_12_1 = 101201 // AvailabilityVersions.h:224:1:
MAC_OS_X_VERSION_10_12_2 = 101202 // AvailabilityVersions.h:225:1:
MAC_OS_X_VERSION_10_12_4 = 101204 // AvailabilityVersions.h:226:1:
MAC_OS_X_VERSION_10_13 = 101300 // AvailabilityVersions.h:227:1:
MAC_OS_X_VERSION_10_13_1 = 101301 // AvailabilityVersions.h:228:1:
MAC_OS_X_VERSION_10_13_2 = 101302 // AvailabilityVersions.h:229:1:
MAC_OS_X_VERSION_10_13_4 = 101304 // AvailabilityVersions.h:230:1:
MAC_OS_X_VERSION_10_14 = 101400 // AvailabilityVersions.h:231:1:
MAC_OS_X_VERSION_10_14_1 = 101401 // AvailabilityVersions.h:232:1:
MAC_OS_X_VERSION_10_14_4 = 101404 // AvailabilityVersions.h:233:1:
MAC_OS_X_VERSION_10_14_6 = 101406 // AvailabilityVersions.h:234:1:
MAC_OS_X_VERSION_10_15 = 101500 // AvailabilityVersions.h:235:1:
MAC_OS_X_VERSION_10_15_1 = 101501 // AvailabilityVersions.h:236:1:
MAC_OS_X_VERSION_10_16 = 101600 // AvailabilityVersions.h:237:1:
MAC_OS_X_VERSION_10_2 = 1020 // AvailabilityVersions.h:208:1:
MAC_OS_X_VERSION_10_3 = 1030 // AvailabilityVersions.h:209:1:
MAC_OS_X_VERSION_10_4 = 1040 // AvailabilityVersions.h:210:1:
MAC_OS_X_VERSION_10_5 = 1050 // AvailabilityVersions.h:211:1:
MAC_OS_X_VERSION_10_6 = 1060 // AvailabilityVersions.h:212:1:
MAC_OS_X_VERSION_10_7 = 1070 // AvailabilityVersions.h:213:1:
MAC_OS_X_VERSION_10_8 = 1080 // AvailabilityVersions.h:214:1:
MAC_OS_X_VERSION_10_9 = 1090 // AvailabilityVersions.h:215:1:
P_tmpdir = "/var/tmp/" // stdio.h:112:1:
RENAME_EXCL = 0x00000004 // stdio.h:37:1:
RENAME_NOFOLLOW_ANY = 0x00000010 // stdio.h:39:1:
RENAME_RESERVED1 = 0x00000008 // stdio.h:38:1:
RENAME_SECLUDE = 0x00000001 // stdio.h:35:1:
RENAME_SWAP = 0x00000002 // stdio.h:36:1:
SEEK_CUR = 1 // stdio.h:121:1:
SEEK_END = 2 // stdio.h:124:1:
SEEK_SET = 0 // stdio.h:118:1:
TMP_MAX = 308915776 // stdio.h:115:1:
X_ARM_MACHTYPES_H_ = 0 // types.h:43:1:
X_BSD_ARM__TYPES_H_ = 0 // _types.h:5:1:
X_BSD_MACHINE_TYPES_H_ = 0 // types.h:32:1:
X_BSD_MACHINE__TYPES_H_ = 0 // _types.h:29:1:
X_CDEFS_H_ = 0 // cdefs.h:68:1:
X_CTERMID_H_ = 0 // _ctermid.h:25:1:
X_DARWIN_FEATURE_64_BIT_INODE = 1 // cdefs.h:774:1:
X_DARWIN_FEATURE_ONLY_64_BIT_INODE = 1 // cdefs.h:784:1:
X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:800:1:
X_DARWIN_FEATURE_ONLY_VERS_1050 = 1 // cdefs.h:792:1:
X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:808:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FORTIFY_SOURCE = 2 // _types.h:65:1:
X_FSTDIO = 0 // _stdio.h:83:1:
X_INT16_T = 0 // _int16_t.h:29:1:
X_INT32_T = 0 // _int32_t.h:29:1:
X_INT64_T = 0 // _int64_t.h:29:1:
X_INT8_T = 0 // _int8_t.h:29:1:
X_INTPTR_T = 0 // _intptr_t.h:29:1:
X_IOFBF = 0 // stdio.h:99:1:
X_IOLBF = 1 // stdio.h:100:1:
X_IONBF = 2 // stdio.h:101:1:
X_LP64 = 1 // <predefined>:1:1:
X_MACHTYPES_H_ = 0 // types.h:44:1:
X_Nonnull = 0 // cdefs.h:268:1:
X_Null_unspecified = 0 // cdefs.h:271:1:
X_Nullable = 0 // cdefs.h:265:1:
X_OFF_T = 0 // _off_t.h:29:1:
X_SECURE__COMMON_H_ = 0 // _common.h:25:1:
X_SECURE__STDIO_H_ = 0 // _stdio.h:29:1:
X_SIZE_T = 0 // _size_t.h:29:1:
X_SSIZE_T = 0 // _ssize_t.h:29:1:
X_STDIO_H_ = 0 // stdio.h:62:1:
X_SYS_STDIO_H_ = 0 // stdio.h:30:1:
X_SYS__PTHREAD_TYPES_H_ = 0 // _pthread_types.h:30:1:
X_SYS__TYPES_H_ = 0 // _types.h:30:1:
X_UINTPTR_T = 0 // _uintptr_t.h:29:1:
X_USE_FORTIFY_LEVEL = 2 // _common.h:30:1:
X_U_INT16_T = 0 // _u_int16_t.h:29:1:
X_U_INT32_T = 0 // _u_int32_t.h:29:1:
X_U_INT64_T = 0 // _u_int64_t.h:29:1:
X_U_INT8_T = 0 // _u_int8_t.h:29:1:
X_VA_LIST_T = 0 // _va_list.h:30:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
@ -125,46 +128,7 @@ type X__uint128_t = struct {
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// DO NOT EDIT THIS FILE.
//
// It has been auto-edited by fixincludes from:
//
// "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdio.h"
//
// This had to be done to correct non-standard usages in the
// original, manufacturer supplied header file.
// Copyright (C) 1989-2020 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
// GCC is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3, or (at your option)
// any later version.
//
// GCC 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 General Public License for more details.
//
// Under Section 7 of GPL version 3, you are granted additional
// permissions described in the GCC Runtime Library Exception, version
// 3.1, as published by the Free Software Foundation.
//
// You should have received a copy of the GNU General Public License and
// a copy of the GCC Runtime Library Exception along with this program;
// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
// <http://www.gnu.org/licenses/>.
// ISO C Standard: 7.15 Variable arguments <stdarg.h>
// Define __gnuc_va_list.
type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */
// Define the standard macros for the user,
// if this invocation was from the user program.
var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
// Copyright (c) 2000, 2005, 2007, 2009, 2010 Apple Inc. All rights reserved.
//
@ -356,6 +320,19 @@ type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */
// in between its arguments. __CONCAT can also concatenate double-quoted
// strings produced by the __STRING macro, but this only works with ANSI C.
// In non-ANSI C environments, new programs will want ANSI-only C keywords
// deleted from the program and old programs will want them left alone.
// When using a compiler other than gcc, programs using the ANSI C keywords
// const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
// When using "gcc -traditional", we assume that this is the intent; if
// __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
// __pure2 can be used for functions that are only a function of their scalar
// arguments (meaning they can't dereference pointers).
//
// __stateful_pure can be used for functions that have no side effects,
// but depend on the state of the memory.
// __unused denotes variables and functions that may not be used, preventing
// the compiler from warning about it if not used.
@ -632,6 +609,20 @@ type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */
// __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
// used from other compilation units, but not other libraries or executables.
// We intentionally define to nothing pointer attributes which do not have an
// impact on the ABI. __indexable and __bidi_indexable are not defined because
// of the ABI incompatibility that makes the diagnostic preferable.
// Similarly, we intentionally define to nothing the
// __ptrcheck_abi_assume_single and __ptrcheck_abi_assume_unsafe_indexable
// macros because they do not lead to an ABI incompatibility. However, we do not
// define the indexable and unsafe_indexable ones because the diagnostic is
// better than the silent ABI break.
// __unsafe_forge intrinsics are defined as regular C casts.
// decay operates normally; attribute is meaningless without pointer checks.
// Architecture validation for current SDK
// Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
@ -789,15 +780,6 @@ type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */
// Set up standard Mac OS X versions
// DO NOT EDIT THIS FILE.
//
// It has been auto-edited by fixincludes from:
//
// "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternal.h"
//
// This had to be done to correct non-standard usages in the
// original, manufacturer supplied header file.
// Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
//
// @APPLE_LICENSE_HEADER_START@
@ -838,7 +820,7 @@ type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */
// Evaluate to nothing for compilers that don't support availability.
// Swift compiler version
// Allows for project-agnostic epochs for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
// Allows for project-agnostic "epochs" for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
// Example:
//
// #if __swift_compiler_version_at_least(800, 2, 20)
@ -1019,17 +1001,17 @@ type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */
// This header file contains integer types. It's intended to also contain
// flotaing point and other arithmetic types, as needed, later.
type X__int8_t = int8 /* _types.h:13:33 */
type X__uint8_t = uint8 /* _types.h:17:33 */
type X__int16_t = int16 /* _types.h:18:33 */
type X__uint16_t = uint16 /* _types.h:19:33 */
type X__int32_t = int32 /* _types.h:20:33 */
type X__uint32_t = uint32 /* _types.h:21:33 */
type X__int64_t = int64 /* _types.h:22:33 */
type X__uint64_t = uint64 /* _types.h:23:33 */
type X__int8_t = int8 /* _types.h:15:33 */
type X__uint8_t = uint8 /* _types.h:19:33 */
type X__int16_t = int16 /* _types.h:20:33 */
type X__uint16_t = uint16 /* _types.h:21:33 */
type X__int32_t = int32 /* _types.h:22:33 */
type X__uint32_t = uint32 /* _types.h:23:33 */
type X__int64_t = int64 /* _types.h:24:33 */
type X__uint64_t = uint64 /* _types.h:25:33 */
type X__darwin_intptr_t = int64 /* _types.h:25:33 */
type X__darwin_natural_t = uint32 /* _types.h:26:33 */
type X__darwin_intptr_t = int64 /* _types.h:27:33 */
type X__darwin_natural_t = uint32 /* _types.h:28:33 */
// The rune type below is declared to be an ``int'' instead of the more natural
// ``unsigned long'' or ``long''. Two things are happening here. It is not
@ -1047,33 +1029,33 @@ type X__darwin_natural_t = uint32 /* _types.h:26:33 */
// wchar_t, and should also be able to hold all members of the largest
// character set plus one extra value (WEOF). wint_t must be at least 16 bits.
type X__darwin_ct_rune_t = int32 /* _types.h:46:33 */ // ct_rune_t
type X__darwin_ct_rune_t = int32 /* _types.h:48:33 */ // ct_rune_t
// mbstate_t is an opaque object to keep conversion state, during multibyte
// stream conversions. The content must not be referenced by user programs.
type X__mbstate_t = struct {
_ [0]uint64
F__mbstate8 [128]int8
} /* _types.h:55:3 */
F__ccgo_pad1 [0]uint64
F__mbstate8 [128]int8
} /* _types.h:57:3 */
type X__darwin_mbstate_t = X__mbstate_t /* _types.h:57:33 */ // mbstate_t
type X__darwin_mbstate_t = X__mbstate_t /* _types.h:59:33 */ // mbstate_t
type X__darwin_ptrdiff_t = int64 /* _types.h:60:33 */ // ptr1 - ptr2
type X__darwin_ptrdiff_t = int64 /* _types.h:62:33 */ // ptr1 - ptr2
type X__darwin_size_t = uint64 /* _types.h:68:33 */ // sizeof()
type X__darwin_size_t = uint64 /* _types.h:70:33 */ // sizeof()
type X__darwin_va_list = X__builtin_va_list /* _types.h:74:33 */ // va_list
type X__darwin_va_list = X__builtin_va_list /* _types.h:76:33 */ // va_list
type X__darwin_wchar_t = int32 /* _types.h:80:33 */ // wchar_t
type X__darwin_wchar_t = int32 /* _types.h:82:33 */ // wchar_t
type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:85:33 */ // rune_t
type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:87:33 */ // rune_t
type X__darwin_wint_t = int32 /* _types.h:88:33 */ // wint_t
type X__darwin_wint_t = int32 /* _types.h:90:33 */ // wint_t
type X__darwin_clock_t = uint64 /* _types.h:93:33 */ // clock()
type X__darwin_socklen_t = X__uint32_t /* _types.h:94:33 */ // socklen_t (duh)
type X__darwin_ssize_t = int64 /* _types.h:95:33 */ // byte count or error
type X__darwin_time_t = int64 /* _types.h:96:33 */ // time()
type X__darwin_clock_t = uint64 /* _types.h:95:33 */ // clock()
type X__darwin_socklen_t = X__uint32_t /* _types.h:96:33 */ // socklen_t (duh)
type X__darwin_ssize_t = int64 /* _types.h:97:33 */ // byte count or error
type X__darwin_time_t = int64 /* _types.h:98:33 */ // time()
// Type definitions; takes common type definitions that must be used
// in multiple header files due to [XSI], removes them from the system
@ -1648,7 +1630,7 @@ type U_int32_t = uint32 /* _u_int32_t.h:30:33 */
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
type U_int64_t = uint64 /* _u_int64_t.h:30:33 */
type Register_t = Int64_t /* types.h:63:33 */
type Register_t = Int64_t /* types.h:66:33 */
// Copyright (c) 2003-2012 Apple Inc. All rights reserved.
//
@ -1728,19 +1710,20 @@ type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
type Uintptr_t = uint64 /* _uintptr_t.h:30:33 */
type Uintptr_t = uint64 /* _uintptr_t.h:34:33 */
// These types are used for reserving the largest possible size.
type User_addr_t = U_int64_t /* types.h:74:33 */
type User_size_t = U_int64_t /* types.h:75:33 */
type User_ssize_t = Int64_t /* types.h:76:33 */
type User_long_t = Int64_t /* types.h:77:33 */
type User_ulong_t = U_int64_t /* types.h:78:33 */
type User_time_t = Int64_t /* types.h:79:33 */
type User_off_t = Int64_t /* types.h:80:33 */
type User_addr_t = U_int64_t /* types.h:77:33 */
type User_size_t = U_int64_t /* types.h:78:33 */
type User_ssize_t = Int64_t /* types.h:79:33 */
type User_long_t = Int64_t /* types.h:80:33 */
type User_ulong_t = U_int64_t /* types.h:81:33 */
type User_time_t = Int64_t /* types.h:82:33 */
type User_off_t = Int64_t /* types.h:83:33 */
// This defines the size of syscall arguments after copying into the kernel:
type Syscall_arg_t = U_int64_t /* types.h:101:33 */
type Syscall_arg_t = U_int64_t /* types.h:104:33 */
type Va_list = X__darwin_va_list /* _va_list.h:32:26 */
@ -1752,9 +1735,9 @@ type Fpos_t = X__darwin_off_t /* _stdio.h:81:25 */
// stdio buffers
type X__sbuf = struct {
F_base uintptr
F_size int32
_ [4]byte
F_base uintptr
F_size int32
F__ccgo_pad1 [4]byte
} /* _stdio.h:92:1 */
// stdio state variables.
@ -1782,41 +1765,41 @@ type X__sbuf = struct {
//
// NB: see WARNING above before changing the layout of this structure!
type X__sFILE = struct {
F_p uintptr
F_r int32
F_w int32
F_flags int16
F_file int16
_ [4]byte
F_bf struct {
F_base uintptr
F_size int32
_ [4]byte
F_p uintptr
F_r int32
F_w int32
F_flags int16
F_file int16
F__ccgo_pad1 [4]byte
F_bf struct {
F_base uintptr
F_size int32
F__ccgo_pad1 [4]byte
}
F_lbfsize int32
_ [4]byte
F_cookie uintptr
F_close uintptr
F_read uintptr
F_seek uintptr
F_write uintptr
F_ub struct {
F_base uintptr
F_size int32
_ [4]byte
F_lbfsize int32
F__ccgo_pad2 [4]byte
F_cookie uintptr
F_close uintptr
F_read uintptr
F_seek uintptr
F_write uintptr
F_ub struct {
F_base uintptr
F_size int32
F__ccgo_pad1 [4]byte
}
F_extra uintptr
F_ur int32
F_ubuf [3]uint8
F_nbuf [1]uint8
F_lb struct {
F_base uintptr
F_size int32
_ [4]byte
F_base uintptr
F_size int32
F__ccgo_pad1 [4]byte
}
F_blksize int32
_ [4]byte
F_offset Fpos_t
F_blksize int32
F__ccgo_pad3 [4]byte
F_offset Fpos_t
} /* _stdio.h:126:9 */
// stdio state variables.

View File

@ -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 "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio/stdio_freebsd_amd64.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 -ignore-unsupported-alignment -o stdio/stdio_freebsd_amd64.go -pkgname stdio', DO NOT EDIT.
package stdio
@ -15,45 +15,45 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
BUFSIZ = 1024
EOF = -1
FILENAME_MAX = 1024
FOPEN_MAX = 20
L_ctermid = 1024
L_cuserid = 17
L_tmpnam = 1024
P_tmpdir = "/tmp/"
SEEK_CUR = 1
SEEK_END = 2
SEEK_SET = 0
TMP_MAX = 308915776
X_FILE_OFFSET_BITS = 64
X_FSTDIO = 0
X_FTRUNCATE_DECLARED = 0
X_IOFBF = 0
X_IOLBF = 1
X_IONBF = 2
X_LP64 = 1
X_LSEEK_DECLARED = 0
X_MACHINE__LIMITS_H_ = 0
X_MACHINE__TYPES_H_ = 0
X_MMAP_DECLARED = 0
X_Nonnull = 0
X_Null_unspecified = 0
X_Nullable = 0
X_OFF64_T_DECLARED = 0
X_OFF_T_DECLARED = 0
X_RSIZE_T_DEFINED = 0
X_SIZE_T_DECLARED = 0
X_SSIZE_T_DECLARED = 0
X_STDFILE_DECLARED = 0
X_STDIO_H_ = 0
X_STDSTREAM_DECLARED = 0
X_SYS_CDEFS_H_ = 0
X_SYS__TYPES_H_ = 0
X_TRUNCATE_DECLARED = 0
X_VA_LIST_DECLARED = 0
Unix = 1
BUFSIZ = 1024 // stdio.h:209:1:
EOF = -1 // stdio.h:210:1:
FILENAME_MAX = 1024 // stdio.h:221:1:
FOPEN_MAX = 20 // stdio.h:219:1:
L_ctermid = 1024 // stdio.h:319:1:
L_cuserid = 17 // stdio.h:315:1:
L_tmpnam = 1024 // stdio.h:227:1:
P_tmpdir = "/tmp/" // stdio.h:225:1:
SEEK_CUR = 1 // stdio.h:234:1:
SEEK_END = 2 // stdio.h:237:1:
SEEK_SET = 0 // stdio.h:231:1:
TMP_MAX = 308915776 // stdio.h:228:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FSTDIO = 0 // stdio.h:82:1:
X_FTRUNCATE_DECLARED = 0 // stdio.h:435:1:
X_IOFBF = 0 // stdio.h:205:1:
X_IOLBF = 1 // stdio.h:206:1:
X_IONBF = 2 // stdio.h:207:1:
X_LP64 = 1 // <predefined>:1:1:
X_LSEEK_DECLARED = 0 // stdio.h:439:1:
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
X_MMAP_DECLARED = 0 // stdio.h:443:1:
X_Nonnull = 0 // cdefs.h:790:1:
X_Null_unspecified = 0 // cdefs.h:792:1:
X_Nullable = 0 // cdefs.h:791:1:
X_OFF64_T_DECLARED = 0 // stdio.h:71:1:
X_OFF_T_DECLARED = 0 // stdio.h:61:1:
X_RSIZE_T_DEFINED = 0 // stdio.h:55:1:
X_SIZE_T_DECLARED = 0 // stdio.h:51:1:
X_SSIZE_T_DECLARED = 0 // stdio.h:65:1:
X_STDFILE_DECLARED = 0 // stdio.h:164:1:
X_STDIO_H_ = 0 // stdio.h:39:1:
X_STDSTREAM_DECLARED = 0 // stdio.h:173:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
X_TRUNCATE_DECLARED = 0 // stdio.h:447:1:
X_VA_LIST_DECLARED = 0 // stdio.h:78:1:
Unix = 1 // <predefined>:340:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
@ -326,12 +326,15 @@ type X__float128 = float64 /* <builtin>:47:21 */
// Function should not be analyzed.
// Function or variable should not be sanitized, i.e. by AddressSanitizer.
// Function or variable should not be sanitized, e.g., by AddressSanitizer.
// GCC has the nosanitize attribute, but as a function attribute only, and
// warns on use as a variable attribute.
// Guard variables and structure members by lock.
// Alignment builtins for better type checking and improved code generation.
// Provide fallback versions for other compilers (GCC/Clang < 10):
// -
// SPDX-License-Identifier: BSD-2-Clause-FreeBSD
//
@ -603,8 +606,8 @@ type X__cpusetid_t = int32 /* _types.h:70:14 */ // cpuset identifier.
type X__daddr_t = X__int64_t /* _types.h:71:19 */ // bwrite(3), FIOBMAP2, etc
// Unusual type definitions.
// rune_t is declared to be an ``int'' instead of the more natural
// ``unsigned long'' or ``long''. Two things are happening here. It is not
// rune_t is declared to be an int instead of the more natural
// unsigned long or long. Two things are happening here. It is not
// unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
// it looks like 10646 will be a 31 bit standard. This means that if your
// ints cannot hold 32 bits, you will be in trouble. The reason an int was
@ -637,8 +640,8 @@ type X__fixpt_t = X__uint32_t /* _types.h:115:20 */ // fixed point number
// mbstate_t is an opaque object to keep conversion state during multibyte
// stream conversions.
type X__mbstate_t = struct {
_ [0]uint64
F__mbstate8 [128]int8
F__ccgo_pad1 [0]uint64
F__mbstate8 [128]int8
} /* _types.h:124:3 */
type X__rman_res_t = X__uintmax_t /* _types.h:126:25 */
@ -669,9 +672,9 @@ type Va_list = X__va_list /* stdio.h:77:19 */
// stdio buffers
type X__sbuf = struct {
F_base uintptr
F_size int32
_ [4]byte
F_base uintptr
F_size int32
F__ccgo_pad1 [4]byte
} /* stdio.h:91:1 */
// stdio state variables.
@ -701,40 +704,40 @@ type X__sbuf = struct {
// inline functions. To preserve ABI compat, these members must not
// be disturbed. These members are marked below with (*).
type X__sFILE = struct {
F_p uintptr
F_r int32
F_w int32
F_flags int16
F_file int16
_ [4]byte
F_bf struct {
F_base uintptr
F_size int32
_ [4]byte
F_p uintptr
F_r int32
F_w int32
F_flags int16
F_file int16
F__ccgo_pad1 [4]byte
F_bf struct {
F_base uintptr
F_size int32
F__ccgo_pad1 [4]byte
}
F_lbfsize int32
_ [4]byte
F_cookie uintptr
F_close uintptr
F_read uintptr
F_seek uintptr
F_write uintptr
F_ub struct {
F_base uintptr
F_size int32
_ [4]byte
F_lbfsize int32
F__ccgo_pad2 [4]byte
F_cookie uintptr
F_close uintptr
F_read uintptr
F_seek uintptr
F_write uintptr
F_ub struct {
F_base uintptr
F_size int32
F__ccgo_pad1 [4]byte
}
F_up uintptr
F_ur int32
F_ubuf [3]uint8
F_nbuf [1]uint8
F_lb struct {
F_base uintptr
F_size int32
_ [4]byte
F_base uintptr
F_size int32
F__ccgo_pad1 [4]byte
}
F_blksize int32
_ [4]byte
F__ccgo_pad3 [4]byte
F_offset Fpos_t
F_fl_mutex uintptr
F_fl_owner uintptr
@ -742,7 +745,7 @@ type X__sFILE = struct {
F_orientation int32
F_mbstate X__mbstate_t
F_flags2 int32
_ [4]byte
F__ccgo_pad4 [4]byte
} /* stdio.h:124:1 */
type FILE = X__sFILE /* stdio.h:165:24 */

View File

@ -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
@ -36,6 +37,7 @@ const (
X_FEATURES_H = 1
X_FILE_OFFSET_BITS = 64
X_GCC_SIZE_T = 0
X_ILP32 = 1
X_IOFBF = 0
X_IOLBF = 1
X_IONBF = 2
@ -79,14 +81,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.
//
@ -119,7 +116,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
@ -134,11 +131,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
@ -153,43 +150,63 @@ 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.
// Bit size of the time_t type at glibc build time, x86-64 and x32 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/>.
// For others, time size is word size.
// 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 = uint32 /* 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 = uint32 /* 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:46:44 */
type X__uint64_t = uint64 /* types.h:47:46 */
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:47:44 */
type X__uint64_t = uint64 /* types.h:48:46 */
// 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:65:37 */
type X__u_quad_t = uint64 /* types.h:66:46 */
type X__quad_t = int64 /* types.h:66:37 */
type X__u_quad_t = uint64 /* types.h:67:46 */
// Largest integral types.
type X__intmax_t = int64 /* types.h:74:37 */
type X__uintmax_t = uint64 /* types.h:75:46 */
type X__intmax_t = int64 /* types.h:75:37 */
type X__uintmax_t = uint64 /* types.h:76:46 */
// The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
// macros for each of the OS types we define below. The definitions
@ -201,7 +218,7 @@ type X__uintmax_t = uint64 /* types.h:75:46 */
// 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
//
@ -223,7 +240,7 @@ type X__uintmax_t = uint64 /* types.h:75:46 */
// We want __extension__ before typedef's that use nonstandard base types
// such as `long long' in C89 mode.
// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version.
// Copyright (C) 2012-2018 Free Software Foundation, Inc.
// Copyright (C) 2012-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
@ -238,7 +255,7 @@ type X__uintmax_t = uint64 /* types.h:75:46 */
//
// 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.
@ -247,79 +264,8 @@ type X__uintmax_t = uint64 /* types.h:75:46 */
// Number of descriptors that can fit in an `fd_set'.
type X__dev_t = X__u_quad_t /* 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 = uint32 /* types.h:146:25 */ // Type of file serial numbers.
type X__ino64_t = X__u_quad_t /* 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 = int32 /* types.h:150:25 */ // Type of file sizes and offsets.
type X__off64_t = X__quad_t /* 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 = int32 /* types.h:154:27 */ // Type of CPU usage counts.
type X__rlim_t = uint32 /* types.h:155:26 */ // Type for resource measurement.
type X__rlim64_t = X__u_quad_t /* 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 = int32 /* types.h:158:26 */ // Seconds since the Epoch.
type X__useconds_t = uint32 /* types.h:159:30 */ // Count of microseconds.
type X__suseconds_t = int32 /* 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.
// Clock ID used in clock and timer functions.
type X__clockid_t = int32 /* types.h:166:29 */
// Timer ID returned by `timer_create'.
type X__timer_t = uintptr /* types.h:169:12 */
// Type to represent block size.
type X__blksize_t = int32 /* types.h:172:29 */
// Types from the Large File Support interface.
// Type to count number of disk blocks.
type X__blkcnt_t = int32 /* types.h:177:28 */
type X__blkcnt64_t = X__quad_t /* types.h:178:30 */
// Type to count file system blocks.
type X__fsblkcnt_t = uint32 /* types.h:181:30 */
type X__fsblkcnt64_t = X__u_quad_t /* types.h:182:32 */
// Type to count file system nodes.
type X__fsfilcnt_t = uint32 /* types.h:185:30 */
type X__fsfilcnt64_t = X__u_quad_t /* types.h:186:32 */
// Type of miscellaneous file system fields.
type X__fsword_t = int32 /* types.h:189:28 */
type X__ssize_t = int32 /* types.h:191:27 */ // Type of a byte count, or error.
// Signed long type used in system calls.
type X__syscall_slong_t = int32 /* types.h:194:33 */
// Unsigned long type used in system calls.
type X__syscall_ulong_t = uint32 /* types.h:196: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 */
// Duplicates info from stdint.h but this is used in unistd.h.
type X__intptr_t = int32 /* types.h:204:25 */
// Duplicate info from sys/socket.h.
type X__socklen_t = uint32 /* types.h:207: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 */
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// 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
@ -334,7 +280,108 @@ 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/>.
// Define __TIME64_T_TYPE so that it is always a 64-bit type.
// Define a 64-bit time type alongsize the 32-bit one.
type X__dev_t = X__uint64_t /* 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 = uint32 /* types.h:148:25 */ // Type of file serial numbers.
type X__ino64_t = X__uint64_t /* 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 = int32 /* types.h:152:25 */ // Type of file sizes and offsets.
type X__off64_t = X__int64_t /* 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 = int32 /* types.h:156:27 */ // Type of CPU usage counts.
type X__rlim_t = uint32 /* types.h:157:26 */ // Type for resource measurement.
type X__rlim64_t = X__uint64_t /* 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 = int32 /* types.h:160:26 */ // Seconds since the Epoch.
type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
type X__suseconds_t = int32 /* 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:168:29 */
// Timer ID returned by `timer_create'.
type X__timer_t = uintptr /* types.h:171:12 */
// Type to represent block size.
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 = int32 /* types.h:179:28 */
type X__blkcnt64_t = X__int64_t /* types.h:180:30 */
// Type to count file system blocks.
type X__fsblkcnt_t = uint32 /* types.h:183:30 */
type X__fsblkcnt64_t = X__uint64_t /* types.h:184:32 */
// Type to count file system nodes.
type X__fsfilcnt_t = uint32 /* types.h:187:30 */
type X__fsfilcnt64_t = X__uint64_t /* types.h:188:32 */
// Type of miscellaneous file system fields.
type X__fsword_t = int32 /* types.h:191:28 */
type X__ssize_t = int32 /* types.h:193:27 */ // Type of a byte count, or error.
// Signed long type used in system calls.
type X__syscall_slong_t = int32 /* types.h:196:33 */
// Unsigned long type used in system calls.
type X__syscall_ulong_t = uint32 /* 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: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 = int32 /* types.h:206:25 */
// Duplicate info from sys/socket.h.
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: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.
type X__time64_t = X__int64_t /* types.h:222:28 */
// bits/types.h -- definitions of __*_t types underlying *_t types.
// 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
// 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/>.
// Never include this file directly; use <sys/types.h> instead.
@ -350,20 +397,22 @@ type X__mbstate_t = struct {
} /* __mbstate_t.h:21:3 */
// The tag name of this struct is _G_fpos_t to preserve historic
// C++ mangled names for functions taking fpos_t arguments.
// That name should not be used in new code.
//
// C++ mangled names for functions taking fpos_t arguments.
// That name should not be used in new code.
type X_G_fpos_t = struct {
F__pos X__off_t
F__state X__mbstate_t
} /* __fpos_t.h:10:9 */
// The tag name of this struct is _G_fpos_t to preserve historic
// C++ mangled names for functions taking fpos_t arguments.
// That name should not be used in new code.
//
// C++ mangled names for functions taking fpos_t arguments.
// That name should not be used in new code.
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
@ -378,20 +427,21 @@ 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.
// The tag name of this struct is _G_fpos64_t to preserve historic
// C++ mangled names for functions taking fpos_t and/or fpos64_t
// arguments. That name should not be used in new code.
//
// C++ mangled names for functions taking fpos_t and/or fpos64_t
// arguments. That name should not be used in new code.
type X_G_fpos64_t = struct {
F__pos X__off64_t
F__state X__mbstate_t
} /* __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
@ -406,13 +456,14 @@ 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.
// The tag name of this struct is _G_fpos64_t to preserve historic
// C++ mangled names for functions taking fpos_t and/or fpos64_t
// arguments. That name should not be used in new code.
//
// C++ mangled names for functions taking fpos_t and/or fpos64_t
// arguments. That name should not be used in new code.
type X__fpos64_t = X_G_fpos64_t /* __fpos64_t.h:14:3 */
type X_IO_FILE = struct {

View File

@ -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 "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio/stdio_linux_amd64.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 -ignore-unsupported-alignment -o stdio/stdio_linux_amd64.go -pkgname stdio', DO NOT EDIT.
package stdio
@ -15,51 +15,52 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
BUFSIZ = 8192
EOF = -1
FILENAME_MAX = 4096
FOPEN_MAX = 16
L_ctermid = 9
L_tmpnam = 20
P_tmpdir = "/tmp"
SEEK_CUR = 1
SEEK_END = 2
SEEK_SET = 0
TMP_MAX = 238328
X_ATFILE_SOURCE = 1
X_BITS_STDIO_LIM_H = 1
X_BITS_TYPESIZES_H = 1
X_BITS_TYPES_H = 1
X_BSD_SIZE_T_ = 0
X_BSD_SIZE_T_DEFINED_ = 0
X_DEFAULT_SOURCE = 1
X_FEATURES_H = 1
X_FILE_OFFSET_BITS = 64
X_GCC_SIZE_T = 0
X_IOFBF = 0
X_IOLBF = 1
X_IONBF = 2
X_IO_EOF_SEEN = 0x0010
X_IO_ERR_SEEN = 0x0020
X_IO_USER_LOCK = 0x8000
X_LP64 = 1
X_POSIX_C_SOURCE = 200809
X_POSIX_SOURCE = 1
X_SIZET_ = 0
X_SIZE_T = 0
X_SIZE_T_ = 0
X_SIZE_T_DECLARED = 0
X_SIZE_T_DEFINED = 0
X_SIZE_T_DEFINED_ = 0
X_STDC_PREDEF_H = 1
X_STDIO_H = 1
X_SYS_CDEFS_H = 1
X_SYS_SIZE_T_H = 0
X_T_SIZE = 0
X_T_SIZE_ = 0
X_VA_LIST_DEFINED = 0
Linux = 1
Unix = 1
BUFSIZ = 8192 // stdio.h:99:1:
EOF = -1 // stdio.h:104:1:
FILENAME_MAX = 4096 // stdio_lim.h:27:1:
FOPEN_MAX = 16 // stdio_lim.h:37:1:
L_ctermid = 9 // stdio_lim.h:30:1:
L_tmpnam = 20 // stdio_lim.h:25:1:
P_tmpdir = "/tmp" // stdio.h:120:1:
SEEK_CUR = 1 // stdio.h:110:1:
SEEK_END = 2 // stdio.h:111:1:
SEEK_SET = 0 // stdio.h:109:1:
TMP_MAX = 238328 // stdio_lim.h:26:1:
X_ATFILE_SOURCE = 1 // features.h:342:1:
X_BITS_STDIO_LIM_H = 1 // stdio_lim.h:19:1:
X_BITS_TIME64_H = 1 // time64.h:24:1:
X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1:
X_BITS_TYPES_H = 1 // types.h:24:1:
X_BSD_SIZE_T_ = 0 // stddef.h:189:1:
X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1:
X_DEFAULT_SOURCE = 1 // features.h:227:1:
X_FEATURES_H = 1 // features.h:19:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_GCC_SIZE_T = 0 // stddef.h:195:1:
X_IOFBF = 0 // stdio.h:93:1:
X_IOLBF = 1 // stdio.h:94:1:
X_IONBF = 2 // stdio.h:95:1:
X_IO_EOF_SEEN = 0x0010 // struct_FILE.h:111:1:
X_IO_ERR_SEEN = 0x0020 // struct_FILE.h:114:1:
X_IO_USER_LOCK = 0x8000 // struct_FILE.h:117:1:
X_LP64 = 1 // <predefined>:284:1:
X_POSIX_C_SOURCE = 200809 // features.h:281:1:
X_POSIX_SOURCE = 1 // features.h:279:1:
X_SIZET_ = 0 // stddef.h:196:1:
X_SIZE_T = 0 // stddef.h:183:1:
X_SIZE_T_ = 0 // stddef.h:188:1:
X_SIZE_T_DECLARED = 0 // stddef.h:193:1:
X_SIZE_T_DEFINED = 0 // stddef.h:191:1:
X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1:
X_STDC_PREDEF_H = 1 // <predefined>:162:1:
X_STDIO_H = 1 // stdio.h:24:1:
X_SYS_CDEFS_H = 1 // cdefs.h:19:1:
X_SYS_SIZE_T_H = 0 // stddef.h:184:1:
X_T_SIZE = 0 // stddef.h:186:1:
X_T_SIZE_ = 0 // stddef.h:185:1:
X_VA_LIST_DEFINED = 0 // stdio.h:53:1:
Linux = 1 // <predefined>:231:1:
Unix = 1 // <predefined>:177:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
@ -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,45 +158,64 @@ 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.
// Both x86-64 and x32 use the 64-bit system call interface.
// Bit size of the time_t type at glibc build time, x86-64 and x32 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/>.
// For others, time size is word size.
// 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
@ -212,7 +227,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
//
@ -233,7 +248,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. Linux/x86-64 version.
// Copyright (C) 2012-2018 Free Software Foundation, Inc.
// Copyright (C) 2012-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
@ -248,7 +263,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.
@ -263,81 +278,12 @@ 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 = uint64 /* 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.
// Clock ID used in clock and timer functions.
type X__clockid_t = int32 /* types.h:166:29 */
// Timer ID returned by `timer_create'.
type X__timer_t = uintptr /* types.h:169:12 */
// Type to represent block size.
type X__blksize_t = int64 /* types.h:172: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 to count file system blocks.
type X__fsblkcnt_t = uint64 /* types.h:181:30 */
type X__fsblkcnt64_t = uint64 /* types.h:182: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 of miscellaneous file system fields.
type X__fsword_t = int64 /* types.h:189:28 */
type X__ssize_t = int64 /* types.h:191: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 */
// Unsigned long type used in system calls.
type X__syscall_ulong_t = uint64 /* types.h:196: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 */
// Duplicates info from stdint.h but this is used in unistd.h.
type X__intptr_t = int64 /* types.h:204:25 */
// Duplicate info from sys/socket.h.
type X__socklen_t = uint32 /* types.h:207: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 */
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// 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
@ -352,7 +298,106 @@ 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/>.
// 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 = uint64 /* 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:168:29 */
// Timer ID returned by `timer_create'.
type X__timer_t = uintptr /* types.h:171:12 */
// Type to represent block size.
type X__blksize_t = int64 /* 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:179:28 */
type X__blkcnt64_t = int64 /* types.h:180:30 */
// Type to count file system blocks.
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:187:30 */
type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
// Type of miscellaneous file system fields.
type X__fsword_t = int64 /* types.h:191:28 */
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:196:33 */
// Unsigned long type used in system calls.
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: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:206:25 */
// Duplicate info from sys/socket.h.
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: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-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/>.
// Never include this file directly; use <sys/types.h> instead.
@ -368,20 +413,22 @@ type X__mbstate_t = struct {
} /* __mbstate_t.h:21:3 */
// The tag name of this struct is _G_fpos_t to preserve historic
// C++ mangled names for functions taking fpos_t arguments.
// That name should not be used in new code.
//
// C++ mangled names for functions taking fpos_t arguments.
// That name should not be used in new code.
type X_G_fpos_t = struct {
F__pos X__off_t
F__state X__mbstate_t
} /* __fpos_t.h:10:9 */
// The tag name of this struct is _G_fpos_t to preserve historic
// C++ mangled names for functions taking fpos_t arguments.
// That name should not be used in new code.
//
// C++ mangled names for functions taking fpos_t arguments.
// That name should not be used in new code.
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
@ -396,20 +443,21 @@ 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.
// The tag name of this struct is _G_fpos64_t to preserve historic
// C++ mangled names for functions taking fpos_t and/or fpos64_t
// arguments. That name should not be used in new code.
//
// C++ mangled names for functions taking fpos_t and/or fpos64_t
// arguments. That name should not be used in new code.
type X_G_fpos64_t = struct {
F__pos X__off64_t
F__state X__mbstate_t
} /* __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
@ -424,18 +472,19 @@ 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.
// The tag name of this struct is _G_fpos64_t to preserve historic
// C++ mangled names for functions taking fpos_t and/or fpos64_t
// arguments. That name should not be used in new code.
//
// C++ mangled names for functions taking fpos_t and/or fpos64_t
// arguments. That name should not be used in new code.
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
@ -455,7 +504,7 @@ type X_IO_FILE = struct {
F_cur_column uint16
F_vtable_offset int8
F_shortbuf [1]int8
_ [4]byte
F__ccgo_pad2 [4]byte
F_lock uintptr
F_offset X__off64_t
F_codecvt uintptr

View File

@ -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
@ -78,14 +79,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.
//
@ -118,7 +114,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
@ -133,11 +129,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
@ -152,9 +148,9 @@ 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/>.
// Copyright (C) 1999-2018 Free Software Foundation, Inc.
// Copyright (C) 1999-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
@ -169,41 +165,78 @@ 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/>.
// Copyright (C) 1999-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 = uint32 /* 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 = uint32 /* 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:46:44 */
type X__uint64_t = uint64 /* types.h:47:46 */
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:47:44 */
type X__uint64_t = uint64 /* types.h:48:46 */
// 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:65:37 */
type X__u_quad_t = uint64 /* types.h:66:46 */
type X__quad_t = int64 /* types.h:66:37 */
type X__u_quad_t = uint64 /* types.h:67:46 */
// Largest integral types.
type X__intmax_t = int64 /* types.h:74:37 */
type X__uintmax_t = uint64 /* types.h:75:46 */
type X__intmax_t = int64 /* types.h:75:37 */
type X__uintmax_t = uint64 /* types.h:76:46 */
// The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
// macros for each of the OS types we define below. The definitions
@ -215,7 +248,7 @@ type X__uintmax_t = uint64 /* types.h:75:46 */
// 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
//
@ -237,7 +270,7 @@ type X__uintmax_t = uint64 /* types.h:75:46 */
// We want __extension__ before typedef's that use nonstandard base types
// such as `long long' in C89 mode.
// bits/typesizes.h -- underlying types for *_t. Generic version.
// 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
@ -252,86 +285,15 @@ type X__uintmax_t = uint64 /* types.h:75:46 */
//
// 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.
// Number of descriptors that can fit in an `fd_set'.
type X__dev_t = X__u_quad_t /* 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 = uint32 /* types.h:146:25 */ // Type of file serial numbers.
type X__ino64_t = X__u_quad_t /* 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 = int32 /* types.h:150:25 */ // Type of file sizes and offsets.
type X__off64_t = X__quad_t /* 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 = int32 /* types.h:154:27 */ // Type of CPU usage counts.
type X__rlim_t = uint32 /* types.h:155:26 */ // Type for resource measurement.
type X__rlim64_t = X__u_quad_t /* 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 = int32 /* types.h:158:26 */ // Seconds since the Epoch.
type X__useconds_t = uint32 /* types.h:159:30 */ // Count of microseconds.
type X__suseconds_t = int32 /* 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.
// Clock ID used in clock and timer functions.
type X__clockid_t = int32 /* types.h:166:29 */
// Timer ID returned by `timer_create'.
type X__timer_t = uintptr /* types.h:169:12 */
// Type to represent block size.
type X__blksize_t = int32 /* types.h:172:29 */
// Types from the Large File Support interface.
// Type to count number of disk blocks.
type X__blkcnt_t = int32 /* types.h:177:28 */
type X__blkcnt64_t = X__quad_t /* types.h:178:30 */
// Type to count file system blocks.
type X__fsblkcnt_t = uint32 /* types.h:181:30 */
type X__fsblkcnt64_t = X__u_quad_t /* types.h:182:32 */
// Type to count file system nodes.
type X__fsfilcnt_t = uint32 /* types.h:185:30 */
type X__fsfilcnt64_t = X__u_quad_t /* types.h:186:32 */
// Type of miscellaneous file system fields.
type X__fsword_t = int32 /* types.h:189:28 */
type X__ssize_t = int32 /* types.h:191:27 */ // Type of a byte count, or error.
// Signed long type used in system calls.
type X__syscall_slong_t = int32 /* types.h:194:33 */
// Unsigned long type used in system calls.
type X__syscall_ulong_t = uint32 /* types.h:196: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 */
// Duplicates info from stdint.h but this is used in unistd.h.
type X__intptr_t = int32 /* types.h:204:25 */
// Duplicate info from sys/socket.h.
type X__socklen_t = uint32 /* types.h:207: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 */
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// 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
@ -346,7 +308,108 @@ 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/>.
// Define __TIME64_T_TYPE so that it is always a 64-bit type.
// Define a 64-bit time type alongsize the 32-bit one.
type X__dev_t = X__uint64_t /* 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 = uint32 /* types.h:148:25 */ // Type of file serial numbers.
type X__ino64_t = X__uint64_t /* 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 = int32 /* types.h:152:25 */ // Type of file sizes and offsets.
type X__off64_t = X__int64_t /* 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 = int32 /* types.h:156:27 */ // Type of CPU usage counts.
type X__rlim_t = uint32 /* types.h:157:26 */ // Type for resource measurement.
type X__rlim64_t = X__uint64_t /* 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 = int32 /* types.h:160:26 */ // Seconds since the Epoch.
type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
type X__suseconds_t = int32 /* 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:168:29 */
// Timer ID returned by `timer_create'.
type X__timer_t = uintptr /* types.h:171:12 */
// Type to represent block size.
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 = int32 /* types.h:179:28 */
type X__blkcnt64_t = X__int64_t /* types.h:180:30 */
// Type to count file system blocks.
type X__fsblkcnt_t = uint32 /* types.h:183:30 */
type X__fsblkcnt64_t = X__uint64_t /* types.h:184:32 */
// Type to count file system nodes.
type X__fsfilcnt_t = uint32 /* types.h:187:30 */
type X__fsfilcnt64_t = X__uint64_t /* types.h:188:32 */
// Type of miscellaneous file system fields.
type X__fsword_t = int32 /* types.h:191:28 */
type X__ssize_t = int32 /* types.h:193:27 */ // Type of a byte count, or error.
// Signed long type used in system calls.
type X__syscall_slong_t = int32 /* types.h:196:33 */
// Unsigned long type used in system calls.
type X__syscall_ulong_t = uint32 /* 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: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 = int32 /* types.h:206:25 */
// Duplicate info from sys/socket.h.
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: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.
type X__time64_t = X__int64_t /* types.h:222:28 */
// bits/types.h -- definitions of __*_t types underlying *_t types.
// 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
// 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/>.
// Never include this file directly; use <sys/types.h> instead.
@ -362,20 +425,22 @@ type X__mbstate_t = struct {
} /* __mbstate_t.h:21:3 */
// The tag name of this struct is _G_fpos_t to preserve historic
// C++ mangled names for functions taking fpos_t arguments.
// That name should not be used in new code.
//
// C++ mangled names for functions taking fpos_t arguments.
// That name should not be used in new code.
type X_G_fpos_t = struct {
F__pos X__off_t
F__state X__mbstate_t
} /* __fpos_t.h:10:9 */
// The tag name of this struct is _G_fpos_t to preserve historic
// C++ mangled names for functions taking fpos_t arguments.
// That name should not be used in new code.
//
// C++ mangled names for functions taking fpos_t arguments.
// That name should not be used in new code.
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
@ -390,20 +455,21 @@ 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.
// The tag name of this struct is _G_fpos64_t to preserve historic
// C++ mangled names for functions taking fpos_t and/or fpos64_t
// arguments. That name should not be used in new code.
//
// C++ mangled names for functions taking fpos_t and/or fpos64_t
// arguments. That name should not be used in new code.
type X_G_fpos64_t = struct {
F__pos X__off64_t
F__state X__mbstate_t
} /* __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
@ -418,13 +484,14 @@ 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.
// The tag name of this struct is _G_fpos64_t to preserve historic
// C++ mangled names for functions taking fpos_t and/or fpos64_t
// arguments. That name should not be used in new code.
//
// C++ mangled names for functions taking fpos_t and/or fpos64_t
// arguments. That name should not be used in new code.
type X__fpos64_t = X_G_fpos64_t /* __fpos64_t.h:14:3 */
type X_IO_FILE = struct {
@ -447,9 +514,9 @@ type X_IO_FILE = struct {
F_old_offset X__off_t
F_cur_column uint16
F_vtable_offset int8
F_shortbuf [1]int8
F_shortbuf [1]uint8
F_lock uintptr
_ [4]byte
F__ccgo_pad1 [4]byte
F_offset X__off64_t
F_codecvt uintptr
F_wide_data uintptr
@ -457,7 +524,7 @@ type X_IO_FILE = struct {
F_freeres_buf uintptr
F__pad5 Size_t
F_mode int32
F_unused2 [40]int8
F_unused2 [40]uint8
} /* __FILE.h:4:1 */
type X__FILE = X_IO_FILE /* __FILE.h:5:25 */
@ -481,4 +548,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: */

View File

@ -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,11 @@ 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.
// Clock ID used in clock and timer functions.
type X__clockid_t = int32 /* types.h:166:29 */
// Timer ID returned by `timer_create'.
type X__timer_t = uintptr /* types.h:169:12 */
// Type to represent block size.
type X__blksize_t = int32 /* types.h:172: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 to count file system blocks.
type X__fsblkcnt_t = uint64 /* types.h:181:30 */
type X__fsblkcnt64_t = uint64 /* types.h:182: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 of miscellaneous file system fields.
type X__fsword_t = int64 /* types.h:189:28 */
type X__ssize_t = int64 /* types.h:191: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 */
// Unsigned long type used in system calls.
type X__syscall_ulong_t = uint64 /* types.h:196: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 */
// Duplicates info from stdint.h but this is used in unistd.h.
type X__intptr_t = int64 /* types.h:204:25 */
// Duplicate info from sys/socket.h.
type X__socklen_t = uint32 /* types.h:207: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 */
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// 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
@ -366,7 +331,106 @@ 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/>.
// 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:168:29 */
// Timer ID returned by `timer_create'.
type X__timer_t = uintptr /* types.h:171:12 */
// Type to represent block size.
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:179:28 */
type X__blkcnt64_t = int64 /* types.h:180:30 */
// Type to count file system blocks.
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:187:30 */
type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
// Type of miscellaneous file system fields.
type X__fsword_t = int64 /* types.h:191:28 */
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:196:33 */
// Unsigned long type used in system calls.
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: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:206:25 */
// Duplicate info from sys/socket.h.
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: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-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/>.
// Never include this file directly; use <sys/types.h> instead.
@ -382,20 +446,22 @@ type X__mbstate_t = struct {
} /* __mbstate_t.h:21:3 */
// The tag name of this struct is _G_fpos_t to preserve historic
// C++ mangled names for functions taking fpos_t arguments.
// That name should not be used in new code.
//
// C++ mangled names for functions taking fpos_t arguments.
// That name should not be used in new code.
type X_G_fpos_t = struct {
F__pos X__off_t
F__state X__mbstate_t
} /* __fpos_t.h:10:9 */
// The tag name of this struct is _G_fpos_t to preserve historic
// C++ mangled names for functions taking fpos_t arguments.
// That name should not be used in new code.
//
// C++ mangled names for functions taking fpos_t arguments.
// That name should not be used in new code.
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,20 +476,21 @@ 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.
// The tag name of this struct is _G_fpos64_t to preserve historic
// C++ mangled names for functions taking fpos_t and/or fpos64_t
// arguments. That name should not be used in new code.
//
// C++ mangled names for functions taking fpos_t and/or fpos64_t
// arguments. That name should not be used in new code.
type X_G_fpos64_t = struct {
F__pos X__off64_t
F__state X__mbstate_t
} /* __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,18 +505,19 @@ 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.
// The tag name of this struct is _G_fpos64_t to preserve historic
// C++ mangled names for functions taking fpos_t and/or fpos64_t
// arguments. That name should not be used in new code.
//
// C++ mangled names for functions taking fpos_t and/or fpos64_t
// arguments. That name should not be used in new code.
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 +536,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 +546,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 +570,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: */

View File

@ -89,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-2017 Free Software Foundation, Inc.
// Copyright (C) 1989-2020 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
@ -366,7 +361,8 @@ type X__syscall_slong_t = int64 /* 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.
//
// to one of the other defined types.
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 */
@ -377,8 +373,9 @@ type X__intptr_t = int64 /* types.h:206:25 */
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.
//
// 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:214:13 */
// Seconds since the Epoch, visible to user code when time_t is too
@ -417,16 +414,18 @@ type X__mbstate_t = struct {
} /* __mbstate_t.h:21:3 */
// The tag name of this struct is _G_fpos_t to preserve historic
// C++ mangled names for functions taking fpos_t arguments.
// That name should not be used in new code.
//
// C++ mangled names for functions taking fpos_t arguments.
// That name should not be used in new code.
type X_G_fpos_t = struct {
F__pos X__off_t
F__state X__mbstate_t
} /* __fpos_t.h:10:9 */
// The tag name of this struct is _G_fpos_t to preserve historic
// C++ mangled names for functions taking fpos_t arguments.
// That name should not be used in new code.
//
// C++ mangled names for functions taking fpos_t arguments.
// That name should not be used in new code.
type X__fpos_t = X_G_fpos_t /* __fpos_t.h:14:3 */
// bits/types.h -- definitions of __*_t types underlying *_t types.
@ -450,8 +449,9 @@ type X__fpos_t = X_G_fpos_t /* __fpos_t.h:14:3 */
// Never include this file directly; use <sys/types.h> instead.
// The tag name of this struct is _G_fpos64_t to preserve historic
// C++ mangled names for functions taking fpos_t and/or fpos64_t
// arguments. That name should not be used in new code.
//
// C++ mangled names for functions taking fpos_t and/or fpos64_t
// arguments. That name should not be used in new code.
type X_G_fpos64_t = struct {
F__pos X__off64_t
F__state X__mbstate_t
@ -478,13 +478,14 @@ type X_G_fpos64_t = struct {
// Never include this file directly; use <sys/types.h> instead.
// The tag name of this struct is _G_fpos64_t to preserve historic
// C++ mangled names for functions taking fpos_t and/or fpos64_t
// arguments. That name should not be used in new code.
//
// C++ mangled names for functions taking fpos_t and/or fpos64_t
// arguments. That name should not be used in new code.
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
@ -504,7 +505,7 @@ type X_IO_FILE = struct {
F_cur_column uint16
F_vtable_offset int8
F_shortbuf [1]uint8
_ [4]byte
F__ccgo_pad2 [4]byte
F_lock uintptr
F_offset X__off64_t
F_codecvt uintptr

View File

@ -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 "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio/stdio_netbsd_amd64.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 -ignore-unsupported-alignment -o stdio/stdio_netbsd_amd64.go -pkgname stdio', DO NOT EDIT.
package stdio
@ -15,40 +15,39 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
BUFSIZ = 1024
EOF = -1
FILENAME_MAX = 1024
FIXINC_WRAP_STDIO_H_STDIO_STDARG_H = 1
FOPEN_MAX = 20
FPARSELN_UNESCALL = 0x0f
FPARSELN_UNESCCOMM = 0x04
FPARSELN_UNESCCONT = 0x02
FPARSELN_UNESCESC = 0x01
FPARSELN_UNESCREST = 0x08
L_ctermid = 1024
L_cuserid = 9
L_tmpnam = 1024
P_tmpdir = "/tmp/"
SEEK_CUR = 1
SEEK_END = 2
SEEK_SET = 0
TMP_MAX = 308915776
X_AMD64_INT_TYPES_H_ = 0
X_FILE_OFFSET_BITS = 64
X_FSTDIO = 0
X_IOFBF = 0
X_IOLBF = 1
X_IONBF = 2
X_LP64 = 1
X_NETBSD_SOURCE = 1
X_STDIO_H_ = 0
X_SYS_ANSI_H_ = 0
X_SYS_CDEFS_ELF_H_ = 0
X_SYS_CDEFS_H_ = 0
X_SYS_COMMON_ANSI_H_ = 0
X_SYS_COMMON_INT_TYPES_H_ = 0
X_SYS_NULL_H_ = 0
X_X86_64_CDEFS_H_ = 0
BUFSIZ = 1024 // stdio.h:182:1:
EOF = -1 // stdio.h:183:1:
FILENAME_MAX = 1024 // stdio.h:192:1:
FOPEN_MAX = 20 // stdio.h:191:1:
FPARSELN_UNESCALL = 0x0f // stdio.h:411:1:
FPARSELN_UNESCCOMM = 0x04 // stdio.h:409:1:
FPARSELN_UNESCCONT = 0x02 // stdio.h:408:1:
FPARSELN_UNESCESC = 0x01 // stdio.h:407:1:
FPARSELN_UNESCREST = 0x08 // stdio.h:410:1:
L_ctermid = 1024 // stdio.h:292:1:
L_cuserid = 9 // stdio.h:293:1:
L_tmpnam = 1024 // stdio.h:198:1:
P_tmpdir = "/tmp/" // stdio.h:196:1:
SEEK_CUR = 1 // stdio.h:209:1:
SEEK_END = 2 // stdio.h:212:1:
SEEK_SET = 0 // stdio.h:206:1:
TMP_MAX = 308915776 // stdio.h:201:1:
X_AMD64_INT_TYPES_H_ = 0 // int_types.h:35:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FSTDIO = 0 // stdio.h:72:1:
X_IOFBF = 0 // stdio.h:178:1:
X_IOLBF = 1 // stdio.h:179:1:
X_IONBF = 2 // stdio.h:180:1:
X_LP64 = 1 // <predefined>:268:1:
X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
X_STDIO_H_ = 0 // stdio.h:38:1:
X_SYS_ANSI_H_ = 0 // ansi.h:33:1:
X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1:
X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1:
X_SYS_NULL_H_ = 0 // null.h:9:1:
X_X86_64_CDEFS_H_ = 0 // cdefs.h:4:1:
)
type Ptrdiff_t = int64 /* <builtin>:3:26 */
@ -69,44 +68,6 @@ type X__uint128_t = struct {
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
// DO NOT EDIT THIS FILE.
//
// It has been auto-edited by fixincludes from:
//
// "/usr/include/stdio.h"
//
// This had to be done to correct non-standard usages in the
// original, manufacturer supplied header file.
// Copyright (C) 1989-2020 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
// GCC is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3, or (at your option)
// any later version.
//
// GCC 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 General Public License for more details.
//
// Under Section 7 of GPL version 3, you are granted additional
// permissions described in the GCC Runtime Library Exception, version
// 3.1, as published by the Free Software Foundation.
//
// You should have received a copy of the GNU General Public License and
// a copy of the GCC Runtime Library Exception along with this program;
// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
// <http://www.gnu.org/licenses/>.
// ISO C Standard: 7.15 Variable arguments <stdarg.h>
// Define __gnuc_va_list.
type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */
// return true if value 'a' fits in type 't'
// $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $
@ -370,12 +331,12 @@ type X__wctype_t = uintptr /* ansi.h:54:31 */
// mbstate_t is an opaque object to keep conversion state, during multibyte
// stream conversions. The content must not be referenced by user programs.
type X__mbstate_t = struct {
F__mbstateL X__int64_t
_ [120]byte
F__mbstateL X__int64_t
F__ccgo_pad1 [120]byte
} /* ansi.h:63:3 */
type X__va_list = X__builtin_va_list /* ansi.h:72:27 */
type Ssize_t = int64 /* stdio.h:63:23 */
type Ssize_t = int64 /* stdio.h:49:23 */
// $NetBSD: null.h,v 1.9 2010/07/06 11:56:20 kleink Exp $
@ -389,7 +350,7 @@ type X__sfpos = struct {
F_pos X__off_t
F_mbstate_in X__mbstate_t
F_mbstate_out X__mbstate_t
} /* stdio.h:81:9 */
} /* stdio.h:67:9 */
// $NetBSD: null.h,v 1.9 2010/07/06 11:56:20 kleink Exp $
@ -399,7 +360,7 @@ type X__sfpos = struct {
// This is fairly grotesque, but pure ANSI code must not inspect the
// innards of an fpos_t anyway. The library internally uses off_t,
// which we assume is exactly as big as eight chars.
type Fpos_t = X__sfpos /* stdio.h:84:3 */
type Fpos_t = X__sfpos /* stdio.h:70:3 */
// NB: to fit things in six character monocase externals, the stdio
// code uses the prefix `__s' for stdio objects, typically followed
@ -407,10 +368,10 @@ type Fpos_t = X__sfpos /* stdio.h:84:3 */
// stdio buffers
type X__sbuf = struct {
F_base uintptr
F_size int32
_ [4]byte
} /* stdio.h:95:1 */
F_base uintptr
F_size int32
F__ccgo_pad1 [4]byte
} /* stdio.h:81:1 */
// stdio state variables.
//
@ -437,39 +398,39 @@ type X__sbuf = struct {
//
// NB: see WARNING above before changing the layout of this structure!
type X__sFILE = struct {
F_p uintptr
F_r int32
F_w int32
F_flags uint16
F_file int16
_ [4]byte
F_bf struct {
F_base uintptr
F_size int32
_ [4]byte
F_p uintptr
F_r int32
F_w int32
F_flags uint16
F_file int16
F__ccgo_pad1 [4]byte
F_bf struct {
F_base uintptr
F_size int32
F__ccgo_pad1 [4]byte
}
F_lbfsize int32
_ [4]byte
F_cookie uintptr
F_close uintptr
F_read uintptr
F_seek uintptr
F_write uintptr
F_ext struct {
F_base uintptr
F_size int32
_ [4]byte
F_lbfsize int32
F__ccgo_pad2 [4]byte
F_cookie uintptr
F_close uintptr
F_read uintptr
F_seek uintptr
F_write uintptr
F_ext struct {
F_base uintptr
F_size int32
F__ccgo_pad1 [4]byte
}
F_up uintptr
F_ur int32
F_ubuf [3]uint8
F_nbuf [1]uint8
F_flush uintptr
F_lb_unused [8]int8
F_blksize int32
_ [4]byte
F_offset X__off_t
} /* stdio.h:126:9 */
F_up uintptr
F_ur int32
F_ubuf [3]uint8
F_nbuf [1]uint8
F_flush uintptr
F_lb_unused [8]int8
F_blksize int32
F__ccgo_pad3 [4]byte
F_offset X__off_t
} /* stdio.h:112:9 */
// stdio state variables.
//
@ -495,11 +456,11 @@ type X__sFILE = struct {
// _ub._base!=NULL) and _up and _ur save the current values of _p and _r.
//
// NB: see WARNING above before changing the layout of this structure!
type FILE = X__sFILE /* stdio.h:160:3 */
type FILE = X__sFILE /* stdio.h:146:3 */
// X/Open CAE Specification Issue 5 Version 2
type Off_t = X__off_t /* stdio.h:390:18 */
type Off_t = X__off_t /* stdio.h:376:18 */
type Locale_t = uintptr /* stdio.h:557:25 */
type Locale_t = uintptr /* stdio.h:543:25 */
var _ int8 /* gen.c:2:13: */

View File

@ -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 "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio/stdio_windows_386.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 -ignore-unsupported-alignment -o stdio/stdio_windows_386.go -pkgname stdio', DO NOT EDIT.
package stdio
@ -15,140 +15,152 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
BUFSIZ = 512
DUMMYSTRUCTNAME = 0
DUMMYSTRUCTNAME1 = 0
DUMMYSTRUCTNAME2 = 0
DUMMYSTRUCTNAME3 = 0
DUMMYSTRUCTNAME4 = 0
DUMMYSTRUCTNAME5 = 0
DUMMYUNIONNAME = 0
DUMMYUNIONNAME1 = 0
DUMMYUNIONNAME2 = 0
DUMMYUNIONNAME3 = 0
DUMMYUNIONNAME4 = 0
DUMMYUNIONNAME5 = 0
DUMMYUNIONNAME6 = 0
DUMMYUNIONNAME7 = 0
DUMMYUNIONNAME8 = 0
DUMMYUNIONNAME9 = 0
EOF = -1
FILENAME_MAX = 260
FOPEN_MAX = 20
MINGW_DDK_H = 0
MINGW_DDRAW_VERSION = 7
MINGW_HAS_DDK_H = 1
MINGW_HAS_DDRAW_H = 1
MINGW_HAS_SECURE_API = 1
MINGW_SDK_INIT = 0
SEEK_CUR = 1
SEEK_END = 2
SEEK_SET = 0
STDERR_FILENO = 2
STDIN_FILENO = 0
STDOUT_FILENO = 1
SYS_OPEN = 20
TMP_MAX = 32767
UNALIGNED = 0
USE___UUIDOF = 0
WIN32 = 1
WINNT = 1
X_AGLOBAL = 0
X_ANONYMOUS_STRUCT = 0
X_ANONYMOUS_UNION = 0
X_ARGMAX = 100
X_CONST_RETURN = 0
X_CRTNOALIAS = 0
X_CRTRESTRICT = 0
X_CRT_ALTERNATIVE_IMPORTED = 0
X_CRT_DIRECTORY_DEFINED = 0
X_CRT_MANAGED_HEAP_DEPRECATE = 0
X_CRT_PACKING = 8
X_CRT_PERROR_DEFINED = 0
X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES = 0
X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
X_CRT_WPERROR_DEFINED = 0
X_DLL = 0
X_ERRCODE_DEFINED = 0
X_FILE_DEFINED = 0
X_FILE_OFFSET_BITS = 64
X_FILE_OFFSET_BITS_SET_FSEEKO = 0
X_FILE_OFFSET_BITS_SET_FTELLO = 0
X_FILE_OFFSET_BITS_SET_OFFT = 0
X_FPOS_T_DEFINED = 0
X_INC_CRTDEFS = 0
X_INC_CRTDEFS_MACRO = 0
X_INC_MINGW_SECAPI = 0
X_INC_STDIO = 0
X_INC_STDIO_S = 0
X_INC_SWPRINTF_INL = 0
X_INC_VADEFS = 0
X_INC__MINGW_H = 0
X_INT128_DEFINED = 0
X_INTEGRAL_MAX_BITS = 64
X_INTPTR_T_DEFINED = 0
X_IOB_ENTRIES = 20
X_IOEOF = 0x0010
X_IOERR = 0x0020
X_IOFBF = 0x0000
X_IOLBF = 0x0040
X_IOMYBUF = 0x0008
X_IONBF = 0x0004
X_IOREAD = 0x0001
X_IORW = 0x0080
X_IOSTRG = 0x0040
X_IOWRT = 0x0002
X_MT = 0
X_M_IX86 = 600
X_NFILE = 512
X_NSTREAM_ = 512
X_OFF64_T_DEFINED = 0
X_OFF_T_ = 0
X_OFF_T_DEFINED = 0
X_OLD_P_OVERLAY = 2
X_PGLOBAL = 0
X_PTRDIFF_T_ = 0
X_PTRDIFF_T_DEFINED = 0
X_P_DETACH = 4
X_P_NOWAIT = 1
X_P_NOWAITO = 3
X_P_OVERLAY = 2
X_P_WAIT = 0
X_P_tmpdir = "\\"
X_RSIZE_T_DEFINED = 0
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
X_SIZE_T_DEFINED = 0
X_SPAWNV_DEFINED = 0
X_SSIZE_T_DEFINED = 0
X_STDIO_DEFINED = 0
X_STDIO_S_DEFINED = 0
X_STDSTREAM_DEFINED = 0
X_SYS_OPEN = 20
X_TAGLC_ID_DEFINED = 0
X_THREADLOCALEINFO = 0
X_TIME32_T_DEFINED = 0
X_TIME64_T_DEFINED = 0
X_TIME_T_DEFINED = 0
X_TWO_DIGIT_EXPONENT = 0x1
X_UINTPTR_T_DEFINED = 0
X_USE_32BIT_TIME_T = 0
X_VA_LIST_DEFINED = 0
X_W64 = 0
X_WAIT_CHILD = 0
X_WAIT_GRANDCHILD = 1
X_WCHAR_T_DEFINED = 0
X_WCTYPE_T_DEFINED = 0
X_WIN32 = 1
X_WIN32_WINNT = 0x502
X_WINT_T = 0
X_WSPAWN_DEFINED = 0
X_WSTDIO_DEFINED = 0
X_WSTDIO_S_DEFINED = 0
X_X86_ = 1
I386 = 1
BUFSIZ = 512 // stdio.h:17:1:
DUMMYSTRUCTNAME = 0 // _mingw.h:519:1:
DUMMYSTRUCTNAME1 = 0 // _mingw.h:520:1:
DUMMYSTRUCTNAME2 = 0 // _mingw.h:521:1:
DUMMYSTRUCTNAME3 = 0 // _mingw.h:522:1:
DUMMYSTRUCTNAME4 = 0 // _mingw.h:523:1:
DUMMYSTRUCTNAME5 = 0 // _mingw.h:524:1:
DUMMYUNIONNAME = 0 // _mingw.h:497:1:
DUMMYUNIONNAME1 = 0 // _mingw.h:498:1:
DUMMYUNIONNAME2 = 0 // _mingw.h:499:1:
DUMMYUNIONNAME3 = 0 // _mingw.h:500:1:
DUMMYUNIONNAME4 = 0 // _mingw.h:501:1:
DUMMYUNIONNAME5 = 0 // _mingw.h:502:1:
DUMMYUNIONNAME6 = 0 // _mingw.h:503:1:
DUMMYUNIONNAME7 = 0 // _mingw.h:504:1:
DUMMYUNIONNAME8 = 0 // _mingw.h:505:1:
DUMMYUNIONNAME9 = 0 // _mingw.h:506:1:
EOF = -1 // stdio.h:21:1:
FILENAME_MAX = 260 // stdio.h:61:1:
FOPEN_MAX = 20 // stdio.h:62:1:
MINGW_DDK_H = 0 // _mingw_ddk.h:2:1:
MINGW_HAS_DDK_H = 1 // _mingw_ddk.h:4:1:
MINGW_HAS_SECURE_API = 1 // _mingw.h:602:1:
MINGW_SDK_INIT = 0 // _mingw.h:598:1:
SEEK_CUR = 1 // stdio.h:53:1:
SEEK_END = 2 // stdio.h:54:1:
SEEK_SET = 0 // stdio.h:55:1:
STDERR_FILENO = 2 // stdio.h:59:1:
STDIN_FILENO = 0 // stdio.h:57:1:
STDOUT_FILENO = 1 // stdio.h:58:1:
SYS_OPEN = 20 // stdio.h:1486:1:
TMP_MAX = 32767 // stdio.h:64:1:
TMP_MAX_S = 32767 // stdio_s.h:27:3:
UNALIGNED = 0 // _mingw.h:384:1:
USE___UUIDOF = 0 // _mingw.h:77:1:
WIN32 = 1 // <predefined>:258:1:
WINNT = 1 // <predefined>:306:1:
X_AGLOBAL = 0 // _mingw.h:346:1:
X_ANONYMOUS_STRUCT = 0 // _mingw.h:474:1:
X_ANONYMOUS_UNION = 0 // _mingw.h:473:1:
X_ARGMAX = 100 // _mingw.h:402:1:
X_CONST_RETURN = 0 // _mingw.h:377:1:
X_CRTNOALIAS = 0 // corecrt.h:29:1:
X_CRTRESTRICT = 0 // corecrt.h:33:1:
X_CRT_ALTERNATIVE_IMPORTED = 0 // _mingw.h:313:1:
X_CRT_DIRECTORY_DEFINED = 0 // stdio.h:728:1:
X_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS = 4 // corecrt_stdio_config.h:23:1:
X_CRT_INTERNAL_LOCAL_SCANF_OPTIONS = 2 // corecrt_stdio_config.h:27:1:
X_CRT_INTERNAL_PRINTF_LEGACY_MSVCRT_COMPATIBILITY = 0x0008 // corecrt_stdio_config.h:15:1:
X_CRT_INTERNAL_PRINTF_LEGACY_THREE_DIGIT_EXPONENTS = 0x0010 // corecrt_stdio_config.h:16:1:
X_CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION = 0x0001 // corecrt_stdio_config.h:12:1:
X_CRT_INTERNAL_PRINTF_LEGACY_WIDE_SPECIFIERS = 0x0004 // corecrt_stdio_config.h:14:1:
X_CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR = 0x0002 // corecrt_stdio_config.h:13:1:
X_CRT_INTERNAL_SCANF_LEGACY_MSVCRT_COMPATIBILITY = 0x0004 // corecrt_stdio_config.h:20:1:
X_CRT_INTERNAL_SCANF_LEGACY_WIDE_SPECIFIERS = 0x0002 // corecrt_stdio_config.h:19:1:
X_CRT_INTERNAL_SCANF_SECURECRT = 0x0001 // corecrt_stdio_config.h:18:1:
X_CRT_MANAGED_HEAP_DEPRECATE = 0 // _mingw.h:361:1:
X_CRT_PACKING = 8 // corecrt.h:14:1:
X_CRT_PERROR_DEFINED = 0 // stdio.h:712:1:
X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES = 0 // _mingw_secapi.h:34:1:
X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY = 0 // _mingw_secapi.h:35:1:
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0 // _mingw_secapi.h:36:1:
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0 // _mingw_secapi.h:37:1:
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0 // _mingw_secapi.h:38:1:
X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0 // corecrt.h:501:1:
X_CRT_WPERROR_DEFINED = 0 // stdio.h:1423:1:
X_DLL = 0 // _mingw.h:326:1:
X_ERRCODE_DEFINED = 0 // corecrt.h:117:1:
X_FILE_DEFINED = 0 // stdio.h:35:1:
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
X_FILE_OFFSET_BITS_SET_FSEEKO = 0 // stdio.h:692:1:
X_FILE_OFFSET_BITS_SET_FTELLO = 0 // stdio.h:699:1:
X_FILE_OFFSET_BITS_SET_OFFT = 0 // _mingw_off_t.h:21:1:
X_FPOS_T_DEFINED = 0 // stdio.h:98:1:
X_ILP32 = 1 // <predefined>:211:1:
X_INC_CORECRT = 0 // corecrt.h:8:1:
X_INC_CRTDEFS_MACRO = 0 // _mingw_mac.h:8:1:
X_INC_MINGW_SECAPI = 0 // _mingw_secapi.h:8:1:
X_INC_STDIO = 0 // stdio.h:7:1:
X_INC_STDIO_S = 0 // stdio_s.h:7:1:
X_INC_SWPRINTF_INL = 0 // swprintf.inl:8:1:
X_INC_VADEFS = 0 // vadefs.h:7:1:
X_INC__MINGW_H = 0 // _mingw.h:8:1:
X_INT128_DEFINED = 0 // _mingw.h:237:1:
X_INTEGRAL_MAX_BITS = 64 // <predefined>:320:1:
X_INTPTR_T_DEFINED = 0 // corecrt.h:62:1:
X_IOB_ENTRIES = 20 // stdio.h:20:1:
X_IOEOF = 0x0010 // stdio.h:127:1:
X_IOERR = 0x0020 // stdio.h:128:1:
X_IOFBF = 0x0000 // stdio.h:122:1:
X_IOLBF = 0x0040 // stdio.h:123:1:
X_IOMYBUF = 0x0008 // stdio.h:126:1:
X_IONBF = 0x0004 // stdio.h:124:1:
X_IOREAD = 0x0001 // stdio.h:119:1:
X_IORW = 0x0080 // stdio.h:130:1:
X_IOSTRG = 0x0040 // stdio.h:129:1:
X_IOWRT = 0x0002 // stdio.h:120:1:
X_MT = 0 // _mingw.h:330:1:
X_M_IX86 = 600 // _mingw_mac.h:54:1:
X_NFILE = 512 // stdio.h:18:1:
X_NSTREAM_ = 512 // stdio.h:19:1:
X_OFF64_T_DEFINED = 0 // _mingw_off_t.h:12:1:
X_OFF_T_ = 0 // _mingw_off_t.h:4:1:
X_OFF_T_DEFINED = 0 // _mingw_off_t.h:2:1:
X_OLD_P_OVERLAY = 2 // stdio.h:1557:1:
X_PGLOBAL = 0 // _mingw.h:342:1:
X_PTRDIFF_T_ = 0 // corecrt.h:90:1:
X_PTRDIFF_T_DEFINED = 0 // corecrt.h:88:1:
X_P_DETACH = 4 // stdio.h:1559:1:
X_P_NOWAIT = 1 // stdio.h:1556:1:
X_P_NOWAITO = 3 // stdio.h:1558:1:
X_P_OVERLAY = 2 // stdio.h:1560:1:
X_P_WAIT = 0 // stdio.h:1555:1:
X_P_tmpdir = "\\" // stdio.h:42:1:
X_RSIZE_T_DEFINED = 0 // corecrt.h:58:1:
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD // _mingw.h:349:1:
X_SIZE_T_DEFINED = 0 // corecrt.h:37:1:
X_SPAWNV_DEFINED = 0 // stdio.h:1567:1:
X_SSIZE_T_DEFINED = 0 // corecrt.h:47:1:
X_STDIO_CONFIG_DEFINED = 0 // corecrt_stdio_config.h:8:1:
X_STDIO_DEFINED = 0 // stdio.h:1453:1:
X_STDIO_S_DEFINED = 0 // stdio_s.h:25:1:
X_STDSTREAM_DEFINED = 0 // stdio.h:112:1:
X_SYS_OPEN = 20 // stdio.h:63:1:
X_TAGLC_ID_DEFINED = 0 // corecrt.h:447:1:
X_THREADLOCALEINFO = 0 // corecrt.h:456:1:
X_TIME32_T_DEFINED = 0 // corecrt.h:122:1:
X_TIME64_T_DEFINED = 0 // corecrt.h:127:1:
X_TIME_T_DEFINED = 0 // corecrt.h:139:1:
X_TWO_DIGIT_EXPONENT = 0x1 // stdio.h:135:1:
X_UINTPTR_T_DEFINED = 0 // corecrt.h:75:1:
X_USE_32BIT_TIME_T = 0 // _mingw.h:372:1:
X_VA_LIST_DEFINED = 0 // <builtin>:55:1:
X_W64 = 0 // _mingw.h:296:1:
X_WAIT_CHILD = 0 // stdio.h:1562:1:
X_WAIT_GRANDCHILD = 1 // stdio.h:1563:1:
X_WCHAR_T_DEFINED = 0 // corecrt.h:101:1:
X_WCTYPE_T_DEFINED = 0 // corecrt.h:108:1:
X_WIN32 = 1 // <predefined>:164:1:
X_WIN32_WINNT = 0x502 // _mingw.h:233:1:
X_WINT_T = 0 // corecrt.h:110:1:
X_WSPAWN_DEFINED = 0 // stdio.h:1543:1:
X_WSTDIO_DEFINED = 0 // stdio.h:958:1:
X_WSTDIO_S_DEFINED = 0 // stdio_s.h:579:1:
X_X86_ = 1 // <predefined>:169:1:
I386 = 1 // <predefined>:171:1:
)
type Ptrdiff_t = int32 /* <builtin>:3:26 */
@ -167,6 +179,11 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the Wine project.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
@ -202,6 +219,12 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// MinGW-w64 has some additional C99 printf/scanf feature support.
// So we add some helper macros to ease recognition of them.
// If _FORTIFY_SOURCE is enabled, some inline functions may use
// __builtin_va_arg_pack(). GCC may report an error if the address
// of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
// Enable workaround for ABI incompatibility on affected platforms
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
@ -242,26 +265,28 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// for backward compatibility
type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
type Ssize_t = int32 /* crtdefs.h:47:13 */
type Ssize_t = int32 /* corecrt.h:52:13 */
type Rsize_t = Size_t /* crtdefs.h:52:16 */
type Rsize_t = Size_t /* corecrt.h:57:16 */
type Intptr_t = int32 /* crtdefs.h:64:13 */
type Intptr_t = int32 /* corecrt.h:69:13 */
type Uintptr_t = uint32 /* crtdefs.h:77:22 */
type Uintptr_t = uint32 /* corecrt.h:82:22 */
type Wint_t = uint16 /* crtdefs.h:106:24 */
type Wctype_t = uint16 /* crtdefs.h:107:24 */
type Wint_t = uint16 /* corecrt.h:111:24 */
type Wctype_t = uint16 /* corecrt.h:112:24 */
type Errno_t = int32 /* crtdefs.h:113:13 */
type Errno_t = int32 /* corecrt.h:118:13 */
type X__time32_t = int32 /* crtdefs.h:118:14 */
type X__time32_t = int32 /* corecrt.h:123:14 */
type X__time64_t = int64 /* crtdefs.h:123:35 */
type X__time64_t = int64 /* corecrt.h:128:35 */
type Time_t = X__time32_t /* crtdefs.h:136:20 */
type Time_t = X__time32_t /* corecrt.h:141:20 */
type Threadlocaleinfostruct = struct {
Frefcount int32
@ -287,36 +312,29 @@ type Threadlocaleinfostruct = struct {
Fpclmap uintptr
Fpcumap uintptr
Flc_time_curr uintptr
} /* crtdefs.h:422:1 */
} /* corecrt.h:435:1 */
type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
type Pthreadlocinfo = uintptr /* corecrt.h:437:39 */
type Pthreadmbcinfo = uintptr /* corecrt.h:438:36 */
type Localeinfo_struct = struct {
Flocinfo Pthreadlocinfo
Fmbcinfo Pthreadmbcinfo
} /* crtdefs.h:428:9 */
} /* corecrt.h:441:9 */
type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
type X_locale_t = uintptr /* crtdefs.h:431:19 */
type X_locale_tstruct = Localeinfo_struct /* corecrt.h:444:3 */
type X_locale_t = uintptr /* corecrt.h:444:19 */
type TagLC_ID = struct {
FwLanguage uint16
FwCountry uint16
FwCodePage uint16
} /* crtdefs.h:422:1 */
} /* corecrt.h:435:1 */
type LC_ID = TagLC_ID /* crtdefs.h:439:3 */
type LPLC_ID = uintptr /* crtdefs.h:439:9 */
type LC_ID = TagLC_ID /* corecrt.h:452:3 */
type LPLC_ID = uintptr /* corecrt.h:452:9 */
type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// Undefine __mingw_<printf> macros.
type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
type X_iobuf = struct {
F_ptr uintptr
@ -327,9 +345,9 @@ type X_iobuf = struct {
F_charbuf int32
F_bufsiz int32
F_tmpfname uintptr
} /* stdio.h:26:3 */
} /* stdio.h:24:3 */
type FILE = X_iobuf /* stdio.h:36:25 */
type FILE = X_iobuf /* stdio.h:34:25 */
type X_off_t = int32 /* _mingw_off_t.h:5:16 */
type Off32_t = int32 /* _mingw_off_t.h:7:16 */
@ -339,13 +357,6 @@ type Off64_t = int64 /* _mingw_off_t.h:15:39 */
type Off_t = Off64_t /* _mingw_off_t.h:24:17 */ // A pointer to an array of FILE
type Fpos_t = int64 /* stdio.h:104:37 */
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
// Define __mingw_<printf> macros.
type Fpos_t = int64 /* stdio.h:102:37 */
var _ int8 /* gen.c:2:13: */

View File

@ -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 "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o stdio/stdio_windows_amd64.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_windows_amd64.go -pkgname stdio', DO NOT EDIT.
package stdio
@ -120,6 +120,7 @@ const (
X_P_OVERLAY = 2
X_P_WAIT = 0
X_P_tmpdir = "\\"
X_REENTRANT = 1
X_RSIZE_T_DEFINED = 0
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
X_SIZE_T_DEFINED = 0
@ -331,15 +332,15 @@ type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
// Undefine __mingw_<printf> macros.
type X_iobuf = struct {
F_ptr uintptr
F_cnt int32
_ [4]byte
F_base uintptr
F_flag int32
F_file int32
F_charbuf int32
F_bufsiz int32
F_tmpfname uintptr
F_ptr uintptr
F_cnt int32
F__ccgo_pad1 [4]byte
F_base uintptr
F_flag int32
F_file int32
F_charbuf int32
F_bufsiz int32
F_tmpfname uintptr
} /* stdio.h:26:3 */
type FILE = X_iobuf /* stdio.h:36:25 */