summaryrefslogtreecommitdiffstats
path: root/vendor/modernc.org/libc/stdio
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/modernc.org/libc/stdio')
-rw-r--r--vendor/modernc.org/libc/stdio/capi_darwin_arm64.go2
-rw-r--r--vendor/modernc.org/libc/stdio/capi_linux_amd64.go2
-rw-r--r--vendor/modernc.org/libc/stdio/stdio_darwin_arm64.go200
-rw-r--r--vendor/modernc.org/libc/stdio/stdio_linux_amd64.go94
4 files changed, 157 insertions, 141 deletions
diff --git a/vendor/modernc.org/libc/stdio/capi_darwin_arm64.go b/vendor/modernc.org/libc/stdio/capi_darwin_arm64.go
index 7e98026e..fdc60c5e 100644
--- a/vendor/modernc.org/libc/stdio/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/stdio/capi_darwin_arm64.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo stdio/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -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
diff --git a/vendor/modernc.org/libc/stdio/capi_linux_amd64.go b/vendor/modernc.org/libc/stdio/capi_linux_amd64.go
index c9969ca4..e327db42 100644
--- a/vendor/modernc.org/libc/stdio/capi_linux_amd64.go
+++ b/vendor/modernc.org/libc/stdio/capi_linux_amd64.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo stdio/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -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
diff --git a/vendor/modernc.org/libc/stdio/stdio_darwin_arm64.go b/vendor/modernc.org/libc/stdio/stdio_darwin_arm64.go
index 76157f5f..f0896f0c 100644
--- a/vendor/modernc.org/libc/stdio/stdio_darwin_arm64.go
+++ b/vendor/modernc.org/libc/stdio/stdio_darwin_arm64.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo stdio/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -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,97 +15,99 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
- BUFSIZ = 1024
- EOF = -1
- FILENAME_MAX = 1024
- FOPEN_MAX = 20
- L_ctermid = 1024
- L_tmpnam = 1024
- MAC_OS_VERSION_11_0 = 110000
- MAC_OS_VERSION_12_0 = 120000
- 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_ARM_MACHTYPES_H_ = 0
- 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 */
@@ -607,6 +609,20 @@ var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
// __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
diff --git a/vendor/modernc.org/libc/stdio/stdio_linux_amd64.go b/vendor/modernc.org/libc/stdio/stdio_linux_amd64.go
index e38676fe..2be5f7f6 100644
--- a/vendor/modernc.org/libc/stdio/stdio_linux_amd64.go
+++ b/vendor/modernc.org/libc/stdio/stdio_linux_amd64.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo stdio/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -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,52 +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_TIME64_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 */