diff options
author | Wim <wim@42.be> | 2022-03-12 23:02:04 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2022-03-20 14:57:48 +0100 |
commit | aefa70891cfd489fccb8a9567b5bdafb0f863ede (patch) | |
tree | 90fe7c91d7b33b2a1ed08ea3a94840860adc6fc1 /vendor/modernc.org/libc/netdb | |
parent | 1b9877fda45be021ea6a5677c78648cecc19dcd5 (diff) | |
download | matterbridge-msglm-aefa70891cfd489fccb8a9567b5bdafb0f863ede.tar.gz matterbridge-msglm-aefa70891cfd489fccb8a9567b5bdafb0f863ede.tar.bz2 matterbridge-msglm-aefa70891cfd489fccb8a9567b5bdafb0f863ede.zip |
Update vendor (whatsapp)
Diffstat (limited to 'vendor/modernc.org/libc/netdb')
-rw-r--r-- | vendor/modernc.org/libc/netdb/capi_darwin_amd64.go | 4 | ||||
-rw-r--r-- | vendor/modernc.org/libc/netdb/capi_darwin_arm64.go | 8 | ||||
-rw-r--r-- | vendor/modernc.org/libc/netdb/netdb_darwin_amd64.go | 482 | ||||
-rw-r--r-- | vendor/modernc.org/libc/netdb/netdb_darwin_arm64.go | 484 |
4 files changed, 159 insertions, 819 deletions
diff --git a/vendor/modernc.org/libc/netdb/capi_darwin_amd64.go b/vendor/modernc.org/libc/netdb/capi_darwin_amd64.go index f064e68f..c6ed3501 100644 --- a/vendor/modernc.org/libc/netdb/capi_darwin_amd64.go +++ b/vendor/modernc.org/libc/netdb/capi_darwin_amd64.go @@ -3,5 +3,9 @@ package netdb var CAPI = map[string]struct{}{ + "__darwin_check_fd_set": {}, "__darwin_check_fd_set_overflow": {}, + "__darwin_fd_clr": {}, + "__darwin_fd_isset": {}, + "__darwin_fd_set": {}, } diff --git a/vendor/modernc.org/libc/netdb/capi_darwin_arm64.go b/vendor/modernc.org/libc/netdb/capi_darwin_arm64.go index 96c1abee..32d21c6d 100644 --- a/vendor/modernc.org/libc/netdb/capi_darwin_arm64.go +++ b/vendor/modernc.org/libc/netdb/capi_darwin_arm64.go @@ -2,4 +2,10 @@ package netdb -var CAPI = map[string]struct{}{} +var CAPI = map[string]struct{}{ + "__darwin_check_fd_set": {}, + "__darwin_check_fd_set_overflow": {}, + "__darwin_fd_clr": {}, + "__darwin_fd_isset": {}, + "__darwin_fd_set": {}, +} diff --git a/vendor/modernc.org/libc/netdb/netdb_darwin_amd64.go b/vendor/modernc.org/libc/netdb/netdb_darwin_amd64.go index 32f1ecca..af8adaab 100644 --- a/vendor/modernc.org/libc/netdb/netdb_darwin_amd64.go +++ b/vendor/modernc.org/libc/netdb/netdb_darwin_amd64.go @@ -667,7 +667,6 @@ const ( X_FORTIFY_SOURCE = 2 X_FSBLKCNT_T = 0 X_FSFILCNT_T = 0 - X_GCC_WRAP_STDINT_H = 0 X_GID_T = 0 X_I386__ENDIAN_H_ = 0 X_I386__PARAM_H_ = 0 @@ -678,7 +677,6 @@ const ( X_INT32_T = 0 X_INT64_T = 0 X_INT8_T = 0 - X_INTMAX_T = 0 X_INTPTR_T = 0 X_IN_ADDR_T = 0 X_IN_PORT_T = 0 @@ -721,7 +719,6 @@ const ( X_SOCKLEN_T = 0 X_SSIZE_T = 0 X_SS_MAXSIZE = 128 - X_STDINT_H_ = 0 X_STRUCT_IOVEC = 0 X_SUSECONDS_T = 0 X_SYS_SOCKET_H_ = 0 @@ -731,11 +728,6 @@ const ( X_SYS__TYPES_H_ = 0 X_TIME_T = 0 X_UID_T = 0 - X_UINT16_T = 0 - X_UINT32_T = 0 - X_UINT64_T = 0 - X_UINT8_T = 0 - X_UINTMAX_T = 0 X_UINTPTR_T = 0 X_USECONDS_T = 0 X_U_CHAR = 0 @@ -970,6 +962,13 @@ var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */ // 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. @@ -2072,420 +2071,87 @@ type User_off_t = Int64_t /* types.h:103:33 */ type Syscall_arg_t = U_int64_t /* types.h:111:33 */ type Socklen_t = X__darwin_socklen_t /* _socklen_t.h:31:33 */ +type Uint64_t = uint64 /* stdint.h:98:25 */ -// DO NOT EDIT THIS FILE. -// -// It has been auto-edited by fixincludes from: -// -// "/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdint.h" -// -// This had to be done to correct non-standard usages in the -// original, manufacturer supplied header file. - -// Copyright (c) 2000-2010 Apple Inc. -// All rights reserved. - -// from ISO/IEC 988:1999 spec - -// 7.18.1.1 Exact-width integer types -// Copyright (c) 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) 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) 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) 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) 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@ - -type Uint8_t = uint8 /* _uint8_t.h:31:23 */ -// Copyright (c) 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@ - -type Uint16_t = uint16 /* _uint16_t.h:31:24 */ -// Copyright (c) 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@ - -type Uint32_t = uint32 /* _uint32_t.h:31:22 */ -// Copyright (c) 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@ +type Int_least64_t = Int64_t /* stdint.h:110:25 */ +type Uint_least64_t = Uint64_t /* stdint.h:111:26 */ +type Int_fast64_t = Int64_t /* stdint.h:112:25 */ +type Uint_fast64_t = Uint64_t /* stdint.h:113:26 */ -type Uint64_t = uint64 /* _uint64_t.h:31:28 */ +type Uint32_t = uint32 /* stdint.h:172:25 */ -// 7.18.1.2 Minimum-width integer types -type Int_least8_t = Int8_t /* stdint.h:38:26 */ -type Int_least16_t = Int16_t /* stdint.h:39:25 */ -type Int_least32_t = Int32_t /* stdint.h:40:25 */ -type Int_least64_t = Int64_t /* stdint.h:41:25 */ -type Uint_least8_t = Uint8_t /* stdint.h:42:25 */ -type Uint_least16_t = Uint16_t /* stdint.h:43:24 */ -type Uint_least32_t = Uint32_t /* stdint.h:44:24 */ -type Uint_least64_t = Uint64_t /* stdint.h:45:24 */ +type Int_least32_t = Int32_t /* stdint.h:184:25 */ +type Uint_least32_t = Uint32_t /* stdint.h:185:26 */ +type Int_fast32_t = Int32_t /* stdint.h:186:25 */ +type Uint_fast32_t = Uint32_t /* stdint.h:187:26 */ +type Uint16_t = uint16 /* stdint.h:207:25 */ -// 7.18.1.3 Fastest-width integer types -type Int_fast8_t = Int8_t /* stdint.h:49:27 */ -type Int_fast16_t = Int16_t /* stdint.h:50:26 */ -type Int_fast32_t = Int32_t /* stdint.h:51:26 */ -type Int_fast64_t = Int64_t /* stdint.h:52:26 */ -type Uint_fast8_t = Uint8_t /* stdint.h:53:26 */ -type Uint_fast16_t = Uint16_t /* stdint.h:54:25 */ -type Uint_fast32_t = Uint32_t /* stdint.h:55:25 */ -type Uint_fast64_t = Uint64_t /* stdint.h:56:25 */ +type Int_least16_t = Int16_t /* stdint.h:215:25 */ +type Uint_least16_t = Uint16_t /* stdint.h:216:26 */ +type Int_fast16_t = Int16_t /* stdint.h:217:25 */ +type Uint_fast16_t = Uint16_t /* stdint.h:218:26 */ +type Uint8_t = uint8 /* stdint.h:226:24 */ -// 7.18.1.4 Integer types capable of holding object pointers +type Int_least8_t = Int8_t /* stdint.h:232:24 */ +type Uint_least8_t = Uint8_t /* stdint.h:233:25 */ +type Int_fast8_t = Int8_t /* stdint.h:234:24 */ +type Uint_fast8_t = Uint8_t /* stdint.h:235:25 */ -// Copyright (c) 2003-2007 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@ +// prevent glibc sys/types.h from defining conflicting types -// 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-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@ +// C99 7.18.1.4 Integer types capable of holding object pointers. -// 7.18.1.5 Greatest-width integer types -// Copyright (c) 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@ +// C99 7.18.1.5 Greatest-width integer types. +type Intmax_t = int64 /* stdint.h:262:26 */ +type Uintmax_t = uint64 /* stdint.h:263:26 */ -type Intmax_t = int64 /* _intmax_t.h:32:25 */ -// Copyright (c) 2012 Apple Inc. All rights reserved. +// C99 7.18.4 Macros for minimum-width integer constants. // -// @APPLE_OSREFERENCE_LICENSE_HEADER_START@ +// The standard requires that integer constant macros be defined for all the +// minimum-width types defined above. As 8-, 16-, 32-, and 64-bit minimum-width +// types are required, the corresponding integer constant macros are defined +// here. This implementation also defines minimum-width types for every other +// integer width that the target implements, so corresponding macros are +// defined below, too. // -// 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. +// These macros are defined using the same successive-shrinking approach as +// the type definitions above. It is likewise important that macros are defined +// in order of decending width. // -// 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@ +// Note that C++ should not check __STDC_CONSTANT_MACROS here, contrary to the +// claims of the C standard (see C++ 18.3.1p2, [cstdint.syn]). -type Uintmax_t = uint64 /* _uintmax_t.h:32:26 */ - -// 7.18.4 Macros for integer constants - -// 7.18.2 Limits of specified-width integer types: -// These #defines specify the minimum and maximum limits -// of each of the types declared above. +// C99 7.18.2.1 Limits of exact-width integer types. +// C99 7.18.2.2 Limits of minimum-width integer types. +// C99 7.18.2.3 Limits of fastest minimum-width integer types. // -// They must have "the same type as would an expression that is an -// object of the corresponding type converted according to the integer -// promotion". - -// 7.18.2.1 Limits of exact-width integer types - +// The presence of limit macros are completely optional in C99. This +// implementation defines limits for all of the types (exact- and +// minimum-width) that it defines above, using the limits of the minimum-width +// type for any types that do not have exact-width representations. // -// Note: the literal "most negative int" cannot be written in C -- -// the rules in the standard (section 6.4.4.1 in C99) will give it -// an unsigned type, so INT32_MIN (and the most negative member of -// any larger signed type) must be written via a constant expression. +// As in the type definitions, this section takes an approach of +// successive-shrinking to determine which limits to use for the standard (8, +// 16, 32, 64) bit widths when they don't have exact representations. It is +// therefore important that the definitions be kept in order of decending +// widths. // +// Note that C++ should not check __STDC_LIMIT_MACROS here, contrary to the +// claims of the C standard (see C++ 18.3.1p2, [cstdint.syn]). -// 7.18.2.2 Limits of minimum-width integer types +// Some utility macros -// 7.18.2.3 Limits of fastest minimum-width integer types +// C99 7.18.2.4 Limits of integer types capable of holding object pointers. +// C99 7.18.3 Limits of other integer types. -// 7.18.2.4 Limits of integer types capable of holding object pointers +// ISO9899:2011 7.20 (C11 Annex K): Define RSIZE_MAX if __STDC_WANT_LIB_EXT1__ +// is enabled. -// 7.18.2.5 Limits of greatest-width integer types +// C99 7.18.2.5 Limits of greatest-width integer types. -// 7.18.3 "Other" +// C99 7.18.3 Limits of other integer types. -// WCHAR_MIN should be 0 if wchar_t is an unsigned type and -// (-WCHAR_MAX-1) if wchar_t is a signed type. Unfortunately, -// it turns out that -fshort-wchar changes the signedness of -// the type. +// 7.18.4.2 Macros for greatest-width integer constants. // Copyright (c) 2000-2018 Apple Inc. All rights reserved. // @@ -2598,6 +2264,13 @@ type Uintmax_t = uint64 /* _uintmax_t.h:32:26 */ // // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ +//===---- stdint.h - Standard header for sized integer types --------------===* * +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +// \*===----------------------------------------------------------------------=== + // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. // // @APPLE_LICENSE_HEADER_START@ @@ -2725,15 +2398,6 @@ type Uintmax_t = uint64 /* _uintmax_t.h:32:26 */ // __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@ diff --git a/vendor/modernc.org/libc/netdb/netdb_darwin_arm64.go b/vendor/modernc.org/libc/netdb/netdb_darwin_arm64.go index 843dc223..c7eb6736 100644 --- a/vendor/modernc.org/libc/netdb/netdb_darwin_arm64.go +++ b/vendor/modernc.org/libc/netdb/netdb_darwin_arm64.go @@ -716,7 +716,6 @@ const ( X_FORTIFY_SOURCE = 2 X_FSBLKCNT_T = 0 X_FSFILCNT_T = 0 - X_GCC_WRAP_STDINT_H = 0 X_GID_T = 0 X_ID_T = 0 X_INO64_T = 0 @@ -725,7 +724,6 @@ const ( X_INT32_T = 0 X_INT64_T = 0 X_INT8_T = 0 - X_INTMAX_T = 0 X_INTPTR_T = 0 X_IN_ADDR_T = 0 X_IN_PORT_T = 0 @@ -768,7 +766,6 @@ const ( X_SOCKLEN_T = 0 X_SSIZE_T = 0 X_SS_MAXSIZE = 128 - X_STDINT_H_ = 0 X_STRUCT_IOVEC = 0 X_SUSECONDS_T = 0 X_SYS_SOCKET_H_ = 0 @@ -778,11 +775,6 @@ const ( X_SYS__TYPES_H_ = 0 X_TIME_T = 0 X_UID_T = 0 - X_UINT16_T = 0 - X_UINT32_T = 0 - X_UINT64_T = 0 - X_UINT8_T = 0 - X_UINTMAX_T = 0 X_UINTPTR_T = 0 X_USECONDS_T = 0 X_U_CHAR = 0 @@ -818,6 +810,8 @@ type X__uint128_t = struct { type X__builtin_va_list = uintptr /* <builtin>:46:14 */ type X__float128 = float64 /* <builtin>:47:21 */ +var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */ + // Copyright (c) 2000-2009 Apple Inc. All rights reserved. // // @APPLE_LICENSE_HEADER_START@ @@ -1015,6 +1009,13 @@ 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. +// 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). // @@ -2056,420 +2057,87 @@ type User_off_t = Int64_t /* types.h:83:33 */ type Syscall_arg_t = U_int64_t /* types.h:104:33 */ type Socklen_t = X__darwin_socklen_t /* _socklen_t.h:31:33 */ +type Uint64_t = uint64 /* stdint.h:98:25 */ -// DO NOT EDIT THIS FILE. -// -// It has been auto-edited by fixincludes from: -// -// "/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. +type Int_least64_t = Int64_t /* stdint.h:110:25 */ +type Uint_least64_t = Uint64_t /* stdint.h:111:26 */ +type Int_fast64_t = Int64_t /* stdint.h:112:25 */ +type Uint_fast64_t = Uint64_t /* stdint.h:113:26 */ -// Copyright (c) 2000-2010 Apple Inc. -// All rights reserved. +type Uint32_t = uint32 /* stdint.h:172:25 */ -// from ISO/IEC 988:1999 spec +type Int_least32_t = Int32_t /* stdint.h:184:25 */ +type Uint_least32_t = Uint32_t /* stdint.h:185:26 */ +type Int_fast32_t = Int32_t /* stdint.h:186:25 */ +type Uint_fast32_t = Uint32_t /* stdint.h:187:26 */ +type Uint16_t = uint16 /* stdint.h:207:25 */ -// 7.18.1.1 Exact-width integer types -// Copyright (c) 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) 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) 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) 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@ +type Int_least16_t = Int16_t /* stdint.h:215:25 */ +type Uint_least16_t = Uint16_t /* stdint.h:216:26 */ +type Int_fast16_t = Int16_t /* stdint.h:217:25 */ +type Uint_fast16_t = Uint16_t /* stdint.h:218:26 */ +type Uint8_t = uint8 /* stdint.h:226:24 */ -// Copyright (c) 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@ +type Int_least8_t = Int8_t /* stdint.h:232:24 */ +type Uint_least8_t = Uint8_t /* stdint.h:233:25 */ +type Int_fast8_t = Int8_t /* stdint.h:234:24 */ +type Uint_fast8_t = Uint8_t /* stdint.h:235:25 */ -type Uint8_t = uint8 /* _uint8_t.h:31:23 */ -// Copyright (c) 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@ +// prevent glibc sys/types.h from defining conflicting types -type Uint16_t = uint16 /* _uint16_t.h:31:24 */ -// Copyright (c) 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@ - -type Uint32_t = uint32 /* _uint32_t.h:31:22 */ -// Copyright (c) 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@ - -type Uint64_t = uint64 /* _uint64_t.h:31:28 */ - -// 7.18.1.2 Minimum-width integer types -type Int_least8_t = Int8_t /* stdint.h:38:26 */ -type Int_least16_t = Int16_t /* stdint.h:39:25 */ -type Int_least32_t = Int32_t /* stdint.h:40:25 */ -type Int_least64_t = Int64_t /* stdint.h:41:25 */ -type Uint_least8_t = Uint8_t /* stdint.h:42:25 */ -type Uint_least16_t = Uint16_t /* stdint.h:43:24 */ -type Uint_least32_t = Uint32_t /* stdint.h:44:24 */ -type Uint_least64_t = Uint64_t /* stdint.h:45:24 */ - -// 7.18.1.3 Fastest-width integer types -type Int_fast8_t = Int8_t /* stdint.h:49:27 */ -type Int_fast16_t = Int16_t /* stdint.h:50:26 */ -type Int_fast32_t = Int32_t /* stdint.h:51:26 */ -type Int_fast64_t = Int64_t /* stdint.h:52:26 */ -type Uint_fast8_t = Uint8_t /* stdint.h:53:26 */ -type Uint_fast16_t = Uint16_t /* stdint.h:54:25 */ -type Uint_fast32_t = Uint32_t /* stdint.h:55:25 */ -type Uint_fast64_t = Uint64_t /* stdint.h:56:25 */ - -// 7.18.1.4 Integer types capable of holding object pointers - -// Copyright (c) 2003-2007 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-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-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@ +// C99 7.18.1.4 Integer types capable of holding object pointers. -// 7.18.1.5 Greatest-width integer types -// Copyright (c) 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@ +// C99 7.18.1.5 Greatest-width integer types. +type Intmax_t = int64 /* stdint.h:262:26 */ +type Uintmax_t = uint64 /* stdint.h:263:26 */ -type Intmax_t = int64 /* _intmax_t.h:32:25 */ -// Copyright (c) 2012 Apple Inc. All rights reserved. +// C99 7.18.4 Macros for minimum-width integer constants. // -// @APPLE_OSREFERENCE_LICENSE_HEADER_START@ +// The standard requires that integer constant macros be defined for all the +// minimum-width types defined above. As 8-, 16-, 32-, and 64-bit minimum-width +// types are required, the corresponding integer constant macros are defined +// here. This implementation also defines minimum-width types for every other +// integer width that the target implements, so corresponding macros are +// defined below, too. // -// 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. +// These macros are defined using the same successive-shrinking approach as +// the type definitions above. It is likewise important that macros are defined +// in order of decending width. // -// 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@ +// Note that C++ should not check __STDC_CONSTANT_MACROS here, contrary to the +// claims of the C standard (see C++ 18.3.1p2, [cstdint.syn]). -type Uintmax_t = uint64 /* _uintmax_t.h:32:26 */ - -// 7.18.4 Macros for integer constants - -// 7.18.2 Limits of specified-width integer types: -// These #defines specify the minimum and maximum limits -// of each of the types declared above. +// C99 7.18.2.1 Limits of exact-width integer types. +// C99 7.18.2.2 Limits of minimum-width integer types. +// C99 7.18.2.3 Limits of fastest minimum-width integer types. // -// They must have "the same type as would an expression that is an -// object of the corresponding type converted according to the integer -// promotion". - -// 7.18.2.1 Limits of exact-width integer types - +// The presence of limit macros are completely optional in C99. This +// implementation defines limits for all of the types (exact- and +// minimum-width) that it defines above, using the limits of the minimum-width +// type for any types that do not have exact-width representations. // -// Note: the literal "most negative int" cannot be written in C -- -// the rules in the standard (section 6.4.4.1 in C99) will give it -// an unsigned type, so INT32_MIN (and the most negative member of -// any larger signed type) must be written via a constant expression. +// As in the type definitions, this section takes an approach of +// successive-shrinking to determine which limits to use for the standard (8, +// 16, 32, 64) bit widths when they don't have exact representations. It is +// therefore important that the definitions be kept in order of decending +// widths. // +// Note that C++ should not check __STDC_LIMIT_MACROS here, contrary to the +// claims of the C standard (see C++ 18.3.1p2, [cstdint.syn]). -// 7.18.2.2 Limits of minimum-width integer types +// Some utility macros -// 7.18.2.3 Limits of fastest minimum-width integer types +// C99 7.18.2.4 Limits of integer types capable of holding object pointers. +// C99 7.18.3 Limits of other integer types. -// 7.18.2.4 Limits of integer types capable of holding object pointers +// ISO9899:2011 7.20 (C11 Annex K): Define RSIZE_MAX if __STDC_WANT_LIB_EXT1__ +// is enabled. -// 7.18.2.5 Limits of greatest-width integer types +// C99 7.18.2.5 Limits of greatest-width integer types. -// 7.18.3 "Other" +// C99 7.18.3 Limits of other integer types. -// WCHAR_MIN should be 0 if wchar_t is an unsigned type and -// (-WCHAR_MAX-1) if wchar_t is a signed type. Unfortunately, -// it turns out that -fshort-wchar changes the signedness of -// the type. +// 7.18.4.2 Macros for greatest-width integer constants. // Copyright (c) 2000-2018 Apple Inc. All rights reserved. // @@ -2556,6 +2224,13 @@ type Uintmax_t = uint64 /* _uintmax_t.h:32:26 */ // // @APPLE_OSREFERENCE_LICENSE_HEADER_END@ +//===---- stdint.h - Standard header for sized integer types --------------===* * +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +// \*===----------------------------------------------------------------------=== + // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. // // @APPLE_LICENSE_HEADER_START@ @@ -2706,15 +2381,6 @@ type Uintmax_t = uint64 /* _uintmax_t.h:32:26 */ // Set up standard Mac OS X versions -// DO NOT EDIT THIS FILE. -// -// It has been auto-edited by fixincludes from: -// -// "/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. - // Copyright (c) 2007-2016 by Apple Inc.. All rights reserved. // // @APPLE_LICENSE_HEADER_START@ |