diff options
author | 2021-12-12 15:47:51 +0100 | |
---|---|---|
committer | 2021-12-12 15:47:51 +0100 | |
commit | 67ac8db190eb82a7758746fb021fa3014f4241b7 (patch) | |
tree | 4a4124ad8f0ee9ec8858b109dd0bcc2e567fc144 /vendor/modernc.org/libc/stdlib/stdlib_darwin_arm64.go | |
parent | upstep dependencies (#339) (diff) | |
download | gotosocial-67ac8db190eb82a7758746fb021fa3014f4241b7.tar.xz |
Upstep Go dependencies (#340)
* Upstep Go dependencies
* tiny linter fix
* Tidy
Diffstat (limited to 'vendor/modernc.org/libc/stdlib/stdlib_darwin_arm64.go')
-rw-r--r-- | vendor/modernc.org/libc/stdlib/stdlib_darwin_arm64.go | 172 |
1 files changed, 76 insertions, 96 deletions
diff --git a/vendor/modernc.org/libc/stdlib/stdlib_darwin_arm64.go b/vendor/modernc.org/libc/stdlib/stdlib_darwin_arm64.go index 73290f2af..67a37e9e7 100644 --- a/vendor/modernc.org/libc/stdlib/stdlib_darwin_arm64.go +++ b/vendor/modernc.org/libc/stdlib/stdlib_darwin_arm64.go @@ -94,6 +94,7 @@ const ( IOPOL_STANDARD = 5 IOPOL_THROTTLE = 3 IOPOL_TYPE_DISK = 0 + IOPOL_TYPE_VFS_ALLOW_LOW_SPACE_WRITES = 9 IOPOL_TYPE_VFS_ATIME_UPDATES = 2 IOPOL_TYPE_VFS_IGNORE_CONTENT_PROTECTION = 6 IOPOL_TYPE_VFS_IGNORE_PERMISSIONS = 7 @@ -102,6 +103,8 @@ const ( IOPOL_TYPE_VFS_STATFS_NO_DATA_VOLUME = 4 IOPOL_TYPE_VFS_TRIGGER_RESOLVE = 5 IOPOL_UTILITY = 4 + IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_OFF = 0 + IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_ON = 1 IOPOL_VFS_CONTENT_PROTECTION_DEFAULT = 0 IOPOL_VFS_CONTENT_PROTECTION_IGNORE = 1 IOPOL_VFS_IGNORE_PERMISSIONS_OFF = 0 @@ -114,6 +117,7 @@ const ( IOPOL_VFS_TRIGGER_RESOLVE_OFF = 1 LITTLE_ENDIAN = 1234 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 @@ -297,12 +301,14 @@ const ( WUNTRACED = 0x00000002 X_ALLOCA_H_ = 0 X_ARM_ARCH_H = 0 + X_ARM_MACHTYPES_H_ = 0 X_ARM_SIGNAL_ = 1 X_ARM__ENDIAN_H_ = 0 X_BSD_ARM__TYPES_H_ = 0 X_BSD_MACHINE_ENDIAN_H_ = 0 X_BSD_MACHINE_SIGNAL_H_ = 0 X_BSD_MACHINE_TYPES_H_ = 0 + X_BSD_MACHINE__MCONTEXT_H_ = 0 X_BSD_MACHINE__TYPES_H_ = 0 X_CDEFS_H_ = 0 X_CT_RUNE_T = 0 @@ -749,7 +755,7 @@ type X__float128 = float64 /* <builtin>:47:21 */ // // 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. @@ -909,6 +915,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. @@ -1332,17 +1344,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 @@ -1360,33 +1372,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 @@ -2137,7 +2149,7 @@ type Id_t = X__darwin_id_t /* _id_t.h:31:25 */ // can hold pid_t, gid_t, or uid_ // // @(#)cdefs.h 8.8 (Berkeley) 1/9/95 -type Sig_atomic_t = int32 /* signal.h:15:13 */ +type Sig_atomic_t = int32 /* signal.h:17:13 */ // Language spec sez we must list exactly one parameter, even though we // actually supply three. Ugh! @@ -2194,6 +2206,7 @@ type Sig_atomic_t = int32 /* signal.h:15:13 */ // limitations under the License. // // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ + // Copyright (c) 2003-2012 Apple Inc. All rights reserved. // // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ @@ -2760,7 +2773,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. // @@ -2840,31 +2853,32 @@ 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 X__darwin_arm_exception_state = struct { F__exception X__uint32_t F__fsr X__uint32_t F__far X__uint32_t -} /* _structs.h:39:1 */ +} /* _structs.h:41:1 */ type X__darwin_arm_exception_state64 = struct { F__far X__uint64_t F__esr X__uint32_t F__exception X__uint32_t -} /* _structs.h:57:1 */ +} /* _structs.h:59:1 */ type X__darwin_arm_thread_state = struct { F__r [13]X__uint32_t @@ -2872,7 +2886,7 @@ type X__darwin_arm_thread_state = struct { F__lr X__uint32_t F__pc X__uint32_t F__cpsr X__uint32_t -} /* _structs.h:75:1 */ +} /* _structs.h:77:1 */ // By default, the pointer fields in the arm_thread_state64_t structure are // opaque on the arm64e architecture and require the use of accessor macros. @@ -2887,7 +2901,7 @@ type X__darwin_arm_thread_state64 = struct { F__pc X__uint64_t F__cpsr X__uint32_t F__pad X__uint32_t -} /* _structs.h:134:1 */ +} /* _structs.h:136:1 */ // Accessor macros for arm_thread_state64_t pointer fields @@ -2906,29 +2920,21 @@ type X__darwin_arm_thread_state64 = struct { type X__darwin_arm_vfp_state = struct { F__r [64]X__uint32_t F__fpscr X__uint32_t -} /* _structs.h:422:1 */ +} /* _structs.h:424:1 */ type X__darwin_arm_neon_state64 = struct { F__v [32]X__uint128_t F__fpsr X__uint32_t F__fpcr X__uint32_t -} /* _structs.h:441:1 */ +} /* _structs.h:443:1 */ type X__darwin_arm_neon_state = struct { F__v [16]X__uint128_t F__fpsr X__uint32_t F__fpcr X__uint32_t -} /* _structs.h:448:1 */ +} /* _structs.h:450:1 */ -type X__darwin_arm_amx_state_v1 = struct { - F__ccgo_pad1 [0]uint64 - F__x [8][64]X__uint8_t - F__y [8][64]X__uint8_t - F__z [64][64]X__uint8_t - F__amx_state_t_el1 X__uint64_t -} /* _structs.h:512:1 */ - -type X__arm_pagein_state = struct{ F__pagein_error int32 } /* _structs.h:531:1 */ +type X__arm_pagein_state = struct{ F__pagein_error int32 } /* _structs.h:514:1 */ // Debug State @@ -2939,7 +2945,7 @@ type X__arm_legacy_debug_state = struct { F__bcr [16]X__uint32_t F__wvr [16]X__uint32_t F__wcr [16]X__uint32_t -} /* _structs.h:568:1 */ +} /* _structs.h:551:1 */ type X__darwin_arm_debug_state32 = struct { F__bvr [16]X__uint32_t @@ -2947,7 +2953,7 @@ type X__darwin_arm_debug_state32 = struct { F__wvr [16]X__uint32_t F__wcr [16]X__uint32_t F__mdscr_el1 X__uint64_t -} /* _structs.h:591:1 */ +} /* _structs.h:574:1 */ type X__darwin_arm_debug_state64 = struct { F__bvr [16]X__uint64_t @@ -2955,9 +2961,9 @@ type X__darwin_arm_debug_state64 = struct { F__wvr [16]X__uint64_t F__wcr [16]X__uint64_t F__mdscr_el1 X__uint64_t -} /* _structs.h:601:1 */ +} /* _structs.h:584:1 */ -type X__darwin_arm_cpmu_state64 = struct{ F__ctrs [16]X__uint64_t } /* _structs.h:633:1 */ +type X__darwin_arm_cpmu_state64 = struct{ F__ctrs [16]X__uint64_t } /* _structs.h:616:1 */ type X__darwin_mcontext32 = struct { F__es struct { @@ -2976,7 +2982,7 @@ type X__darwin_mcontext32 = struct { F__r [64]X__uint32_t F__fpscr X__uint32_t } -} /* _mcontext.h:39:1 */ +} /* _mcontext.h:41:1 */ type X__darwin_mcontext64 = struct { F__es struct { @@ -2998,9 +3004,9 @@ type X__darwin_mcontext64 = struct { F__fpsr X__uint32_t F__fpcr X__uint32_t } -} /* _mcontext.h:62:1 */ +} /* _mcontext.h:64:1 */ -type Mcontext_t = uintptr /* _mcontext.h:83:33 */ +type Mcontext_t = uintptr /* _mcontext.h:85:33 */ // Copyright (c) 2003-2012 Apple Inc. All rights reserved. // @@ -3320,32 +3326,6 @@ type Stack_t = X__darwin_sigaltstack /* _sigaltstack.h:48:33 */ // [???] signal // limitations under the License. // // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ -// Copyright (c) 2003-2012 Apple Inc. All rights reserved. -// -// @APPLE_OSREFERENCE_LICENSE_HEADER_START@ -// -// This file contains Original Code and/or Modifications of Original Code -// as defined in and that are subject to the Apple Public Source License -// Version 2.0 (the 'License'). You may not use this file except in -// compliance with the License. The rights granted to you under the License -// may not be used to create, or enable the creation or redistribution of, -// unlawful or unlicensed copies of an Apple operating system, or to -// circumvent, violate, or enable the circumvention or violation of, any -// terms of an Apple operating system software license agreement. -// -// Please obtain a copy of the License at -// http://www.opensource.apple.com/apsl/ and read it before using this file. -// -// The Original Code and all software distributed under the License are -// distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER -// EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, -// INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. -// Please see the License for the specific language governing rights and -// limitations under the License. -// -// @APPLE_OSREFERENCE_LICENSE_HEADER_END@ - // Copyright (c) 2003-2007 Apple Inc. All rights reserved. // // @APPLE_OSREFERENCE_LICENSE_HEADER_START@ @@ -3548,18 +3528,18 @@ type Sigset_t = X__darwin_sigset_t /* _sigset_t.h:31:41 */ type Uid_t = X__darwin_uid_t /* _uid_t.h:31:31 */ type Sigval = struct { - _ [0]uint64 - Fsival_int int32 - _ [4]byte + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte } /* signal.h:158:1 */ type Sigevent = struct { Fsigev_notify int32 Fsigev_signo int32 Fsigev_value struct { - _ [0]uint64 - Fsival_int int32 - _ [4]byte + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte } Fsigev_notify_function uintptr Fsigev_notify_attributes uintptr @@ -3574,9 +3554,9 @@ type X__siginfo = struct { Fsi_status int32 Fsi_addr uintptr Fsi_value struct { - _ [0]uint64 - Fsival_int int32 - _ [4]byte + F__ccgo_pad1 [0]uint64 + Fsival_int int32 + F__ccgo_pad2 [4]byte } Fsi_band int64 F__pad [7]uint64 @@ -3834,7 +3814,7 @@ type Sigstack = struct { // // It has been auto-edited by fixincludes from: // -// "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdint.h" +// "/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/stdint.h" // // This had to be done to correct non-standard usages in the // original, manufacturer supplied header file. |