summaryrefslogtreecommitdiffstats
path: root/vendor/modernc.org/libc/pthread/pthread_darwin_arm64.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/modernc.org/libc/pthread/pthread_darwin_arm64.go')
-rw-r--r--vendor/modernc.org/libc/pthread/pthread_darwin_arm64.go251
1 files changed, 132 insertions, 119 deletions
diff --git a/vendor/modernc.org/libc/pthread/pthread_darwin_arm64.go b/vendor/modernc.org/libc/pthread/pthread_darwin_arm64.go
index ad851e8b..b721feae 100644
--- a/vendor/modernc.org/libc/pthread/pthread_darwin_arm64.go
+++ b/vendor/modernc.org/libc/pthread/pthread_darwin_arm64.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo pthread/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 pthread/pthread_darwin_arm64.go -pkgname pthread', DO NOT EDIT.
+// Code generated by 'ccgo pthread/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 pthread/pthread_darwin_arm64.go -pkgname pthread', DO NOT EDIT.
package pthread
@@ -15,124 +15,123 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
- CLOCKS_PER_SEC = 1000000
- 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
- PTHREAD_CANCEL_ASYNCHRONOUS = 0x00
- PTHREAD_CANCEL_DEFERRED = 0x02
- PTHREAD_CANCEL_DISABLE = 0x00
- PTHREAD_CANCEL_ENABLE = 0x01
- PTHREAD_CREATE_DETACHED = 2
- PTHREAD_CREATE_JOINABLE = 1
- PTHREAD_EXPLICIT_SCHED = 2
- PTHREAD_INHERIT_SCHED = 1
- PTHREAD_MUTEX_DEFAULT = 0
- PTHREAD_MUTEX_ERRORCHECK = 1
- PTHREAD_MUTEX_NORMAL = 0
- PTHREAD_MUTEX_POLICY_FAIRSHARE_NP = 1
- PTHREAD_MUTEX_POLICY_FIRSTFIT_NP = 3
- PTHREAD_MUTEX_RECURSIVE = 2
- PTHREAD_PRIO_INHERIT = 1
- PTHREAD_PRIO_NONE = 0
- PTHREAD_PRIO_PROTECT = 2
- PTHREAD_PROCESS_PRIVATE = 2
- PTHREAD_PROCESS_SHARED = 1
- PTHREAD_SCOPE_PROCESS = 2
- PTHREAD_SCOPE_SYSTEM = 1
- QOS_MIN_RELATIVE_PRIORITY = -15
- SCHED_FIFO = 4
- SCHED_OTHER = 1
- SCHED_RR = 2
- TIME_UTC = 1
- 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_CLOCK_T = 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_INT16_T = 0
- X_INT32_T = 0
- X_INT64_T = 0
- X_INT8_T = 0
- X_INTPTR_T = 0
- X_LP64 = 1
- X_MACHTYPES_H_ = 0
- X_MACH_PORT_T = 0
- X_Nonnull = 0
- X_Null_unspecified = 0
- X_Nullable = 0
- X_PTHREAD_ATTR_T = 0
- X_PTHREAD_CONDATTR_T = 0
- X_PTHREAD_COND_SIG_init = 0x3CB0B1BB
- X_PTHREAD_COND_T = 0
- X_PTHREAD_ERRORCHECK_MUTEX_SIG_init = 0x32AAABA1
- X_PTHREAD_FIRSTFIT_MUTEX_SIG_init = 0x32AAABA3
- X_PTHREAD_H = 0
- X_PTHREAD_IMPL_H_ = 0
- X_PTHREAD_KEY_T = 0
- X_PTHREAD_MUTEXATTR_T = 0
- X_PTHREAD_MUTEX_SIG_init = 0x32AAABA7
- X_PTHREAD_MUTEX_T = 0
- X_PTHREAD_ONCE_SIG_init = 0x30B1BCBA
- X_PTHREAD_ONCE_T = 0
- X_PTHREAD_QOS_H = 0
- X_PTHREAD_RECURSIVE_MUTEX_SIG_init = 0x32AAABA2
- X_PTHREAD_RWLOCKATTR_T = 0
- X_PTHREAD_RWLOCK_SIG_init = 0x2DA8B3B4
- X_PTHREAD_RWLOCK_T = 0
- X_PTHREAD_T = 0
- X_SCHED_H_ = 0
- X_SIGSET_T = 0
- X_SIZE_T = 0
- X_SYS_QOS_H = 0
- X_SYS__PTHREAD_TYPES_H_ = 0
- X_SYS__TYPES_H_ = 0
- X_TIME_H_ = 0
- X_TIME_T = 0
- X_UINTPTR_T = 0
- X_U_INT16_T = 0
- X_U_INT32_T = 0
- X_U_INT64_T = 0
- X_U_INT8_T = 0
+ 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:
+ PTHREAD_CANCEL_ASYNCHRONOUS = 0x00 // pthread.h:144:1:
+ PTHREAD_CANCEL_DEFERRED = 0x02 // pthread.h:143:1:
+ PTHREAD_CANCEL_DISABLE = 0x00 // pthread.h:142:1:
+ PTHREAD_CANCEL_ENABLE = 0x01 // pthread.h:141:1:
+ PTHREAD_CREATE_DETACHED = 2 // pthread.h:136:1:
+ PTHREAD_CREATE_JOINABLE = 1 // pthread.h:135:1:
+ PTHREAD_EXPLICIT_SCHED = 2 // pthread.h:139:1:
+ PTHREAD_INHERIT_SCHED = 1 // pthread.h:138:1:
+ PTHREAD_MUTEX_DEFAULT = 0 // pthread.h:169:1:
+ PTHREAD_MUTEX_ERRORCHECK = 1 // pthread.h:167:1:
+ PTHREAD_MUTEX_NORMAL = 0 // pthread.h:166:1:
+ PTHREAD_MUTEX_POLICY_FAIRSHARE_NP = 1 // pthread.h:174:1:
+ PTHREAD_MUTEX_POLICY_FIRSTFIT_NP = 3 // pthread.h:175:1:
+ PTHREAD_MUTEX_RECURSIVE = 2 // pthread.h:168:1:
+ PTHREAD_PRIO_INHERIT = 1 // pthread.h:160:1:
+ PTHREAD_PRIO_NONE = 0 // pthread.h:159:1:
+ PTHREAD_PRIO_PROTECT = 2 // pthread.h:161:1:
+ PTHREAD_PROCESS_PRIVATE = 2 // pthread.h:154:1:
+ PTHREAD_PROCESS_SHARED = 1 // pthread.h:153:1:
+ PTHREAD_SCOPE_PROCESS = 2 // pthread.h:151:1:
+ PTHREAD_SCOPE_SYSTEM = 1 // pthread.h:150:1:
+ QOS_MIN_RELATIVE_PRIORITY = -15 // qos.h:153:1:
+ SCHED_FIFO = 4 // pthread_impl.h:55:1:
+ SCHED_OTHER = 1 // pthread_impl.h:54:1:
+ SCHED_RR = 2 // pthread_impl.h:56:1:
+ TIME_UTC = 1 // time.h:197: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_CLOCK_T = 0 // _clock_t.h:29: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_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_LP64 = 1 // <predefined>:1:1:
+ X_MACHTYPES_H_ = 0 // types.h:44:1:
+ X_MACH_PORT_T = 0 // _mach_port_t.h:48:1:
+ X_Nonnull = 0 // cdefs.h:268:1:
+ X_Null_unspecified = 0 // cdefs.h:271:1:
+ X_Nullable = 0 // cdefs.h:265:1:
+ X_PTHREAD_ATTR_T = 0 // _pthread_attr_t.h:29:1:
+ X_PTHREAD_CONDATTR_T = 0 // _pthread_condattr_t.h:29:1:
+ X_PTHREAD_COND_SIG_init = 0x3CB0B1BB // pthread_impl.h:47:1:
+ X_PTHREAD_COND_T = 0 // _pthread_cond_t.h:29:1:
+ X_PTHREAD_ERRORCHECK_MUTEX_SIG_init = 0x32AAABA1 // pthread_impl.h:43:1:
+ X_PTHREAD_FIRSTFIT_MUTEX_SIG_init = 0x32AAABA3 // pthread_impl.h:45:1:
+ X_PTHREAD_H = 0 // pthread.h:53:1:
+ X_PTHREAD_IMPL_H_ = 0 // pthread_impl.h:25:1:
+ X_PTHREAD_KEY_T = 0 // _pthread_key_t.h:29:1:
+ X_PTHREAD_MUTEXATTR_T = 0 // _pthread_mutexattr_t.h:29:1:
+ X_PTHREAD_MUTEX_SIG_init = 0x32AAABA7 // pthread_impl.h:41:1:
+ X_PTHREAD_MUTEX_T = 0 // _pthread_mutex_t.h:29:1:
+ X_PTHREAD_ONCE_SIG_init = 0x30B1BCBA // pthread_impl.h:48:1:
+ X_PTHREAD_ONCE_T = 0 // _pthread_once_t.h:29:1:
+ X_PTHREAD_QOS_H = 0 // qos.h:25:1:
+ X_PTHREAD_RECURSIVE_MUTEX_SIG_init = 0x32AAABA2 // pthread_impl.h:44:1:
+ X_PTHREAD_RWLOCKATTR_T = 0 // _pthread_rwlockattr_t.h:29:1:
+ X_PTHREAD_RWLOCK_SIG_init = 0x2DA8B3B4 // pthread_impl.h:49:1:
+ X_PTHREAD_RWLOCK_T = 0 // _pthread_rwlock_t.h:29:1:
+ X_PTHREAD_T = 0 // _pthread_t.h:29:1:
+ X_SCHED_H_ = 0 // sched.h:25:1:
+ X_SIGSET_T = 0 // _sigset_t.h:29:1:
+ X_SIZE_T = 0 // _size_t.h:29:1:
+ X_SYS_QOS_H = 0 // qos.h:25:1:
+ X_SYS__PTHREAD_TYPES_H_ = 0 // _pthread_types.h:30:1:
+ X_SYS__TYPES_H_ = 0 // _types.h:30:1:
+ X_TIME_H_ = 0 // time.h:64:1:
+ X_TIME_T = 0 // _time_t.h:29:1:
+ X_UINTPTR_T = 0 // _uintptr_t.h:29: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:
)
// Copyright (c) 2013-2014 Apple Inc. All rights reserved.
@@ -968,6 +967,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