summaryrefslogtreecommitdiff
path: root/vendor/modernc.org/libc/pthread
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/modernc.org/libc/pthread')
-rw-r--r--vendor/modernc.org/libc/pthread/pthread_darwin_arm64.go96
1 files changed, 60 insertions, 36 deletions
diff --git a/vendor/modernc.org/libc/pthread/pthread_darwin_arm64.go b/vendor/modernc.org/libc/pthread/pthread_darwin_arm64.go
index fe2606089..0cc056236 100644
--- a/vendor/modernc.org/libc/pthread/pthread_darwin_arm64.go
+++ b/vendor/modernc.org/libc/pthread/pthread_darwin_arm64.go
@@ -17,6 +17,7 @@ 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
@@ -75,6 +76,7 @@ const (
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
@@ -675,6 +677,12 @@ type X__float128 = float64 /* <builtin>:47:21 */
// in between its arguments. __CONCAT can also concatenate double-quoted
// strings produced by the __STRING macro, but this only works with ANSI C.
+// __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.
@@ -989,17 +997,17 @@ type X__float128 = float64 /* <builtin>:47:21 */
// 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
@@ -1017,33 +1025,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
@@ -1666,7 +1674,7 @@ type Sched_param = struct {
//
// It has been auto-edited by fixincludes from:
//
-// "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/AvailabilityInternal.h"
+// "/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/AvailabilityInternal.h"
//
// This had to be done to correct non-standard usages in the
// original, manufacturer supplied header file.
@@ -2114,7 +2122,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.
//
@@ -2194,19 +2202,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 Clock_t = X__darwin_clock_t /* _clock_t.h:31:33 */
// Copyright (c) 2003-2012 Apple Inc. All rights reserved.
@@ -3028,4 +3037,19 @@ type Mach_port_t = X__darwin_mach_port_t /* _mach_port_t.h:50:30 */
type Sigset_t = X__darwin_sigset_t /* _sigset_t.h:31:41 */
+// !
+// @typedef pthread_jit_write_callback_t
+// The type of a function that can be supplied to {@link
+// pthread_jit_write_with_callback_np} to write to the MAP_JIT region while it
+// is writeable.
+//
+// @param ctx
+// A pointer to context that will be passed through to the callback function.
+//
+// @result
+// A result code to be returned to the caller of @{link
+// pthread_jit_write_with_callback_np}. The system does not interpret/act on
+// the value of this result.
+type Pthread_jit_write_callback_t = uintptr /* pthread.h:581:13 */
+
var _ int8 /* gen.c:2:13: */