summaryrefslogtreecommitdiffstats
path: root/vendor/modernc.org/libc
diff options
context:
space:
mode:
authorWim <wim@42.be>2022-03-12 23:02:04 +0100
committerWim <wim@42.be>2022-03-20 14:57:48 +0100
commitaefa70891cfd489fccb8a9567b5bdafb0f863ede (patch)
tree90fe7c91d7b33b2a1ed08ea3a94840860adc6fc1 /vendor/modernc.org/libc
parent1b9877fda45be021ea6a5677c78648cecc19dcd5 (diff)
downloadmatterbridge-msglm-aefa70891cfd489fccb8a9567b5bdafb0f863ede.tar.gz
matterbridge-msglm-aefa70891cfd489fccb8a9567b5bdafb0f863ede.tar.bz2
matterbridge-msglm-aefa70891cfd489fccb8a9567b5bdafb0f863ede.zip
Update vendor (whatsapp)
Diffstat (limited to 'vendor/modernc.org/libc')
-rw-r--r--vendor/modernc.org/libc/AUTHORS1
-rw-r--r--vendor/modernc.org/libc/CONTRIBUTORS1
-rw-r--r--vendor/modernc.org/libc/capi_darwin_amd64.go1
-rw-r--r--vendor/modernc.org/libc/capi_darwin_arm64.go2
-rw-r--r--vendor/modernc.org/libc/capi_freebsd_amd64.go14
-rw-r--r--vendor/modernc.org/libc/capi_linux_386.go6
-rw-r--r--vendor/modernc.org/libc/capi_linux_amd64.go6
-rw-r--r--vendor/modernc.org/libc/capi_linux_arm.go6
-rw-r--r--vendor/modernc.org/libc/capi_linux_arm64.go6
-rw-r--r--vendor/modernc.org/libc/capi_linux_s390x.go6
-rw-r--r--vendor/modernc.org/libc/capi_netbsd_amd64.go14
-rw-r--r--vendor/modernc.org/libc/capi_openbsd_amd64.go7
-rw-r--r--vendor/modernc.org/libc/capi_windows_386.go4
-rw-r--r--vendor/modernc.org/libc/capi_windows_amd64.go4
-rw-r--r--vendor/modernc.org/libc/errno/capi_darwin_arm64.go4
-rw-r--r--vendor/modernc.org/libc/errno/capi_windows_386.go2
-rw-r--r--vendor/modernc.org/libc/errno/errno_darwin_amd64.go7
-rw-r--r--vendor/modernc.org/libc/errno/errno_darwin_arm64.go9
-rw-r--r--vendor/modernc.org/libc/errno/errno_windows_386.go61
-rw-r--r--vendor/modernc.org/libc/fcntl/capi_darwin_arm64.go4
-rw-r--r--vendor/modernc.org/libc/fcntl/capi_windows_386.go2
-rw-r--r--vendor/modernc.org/libc/fcntl/fcntl_darwin_amd64.go7
-rw-r--r--vendor/modernc.org/libc/fcntl/fcntl_darwin_arm64.go9
-rw-r--r--vendor/modernc.org/libc/fcntl/fcntl_windows_386.go61
-rw-r--r--vendor/modernc.org/libc/fts/capi_darwin_amd64.go4
-rw-r--r--vendor/modernc.org/libc/fts/capi_darwin_arm64.go8
-rw-r--r--vendor/modernc.org/libc/fts/fts_darwin_amd64.go28
-rw-r--r--vendor/modernc.org/libc/fts/fts_darwin_arm64.go776
-rw-r--r--vendor/modernc.org/libc/grp/capi_darwin_arm64.go4
-rw-r--r--vendor/modernc.org/libc/grp/grp_darwin_amd64.go7
-rw-r--r--vendor/modernc.org/libc/grp/grp_darwin_arm64.go9
-rw-r--r--vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go5
-rw-r--r--vendor/modernc.org/libc/langinfo/capi_darwin_arm64.go4
-rw-r--r--vendor/modernc.org/libc/langinfo/langinfo_darwin_amd64.go7
-rw-r--r--vendor/modernc.org/libc/langinfo/langinfo_darwin_arm64.go9
-rw-r--r--vendor/modernc.org/libc/libc.go4
-rw-r--r--vendor/modernc.org/libc/libc_openbsd.go28
-rw-r--r--vendor/modernc.org/libc/libc_openbsd_amd64.go2
-rw-r--r--vendor/modernc.org/libc/limits/capi_darwin_arm64.go4
-rw-r--r--vendor/modernc.org/libc/limits/capi_windows_386.go2
-rw-r--r--vendor/modernc.org/libc/limits/limits_windows_386.go65
-rw-r--r--vendor/modernc.org/libc/musl_darwin_amd64.go22
-rw-r--r--vendor/modernc.org/libc/musl_darwin_arm64.go24
-rw-r--r--vendor/modernc.org/libc/musl_freebsd_amd64.go67
-rw-r--r--vendor/modernc.org/libc/musl_linux_386.go22
-rw-r--r--vendor/modernc.org/libc/musl_linux_amd64.go22
-rw-r--r--vendor/modernc.org/libc/musl_linux_arm.go22
-rw-r--r--vendor/modernc.org/libc/musl_linux_arm64.go22
-rw-r--r--vendor/modernc.org/libc/musl_linux_s390x.go22
-rw-r--r--vendor/modernc.org/libc/musl_netbsd_amd64.go1842
-rw-r--r--vendor/modernc.org/libc/musl_openbsd_amd64.go51
-rw-r--r--vendor/modernc.org/libc/musl_windows_386.go36
-rw-r--r--vendor/modernc.org/libc/musl_windows_amd64.go22
-rw-r--r--vendor/modernc.org/libc/netdb/capi_darwin_amd64.go4
-rw-r--r--vendor/modernc.org/libc/netdb/capi_darwin_arm64.go8
-rw-r--r--vendor/modernc.org/libc/netdb/netdb_darwin_amd64.go482
-rw-r--r--vendor/modernc.org/libc/netdb/netdb_darwin_arm64.go484
-rw-r--r--vendor/modernc.org/libc/netinet/in/capi_darwin_amd64.go4
-rw-r--r--vendor/modernc.org/libc/netinet/in/capi_darwin_arm64.go8
-rw-r--r--vendor/modernc.org/libc/netinet/in/in_darwin_amd64.go1026
-rw-r--r--vendor/modernc.org/libc/netinet/in/in_darwin_arm64.go1728
-rw-r--r--vendor/modernc.org/libc/poll/capi_darwin_arm64.go4
-rw-r--r--vendor/modernc.org/libc/poll/poll_darwin_arm64.go2
-rw-r--r--vendor/modernc.org/libc/pthread/capi_darwin_arm64.go4
-rw-r--r--vendor/modernc.org/libc/pthread/capi_windows_386.go2
-rw-r--r--vendor/modernc.org/libc/pthread/pthread_darwin_amd64.go16
-rw-r--r--vendor/modernc.org/libc/pthread/pthread_darwin_arm64.go18
-rw-r--r--vendor/modernc.org/libc/pthread/pthread_windows_386.go112
-rw-r--r--vendor/modernc.org/libc/pwd/capi_darwin_arm64.go4
-rw-r--r--vendor/modernc.org/libc/pwd/pwd_darwin_amd64.go7
-rw-r--r--vendor/modernc.org/libc/pwd/pwd_darwin_arm64.go9
-rw-r--r--vendor/modernc.org/libc/signal/capi_darwin_amd64.go1
-rw-r--r--vendor/modernc.org/libc/signal/capi_darwin_arm64.go5
-rw-r--r--vendor/modernc.org/libc/signal/capi_windows_386.go2
-rw-r--r--vendor/modernc.org/libc/signal/signal_darwin_amd64.go16
-rw-r--r--vendor/modernc.org/libc/signal/signal_darwin_arm64.go18
-rw-r--r--vendor/modernc.org/libc/signal/signal_windows_386.go61
-rw-r--r--vendor/modernc.org/libc/stdio/capi_darwin_arm64.go4
-rw-r--r--vendor/modernc.org/libc/stdio/capi_windows_386.go2
-rw-r--r--vendor/modernc.org/libc/stdio/stdio_darwin_amd64.go58
-rw-r--r--vendor/modernc.org/libc/stdio/stdio_darwin_arm64.go58
-rw-r--r--vendor/modernc.org/libc/stdio/stdio_windows_386.go356
-rw-r--r--vendor/modernc.org/libc/stdlib/capi_darwin_arm64.go4
-rw-r--r--vendor/modernc.org/libc/stdlib/capi_windows_386.go2
-rw-r--r--vendor/modernc.org/libc/stdlib/stdlib_darwin_amd64.go646
-rw-r--r--vendor/modernc.org/libc/stdlib/stdlib_darwin_arm64.go648
-rw-r--r--vendor/modernc.org/libc/stdlib/stdlib_windows_386.go94
-rw-r--r--vendor/modernc.org/libc/sys/socket/capi_darwin_amd64.go4
-rw-r--r--vendor/modernc.org/libc/sys/socket/capi_darwin_arm64.go8
-rw-r--r--vendor/modernc.org/libc/sys/socket/socket_darwin_amd64.go25
-rw-r--r--vendor/modernc.org/libc/sys/socket/socket_darwin_arm64.go773
-rw-r--r--vendor/modernc.org/libc/sys/stat/capi_darwin_arm64.go4
-rw-r--r--vendor/modernc.org/libc/sys/stat/capi_windows_386.go2
-rw-r--r--vendor/modernc.org/libc/sys/stat/stat_darwin_amd64.go16
-rw-r--r--vendor/modernc.org/libc/sys/stat/stat_darwin_arm64.go18
-rw-r--r--vendor/modernc.org/libc/sys/stat/stat_windows_386.go73
-rw-r--r--vendor/modernc.org/libc/sys/types/capi_darwin_amd64.go4
-rw-r--r--vendor/modernc.org/libc/sys/types/capi_darwin_arm64.go8
-rw-r--r--vendor/modernc.org/libc/sys/types/capi_windows_386.go2
-rw-r--r--vendor/modernc.org/libc/sys/types/types_darwin_amd64.go25
-rw-r--r--vendor/modernc.org/libc/sys/types/types_darwin_arm64.go773
-rw-r--r--vendor/modernc.org/libc/sys/types/types_windows_386.go61
-rw-r--r--vendor/modernc.org/libc/termios/capi_darwin_arm64.go4
-rw-r--r--vendor/modernc.org/libc/termios/termios_darwin_amd64.go7
-rw-r--r--vendor/modernc.org/libc/termios/termios_darwin_arm64.go9
-rw-r--r--vendor/modernc.org/libc/time/capi_darwin_arm64.go4
-rw-r--r--vendor/modernc.org/libc/time/capi_windows_386.go2
-rw-r--r--vendor/modernc.org/libc/time/time_darwin_amd64.go16
-rw-r--r--vendor/modernc.org/libc/time/time_darwin_arm64.go18
-rw-r--r--vendor/modernc.org/libc/time/time_windows_386.go74
-rw-r--r--vendor/modernc.org/libc/unistd/capi_darwin_amd64.go4
-rw-r--r--vendor/modernc.org/libc/unistd/capi_darwin_arm64.go8
-rw-r--r--vendor/modernc.org/libc/unistd/capi_windows_386.go2
-rw-r--r--vendor/modernc.org/libc/unistd/unistd_darwin_amd64.go7
-rw-r--r--vendor/modernc.org/libc/unistd/unistd_darwin_arm64.go9
-rw-r--r--vendor/modernc.org/libc/unistd/unistd_windows_386.go84
-rw-r--r--vendor/modernc.org/libc/utime/capi_darwin_arm64.go4
-rw-r--r--vendor/modernc.org/libc/utime/capi_windows_386.go2
-rw-r--r--vendor/modernc.org/libc/utime/utime_darwin_amd64.go7
-rw-r--r--vendor/modernc.org/libc/utime/utime_darwin_arm64.go9
-rw-r--r--vendor/modernc.org/libc/utime/utime_windows_386.go61
-rw-r--r--vendor/modernc.org/libc/uuid/uuid/capi_darwin_arm64.go4
-rw-r--r--vendor/modernc.org/libc/uuid/uuid/uuid_darwin_amd64.go7
-rw-r--r--vendor/modernc.org/libc/uuid/uuid/uuid_darwin_arm64.go9
-rw-r--r--vendor/modernc.org/libc/wctype/capi_darwin_amd64.go48
-rw-r--r--vendor/modernc.org/libc/wctype/capi_darwin_arm64.go52
-rw-r--r--vendor/modernc.org/libc/wctype/capi_windows_386.go2
-rw-r--r--vendor/modernc.org/libc/wctype/wctype_darwin_amd64.go7
-rw-r--r--vendor/modernc.org/libc/wctype/wctype_darwin_arm64.go9
-rw-r--r--vendor/modernc.org/libc/wctype/wctype_windows_386.go61
130 files changed, 3452 insertions, 8155 deletions
diff --git a/vendor/modernc.org/libc/AUTHORS b/vendor/modernc.org/libc/AUTHORS
index 932a584e..bba82908 100644
--- a/vendor/modernc.org/libc/AUTHORS
+++ b/vendor/modernc.org/libc/AUTHORS
@@ -13,4 +13,5 @@ Dan Peterson <danp@danp.net>
Jan Mercl <0xjnml@gmail.com>
Jason DeBettencourt <jasond17@gmail.com>
Koichi Shiraishi <zchee.io@gmail.com>
+Marius Orcsik <marius@federated.id>
Steffen Butzer <steffen(dot)butzer@outlook.com>
diff --git a/vendor/modernc.org/libc/CONTRIBUTORS b/vendor/modernc.org/libc/CONTRIBUTORS
index 9efa6ea6..65a90f50 100644
--- a/vendor/modernc.org/libc/CONTRIBUTORS
+++ b/vendor/modernc.org/libc/CONTRIBUTORS
@@ -12,4 +12,5 @@ Jaap Aarts <jaap.aarts1@gmail.com>
Jan Mercl <0xjnml@gmail.com>
Jason DeBettencourt <jasond17@gmail.com>
Koichi Shiraishi <zchee.io@gmail.com>
+Marius Orcsik <marius@federated.id>
Steffen Butzer <steffen(dot)butzer@outlook.com>
diff --git a/vendor/modernc.org/libc/capi_darwin_amd64.go b/vendor/modernc.org/libc/capi_darwin_amd64.go
index 151491e8..1a46043c 100644
--- a/vendor/modernc.org/libc/capi_darwin_amd64.go
+++ b/vendor/modernc.org/libc/capi_darwin_amd64.go
@@ -153,6 +153,7 @@ var CAPI = map[string]struct{}{
"atoi": {},
"atol": {},
"bind": {},
+ "bsearch": {},
"bzero": {},
"calloc": {},
"ceil": {},
diff --git a/vendor/modernc.org/libc/capi_darwin_arm64.go b/vendor/modernc.org/libc/capi_darwin_arm64.go
index 8506c12c..1a46043c 100644
--- a/vendor/modernc.org/libc/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/capi_darwin_arm64.go
@@ -82,6 +82,7 @@ var CAPI = map[string]struct{}{
"__ccgo_sqlite3_log": {},
"__cmsg_nxthdr": {},
"__ctype_get_mb_cur_max": {},
+ "__darwin_check_fd_set_overflow": {},
"__darwin_fd_clr": {},
"__darwin_fd_isset": {},
"__darwin_fd_set": {},
@@ -152,6 +153,7 @@ var CAPI = map[string]struct{}{
"atoi": {},
"atol": {},
"bind": {},
+ "bsearch": {},
"bzero": {},
"calloc": {},
"ceil": {},
diff --git a/vendor/modernc.org/libc/capi_freebsd_amd64.go b/vendor/modernc.org/libc/capi_freebsd_amd64.go
index b3fdd2cc..be90d546 100644
--- a/vendor/modernc.org/libc/capi_freebsd_amd64.go
+++ b/vendor/modernc.org/libc/capi_freebsd_amd64.go
@@ -39,6 +39,8 @@ var CAPI = map[string]struct{}{
"__builtin_exit": {},
"__builtin_expect": {},
"__builtin_fabs": {},
+ "__builtin_fabsf": {},
+ "__builtin_fabsl": {},
"__builtin_free": {},
"__builtin_getentropy": {},
"__builtin_huge_val": {},
@@ -47,6 +49,7 @@ var CAPI = map[string]struct{}{
"__builtin_inff": {},
"__builtin_infl": {},
"__builtin_isnan": {},
+ "__builtin_isunordered": {},
"__builtin_malloc": {},
"__builtin_memcmp": {},
"__builtin_memcpy": {},
@@ -90,11 +93,16 @@ var CAPI = map[string]struct{}{
"__isalnum_l": {},
"__isalpha_l": {},
"__isdigit_l": {},
+ "__islower_l": {},
"__isnan": {},
"__isnanf": {},
"__isnanl": {},
"__isoc99_sscanf": {},
+ "__isprint_l": {},
+ "__isspace_l": {},
"__isthreaded": {},
+ "__isupper_l": {},
+ "__isxdigit_l": {},
"__lookup_ipliteral": {},
"__lookup_name": {},
"__lookup_serv": {},
@@ -139,6 +147,7 @@ var CAPI = map[string]struct{}{
"backtrace": {},
"backtrace_symbols_fd": {},
"bind": {},
+ "bsearch": {},
"bzero": {},
"calloc": {},
"ceil": {},
@@ -266,9 +275,14 @@ var CAPI = map[string]struct{}{
"isascii": {},
"isatty": {},
"isdigit": {},
+ "islower": {},
"isnan": {},
"isnanf": {},
"isnanl": {},
+ "isprint": {},
+ "isspace": {},
+ "isupper": {},
+ "isxdigit": {},
"kill": {},
"ldexp": {},
"link": {},
diff --git a/vendor/modernc.org/libc/capi_linux_386.go b/vendor/modernc.org/libc/capi_linux_386.go
index 960ead92..79a194dd 100644
--- a/vendor/modernc.org/libc/capi_linux_386.go
+++ b/vendor/modernc.org/libc/capi_linux_386.go
@@ -34,6 +34,8 @@ var CAPI = map[string]struct{}{
"__builtin_exit": {},
"__builtin_expect": {},
"__builtin_fabs": {},
+ "__builtin_fabsf": {},
+ "__builtin_fabsl": {},
"__builtin_free": {},
"__builtin_getentropy": {},
"__builtin_huge_val": {},
@@ -42,6 +44,7 @@ var CAPI = map[string]struct{}{
"__builtin_inff": {},
"__builtin_infl": {},
"__builtin_isnan": {},
+ "__builtin_isunordered": {},
"__builtin_malloc": {},
"__builtin_memcmp": {},
"__builtin_memcpy": {},
@@ -136,6 +139,7 @@ var CAPI = map[string]struct{}{
"backtrace": {},
"backtrace_symbols_fd": {},
"bind": {},
+ "bsearch": {},
"bzero": {},
"calloc": {},
"ceil": {},
@@ -258,6 +262,7 @@ var CAPI = map[string]struct{}{
"inet_ntoa": {},
"inet_ntop": {},
"inet_pton": {},
+ "initstate": {},
"initstate_r": {},
"ioctl": {},
"isalnum": {},
@@ -405,6 +410,7 @@ var CAPI = map[string]struct{}{
"setrlimit64": {},
"setsid": {},
"setsockopt": {},
+ "setstate": {},
"setvbuf": {},
"shmat": {},
"shmctl": {},
diff --git a/vendor/modernc.org/libc/capi_linux_amd64.go b/vendor/modernc.org/libc/capi_linux_amd64.go
index 4c3bc489..b6f3b2a0 100644
--- a/vendor/modernc.org/libc/capi_linux_amd64.go
+++ b/vendor/modernc.org/libc/capi_linux_amd64.go
@@ -34,6 +34,8 @@ var CAPI = map[string]struct{}{
"__builtin_exit": {},
"__builtin_expect": {},
"__builtin_fabs": {},
+ "__builtin_fabsf": {},
+ "__builtin_fabsl": {},
"__builtin_free": {},
"__builtin_getentropy": {},
"__builtin_huge_val": {},
@@ -42,6 +44,7 @@ var CAPI = map[string]struct{}{
"__builtin_inff": {},
"__builtin_infl": {},
"__builtin_isnan": {},
+ "__builtin_isunordered": {},
"__builtin_malloc": {},
"__builtin_memcmp": {},
"__builtin_memcpy": {},
@@ -136,6 +139,7 @@ var CAPI = map[string]struct{}{
"backtrace": {},
"backtrace_symbols_fd": {},
"bind": {},
+ "bsearch": {},
"bzero": {},
"calloc": {},
"ceil": {},
@@ -258,6 +262,7 @@ var CAPI = map[string]struct{}{
"inet_ntoa": {},
"inet_ntop": {},
"inet_pton": {},
+ "initstate": {},
"initstate_r": {},
"ioctl": {},
"isalnum": {},
@@ -407,6 +412,7 @@ var CAPI = map[string]struct{}{
"setrlimit64": {},
"setsid": {},
"setsockopt": {},
+ "setstate": {},
"setvbuf": {},
"shmat": {},
"shmctl": {},
diff --git a/vendor/modernc.org/libc/capi_linux_arm.go b/vendor/modernc.org/libc/capi_linux_arm.go
index 960ead92..79a194dd 100644
--- a/vendor/modernc.org/libc/capi_linux_arm.go
+++ b/vendor/modernc.org/libc/capi_linux_arm.go
@@ -34,6 +34,8 @@ var CAPI = map[string]struct{}{
"__builtin_exit": {},
"__builtin_expect": {},
"__builtin_fabs": {},
+ "__builtin_fabsf": {},
+ "__builtin_fabsl": {},
"__builtin_free": {},
"__builtin_getentropy": {},
"__builtin_huge_val": {},
@@ -42,6 +44,7 @@ var CAPI = map[string]struct{}{
"__builtin_inff": {},
"__builtin_infl": {},
"__builtin_isnan": {},
+ "__builtin_isunordered": {},
"__builtin_malloc": {},
"__builtin_memcmp": {},
"__builtin_memcpy": {},
@@ -136,6 +139,7 @@ var CAPI = map[string]struct{}{
"backtrace": {},
"backtrace_symbols_fd": {},
"bind": {},
+ "bsearch": {},
"bzero": {},
"calloc": {},
"ceil": {},
@@ -258,6 +262,7 @@ var CAPI = map[string]struct{}{
"inet_ntoa": {},
"inet_ntop": {},
"inet_pton": {},
+ "initstate": {},
"initstate_r": {},
"ioctl": {},
"isalnum": {},
@@ -405,6 +410,7 @@ var CAPI = map[string]struct{}{
"setrlimit64": {},
"setsid": {},
"setsockopt": {},
+ "setstate": {},
"setvbuf": {},
"shmat": {},
"shmctl": {},
diff --git a/vendor/modernc.org/libc/capi_linux_arm64.go b/vendor/modernc.org/libc/capi_linux_arm64.go
index 960ead92..79a194dd 100644
--- a/vendor/modernc.org/libc/capi_linux_arm64.go
+++ b/vendor/modernc.org/libc/capi_linux_arm64.go
@@ -34,6 +34,8 @@ var CAPI = map[string]struct{}{
"__builtin_exit": {},
"__builtin_expect": {},
"__builtin_fabs": {},
+ "__builtin_fabsf": {},
+ "__builtin_fabsl": {},
"__builtin_free": {},
"__builtin_getentropy": {},
"__builtin_huge_val": {},
@@ -42,6 +44,7 @@ var CAPI = map[string]struct{}{
"__builtin_inff": {},
"__builtin_infl": {},
"__builtin_isnan": {},
+ "__builtin_isunordered": {},
"__builtin_malloc": {},
"__builtin_memcmp": {},
"__builtin_memcpy": {},
@@ -136,6 +139,7 @@ var CAPI = map[string]struct{}{
"backtrace": {},
"backtrace_symbols_fd": {},
"bind": {},
+ "bsearch": {},
"bzero": {},
"calloc": {},
"ceil": {},
@@ -258,6 +262,7 @@ var CAPI = map[string]struct{}{
"inet_ntoa": {},
"inet_ntop": {},
"inet_pton": {},
+ "initstate": {},
"initstate_r": {},
"ioctl": {},
"isalnum": {},
@@ -405,6 +410,7 @@ var CAPI = map[string]struct{}{
"setrlimit64": {},
"setsid": {},
"setsockopt": {},
+ "setstate": {},
"setvbuf": {},
"shmat": {},
"shmctl": {},
diff --git a/vendor/modernc.org/libc/capi_linux_s390x.go b/vendor/modernc.org/libc/capi_linux_s390x.go
index 960ead92..79a194dd 100644
--- a/vendor/modernc.org/libc/capi_linux_s390x.go
+++ b/vendor/modernc.org/libc/capi_linux_s390x.go
@@ -34,6 +34,8 @@ var CAPI = map[string]struct{}{
"__builtin_exit": {},
"__builtin_expect": {},
"__builtin_fabs": {},
+ "__builtin_fabsf": {},
+ "__builtin_fabsl": {},
"__builtin_free": {},
"__builtin_getentropy": {},
"__builtin_huge_val": {},
@@ -42,6 +44,7 @@ var CAPI = map[string]struct{}{
"__builtin_inff": {},
"__builtin_infl": {},
"__builtin_isnan": {},
+ "__builtin_isunordered": {},
"__builtin_malloc": {},
"__builtin_memcmp": {},
"__builtin_memcpy": {},
@@ -136,6 +139,7 @@ var CAPI = map[string]struct{}{
"backtrace": {},
"backtrace_symbols_fd": {},
"bind": {},
+ "bsearch": {},
"bzero": {},
"calloc": {},
"ceil": {},
@@ -258,6 +262,7 @@ var CAPI = map[string]struct{}{
"inet_ntoa": {},
"inet_ntop": {},
"inet_pton": {},
+ "initstate": {},
"initstate_r": {},
"ioctl": {},
"isalnum": {},
@@ -405,6 +410,7 @@ var CAPI = map[string]struct{}{
"setrlimit64": {},
"setsid": {},
"setsockopt": {},
+ "setstate": {},
"setvbuf": {},
"shmat": {},
"shmctl": {},
diff --git a/vendor/modernc.org/libc/capi_netbsd_amd64.go b/vendor/modernc.org/libc/capi_netbsd_amd64.go
index 45d41d2d..c71e72bd 100644
--- a/vendor/modernc.org/libc/capi_netbsd_amd64.go
+++ b/vendor/modernc.org/libc/capi_netbsd_amd64.go
@@ -39,6 +39,8 @@ var CAPI = map[string]struct{}{
"__builtin_exit": {},
"__builtin_expect": {},
"__builtin_fabs": {},
+ "__builtin_fabsf": {},
+ "__builtin_fabsl": {},
"__builtin_free": {},
"__builtin_getentropy": {},
"__builtin_huge_val": {},
@@ -47,6 +49,7 @@ var CAPI = map[string]struct{}{
"__builtin_inff": {},
"__builtin_infl": {},
"__builtin_isnan": {},
+ "__builtin_isunordered": {},
"__builtin_malloc": {},
"__builtin_memcmp": {},
"__builtin_memcpy": {},
@@ -110,7 +113,6 @@ var CAPI = map[string]struct{}{
"__swbuf": {},
"__sync_add_and_fetch_uint32": {},
"__sync_sub_and_fetch_uint32": {},
- "__sync_synchronize": {},
"__syscall1": {},
"__syscall3": {},
"__syscall4": {},
@@ -145,6 +147,7 @@ var CAPI = map[string]struct{}{
"backtrace": {},
"backtrace_symbols_fd": {},
"bind": {},
+ "bsearch": {},
"bzero": {},
"calloc": {},
"ceil": {},
@@ -264,6 +267,8 @@ var CAPI = map[string]struct{}{
"inet_ntoa": {},
"inet_ntop": {},
"inet_pton": {},
+ "initstate": {},
+ "initstate_r": {},
"ioctl": {},
"isalnum": {},
"isalpha": {},
@@ -299,6 +304,7 @@ var CAPI = map[string]struct{}{
"mkdir": {},
"mkfifo": {},
"mknod": {},
+ "mkostemp": {},
"mkstemp": {},
"mkstemp64": {},
"mkstemps": {},
@@ -362,6 +368,7 @@ var CAPI = map[string]struct{}{
"raise": {},
"rand": {},
"random": {},
+ "random_r": {},
"read": {},
"readdir": {},
"readdir64": {},
@@ -395,6 +402,7 @@ var CAPI = map[string]struct{}{
"setrlimit64": {},
"setsid": {},
"setsockopt": {},
+ "setstate": {},
"setvbuf": {},
"shmat": {},
"shmctl": {},
@@ -425,6 +433,7 @@ var CAPI = map[string]struct{}{
"strcspn": {},
"strdup": {},
"strerror": {},
+ "strerror_r": {},
"strlen": {},
"strncmp": {},
"strncpy": {},
@@ -464,6 +473,9 @@ var CAPI = map[string]struct{}{
"usleep": {},
"utime": {},
"utimes": {},
+ "uuid_generate_random": {},
+ "uuid_parse": {},
+ "uuid_unparse": {},
"vasprintf": {},
"vfprintf": {},
"vprintf": {},
diff --git a/vendor/modernc.org/libc/capi_openbsd_amd64.go b/vendor/modernc.org/libc/capi_openbsd_amd64.go
index ca507390..00e93a20 100644
--- a/vendor/modernc.org/libc/capi_openbsd_amd64.go
+++ b/vendor/modernc.org/libc/capi_openbsd_amd64.go
@@ -96,6 +96,7 @@ var CAPI = map[string]struct{}{
"__isalnum_l": {},
"__isalpha_l": {},
"__isdigit_l": {},
+ "__islower_l": {},
"__isnan": {},
"__isnanf": {},
"__isnanl": {},
@@ -103,6 +104,8 @@ var CAPI = map[string]struct{}{
"__isprint_l": {},
"__isspace_l": {},
"__isthreaded": {},
+ "__isupper_l": {},
+ "__isxdigit_l": {},
"__lookup_ipliteral": {},
"__lookup_name": {},
"__lookup_serv": {},
@@ -151,6 +154,7 @@ var CAPI = map[string]struct{}{
"backtrace": {},
"backtrace_symbols_fd": {},
"bind": {},
+ "bsearch": {},
"bzero": {},
"calloc": {},
"ceil": {},
@@ -279,11 +283,14 @@ var CAPI = map[string]struct{}{
"isascii": {},
"isatty": {},
"isdigit": {},
+ "islower": {},
"isnan": {},
"isnanf": {},
"isnanl": {},
"isprint": {},
"isspace": {},
+ "isupper": {},
+ "isxdigit": {},
"kill": {},
"ldexp": {},
"link": {},
diff --git a/vendor/modernc.org/libc/capi_windows_386.go b/vendor/modernc.org/libc/capi_windows_386.go
index aa3a369c..34da9668 100644
--- a/vendor/modernc.org/libc/capi_windows_386.go
+++ b/vendor/modernc.org/libc/capi_windows_386.go
@@ -284,6 +284,8 @@ var CAPI = map[string]struct{}{
"__builtin_exit": {},
"__builtin_expect": {},
"__builtin_fabs": {},
+ "__builtin_fabsf": {},
+ "__builtin_fabsl": {},
"__builtin_free": {},
"__builtin_getentropy": {},
"__builtin_huge_val": {},
@@ -292,6 +294,7 @@ var CAPI = map[string]struct{}{
"__builtin_inff": {},
"__builtin_infl": {},
"__builtin_isnan": {},
+ "__builtin_isunordered": {},
"__builtin_malloc": {},
"__builtin_memcmp": {},
"__builtin_memcpy": {},
@@ -440,6 +443,7 @@ var CAPI = map[string]struct{}{
"backtrace": {},
"backtrace_symbols_fd": {},
"bind": {},
+ "bsearch": {},
"bzero": {},
"calloc": {},
"ceil": {},
diff --git a/vendor/modernc.org/libc/capi_windows_amd64.go b/vendor/modernc.org/libc/capi_windows_amd64.go
index 49fc12f2..e8906789 100644
--- a/vendor/modernc.org/libc/capi_windows_amd64.go
+++ b/vendor/modernc.org/libc/capi_windows_amd64.go
@@ -282,6 +282,8 @@ var CAPI = map[string]struct{}{
"__builtin_exit": {},
"__builtin_expect": {},
"__builtin_fabs": {},
+ "__builtin_fabsf": {},
+ "__builtin_fabsl": {},
"__builtin_free": {},
"__builtin_getentropy": {},
"__builtin_huge_val": {},
@@ -290,6 +292,7 @@ var CAPI = map[string]struct{}{
"__builtin_inff": {},
"__builtin_infl": {},
"__builtin_isnan": {},
+ "__builtin_isunordered": {},
"__builtin_malloc": {},
"__builtin_memcmp": {},
"__builtin_memcpy": {},
@@ -436,6 +439,7 @@ var CAPI = map[string]struct{}{
"backtrace": {},
"backtrace_symbols_fd": {},
"bind": {},
+ "bsearch": {},
"bzero": {},
"calloc": {},
"ceil": {},
diff --git a/vendor/modernc.org/libc/errno/capi_darwin_arm64.go b/vendor/modernc.org/libc/errno/capi_darwin_arm64.go
index 21541fdd..e5d901d0 100644
--- a/vendor/modernc.org/libc/errno/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/errno/capi_darwin_arm64.go
@@ -2,4 +2,6 @@
package errno
-var CAPI = map[string]struct{}{}
+var CAPI = map[string]struct{}{
+ "__darwin_check_fd_set_overflow": {},
+}
diff --git a/vendor/modernc.org/libc/errno/capi_windows_386.go b/vendor/modernc.org/libc/errno/capi_windows_386.go
index 076978ea..bf235022 100644
--- a/vendor/modernc.org/libc/errno/capi_windows_386.go
+++ b/vendor/modernc.org/libc/errno/capi_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo errno/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 errno/errno_windows_386.go -pkgname errno', DO NOT EDIT.
+// Code generated by 'ccgo errno\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 errno\errno_windows_386.go -pkgname errno', DO NOT EDIT.
package errno
diff --git a/vendor/modernc.org/libc/errno/errno_darwin_amd64.go b/vendor/modernc.org/libc/errno/errno_darwin_amd64.go
index a0c77820..5b6df9d9 100644
--- a/vendor/modernc.org/libc/errno/errno_darwin_amd64.go
+++ b/vendor/modernc.org/libc/errno/errno_darwin_amd64.go
@@ -314,6 +314,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.
diff --git a/vendor/modernc.org/libc/errno/errno_darwin_arm64.go b/vendor/modernc.org/libc/errno/errno_darwin_arm64.go
index 5a15581d..0d9afe8a 100644
--- a/vendor/modernc.org/libc/errno/errno_darwin_arm64.go
+++ b/vendor/modernc.org/libc/errno/errno_darwin_arm64.go
@@ -156,6 +156,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 Apple Computer, Inc. All rights reserved.
//
// @APPLE_LICENSE_HEADER_START@
@@ -314,6 +316,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).
//
diff --git a/vendor/modernc.org/libc/errno/errno_windows_386.go b/vendor/modernc.org/libc/errno/errno_windows_386.go
index 4f0dfbe5..54c4a0c1 100644
--- a/vendor/modernc.org/libc/errno/errno_windows_386.go
+++ b/vendor/modernc.org/libc/errno/errno_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo errno/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 errno/errno_windows_386.go -pkgname errno', DO NOT EDIT.
+// Code generated by 'ccgo errno\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 errno\errno_windows_386.go -pkgname errno', DO NOT EDIT.
package errno
@@ -112,7 +112,9 @@ const (
EWOULDBLOCK = 140
EXDEV = 18
MINGW_DDK_H = 0
+ MINGW_DDRAW_VERSION = 7
MINGW_HAS_DDK_H = 1
+ MINGW_HAS_DDRAW_H = 1
MINGW_HAS_SECURE_API = 1
MINGW_SDK_INIT = 0
STRUNCATE = 80
@@ -136,12 +138,9 @@ const (
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
- X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0
X_DLL = 0
X_ERRCODE_DEFINED = 0
X_FILE_OFFSET_BITS = 64
- X_ILP32 = 1
- X_INC_CORECRT = 0
X_INC_CRTDEFS = 0
X_INC_CRTDEFS_MACRO = 0
X_INC_ERRNO = 0
@@ -156,6 +155,7 @@ const (
X_PGLOBAL = 0
X_PTRDIFF_T_ = 0
X_PTRDIFF_T_DEFINED = 0
+ X_REENTRANT = 1
X_RSIZE_T_DEFINED = 0
X_SECURECRT_ERRCODE_VALUES_DEFINED = 0
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
@@ -210,11 +210,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// *
-// This file has no copyright assigned and is placed in the Public Domain.
-// This file is part of the mingw-w64 runtime package.
-// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-
// This macro holds an monotonic increasing value, which indicates
// a specific fix/patch is present on trunk. This value isn't related to
// minor/major version-macros. It is increased on demand, if a big
@@ -235,12 +230,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// MinGW-w64 has some additional C99 printf/scanf feature support.
// So we add some helper macros to ease recognition of them.
-// If _FORTIFY_SOURCE is enabled, some inline functions may use
-// __builtin_va_arg_pack(). GCC may report an error if the address
-// of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
-
-// Enable workaround for ABI incompatibility on affected platforms
-
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
@@ -281,28 +270,26 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// for backward compatibility
-
type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
-type Ssize_t = int32 /* corecrt.h:52:13 */
+type Ssize_t = int32 /* crtdefs.h:47:13 */
-type Rsize_t = Size_t /* corecrt.h:57:16 */
+type Rsize_t = Size_t /* crtdefs.h:52:16 */
-type Intptr_t = int32 /* corecrt.h:69:13 */
+type Intptr_t = int32 /* crtdefs.h:64:13 */
-type Uintptr_t = uint32 /* corecrt.h:82:22 */
+type Uintptr_t = uint32 /* crtdefs.h:77:22 */
-type Wint_t = uint16 /* corecrt.h:111:24 */
-type Wctype_t = uint16 /* corecrt.h:112:24 */
+type Wint_t = uint16 /* crtdefs.h:106:24 */
+type Wctype_t = uint16 /* crtdefs.h:107:24 */
-type Errno_t = int32 /* corecrt.h:118:13 */
+type Errno_t = int32 /* crtdefs.h:113:13 */
-type X__time32_t = int32 /* corecrt.h:123:14 */
+type X__time32_t = int32 /* crtdefs.h:118:14 */
-type X__time64_t = int64 /* corecrt.h:128:35 */
+type X__time64_t = int64 /* crtdefs.h:123:35 */
-type Time_t = X__time32_t /* corecrt.h:141:20 */
+type Time_t = X__time32_t /* crtdefs.h:136:20 */
type Threadlocaleinfostruct = struct {
Frefcount int32
@@ -328,29 +315,29 @@ type Threadlocaleinfostruct = struct {
Fpclmap uintptr
Fpcumap uintptr
Flc_time_curr uintptr
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type Pthreadlocinfo = uintptr /* corecrt.h:437:39 */
-type Pthreadmbcinfo = uintptr /* corecrt.h:438:36 */
+type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
+type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
type Localeinfo_struct = struct {
Flocinfo Pthreadlocinfo
Fmbcinfo Pthreadmbcinfo
-} /* corecrt.h:441:9 */
+} /* crtdefs.h:428:9 */
-type X_locale_tstruct = Localeinfo_struct /* corecrt.h:444:3 */
-type X_locale_t = uintptr /* corecrt.h:444:19 */
+type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
+type X_locale_t = uintptr /* crtdefs.h:431:19 */
type TagLC_ID = struct {
FwLanguage uint16
FwCountry uint16
FwCodePage uint16
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type LC_ID = TagLC_ID /* corecrt.h:452:3 */
-type LPLC_ID = uintptr /* corecrt.h:452:9 */
+type LC_ID = TagLC_ID /* crtdefs.h:439:3 */
+type LPLC_ID = uintptr /* crtdefs.h:439:9 */
-type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
+type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
// Posix thread extensions.
diff --git a/vendor/modernc.org/libc/fcntl/capi_darwin_arm64.go b/vendor/modernc.org/libc/fcntl/capi_darwin_arm64.go
index eacbc259..6bd12e5c 100644
--- a/vendor/modernc.org/libc/fcntl/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/fcntl/capi_darwin_arm64.go
@@ -2,4 +2,6 @@
package fcntl
-var CAPI = map[string]struct{}{}
+var CAPI = map[string]struct{}{
+ "__darwin_check_fd_set_overflow": {},
+}
diff --git a/vendor/modernc.org/libc/fcntl/capi_windows_386.go b/vendor/modernc.org/libc/fcntl/capi_windows_386.go
index 901d6f2f..9a3802f3 100644
--- a/vendor/modernc.org/libc/fcntl/capi_windows_386.go
+++ b/vendor/modernc.org/libc/fcntl/capi_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo fcntl/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 fcntl/fcntl_windows_386.go -pkgname fcntl', DO NOT EDIT.
+// Code generated by 'ccgo fcntl\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 fcntl\fcntl_windows_386.go -pkgname fcntl', DO NOT EDIT.
package fcntl
diff --git a/vendor/modernc.org/libc/fcntl/fcntl_darwin_amd64.go b/vendor/modernc.org/libc/fcntl/fcntl_darwin_amd64.go
index 56270dab..64e9d719 100644
--- a/vendor/modernc.org/libc/fcntl/fcntl_darwin_amd64.go
+++ b/vendor/modernc.org/libc/fcntl/fcntl_darwin_amd64.go
@@ -409,6 +409,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.
diff --git a/vendor/modernc.org/libc/fcntl/fcntl_darwin_arm64.go b/vendor/modernc.org/libc/fcntl/fcntl_darwin_arm64.go
index 937a00e5..0871e5d9 100644
--- a/vendor/modernc.org/libc/fcntl/fcntl_darwin_arm64.go
+++ b/vendor/modernc.org/libc/fcntl/fcntl_darwin_arm64.go
@@ -262,6 +262,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 Apple Computer, Inc. All rights reserved.
//
// @APPLE_LICENSE_HEADER_START@
@@ -450,6 +452,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).
//
diff --git a/vendor/modernc.org/libc/fcntl/fcntl_windows_386.go b/vendor/modernc.org/libc/fcntl/fcntl_windows_386.go
index 5218b5b6..ef167d40 100644
--- a/vendor/modernc.org/libc/fcntl/fcntl_windows_386.go
+++ b/vendor/modernc.org/libc/fcntl/fcntl_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo fcntl/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 fcntl/fcntl_windows_386.go -pkgname fcntl', DO NOT EDIT.
+// Code generated by 'ccgo fcntl\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 fcntl\fcntl_windows_386.go -pkgname fcntl', DO NOT EDIT.
package fcntl
@@ -33,7 +33,9 @@ const (
DUMMYUNIONNAME9 = 0
F_OK = 0
MINGW_DDK_H = 0
+ MINGW_DDRAW_VERSION = 7
MINGW_HAS_DDK_H = 1
+ MINGW_HAS_DDRAW_H = 1
MINGW_HAS_SECURE_API = 1
MINGW_SDK_INIT = 0
O_ACCMODE = 3
@@ -81,7 +83,6 @@ const (
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
- X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0
X_DLL = 0
X_ERRCODE_DEFINED = 0
X_FILE_OFFSET_BITS = 64
@@ -89,8 +90,6 @@ const (
X_FILE_OFFSET_BITS_SET_OFFT = 0
X_FINDDATA_T_DEFINED = 0
X_FSIZE_T_DEFINED = 0
- X_ILP32 = 1
- X_INC_CORECRT = 0
X_INC_CRTDEFS = 0
X_INC_CRTDEFS_MACRO = 0
X_INC_FCNTL = 0
@@ -132,6 +131,7 @@ const (
X_PGLOBAL = 0
X_PTRDIFF_T_ = 0
X_PTRDIFF_T_DEFINED = 0
+ X_REENTRANT = 1
X_RSIZE_T_DEFINED = 0
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
X_SIZE_T_DEFINED = 0
@@ -189,11 +189,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// *
-// This file has no copyright assigned and is placed in the Public Domain.
-// This file is part of the mingw-w64 runtime package.
-// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-
// This macro holds an monotonic increasing value, which indicates
// a specific fix/patch is present on trunk. This value isn't related to
// minor/major version-macros. It is increased on demand, if a big
@@ -214,12 +209,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// MinGW-w64 has some additional C99 printf/scanf feature support.
// So we add some helper macros to ease recognition of them.
-// If _FORTIFY_SOURCE is enabled, some inline functions may use
-// __builtin_va_arg_pack(). GCC may report an error if the address
-// of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
-
-// Enable workaround for ABI incompatibility on affected platforms
-
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
@@ -260,28 +249,26 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// for backward compatibility
-
type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
-type Ssize_t = int32 /* corecrt.h:52:13 */
+type Ssize_t = int32 /* crtdefs.h:47:13 */
-type Rsize_t = Size_t /* corecrt.h:57:16 */
+type Rsize_t = Size_t /* crtdefs.h:52:16 */
-type Intptr_t = int32 /* corecrt.h:69:13 */
+type Intptr_t = int32 /* crtdefs.h:64:13 */
-type Uintptr_t = uint32 /* corecrt.h:82:22 */
+type Uintptr_t = uint32 /* crtdefs.h:77:22 */
-type Wint_t = uint16 /* corecrt.h:111:24 */
-type Wctype_t = uint16 /* corecrt.h:112:24 */
+type Wint_t = uint16 /* crtdefs.h:106:24 */
+type Wctype_t = uint16 /* crtdefs.h:107:24 */
-type Errno_t = int32 /* corecrt.h:118:13 */
+type Errno_t = int32 /* crtdefs.h:113:13 */
-type X__time32_t = int32 /* corecrt.h:123:14 */
+type X__time32_t = int32 /* crtdefs.h:118:14 */
-type X__time64_t = int64 /* corecrt.h:128:35 */
+type X__time64_t = int64 /* crtdefs.h:123:35 */
-type Time_t = X__time32_t /* corecrt.h:141:20 */
+type Time_t = X__time32_t /* crtdefs.h:136:20 */
type Threadlocaleinfostruct = struct {
Frefcount int32
@@ -307,29 +294,29 @@ type Threadlocaleinfostruct = struct {
Fpclmap uintptr
Fpcumap uintptr
Flc_time_curr uintptr
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type Pthreadlocinfo = uintptr /* corecrt.h:437:39 */
-type Pthreadmbcinfo = uintptr /* corecrt.h:438:36 */
+type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
+type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
type Localeinfo_struct = struct {
Flocinfo Pthreadlocinfo
Fmbcinfo Pthreadmbcinfo
-} /* corecrt.h:441:9 */
+} /* crtdefs.h:428:9 */
-type X_locale_tstruct = Localeinfo_struct /* corecrt.h:444:3 */
-type X_locale_t = uintptr /* corecrt.h:444:19 */
+type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
+type X_locale_t = uintptr /* crtdefs.h:431:19 */
type TagLC_ID = struct {
FwLanguage uint16
FwCountry uint16
FwCodePage uint16
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type LC_ID = TagLC_ID /* corecrt.h:452:3 */
-type LPLC_ID = uintptr /* corecrt.h:452:9 */
+type LC_ID = TagLC_ID /* crtdefs.h:439:3 */
+type LPLC_ID = uintptr /* crtdefs.h:439:9 */
-type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
+type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
type X_fsize_t = uint32 /* io.h:29:25 */
type X_finddata32_t = struct {
diff --git a/vendor/modernc.org/libc/fts/capi_darwin_amd64.go b/vendor/modernc.org/libc/fts/capi_darwin_amd64.go
index 9cd5b61b..46344857 100644
--- a/vendor/modernc.org/libc/fts/capi_darwin_amd64.go
+++ b/vendor/modernc.org/libc/fts/capi_darwin_amd64.go
@@ -3,5 +3,9 @@
package fts
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/fts/capi_darwin_arm64.go b/vendor/modernc.org/libc/fts/capi_darwin_arm64.go
index c7094282..08e0ed43 100644
--- a/vendor/modernc.org/libc/fts/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/fts/capi_darwin_arm64.go
@@ -2,4 +2,10 @@
package fts
-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/fts/fts_darwin_amd64.go b/vendor/modernc.org/libc/fts/fts_darwin_amd64.go
index 3e404c01..ef7479e7 100644
--- a/vendor/modernc.org/libc/fts/fts_darwin_amd64.go
+++ b/vendor/modernc.org/libc/fts/fts_darwin_amd64.go
@@ -27,6 +27,7 @@ const (
EF_NO_XATTRS = 0x00000002
FD_SETSIZE = 1024
FTS_AGAIN = 1
+ FTS_BLOCK_COMPAR = 0x80000000
FTS_COMFOLLOW = 0x001
FTS_COMFOLLOWDIR = 0x400
FTS_D = 1
@@ -379,6 +380,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.
@@ -2946,15 +2954,6 @@ type Errno_t = int32 /* _errno_t.h:30:32 */
// __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@
@@ -3225,15 +3224,6 @@ type Fd_set1 = struct{ Ffds_bits [32]X__int32_t } /* _fd_def.h:50:9 */
// __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@
@@ -5132,7 +5122,7 @@ type FTS = struct {
Ffts_pathlen int32
Ffts_nitems int32
F__ccgo_pad2 [4]byte
- Ffts_compar uintptr
+ F__56 struct{ Ffts_compar uintptr }
Ffts_options int32
F__ccgo_pad3 [4]byte
} /* fts.h:111:3 */
diff --git a/vendor/modernc.org/libc/fts/fts_darwin_arm64.go b/vendor/modernc.org/libc/fts/fts_darwin_arm64.go
index 886f3b9e..d7f9126a 100644
--- a/vendor/modernc.org/libc/fts/fts_darwin_arm64.go
+++ b/vendor/modernc.org/libc/fts/fts_darwin_arm64.go
@@ -28,6 +28,7 @@ const (
EF_NO_XATTRS = 0x00000002
FD_SETSIZE = 1024
FTS_AGAIN = 1
+ FTS_BLOCK_COMPAR = 0x80000000
FTS_CHDIRFD = 0x08
FTS_COMFOLLOW = 0x001
FTS_COMFOLLOWDIR = 0x400
@@ -229,7 +230,6 @@ const (
X_FSBLKCNT_T = 0
X_FSFILCNT_T = 0
X_FTS_H_ = 0
- X_GCC_WRAP_STDINT_H = 0
X_GID_T = 0
X_ID_T = 0
X_INO64_T = 0
@@ -238,7 +238,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
@@ -269,7 +268,6 @@ const (
X_RSIZE_T = 0
X_SIZE_T = 0
X_SSIZE_T = 0
- X_STDINT_H_ = 0
X_SUSECONDS_T = 0
X_SYS_STAT_H_ = 0
X_SYS_TYPES_H_ = 0
@@ -278,11 +276,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
@@ -313,6 +306,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-2008 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
@@ -477,6 +472,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).
//
@@ -1552,727 +1554,39 @@ type X__darwin_pthread_once_t = X_opaque_pthread_once_t /* _pthread_
type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t /* _pthread_types.h:116:41 */
type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
type X__darwin_pthread_t = uintptr /* _pthread_types.h:118:34 */
+type Uint64_t = uint64 /* stdint.h:98:25 */
-// Copyright (c) 2000-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 1995 NeXT Computer, Inc. All rights reserved.
-
-// Copyright (c) 2000-2007 Apple Inc. All rights reserved.
-// Copyright 1995 NeXT Computer, Inc. All rights reserved.
-// Copyright (c) 1987, 1991, 1993
-// The Regents of the University of California. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. All advertising materials mentioning features or use of this software
-// must display the following acknowledgement:
-// This product includes software developed by the University of
-// California, Berkeley and its contributors.
-// 4. Neither the name of the University nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-// SUCH DAMAGE.
-//
-// @(#)endian.h 8.1 (Berkeley) 6/11/93
-
-// Copyright (c) 2000-2018 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 1995 NeXT Computer, Inc. All rights reserved.
-// Copyright (c) 1991, 1993
-// The Regents of the University of California. All rights reserved.
-//
-// This code is derived from software contributed to Berkeley by
-// Berkeley Software Design, Inc.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. All advertising materials mentioning features or use of this software
-// must display the following acknowledgement:
-// This product includes software developed by the University of
-// California, Berkeley and its contributors.
-// 4. Neither the name of the University nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-// SUCH DAMAGE.
-//
-// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
-
-// Define _NOQUAD if the compiler does NOT support 64-bit integers.
-// #define _NOQUAD
-
-// Define the order of 32-bit words in 64-bit words.
-
-// Definitions for byte order, according to byte significance from low
-// address to high.
-
-// Copyright (c) 2004, 2006 Apple Computer, 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) 1995 NeXT Computer, Inc. All rights reserved.
-// Copyright (c) 2000-2002 Apple Computer, 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) 1987, 1991, 1993
-// The Regents of the University of California. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. All advertising materials mentioning features or use of this software
-// must display the following acknowledgement:
-// This product includes software developed by the University of
-// California, Berkeley and its contributors.
-// 4. Neither the name of the University nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-// SUCH DAMAGE.
-
-// Copyright (c) 2000-2018 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 1995 NeXT Computer, Inc. All rights reserved.
-// Copyright (c) 1991, 1993
-// The Regents of the University of California. All rights reserved.
-//
-// This code is derived from software contributed to Berkeley by
-// Berkeley Software Design, Inc.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. All advertising materials mentioning features or use of this software
-// must display the following acknowledgement:
-// This product includes software developed by the University of
-// California, Berkeley and its contributors.
-// 4. Neither the name of the University nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-// SUCH DAMAGE.
-//
-// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
-
-// Macros for network/external number representation conversion.
-
-// Copyright (c) 2006 Apple Computer, 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@
-
-// This header is normally included from <libkern/OSByteOrder.h>. However,
-// <sys/_endian.h> also includes this in the case of little-endian
-// architectures, so that we can map OSByteOrder routines to the hton* and ntoh*
-// macros. This results in the asymmetry below; we only include
-// <libkern/arch/_OSByteOrder.h> for little-endian architectures.
-
-// 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@
-
-// Macros for swapping constant values in the preprocessing stage.
-
-// Copyright (c) 1999-2007 Apple Inc. All rights reserved.
-
-// 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.
-
-// 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@
-
-type Intmax_t = int64 /* _intmax_t.h:32:25 */
-// 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 Uintmax_t = uint64 /* _uintmax_t.h:32:26 */
+// 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 */
// Functions for byte reversed loads.
@@ -3735,15 +3049,6 @@ type Errno_t = int32 /* _errno_t.h:30:32 */
// 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@
@@ -4037,15 +3342,6 @@ type Fd_set1 = struct{ Ffds_bits [32]X__int32_t } /* _fd_def.h:50:9 */
// 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@
@@ -5910,7 +5206,7 @@ type FTS = struct {
Ffts_pathlen int32
Ffts_nitems int32
F__ccgo_pad2 [4]byte
- Ffts_compar uintptr
+ F__56 struct{ Ffts_compar uintptr }
Ffts_options int32
F__ccgo_pad3 [4]byte
} /* fts.h:111:3 */
diff --git a/vendor/modernc.org/libc/grp/capi_darwin_arm64.go b/vendor/modernc.org/libc/grp/capi_darwin_arm64.go
index f0ca0522..9e6f03aa 100644
--- a/vendor/modernc.org/libc/grp/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/grp/capi_darwin_arm64.go
@@ -2,4 +2,6 @@
package grp
-var CAPI = map[string]struct{}{}
+var CAPI = map[string]struct{}{
+ "__darwin_check_fd_set_overflow": {},
+}
diff --git a/vendor/modernc.org/libc/grp/grp_darwin_amd64.go b/vendor/modernc.org/libc/grp/grp_darwin_amd64.go
index e442ce22..30f27935 100644
--- a/vendor/modernc.org/libc/grp/grp_darwin_amd64.go
+++ b/vendor/modernc.org/libc/grp/grp_darwin_amd64.go
@@ -219,6 +219,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.
diff --git a/vendor/modernc.org/libc/grp/grp_darwin_arm64.go b/vendor/modernc.org/libc/grp/grp_darwin_arm64.go
index a97a3335..428fe541 100644
--- a/vendor/modernc.org/libc/grp/grp_darwin_arm64.go
+++ b/vendor/modernc.org/libc/grp/grp_darwin_arm64.go
@@ -58,6 +58,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) 1989, 1993
// The Regents of the University of California. All rights reserved.
@@ -219,6 +221,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).
//
diff --git a/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go b/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go
index 38467268..bca62b15 100644
--- a/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go
+++ b/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go
@@ -713,7 +713,10 @@ func init() {
num, err := strconv.ParseInt(fields[1], 10, 32)
if err != nil {
- panic(err)
+ // If we find lines that don't match the expected format we skip over them.
+ // The expected format is <protocol> <number> <aliases> ...
+ // As we're using strings.Fields for splitting the line, failures can happen if the protocol field contains white spaces.
+ continue
}
protoent := &Protoent{
diff --git a/vendor/modernc.org/libc/langinfo/capi_darwin_arm64.go b/vendor/modernc.org/libc/langinfo/capi_darwin_arm64.go
index d619422c..b6c9d135 100644
--- a/vendor/modernc.org/libc/langinfo/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/langinfo/capi_darwin_arm64.go
@@ -2,4 +2,6 @@
package langinfo
-var CAPI = map[string]struct{}{}
+var CAPI = map[string]struct{}{
+ "__darwin_check_fd_set_overflow": {},
+}
diff --git a/vendor/modernc.org/libc/langinfo/langinfo_darwin_amd64.go b/vendor/modernc.org/libc/langinfo/langinfo_darwin_amd64.go
index 2635dc6d..a2f803f7 100644
--- a/vendor/modernc.org/libc/langinfo/langinfo_darwin_amd64.go
+++ b/vendor/modernc.org/libc/langinfo/langinfo_darwin_amd64.go
@@ -259,6 +259,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.
diff --git a/vendor/modernc.org/libc/langinfo/langinfo_darwin_arm64.go b/vendor/modernc.org/libc/langinfo/langinfo_darwin_arm64.go
index 27559730..43d6fcac 100644
--- a/vendor/modernc.org/libc/langinfo/langinfo_darwin_arm64.go
+++ b/vendor/modernc.org/libc/langinfo/langinfo_darwin_arm64.go
@@ -111,6 +111,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) 2001 Alexey Zelkin <phantom@FreeBSD.org>
// All rights reserved.
@@ -259,6 +261,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).
//
diff --git a/vendor/modernc.org/libc/libc.go b/vendor/modernc.org/libc/libc.go
index 7831aea1..98d7c217 100644
--- a/vendor/modernc.org/libc/libc.go
+++ b/vendor/modernc.org/libc/libc.go
@@ -161,6 +161,10 @@ func X_exit(_ *TLS, status int32) {
}
func SetEnviron(t *TLS, env []string) {
+ if environInitialized {
+ return
+ }
+
environInitialized = true
p := Xcalloc(t, 1, types.Size_t((len(env)+1)*(int(uintptrSize))))
if p == 0 {
diff --git a/vendor/modernc.org/libc/libc_openbsd.go b/vendor/modernc.org/libc/libc_openbsd.go
index 2e941341..0ad1a38c 100644
--- a/vendor/modernc.org/libc/libc_openbsd.go
+++ b/vendor/modernc.org/libc/libc_openbsd.go
@@ -1481,7 +1481,7 @@ func X__xuname(t *TLS, namesize int32, namebuf uintptr) int32 {
}
// int chflags(const char *path, u_int flags);
-func Xchflags(t *TLS, path uintptr, flags uint64) int32 {
+func Xchflags(t *TLS, path uintptr, flags uint32) int32 {
if err := unix.Chflags(GoString(path), int(flags)); err != nil {
if dmesgs {
dmesg("%v: %v FAIL", origin(1), err)
@@ -1605,3 +1605,29 @@ func X__assert2(t *TLS, file uintptr, line int32, fn, expr uintptr) {
func Xgetpagesize(t *TLS) int32 {
return int32(unix.Getpagesize())
}
+
+const PTHREAD_MUTEX_DEFAULT = 0
+
+// The pthread_mutex_init() function shall initialize the mutex referenced by
+// mutex with attributes specified by attr. If attr is NULL, the default mutex
+// attributes are used; the effect shall be the same as passing the address of
+// a default mutex attributes object. Upon successful initialization, the state
+// of the mutex becomes initialized and unlocked.
+//
+// If successful, the pthread_mutex_destroy() and pthread_mutex_init()
+// functions shall return zero; otherwise, an error number shall be returned to
+// indicate the error.
+//
+// int pthread_mutex_init(pthread_mutex_t *restrict mutex, const pthread_mutexattr_t *restrict attr);
+func Xpthread_mutex_init(t *TLS, pMutex, pAttr uintptr) int32 {
+ typ := PTHREAD_MUTEX_DEFAULT
+ if pAttr != 0 {
+ typ = int(X__ccgo_pthreadMutexattrGettype(t, pAttr))
+ }
+ mutexesMu.Lock()
+
+ defer mutexesMu.Unlock()
+
+ mutexes[pMutex] = newMutex(typ)
+ return 0
+}
diff --git a/vendor/modernc.org/libc/libc_openbsd_amd64.go b/vendor/modernc.org/libc/libc_openbsd_amd64.go
index 9c963d00..94432aef 100644
--- a/vendor/modernc.org/libc/libc_openbsd_amd64.go
+++ b/vendor/modernc.org/libc/libc_openbsd_amd64.go
@@ -380,7 +380,7 @@ func Xalarm(t *TLS, seconds uint32) uint32 {
}
// int getnameinfo(const struct sockaddr * restrict sa, socklen_t salen, char * restrict host, socklen_t hostlen, char * restrict serv, socklen_t servlen, int flags);
-func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen socklen_t, serv uintptr, servlen socklen_t, flags int32) int32 { /* getnameinfo.c:125:5: */
+func Xgetnameinfo(tls *TLS, sa1 uintptr, sl socklen_t, node uintptr, nodelen size_t, serv uintptr, servlen size_t, flags int32) int32 { /* getnameinfo.c:125:5: */
panic(todo(""))
//TODO bp := tls.Alloc(347)
//TODO defer tls.Free(347)
diff --git a/vendor/modernc.org/libc/limits/capi_darwin_arm64.go b/vendor/modernc.org/libc/limits/capi_darwin_arm64.go
index 81c0e802..41c2cf99 100644
--- a/vendor/modernc.org/libc/limits/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/limits/capi_darwin_arm64.go
@@ -2,4 +2,6 @@
package limits
-var CAPI = map[string]struct{}{}
+var CAPI = map[string]struct{}{
+ "__darwin_check_fd_set_overflow": {},
+}
diff --git a/vendor/modernc.org/libc/limits/capi_windows_386.go b/vendor/modernc.org/libc/limits/capi_windows_386.go
index 30ec29e9..80740cb5 100644
--- a/vendor/modernc.org/libc/limits/capi_windows_386.go
+++ b/vendor/modernc.org/libc/limits/capi_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo limits/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 limits/limits_windows_386.go -pkgname limits', DO NOT EDIT.
+// Code generated by 'ccgo limits\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 limits\limits_windows_386.go -pkgname limits', DO NOT EDIT.
package limits
diff --git a/vendor/modernc.org/libc/limits/limits_windows_386.go b/vendor/modernc.org/libc/limits/limits_windows_386.go
index 7a68f646..1be004f8 100644
--- a/vendor/modernc.org/libc/limits/limits_windows_386.go
+++ b/vendor/modernc.org/libc/limits/limits_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo limits/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 limits/limits_windows_386.go -pkgname limits', DO NOT EDIT.
+// Code generated by 'ccgo limits\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 limits\limits_windows_386.go -pkgname limits', DO NOT EDIT.
package limits
@@ -44,7 +44,9 @@ const (
LONG_MIN = -2147483648
MB_LEN_MAX = 5
MINGW_DDK_H = 0
+ MINGW_DDRAW_VERSION = 7
MINGW_HAS_DDK_H = 1
+ MINGW_HAS_DDRAW_H = 1
MINGW_HAS_SECURE_API = 1
MINGW_SDK_INIT = 0
PATH_MAX = 260
@@ -79,7 +81,6 @@ const (
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
- X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0
X_DLL = 0
X_ERRCODE_DEFINED = 0
X_FILE_OFFSET_BITS = 64
@@ -92,8 +93,6 @@ const (
X_I64_MIN = -9223372036854775808
X_I8_MAX = 127
X_I8_MIN = -128
- X_ILP32 = 1
- X_INC_CORECRT = 0
X_INC_CRTDEFS = 0
X_INC_CRTDEFS_MACRO = 0
X_INC_LIMITS = 0
@@ -109,6 +108,7 @@ const (
X_PGLOBAL = 0
X_PTRDIFF_T_ = 0
X_PTRDIFF_T_DEFINED = 0
+ X_REENTRANT = 1
X_RSIZE_T_DEFINED = 0
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
X_SIZE_T_DEFINED = 0
@@ -146,7 +146,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
type Va_list = X__builtin_va_list /* <builtin>:50:27 */
-// Copyright (C) 1992-2020 Free Software Foundation, Inc.
+// Copyright (C) 1992-2018 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
@@ -200,11 +200,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// *
-// This file has no copyright assigned and is placed in the Public Domain.
-// This file is part of the mingw-w64 runtime package.
-// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-
// This macro holds an monotonic increasing value, which indicates
// a specific fix/patch is present on trunk. This value isn't related to
// minor/major version-macros. It is increased on demand, if a big
@@ -225,12 +220,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// MinGW-w64 has some additional C99 printf/scanf feature support.
// So we add some helper macros to ease recognition of them.
-// If _FORTIFY_SOURCE is enabled, some inline functions may use
-// __builtin_va_arg_pack(). GCC may report an error if the address
-// of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
-
-// Enable workaround for ABI incompatibility on affected platforms
-
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
@@ -271,28 +260,26 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// for backward compatibility
-
type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
-type Ssize_t = int32 /* corecrt.h:52:13 */
+type Ssize_t = int32 /* crtdefs.h:47:13 */
-type Rsize_t = Size_t /* corecrt.h:57:16 */
+type Rsize_t = Size_t /* crtdefs.h:52:16 */
-type Intptr_t = int32 /* corecrt.h:69:13 */
+type Intptr_t = int32 /* crtdefs.h:64:13 */
-type Uintptr_t = uint32 /* corecrt.h:82:22 */
+type Uintptr_t = uint32 /* crtdefs.h:77:22 */
-type Wint_t = uint16 /* corecrt.h:111:24 */
-type Wctype_t = uint16 /* corecrt.h:112:24 */
+type Wint_t = uint16 /* crtdefs.h:106:24 */
+type Wctype_t = uint16 /* crtdefs.h:107:24 */
-type Errno_t = int32 /* corecrt.h:118:13 */
+type Errno_t = int32 /* crtdefs.h:113:13 */
-type X__time32_t = int32 /* corecrt.h:123:14 */
+type X__time32_t = int32 /* crtdefs.h:118:14 */
-type X__time64_t = int64 /* corecrt.h:128:35 */
+type X__time64_t = int64 /* crtdefs.h:123:35 */
-type Time_t = X__time32_t /* corecrt.h:141:20 */
+type Time_t = X__time32_t /* crtdefs.h:136:20 */
type Threadlocaleinfostruct = struct {
Frefcount int32
@@ -318,29 +305,29 @@ type Threadlocaleinfostruct = struct {
Fpclmap uintptr
Fpcumap uintptr
Flc_time_curr uintptr
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type Pthreadlocinfo = uintptr /* corecrt.h:437:39 */
-type Pthreadmbcinfo = uintptr /* corecrt.h:438:36 */
+type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
+type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
type Localeinfo_struct = struct {
Flocinfo Pthreadlocinfo
Fmbcinfo Pthreadmbcinfo
-} /* corecrt.h:441:9 */
+} /* crtdefs.h:428:9 */
-type X_locale_tstruct = Localeinfo_struct /* corecrt.h:444:3 */
-type X_locale_t = uintptr /* corecrt.h:444:19 */
+type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
+type X_locale_t = uintptr /* crtdefs.h:431:19 */
type TagLC_ID = struct {
FwLanguage uint16
FwCountry uint16
FwCodePage uint16
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type LC_ID = TagLC_ID /* corecrt.h:452:3 */
-type LPLC_ID = uintptr /* corecrt.h:452:9 */
+type LC_ID = TagLC_ID /* crtdefs.h:439:3 */
+type LPLC_ID = uintptr /* crtdefs.h:439:9 */
-type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
+type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
// File system limits
//
@@ -350,7 +337,7 @@ type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
// are semantically identical, with a limit of 259 characters for the
// path name, plus one for a terminating NUL, for a total of 260.
-// Copyright (C) 1991-2020 Free Software Foundation, Inc.
+// Copyright (C) 1991-2018 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
diff --git a/vendor/modernc.org/libc/musl_darwin_amd64.go b/vendor/modernc.org/libc/musl_darwin_amd64.go
index 44a812ca..0e92a81d 100644
--- a/vendor/modernc.org/libc/musl_darwin_amd64.go
+++ b/vendor/modernc.org/libc/musl_darwin_amd64.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo -D__environ=environ -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -hide isascii,isspace,tolower,toupper -nostdinc -nostdlib -o ../musl_darwin_amd64.go -pkgname libc -static-locals-prefix _s -Iarch/x86_64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c ../darwin/table.c src/env/putenv.c src/env/setenv.c src/env/unsetenv.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/locale/localeconv.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/prng/rand_r.c src/stdio/__toread.c src/stdio/__uflow.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strchrnul.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c', DO NOT EDIT.
+// Code generated by 'ccgo -D__environ=environ -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -hide isascii,isspace,tolower,toupper -nostdinc -nostdlib -o ../musl_darwin_amd64.go -pkgname libc -static-locals-prefix _s -Iarch/x86_64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c ../darwin/table.c src/env/putenv.c src/env/setenv.c src/env/unsetenv.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/locale/localeconv.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/prng/rand_r.c src/stdio/__toread.c src/stdio/__uflow.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strchrnul.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c', DO NOT EDIT.
package libc
@@ -4415,6 +4415,26 @@ func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */
return -1
}
+func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */
+ var try uintptr
+ var sign int32
+ for nel > uint64(0) {
+ try = base + uintptr(width*(nel/uint64(2)))
+ sign = (*struct {
+ f func(*TLS, uintptr, uintptr) int32
+ })(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try)
+ if sign < 0 {
+ nel = nel / uint64(2)
+ } else if sign > 0 {
+ base = try + uintptr(width)
+ nel = nel - (nel/uint64(2) + uint64(1))
+ } else {
+ return try
+ }
+ }
+ return uintptr(0)
+}
+
func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6:20: */
bp := tls.Alloc(232)
defer tls.Free(232)
diff --git a/vendor/modernc.org/libc/musl_darwin_arm64.go b/vendor/modernc.org/libc/musl_darwin_arm64.go
index deb7e627..6b8b9ded 100644
--- a/vendor/modernc.org/libc/musl_darwin_arm64.go
+++ b/vendor/modernc.org/libc/musl_darwin_arm64.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo -D__environ=environ -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -hide isascii,isspace,tolower,toupper -nostdinc -nostdlib -o ../musl_darwin_arm64.go -pkgname libc -static-locals-prefix _s -Iarch/aarch64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c ../darwin/table.c src/env/putenv.c src/env/setenv.c src/env/unsetenv.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/locale/localeconv.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/prng/rand_r.c src/stdio/__toread.c src/stdio/__uflow.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strchrnul.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c', DO NOT EDIT.
+// Code generated by 'ccgo -D__environ=environ -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -hide isascii,isspace,tolower,toupper -nostdinc -nostdlib -o ../musl_darwin_arm64.go -pkgname libc -static-locals-prefix _s -Iarch/aarch64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c ../darwin/table.c src/env/putenv.c src/env/setenv.c src/env/unsetenv.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/locale/localeconv.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/prng/rand_r.c src/stdio/__toread.c src/stdio/__uflow.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strchrnul.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c', DO NOT EDIT.
package libc
@@ -357,6 +357,8 @@ type size_t = uint64 /* <builtin>:9:23 */
type wchar_t = int32 /* <builtin>:15:24 */
+var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
+
// pthread opaque structures
type __darwin_pthread_handler_rec = struct {
@@ -4413,6 +4415,26 @@ func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */
return -1
}
+func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */
+ var try uintptr
+ var sign int32
+ for nel > uint64(0) {
+ try = base + uintptr(width*(nel/uint64(2)))
+ sign = (*struct {
+ f func(*TLS, uintptr, uintptr) int32
+ })(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try)
+ if sign < 0 {
+ nel = nel / uint64(2)
+ } else if sign > 0 {
+ base = try + uintptr(width)
+ nel = nel - (nel/uint64(2) + uint64(1))
+ } else {
+ return try
+ }
+ }
+ return uintptr(0)
+}
+
func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6:20: */
bp := tls.Alloc(232)
defer tls.Free(232)
diff --git a/vendor/modernc.org/libc/musl_freebsd_amd64.go b/vendor/modernc.org/libc/musl_freebsd_amd64.go
index 55490d4d..2e0a6e55 100644
--- a/vendor/modernc.org/libc/musl_freebsd_amd64.go
+++ b/vendor/modernc.org/libc/musl_freebsd_amd64.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6,getnameinfo,gethostbyaddr_r, -nostdinc -nostdlib -o ../musl_freebsd_amd64.go -pkgname libc -static-locals-prefix _s -Iarch/x86_64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c ../freebsd/table.cpp.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/stdio/__toread.c src/stdio/__uflow.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strnlen.c src/string/strspn.c', DO NOT EDIT.
+// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6,getnameinfo,gethostbyaddr_r, -nostdinc -nostdlib -o ../musl_freebsd_amd64.go -pkgname libc -static-locals-prefix _s -Iarch/x86_64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c ../freebsd/table.cpp.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isspace.c src/ctype/isupper.c src/ctype/isxdigit.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/stdio/__toread.c src/stdio/__uflow.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strnlen.c src/string/strspn.c', DO NOT EDIT.
package libc
@@ -3356,6 +3356,51 @@ func X__isdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isdigit.c:9:5: */
return Xisdigit(tls, c)
}
+func Xislower(tls *TLS, c int32) int32 { /* islower.c:4:5: */
+ return Bool32(uint32(c)-uint32('a') < uint32(26))
+}
+
+func X__islower_l(tls *TLS, c int32, l locale_t) int32 { /* islower.c:9:5: */
+ return Xislower(tls, c)
+}
+
+func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */
+ return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f))
+}
+
+func X__isprint_l(tls *TLS, c int32, l locale_t) int32 { /* isprint.c:9:5: */
+ return Xisprint(tls, c)
+}
+
+func Xisspace(tls *TLS, c int32) int32 { /* isspace.c:4:5: */
+ return Bool32(c == ' ' || uint32(c)-uint32('\t') < uint32(5))
+}
+
+func X__isspace_l(tls *TLS, c int32, l locale_t) int32 { /* isspace.c:9:5: */
+ return Xisspace(tls, c)
+}
+
+func Xisupper(tls *TLS, c int32) int32 { /* isupper.c:4:5: */
+ return Bool32(uint32(c)-uint32('A') < uint32(26))
+}
+
+func X__isupper_l(tls *TLS, c int32, l locale_t) int32 { /* isupper.c:9:5: */
+ return Xisupper(tls, c)
+}
+
+func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */
+ return Bool32(func() int32 {
+ if 0 != 0 {
+ return Xisdigit(tls, c)
+ }
+ return Bool32(uint32(c)-uint32('0') < uint32(10))
+ }() != 0 || uint32(c)|uint32(32)-uint32('a') < uint32(6))
+}
+
+func X__isxdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isxdigit.c:8:5: */
+ return Xisxdigit(tls, c)
+}
+
type uintptr_t = uint64 /* alltypes.h:55:24 */
type intptr_t = int64 /* alltypes.h:70:15 */
@@ -6667,6 +6712,26 @@ func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */
return -1
}
+func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */
+ var try uintptr
+ var sign int32
+ for nel > uint64(0) {
+ try = base + uintptr(width*(nel/uint64(2)))
+ sign = (*struct {
+ f func(*TLS, uintptr, uintptr) int32
+ })(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try)
+ if sign < 0 {
+ nel = nel / uint64(2)
+ } else if sign > 0 {
+ base = try + uintptr(width)
+ nel = nel - (nel/uint64(2) + uint64(1))
+ } else {
+ return try
+ }
+ }
+ return uintptr(0)
+}
+
func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6:20: */
bp := tls.Alloc(232)
defer tls.Free(232)
diff --git a/vendor/modernc.org/libc/musl_linux_386.go b/vendor/modernc.org/libc/musl_linux_386.go
index 164e168c..3b730c21 100644
--- a/vendor/modernc.org/libc/musl_linux_386.go
+++ b/vendor/modernc.org/libc/musl_linux_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_linux_386.go -pkgname libc -static-locals-prefix _s -Iarch/i386 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/__ctype_b_loc.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isupper.c src/ctype/isxdigit.c src/dirent/closedir.c src/dirent/opendir.c src/dirent/readdir.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/locale/localeconv.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/multibyte/internal.c src/multibyte/mbrtowc.c src/multibyte/mbsinit.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/gethostbyname_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/prng/rand_r.c src/stdio/__lockfile.c src/stdio/__toread.c src/stdio/__uflow.c src/stdio/sscanf.c src/stdio/vfscanf.c src/stdio/vsscanf.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c src/thread/pthread_attr_get.c src/thread/pthread_attr_setdetachstate.c src/thread/pthread_mutex_lock.c src/thread/pthread_mutexattr_destroy.c src/thread/pthread_mutexattr_init.c src/thread/pthread_mutexattr_settype.c', DO NOT EDIT.
+// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_linux_386.go -pkgname libc -static-locals-prefix _s -Iarch/i386 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/__ctype_b_loc.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isupper.c src/ctype/isxdigit.c src/dirent/closedir.c src/dirent/opendir.c src/dirent/readdir.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/locale/localeconv.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/multibyte/internal.c src/multibyte/mbrtowc.c src/multibyte/mbsinit.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/gethostbyname_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/prng/rand_r.c src/stdio/__lockfile.c src/stdio/__toread.c src/stdio/__uflow.c src/stdio/sscanf.c src/stdio/vfscanf.c src/stdio/vsscanf.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c src/thread/pthread_attr_get.c src/thread/pthread_attr_setdetachstate.c src/thread/pthread_mutex_lock.c src/thread/pthread_mutexattr_destroy.c src/thread/pthread_mutexattr_init.c src/thread/pthread_mutexattr_settype.c', DO NOT EDIT.
package libc
@@ -6452,6 +6452,26 @@ func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap va_list) int32 { /* vsscanf.c
return Xvfscanf(tls, bp, fmt, ap)
}
+func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */
+ var try uintptr
+ var sign int32
+ for nel > size_t(0) {
+ try = base + uintptr(width*(nel/size_t(2)))
+ sign = (*struct {
+ f func(*TLS, uintptr, uintptr) int32
+ })(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try)
+ if sign < 0 {
+ nel = nel / size_t(2)
+ } else if sign > 0 {
+ base = try + uintptr(width)
+ nel = nel - (nel/size_t(2) + size_t(1))
+ } else {
+ return try
+ }
+ }
+ return uintptr(0)
+}
+
func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6:20: */
bp := tls.Alloc(136)
defer tls.Free(136)
diff --git a/vendor/modernc.org/libc/musl_linux_amd64.go b/vendor/modernc.org/libc/musl_linux_amd64.go
index 874dfbdf..d7ea0f23 100644
--- a/vendor/modernc.org/libc/musl_linux_amd64.go
+++ b/vendor/modernc.org/libc/musl_linux_amd64.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_linux_amd64.go -pkgname libc -static-locals-prefix _s -Iarch/x86_64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/__ctype_b_loc.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isupper.c src/ctype/isxdigit.c src/dirent/closedir.c src/dirent/opendir.c src/dirent/readdir.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/locale/localeconv.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/multibyte/internal.c src/multibyte/mbrtowc.c src/multibyte/mbsinit.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/gethostbyname_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/prng/rand_r.c src/stdio/__lockfile.c src/stdio/__toread.c src/stdio/__uflow.c src/stdio/sscanf.c src/stdio/vfscanf.c src/stdio/vsscanf.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c src/thread/pthread_attr_get.c src/thread/pthread_attr_setdetachstate.c src/thread/pthread_mutex_lock.c src/thread/pthread_mutexattr_destroy.c src/thread/pthread_mutexattr_init.c src/thread/pthread_mutexattr_settype.c', DO NOT EDIT.
+// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_linux_amd64.go -pkgname libc -static-locals-prefix _s -Iarch/x86_64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/__ctype_b_loc.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isupper.c src/ctype/isxdigit.c src/dirent/closedir.c src/dirent/opendir.c src/dirent/readdir.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/locale/localeconv.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/multibyte/internal.c src/multibyte/mbrtowc.c src/multibyte/mbsinit.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/gethostbyname_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/prng/rand_r.c src/stdio/__lockfile.c src/stdio/__toread.c src/stdio/__uflow.c src/stdio/sscanf.c src/stdio/vfscanf.c src/stdio/vsscanf.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c src/thread/pthread_attr_get.c src/thread/pthread_attr_setdetachstate.c src/thread/pthread_mutex_lock.c src/thread/pthread_mutexattr_destroy.c src/thread/pthread_mutexattr_init.c src/thread/pthread_mutexattr_settype.c', DO NOT EDIT.
package libc
@@ -6507,6 +6507,26 @@ func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap va_list) int32 { /* vsscanf.c
return Xvfscanf(tls, bp, fmt, ap)
}
+func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */
+ var try uintptr
+ var sign int32
+ for nel > uint64(0) {
+ try = base + uintptr(width*(nel/uint64(2)))
+ sign = (*struct {
+ f func(*TLS, uintptr, uintptr) int32
+ })(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try)
+ if sign < 0 {
+ nel = nel / uint64(2)
+ } else if sign > 0 {
+ base = try + uintptr(width)
+ nel = nel - (nel/uint64(2) + uint64(1))
+ } else {
+ return try
+ }
+ }
+ return uintptr(0)
+}
+
func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6:20: */
bp := tls.Alloc(232)
defer tls.Free(232)
diff --git a/vendor/modernc.org/libc/musl_linux_arm.go b/vendor/modernc.org/libc/musl_linux_arm.go
index 301c4b31..8d420884 100644
--- a/vendor/modernc.org/libc/musl_linux_arm.go
+++ b/vendor/modernc.org/libc/musl_linux_arm.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_linux_arm.go -pkgname libc -static-locals-prefix _s -Iarch/arm -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/__ctype_b_loc.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isupper.c src/ctype/isxdigit.c src/dirent/closedir.c src/dirent/opendir.c src/dirent/readdir.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/locale/localeconv.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/multibyte/internal.c src/multibyte/mbrtowc.c src/multibyte/mbsinit.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/gethostbyname_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/prng/rand_r.c src/stdio/__lockfile.c src/stdio/__toread.c src/stdio/__uflow.c src/stdio/sscanf.c src/stdio/vfscanf.c src/stdio/vsscanf.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c src/thread/pthread_attr_get.c src/thread/pthread_attr_setdetachstate.c src/thread/pthread_mutex_lock.c src/thread/pthread_mutexattr_destroy.c src/thread/pthread_mutexattr_init.c src/thread/pthread_mutexattr_settype.c', DO NOT EDIT.
+// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_linux_arm.go -pkgname libc -static-locals-prefix _s -Iarch/arm -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/__ctype_b_loc.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isupper.c src/ctype/isxdigit.c src/dirent/closedir.c src/dirent/opendir.c src/dirent/readdir.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/locale/localeconv.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/multibyte/internal.c src/multibyte/mbrtowc.c src/multibyte/mbsinit.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/gethostbyname_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/prng/rand_r.c src/stdio/__lockfile.c src/stdio/__toread.c src/stdio/__uflow.c src/stdio/sscanf.c src/stdio/vfscanf.c src/stdio/vsscanf.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c src/thread/pthread_attr_get.c src/thread/pthread_attr_setdetachstate.c src/thread/pthread_mutex_lock.c src/thread/pthread_mutexattr_destroy.c src/thread/pthread_mutexattr_init.c src/thread/pthread_mutexattr_settype.c', DO NOT EDIT.
package libc
@@ -6485,6 +6485,26 @@ func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap va_list) int32 { /* vsscanf.c
return Xvfscanf(tls, bp, fmt, ap)
}
+func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */
+ var try uintptr
+ var sign int32
+ for nel > size_t(0) {
+ try = base + uintptr(width*(nel/size_t(2)))
+ sign = (*struct {
+ f func(*TLS, uintptr, uintptr) int32
+ })(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try)
+ if sign < 0 {
+ nel = nel / size_t(2)
+ } else if sign > 0 {
+ base = try + uintptr(width)
+ nel = nel - (nel/size_t(2) + size_t(1))
+ } else {
+ return try
+ }
+ }
+ return uintptr(0)
+}
+
func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6:20: */
bp := tls.Alloc(144)
defer tls.Free(144)
diff --git a/vendor/modernc.org/libc/musl_linux_arm64.go b/vendor/modernc.org/libc/musl_linux_arm64.go
index 3e1bf4ad..0e3b64c1 100644
--- a/vendor/modernc.org/libc/musl_linux_arm64.go
+++ b/vendor/modernc.org/libc/musl_linux_arm64.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_linux_arm64.go -pkgname libc -static-locals-prefix _s -Iarch/aarch64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/__ctype_b_loc.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isupper.c src/ctype/isxdigit.c src/dirent/closedir.c src/dirent/opendir.c src/dirent/readdir.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/locale/localeconv.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/multibyte/internal.c src/multibyte/mbrtowc.c src/multibyte/mbsinit.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/gethostbyname_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/prng/rand_r.c src/stdio/__lockfile.c src/stdio/__toread.c src/stdio/__uflow.c src/stdio/sscanf.c src/stdio/vfscanf.c src/stdio/vsscanf.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c src/thread/pthread_attr_get.c src/thread/pthread_attr_setdetachstate.c src/thread/pthread_mutex_lock.c src/thread/pthread_mutexattr_destroy.c src/thread/pthread_mutexattr_init.c src/thread/pthread_mutexattr_settype.c', DO NOT EDIT.
+// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_linux_arm64.go -pkgname libc -static-locals-prefix _s -Iarch/aarch64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/__ctype_b_loc.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isupper.c src/ctype/isxdigit.c src/dirent/closedir.c src/dirent/opendir.c src/dirent/readdir.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/locale/localeconv.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/multibyte/internal.c src/multibyte/mbrtowc.c src/multibyte/mbsinit.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/gethostbyname_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/prng/rand_r.c src/stdio/__lockfile.c src/stdio/__toread.c src/stdio/__uflow.c src/stdio/sscanf.c src/stdio/vfscanf.c src/stdio/vsscanf.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c src/thread/pthread_attr_get.c src/thread/pthread_attr_setdetachstate.c src/thread/pthread_mutex_lock.c src/thread/pthread_mutexattr_destroy.c src/thread/pthread_mutexattr_init.c src/thread/pthread_mutexattr_settype.c', DO NOT EDIT.
package libc
@@ -6595,6 +6595,26 @@ func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap va_list) int32 { /* vsscanf.c
return Xvfscanf(tls, bp, fmt, ap)
}
+func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */
+ var try uintptr
+ var sign int32
+ for nel > uint64(0) {
+ try = base + uintptr(width*(nel/uint64(2)))
+ sign = (*struct {
+ f func(*TLS, uintptr, uintptr) int32
+ })(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try)
+ if sign < 0 {
+ nel = nel / uint64(2)
+ } else if sign > 0 {
+ base = try + uintptr(width)
+ nel = nel - (nel/uint64(2) + uint64(1))
+ } else {
+ return try
+ }
+ }
+ return uintptr(0)
+}
+
func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6:20: */
bp := tls.Alloc(232)
defer tls.Free(232)
diff --git a/vendor/modernc.org/libc/musl_linux_s390x.go b/vendor/modernc.org/libc/musl_linux_s390x.go
index 6d55607c..fd790654 100644
--- a/vendor/modernc.org/libc/musl_linux_s390x.go
+++ b/vendor/modernc.org/libc/musl_linux_s390x.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_linux_s390x.go -pkgname libc -static-locals-prefix _s -Iarch/s390x -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/__ctype_b_loc.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isupper.c src/ctype/isxdigit.c src/dirent/closedir.c src/dirent/opendir.c src/dirent/readdir.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/locale/localeconv.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/multibyte/internal.c src/multibyte/mbrtowc.c src/multibyte/mbsinit.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/gethostbyname_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/prng/rand_r.c src/stdio/__lockfile.c src/stdio/__toread.c src/stdio/__uflow.c src/stdio/sscanf.c src/stdio/vfscanf.c src/stdio/vsscanf.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c src/thread/pthread_attr_get.c src/thread/pthread_attr_setdetachstate.c src/thread/pthread_mutex_lock.c src/thread/pthread_mutexattr_destroy.c src/thread/pthread_mutexattr_init.c src/thread/pthread_mutexattr_settype.c', DO NOT EDIT.
+// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_linux_s390x.go -pkgname libc -static-locals-prefix _s -Iarch/s390x -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/__ctype_b_loc.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isupper.c src/ctype/isxdigit.c src/dirent/closedir.c src/dirent/opendir.c src/dirent/readdir.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/locale/localeconv.c src/math/__fpclassify.c src/math/__fpclassifyf.c src/math/__fpclassifyl.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/nanf.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/multibyte/internal.c src/multibyte/mbrtowc.c src/multibyte/mbsinit.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/gethostbyname_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/prng/rand_r.c src/stdio/__lockfile.c src/stdio/__toread.c src/stdio/__uflow.c src/stdio/sscanf.c src/stdio/vfscanf.c src/stdio/vsscanf.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strlcat.c src/string/strlcpy.c src/string/strncasecmp.c src/string/strncat.c src/string/strnlen.c src/string/strspn.c src/string/strtok.c src/thread/pthread_attr_get.c src/thread/pthread_attr_setdetachstate.c src/thread/pthread_mutex_lock.c src/thread/pthread_mutexattr_destroy.c src/thread/pthread_mutexattr_init.c src/thread/pthread_mutexattr_settype.c', DO NOT EDIT.
package libc
@@ -6535,6 +6535,26 @@ func Xvsscanf(tls *TLS, s uintptr, fmt uintptr, ap va_list) int32 { /* vsscanf.c
return Xvfscanf(tls, bp, fmt, ap)
}
+func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */
+ var try uintptr
+ var sign int32
+ for nel > uint64(0) {
+ try = base + uintptr(width*(nel/uint64(2)))
+ sign = (*struct {
+ f func(*TLS, uintptr, uintptr) int32
+ })(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try)
+ if sign < 0 {
+ nel = nel / uint64(2)
+ } else if sign > 0 {
+ base = try + uintptr(width)
+ nel = nel - (nel/uint64(2) + uint64(1))
+ } else {
+ return try
+ }
+ }
+ return uintptr(0)
+}
+
func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6:20: */
bp := tls.Alloc(232)
defer tls.Free(232)
diff --git a/vendor/modernc.org/libc/musl_netbsd_amd64.go b/vendor/modernc.org/libc/musl_netbsd_amd64.go
index 9aeb094a..927bc2e8 100644
--- a/vendor/modernc.org/libc/musl_netbsd_amd64.go
+++ b/vendor/modernc.org/libc/musl_netbsd_amd64.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6,getnameinfo,gethostbyaddr_r, -nostdinc -nostdlib -o ../musl_netbsd_amd64.go -pkgname libc -static-locals-prefix _s -Iarch/x86_64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c ../netbsd/ctype_.cpp.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/stdio/__toread.c src/stdio/__uflow.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strnlen.c src/string/strspn.c', DO NOT EDIT.
+// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6,getnameinfo,gethostbyaddr_r, -nostdinc -nostdlib -o ../musl_netbsd_amd64.go -pkgname libc -static-locals-prefix _s -Iarch/x86_64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c ../netbsd/ctype_.cpp.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/stdio/__toread.c src/stdio/__uflow.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strnlen.c src/string/strspn.c', DO NOT EDIT.
package libc
@@ -432,18 +432,18 @@ var X_C_ctype_tab_ = [257]uint16{
8: uint16(0x0002),
9: uint16(0x0002),
- 10: (uint16((0x0200 |
- 0x0002) |
- 0x0040)),
- 11: (uint16(0x0002 |
- 0x0040)),
- 12: (uint16(0x0002 |
- 0x0040)),
-
- 13: (uint16(0x0002 |
- 0x0040)),
- 14: (uint16(0x0002 |
- 0x0040)),
+ 10: uint16(0x0200 |
+ 0x0002 |
+ 0x0040),
+ 11: uint16(0x0002 |
+ 0x0040),
+ 12: uint16(0x0002 |
+ 0x0040),
+
+ 13: uint16(0x0002 |
+ 0x0040),
+ 14: uint16(0x0002 |
+ 0x0040),
15: uint16(0x0002),
16: uint16(0x0002),
@@ -467,410 +467,410 @@ var X_C_ctype_tab_ = [257]uint16{
31: uint16(0x0002),
32: uint16(0x0002),
- 33: (uint16((0x0200 |
- 0x0400) |
- 0x0040)),
- 34: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 35: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 36: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
-
- 37: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 38: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 39: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 40: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
-
- 41: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 42: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 43: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 44: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
-
- 45: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 46: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 47: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 48: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
-
- 49: (uint16(((0x0004 |
- 0x0008) |
- 0x0400) |
- 0x0100)),
- 50: (uint16(((0x0004 |
- 0x0008) |
- 0x0400) |
- 0x0100)),
- 51: (uint16(((0x0004 |
- 0x0008) |
- 0x0400) |
- 0x0100)),
- 52: (uint16(((0x0004 |
- 0x0008) |
- 0x0400) |
- 0x0100)),
-
- 53: (uint16(((0x0004 |
- 0x0008) |
- 0x0400) |
- 0x0100)),
- 54: (uint16(((0x0004 |
- 0x0008) |
- 0x0400) |
- 0x0100)),
- 55: (uint16(((0x0004 |
- 0x0008) |
- 0x0400) |
- 0x0100)),
- 56: (uint16(((0x0004 |
- 0x0008) |
- 0x0400) |
- 0x0100)),
-
- 57: (uint16(((0x0004 |
- 0x0008) |
- 0x0400) |
- 0x0100)),
- 58: (uint16(((0x0004 |
- 0x0008) |
- 0x0400) |
- 0x0100)),
- 59: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 60: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
-
- 61: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 62: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 63: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 64: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
-
- 65: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 66: (uint16((((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080) |
- 0x0100)),
- 67: (uint16((((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080) |
- 0x0100)),
- 68: (uint16((((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080) |
- 0x0100)),
-
- 69: (uint16((((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080) |
- 0x0100)),
- 70: (uint16((((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080) |
- 0x0100)),
- 71: (uint16((((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080) |
- 0x0100)),
- 72: (uint16(((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080)),
-
- 73: (uint16(((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080)),
- 74: (uint16(((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080)),
- 75: (uint16(((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080)),
- 76: (uint16(((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080)),
-
- 77: (uint16(((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080)),
- 78: (uint16(((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080)),
- 79: (uint16(((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080)),
- 80: (uint16(((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080)),
-
- 81: (uint16(((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080)),
- 82: (uint16(((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080)),
- 83: (uint16(((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080)),
- 84: (uint16(((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080)),
-
- 85: (uint16(((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080)),
- 86: (uint16(((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080)),
- 87: (uint16(((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080)),
- 88: (uint16(((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080)),
-
- 89: (uint16(((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080)),
- 90: (uint16(((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080)),
- 91: (uint16(((0x0001 |
- 0x0008) |
- 0x0400) |
- 0x0080)),
- 92: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
-
- 93: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 94: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 95: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 96: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
-
- 97: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 98: (uint16((((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400) |
- 0x0100)),
- 99: (uint16((((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400) |
- 0x0100)),
- 100: (uint16((((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400) |
- 0x0100)),
-
- 101: (uint16((((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400) |
- 0x0100)),
- 102: (uint16((((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400) |
- 0x0100)),
- 103: (uint16((((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400) |
- 0x0100)),
- 104: (uint16(((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400)),
-
- 105: (uint16(((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400)),
- 106: (uint16(((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400)),
- 107: (uint16(((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400)),
- 108: (uint16(((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400)),
-
- 109: (uint16(((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400)),
- 110: (uint16(((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400)),
- 111: (uint16(((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400)),
- 112: (uint16(((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400)),
-
- 113: (uint16(((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400)),
- 114: (uint16(((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400)),
- 115: (uint16(((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400)),
- 116: (uint16(((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400)),
-
- 117: (uint16(((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400)),
- 118: (uint16(((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400)),
- 119: (uint16(((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400)),
- 120: (uint16(((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400)),
-
- 121: (uint16(((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400)),
- 122: (uint16(((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400)),
- 123: (uint16(((0x0001 |
- 0x0008) |
- 0x0010) |
- 0x0400)),
- 124: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
-
- 125: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 126: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
- 127: (uint16((0x0008 |
- 0x0400) |
- 0x0020)),
+ 33: uint16(0x0200 |
+ 0x0400 |
+ 0x0040),
+ 34: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 35: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 36: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+
+ 37: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 38: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 39: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 40: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+
+ 41: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 42: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 43: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 44: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+
+ 45: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 46: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 47: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 48: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+
+ 49: uint16(0x0004 |
+ 0x0008 |
+ 0x0400 |
+ 0x0100),
+ 50: uint16(0x0004 |
+ 0x0008 |
+ 0x0400 |
+ 0x0100),
+ 51: uint16(0x0004 |
+ 0x0008 |
+ 0x0400 |
+ 0x0100),
+ 52: uint16(0x0004 |
+ 0x0008 |
+ 0x0400 |
+ 0x0100),
+
+ 53: uint16(0x0004 |
+ 0x0008 |
+ 0x0400 |
+ 0x0100),
+ 54: uint16(0x0004 |
+ 0x0008 |
+ 0x0400 |
+ 0x0100),
+ 55: uint16(0x0004 |
+ 0x0008 |
+ 0x0400 |
+ 0x0100),
+ 56: uint16(0x0004 |
+ 0x0008 |
+ 0x0400 |
+ 0x0100),
+
+ 57: uint16(0x0004 |
+ 0x0008 |
+ 0x0400 |
+ 0x0100),
+ 58: uint16(0x0004 |
+ 0x0008 |
+ 0x0400 |
+ 0x0100),
+ 59: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 60: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+
+ 61: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 62: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 63: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 64: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+
+ 65: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 66: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080 |
+ 0x0100),
+ 67: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080 |
+ 0x0100),
+ 68: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080 |
+ 0x0100),
+
+ 69: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080 |
+ 0x0100),
+ 70: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080 |
+ 0x0100),
+ 71: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080 |
+ 0x0100),
+ 72: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080),
+
+ 73: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080),
+ 74: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080),
+ 75: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080),
+ 76: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080),
+
+ 77: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080),
+ 78: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080),
+ 79: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080),
+ 80: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080),
+
+ 81: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080),
+ 82: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080),
+ 83: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080),
+ 84: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080),
+
+ 85: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080),
+ 86: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080),
+ 87: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080),
+ 88: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080),
+
+ 89: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080),
+ 90: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080),
+ 91: uint16(0x0001 |
+ 0x0008 |
+ 0x0400 |
+ 0x0080),
+ 92: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+
+ 93: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 94: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 95: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 96: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+
+ 97: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 98: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400 |
+ 0x0100),
+ 99: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400 |
+ 0x0100),
+ 100: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400 |
+ 0x0100),
+
+ 101: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400 |
+ 0x0100),
+ 102: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400 |
+ 0x0100),
+ 103: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400 |
+ 0x0100),
+ 104: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400),
+
+ 105: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400),
+ 106: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400),
+ 107: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400),
+ 108: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400),
+
+ 109: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400),
+ 110: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400),
+ 111: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400),
+ 112: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400),
+
+ 113: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400),
+ 114: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400),
+ 115: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400),
+ 116: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400),
+
+ 117: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400),
+ 118: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400),
+ 119: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400),
+ 120: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400),
+
+ 121: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400),
+ 122: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400),
+ 123: uint16(0x0001 |
+ 0x0008 |
+ 0x0010 |
+ 0x0400),
+ 124: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+
+ 125: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 126: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
+ 127: uint16(0x0008 |
+ 0x0400 |
+ 0x0020),
128: uint16(0x0002),
} /* ctype_.cpp.c:601:22 */
var X_ctype_tab_ uintptr = 0 /* ctype_.cpp.c:2233:22 */
func __isspace(tls *TLS, _c int32) int32 { /* ctype.h:26:21: */
- return (Bool32((_c == ' ') || ((uint32(_c) - uint32('\t')) < uint32(5))))
+ return Bool32(_c == ' ' || uint32(_c)-uint32('\t') < uint32(5))
}
type locale_t1 = uintptr /* alltypes.h:343:32 */
func Xisalnum(tls *TLS, c int32) int32 { /* isalnum.c:3:5: */
- return (Bool32((func() int32 {
+ return Bool32(func() int32 {
if 0 != 0 {
return Xisalpha(tls, c)
}
- return (Bool32((((uint32(c)) | uint32(32)) - uint32('a')) < uint32(26)))
- }() != 0) || (func() int32 {
+ return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26))
+ }() != 0 || func() int32 {
if 0 != 0 {
return Xisdigit(tls, c)
}
- return (Bool32(((uint32(c)) - uint32('0')) < uint32(10)))
- }() != 0)))
+ return Bool32(uint32(c)-uint32('0') < uint32(10))
+ }() != 0)
}
func X__isalnum_l(tls *TLS, c int32, l locale_t1) int32 { /* isalnum.c:8:5: */
@@ -878,7 +878,7 @@ func X__isalnum_l(tls *TLS, c int32, l locale_t1) int32 { /* isalnum.c:8:5: */
}
func Xisalpha(tls *TLS, c int32) int32 { /* isalpha.c:4:5: */
- return (Bool32(((uint32(c) | uint32(32)) - uint32('a')) < uint32(26)))
+ return Bool32(uint32(c)|uint32(32)-uint32('a') < uint32(26))
}
func X__isalpha_l(tls *TLS, c int32, l locale_t1) int32 { /* isalpha.c:9:5: */
@@ -886,7 +886,7 @@ func X__isalpha_l(tls *TLS, c int32, l locale_t1) int32 { /* isalpha.c:9:5: */
}
func Xisdigit(tls *TLS, c int32) int32 { /* isdigit.c:4:5: */
- return (Bool32((uint32(c) - uint32('0')) < uint32(10)))
+ return Bool32(uint32(c)-uint32('0') < uint32(10))
}
func X__isdigit_l(tls *TLS, c int32, l locale_t1) int32 { /* isdigit.c:9:5: */
@@ -995,8 +995,8 @@ func __FLOAT_BITS(tls *TLS, __f float32) uint32 { /* math.h:55:26: */
// var __u struct {__f float32;} at bp, 4
- *(*float32)(unsafe.Pointer(bp /* &__u */)) = __f
- return *(*uint32)(unsafe.Pointer(bp /* &__u */))
+ *(*float32)(unsafe.Pointer(bp)) = __f
+ return *(*uint32)(unsafe.Pointer(bp))
}
func __DOUBLE_BITS(tls *TLS, __f float64) uint64 { /* math.h:61:36: */
@@ -1005,8 +1005,8 @@ func __DOUBLE_BITS(tls *TLS, __f float64) uint64 { /* math.h:61:36: */
// var __u struct {__f float64;} at bp, 8
- *(*float64)(unsafe.Pointer(bp /* &__u */)) = __f
- return *(*uint64)(unsafe.Pointer(bp /* &__u */))
+ *(*float64)(unsafe.Pointer(bp)) = __f
+ return *(*uint64)(unsafe.Pointer(bp))
}
type syscall_arg_t = int64 /* syscall.h:22:14 */
@@ -1018,57 +1018,57 @@ func scanexp(tls *TLS, f uintptr, pok int32) int64 { /* floatscan.c:37:18: */
var neg int32 = 0
c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
}()
- if (c == '+') || (c == '-') {
- neg = (Bool32(c == '-'))
+ if c == '+' || c == '-' {
+ neg = Bool32(c == '-')
c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
}()
- if ((uint32(c - '0')) >= 10) && (pok != 0) {
- if (*FILE1)(unsafe.Pointer((f))).shlim >= int64(0) {
+ if uint32(c-'0') >= 10 && pok != 0 {
+ if (*FILE1)(unsafe.Pointer(f)).shlim >= int64(0) {
(*FILE1)(unsafe.Pointer(f)).rpos--
} else {
}
}
}
- if (uint32(c - '0')) >= 10 {
- if (*FILE1)(unsafe.Pointer((f))).shlim >= int64(0) {
+ if uint32(c-'0') >= 10 {
+ if (*FILE1)(unsafe.Pointer(f)).shlim >= int64(0) {
(*FILE1)(unsafe.Pointer(f)).rpos--
} else {
}
- return (-0x7fffffffffffffff - int64(1))
+ return -0x7fffffffffffffff - int64(1)
}
- for x = 0; ((uint32(c - '0')) < 10) && (x < (0x7fffffff / 10)); c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ for x = 0; uint32(c-'0') < 10 && x < 0x7fffffff/10; c = func() int32 {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
}() {
- x = (((10 * x) + c) - '0')
+ x = 10*x + c - '0'
}
- for y = int64(x); ((uint32(c - '0')) < 10) && (y < (0x7fffffffffffffff / int64(100))); c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ for y = int64(x); uint32(c-'0') < 10 && y < 0x7fffffffffffffff/int64(100); c = func() int32 {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
}() {
- y = (((int64(10) * y) + int64(c)) - int64('0'))
+ y = int64(10)*y + int64(c) - int64('0')
}
- for ; (uint32(c - '0')) < 10; c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ for ; uint32(c-'0') < 10; c = func() int32 {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
}() {
}
- if (*FILE1)(unsafe.Pointer((f))).shlim >= int64(0) {
+ if (*FILE1)(unsafe.Pointer(f)).shlim >= int64(0) {
(*FILE1)(unsafe.Pointer(f)).rpos--
} else {
}
@@ -1097,7 +1097,7 @@ func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
var gotrad int32 = 0
var rp int32
var e2 int32
- var emax int32 = ((-emin - bits) + 3)
+ var emax int32 = -emin - bits + 3
var denormal int32 = 0
var y float64
var frac float64 = float64(0)
@@ -1108,7 +1108,7 @@ func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
// Don't let leading zeros consume buffer space
for ; c == '0'; c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
@@ -1118,12 +1118,12 @@ func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
if c == '.' {
gotrad = 1
for c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
}(); c == '0'; c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
@@ -1133,9 +1133,9 @@ func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
}
}
- *(*uint32_t)(unsafe.Pointer(bp /* &x[0] */)) = uint32_t(0)
- for ; ((uint32(c - '0')) < 10) || (c == '.'); c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ *(*uint32_t)(unsafe.Pointer(bp)) = uint32_t(0)
+ for ; uint32(c-'0') < 10 || c == '.'; c = func() int32 {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
@@ -1146,15 +1146,15 @@ func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
}
gotrad = 1
lrp = dc
- } else if k < (128 - 3) {
+ } else if k < 128-3 {
dc++
if c != '0' {
lnz = int32(dc)
}
if j != 0 {
- *(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(k)*4)) = (((*(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(k)*4)) * uint32_t(10)) + uint32_t(c)) - uint32_t('0'))
+ *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))*uint32_t(10) + uint32_t(c) - uint32_t('0')
} else {
- *(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(k)*4)) = (uint32_t(c - '0'))
+ *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = uint32_t(c - '0')
}
if PreIncInt32(&j, 1) == 9 {
k++
@@ -1164,8 +1164,8 @@ func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
} else {
dc++
if c != '0' {
- lnz = ((128 - 4) * 9)
- *(*uint32_t)(unsafe.Pointer(bp /* &x */ + 124*4)) |= (uint32_t(1))
+ lnz = (128 - 4) * 9
+ *(*uint32_t)(unsafe.Pointer(bp + 124*4)) |= uint32_t(1)
}
}
}
@@ -1173,11 +1173,11 @@ func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
lrp = dc
}
- if (gotdig != 0) && ((c | 32) == 'e') {
+ if gotdig != 0 && c|32 == 'e' {
e10 = scanexp(tls, f, pok)
- if e10 == (-0x7fffffffffffffff - int64(1)) {
+ if e10 == -0x7fffffffffffffff-int64(1) {
if pok != 0 {
- if (*FILE1)(unsafe.Pointer((f))).shlim >= int64(0) {
+ if (*FILE1)(unsafe.Pointer(f)).shlim >= int64(0) {
(*FILE1)(unsafe.Pointer(f)).rpos--
} else {
}
@@ -1187,41 +1187,41 @@ func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
}
e10 = int64(0)
}
- lrp = lrp + (e10)
+ lrp = lrp + e10
} else if c >= 0 {
- if (*FILE1)(unsafe.Pointer((f))).shlim >= int64(0) {
+ if (*FILE1)(unsafe.Pointer(f)).shlim >= int64(0) {
(*FILE1)(unsafe.Pointer(f)).rpos--
} else {
}
}
if !(gotdig != 0) {
- (*(*int32)(unsafe.Pointer(X___errno_location(tls)))) = 22
+ *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22
X__shlim(tls, f, int64(0))
return float64(0)
}
// Handle zero specially to avoid nasty special cases later
- if !(int32(*(*uint32_t)(unsafe.Pointer(bp /* &x[0] */))) != 0) {
- return (float64(sign) * 0.0)
+ if !(int32(*(*uint32_t)(unsafe.Pointer(bp))) != 0) {
+ return float64(sign) * 0.0
}
// Optimize small integers (w/no exponent) and over/under-flow
- if ((lrp == dc) && (dc < int64(10))) && ((bits > 30) || ((*(*uint32_t)(unsafe.Pointer(bp /* &x[0] */)) >> bits) == uint32_t(0))) {
- return (float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp /* &x[0] */))))
+ if lrp == dc && dc < int64(10) && (bits > 30 || *(*uint32_t)(unsafe.Pointer(bp))>>bits == uint32_t(0)) {
+ return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp)))
}
- if lrp > (int64(-emin / 2)) {
- (*(*int32)(unsafe.Pointer(X___errno_location(tls)))) = 34
- return ((float64(sign) * 1.79769313486231570815e+308) * 1.79769313486231570815e+308)
+ if lrp > int64(-emin/2) {
+ *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34
+ return float64(sign) * 1.79769313486231570815e+308 * 1.79769313486231570815e+308
}
- if lrp < (int64(emin - (2 * 53))) {
- (*(*int32)(unsafe.Pointer(X___errno_location(tls)))) = 34
- return ((float64(sign) * 2.22507385850720138309e-308) * 2.22507385850720138309e-308)
+ if lrp < int64(emin-2*53) {
+ *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34
+ return float64(sign) * 2.22507385850720138309e-308 * 2.22507385850720138309e-308
}
// Align incomplete final B1B digit
if j != 0 {
for ; j < 9; j++ {
- *(*uint32_t)(unsafe.Pointer(bp /* &x */ + uintptr(k)*4)) *= (uint32_t(10))
+ *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) *= uint32_t(10)
}
k++
j = 0
@@ -1233,62 +1233,62 @@ func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
rp = int32(lrp)
// Optimize small to mid-size integers (even in exp. notation)
- if ((lnz < 9) && (lnz <= rp)) && (rp < 18) {
+ if lnz < 9 && lnz <= rp && rp < 18 {
if rp == 9 {
- return (float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp /* &x[0] */))))
+ return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp)))
}
if rp < 9 {
- return ((float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp /* &x[0] */)))) / float64(_sp10s[(8-rp)]))
+ return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) / float64(_sp10s[8-rp])
}
- var bitlim int32 = (bits - (3 * (rp - 9)))
- if (bitlim > 30) || ((*(*uint32_t)(unsafe.Pointer(bp /* &x[0] */)) >> bitlim) == uint32_t(0)) {
- return ((float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp /* &x[0] */)))) * float64(_sp10s[(rp-10)]))
+ var bitlim int32 = bits - 3*(rp-9)
+ if bitlim > 30 || *(*uint32_t)(unsafe.Pointer(bp))>>bitlim == uint32_t(0) {
+ return float64(sign) * float64(*(*uint32_t)(unsafe.Pointer(bp))) * float64(_sp10s[rp-10])
}
}
// Drop trailing zeros
- for ; !(int32(*(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr((z-1))*4))) != 0); z-- {
+ for ; !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(z-1)*4))) != 0); z-- {
}
// Align radix point to B1B digit boundary
- if (rp % 9) != 0 {
+ if rp%9 != 0 {
var rpm9 int32
if rp >= 0 {
- rpm9 = (rp % 9)
+ rpm9 = rp % 9
} else {
- rpm9 = ((rp % 9) + 9)
+ rpm9 = rp%9 + 9
}
- var p10 int32 = _sp10s[(8 - rpm9)]
+ var p10 int32 = _sp10s[8-rpm9]
var carry uint32_t = uint32_t(0)
for k = a; k != z; k++ {
- var tmp uint32_t = (*(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(k)*4)) % uint32_t(p10))
- *(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(k)*4)) = ((*(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(k)*4)) / uint32_t(p10)) + carry)
- carry = ((uint32_t(1000000000 / p10)) * tmp)
- if (k == a) && !(int32(*(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(k)*4))) != 0) {
- a = ((a + 1) & (128 - 1))
- rp = rp - (9)
+ var tmp uint32_t = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) % uint32_t(p10)
+ *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))/uint32_t(p10) + carry
+ carry = uint32_t(1000000000/p10) * tmp
+ if k == a && !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))) != 0) {
+ a = (a + 1) & (128 - 1)
+ rp = rp - 9
}
}
if carry != 0 {
- *(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(PostIncInt32(&z, 1))*4)) = carry
+ *(*uint32_t)(unsafe.Pointer(bp + uintptr(PostIncInt32(&z, 1))*4)) = carry
}
rp = rp + (9 - rpm9)
}
// Upscale until desired number of bits are left of radix point
- for (rp < (9 * 2)) || ((rp == (9 * 2)) && (*(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(a)*4)) < _sth[0])) {
+ for rp < 9*2 || rp == 9*2 && *(*uint32_t)(unsafe.Pointer(bp + uintptr(a)*4)) < _sth[0] {
var carry uint32_t = uint32_t(0)
- e2 = e2 - (29)
- for k = ((z - 1) & (128 - 1)); ; k = ((k - 1) & (128 - 1)) {
- var tmp uint64_t = ((uint64_t(*(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(k)*4))) << 29) + uint64_t(carry))
+ e2 = e2 - 29
+ for k = (z - 1) & (128 - 1); ; k = (k - 1) & (128 - 1) {
+ var tmp uint64_t = uint64_t(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)))<<29 + uint64_t(carry)
if tmp > uint64(1000000000) {
- carry = (uint32_t(tmp / uint64(1000000000)))
- *(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(k)*4)) = (uint32_t(tmp % uint64(1000000000)))
+ carry = uint32_t(tmp / uint64(1000000000))
+ *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = uint32_t(tmp % uint64(1000000000))
} else {
carry = uint32_t(0)
- *(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(k)*4)) = uint32_t(tmp)
+ *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = uint32_t(tmp)
}
- if ((k == ((z - 1) & (128 - 1))) && (k != a)) && !(int32(*(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(k)*4))) != 0) {
+ if k == (z-1)&(128-1) && k != a && !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))) != 0) {
z = k
}
if k == a {
@@ -1296,13 +1296,13 @@ func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
}
}
if carry != 0 {
- rp = rp + (9)
- a = ((a - 1) & (128 - 1))
+ rp = rp + 9
+ a = (a - 1) & (128 - 1)
if a == z {
- z = ((z - 1) & (128 - 1))
- *(*uint32_t)(unsafe.Pointer(bp /* &x */ + uintptr(((z-1)&(128-1)))*4)) |= (*(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(z)*4)))
+ z = (z - 1) & (128 - 1)
+ *(*uint32_t)(unsafe.Pointer(bp + uintptr((z-1)&(128-1))*4)) |= *(*uint32_t)(unsafe.Pointer(bp + uintptr(z)*4))
}
- *(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(a)*4)) = carry
+ *(*uint32_t)(unsafe.Pointer(bp + uintptr(a)*4)) = carry
}
}
@@ -1311,56 +1311,56 @@ func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
var carry uint32_t = uint32_t(0)
var sh int32 = 1
for i = 0; i < 2; i++ {
- k = ((a + i) & (128 - 1))
- if (k == z) || (*(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(k)*4)) < _sth[i]) {
+ k = (a + i) & (128 - 1)
+ if k == z || *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) < _sth[i] {
i = 2
break
}
- if *(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(((a+i)&(128-1)))*4)) > _sth[i] {
+ if *(*uint32_t)(unsafe.Pointer(bp + uintptr((a+i)&(128-1))*4)) > _sth[i] {
break
}
}
- if (i == 2) && (rp == (9 * 2)) {
+ if i == 2 && rp == 9*2 {
break
}
// FIXME: find a way to compute optimal sh
- if rp > (9 + (9 * 2)) {
+ if rp > 9+9*2 {
sh = 9
}
- e2 = e2 + (sh)
- for k = a; k != z; k = ((k + 1) & (128 - 1)) {
- var tmp uint32_t = (*(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(k)*4)) & (uint32_t((int32(1) << sh) - 1)))
- *(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(k)*4)) = ((*(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(k)*4)) >> sh) + carry)
- carry = ((uint32_t(int32(1000000000) >> sh)) * tmp)
- if (k == a) && !(int32(*(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(k)*4))) != 0) {
- a = ((a + 1) & (128 - 1))
+ e2 = e2 + sh
+ for k = a; k != z; k = (k + 1) & (128 - 1) {
+ var tmp uint32_t = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) & uint32_t(int32(1)<<sh-1)
+ *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4)) = *(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))>>sh + carry
+ carry = uint32_t(int32(1000000000)>>sh) * tmp
+ if k == a && !(int32(*(*uint32_t)(unsafe.Pointer(bp + uintptr(k)*4))) != 0) {
+ a = (a + 1) & (128 - 1)
i--
- rp = rp - (9)
+ rp = rp - 9
}
}
if carry != 0 {
- if ((z + 1) & (128 - 1)) != a {
- *(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(z)*4)) = carry
- z = ((z + 1) & (128 - 1))
+ if (z+1)&(128-1) != a {
+ *(*uint32_t)(unsafe.Pointer(bp + uintptr(z)*4)) = carry
+ z = (z + 1) & (128 - 1)
} else {
- *(*uint32_t)(unsafe.Pointer(bp /* &x */ + uintptr(((z-1)&(128-1)))*4)) |= (uint32_t(1))
+ *(*uint32_t)(unsafe.Pointer(bp + uintptr((z-1)&(128-1))*4)) |= uint32_t(1)
}
}
}
// Assemble desired bits into floating point variable
for y = float64(AssignInt32(&i, 0)); i < 2; i++ {
- if ((a + i) & (128 - 1)) == z {
- *(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(((AssignInt32(&z, ((z+1)&(128-1))))-1))*4)) = uint32_t(0)
+ if (a+i)&(128-1) == z {
+ *(*uint32_t)(unsafe.Pointer(bp + uintptr(AssignInt32(&z, (z+1)&(128-1))-1)*4)) = uint32_t(0)
}
- y = ((1000000000.0 * y) + float64(*(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(((a+i)&(128-1)))*4))))
+ y = 1000000000.0*y + float64(*(*uint32_t)(unsafe.Pointer(bp + uintptr((a+i)&(128-1))*4)))
}
- y = y * (float64(sign))
+ y = y * float64(sign)
// Limit precision for denormal results
- if bits > ((53 + e2) - emin) {
- bits = ((53 + e2) - emin)
+ if bits > 53+e2-emin {
+ bits = 53 + e2 - emin
if bits < 0 {
bits = 0
}
@@ -1369,44 +1369,44 @@ func decfloat(tls *TLS, f uintptr, c int32, bits int32, emin int32, sign int32,
// Calculate bias term to force rounding, move out lower bits
if bits < 53 {
- bias = Xcopysignl(tls, Xscalbn(tls, float64(1), (((2*53)-bits)-1)), y)
- frac = Xfmodl(tls, y, Xscalbn(tls, float64(1), (53-bits)))
- y = y - (frac)
- y = y + (bias)
+ bias = Xcopysignl(tls, Xscalbn(tls, float64(1), 2*53-bits-1), y)
+ frac = Xfmodl(tls, y, Xscalbn(tls, float64(1), 53-bits))
+ y = y - frac
+ y = y + bias
}
// Process tail of decimal input so it can affect rounding
- if ((a + i) & (128 - 1)) != z {
- var t uint32_t = *(*uint32_t)(unsafe.Pointer(bp /* &x[0] */ + uintptr(((a+i)&(128-1)))*4))
- if (t < uint32_t(500000000)) && ((t != 0) || ((((a + i) + 1) & (128 - 1)) != z)) {
- frac = frac + (0.25 * float64(sign))
+ if (a+i)&(128-1) != z {
+ var t uint32_t = *(*uint32_t)(unsafe.Pointer(bp + uintptr((a+i)&(128-1))*4))
+ if t < uint32_t(500000000) && (t != 0 || (a+i+1)&(128-1) != z) {
+ frac = frac + 0.25*float64(sign)
} else if t > uint32_t(500000000) {
- frac = frac + (0.75 * float64(sign))
+ frac = frac + 0.75*float64(sign)
} else if t == uint32_t(500000000) {
- if (((a + i) + 1) & (128 - 1)) == z {
- frac = frac + (0.5 * float64(sign))
+ if (a+i+1)&(128-1) == z {
+ frac = frac + 0.5*float64(sign)
} else {
- frac = frac + (0.75 * float64(sign))
+ frac = frac + 0.75*float64(sign)
}
}
- if ((53 - bits) >= 2) && !(Xfmodl(tls, frac, float64(1)) != 0) {
+ if 53-bits >= 2 && !(Xfmodl(tls, frac, float64(1)) != 0) {
frac += 1
}
}
- y = y + (frac)
- y = y - (bias)
+ y = y + frac
+ y = y - bias
- if ((e2 + 53) & 0x7fffffff) > (emax - 5) {
- if Xfabsl(tls, y) >= (float64(float64(2)) / 2.22044604925031308085e-16) {
- if (denormal != 0) && (bits == ((53 + e2) - emin)) {
+ if (e2+53)&0x7fffffff > emax-5 {
+ if Xfabsl(tls, y) >= float64(float64(2))/2.22044604925031308085e-16 {
+ if denormal != 0 && bits == 53+e2-emin {
denormal = 0
}
- y = y * (0.5)
+ y = y * 0.5
e2++
}
- if ((e2 + 53) > emax) || ((denormal != 0) && (frac != 0)) {
- (*(*int32)(unsafe.Pointer(X___errno_location(tls)))) = 34
+ if e2+53 > emax || denormal != 0 && frac != 0 {
+ *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34
}
}
@@ -1432,7 +1432,7 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32
var c int32
c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
@@ -1440,7 +1440,7 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32
// Skip leading zeros
for ; c == '0'; c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
@@ -1451,7 +1451,7 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32
if c == '.' {
gotrad = 1
c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
@@ -1466,7 +1466,7 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32
goto __2
__2:
c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
@@ -1477,8 +1477,8 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32
__3:
}
- for ; (((uint32(c - '0')) < 10) || ((uint32((c | 32) - 'a')) < 6)) || (c == '.'); c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ for ; uint32(c-'0') < 10 || uint32(c|32-'a') < 6 || c == '.'; c = func() int32 {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
@@ -1492,33 +1492,33 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32
} else {
gotdig = 1
if c > '9' {
- d = (((c | 32) + 10) - 'a')
+ d = c | 32 + 10 - 'a'
} else {
- d = (c - '0')
+ d = c - '0'
}
if dc < int64(8) {
- x = ((x * uint32_t(16)) + uint32_t(d))
- } else if dc < (int64((53 / 4) + 1)) {
- y = y + (float64(d) * (AssignDivFloat64(&scale, float64(16))))
- } else if (d != 0) && !(gottail != 0) {
- y = y + (0.5 * scale)
+ x = x*uint32_t(16) + uint32_t(d)
+ } else if dc < int64(53/4+1) {
+ y = y + float64(d)*AssignDivFloat64(&scale, float64(16))
+ } else if d != 0 && !(gottail != 0) {
+ y = y + 0.5*scale
gottail = 1
}
dc++
}
}
if !(gotdig != 0) {
- if (*FILE1)(unsafe.Pointer((f))).shlim >= int64(0) {
+ if (*FILE1)(unsafe.Pointer(f)).shlim >= int64(0) {
(*FILE1)(unsafe.Pointer(f)).rpos--
} else {
}
if pok != 0 {
- if (*FILE1)(unsafe.Pointer((f))).shlim >= int64(0) {
+ if (*FILE1)(unsafe.Pointer(f)).shlim >= int64(0) {
(*FILE1)(unsafe.Pointer(f)).rpos--
} else {
}
if gotrad != 0 {
- if (*FILE1)(unsafe.Pointer((f))).shlim >= int64(0) {
+ if (*FILE1)(unsafe.Pointer(f)).shlim >= int64(0) {
(*FILE1)(unsafe.Pointer(f)).rpos--
} else {
}
@@ -1526,20 +1526,20 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32
} else {
X__shlim(tls, f, int64(0))
}
- return (float64(sign) * 0.0)
+ return float64(sign) * 0.0
}
if !(gotrad != 0) {
rp = dc
}
for dc < int64(8) {
- x = x * (uint32_t(16))
+ x = x * uint32_t(16)
dc++
}
- if (c | 32) == 'p' {
+ if c|32 == 'p' {
e2 = scanexp(tls, f, pok)
- if e2 == (-0x7fffffffffffffff - int64(1)) {
+ if e2 == -0x7fffffffffffffff-int64(1) {
if pok != 0 {
- if (*FILE1)(unsafe.Pointer((f))).shlim >= int64(0) {
+ if (*FILE1)(unsafe.Pointer(f)).shlim >= int64(0) {
(*FILE1)(unsafe.Pointer(f)).rpos--
} else {
}
@@ -1550,23 +1550,23 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32
e2 = int64(0)
}
} else {
- if (*FILE1)(unsafe.Pointer((f))).shlim >= int64(0) {
+ if (*FILE1)(unsafe.Pointer(f)).shlim >= int64(0) {
(*FILE1)(unsafe.Pointer(f)).rpos--
} else {
}
}
- e2 = e2 + ((int64(4) * rp) - int64(32))
+ e2 = e2 + (int64(4)*rp - int64(32))
if !(x != 0) {
- return (float64(sign) * 0.0)
+ return float64(sign) * 0.0
}
if e2 > int64(-emin) {
- (*(*int32)(unsafe.Pointer(X___errno_location(tls)))) = 34
- return ((float64(sign) * 1.79769313486231570815e+308) * 1.79769313486231570815e+308)
+ *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34
+ return float64(sign) * 1.79769313486231570815e+308 * 1.79769313486231570815e+308
}
- if e2 < (int64(emin - (2 * 53))) {
- (*(*int32)(unsafe.Pointer(X___errno_location(tls)))) = 34
- return ((float64(sign) * 2.22507385850720138309e-308) * 2.22507385850720138309e-308)
+ if e2 < int64(emin-2*53) {
+ *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34
+ return float64(sign) * 2.22507385850720138309e-308 * 2.22507385850720138309e-308
}
for x < 0x80000000 {
@@ -1574,33 +1574,33 @@ func hexfloat(tls *TLS, f uintptr, bits int32, emin int32, sign int32, pok int32
x = x + (x + uint32_t(1))
y = y + (y - float64(1))
} else {
- x = x + (x)
- y = y + (y)
+ x = x + x
+ y = y + y
}
e2--
}
- if int64(bits) > ((int64(32) + e2) - int64(emin)) {
- bits = (int32((int64(32) + e2) - int64(emin)))
+ if int64(bits) > int64(32)+e2-int64(emin) {
+ bits = int32(int64(32) + e2 - int64(emin))
if bits < 0 {
bits = 0
}
}
if bits < 53 {
- bias = Xcopysignl(tls, Xscalbn(tls, float64(1), (((32+53)-bits)-1)), float64(sign))
+ bias = Xcopysignl(tls, Xscalbn(tls, float64(1), 32+53-bits-1), float64(sign))
}
- if ((bits < 32) && (y != 0)) && !((x & uint32_t(1)) != 0) {
+ if bits < 32 && y != 0 && !(x&uint32_t(1) != 0) {
x++
y = float64(0)
}
- y = ((bias + (float64(sign) * float64(x))) + (float64(sign) * y))
- y = y - (bias)
+ y = bias + float64(sign)*float64(x) + float64(sign)*y
+ y = y - bias
if !(y != 0) {
- (*(*int32)(unsafe.Pointer(X___errno_location(tls)))) = 34
+ *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34
}
return Xscalbnl(tls, y, int32(e2))
@@ -1616,70 +1616,70 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* float
switch prec {
case 0:
bits = 24
- emin = ((-125) - bits)
+ emin = -125 - bits
break
case 1:
bits = 53
- emin = ((-1021) - bits)
+ emin = -1021 - bits
break
case 2:
bits = 53
- emin = ((-1021) - bits)
+ emin = -1021 - bits
break
default:
return float64(0)
}
for __isspace(tls, AssignInt32(&c, func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
}())) != 0 {
}
- if (c == '+') || (c == '-') {
- sign = sign - (2 * (Bool32(c == '-')))
+ if c == '+' || c == '-' {
+ sign = sign - 2*Bool32(c == '-')
c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
}()
}
- for i = uint64(0); (i < uint64(8)) && ((c | 32) == int32(*(*int8)(unsafe.Pointer(ts /* "infinity" */ + uintptr(i))))); i++ {
+ for i = uint64(0); i < uint64(8) && c|32 == int32(*(*int8)(unsafe.Pointer(ts /* "infinity" */ + uintptr(i)))); i++ {
if i < uint64(7) {
c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
}()
}
}
- if ((i == uint64(3)) || (i == uint64(8))) || ((i > uint64(3)) && (pok != 0)) {
+ if i == uint64(3) || i == uint64(8) || i > uint64(3) && pok != 0 {
if i != uint64(8) {
- if (*FILE1)(unsafe.Pointer((f))).shlim >= int64(0) {
+ if (*FILE1)(unsafe.Pointer(f)).shlim >= int64(0) {
(*FILE1)(unsafe.Pointer(f)).rpos--
} else {
}
if pok != 0 {
for ; i > uint64(3); i-- {
- if (*FILE1)(unsafe.Pointer((f))).shlim >= int64(0) {
+ if (*FILE1)(unsafe.Pointer(f)).shlim >= int64(0) {
(*FILE1)(unsafe.Pointer(f)).rpos--
} else {
}
}
}
}
- return (float64(float32(sign) * X__builtin_inff(tls)))
+ return float64(float32(sign) * X__builtin_inff(tls))
}
if !(i != 0) {
- for i = uint64(0); (i < uint64(3)) && ((c | 32) == int32(*(*int8)(unsafe.Pointer(ts + 9 /* "nan" */ + uintptr(i))))); i++ {
+ for i = uint64(0); i < uint64(3) && c|32 == int32(*(*int8)(unsafe.Pointer(ts + 9 /* "nan" */ + uintptr(i)))); i++ {
if i < uint64(2) {
c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
@@ -1688,72 +1688,72 @@ func X__floatscan(tls *TLS, f uintptr, prec int32, pok int32) float64 { /* float
}
}
if i == uint64(3) {
- if (func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if func() int32 {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
- }()) != '(' {
- if (*FILE1)(unsafe.Pointer((f))).shlim >= int64(0) {
+ }() != '(' {
+ if (*FILE1)(unsafe.Pointer(f)).shlim >= int64(0) {
(*FILE1)(unsafe.Pointer(f)).rpos--
} else {
}
- return float64(X__builtin_nanf(tls, ts+13 /* "" */))
+ return float64(X__builtin_nanf(tls, ts+13))
}
for i = uint64(1); ; i++ {
c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
}()
- if ((((uint32(c - '0')) < 10) || ((uint32(c - 'A')) < 26)) || ((uint32(c - 'a')) < 26)) || (c == '_') {
+ if uint32(c-'0') < 10 || uint32(c-'A') < 26 || uint32(c-'a') < 26 || c == '_' {
continue
}
if c == ')' {
- return float64(X__builtin_nanf(tls, ts+13 /* "" */))
+ return float64(X__builtin_nanf(tls, ts+13))
}
- if (*FILE1)(unsafe.Pointer((f))).shlim >= int64(0) {
+ if (*FILE1)(unsafe.Pointer(f)).shlim >= int64(0) {
(*FILE1)(unsafe.Pointer(f)).rpos--
} else {
}
if !(pok != 0) {
- (*(*int32)(unsafe.Pointer(X___errno_location(tls)))) = 22
+ *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22
X__shlim(tls, f, int64(0))
return float64(0)
}
for PostDecUint64(&i, 1) != 0 {
- if (*FILE1)(unsafe.Pointer((f))).shlim >= int64(0) {
+ if (*FILE1)(unsafe.Pointer(f)).shlim >= int64(0) {
(*FILE1)(unsafe.Pointer(f)).rpos--
} else {
}
}
- return float64(X__builtin_nanf(tls, ts+13 /* "" */))
+ return float64(X__builtin_nanf(tls, ts+13))
}
- return float64(X__builtin_nanf(tls, ts+13 /* "" */))
+ return float64(X__builtin_nanf(tls, ts+13))
}
if i != 0 {
- if (*FILE1)(unsafe.Pointer((f))).shlim >= int64(0) {
+ if (*FILE1)(unsafe.Pointer(f)).shlim >= int64(0) {
(*FILE1)(unsafe.Pointer(f)).rpos--
} else {
}
- (*(*int32)(unsafe.Pointer(X___errno_location(tls)))) = 22
+ *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22
X__shlim(tls, f, int64(0))
return float64(0)
}
if c == '0' {
c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
}()
- if (c | 32) == 'x' {
+ if c|32 == 'x' {
return hexfloat(tls, f, bits, emin, sign, pok)
}
- if (*FILE1)(unsafe.Pointer((f))).shlim >= int64(0) {
+ if (*FILE1)(unsafe.Pointer(f)).shlim >= int64(0) {
(*FILE1)(unsafe.Pointer(f)).rpos--
} else {
}
@@ -1790,18 +1790,18 @@ func X__intscan(tls *TLS, f uintptr, base uint32, pok int32, lim uint64) uint64
var x uint32
var y uint64
var bs int32
- val = (uintptr(unsafe.Pointer(&table)) + uintptr(1))
+ val = uintptr(unsafe.Pointer(&table)) + uintptr(1)
neg = 0
- if !((base > uint32(36)) || (base == uint32(1))) {
+ if !(base > uint32(36) || base == uint32(1)) {
goto __1
}
- (*(*int32)(unsafe.Pointer(X___errno_location(tls)))) = 22
+ *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22
return uint64(0)
__1:
;
__2:
if !(__isspace(tls, AssignInt32(&c, func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
@@ -1811,32 +1811,32 @@ __2:
goto __2
__3:
;
- if !((c == '+') || (c == '-')) {
+ if !(c == '+' || c == '-') {
goto __4
}
- neg = -(Bool32(c == '-'))
+ neg = -Bool32(c == '-')
c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
}()
__4:
;
- if !(((base == uint32(0)) || (base == uint32(16))) && (c == '0')) {
+ if !((base == uint32(0) || base == uint32(16)) && c == '0') {
goto __5
}
c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
}()
- if !((c | 32) == 'x') {
+ if !(c|32 == 'x') {
goto __7
}
c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
@@ -1844,14 +1844,14 @@ __4:
if !(int32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) >= 16) {
goto __9
}
- if (*FILE1)(unsafe.Pointer((f))).shlim >= int64(0) {
+ if (*FILE1)(unsafe.Pointer(f)).shlim >= int64(0) {
(*FILE1)(unsafe.Pointer(f)).rpos--
} else {
}
if !(pok != 0) {
goto __10
}
- if (*FILE1)(unsafe.Pointer((f))).shlim >= int64(0) {
+ if (*FILE1)(unsafe.Pointer(f)).shlim >= int64(0) {
(*FILE1)(unsafe.Pointer(f)).rpos--
} else {
}
@@ -1885,12 +1885,12 @@ __13:
if !(uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) >= base) {
goto __14
}
- if (*FILE1)(unsafe.Pointer((f))).shlim >= int64(0) {
+ if (*FILE1)(unsafe.Pointer(f)).shlim >= int64(0) {
(*FILE1)(unsafe.Pointer(f)).rpos--
} else {
}
X__shlim(tls, f, int64(0))
- (*(*int32)(unsafe.Pointer(X___errno_location(tls)))) = 22
+ *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 22
return uint64(0)
__14:
;
@@ -1901,14 +1901,14 @@ __6:
}
x = uint32(0)
__17:
- if !(((uint32(c - '0')) < 10) && (x <= ((0xffffffff / uint32(10)) - uint32(1)))) {
+ if !(uint32(c-'0') < 10 && x <= 0xffffffff/uint32(10)-uint32(1)) {
goto __19
}
- x = ((x * uint32(10)) + (uint32(c - '0')))
+ x = x*uint32(10) + uint32(c-'0')
goto __18
__18:
c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
@@ -1919,14 +1919,14 @@ __19:
;
y = uint64(x)
__20:
- if !((((uint32(c - '0')) < 10) && (y <= (((2 * uint64(0x7fffffffffffffff)) + uint64(1)) / uint64(10)))) && ((uint64(10) * y) <= (((2 * uint64(0x7fffffffffffffff)) + uint64(1)) - (uint64(c - '0'))))) {
+ if !(uint32(c-'0') < 10 && y <= (2*uint64(0x7fffffffffffffff)+uint64(1))/uint64(10) && uint64(10)*y <= 2*uint64(0x7fffffffffffffff)+uint64(1)-uint64(c-'0')) {
goto __22
}
- y = ((y * uint64(10)) + (uint64(c - '0')))
+ y = y*uint64(10) + uint64(c-'0')
goto __21
__21:
c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
@@ -1935,7 +1935,7 @@ __21:
goto __22
__22:
;
- if !((uint32(c - '0')) >= 10) {
+ if !(uint32(c-'0') >= 10) {
goto __23
}
goto done
@@ -1943,20 +1943,20 @@ __23:
;
goto __16
__15:
- if !(!((base & (base - uint32(1))) != 0)) {
+ if !!(base&(base-uint32(1)) != 0) {
goto __24
}
- bs = int32(*(*int8)(unsafe.Pointer(ts + 14 /* "\x00\x01\x02\x04\a\x03\x06\x05" */ + uintptr((((uint32(0x17) * base) >> 5) & uint32(7))))))
+ bs = int32(*(*int8)(unsafe.Pointer(ts + 14 + uintptr(uint32(0x17)*base>>5&uint32(7)))))
x = uint32(0)
__26:
- if !((uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) < base) && (x <= (0xffffffff / uint32(32)))) {
+ if !(uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) < base && x <= 0xffffffff/uint32(32)) {
goto __28
}
- x = ((x << bs) | uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))))
+ x = x<<bs | uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c))))
goto __27
__27:
c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
@@ -1967,14 +1967,14 @@ __28:
;
y = uint64(x)
__29:
- if !((uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) < base) && (y <= (uint64(((2 * uint64(0x7fffffffffffffff)) + uint64(1))) >> bs))) {
+ if !(uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) < base && y <= uint64(2*uint64(0x7fffffffffffffff)+uint64(1))>>bs) {
goto __31
}
- y = ((y << bs) | uint64(*(*uint8)(unsafe.Pointer(val + uintptr(c)))))
+ y = y<<bs | uint64(*(*uint8)(unsafe.Pointer(val + uintptr(c))))
goto __30
__30:
c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
@@ -1987,14 +1987,14 @@ __31:
__24:
x = uint32(0)
__32:
- if !((uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) < base) && (x <= ((0xffffffff / uint32(36)) - uint32(1)))) {
+ if !(uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) < base && x <= 0xffffffff/uint32(36)-uint32(1)) {
goto __34
}
- x = ((x * base) + uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))))
+ x = x*base + uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c))))
goto __33
__33:
c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
@@ -2005,14 +2005,14 @@ __34:
;
y = uint64(x)
__35:
- if !(((uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) < base) && (y <= (((2 * uint64(0x7fffffffffffffff)) + uint64(1)) / uint64(base)))) && ((uint64(base) * y) <= (((2 * uint64(0x7fffffffffffffff)) + uint64(1)) - uint64(*(*uint8)(unsafe.Pointer(val + uintptr(c))))))) {
+ if !(uint32(*(*uint8)(unsafe.Pointer(val + uintptr(c)))) < base && y <= (2*uint64(0x7fffffffffffffff)+uint64(1))/uint64(base) && uint64(base)*y <= 2*uint64(0x7fffffffffffffff)+uint64(1)-uint64(*(*uint8)(unsafe.Pointer(val + uintptr(c))))) {
goto __37
}
- y = ((y * uint64(base)) + uint64(*(*uint8)(unsafe.Pointer(val + uintptr(c)))))
+ y = y*uint64(base) + uint64(*(*uint8)(unsafe.Pointer(val + uintptr(c))))
goto __36
__36:
c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
@@ -2035,7 +2035,7 @@ __39:
goto __40
__40:
c = func() int32 {
- if (*FILE1)(unsafe.Pointer((f))).rpos != (*FILE1)(unsafe.Pointer((f))).shend {
+ if (*FILE1)(unsafe.Pointer(f)).rpos != (*FILE1)(unsafe.Pointer(f)).shend {
return int32(*(*uint8)(unsafe.Pointer(PostIncUintptr(&(*FILE1)(unsafe.Pointer(f)).rpos, 1))))
}
return X__shgetc(tls, f)
@@ -2044,9 +2044,9 @@ __40:
goto __41
__41:
;
- (*(*int32)(unsafe.Pointer(X___errno_location(tls)))) = 34
+ *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34
y = lim
- if !((lim & uint64(1)) != 0) {
+ if !(lim&uint64(1) != 0) {
goto __42
}
neg = 0
@@ -2055,24 +2055,24 @@ __42:
__38:
;
done:
- if (*FILE1)(unsafe.Pointer((f))).shlim >= int64(0) {
+ if (*FILE1)(unsafe.Pointer(f)).shlim >= int64(0) {
(*FILE1)(unsafe.Pointer(f)).rpos--
} else {
}
if !(y >= lim) {
goto __43
}
- if !(!((lim & uint64(1)) != 0) && !(neg != 0)) {
+ if !(!(lim&uint64(1) != 0) && !(neg != 0)) {
goto __44
}
- (*(*int32)(unsafe.Pointer(X___errno_location(tls)))) = 34
- return (lim - uint64(1))
+ *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34
+ return lim - uint64(1)
goto __45
__44:
if !(y > lim) {
goto __46
}
- (*(*int32)(unsafe.Pointer(X___errno_location(tls)))) = 34
+ *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 34
return lim
__46:
;
@@ -2080,7 +2080,7 @@ __45:
;
__43:
;
- return ((y ^ uint64(neg)) - uint64(neg))
+ return y ^ uint64(neg) - uint64(neg)
}
// The shcnt field stores the number of bytes read so far, offset by
@@ -2090,10 +2090,10 @@ __43:
func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */
(*FILE1)(unsafe.Pointer(f)).shlim = lim
- (*FILE1)(unsafe.Pointer(f)).shcnt = ((int64((*FILE1)(unsafe.Pointer(f)).buf) - int64((*FILE1)(unsafe.Pointer(f)).rpos)) / 1)
+ (*FILE1)(unsafe.Pointer(f)).shcnt = (int64((*FILE1)(unsafe.Pointer(f)).buf) - int64((*FILE1)(unsafe.Pointer(f)).rpos)) / 1
// If lim is nonzero, rend must be a valid pointer.
- if (lim != 0) && (((int64((*FILE1)(unsafe.Pointer(f)).rend) - int64((*FILE1)(unsafe.Pointer(f)).rpos)) / 1) > lim) {
- (*FILE1)(unsafe.Pointer(f)).shend = ((*FILE1)(unsafe.Pointer(f)).rpos + uintptr(lim))
+ if lim != 0 && (int64((*FILE1)(unsafe.Pointer(f)).rend)-int64((*FILE1)(unsafe.Pointer(f)).rpos))/1 > lim {
+ (*FILE1)(unsafe.Pointer(f)).shend = (*FILE1)(unsafe.Pointer(f)).rpos + uintptr(lim)
} else {
(*FILE1)(unsafe.Pointer(f)).shend = (*FILE1)(unsafe.Pointer(f)).rend
}
@@ -2101,20 +2101,20 @@ func X__shlim(tls *TLS, f uintptr, lim off_t) { /* shgetc.c:8:6: */
func X__shgetc(tls *TLS, f uintptr) int32 { /* shgetc.c:19:5: */
var c int32
- var cnt off_t = ((*FILE1)(unsafe.Pointer((f))).shcnt + ((int64((*FILE1)(unsafe.Pointer((f))).rpos) - int64((*FILE1)(unsafe.Pointer((f))).buf)) / 1))
- if (((*FILE1)(unsafe.Pointer(f)).shlim != 0) && (cnt >= (*FILE1)(unsafe.Pointer(f)).shlim)) || ((AssignInt32(&c, X__uflow(tls, f))) < 0) {
- (*FILE1)(unsafe.Pointer(f)).shcnt = (((int64((*FILE1)(unsafe.Pointer(f)).buf) - int64((*FILE1)(unsafe.Pointer(f)).rpos)) / 1) + cnt)
+ var cnt off_t = (*FILE1)(unsafe.Pointer(f)).shcnt + (int64((*FILE1)(unsafe.Pointer(f)).rpos)-int64((*FILE1)(unsafe.Pointer(f)).buf))/1
+ if (*FILE1)(unsafe.Pointer(f)).shlim != 0 && cnt >= (*FILE1)(unsafe.Pointer(f)).shlim || AssignInt32(&c, X__uflow(tls, f)) < 0 {
+ (*FILE1)(unsafe.Pointer(f)).shcnt = (int64((*FILE1)(unsafe.Pointer(f)).buf)-int64((*FILE1)(unsafe.Pointer(f)).rpos))/1 + cnt
(*FILE1)(unsafe.Pointer(f)).shend = (*FILE1)(unsafe.Pointer(f)).rpos
(*FILE1)(unsafe.Pointer(f)).shlim = int64(-1)
return -1
}
cnt++
- if ((*FILE1)(unsafe.Pointer(f)).shlim != 0) && (((int64((*FILE1)(unsafe.Pointer(f)).rend) - int64((*FILE1)(unsafe.Pointer(f)).rpos)) / 1) > ((*FILE1)(unsafe.Pointer(f)).shlim - cnt)) {
- (*FILE1)(unsafe.Pointer(f)).shend = ((*FILE1)(unsafe.Pointer(f)).rpos + uintptr(((*FILE1)(unsafe.Pointer(f)).shlim - cnt)))
+ if (*FILE1)(unsafe.Pointer(f)).shlim != 0 && (int64((*FILE1)(unsafe.Pointer(f)).rend)-int64((*FILE1)(unsafe.Pointer(f)).rpos))/1 > (*FILE1)(unsafe.Pointer(f)).shlim-cnt {
+ (*FILE1)(unsafe.Pointer(f)).shend = (*FILE1)(unsafe.Pointer(f)).rpos + uintptr((*FILE1)(unsafe.Pointer(f)).shlim-cnt)
} else {
(*FILE1)(unsafe.Pointer(f)).shend = (*FILE1)(unsafe.Pointer(f)).rend
}
- (*FILE1)(unsafe.Pointer(f)).shcnt = (((int64((*FILE1)(unsafe.Pointer(f)).buf) - int64((*FILE1)(unsafe.Pointer(f)).rpos)) / 1) + cnt)
+ (*FILE1)(unsafe.Pointer(f)).shcnt = (int64((*FILE1)(unsafe.Pointer(f)).buf)-int64((*FILE1)(unsafe.Pointer(f)).rpos))/1 + cnt
if (*FILE1)(unsafe.Pointer(f)).rpos <= (*FILE1)(unsafe.Pointer(f)).buf {
*(*uint8)(unsafe.Pointer((*FILE1)(unsafe.Pointer(f)).rpos + UintptrFromInt32(-1))) = uint8(c)
}
@@ -2122,7 +2122,7 @@ func X__shgetc(tls *TLS, f uintptr) int32 { /* shgetc.c:19:5: */
}
func __bswap32(tls *TLS, __x uint32_t) uint32_t { /* endian.h:24:26: */
- return ((((__x >> 24) | ((__x >> 8) & uint32_t(0xff00))) | ((__x << 8) & uint32_t(0xff0000))) | (__x << 24))
+ return __x>>24 | __x>>8&uint32_t(0xff00) | __x<<8&uint32_t(0xff0000) | __x<<24
}
func Xcopysignl(tls *TLS, x float64, y float64) float64 { /* copysignl.c:4:13: */
@@ -2137,27 +2137,27 @@ func Xfmodl(tls *TLS, x float64, y float64) float64 { /* fmodl.c:4:13: */
return Xfmod(tls, x, y)
}
-var toint double_t = (float64(float64(1)) / 2.22044604925031308085e-16) /* rint.c:10:23 */
+var toint double_t = float64(float64(1)) / 2.22044604925031308085e-16 /* rint.c:10:23 */
func Xrint(tls *TLS, x float64) float64 { /* rint.c:12:8: */
bp := tls.Alloc(8)
defer tls.Free(8)
- *(*struct{ f float64 })(unsafe.Pointer(bp /* u */)) = func() (r struct{ f float64 }) {
+ *(*struct{ f float64 })(unsafe.Pointer(bp)) = func() (r struct{ f float64 }) {
*(*float64)(unsafe.Pointer(uintptr(unsafe.Pointer(&r)) + 0)) = x
return r
}()
- var e int32 = (int32((*(*uint64_t)(unsafe.Pointer(bp /* &u */)) >> 52) & uint64(0x7ff)))
- var s int32 = (int32(*(*uint64_t)(unsafe.Pointer(bp /* &u */)) >> 63))
+ var e int32 = int32(*(*uint64_t)(unsafe.Pointer(bp)) >> 52 & uint64(0x7ff))
+ var s int32 = int32(*(*uint64_t)(unsafe.Pointer(bp)) >> 63)
var y double_t
- if e >= (0x3ff + 52) {
+ if e >= 0x3ff+52 {
return x
}
if s != 0 {
- y = ((x - toint) + toint)
+ y = x - toint + toint
} else {
- y = ((x + toint) - toint)
+ y = x + toint - toint
}
if y == float64(0) {
if s != 0 {
@@ -2177,11 +2177,11 @@ func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */
var y double_t = x
if n > 1023 {
- y = y * (0x1p1023)
- n = n - (1023)
+ y = y * 0x1p1023
+ n = n - 1023
if n > 1023 {
- y = y * (0x1p1023)
- n = n - (1023)
+ y = y * 0x1p1023
+ n = n - 1023
if n > 1023 {
n = 1023
}
@@ -2199,8 +2199,8 @@ func Xscalbn(tls *TLS, x float64, n int32) float64 { /* scalbn.c:4:8: */
}
}
}
- *(*uint64_t)(unsafe.Pointer(bp /* &u */)) = ((uint64_t(0x3ff + n)) << 52)
- x = (y * *(*float64)(unsafe.Pointer(bp /* &u */)))
+ *(*uint64_t)(unsafe.Pointer(bp)) = uint64_t(0x3ff+n) << 52
+ x = y * *(*float64)(unsafe.Pointer(bp))
return x
}
@@ -2550,10 +2550,10 @@ __2:
goto __3
__3:
;
- var b uintptr = (p - uintptr((uint64((uintptr(0) /* &.ai */)))))
- b -= 88 * (uintptr((*aibuf)(unsafe.Pointer(b)).slot))
+ var b uintptr = p - uintptr(uint64(uintptr(0)))
+ b -= 88 * uintptr((*aibuf)(unsafe.Pointer(b)).slot)
//TODO LOCK(b->lock);
- if !(int32(AssignSubPtrInt16(b+82 /* &.ref */, int16(cnt))) != 0) {
+ if !(int32(AssignSubPtrInt16(b+82, int16(cnt))) != 0) {
Xfree(tls, b)
}
//TODO else UNLOCK(b->lock);
@@ -2706,8 +2706,8 @@ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintpt
proto = (*addrinfo)(unsafe.Pointer(hint)).ai_protocol
socktype = (*addrinfo)(unsafe.Pointer(hint)).ai_socktype
- var mask int32 = ((((((0x01 | 0x02) | 0x04) | 0x08) | 0x10) | 0x20) | 0x400)
- if (flags & mask) != flags {
+ var mask int32 = 0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20 | 0x400
+ if flags&mask != flags {
return -1
}
@@ -2724,7 +2724,7 @@ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintpt
}
}
- if (flags & 0x20) != 0 {
+ if flags&0x20 != 0 {
Xabort(tls) //TODO-
// /* Define the "an address is configured" condition for address
// * families via ability to create a socket for the family plus
@@ -2769,26 +2769,26 @@ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintpt
// }
}
- nservs = X__lookup_serv(tls, bp /* &ports[0] */, serv, proto, socktype, flags)
+ nservs = X__lookup_serv(tls, bp, serv, proto, socktype, flags)
if nservs < 0 {
return nservs
}
- naddrs = X__lookup_name(tls, bp+8 /* &addrs[0] */, bp+1352 /* &canon[0] */, host, family, flags)
+ naddrs = X__lookup_name(tls, bp+8, bp+1352, host, family, flags)
if naddrs < 0 {
return naddrs
}
- nais = (nservs * naddrs)
- canon_len = int32(Xstrlen(tls, bp+1352 /* &canon[0] */))
- out = Xcalloc(tls, uint64(1), (((uint64(nais) * uint64(unsafe.Sizeof(aibuf{}))) + uint64(canon_len)) + uint64(1)))
+ nais = nservs * naddrs
+ canon_len = int32(Xstrlen(tls, bp+1352))
+ out = Xcalloc(tls, uint64(1), uint64(nais)*uint64(unsafe.Sizeof(aibuf{}))+uint64(canon_len)+uint64(1))
if !(out != 0) {
return -10
}
if canon_len != 0 {
- outcanon = (out + uintptr(nais)*88)
- Xmemcpy(tls, outcanon, bp+1352 /* &canon[0] */, (uint64(canon_len + 1)))
+ outcanon = out + uintptr(nais)*88
+ Xmemcpy(tls, outcanon, bp+1352, uint64(canon_len+1))
} else {
outcanon = uintptr(0)
}
@@ -2810,31 +2810,31 @@ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintpt
//TODO : sizeof(struct sockaddr_in6),
//TODO .ai_addr = (void *)&out[k].sa,
//TODO .ai_canonname = outcanon };
- (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_family = (*address)(unsafe.Pointer(bp + 8 /* &addrs */ + uintptr(i)*28)).family
- (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_socktype = int32((*service)(unsafe.Pointer(bp /* &ports */ + uintptr(j)*4)).socktype)
- (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_protocol = int32((*service)(unsafe.Pointer(bp /* &ports */ + uintptr(j)*4)).proto)
+ (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_family = (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).family
+ (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_socktype = int32((*service)(unsafe.Pointer(bp + uintptr(j)*4)).socktype)
+ (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_protocol = int32((*service)(unsafe.Pointer(bp + uintptr(j)*4)).proto)
(*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_addrlen = func() uint32 {
- if (*address)(unsafe.Pointer(bp+8 /* &addrs */ +uintptr(i)*28)).family == 2 {
+ if (*address)(unsafe.Pointer(bp+8+uintptr(i)*28)).family == 2 {
return uint32(unsafe.Sizeof(sockaddr_in{}))
}
return uint32(unsafe.Sizeof(sockaddr_in6{}))
}()
- (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_addr = (out + uintptr(k)*88 + 48 /* &.sa */)
+ (*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_addr = out + uintptr(k)*88 + 48
(*aibuf)(unsafe.Pointer(out + uintptr(k)*88)).ai.ai_canonname = outcanon
if k != 0 {
- (*aibuf)(unsafe.Pointer(out + uintptr((k-1))*88)).ai.ai_next = (out + uintptr(k)*88 /* &.ai */)
+ (*aibuf)(unsafe.Pointer(out + uintptr(k-1)*88)).ai.ai_next = out + uintptr(k)*88
}
- switch (*address)(unsafe.Pointer(bp + 8 /* &addrs */ + uintptr(i)*28)).family {
+ switch (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).family {
case 2:
- (*sockaddr_in)(unsafe.Pointer(out + uintptr(k)*88 + 48 /* &.sa */)).sin_family = sa_family_t(2)
- (*sockaddr_in)(unsafe.Pointer(out + uintptr(k)*88 + 48 /* &.sa */)).sin_port = Xhtons(tls, (*service)(unsafe.Pointer(bp /* &ports */ +uintptr(j)*4)).port)
- Xmemcpy(tls, (out + uintptr(k)*88 + 48 /* &.sa */ /* &.sin */ + 4 /* &.sin_addr */), (bp + 8 /* &addrs */ + uintptr(i)*28 + 8 /* &.addr */), uint64(4))
+ (*sockaddr_in)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin_family = sa_family_t(2)
+ (*sockaddr_in)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin_port = Xhtons(tls, (*service)(unsafe.Pointer(bp+uintptr(j)*4)).port)
+ Xmemcpy(tls, out+uintptr(k)*88+48+4, bp+8+uintptr(i)*28+8, uint64(4))
break
case 10:
- (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*88 + 48 /* &.sa */)).sin6_family = sa_family_t(10)
- (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*88 + 48 /* &.sa */)).sin6_port = Xhtons(tls, (*service)(unsafe.Pointer(bp /* &ports */ +uintptr(j)*4)).port)
- (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*88 + 48 /* &.sa */)).sin6_scope_id = (*address)(unsafe.Pointer(bp + 8 /* &addrs */ + uintptr(i)*28)).scopeid
- Xmemcpy(tls, (out + uintptr(k)*88 + 48 /* &.sa */ /* &.sin6 */ + 8 /* &.sin6_addr */), (bp + 8 /* &addrs */ + uintptr(i)*28 + 8 /* &.addr */), uint64(16))
+ (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin6_family = sa_family_t(10)
+ (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin6_port = Xhtons(tls, (*service)(unsafe.Pointer(bp+uintptr(j)*4)).port)
+ (*sockaddr_in6)(unsafe.Pointer(out + uintptr(k)*88 + 48)).sin6_scope_id = (*address)(unsafe.Pointer(bp + 8 + uintptr(i)*28)).scopeid
+ Xmemcpy(tls, out+uintptr(k)*88+48+8, bp+8+uintptr(i)*28+8, uint64(16))
break
}
@@ -2848,7 +2848,7 @@ func Xgetaddrinfo(tls *TLS, host uintptr, serv uintptr, hint uintptr, res uintpt
__3:
}
(*aibuf)(unsafe.Pointer(out)).ref = int16(nais)
- *(*uintptr)(unsafe.Pointer(res)) = (out /* &.ai */)
+ *(*uintptr)(unsafe.Pointer(res)) = out
return 0
}
@@ -2884,15 +2884,15 @@ func Xgethostbyaddr(tls *TLS, a uintptr, l socklen_t, af int32) uintptr { /* get
// var res uintptr at bp, 8
var err int32
- for ok := true; ok; ok = (err == 34) {
+ for ok := true; ok; ok = err == 34 {
Xfree(tls, _sh)
- _sh = Xmalloc(tls, AssignAddUint64(&size, (size+uint64(1))))
+ _sh = Xmalloc(tls, AssignAddUint64(&size, size+uint64(1)))
if !(_sh != 0) {
- (*(*int32)(unsafe.Pointer(X__h_errno_location(tls)))) = 3
+ *(*int32)(unsafe.Pointer(X__h_errno_location(tls))) = 3
return uintptr(0)
}
err = Xgethostbyaddr_r(tls, a, l, af, _sh,
- (_sh + uintptr(1)*32), (size - size_t(unsafe.Sizeof(hostent{}))), bp /* &res */, X__h_errno_location(tls))
+ _sh+uintptr(1)*32, size-size_t(unsafe.Sizeof(hostent{})), bp, X__h_errno_location(tls))
}
if err != 0 {
return uintptr(0)
@@ -2914,15 +2914,15 @@ func Xgethostbyname2(tls *TLS, name uintptr, af int32) uintptr { /* gethostbynam
// var res uintptr at bp, 8
var err int32
- for ok := true; ok; ok = (err == 34) {
+ for ok := true; ok; ok = err == 34 {
Xfree(tls, _sh1)
- _sh1 = Xmalloc(tls, AssignAddUint64(&size, (size+uint64(1))))
+ _sh1 = Xmalloc(tls, AssignAddUint64(&size, size+uint64(1)))
if !(_sh1 != 0) {
- (*(*int32)(unsafe.Pointer(X__h_errno_location(tls)))) = 3
+ *(*int32)(unsafe.Pointer(X__h_errno_location(tls))) = 3
return uintptr(0)
}
err = Xgethostbyname2_r(tls, name, af, _sh1,
- (_sh1 + uintptr(1)*32), (size - size_t(unsafe.Sizeof(hostent{}))), bp /* &res */, X__h_errno_location(tls))
+ _sh1+uintptr(1)*32, size-size_t(unsafe.Sizeof(hostent{})), bp, X__h_errno_location(tls))
}
if err != 0 {
return uintptr(0)
@@ -2946,7 +2946,7 @@ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr,
var need size_t
*(*uintptr)(unsafe.Pointer(res)) = uintptr(0)
- cnt = X__lookup_name(tls, bp /* &addrs[0] */, bp+1344 /* &canon[0] */, name, af, 0x02)
+ cnt = X__lookup_name(tls, bp, bp+1344, name, af, 0x02)
if cnt < 0 {
switch cnt {
case -2:
@@ -2980,13 +2980,13 @@ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr,
}()
// Align buffer
- align = (-uintptr_t(buf) & (uint64(unsafe.Sizeof(uintptr(0))) - uint64(1)))
+ align = -uintptr_t(buf) & (uint64(unsafe.Sizeof(uintptr(0))) - uint64(1))
- need = (uint64(4) * uint64(unsafe.Sizeof(uintptr(0))))
- need = need + ((uint64(cnt + 1)) * (uint64(unsafe.Sizeof(uintptr(0))) + uint64((*hostent)(unsafe.Pointer(h)).h_length)))
+ need = uint64(4) * uint64(unsafe.Sizeof(uintptr(0)))
+ need = need + uint64(cnt+1)*(uint64(unsafe.Sizeof(uintptr(0)))+uint64((*hostent)(unsafe.Pointer(h)).h_length))
need = need + (Xstrlen(tls, name) + uint64(1))
- need = need + (Xstrlen(tls, bp+1344 /* &canon[0] */) + uint64(1))
- need = need + (align)
+ need = need + (Xstrlen(tls, bp+1344) + uint64(1))
+ need = need + align
if need > buflen {
return 34
@@ -2994,25 +2994,25 @@ func Xgethostbyname2_r(tls *TLS, name uintptr, af int32, h uintptr, buf uintptr,
buf += uintptr(align)
(*hostent)(unsafe.Pointer(h)).h_aliases = buf
- buf += (uintptr(uint64(3) * uint64(unsafe.Sizeof(uintptr(0)))))
+ buf += uintptr(uint64(3) * uint64(unsafe.Sizeof(uintptr(0))))
(*hostent)(unsafe.Pointer(h)).h_addr_list = buf
- buf += (uintptr((uint64(cnt + 1)) * uint64(unsafe.Sizeof(uintptr(0)))))
+ buf += uintptr(uint64(cnt+1) * uint64(unsafe.Sizeof(uintptr(0))))
for i = 0; i < cnt; i++ {
*(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*8)) = buf
buf += uintptr((*hostent)(unsafe.Pointer(h)).h_length)
- Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*8)), bp /* &addrs */ +uintptr(i)*28+8 /* &.addr */, uint64((*hostent)(unsafe.Pointer(h)).h_length))
+ Xmemcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*8)), bp+uintptr(i)*28+8, uint64((*hostent)(unsafe.Pointer(h)).h_length))
}
*(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_addr_list + uintptr(i)*8)) = uintptr(0)
(*hostent)(unsafe.Pointer(h)).h_name = AssignPtrUintptr((*hostent)(unsafe.Pointer(h)).h_aliases, buf)
- Xstrcpy(tls, (*hostent)(unsafe.Pointer(h)).h_name, bp+1344 /* &canon[0] */)
- buf += (uintptr(Xstrlen(tls, (*hostent)(unsafe.Pointer(h)).h_name) + uint64(1)))
+ Xstrcpy(tls, (*hostent)(unsafe.Pointer(h)).h_name, bp+1344)
+ buf += uintptr(Xstrlen(tls, (*hostent)(unsafe.Pointer(h)).h_name) + uint64(1))
if Xstrcmp(tls, (*hostent)(unsafe.Pointer(h)).h_name, name) != 0 {
*(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)) = buf
Xstrcpy(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)), name)
- buf += (uintptr(Xstrlen(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8))) + uint64(1)))
+ buf += uintptr(Xstrlen(tls, *(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8))) + uint64(1))
} else {
*(*uintptr)(unsafe.Pointer((*hostent)(unsafe.Pointer(h)).h_aliases + 1*8)) = uintptr(0)
}
@@ -3201,11 +3201,11 @@ type res_sym = struct {
} /* resolv.h:70:1 */
func itoa(tls *TLS, p uintptr, x uint32) uintptr { /* getnameinfo.c:18:13: */
- p += (uintptr(uint64(3) * uint64(unsafe.Sizeof(int32(0)))))
+ p += uintptr(uint64(3) * uint64(unsafe.Sizeof(int32(0))))
*(*int8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = int8(0)
for ok := true; ok; ok = x != 0 {
- *(*int8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = (int8(uint32('0') + (x % uint32(10))))
- x = x / (uint32(10))
+ *(*int8)(unsafe.Pointer(PreDecUintptr(&p, 1))) = int8(uint32('0') + x%uint32(10))
+ x = x / uint32(10)
}
return p
}
@@ -3214,22 +3214,22 @@ func mkptr4(tls *TLS, s uintptr, ip uintptr) { /* getnameinfo.c:28:13: */
bp := tls.Alloc(32)
defer tls.Free(32)
- Xsprintf(tls, s, ts+23, /* "%d.%d.%d.%d.in-a..." */
+ Xsprintf(tls, s, ts+23,
VaList(bp, int32(*(*uint8)(unsafe.Pointer(ip + 3))), int32(*(*uint8)(unsafe.Pointer(ip + 2))), int32(*(*uint8)(unsafe.Pointer(ip + 1))), int32(*(*uint8)(unsafe.Pointer(ip)))))
}
func mkptr6(tls *TLS, s uintptr, ip uintptr) { /* getnameinfo.c:34:13: */
var i int32
for i = 15; i >= 0; i-- {
- *(*int8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = _sxdigits[(int32(*(*uint8)(unsafe.Pointer(ip + uintptr(i)))) & 15)]
+ *(*int8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = _sxdigits[int32(*(*uint8)(unsafe.Pointer(ip + uintptr(i))))&15]
*(*int8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = int8('.')
- *(*int8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = _sxdigits[(int32(*(*uint8)(unsafe.Pointer(ip + uintptr(i)))) >> 4)]
+ *(*int8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = _sxdigits[int32(*(*uint8)(unsafe.Pointer(ip + uintptr(i))))>>4]
*(*int8)(unsafe.Pointer(PostIncUintptr(&s, 1))) = int8('.')
}
- Xstrcpy(tls, s, ts+48 /* "ip6.arpa" */)
+ Xstrcpy(tls, s, ts+48)
}
-var _sxdigits = *(*[17]int8)(unsafe.Pointer(ts + 57 /* "0123456789abcdef" */)) /* getnameinfo.c:36:20 */
+var _sxdigits = *(*[17]int8)(unsafe.Pointer(ts + 57)) /* getnameinfo.c:36:20 */
func reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int32) { /* getnameinfo.c:45:13: */
bp := tls.Alloc(556)
@@ -3246,45 +3246,45 @@ func reverse_hosts(tls *TLS, buf uintptr, a uintptr, scopeid uint32, family int3
// var iplit address at bp+528, 28
//TODO FILE _f, *f = __fopen_rb_ca("/etc/hosts", &_f, _buf, sizeof _buf);
- var f uintptr = Xfopen(tls, ts+74 /* "/etc/hosts" */, ts+85 /* "rb" */)
+ var f uintptr = Xfopen(tls, ts+74, ts+85)
if !(f != 0) {
return
}
if family == 2 {
- Xmemcpy(tls, (bp /* &atmp[0] */ + uintptr(12)), a, uint64(4))
- Xmemcpy(tls, bp /* &atmp[0] */, ts+88 /* "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff" */, uint64(12))
+ Xmemcpy(tls, bp+uintptr(12), a, uint64(4))
+ Xmemcpy(tls, bp, ts+88, uint64(12))
a = bp /* &atmp[0] */
}
- for Xfgets(tls, bp+16 /* &line[0] */, int32(unsafe.Sizeof([512]int8{})), f) != 0 {
- if AssignUintptr(&p, Xstrchr(tls, bp+16 /* &line[0] */, '#')) != 0 {
+ for Xfgets(tls, bp+16, int32(unsafe.Sizeof([512]int8{})), f) != 0 {
+ if AssignUintptr(&p, Xstrchr(tls, bp+16, '#')) != 0 {
*(*int8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = int8('\n')
*(*int8)(unsafe.Pointer(p)) = int8(0)
}
- for p = bp + 16; /* &line[0] */ (*(*int8)(unsafe.Pointer(p)) != 0) && !(__isspace(tls, int32(*(*int8)(unsafe.Pointer(p)))) != 0); p++ {
+ for p = bp + 16; /* &line[0] */ *(*int8)(unsafe.Pointer(p)) != 0 && !(__isspace(tls, int32(*(*int8)(unsafe.Pointer(p)))) != 0); p++ {
}
*(*int8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = int8(0)
- if X__lookup_ipliteral(tls, bp+528 /* &iplit */, bp+16 /* &line[0] */, 0) <= 0 {
+ if X__lookup_ipliteral(tls, bp+528, bp+16, 0) <= 0 {
continue
}
- if (*address)(unsafe.Pointer(bp+528 /* &iplit */)).family == 2 {
- Xmemcpy(tls, ((bp + 528 /* &iplit */ + 8 /* &.addr */) + uintptr(12)), bp+528 /* &iplit */ +8 /* &.addr */, uint64(4))
- Xmemcpy(tls, bp+528 /* &iplit */ +8 /* &.addr */, ts+88 /* "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff" */, uint64(12))
+ if (*address)(unsafe.Pointer(bp+528)).family == 2 {
+ Xmemcpy(tls, bp+528+8+uintptr(12), bp+528+8, uint64(4))
+ Xmemcpy(tls, bp+528+8, ts+88, uint64(12))
(*address)(unsafe.Pointer(bp + 528 /* &iplit */)).scopeid = uint32(0)
}
- if (Xmemcmp(tls, a, bp+528 /* &iplit */ +8 /* &.addr */, uint64(16)) != 0) || ((*address)(unsafe.Pointer(bp+528 /* &iplit */)).scopeid != scopeid) {
+ if Xmemcmp(tls, a, bp+528+8, uint64(16)) != 0 || (*address)(unsafe.Pointer(bp+528)).scopeid != scopeid {
continue
}
- for ; (*(*int8)(unsafe.Pointer(p)) != 0) && (__isspace(tls, int32(*(*int8)(unsafe.Pointer(p)))) != 0); p++ {
+ for ; *(*int8)(unsafe.Pointer(p)) != 0 && __isspace(tls, int32(*(*int8)(unsafe.Pointer(p)))) != 0; p++ {
}
- for z = p; (*(*int8)(unsafe.Pointer(z)) != 0) && !(__isspace(tls, int32(*(*int8)(unsafe.Pointer(z)))) != 0); z++ {
+ for z = p; *(*int8)(unsafe.Pointer(z)) != 0 && !(__isspace(tls, int32(*(*int8)(unsafe.Pointer(z)))) != 0); z++ {
}
*(*int8)(unsafe.Pointer(z)) = int8(0)
- if ((int64(z) - int64(p)) / 1) < int64(256) {
- Xmemcpy(tls, buf, p, (uint64(((int64(z) - int64(p)) / 1) + int64(1))))
+ if (int64(z)-int64(p))/1 < int64(256) {
+ Xmemcpy(tls, buf, p, uint64((int64(z)-int64(p))/1+int64(1)))
break
}
}
@@ -3336,41 +3336,41 @@ func X__inet_aton(tls *TLS, s0 uintptr, dest uintptr) int32 { /* inet_aton.c:7:5
var i int32
for i = 0; i < 4; i++ {
- *(*uint64)(unsafe.Pointer(bp /* &a[0] */ + uintptr(i)*8)) = Xstrtoul(tls, s, bp+32 /* &z */, 0)
- if ((*(*uintptr)(unsafe.Pointer(bp + 32 /* z */)) == s) || ((*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32 /* z */)))) != 0) && (int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32 /* z */))))) != '.'))) || !(func() int32 {
+ *(*uint64)(unsafe.Pointer(bp + uintptr(i)*8)) = Xstrtoul(tls, s, bp+32, 0)
+ if *(*uintptr)(unsafe.Pointer(bp + 32)) == s || *(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32)))) != 0 && int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32))))) != '.' || !(func() int32 {
if 0 != 0 {
return Xisdigit(tls, int32(*(*int8)(unsafe.Pointer(s))))
}
- return (Bool32(((uint32(*(*int8)(unsafe.Pointer(s)))) - uint32('0')) < uint32(10)))
+ return Bool32(uint32(*(*int8)(unsafe.Pointer(s)))-uint32('0') < uint32(10))
}() != 0) {
return 0
}
- if !(int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32 /* z */))))) != 0) {
+ if !(int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 32))))) != 0) {
break
}
- s = (*(*uintptr)(unsafe.Pointer(bp + 32 /* z */)) + uintptr(1))
+ s = *(*uintptr)(unsafe.Pointer(bp + 32)) + uintptr(1)
}
if i == 4 {
return 0
}
switch i {
case 0:
- *(*uint64)(unsafe.Pointer(bp /* &a[0] */ + 1*8)) = (*(*uint64)(unsafe.Pointer(bp /* &a[0] */)) & uint64(0xffffff))
- AssignShrPtrUint64(bp /* &a */, int(24))
+ *(*uint64)(unsafe.Pointer(bp + 1*8)) = *(*uint64)(unsafe.Pointer(bp)) & uint64(0xffffff)
+ AssignShrPtrUint64(bp, int(24))
fallthrough
case 1:
- *(*uint64)(unsafe.Pointer(bp /* &a[0] */ + 2*8)) = (*(*uint64)(unsafe.Pointer(bp /* &a[0] */ + 1*8)) & uint64(0xffff))
- AssignShrPtrUint64(bp /* &a */ +1*8, int(16))
+ *(*uint64)(unsafe.Pointer(bp + 2*8)) = *(*uint64)(unsafe.Pointer(bp + 1*8)) & uint64(0xffff)
+ AssignShrPtrUint64(bp+1*8, int(16))
fallthrough
case 2:
- *(*uint64)(unsafe.Pointer(bp /* &a[0] */ + 3*8)) = (*(*uint64)(unsafe.Pointer(bp /* &a[0] */ + 2*8)) & uint64(0xff))
- AssignShrPtrUint64(bp /* &a */ +2*8, int(8))
+ *(*uint64)(unsafe.Pointer(bp + 3*8)) = *(*uint64)(unsafe.Pointer(bp + 2*8)) & uint64(0xff)
+ AssignShrPtrUint64(bp+2*8, int(8))
}
for i = 0; i < 4; i++ {
- if *(*uint64)(unsafe.Pointer(bp /* &a[0] */ + uintptr(i)*8)) > uint64(255) {
+ if *(*uint64)(unsafe.Pointer(bp + uintptr(i)*8)) > uint64(255) {
return 0
}
- *(*uint8)(unsafe.Pointer(d + uintptr(i))) = uint8(*(*uint64)(unsafe.Pointer(bp /* &a[0] */ + uintptr(i)*8)))
+ *(*uint8)(unsafe.Pointer(d + uintptr(i))) = uint8(*(*uint64)(unsafe.Pointer(bp + uintptr(i)*8)))
}
return 1
}
@@ -3388,63 +3388,63 @@ func Xinet_ntop(tls *TLS, af int32, a0 uintptr, s uintptr, l socklen_t) uintptr
switch af {
case 2:
- if socklen_t(Xsnprintf(tls, s, uint64(l), ts+101 /* "%d.%d.%d.%d" */, VaList(bp, int32(*(*uint8)(unsafe.Pointer(a))), int32(*(*uint8)(unsafe.Pointer(a + 1))), int32(*(*uint8)(unsafe.Pointer(a + 2))), int32(*(*uint8)(unsafe.Pointer(a + 3)))))) < l {
+ if socklen_t(Xsnprintf(tls, s, uint64(l), ts+101, VaList(bp, int32(*(*uint8)(unsafe.Pointer(a))), int32(*(*uint8)(unsafe.Pointer(a + 1))), int32(*(*uint8)(unsafe.Pointer(a + 2))), int32(*(*uint8)(unsafe.Pointer(a + 3)))))) < l {
return s
}
break
case 10:
- if Xmemcmp(tls, a, ts+88 /* "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff" */, uint64(12)) != 0 {
- Xsnprintf(tls, bp+176 /* &buf[0] */, uint64(unsafe.Sizeof([100]int8{})),
- ts+113, /* "%x:%x:%x:%x:%x:%..." */
- VaList(bp+32, ((256*int32(*(*uint8)(unsafe.Pointer(a))))+int32(*(*uint8)(unsafe.Pointer(a + 1)))), ((256*int32(*(*uint8)(unsafe.Pointer(a + 2))))+int32(*(*uint8)(unsafe.Pointer(a + 3)))),
- ((256*int32(*(*uint8)(unsafe.Pointer(a + 4))))+int32(*(*uint8)(unsafe.Pointer(a + 5)))), ((256*int32(*(*uint8)(unsafe.Pointer(a + 6))))+int32(*(*uint8)(unsafe.Pointer(a + 7)))),
- ((256*int32(*(*uint8)(unsafe.Pointer(a + 8))))+int32(*(*uint8)(unsafe.Pointer(a + 9)))), ((256*int32(*(*uint8)(unsafe.Pointer(a + 10))))+int32(*(*uint8)(unsafe.Pointer(a + 11)))),
- ((256*int32(*(*uint8)(unsafe.Pointer(a + 12))))+int32(*(*uint8)(unsafe.Pointer(a + 13)))), ((256*int32(*(*uint8)(unsafe.Pointer(a + 14))))+int32(*(*uint8)(unsafe.Pointer(a + 15))))))
+ if Xmemcmp(tls, a, ts+88, uint64(12)) != 0 {
+ Xsnprintf(tls, bp+176, uint64(unsafe.Sizeof([100]int8{})),
+ ts+113,
+ VaList(bp+32, 256*int32(*(*uint8)(unsafe.Pointer(a)))+int32(*(*uint8)(unsafe.Pointer(a + 1))), 256*int32(*(*uint8)(unsafe.Pointer(a + 2)))+int32(*(*uint8)(unsafe.Pointer(a + 3))),
+ 256*int32(*(*uint8)(unsafe.Pointer(a + 4)))+int32(*(*uint8)(unsafe.Pointer(a + 5))), 256*int32(*(*uint8)(unsafe.Pointer(a + 6)))+int32(*(*uint8)(unsafe.Pointer(a + 7))),
+ 256*int32(*(*uint8)(unsafe.Pointer(a + 8)))+int32(*(*uint8)(unsafe.Pointer(a + 9))), 256*int32(*(*uint8)(unsafe.Pointer(a + 10)))+int32(*(*uint8)(unsafe.Pointer(a + 11))),
+ 256*int32(*(*uint8)(unsafe.Pointer(a + 12)))+int32(*(*uint8)(unsafe.Pointer(a + 13))), 256*int32(*(*uint8)(unsafe.Pointer(a + 14)))+int32(*(*uint8)(unsafe.Pointer(a + 15)))))
} else {
- Xsnprintf(tls, bp+176 /* &buf[0] */, uint64(unsafe.Sizeof([100]int8{})),
- ts+137, /* "%x:%x:%x:%x:%x:%..." */
- VaList(bp+96, ((256*int32(*(*uint8)(unsafe.Pointer(a))))+int32(*(*uint8)(unsafe.Pointer(a + 1)))), ((256*int32(*(*uint8)(unsafe.Pointer(a + 2))))+int32(*(*uint8)(unsafe.Pointer(a + 3)))),
- ((256*int32(*(*uint8)(unsafe.Pointer(a + 4))))+int32(*(*uint8)(unsafe.Pointer(a + 5)))), ((256*int32(*(*uint8)(unsafe.Pointer(a + 6))))+int32(*(*uint8)(unsafe.Pointer(a + 7)))),
- ((256*int32(*(*uint8)(unsafe.Pointer(a + 8))))+int32(*(*uint8)(unsafe.Pointer(a + 9)))), ((256*int32(*(*uint8)(unsafe.Pointer(a + 10))))+int32(*(*uint8)(unsafe.Pointer(a + 11)))),
+ Xsnprintf(tls, bp+176, uint64(unsafe.Sizeof([100]int8{})),
+ ts+137,
+ VaList(bp+96, 256*int32(*(*uint8)(unsafe.Pointer(a)))+int32(*(*uint8)(unsafe.Pointer(a + 1))), 256*int32(*(*uint8)(unsafe.Pointer(a + 2)))+int32(*(*uint8)(unsafe.Pointer(a + 3))),
+ 256*int32(*(*uint8)(unsafe.Pointer(a + 4)))+int32(*(*uint8)(unsafe.Pointer(a + 5))), 256*int32(*(*uint8)(unsafe.Pointer(a + 6)))+int32(*(*uint8)(unsafe.Pointer(a + 7))),
+ 256*int32(*(*uint8)(unsafe.Pointer(a + 8)))+int32(*(*uint8)(unsafe.Pointer(a + 9))), 256*int32(*(*uint8)(unsafe.Pointer(a + 10)))+int32(*(*uint8)(unsafe.Pointer(a + 11))),
int32(*(*uint8)(unsafe.Pointer(a + 12))), int32(*(*uint8)(unsafe.Pointer(a + 13))), int32(*(*uint8)(unsafe.Pointer(a + 14))), int32(*(*uint8)(unsafe.Pointer(a + 15)))))
}
// Replace longest /(^0|:)[:0]{2,}/ with "::"
i = AssignInt32(&best, 0)
max = 2
- for ; *(*int8)(unsafe.Pointer(bp + 176 /* &buf[0] */ + uintptr(i))) != 0; i++ {
- if (i != 0) && (int32(*(*int8)(unsafe.Pointer(bp + 176 /* &buf[0] */ + uintptr(i)))) != ':') {
+ for ; *(*int8)(unsafe.Pointer(bp + 176 + uintptr(i))) != 0; i++ {
+ if i != 0 && int32(*(*int8)(unsafe.Pointer(bp + 176 + uintptr(i)))) != ':' {
continue
}
- j = int32(Xstrspn(tls, (bp + 176 /* &buf[0] */ + uintptr(i)), ts+167 /* ":0" */))
+ j = int32(Xstrspn(tls, bp+176+uintptr(i), ts+167))
if j > max {
best = i
max = j
}
}
if max > 3 {
- *(*int8)(unsafe.Pointer(bp + 176 /* &buf[0] */ + uintptr(best))) = AssignPtrInt8(bp+176 /* &buf */ +uintptr((best+1)), int8(':'))
- Xmemmove(tls, ((bp + 176 /* &buf[0] */ + uintptr(best)) + uintptr(2)), ((bp + 176 /* &buf[0] */ + uintptr(best)) + uintptr(max)), (uint64(((i - best) - max) + 1)))
+ *(*int8)(unsafe.Pointer(bp + 176 + uintptr(best))) = AssignPtrInt8(bp+176+uintptr(best+1), int8(':'))
+ Xmemmove(tls, bp+176+uintptr(best)+uintptr(2), bp+176+uintptr(best)+uintptr(max), uint64(i-best-max+1))
}
- if Xstrlen(tls, bp+176 /* &buf[0] */) < size_t(l) {
- Xstrcpy(tls, s, bp+176 /* &buf[0] */)
+ if Xstrlen(tls, bp+176) < size_t(l) {
+ Xstrcpy(tls, s, bp+176)
return s
}
break
default:
- (*(*int32)(unsafe.Pointer(X___errno_location(tls)))) = 97
+ *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 97
return uintptr(0)
}
- (*(*int32)(unsafe.Pointer(X___errno_location(tls)))) = 28
+ *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 28
return uintptr(0)
}
func hexval(tls *TLS, c uint32) int32 { /* inet_pton.c:7:12: */
- if (c - uint32('0')) < uint32(10) {
- return (int32(c - uint32('0')))
+ if c-uint32('0') < uint32(10) {
+ return int32(c - uint32('0'))
}
- c = c | (uint32(32))
- if (c - uint32('a')) < uint32(6) {
- return (int32((c - uint32('a')) + uint32(10)))
+ c = c | uint32(32)
+ if c-uint32('a') < uint32(6) {
+ return int32(c - uint32('a') + uint32(10))
}
return -1
}
@@ -3465,40 +3465,40 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton.
if af == 2 {
for i = 0; i < 4; i++ {
- for v = AssignInt32(&j, 0); (j < 3) && (func() int32 {
+ for v = AssignInt32(&j, 0); j < 3 && func() int32 {
if 0 != 0 {
return Xisdigit(tls, int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))))
}
- return (Bool32(((uint32(*(*int8)(unsafe.Pointer(s + uintptr(j))))) - uint32('0')) < uint32(10)))
- }() != 0); j++ {
- v = (((10 * v) + int32(*(*int8)(unsafe.Pointer(s + uintptr(j))))) - '0')
+ return Bool32(uint32(*(*int8)(unsafe.Pointer(s + uintptr(j))))-uint32('0') < uint32(10))
+ }() != 0; j++ {
+ v = 10*v + int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))) - '0'
}
- if ((j == 0) || ((j > 1) && (int32(*(*int8)(unsafe.Pointer(s))) == '0'))) || (v > 255) {
+ if j == 0 || j > 1 && int32(*(*int8)(unsafe.Pointer(s))) == '0' || v > 255 {
return 0
}
*(*uint8)(unsafe.Pointer(a + uintptr(i))) = uint8(v)
- if (int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))) == 0) && (i == 3) {
+ if int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))) == 0 && i == 3 {
return 1
}
if int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))) != '.' {
return 0
}
- s += (uintptr(j + 1))
+ s += uintptr(j + 1)
}
return 0
} else if af != 10 {
- (*(*int32)(unsafe.Pointer(X___errno_location(tls)))) = 97
+ *(*int32)(unsafe.Pointer(X___errno_location(tls))) = 97
return -1
}
- if (int32(*(*int8)(unsafe.Pointer(s))) == ':') && (int32(*(*int8)(unsafe.Pointer(PreIncUintptr(&s, 1)))) != ':') {
+ if int32(*(*int8)(unsafe.Pointer(s))) == ':' && int32(*(*int8)(unsafe.Pointer(PreIncUintptr(&s, 1)))) != ':' {
return 0
}
for i = 0; ; i++ {
- if (int32(*(*int8)(unsafe.Pointer(s))) == ':') && (brk < 0) {
+ if int32(*(*int8)(unsafe.Pointer(s))) == ':' && brk < 0 {
brk = i
- *(*uint16_t)(unsafe.Pointer(bp /* &ip[0] */ + uintptr((i&7))*2)) = uint16_t(0)
+ *(*uint16_t)(unsafe.Pointer(bp + uintptr(i&7)*2)) = uint16_t(0)
if !(int32(*(*int8)(unsafe.Pointer(PreIncUintptr(&s, 1)))) != 0) {
break
}
@@ -3507,40 +3507,40 @@ func Xinet_pton(tls *TLS, af int32, s uintptr, a0 uintptr) int32 { /* inet_pton.
}
continue
}
- for v = AssignInt32(&j, 0); (j < 4) && ((AssignInt32(&d, hexval(tls, uint32(*(*int8)(unsafe.Pointer(s + uintptr(j))))))) >= 0); j++ {
- v = ((16 * v) + d)
+ for v = AssignInt32(&j, 0); j < 4 && AssignInt32(&d, hexval(tls, uint32(*(*int8)(unsafe.Pointer(s + uintptr(j)))))) >= 0; j++ {
+ v = 16*v + d
}
if j == 0 {
return 0
}
- *(*uint16_t)(unsafe.Pointer(bp /* &ip[0] */ + uintptr((i&7))*2)) = uint16_t(v)
- if !(int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))) != 0) && ((brk >= 0) || (i == 7)) {
+ *(*uint16_t)(unsafe.Pointer(bp + uintptr(i&7)*2)) = uint16_t(v)
+ if !(int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))) != 0) && (brk >= 0 || i == 7) {
break
}
if i == 7 {
return 0
}
if int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))) != ':' {
- if (int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))) != '.') || ((i < 6) && (brk < 0)) {
+ if int32(*(*int8)(unsafe.Pointer(s + uintptr(j)))) != '.' || i < 6 && brk < 0 {
return 0
}
need_v4 = 1
i++
break
}
- s += (uintptr(j + 1))
+ s += uintptr(j + 1)
}
if brk >= 0 {
- Xmemmove(tls, (((bp /* &ip[0] */ + uintptr(brk)*2) + uintptr(7)*2) - uintptr(i)*2), (bp /* &ip[0] */ + uintptr(brk)*2), (uint64(2 * ((i + 1) - brk))))
- for j = 0; j < (7 - i); j++ {
- *(*uint16_t)(unsafe.Pointer(bp /* &ip[0] */ + uintptr((brk+j))*2)) = uint16_t(0)
+ Xmemmove(tls, bp+uintptr(brk)*2+uintptr(7)*2-uintptr(i)*2, bp+uintptr(brk)*2, uint64(2*(i+1-brk)))
+ for j = 0; j < 7-i; j++ {
+ *(*uint16_t)(unsafe.Pointer(bp + uintptr(brk+j)*2)) = uint16_t(0)
}
}
for j = 0; j < 8; j++ {
- *(*uint8)(unsafe.Pointer(PostIncUintptr(&a, 1))) = (uint8(int32(*(*uint16_t)(unsafe.Pointer(bp /* &ip[0] */ + uintptr(j)*2))) >> 8))
- *(*uint8)(unsafe.Pointer(PostIncUintptr(&a, 1))) = uint8(*(*uint16_t)(unsafe.Pointer(bp /* &ip[0] */ + uintptr(j)*2)))
+ *(*uint8)(unsafe.Pointer(PostIncUintptr(&a, 1))) = uint8(int32(*(*uint16_t)(unsafe.Pointer(bp + uintptr(j)*2))) >> 8)
+ *(*uint8)(unsafe.Pointer(PostIncUintptr(&a, 1))) = uint8(*(*uint16_t)(unsafe.Pointer(bp + uintptr(j)*2)))
}
- if (need_v4 != 0) && (Xinet_pton(tls, 2, s, (a-uintptr(4))) <= 0) {
+ if need_v4 != 0 && Xinet_pton(tls, 2, s, a-uintptr(4)) <= 0 {
return 0
}
return 1
@@ -3554,11 +3554,11 @@ func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int3
// var a6 in6_addr at bp+68, 16
- if X__inet_aton(tls, name, bp /* &a4 */) > 0 {
+ if X__inet_aton(tls, name, bp) > 0 {
if family == 10 { // wrong family
return -2
}
- Xmemcpy(tls, (buf + 8 /* &.addr */), bp /* &a4 */, uint64(unsafe.Sizeof(in_addr{})))
+ Xmemcpy(tls, buf+8, bp, uint64(unsafe.Sizeof(in_addr{})))
(*address)(unsafe.Pointer(buf)).family = 2
(*address)(unsafe.Pointer(buf)).scopeid = uint32(0)
return 1
@@ -3569,33 +3569,33 @@ func X__lookup_ipliteral(tls *TLS, buf uintptr, name uintptr, family int32) int3
// var z uintptr at bp+88, 8
var scopeid uint64 = uint64(0)
- if (p != 0) && (((int64(p) - int64(name)) / 1) < int64(64)) {
- Xmemcpy(tls, bp+4 /* &tmp[0] */, name, (uint64((int64(p) - int64(name)) / 1)))
- *(*int8)(unsafe.Pointer(bp + 4 /* &tmp[0] */ + uintptr(((int64(p) - int64(name)) / 1)))) = int8(0)
+ if p != 0 && (int64(p)-int64(name))/1 < int64(64) {
+ Xmemcpy(tls, bp+4, name, uint64((int64(p)-int64(name))/1))
+ *(*int8)(unsafe.Pointer(bp + 4 + uintptr((int64(p)-int64(name))/1))) = int8(0)
name = bp + 4 /* &tmp[0] */
}
- if Xinet_pton(tls, 10, name, bp+68 /* &a6 */) <= 0 {
+ if Xinet_pton(tls, 10, name, bp+68) <= 0 {
return 0
}
if family == 2 { // wrong family
return -2
}
- Xmemcpy(tls, (buf + 8 /* &.addr */), bp+68 /* &a6 */, uint64(unsafe.Sizeof(in6_addr{})))
+ Xmemcpy(tls, buf+8, bp+68, uint64(unsafe.Sizeof(in6_addr{})))
(*address)(unsafe.Pointer(buf)).family = 10
if p != 0 {
if func() int32 {
if 0 != 0 {
return Xisdigit(tls, int32(*(*int8)(unsafe.Pointer(PreIncUintptr(&p, 1)))))
}
- return (Bool32(((uint32(*(*int8)(unsafe.Pointer(PreIncUintptr(&p, 1))))) - uint32('0')) < uint32(10)))
+ return Bool32(uint32(*(*int8)(unsafe.Pointer(PreIncUintptr(&p, 1))))-uint32('0') < uint32(10))
}() != 0 {
- scopeid = Xstrtoull(tls, p, bp+88 /* &z */, 10)
+ scopeid = Xstrtoull(tls, p, bp+88, 10)
} else {
- *(*uintptr)(unsafe.Pointer(bp + 88 /* z */)) = (p - uintptr(1))
+ *(*uintptr)(unsafe.Pointer(bp + 88 /* z */)) = p - uintptr(1)
}
- if *(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 88 /* z */)))) != 0 {
+ if *(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp + 88)))) != 0 {
Xabort(tls) //TODO-
// if (!IN6_IS_ADDR_LINKLOCAL(&a6) &&
// !IN6_IS_ADDR_MC_LINKLOCAL(&a6))
@@ -3626,10 +3626,10 @@ type flock = struct {
func is_valid_hostname(tls *TLS, host uintptr) int32 { /* lookup_name.c:18:12: */
var s uintptr
//TODO if (strnlen(host, 255)-1 >= 254 || mbstowcs(0, host, 0) == -1) return 0;
- if (Xstrnlen(tls, host, uint64(255)) - uint64(1)) >= uint64(254) {
+ if Xstrnlen(tls, host, uint64(255))-uint64(1) >= uint64(254) {
return 0
}
- for s = host; (((int32(*(*uint8)(unsafe.Pointer(s))) >= 0x80) || (int32(*(*uint8)(unsafe.Pointer(s))) == '.')) || (int32(*(*uint8)(unsafe.Pointer(s))) == '-')) || (Xisalnum(tls, int32(*(*uint8)(unsafe.Pointer(s)))) != 0); s++ {
+ for s = host; int32(*(*uint8)(unsafe.Pointer(s))) >= 0x80 || int32(*(*uint8)(unsafe.Pointer(s))) == '.' || int32(*(*uint8)(unsafe.Pointer(s))) == '-' || Xisalnum(tls, int32(*(*uint8)(unsafe.Pointer(s)))) != 0; s++ {
}
return BoolInt32(!(*(*uint8)(unsafe.Pointer(s)) != 0))
}
@@ -3641,7 +3641,7 @@ func name_from_null(tls *TLS, buf uintptr, name uintptr, family int32, flags int
if name != 0 {
return 0
}
- if (flags & 0x01) != 0 {
+ if flags&0x01 != 0 {
//TODO if (family != AF_INET6)
//TODO buf[cnt++] = (struct address){ .family = AF_INET };
if family != 10 {
@@ -3684,7 +3684,7 @@ func name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family
//TODO FILE _f, *f = __fopen_rb_ca("/etc/hosts", &_f, _buf, sizeof _buf);
var _f FILE1
_ = _f
- var f uintptr = Xfopen(tls, ts+74 /* "/etc/hosts" */, ts+85 /* "rb" */)
+ var f uintptr = Xfopen(tls, ts+74, ts+85)
if !(f != 0) {
switch *(*int32)(unsafe.Pointer(X___errno_location(tls))) {
case 2:
@@ -3698,25 +3698,25 @@ func name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family
return -11
}
}
- for (Xfgets(tls, bp /* &line[0] */, int32(unsafe.Sizeof([512]int8{})), f) != 0) && (cnt < 48) {
+ for Xfgets(tls, bp, int32(unsafe.Sizeof([512]int8{})), f) != 0 && cnt < 48 {
var p uintptr
var z uintptr
- if AssignUintptr(&p, Xstrchr(tls, bp /* &line[0] */, '#')) != 0 {
+ if AssignUintptr(&p, Xstrchr(tls, bp, '#')) != 0 {
*(*int8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = int8('\n')
*(*int8)(unsafe.Pointer(p)) = int8(0)
}
- for p = (bp /* &line[0] */ + uintptr(1)); (AssignUintptr(&p, Xstrstr(tls, p, name)) != 0) && (!(__isspace(tls, int32(*(*int8)(unsafe.Pointer(p + UintptrFromInt32(-1))))) != 0) || !(__isspace(tls, int32(*(*int8)(unsafe.Pointer(p + uintptr(l))))) != 0)); p++ {
+ for p = bp + uintptr(1); AssignUintptr(&p, Xstrstr(tls, p, name)) != 0 && (!(__isspace(tls, int32(*(*int8)(unsafe.Pointer(p + UintptrFromInt32(-1))))) != 0) || !(__isspace(tls, int32(*(*int8)(unsafe.Pointer(p + uintptr(l))))) != 0)); p++ {
}
if !(p != 0) {
continue
}
// Isolate IP address to parse
- for p = bp; /* &line[0] */ (*(*int8)(unsafe.Pointer(p)) != 0) && !(__isspace(tls, int32(*(*int8)(unsafe.Pointer(p)))) != 0); p++ {
+ for p = bp; /* &line[0] */ *(*int8)(unsafe.Pointer(p)) != 0 && !(__isspace(tls, int32(*(*int8)(unsafe.Pointer(p)))) != 0); p++ {
}
*(*int8)(unsafe.Pointer(PostIncUintptr(&p, 1))) = int8(0)
- switch name_from_numeric(tls, (buf + uintptr(cnt)*28), bp /* &line[0] */, family) {
+ switch name_from_numeric(tls, buf+uintptr(cnt)*28, bp, family) {
case 1:
cnt++
break
@@ -3728,13 +3728,13 @@ func name_from_hosts(tls *TLS, buf uintptr, canon uintptr, name uintptr, family
}
// Extract first name as canonical name
- for ; (*(*int8)(unsafe.Pointer(p)) != 0) && (__isspace(tls, int32(*(*int8)(unsafe.Pointer(p)))) != 0); p++ {
+ for ; *(*int8)(unsafe.Pointer(p)) != 0 && __isspace(tls, int32(*(*int8)(unsafe.Pointer(p)))) != 0; p++ {
}
- for z = p; (*(*int8)(unsafe.Pointer(z)) != 0) && !(__isspace(tls, int32(*(*int8)(unsafe.Pointer(z)))) != 0); z++ {
+ for z = p; *(*int8)(unsafe.Pointer(z)) != 0 && !(__isspace(tls, int32(*(*int8)(unsafe.Pointer(z)))) != 0); z++ {
}
*(*int8)(unsafe.Pointer(z)) = int8(0)
if is_valid_hostname(tls, p) != 0 {
- Xmemcpy(tls, canon, p, (uint64(((int64(z) - int64(p)) / 1) + int64(1))))
+ Xmemcpy(tls, canon, p, uint64((int64(z)-int64(p))/1+int64(1)))
}
}
//TODO __fclose_ca(f);
@@ -3807,26 +3807,26 @@ type policy = struct {
} /* lookup_name.c:237:14 */
var defpolicy = [6]policy{
- {addr: *(*[16]uint8)(unsafe.Pointer(ts + 170 /* "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01" */)), len: uint8(15), mask: uint8(0xff), prec: uint8(50)},
- {addr: *(*[16]uint8)(unsafe.Pointer(ts + 187 /* "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00\x00\x00" */)), len: uint8(11), mask: uint8(0xff), prec: uint8(35), label: uint8(4)},
- {addr: *(*[16]uint8)(unsafe.Pointer(ts + 203 /* " \x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" */)), len: uint8(1), mask: uint8(0xff), prec: uint8(30), label: uint8(2)},
- {addr: *(*[16]uint8)(unsafe.Pointer(ts + 219 /* " \x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" */)), len: uint8(3), mask: uint8(0xff), prec: uint8(5), label: uint8(5)},
- {addr: *(*[16]uint8)(unsafe.Pointer(ts + 235 /* "\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" */)), mask: uint8(0xfe), prec: uint8(3), label: uint8(13)},
+ {addr: *(*[16]uint8)(unsafe.Pointer(ts + 170)), len: uint8(15), mask: uint8(0xff), prec: uint8(50)},
+ {addr: *(*[16]uint8)(unsafe.Pointer(ts + 187)), len: uint8(11), mask: uint8(0xff), prec: uint8(35), label: uint8(4)},
+ {addr: *(*[16]uint8)(unsafe.Pointer(ts + 203)), len: uint8(1), mask: uint8(0xff), prec: uint8(30), label: uint8(2)},
+ {addr: *(*[16]uint8)(unsafe.Pointer(ts + 219)), len: uint8(3), mask: uint8(0xff), prec: uint8(5), label: uint8(5)},
+ {addr: *(*[16]uint8)(unsafe.Pointer(ts + 235)), mask: uint8(0xfe), prec: uint8(3), label: uint8(13)},
// Last rule must match all addresses to stop loop.
- {addr: *(*[16]uint8)(unsafe.Pointer(ts + 251 /* "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" */)), prec: uint8(40), label: uint8(1)},
+ {addr: *(*[16]uint8)(unsafe.Pointer(ts + 251)), prec: uint8(40), label: uint8(1)},
} /* lookup_name.c:241:3 */
func policyof(tls *TLS, a uintptr) uintptr { /* lookup_name.c:259:28: */
var i int32
for i = 0; ; i++ {
- if Xmemcmp(tls, a /* &.__in6_union */ /* &.__s6_addr */, uintptr(unsafe.Pointer(&defpolicy))+uintptr(i)*20 /* &.addr */, uint64(defpolicy[i].len)) != 0 {
+ if Xmemcmp(tls, a, uintptr(unsafe.Pointer(&defpolicy))+uintptr(i)*20, uint64(defpolicy[i].len)) != 0 {
continue
}
- if (int32(*(*uint8_t)(unsafe.Pointer((a /* &.__in6_union */ /* &.__s6_addr */) + uintptr(defpolicy[i].len)))) & int32(defpolicy[i].mask)) !=
- int32(*(*uint8)(unsafe.Pointer((uintptr(unsafe.Pointer(&defpolicy)) + uintptr(i)*20 /* &.addr */) + uintptr(defpolicy[i].len)))) {
+ if int32(*(*uint8_t)(unsafe.Pointer(a + uintptr(defpolicy[i].len))))&int32(defpolicy[i].mask) !=
+ int32(*(*uint8)(unsafe.Pointer(uintptr(unsafe.Pointer(&defpolicy)) + uintptr(i)*20 + uintptr(defpolicy[i].len)))) {
continue
}
- return (uintptr(unsafe.Pointer(&defpolicy)) + uintptr(i)*20)
+ return uintptr(unsafe.Pointer(&defpolicy)) + uintptr(i)*20
}
return uintptr(0)
}
@@ -3836,16 +3836,16 @@ func labelof(tls *TLS, a uintptr) int32 { /* lookup_name.c:272:12: */
}
func scopeof(tls *TLS, a uintptr) int32 { /* lookup_name.c:277:12: */
- if int32(*(*uint8_t)(unsafe.Pointer((a)))) == 0xff {
- return (int32(*(*uint8_t)(unsafe.Pointer((a /* &.__in6_union */ /* &.__s6_addr */) + 1))) & 15)
+ if int32(*(*uint8_t)(unsafe.Pointer(a))) == 0xff {
+ return int32(*(*uint8_t)(unsafe.Pointer(a + 1))) & 15
}
- if ((int32(*(*uint8_t)(unsafe.Pointer((a))))) == 0xfe) && ((int32(*(*uint8_t)(unsafe.Pointer((a) + 1))) & 0xc0) == 0x80) {
+ if int32(*(*uint8_t)(unsafe.Pointer(a))) == 0xfe && int32(*(*uint8_t)(unsafe.Pointer(a + 1)))&0xc0 == 0x80 {
return 2
}
- if ((((((*(*uint32_t)(unsafe.Pointer((a))) == uint32_t(0)) && (*(*uint32_t)(unsafe.Pointer((a) + 1*4)) == uint32_t(0))) && (*(*uint32_t)(unsafe.Pointer((a) + 2*4)) == uint32_t(0))) && (int32(*(*uint8_t)(unsafe.Pointer((a) + 12))) == 0)) && (int32(*(*uint8_t)(unsafe.Pointer((a) + 13))) == 0)) && (int32(*(*uint8_t)(unsafe.Pointer((a) + 14))) == 0)) && (int32(*(*uint8_t)(unsafe.Pointer((a) + 15))) == 1) {
+ if *(*uint32_t)(unsafe.Pointer(a)) == uint32_t(0) && *(*uint32_t)(unsafe.Pointer(a + 1*4)) == uint32_t(0) && *(*uint32_t)(unsafe.Pointer(a + 2*4)) == uint32_t(0) && int32(*(*uint8_t)(unsafe.Pointer(a + 12))) == 0 && int32(*(*uint8_t)(unsafe.Pointer(a + 13))) == 0 && int32(*(*uint8_t)(unsafe.Pointer(a + 14))) == 0 && int32(*(*uint8_t)(unsafe.Pointer(a + 15))) == 1 {
return 2
}
- if ((int32(*(*uint8_t)(unsafe.Pointer((a))))) == 0xfe) && ((int32(*(*uint8_t)(unsafe.Pointer((a) + 1))) & 0xc0) == 0xc0) {
+ if int32(*(*uint8_t)(unsafe.Pointer(a))) == 0xfe && int32(*(*uint8_t)(unsafe.Pointer(a + 1)))&0xc0 == 0xc0 {
return 5
}
return 14
@@ -3857,7 +3857,7 @@ func prefixmatch(tls *TLS, s uintptr, d uintptr) int32 { /* lookup_name.c:286:12
// address. However the definition of the source prefix length is
// not clear and thus this limiting is not yet implemented.
var i uint32
- for i = uint32(0); (i < uint32(128)) && !(((int32(*(*uint8_t)(unsafe.Pointer((s /* &.__in6_union */ /* &.__s6_addr */) + uintptr((i / uint32(8)))))) ^ int32(*(*uint8_t)(unsafe.Pointer((d /* &.__in6_union */ /* &.__s6_addr */) + uintptr((i / uint32(8))))))) & (int32(128) >> (i % uint32(8)))) != 0); i++ {
+ for i = uint32(0); i < uint32(128) && !((int32(*(*uint8_t)(unsafe.Pointer(s /* &.__in6_union */ /* &.__s6_addr */ + uintptr(i/uint32(8)))))^int32(*(*uint8_t)(unsafe.Pointer(d /* &.__in6_union */ /* &.__s6_addr */ + uintptr(i/uint32(8))))))&(int32(128)>>(i%uint32(8))) != 0); i++ {
}
return int32(i)
}
@@ -3865,7 +3865,7 @@ func prefixmatch(tls *TLS, s uintptr, d uintptr) int32 { /* lookup_name.c:286:12
func addrcmp(tls *TLS, _a uintptr, _b uintptr) int32 { /* lookup_name.c:305:12: */
var a uintptr = _a
var b uintptr = _b
- return ((*address)(unsafe.Pointer(b)).sortkey - (*address)(unsafe.Pointer(a)).sortkey)
+ return (*address)(unsafe.Pointer(b)).sortkey - (*address)(unsafe.Pointer(a)).sortkey
}
func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family int32, flags int32) int32 { /* lookup_name.c:311:5: */
@@ -3881,20 +3881,20 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i
if name != 0 {
// reject empty name and check len so it fits into temp bufs
var l size_t = Xstrnlen(tls, name, uint64(255))
- if (l - uint64(1)) >= uint64(254) {
+ if l-uint64(1) >= uint64(254) {
return -2
}
- Xmemcpy(tls, canon, name, (l + uint64(1)))
+ Xmemcpy(tls, canon, name, l+uint64(1))
}
// Procedurally, a request for v6 addresses with the v4-mapped
// flag set is like a request for unspecified family, followed
// by filtering of the results.
- if (flags & 0x08) != 0 {
+ if flags&0x08 != 0 {
if family == 10 {
family = 0
} else {
- flags = flags - (0x08)
+ flags = flags - 0x08
}
}
@@ -3903,7 +3903,7 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i
if !(cnt != 0) {
cnt = name_from_numeric(tls, buf, name, family)
}
- if !(cnt != 0) && !((flags & 0x04) != 0) {
+ if !(cnt != 0) && !(flags&0x04 != 0) {
cnt = name_from_hosts(tls, buf, canon, name, family)
if !(cnt != 0) {
cnt = name_from_dns_search(tls, buf, canon, name, family)
@@ -3917,7 +3917,7 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i
}
// Filter/transform results for v4-mapped lookup, if requested.
- if (flags & 0x08) != 0 {
+ if flags&0x08 != 0 {
Xabort(tls) //TODO-
// if (!(flags & AI_ALL)) {
// /* If any v6 results exist, remove v4 results. */
@@ -3941,7 +3941,7 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i
// No further processing is needed if there are fewer than 2
// results or if there are only IPv4 results.
- if (cnt < 2) || (family == 2) {
+ if cnt < 2 || family == 2 {
return cnt
}
for i = 0; i < cnt; i++ {
@@ -3974,55 +3974,55 @@ func X__lookup_name(tls *TLS, buf uintptr, canon uintptr, name uintptr, family i
var dalen socklen_t
if family == 10 {
- Xmemcpy(tls, bp /* &da6 */ +8 /* &.sin6_addr */ /* &.__in6_union */ /* &.__s6_addr */, buf+uintptr(i)*28+8 /* &.addr */, uint64(16))
+ Xmemcpy(tls, bp+8, buf+uintptr(i)*28+8, uint64(16))
da = bp /* &da6 */
dalen = socklen_t(unsafe.Sizeof(sockaddr_in6{}))
sa1 = bp + 28 /* &sa6 */
*(*socklen_t)(unsafe.Pointer(bp + 88 /* salen */)) = socklen_t(unsafe.Sizeof(sockaddr_in6{}))
} else {
- Xmemcpy(tls, bp+28 /* &sa6 */ +8, /* &.sin6_addr */ /* &.__in6_union */ /* &.__s6_addr */
- ts+88 /* "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff" */, uint64(12))
- Xmemcpy(tls, ((bp /* &da6 */ + 8 /* &.sin6_addr */ /* &.__in6_union */ /* &.__s6_addr */) + uintptr(12)), buf+uintptr(i)*28+8 /* &.addr */, uint64(4))
- Xmemcpy(tls, bp /* &da6 */ +8, /* &.sin6_addr */ /* &.__in6_union */ /* &.__s6_addr */
- ts+88 /* "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff" */, uint64(12))
- Xmemcpy(tls, ((bp /* &da6 */ + 8 /* &.sin6_addr */ /* &.__in6_union */ /* &.__s6_addr */) + uintptr(12)), buf+uintptr(i)*28+8 /* &.addr */, uint64(4))
- Xmemcpy(tls, (bp + 56 /* &da4 */ + 4 /* &.sin_addr */), buf+uintptr(i)*28+8 /* &.addr */, uint64(4))
+ Xmemcpy(tls, bp+28+8,
+ ts+88, uint64(12))
+ Xmemcpy(tls, bp+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4))
+ Xmemcpy(tls, bp+8,
+ ts+88, uint64(12))
+ Xmemcpy(tls, bp+8+uintptr(12), buf+uintptr(i)*28+8, uint64(4))
+ Xmemcpy(tls, bp+56+4, buf+uintptr(i)*28+8, uint64(4))
da = bp + 56 /* &da4 */
dalen = socklen_t(unsafe.Sizeof(sockaddr_in{}))
sa1 = bp + 72 /* &sa4 */
*(*socklen_t)(unsafe.Pointer(bp + 88 /* salen */)) = socklen_t(unsafe.Sizeof(sockaddr_in{}))
}
- var dpolicy uintptr = policyof(tls, (bp /* &da6 */ + 8 /* &.sin6_addr */))
- var dscope int32 = scopeof(tls, (bp /* &da6 */ + 8 /* &.sin6_addr */))
+ var dpolicy uintptr = policyof(tls, bp+8)
+ var dscope int32 = scopeof(tls, bp+8)
var dlabel int32 = int32((*policy)(unsafe.Pointer(dpolicy)).label)
var dprec int32 = int32((*policy)(unsafe.Pointer(dpolicy)).prec)
var prefixlen int32 = 0
- var fd int32 = Xsocket(tls, family, (2 | 02000000), 17)
+ var fd int32 = Xsocket(tls, family, 2|02000000, 17)
if fd >= 0 {
if !(Xconnect(tls, fd, da, dalen) != 0) {
- key = key | (0x40000000)
- if !(Xgetsockname(tls, fd, sa1, bp+88 /* &salen */) != 0) {
+ key = key | 0x40000000
+ if !(Xgetsockname(tls, fd, sa1, bp+88) != 0) {
if family == 2 {
Xmemcpy(tls,
- ((bp + 28 /* &sa6 */ + 8 /* &.sin6_addr */ /* &.__in6_union */ /* &.__s6_addr */) + uintptr(12)),
- (bp + 72 /* &sa4 */ + 4 /* &.sin_addr */), uint64(4))
+ bp+28+8+uintptr(12),
+ bp+72+4, uint64(4))
}
- if dscope == scopeof(tls, (bp+28 /* &sa6 */ +8 /* &.sin6_addr */)) {
- key = key | (0x20000000)
+ if dscope == scopeof(tls, bp+28+8) {
+ key = key | 0x20000000
}
- if dlabel == labelof(tls, (bp+28 /* &sa6 */ +8 /* &.sin6_addr */)) {
- key = key | (0x10000000)
+ if dlabel == labelof(tls, bp+28+8) {
+ key = key | 0x10000000
}
- prefixlen = prefixmatch(tls, (bp + 28 /* &sa6 */ + 8 /* &.sin6_addr */),
- (bp /* &da6 */ + 8 /* &.sin6_addr */))
+ prefixlen = prefixmatch(tls, bp+28+8,
+ bp+8)
}
}
Xclose(tls, fd)
}
- key = key | (dprec << 20)
- key = key | ((15 - dscope) << 16)
- key = key | (prefixlen << 8)
- key = key | ((48 - i) << 0)
+ key = key | dprec<<20
+ key = key | (15-dscope)<<16
+ key = key | prefixlen<<8
+ key = key | (48-i)<<0
(*address)(unsafe.Pointer(buf + uintptr(i)*28)).sortkey = key
}
Xqsort(tls, buf, uint64(cnt), uint64(unsafe.Sizeof(address{})), *(*uintptr)(unsafe.Pointer(&struct {
@@ -4085,9 +4085,9 @@ func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype i
if !(int32(*(*int8)(unsafe.Pointer(name))) != 0) {
return -8
}
- port = Xstrtoul(tls, name, bp /* &z */, 10)
+ port = Xstrtoul(tls, name, bp, 10)
}
- if !(int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp /* z */))))) != 0) {
+ if !(int32(*(*int8)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(bp))))) != 0) {
if port > uint64(65535) {
return -8
}
@@ -4104,7 +4104,7 @@ func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype i
return cnt
}
- if (flags & 0x400) != 0 {
+ if flags&0x400 != 0 {
return -2
}
@@ -4160,19 +4160,19 @@ func X__lookup_serv(tls *TLS, buf uintptr, name uintptr, proto int32, socktype i
}
func X__toread(tls *TLS, f uintptr) int32 { /* __toread.c:3:5: */
- *(*int32)(unsafe.Pointer(f + 136 /* &.mode */)) |= ((*FILE1)(unsafe.Pointer(f)).mode - 1)
+ *(*int32)(unsafe.Pointer(f + 136)) |= (*FILE1)(unsafe.Pointer(f)).mode - 1
if (*FILE1)(unsafe.Pointer(f)).wpos != (*FILE1)(unsafe.Pointer(f)).wbase {
(*struct {
f func(*TLS, uintptr, uintptr, size_t) size_t
})(unsafe.Pointer(&struct{ uintptr }{(*FILE1)(unsafe.Pointer(f)).write})).f(tls, f, uintptr(0), uint64(0))
}
- (*FILE1)(unsafe.Pointer(f)).wpos = AssignPtrUintptr(f+56 /* &.wbase */, AssignPtrUintptr(f+32 /* &.wend */, uintptr(0)))
- if ((*FILE1)(unsafe.Pointer(f)).flags & uint32(4)) != 0 {
- *(*uint32)(unsafe.Pointer(f /* &.flags */)) |= (uint32(32))
+ (*FILE1)(unsafe.Pointer(f)).wpos = AssignPtrUintptr(f+56, AssignPtrUintptr(f+32, uintptr(0)))
+ if (*FILE1)(unsafe.Pointer(f)).flags&uint32(4) != 0 {
+ *(*uint32)(unsafe.Pointer(f)) |= uint32(32)
return -1
}
- (*FILE1)(unsafe.Pointer(f)).rpos = AssignPtrUintptr(f+16 /* &.rend */, ((*FILE1)(unsafe.Pointer(f)).buf + uintptr((*FILE1)(unsafe.Pointer(f)).buf_size)))
- if ((*FILE1)(unsafe.Pointer(f)).flags & uint32(16)) != 0 {
+ (*FILE1)(unsafe.Pointer(f)).rpos = AssignPtrUintptr(f+16, (*FILE1)(unsafe.Pointer(f)).buf+uintptr((*FILE1)(unsafe.Pointer(f)).buf_size))
+ if (*FILE1)(unsafe.Pointer(f)).flags&uint32(16) != 0 {
return -1
}
return 0
@@ -4192,29 +4192,49 @@ func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */
// var c uint8 at bp, 1
- if !(X__toread(tls, f) != 0) && ((*struct {
+ if !(X__toread(tls, f) != 0) && (*struct {
f func(*TLS, uintptr, uintptr, size_t) size_t
- })(unsafe.Pointer(&struct{ uintptr }{(*FILE1)(unsafe.Pointer(f)).read})).f(tls, f, bp /* &c */, uint64(1)) == uint64(1)) {
- return int32(*(*uint8)(unsafe.Pointer(bp /* c */)))
+ })(unsafe.Pointer(&struct{ uintptr }{(*FILE1)(unsafe.Pointer(f)).read})).f(tls, f, bp, uint64(1)) == uint64(1) {
+ return int32(*(*uint8)(unsafe.Pointer(bp)))
}
return -1
}
+func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */
+ var try uintptr
+ var sign int32
+ for nel > uint64(0) {
+ try = base + uintptr(width*(nel/uint64(2)))
+ sign = (*struct {
+ f func(*TLS, uintptr, uintptr) int32
+ })(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try)
+ if sign < 0 {
+ nel = nel / uint64(2)
+ } else if sign > 0 {
+ base = try + uintptr(width)
+ nel = nel - (nel/uint64(2) + uint64(1))
+ } else {
+ return try
+ }
+ }
+ return uintptr(0)
+}
+
func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6:20: */
bp := tls.Alloc(232)
defer tls.Free(232)
// var f FILE1 at bp, 232
- (*FILE1)(unsafe.Pointer(bp /* &f */)).buf = AssignPtrUintptr(bp /* &f */ +8 /* &.rpos */, s)
- (*FILE1)(unsafe.Pointer(bp /* &f */)).rend = UintptrFromInt32(-1)
- X__shlim(tls, bp /* &f */, int64(0))
- var y float64 = X__floatscan(tls, bp /* &f */, prec, 1)
- var cnt off_t = ((*FILE1)(unsafe.Pointer((bp /* &f */))).shcnt + ((int64((*FILE1)(unsafe.Pointer((bp /* &f */))).rpos) - int64((*FILE1)(unsafe.Pointer((bp /* &f */))).buf)) / 1))
+ (*FILE1)(unsafe.Pointer(bp)).buf = AssignPtrUintptr(bp+8, s)
+ (*FILE1)(unsafe.Pointer(bp)).rend = UintptrFromInt32(-1)
+ X__shlim(tls, bp, int64(0))
+ var y float64 = X__floatscan(tls, bp, prec, 1)
+ var cnt off_t = (*FILE1)(unsafe.Pointer(bp)).shcnt + (int64((*FILE1)(unsafe.Pointer(bp)).rpos)-int64((*FILE1)(unsafe.Pointer(bp)).buf))/1
if p != 0 {
*(*uintptr)(unsafe.Pointer(p)) = func() uintptr {
if cnt != 0 {
- return (s + uintptr(cnt))
+ return s + uintptr(cnt)
}
return s
}()
@@ -4240,31 +4260,31 @@ func strtox1(tls *TLS, s uintptr, p uintptr, base int32, lim uint64) uint64 { /*
// var f FILE1 at bp, 232
- (*FILE1)(unsafe.Pointer(bp /* &f */)).buf = AssignPtrUintptr(bp /* &f */ +8 /* &.rpos */, s)
- (*FILE1)(unsafe.Pointer(bp /* &f */)).rend = UintptrFromInt32(-1)
- X__shlim(tls, bp /* &f */, int64(0))
- var y uint64 = X__intscan(tls, bp /* &f */, uint32(base), 1, lim)
+ (*FILE1)(unsafe.Pointer(bp)).buf = AssignPtrUintptr(bp+8, s)
+ (*FILE1)(unsafe.Pointer(bp)).rend = UintptrFromInt32(-1)
+ X__shlim(tls, bp, int64(0))
+ var y uint64 = X__intscan(tls, bp, uint32(base), 1, lim)
if p != 0 {
- var cnt size_t = (size_t((*FILE1)(unsafe.Pointer((bp /* &f */))).shcnt + ((int64((*FILE1)(unsafe.Pointer((bp /* &f */))).rpos) - int64((*FILE1)(unsafe.Pointer((bp /* &f */))).buf)) / 1)))
- *(*uintptr)(unsafe.Pointer(p)) = (s + uintptr(cnt))
+ var cnt size_t = size_t((*FILE1)(unsafe.Pointer(bp)).shcnt + (int64((*FILE1)(unsafe.Pointer(bp)).rpos)-int64((*FILE1)(unsafe.Pointer(bp)).buf))/1)
+ *(*uintptr)(unsafe.Pointer(p)) = s + uintptr(cnt)
}
return y
}
func Xstrtoull(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:21:20: */
- return strtox1(tls, s, p, base, ((2 * uint64(0x7fffffffffffffff)) + uint64(1)))
+ return strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1))
}
func Xstrtoll(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:26:11: */
- return int64(strtox1(tls, s, p, base, (Uint64FromInt64(-0x7fffffffffffffff - int64(1)))))
+ return int64(strtox1(tls, s, p, base, Uint64FromInt64(-0x7fffffffffffffff-int64(1))))
}
func Xstrtoul(tls *TLS, s uintptr, p uintptr, base int32) uint64 { /* strtol.c:31:15: */
- return uint64(strtox1(tls, s, p, base, ((2 * uint64(0x7fffffffffffffff)) + uint64(1))))
+ return uint64(strtox1(tls, s, p, base, 2*uint64(0x7fffffffffffffff)+uint64(1)))
}
func Xstrtol(tls *TLS, s uintptr, p uintptr, base int32) int64 { /* strtol.c:36:6: */
- return int64(strtox1(tls, s, p, base, (0 + (Uint64FromInt64(Int64(-Int64(0x7fffffffffffffff)) - Int64FromInt32(1))))))
+ return int64(strtox1(tls, s, p, base, 0+Uint64FromInt64(Int64(-Int64(0x7fffffffffffffff))-Int64FromInt32(1))))
}
func Xstrtoimax(tls *TLS, s uintptr, p uintptr, base int32) intmax_t { /* strtol.c:41:10: */
@@ -4277,17 +4297,17 @@ func Xstrtoumax(tls *TLS, s uintptr, p uintptr, base int32) uintmax_t { /* strto
func Xstrdup(tls *TLS, s uintptr) uintptr { /* strdup.c:4:6: */
var l size_t = Xstrlen(tls, s)
- var d uintptr = Xmalloc(tls, (l + uint64(1)))
+ var d uintptr = Xmalloc(tls, l+uint64(1))
if !(d != 0) {
return uintptr(0)
}
- return Xmemcpy(tls, d, s, (l + uint64(1)))
+ return Xmemcpy(tls, d, s, l+uint64(1))
}
func Xstrnlen(tls *TLS, s uintptr, n size_t) size_t { /* strnlen.c:3:8: */
var p uintptr = Xmemchr(tls, s, 0, n)
if p != 0 {
- return (uint64((int64(p) - int64(s)) / 1))
+ return uint64((int64(p) - int64(s)) / 1)
}
return n
}
@@ -4305,19 +4325,19 @@ func Xstrspn(tls *TLS, s uintptr, c uintptr) size_t { /* strspn.c:6:8: */
if !(int32(*(*int8)(unsafe.Pointer(c + 1))) != 0) {
for ; int32(*(*int8)(unsafe.Pointer(s))) == int32(*(*int8)(unsafe.Pointer(c))); s++ {
}
- return (size_t((int64(s) - int64(a)) / 1))
+ return size_t((int64(s) - int64(a)) / 1)
}
- for ; (*(*int8)(unsafe.Pointer(c)) != 0) && (AssignOrPtrUint64(bp /* &byteset */ +uintptr(((size_t(*(*uint8)(unsafe.Pointer(c))))/(uint64(8)*uint64(unsafe.Sizeof(size_t(0))))))*8, (size_t(uint64(1))<<((size_t(*(*uint8)(unsafe.Pointer(c))))%(uint64(8)*uint64(unsafe.Sizeof(size_t(0))))))) != 0); c++ {
+ for ; *(*int8)(unsafe.Pointer(c)) != 0 && AssignOrPtrUint64(bp+uintptr(size_t(*(*uint8)(unsafe.Pointer(c)))/(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))*8, size_t(uint64(1))<<(size_t(*(*uint8)(unsafe.Pointer(c)))%(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))) != 0; c++ {
}
- for ; (*(*int8)(unsafe.Pointer(s)) != 0) && ((*(*size_t)(unsafe.Pointer(bp /* &byteset[0] */ + uintptr(((size_t(*(*uint8)(unsafe.Pointer(s))))/(uint64(8)*uint64(unsafe.Sizeof(size_t(0))))))*8)) & (size_t(uint64(1)) << ((size_t(*(*uint8)(unsafe.Pointer(s)))) % (uint64(8) * uint64(unsafe.Sizeof(size_t(0))))))) != 0); s++ {
+ for ; *(*int8)(unsafe.Pointer(s)) != 0 && *(*size_t)(unsafe.Pointer(bp + uintptr(size_t(*(*uint8)(unsafe.Pointer(s)))/(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))*8))&(size_t(uint64(1))<<(size_t(*(*uint8)(unsafe.Pointer(s)))%(uint64(8)*uint64(unsafe.Sizeof(size_t(0)))))) != 0; s++ {
}
- return (size_t((int64(s) - int64(a)) / 1))
+ return size_t((int64(s) - int64(a)) / 1)
}
func init() {
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&X_ctype_tab_)) + 0)) = (uintptr(unsafe.Pointer(&X_C_ctype_tab_))) // ctype_.cpp.c:2233:37:
- *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&X_ctype_tab_)) + 0)) = (uintptr(unsafe.Pointer(&X_C_ctype_tab_))) // ctype_.cpp.c:2233:37:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&X_ctype_tab_)) + 0)) = uintptr(unsafe.Pointer(&X_C_ctype_tab_)) // ctype_.cpp.c:2233:37:
+ *(*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&X_ctype_tab_)) + 0)) = uintptr(unsafe.Pointer(&X_C_ctype_tab_)) // ctype_.cpp.c:2233:37:
}
var ts1 = "infinity\x00nan\x00\x00\x00\x01\x02\x04\a\x03\x06\x05\x00%d.%d.%d.%d.in-addr.arpa\x00ip6.arpa\x000123456789abcdef\x00/etc/hosts\x00rb\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00%d.%d.%d.%d\x00%x:%x:%x:%x:%x:%x:%x:%x\x00%x:%x:%x:%x:%x:%x:%d.%d.%d.%d\x00:0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\x00\x00\x00\x00 \x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00 \x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
diff --git a/vendor/modernc.org/libc/musl_openbsd_amd64.go b/vendor/modernc.org/libc/musl_openbsd_amd64.go
index ac379418..961f7cd5 100644
--- a/vendor/modernc.org/libc/musl_openbsd_amd64.go
+++ b/vendor/modernc.org/libc/musl_openbsd_amd64.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6,getnameinfo,gethostbyaddr_r, -nostdinc -nostdlib -o ../musl_openbsd_amd64.go -pkgname libc -static-locals-prefix _s -Iarch/x86_64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c ../freebsd/table.cpp.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/isprint.c src/ctype/isspace.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/stdio/__toread.c src/stdio/__uflow.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strnlen.c src/string/strspn.c', DO NOT EDIT.
+// Code generated by 'ccgo -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6,getnameinfo,gethostbyaddr_r, -nostdinc -nostdlib -o ../musl_openbsd_amd64.go -pkgname libc -static-locals-prefix _s -Iarch/x86_64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c ../freebsd/table.cpp.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isspace.c src/ctype/isupper.c src/ctype/isxdigit.c src/internal/floatscan.c src/internal/intscan.c src/internal/shgetc.c src/math/copysignl.c src/math/fabsl.c src/math/fmodl.c src/math/rint.c src/math/scalbn.c src/math/scalbnl.c src/network/freeaddrinfo.c src/network/getaddrinfo.c src/network/gethostbyaddr.c src/network/gethostbyaddr_r.c src/network/gethostbyname.c src/network/gethostbyname2.c src/network/gethostbyname2_r.c src/network/getnameinfo.c src/network/h_errno.c src/network/inet_aton.c src/network/inet_ntop.c src/network/inet_pton.c src/network/lookup_ipliteral.c src/network/lookup_name.c src/network/lookup_serv.c src/stdio/__toread.c src/stdio/__uflow.c src/stdlib/bsearch.c src/stdlib/strtod.c src/stdlib/strtol.c src/string/strdup.c src/string/strnlen.c src/string/strspn.c', DO NOT EDIT.
package libc
@@ -3356,6 +3356,14 @@ func X__isdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isdigit.c:9:5: */
return Xisdigit(tls, c)
}
+func Xislower(tls *TLS, c int32) int32 { /* islower.c:4:5: */
+ return Bool32(uint32(c)-uint32('a') < uint32(26))
+}
+
+func X__islower_l(tls *TLS, c int32, l locale_t) int32 { /* islower.c:9:5: */
+ return Xislower(tls, c)
+}
+
func Xisprint(tls *TLS, c int32) int32 { /* isprint.c:4:5: */
return Bool32(uint32(c)-uint32(0x20) < uint32(0x5f))
}
@@ -3372,6 +3380,27 @@ func X__isspace_l(tls *TLS, c int32, l locale_t) int32 { /* isspace.c:9:5: */
return Xisspace(tls, c)
}
+func Xisupper(tls *TLS, c int32) int32 { /* isupper.c:4:5: */
+ return Bool32(uint32(c)-uint32('A') < uint32(26))
+}
+
+func X__isupper_l(tls *TLS, c int32, l locale_t) int32 { /* isupper.c:9:5: */
+ return Xisupper(tls, c)
+}
+
+func Xisxdigit(tls *TLS, c int32) int32 { /* isxdigit.c:3:5: */
+ return Bool32(func() int32 {
+ if 0 != 0 {
+ return Xisdigit(tls, c)
+ }
+ return Bool32(uint32(c)-uint32('0') < uint32(10))
+ }() != 0 || uint32(c)|uint32(32)-uint32('a') < uint32(6))
+}
+
+func X__isxdigit_l(tls *TLS, c int32, l locale_t) int32 { /* isxdigit.c:8:5: */
+ return Xisxdigit(tls, c)
+}
+
type uintptr_t = uint64 /* alltypes.h:55:24 */
type intptr_t = int64 /* alltypes.h:70:15 */
@@ -6683,6 +6712,26 @@ func X__uflow(tls *TLS, f uintptr) int32 { /* __uflow.c:6:5: */
return -1
}
+func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */
+ var try uintptr
+ var sign int32
+ for nel > uint64(0) {
+ try = base + uintptr(width*(nel/uint64(2)))
+ sign = (*struct {
+ f func(*TLS, uintptr, uintptr) int32
+ })(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try)
+ if sign < 0 {
+ nel = nel / uint64(2)
+ } else if sign > 0 {
+ base = try + uintptr(width)
+ nel = nel - (nel/uint64(2) + uint64(1))
+ } else {
+ return try
+ }
+ }
+ return uintptr(0)
+}
+
func strtox(tls *TLS, s uintptr, p uintptr, prec int32) float64 { /* strtod.c:6:20: */
bp := tls.Alloc(232)
defer tls.Free(232)
diff --git a/vendor/modernc.org/libc/musl_windows_386.go b/vendor/modernc.org/libc/musl_windows_386.go
index 24c5b240..f802d13d 100644
--- a/vendor/modernc.org/libc/musl_windows_386.go
+++ b/vendor/modernc.org/libc/musl_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo -D__environ=environ -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_windows_386.go -pkgname libc -static-locals-prefix _s -Iarch/i386 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isspace.c src/ctype/isxdigit.c src/env/putenv.c src/env/setenv.c src/env/unsetenv.c src/multibyte/wcrtomb.c src/multibyte/wcsrtombs.c src/multibyte/wcstombs.c src/string/strchrnul.c src/string/strdup.c', DO NOT EDIT.
+// Code generated by 'ccgo -D__environ=environ -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_windows_386.go -pkgname libc -static-locals-prefix _s -Iarch\i386 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isspace.c src/ctype/isxdigit.c src/env/putenv.c src/env/setenv.c src/env/unsetenv.c src/multibyte/wcrtomb.c src/multibyte/wcsrtombs.c src/multibyte/wcstombs.c src/stdlib/bsearch.c src/string/strchrnul.c src/string/strdup.c', DO NOT EDIT.
package libc
@@ -863,32 +863,32 @@ type mode_t = uint32 /* alltypes.h:175:18 */
type syscall_arg_t = int32 /* syscall.h:22:14 */
func a_cas(tls *TLS, p uintptr, t int32, s int32) int32 { /* atomic_arch.h:2:19: */
- panic(`arch/i386/atomic_arch.h:4:2: assembler statements not supported`)
+ panic(`arch\i386\atomic_arch.h:4:2: assembler statements not supported`)
return t
}
func a_and(tls *TLS, p uintptr, v int32) { /* atomic_arch.h:29:20: */
- panic(`arch/i386/atomic_arch.h:31:2: assembler statements not supported`)
+ panic(`arch\i386\atomic_arch.h:31:2: assembler statements not supported`)
}
func a_or(tls *TLS, p uintptr, v int32) { /* atomic_arch.h:37:20: */
- panic(`arch/i386/atomic_arch.h:39:2: assembler statements not supported`)
+ panic(`arch\i386\atomic_arch.h:39:2: assembler statements not supported`)
}
func a_ctz_64(tls *TLS, x uint64_t) int32 { /* atomic_arch.h:87:19: */
var r int32
- panic(`arch/i386/atomic_arch.h:90:2: assembler statements not supported`)
+ panic(`arch\i386\atomic_arch.h:90:2: assembler statements not supported`)
return r
}
func a_ctz_32(tls *TLS, x uint32_t) int32 { /* atomic_arch.h:96:19: */
var r int32
- panic(`arch/i386/atomic_arch.h:99:2: assembler statements not supported`)
+ panic(`arch\i386\atomic_arch.h:99:2: assembler statements not supported`)
return r
}
func a_clz_32(tls *TLS, x uint32_t) int32 { /* atomic_arch.h:104:19: */
- panic(`arch/i386/atomic_arch.h:106:2: assembler statements not supported`)
+ panic(`arch\i386\atomic_arch.h:106:2: assembler statements not supported`)
return int32(x)
}
@@ -917,7 +917,7 @@ type __timer = struct {
func __pthread_self(tls *TLS) uintptr { /* pthread_arch.h:1:30: */
var self uintptr
- panic(`arch/i386/pthread_arch.h:4:2: assembler statements not supported`)
+ panic(`arch\i386\pthread_arch.h:4:2: assembler statements not supported`)
return self
}
@@ -1039,6 +1039,26 @@ func Xwcstombs(tls *TLS, s uintptr, ws uintptr, n size_t) size_t { /* wcstombs.c
return Xwcsrtombs(tls, s, bp, n, uintptr(0))
}
+func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */
+ var try uintptr
+ var sign int32
+ for nel > size_t(0) {
+ try = base + uintptr(width*(nel/size_t(2)))
+ sign = (*struct {
+ f func(*TLS, uintptr, uintptr) int32
+ })(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try)
+ if sign < 0 {
+ nel = nel / size_t(2)
+ } else if sign > 0 {
+ base = try + uintptr(width)
+ nel = nel - (nel/size_t(2) + size_t(1))
+ } else {
+ return try
+ }
+ }
+ return uintptr(0)
+}
+
// Support signed or unsigned plain-char
// Implementation choices...
diff --git a/vendor/modernc.org/libc/musl_windows_amd64.go b/vendor/modernc.org/libc/musl_windows_amd64.go
index fd7eb8b0..d586fb8b 100644
--- a/vendor/modernc.org/libc/musl_windows_amd64.go
+++ b/vendor/modernc.org/libc/musl_windows_amd64.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo -D__environ=environ -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_windows_amd64.go -pkgname libc -static-locals-prefix _s -Iarch\x86_64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isspace.c src/ctype/isxdigit.c src/env/putenv.c src/env/setenv.c src/env/unsetenv.c src/multibyte/wcrtomb.c src/multibyte/wcsrtombs.c src/multibyte/wcstombs.c src/string/strchrnul.c src/string/strdup.c', DO NOT EDIT.
+// Code generated by 'ccgo -D__environ=environ -export-externs X -hide __syscall0,__syscall1,__syscall2,__syscall3,__syscall4,__syscall5,__syscall6 -nostdinc -nostdlib -o ../musl_windows_amd64.go -pkgname libc -static-locals-prefix _s -Iarch\x86_64 -Iarch/generic -Iobj/src/internal -Isrc/include -Isrc/internal -Iobj/include -Iinclude copyright.c src/ctype/isalnum.c src/ctype/isalpha.c src/ctype/isdigit.c src/ctype/islower.c src/ctype/isprint.c src/ctype/isspace.c src/ctype/isxdigit.c src/env/putenv.c src/env/setenv.c src/env/unsetenv.c src/multibyte/wcrtomb.c src/multibyte/wcsrtombs.c src/multibyte/wcstombs.c src/stdlib/bsearch.c src/string/strchrnul.c src/string/strdup.c', DO NOT EDIT.
package libc
@@ -1062,6 +1062,26 @@ func Xwcstombs(tls *TLS, s uintptr, ws uintptr, n size_t) size_t { /* wcstombs.c
return Xwcsrtombs(tls, s, bp, n, uintptr(0))
}
+func Xbsearch(tls *TLS, key uintptr, base uintptr, nel size_t, width size_t, cmp uintptr) uintptr { /* bsearch.c:3:6: */
+ var try uintptr
+ var sign int32
+ for nel > uint64(0) {
+ try = base + uintptr(width*(nel/uint64(2)))
+ sign = (*struct {
+ f func(*TLS, uintptr, uintptr) int32
+ })(unsafe.Pointer(&struct{ uintptr }{cmp})).f(tls, key, try)
+ if sign < 0 {
+ nel = nel / uint64(2)
+ } else if sign > 0 {
+ base = try + uintptr(width)
+ nel = nel - (nel/uint64(2) + uint64(1))
+ } else {
+ return try
+ }
+ }
+ return uintptr(0)
+}
+
// Support signed or unsigned plain-char
// Implementation choices...
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@
diff --git a/vendor/modernc.org/libc/netinet/in/capi_darwin_amd64.go b/vendor/modernc.org/libc/netinet/in/capi_darwin_amd64.go
index 3c54fe8a..afb6c70b 100644
--- a/vendor/modernc.org/libc/netinet/in/capi_darwin_amd64.go
+++ b/vendor/modernc.org/libc/netinet/in/capi_darwin_amd64.go
@@ -3,5 +3,9 @@
package in
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/netinet/in/capi_darwin_arm64.go b/vendor/modernc.org/libc/netinet/in/capi_darwin_arm64.go
index 0363e2c8..288850f1 100644
--- a/vendor/modernc.org/libc/netinet/in/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/netinet/in/capi_darwin_arm64.go
@@ -2,4 +2,10 @@
package in
-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/netinet/in/in_darwin_amd64.go b/vendor/modernc.org/libc/netinet/in/in_darwin_amd64.go
index 7087bcd9..294ff74e 100644
--- a/vendor/modernc.org/libc/netinet/in/in_darwin_amd64.go
+++ b/vendor/modernc.org/libc/netinet/in/in_darwin_amd64.go
@@ -623,7 +623,6 @@ const (
X_FILE_OFFSET_BITS = 64
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
@@ -634,7 +633,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
@@ -671,7 +669,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
@@ -681,11 +678,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
@@ -908,6 +900,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.
@@ -1476,583 +1475,92 @@ type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t /* _pthread_
type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
type X__darwin_pthread_t = uintptr /* _pthread_types.h:118:34 */
-// DO NOT EDIT THIS FILE.
-//
-// It has been auto-edited by fixincludes from:
-//
-// "/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdint.h"
+//===---- 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
//
-// 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.
+// AIX system headers need stdint.h to be re-enterable while _STD_TYPES_T
+// is defined until an inclusion of it without _STD_TYPES_T occurs, in which
+// case the header guard macro is defined.
-// from ISO/IEC 988:1999 spec
+// If we're hosted, fall back to the system's stdint.h, which might have
+// additional definitions.
-// 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@
-type Int8_t = int8 /* _int8_t.h:30:33 */
-// 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 Int16_t = int16 /* _int16_t.h:30:33 */
-// 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.
+// C99 7.18.1.1 Exact-width integer types.
+// C99 7.18.1.2 Minimum-width integer types.
+// C99 7.18.1.3 Fastest minimum-width integer types.
//
-// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-type Int32_t = int32 /* _int32_t.h:30:33 */
-// Copyright (c) 2012 Apple Inc. All rights reserved.
+// The standard requires that exact-width type be defined for 8-, 16-, 32-, and
+// 64-bit types if they are implemented. Other exact width types are optional.
+// This implementation defines an exact-width types for every integer width
+// that is represented in the standard integer types.
//
-// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+// The standard also requires minimum-width types be defined for 8-, 16-, 32-,
+// and 64-bit widths regardless of whether there are corresponding exact-width
+// types.
//
-// 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.
+// To accommodate targets that are missing types that are exactly 8, 16, 32, or
+// 64 bits wide, this implementation takes an approach of cascading
+// redefinitions, redefining __int_leastN_t to successively smaller exact-width
+// types. It is therefore important that the types are defined in order of
+// descending widths.
//
-// Please obtain a copy of the License at
-// http://www.opensource.apple.com/apsl/ and read it before using this file.
+// We currently assume that the minimum-width types and the fastest
+// minimum-width types are the same. This is allowed by the standard, but is
+// suboptimal.
//
-// 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 Int64_t = int64 /* _int64_t.h:30:33 */
+// In violation of the standard, some targets do not implement a type that is
+// wide enough to represent all of the required widths (8-, 16-, 32-, 64-bit).
+// To accommodate these targets, a required minimum-width type is only
+// defined if there exists an exact-width type of equal or greater width.
-// 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 Int64_t = int64 /* stdint.h:96:24 */
+type Uint64_t = uint64 /* stdint.h:98: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@
+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 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 Int32_t = int32 /* stdint.h:167:24 */
-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 Uint32_t = uint32 /* stdint.h:172:25 */
-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
+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 */
-// 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@
+type Int16_t = int16 /* stdint.h:205:24 */
+type Uint16_t = uint16 /* stdint.h:207:25 */
-// 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) 2000-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 1995 NeXT Computer, Inc. All rights reserved.
+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 */
-// Copyright (c) 2000-2008 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 1995 NeXT Computer, Inc. All rights reserved.
-// Copyright (c) 1990, 1993
-// The Regents of the University of California. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. All advertising materials mentioning features or use of this software
-// must display the following acknowledgement:
-// This product includes software developed by the University of
-// California, Berkeley and its contributors.
-// 4. Neither the name of the University nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-// SUCH DAMAGE.
-//
-// @(#)types.h 8.3 (Berkeley) 1/5/94
+type Int8_t = int8 /* stdint.h:224:23 */
+type Uint8_t = uint8 /* stdint.h:226:24 */
-// Copyright (c) 2000-2003 Apple Computer, 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) 2000-2018 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 1995 NeXT Computer, Inc. All rights reserved.
-// Copyright (c) 1991, 1993
-// The Regents of the University of California. All rights reserved.
-//
-// This code is derived from software contributed to Berkeley by
-// Berkeley Software Design, Inc.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. All advertising materials mentioning features or use of this software
-// must display the following acknowledgement:
-// This product includes software developed by the University of
-// California, Berkeley and its contributors.
-// 4. Neither the name of the University nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-// SUCH DAMAGE.
-//
-// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
+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 */
-// Basic integral types. Omit the typedef if
-// not possible for a machine/compiler combination.
-// 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@
+// prevent glibc sys/types.h from defining conflicting types
+
+// C99 7.18.1.4 Integer types capable of holding object pointers.
+
+type Intptr_t = int64 /* stdint.h:249:25 */
+
+type Uintptr_t = uint64 /* stdint.h:256:26 */
+
+// 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 */
// Copyright (c) 2016 Apple Inc. All rights reserved.
//
@@ -2211,7 +1719,6 @@ type Register_t = Int64_t /* types.h:87:33 */
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-type Uintptr_t = uint64 /* _uintptr_t.h:30:33 */
// These types are used for reserving the largest possible size.
type User_addr_t = U_int64_t /* types.h:97:33 */
@@ -2225,391 +1732,6 @@ type User_off_t = Int64_t /* types.h:103:33 */
// This defines the size of syscall arguments after copying into the kernel:
type Syscall_arg_t = U_int64_t /* types.h:111:33 */
-type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
-// 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@
-
-// 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@
-
-type Intmax_t = int64 /* _intmax_t.h:32:25 */
-// 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 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.
-//
-// 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
-
-//
-// 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.
-//
-
-// 7.18.2.2 Limits of minimum-width integer types
-
-// 7.18.2.3 Limits of fastest minimum-width integer types
-
-// 7.18.2.4 Limits of integer types capable of holding object pointers
-
-// 7.18.2.5 Limits of greatest-width integer types
-
-// 7.18.3 "Other"
-
-// 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.
-
-// Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
-//
-// @APPLE_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. 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_LICENSE_HEADER_END@
-
-//
-// These macros are for use in OS header files. They enable function prototypes
-// and Objective-C methods to be tagged with the OS version in which they
-// were first available; and, if applicable, the OS version in which they
-// became deprecated.
-//
-// The desktop Mac OS X and iOS each have different version numbers.
-// The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
-// and iOS version numbers. For instance:
-// __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
-// means the function/method was first available on Mac OS X 10.2 on the desktop
-// and first available in iOS 2.0 on the iPhone.
-//
-// If a function is available on one platform, but not the other a _NA (not
-// applicable) parameter is used. For instance:
-// __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
-// means that the function/method was first available on Mac OS X 10.3, and it
-// currently not implemented on the iPhone.
-//
-// At some point, a function/method may be deprecated. That means Apple
-// recommends applications stop using the function, either because there is a
-// better replacement or the functionality is being phased out. Deprecated
-// functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
-// macro which specifies the OS version where the function became available
-// as well as the OS version in which it became deprecated. For instance:
-// __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
-// means that the function/method was introduced in Mac OS X 10.0, then
-// became deprecated beginning in Mac OS X 10.5. On iOS the function
-// has never been available.
-//
-// For these macros to function properly, a program must specify the OS version range
-// it is targeting. The min OS version is specified as an option to the compiler:
-// -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
-// when building for the iPhone. The upper bound for the OS version is rarely needed,
-// but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
-// Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
-//
-// Examples:
-//
-// A function available in Mac OS X 10.5 and later, but not on the phone:
-//
-// extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
-//
-//
-// An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
-//
-// @interface MyClass : NSObject
-// -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
-// @end
-//
-//
-// An enum available on the phone, but not available on Mac OS X:
-//
-// #if __IPHONE_OS_VERSION_MIN_REQUIRED
-// enum { myEnum = 1 };
-// #endif
-// Note: this works when targeting the Mac OS X platform because
-// __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
-//
-//
-// An enum with values added in different iPhoneOS versions:
-//
-// enum {
-// myX = 1, // Usable on iPhoneOS 2.1 and later
-// myY = 2, // Usable on iPhoneOS 3.0 and later
-// myZ = 3, // Usable on iPhoneOS 3.0 and later
-// ...
-// Note: you do not want to use #if with enumeration values
-// when a client needs to see all values at compile time
-// and use runtime logic to only use the viable values.
-//
-//
-// It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
-// source base that can be compiled to target a range of OS versions. It is best
-// to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
-// That is because you might get compiled on an old OS that does not define a later
-// OS version macro, and in the C preprocessor undefined values evaluate to zero
-// in expresssions, which could cause the #if expression to evaluate in an unexpected
-// way.
-//
-// #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
-// // code only compiled when targeting Mac OS X and not iPhone
-// // note use of 1050 instead of __MAC_10_5
-// #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
-// // code in here might run on pre-Leopard OS
-// #else
-// // code here can assume Leopard or later
-// #endif
-// #endif
-//
-//
-
-// __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
-// in an upcoming release. This soft deprecation is an intermediate step before formal
-// deprecation to notify developers about the API before compiler warnings are generated.
-// You can find all places in your code that use soft deprecated API by redefining the
-// value of this macro to your current minimum deployment target, for example:
-// (macOS)
-// clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
-// (iOS)
-// clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
-
-// __MAC_NA is not defined to a value but is uses as a token by macros to indicate that the API is unavailable
-
-// __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@
-//
-// 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. 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_LICENSE_HEADER_END@
-
-//
-// File: AvailabilityInternal.h
-//
-// Contains: implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
-//
-
-// compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
-
-// make sure a default max version is set
-
-//
-// Macros for defining which versions/platform a given symbol can be used.
-//
-// @see http://clang.llvm.org/docs/AttributeReference.html#availability
-//
-
-// Evaluate to nothing for compilers that don't support availability.
-
-// Swift compiler version
-// Allows for project-agnostic “epochs” for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
-// Example:
-//
-// #if __swift_compiler_version_at_least(800, 2, 20)
-// - (nonnull NSString *)description;
-// #else
-// - (NSString *)description;
-// #endif
-
-// If __SPI_AVAILABLE has not been defined elsewhere, disable it.
-
-// for use to document app extension usage
-
-// for use marking APIs available info for Mac OSX
-
-// for use marking APIs available info for iOS
-
-// for use marking APIs available info for tvOS
-
-// for use marking APIs available info for Watch OS
-
-// for use marking APIs unavailable for swift
-
-//
-// Macros for defining which versions/platform a given symbol can be used.
-//
-// @see http://clang.llvm.org/docs/AttributeReference.html#availability
-//
-// * Note that these macros are only compatible with clang compilers that
-// * support the following target selection options:
-// *
-// * -mmacosx-version-min
-// * -miphoneos-version-min
-// * -mwatchos-version-min
-// * -mtvos-version-min
-//
-
-// Evaluate to nothing for compilers that don't support availability.
-
-// If SPI decorations have not been defined elsewhere, disable them.
-
-// 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) 2000-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 1995 NeXT Computer, Inc. All rights reserved.
type In_addr_t = X__uint32_t /* _in_addr_t.h:31:25 */ // base type for internet address
// Copyright (c) 2003-2012 Apple Inc. All rights reserved.
diff --git a/vendor/modernc.org/libc/netinet/in/in_darwin_arm64.go b/vendor/modernc.org/libc/netinet/in/in_darwin_arm64.go
index 4483e365..8347d9be 100644
--- a/vendor/modernc.org/libc/netinet/in/in_darwin_arm64.go
+++ b/vendor/modernc.org/libc/netinet/in/in_darwin_arm64.go
@@ -567,7 +567,6 @@ const (
PF_XTP = 19
PTRDIFF_MAX = 9223372036854775807
PTRDIFF_MIN = -9223372036854775808
- RSIZE_MAX = 9223372036854775807
SAE_ASSOCID_ANY = 0
SAE_CONNID_ANY = 0
SCM_CREDS = 0x03
@@ -672,7 +671,6 @@ const (
X_FILE_OFFSET_BITS = 64
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
@@ -681,7 +679,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
@@ -718,7 +715,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
@@ -728,11 +724,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
@@ -768,6 +759,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-2018 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
@@ -853,62 +846,151 @@ type X__float128 = float64 /* <builtin>:47:21 */
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-// DO NOT EDIT THIS FILE.
+//===---- 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
+//
+// \*===----------------------------------------------------------------------===
+
+// AIX system headers need stdint.h to be re-enterable while _STD_TYPES_T
+// is defined until an inclusion of it without _STD_TYPES_T occurs, in which
+// case the header guard macro is defined.
+
+// If we're hosted, fall back to the system's stdint.h, which might have
+// additional definitions.
+
+// C99 7.18.1.1 Exact-width integer types.
+// C99 7.18.1.2 Minimum-width integer types.
+// C99 7.18.1.3 Fastest minimum-width integer types.
//
-// It has been auto-edited by fixincludes from:
+// The standard requires that exact-width type be defined for 8-, 16-, 32-, and
+// 64-bit types if they are implemented. Other exact width types are optional.
+// This implementation defines an exact-width types for every integer width
+// that is represented in the standard integer types.
//
-// "/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/stdint.h"
+// The standard also requires minimum-width types be defined for 8-, 16-, 32-,
+// and 64-bit widths regardless of whether there are corresponding exact-width
+// types.
//
-// This had to be done to correct non-standard usages in the
-// original, manufacturer supplied header file.
+// To accommodate targets that are missing types that are exactly 8, 16, 32, or
+// 64 bits wide, this implementation takes an approach of cascading
+// redefinitions, redefining __int_leastN_t to successively smaller exact-width
+// types. It is therefore important that the types are defined in order of
+// descending widths.
+//
+// We currently assume that the minimum-width types and the fastest
+// minimum-width types are the same. This is allowed by the standard, but is
+// suboptimal.
+//
+// In violation of the standard, some targets do not implement a type that is
+// wide enough to represent all of the required widths (8-, 16-, 32-, 64-bit).
+// To accommodate these targets, a required minimum-width type is only
+// defined if there exists an exact-width type of equal or greater width.
-// Copyright (c) 2000-2010 Apple Inc.
-// All rights reserved.
+type Int64_t = int64 /* stdint.h:96:24 */
+type Uint64_t = uint64 /* stdint.h:98:25 */
-// from ISO/IEC 988:1999 spec
+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 */
-// 7.18.1.1 Exact-width integer types
-// Copyright (c) 2012 Apple Inc. All rights reserved.
+type Int32_t = int32 /* stdint.h:167:24 */
+
+type Uint32_t = uint32 /* stdint.h:172:25 */
+
+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 Int16_t = int16 /* stdint.h:205:24 */
+type Uint16_t = uint16 /* stdint.h:207: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 Int8_t = int8 /* stdint.h:224:23 */
+type Uint8_t = uint8 /* stdint.h:226:24 */
+
+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 */
+
+// prevent glibc sys/types.h from defining conflicting types
+
+// C99 7.18.1.4 Integer types capable of holding object pointers.
+
+type Intptr_t = int64 /* stdint.h:249:25 */
+
+type Uintptr_t = uint64 /* stdint.h:256:26 */
+
+// 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 */
+
+// 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.
+// 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]).
+
+// 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.
//
-// 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.
+// 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.
//
-// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-type Int8_t = int8 /* _int8_t.h:30:31 */
-// Copyright (c) 2012 Apple Inc. All rights reserved.
+// 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.
//
-// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+// 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]).
+
+// Some utility macros
+
+// C99 7.18.2.4 Limits of integer types capable of holding object pointers.
+// C99 7.18.3 Limits of other integer types.
+
+// ISO9899:2011 7.20 (C11 Annex K): Define RSIZE_MAX if __STDC_WANT_LIB_EXT1__
+// is enabled.
+
+// C99 7.18.2.5 Limits of greatest-width integer types.
+
+// C99 7.18.3 Limits of other integer types.
+
+// 7.18.4.2 Macros for greatest-width integer constants.
+
+// Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
+//
+// @APPLE_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.
+// compliance with the License. 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
@@ -918,76 +1000,120 @@ type Int8_t = int8 /* _int8_t.h:30:31 */
// Please see the License for the specific language governing rights and
// limitations under the License.
//
-// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-type Int16_t = int16 /* _int16_t.h:30:33 */
-// Copyright (c) 2012 Apple Inc. All rights reserved.
+// @APPLE_LICENSE_HEADER_END@
+
//
-// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+// These macros are for use in OS header files. They enable function prototypes
+// and Objective-C methods to be tagged with the OS version in which they
+// were first available; and, if applicable, the OS version in which they
+// became deprecated.
//
-// 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.
+// The desktop Mac OS X and iOS each have different version numbers.
+// The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
+// and iOS version numbers. For instance:
+// __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
+// means the function/method was first available on Mac OS X 10.2 on the desktop
+// and first available in iOS 2.0 on the iPhone.
//
-// Please obtain a copy of the License at
-// http://www.opensource.apple.com/apsl/ and read it before using this file.
+// If a function is available on one platform, but not the other a _NA (not
+// applicable) parameter is used. For instance:
+// __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
+// means that the function/method was first available on Mac OS X 10.3, and it
+// currently not implemented on the iPhone.
//
-// 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.
+// At some point, a function/method may be deprecated. That means Apple
+// recommends applications stop using the function, either because there is a
+// better replacement or the functionality is being phased out. Deprecated
+// functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
+// macro which specifies the OS version where the function became available
+// as well as the OS version in which it became deprecated. For instance:
+// __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
+// means that the function/method was introduced in Mac OS X 10.0, then
+// became deprecated beginning in Mac OS X 10.5. On iOS the function
+// has never been available.
//
-// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-type Int32_t = int32 /* _int32_t.h:30:33 */
-// Copyright (c) 2012 Apple Inc. All rights reserved.
+// For these macros to function properly, a program must specify the OS version range
+// it is targeting. The min OS version is specified as an option to the compiler:
+// -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
+// when building for the iPhone. The upper bound for the OS version is rarely needed,
+// but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
+// Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
//
-// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+// Examples:
//
-// 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.
+// A function available in Mac OS X 10.5 and later, but not on the phone:
//
-// Please obtain a copy of the License at
-// http://www.opensource.apple.com/apsl/ and read it before using this file.
+// extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
+//
+//
+// An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
+//
+// @interface MyClass : NSObject
+// -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
+// @end
+//
+//
+// An enum available on the phone, but not available on Mac OS X:
+//
+// #if __IPHONE_OS_VERSION_MIN_REQUIRED
+// enum { myEnum = 1 };
+// #endif
+// Note: this works when targeting the Mac OS X platform because
+// __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
+//
+//
+// An enum with values added in different iPhoneOS versions:
+//
+// enum {
+// myX = 1, // Usable on iPhoneOS 2.1 and later
+// myY = 2, // Usable on iPhoneOS 3.0 and later
+// myZ = 3, // Usable on iPhoneOS 3.0 and later
+// ...
+// Note: you do not want to use #if with enumeration values
+// when a client needs to see all values at compile time
+// and use runtime logic to only use the viable values.
+//
+//
+// It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
+// source base that can be compiled to target a range of OS versions. It is best
+// to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
+// That is because you might get compiled on an old OS that does not define a later
+// OS version macro, and in the C preprocessor undefined values evaluate to zero
+// in expresssions, which could cause the #if expression to evaluate in an unexpected
+// way.
+//
+// #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
+// // code only compiled when targeting Mac OS X and not iPhone
+// // note use of 1050 instead of __MAC_10_5
+// #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
+// // code in here might run on pre-Leopard OS
+// #else
+// // code here can assume Leopard or later
+// #endif
+// #endif
//
-// 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 Int64_t = int64 /* _int64_t.h:30:33 */
-// Copyright (c) 2012 Apple Inc. All rights reserved.
+// __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
+// in an upcoming release. This soft deprecation is an intermediate step before formal
+// deprecation to notify developers about the API before compiler warnings are generated.
+// You can find all places in your code that use soft deprecated API by redefining the
+// value of this macro to your current minimum deployment target, for example:
+// (macOS)
+// clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
+// (iOS)
+// clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
+
+// Copyright (c) 2019 by Apple Inc.. All rights reserved.
//
-// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+// @APPLE_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.
+// compliance with the License. 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
@@ -997,24 +1123,24 @@ type Int64_t = int64 /* _int64_t.h:30:33 */
// Please see the License for the specific language governing rights and
// limitations under the License.
//
-// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+// @APPLE_LICENSE_HEADER_END@
-type Uint8_t = uint8 /* _uint8_t.h:31:23 */
-// Copyright (c) 2012 Apple Inc. All rights reserved.
+// __MAC_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
+
+// __IPHONE_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
+
+// Set up standard Mac OS X versions
+
+// Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
//
-// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+// @APPLE_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.
+// compliance with the License. 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
@@ -1024,87 +1150,69 @@ type Uint8_t = uint8 /* _uint8_t.h:31:23 */
// Please see the License for the specific language governing rights and
// limitations under the License.
//
-// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+// @APPLE_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@
+// File: AvailabilityInternal.h
//
-// 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.
+// Contains: implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
//
-// Please obtain a copy of the License at
-// http://www.opensource.apple.com/apsl/ and read it before using this file.
+
+// compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
+
+// make sure a default max version is set
+
//
-// 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.
+// Macros for defining which versions/platform a given symbol can be used.
+//
+// @see http://clang.llvm.org/docs/AttributeReference.html#availability
//
-// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-type Uint32_t = uint32 /* _uint32_t.h:31:22 */
-// Copyright (c) 2012 Apple Inc. All rights reserved.
+// Evaluate to nothing for compilers that don't support clang language extensions.
+
+// Swift compiler version
+// Allows for project-agnostic "epochs" for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
+// Example:
//
-// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+// #if __swift_compiler_version_at_least(800, 2, 20)
+// - (nonnull NSString *)description;
+// #else
+// - (NSString *)description;
+// #endif
+
+// If __SPI_AVAILABLE has not been defined elsewhere, disable it.
+
+// for use to document app extension usage
+
+// for use marking APIs available info for Mac OSX
+
+// for use marking APIs available info for iOS
+
+// for use marking APIs available info for tvOS
+
+// for use marking APIs available info for Watch OS
+
+// for use marking APIs unavailable for swift
+
//
-// 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.
+// Macros for defining which versions/platform a given symbol can be used.
//
-// Please obtain a copy of the License at
-// http://www.opensource.apple.com/apsl/ and read it before using this file.
+// @see http://clang.llvm.org/docs/AttributeReference.html#availability
//
-// 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.
+// * Note that these macros are only compatible with clang compilers that
+// * support the following target selection options:
+// *
+// * -mmacosx-version-min
+// * -miphoneos-version-min
+// * -mwatchos-version-min
+// * -mtvos-version-min
//
-// @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
+// Evaluate to nothing for compilers that don't support clang language extensions.
-// Copyright (c) 2003-2007 Apple Inc. All rights reserved.
+// If SPI decorations have not been defined elsewhere, disable them.
+
+// Copyright (c) 2003-2012 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
@@ -1129,8 +1237,7 @@ type Uint_fast64_t = Uint64_t /* stdint.h:56:25 */
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-
-// Copyright (c) 2000-2018 Apple Inc. All rights reserved.
+// Copyright (c) 2000-2007 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
@@ -1156,12 +1263,12 @@ type Uint_fast64_t = Uint64_t /* stdint.h:56:25 */
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
// Copyright 1995 NeXT Computer, Inc. All rights reserved.
-// Copyright (c) 1991, 1993
+
+// Copyright (c) 2000-2008 Apple Inc. All rights reserved.
+// Copyright 1995 NeXT Computer, Inc. All rights reserved.
+// Copyright (c) 1990, 1993
// The Regents of the University of California. All rights reserved.
//
-// This code is derived from software contributed to Berkeley by
-// Berkeley Software Design, Inc.
-//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
@@ -1190,334 +1297,7 @@ type Uint_fast64_t = Uint64_t /* stdint.h:56:25 */
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.
//
-// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
-
-// This SDK is designed to work with clang and specific versions of
-// gcc >= 4.0 with Apple's patch sets
-
-// Compatibility with compilers and environments that don't support compiler
-// feature checking function-like macros.
-
-// The __CONCAT macro is used to concatenate parts of symbol names, e.g.
-// with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo.
-// The __CONCAT macro is a bit tricky -- make sure you don't put spaces
-// 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.
-
-// __used forces variables and functions to be included even if it appears
-// to the compiler that they are not used (and would thust be discarded).
-
-// __cold marks code used for debugging or that is rarely taken
-// and tells the compiler to optimize for size and outline code.
-
-// __exported denotes symbols that should be exported even when symbols
-// are hidden by default.
-// __exported_push/_exported_pop are pragmas used to delimit a range of
-// symbols that should be exported even when symbols are hidden by default.
-
-// __deprecated causes the compiler to produce a warning when encountering
-// code using the deprecated functionality.
-// __deprecated_msg() does the same, and compilers that support it will print
-// a message along with the deprecation warning.
-// This may require turning on such warning with the -Wdeprecated flag.
-// __deprecated_enum_msg() should be used on enums, and compilers that support
-// it will print the deprecation warning.
-// __kpi_deprecated() specifically indicates deprecation of kernel programming
-// interfaces in Kernel.framework used by KEXTs.
-
-// __unavailable causes the compiler to error out when encountering
-// code using the tagged function
-
-// Delete pseudo-keywords wherever they are not available or needed.
-
-// We use `__restrict' as a way to define the `restrict' type qualifier
-// without disturbing older software that is unaware of C99 keywords.
-
-// Compatibility with compilers and environments that don't support the
-// nullability feature.
-
-// __disable_tail_calls causes the compiler to not perform tail call
-// optimization inside the marked function.
-
-// __not_tail_called causes the compiler to prevent tail call optimization
-// on statically bound calls to the function. It has no effect on indirect
-// calls. Virtual functions, objective-c methods, and functions marked as
-// "always_inline" cannot be marked as __not_tail_called.
-
-// __result_use_check warns callers of a function that not using the function
-// return value is a bug, i.e. dismissing malloc() return value results in a
-// memory leak.
-
-// __swift_unavailable causes the compiler to mark a symbol as specifically
-// unavailable in Swift, regardless of any other availability in C.
-
-// __abortlike is the attribute to put on functions like abort() that are
-// typically used to mark assertions. These optimize the codegen
-// for outlining while still maintaining debugability.
-
-// Declaring inline functions within headers is error-prone due to differences
-// across various versions of the C language and extensions. __header_inline
-// can be used to declare inline functions within system headers. In cases
-// where you want to force inlining instead of letting the compiler make
-// the decision, you can use __header_always_inline.
-//
-// Be aware that using inline for functions which compilers may also provide
-// builtins can behave differently under various compilers. If you intend to
-// provide an inline version of such a function, you may want to use a macro
-// instead.
-//
-// The check for !__GNUC__ || __clang__ is because gcc doesn't correctly
-// support c99 inline in some cases:
-// http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55965
-
-// Compiler-dependent macros that bracket portions of code where the
-// "-Wunreachable-code" warning should be ignored. Please use sparingly.
-
-// Compiler-dependent macros to declare that functions take printf-like
-// or scanf-like arguments. They are null except for versions of gcc
-// that are known to support the features properly. Functions declared
-// with these attributes will cause compilation warnings if there is a
-// mismatch between the format string and subsequent function parameter
-// types.
-
-// Source compatibility only, ID string not emitted in object file
-
-// __alloc_size can be used to label function arguments that represent the
-// size of memory that the function allocates and returns. The one-argument
-// form labels a single argument that gives the allocation size (where the
-// arguments are numbered from 1):
-//
-// void *malloc(size_t __size) __alloc_size(1);
-//
-// The two-argument form handles the case where the size is calculated as the
-// product of two arguments:
-//
-// void *calloc(size_t __count, size_t __size) __alloc_size(1,2);
-
-// COMPILATION ENVIRONMENTS -- see compat(5) for additional detail
-//
-// DEFAULT By default newly complied code will get POSIX APIs plus
-// Apple API extensions in scope.
-//
-// Most users will use this compilation environment to avoid
-// behavioral differences between 32 and 64 bit code.
-//
-// LEGACY Defining _NONSTD_SOURCE will get pre-POSIX APIs plus Apple
-// API extensions in scope.
-//
-// This is generally equivalent to the Tiger release compilation
-// environment, except that it cannot be applied to 64 bit code;
-// its use is discouraged.
-//
-// We expect this environment to be deprecated in the future.
-//
-// STRICT Defining _POSIX_C_SOURCE or _XOPEN_SOURCE restricts the
-// available APIs to exactly the set of APIs defined by the
-// corresponding standard, based on the value defined.
-//
-// A correct, portable definition for _POSIX_C_SOURCE is 200112L.
-// A correct, portable definition for _XOPEN_SOURCE is 600L.
-//
-// Apple API extensions are not visible in this environment,
-// which can cause Apple specific code to fail to compile,
-// or behave incorrectly if prototypes are not in scope or
-// warnings about missing prototypes are not enabled or ignored.
-//
-// In any compilation environment, for correct symbol resolution to occur,
-// function prototypes must be in scope. It is recommended that all Apple
-// tools users add either the "-Wall" or "-Wimplicit-function-declaration"
-// compiler flags to their projects to be warned when a function is being
-// used without a prototype in scope.
-
-// These settings are particular to each product.
-// Platform: MacOSX
-
-// The __DARWIN_ALIAS macros are used to do symbol renaming; they allow
-// legacy code to use the old symbol, thus maintaining binary compatibility
-// while new code can use a standards compliant version of the same function.
-//
-// __DARWIN_ALIAS is used by itself if the function signature has not
-// changed, it is used along with a #ifdef check for __DARWIN_UNIX03
-// if the signature has changed. Because the __LP64__ environment
-// only supports UNIX03 semantics it causes __DARWIN_UNIX03 to be
-// defined, but causes __DARWIN_ALIAS to do no symbol mangling.
-//
-// As a special case, when XCode is used to target a specific version of the
-// OS, the manifest constant __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
-// will be defined by the compiler, with the digits representing major version
-// time 100 + minor version times 10 (e.g. 10.5 := 1050). If we are targeting
-// pre-10.5, and it is the default compilation environment, revert the
-// compilation environment to pre-__DARWIN_UNIX03.
-
-// symbol suffixes used for symbol versioning
-
-// symbol versioning macros
-
-// symbol release macros
-// Copyright (c) 2010 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@
-
-// POSIX.1 requires that the macros we test be defined before any standard
-// header file is included. This permits us to convert values for feature
-// testing, as necessary, using only _POSIX_C_SOURCE.
-//
-// Here's a quick run-down of the versions:
-// defined(_POSIX_SOURCE) 1003.1-1988
-// _POSIX_C_SOURCE == 1L 1003.1-1990
-// _POSIX_C_SOURCE == 2L 1003.2-1992 C Language Binding Option
-// _POSIX_C_SOURCE == 199309L 1003.1b-1993
-// _POSIX_C_SOURCE == 199506L 1003.1c-1995, 1003.1i-1995,
-// and the omnibus ISO/IEC 9945-1: 1996
-// _POSIX_C_SOURCE == 200112L 1003.1-2001
-// _POSIX_C_SOURCE == 200809L 1003.1-2008
-//
-// In addition, the X/Open Portability Guide, which is now the Single UNIX
-// Specification, defines a feature-test macro which indicates the version of
-// that specification, and which subsumes _POSIX_C_SOURCE.
-
-// Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1L.
-
-// Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2L.
-
-// Deal with various X/Open Portability Guides and Single UNIX Spec.
-
-// Deal with all versions of POSIX. The ordering relative to the tests above is
-// important.
-
-// POSIX C deprecation macros
-// Copyright (c) 2010 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@
-
-// Set a single macro which will always be defined and can be used to determine
-// the appropriate namespace. For POSIX, these values will correspond to
-// _POSIX_C_SOURCE value. Currently there are two additional levels corresponding
-// to ANSI (_ANSI_SOURCE) and Darwin extensions (_DARWIN_C_SOURCE)
-
-// If the developer has neither requested a strict language mode nor a version
-// of POSIX, turn on functionality provided by __STDC_WANT_LIB_EXT1__ as part
-// of __DARWIN_C_FULL.
-
-// long long is not supported in c89 (__STRICT_ANSI__), but g++ -ansi and
-// c99 still want long longs. While not perfect, we allow long longs for
-// g++.
-
-// ****************************************
-//
-// Public darwin-specific feature macros
-//
-
-// _DARWIN_FEATURE_64_BIT_INODE indicates that the ino_t type is 64-bit, and
-// structures modified for 64-bit inodes (like struct stat) will be used.
-
-// _DARWIN_FEATURE_64_ONLY_BIT_INODE indicates that the ino_t type may only
-// be 64-bit; there is no support for 32-bit ino_t when this macro is defined
-// (and non-zero). There is no struct stat64 either, as the regular
-// struct stat will already be the 64-bit version.
-
-// _DARWIN_FEATURE_ONLY_VERS_1050 indicates that only those APIs updated
-// in 10.5 exists; no pre-10.5 variants are available.
-
-// _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE indicates only UNIX conforming API
-// are available (the legacy BSD APIs are not available)
-
-// _DARWIN_FEATURE_UNIX_CONFORMANCE indicates whether UNIX conformance is on,
-// and specifies the conformance level (3 is SUSv3)
-
-// This macro casts away the qualifier from the variable
-//
-// Note: use at your own risk, removing qualifiers can result in
-// catastrophic run-time failures.
-
-// __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
-// used from other compilation units, but not other libraries or executables.
-
-// Architecture validation for current SDK
-
-// Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
-//
-// This provides more advanced type checking on compilers supporting
-// the proper extensions, even in C.
-
-// 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@
+// @(#)types.h 8.3 (Berkeley) 1/5/94
// Copyright (c) 2000-2007 Apple Inc. All rights reserved.
@@ -1578,34 +1358,9 @@ type X__darwin_wint_t = int32 /* _types.h:90:33 */ // wint_t
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
-// space, and puts them in the implementation space.
+type X__darwin_time_t = int64 /* _types.h:98:33 */
-type X__darwin_blkcnt_t = X__int64_t /* _types.h:55:25 */ // total blocks
-type X__darwin_blksize_t = X__int32_t /* _types.h:56:25 */ // preferred block size
-type X__darwin_dev_t = X__int32_t /* _types.h:57:25 */ // dev_t
-type X__darwin_fsblkcnt_t = uint32 /* _types.h:58:25 */ // Used by statvfs and fstatvfs
-type X__darwin_fsfilcnt_t = uint32 /* _types.h:59:25 */ // Used by statvfs and fstatvfs
-type X__darwin_gid_t = X__uint32_t /* _types.h:60:25 */ // [???] process and group IDs
-type X__darwin_id_t = X__uint32_t /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t
-type X__darwin_ino64_t = X__uint64_t /* _types.h:62:25 */ // [???] Used for 64 bit inodes
-type X__darwin_ino_t = X__darwin_ino64_t /* _types.h:64:26 */ // [???] Used for inodes
-type X__darwin_mach_port_name_t = X__darwin_natural_t /* _types.h:68:28 */ // Used by mach
-type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach
-type X__darwin_mode_t = X__uint16_t /* _types.h:70:25 */ // [???] Some file attributes
-type X__darwin_off_t = X__int64_t /* _types.h:71:25 */ // [???] Used for file sizes
-type X__darwin_pid_t = X__int32_t /* _types.h:72:25 */ // [???] process and group IDs
-type X__darwin_sigset_t = X__uint32_t /* _types.h:73:25 */ // [???] signal set
-type X__darwin_suseconds_t = X__int32_t /* _types.h:74:25 */ // [???] microseconds
-type X__darwin_uid_t = X__uint32_t /* _types.h:75:25 */ // [???] user IDs
-type X__darwin_useconds_t = X__uint32_t /* _types.h:76:25 */ // [???] microseconds
-type X__darwin_uuid_t = [16]uint8 /* _types.h:77:25 */
-type X__darwin_uuid_string_t = [37]int8 /* _types.h:78:17 */
-
-// Copyright (c) 2003-2013 Apple Inc. All rights reserved.
+// Copyright (c) 2016 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
@@ -1630,8 +1385,8 @@ type X__darwin_uuid_string_t = [37]int8 /* _types.h:78:17 */
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-
-// Copyright (c) 2000-2018 Apple Inc. All rights reserved.
+type U_int8_t = uint8 /* _u_int8_t.h:30:33 */
+// Copyright (c) 2012 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
@@ -1656,109 +1411,8 @@ type X__darwin_uuid_string_t = [37]int8 /* _types.h:78:17 */
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-// Copyright 1995 NeXT Computer, Inc. All rights reserved.
-// Copyright (c) 1991, 1993
-// The Regents of the University of California. All rights reserved.
-//
-// This code is derived from software contributed to Berkeley by
-// Berkeley Software Design, Inc.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. All advertising materials mentioning features or use of this software
-// must display the following acknowledgement:
-// This product includes software developed by the University of
-// California, Berkeley and its contributors.
-// 4. Neither the name of the University nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-// SUCH DAMAGE.
-//
-// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
-
-// pthread opaque structures
-
-type X__darwin_pthread_handler_rec = struct {
- F__routine uintptr
- F__arg uintptr
- F__next uintptr
-} /* _pthread_types.h:57:1 */
-
-type X_opaque_pthread_attr_t = struct {
- F__sig int64
- F__opaque [56]int8
-} /* _pthread_types.h:63:1 */
-
-type X_opaque_pthread_cond_t = struct {
- F__sig int64
- F__opaque [40]int8
-} /* _pthread_types.h:68:1 */
-
-type X_opaque_pthread_condattr_t = struct {
- F__sig int64
- F__opaque [8]int8
-} /* _pthread_types.h:73:1 */
-
-type X_opaque_pthread_mutex_t = struct {
- F__sig int64
- F__opaque [56]int8
-} /* _pthread_types.h:78:1 */
-
-type X_opaque_pthread_mutexattr_t = struct {
- F__sig int64
- F__opaque [8]int8
-} /* _pthread_types.h:83:1 */
-
-type X_opaque_pthread_once_t = struct {
- F__sig int64
- F__opaque [8]int8
-} /* _pthread_types.h:88:1 */
-
-type X_opaque_pthread_rwlock_t = struct {
- F__sig int64
- F__opaque [192]int8
-} /* _pthread_types.h:93:1 */
-
-type X_opaque_pthread_rwlockattr_t = struct {
- F__sig int64
- F__opaque [16]int8
-} /* _pthread_types.h:98:1 */
-
-type X_opaque_pthread_t = struct {
- F__sig int64
- F__cleanup_stack uintptr
- F__opaque [8176]int8
-} /* _pthread_types.h:103:1 */
-
-type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t /* _pthread_types.h:109:39 */
-type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t /* _pthread_types.h:110:39 */
-type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t /* _pthread_types.h:111:43 */
-type X__darwin_pthread_key_t = uint64 /* _pthread_types.h:112:23 */
-type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t /* _pthread_types.h:113:40 */
-type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t /* _pthread_types.h:114:44 */
-type X__darwin_pthread_once_t = X_opaque_pthread_once_t /* _pthread_types.h:115:39 */
-type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t /* _pthread_types.h:116:41 */
-type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
-type X__darwin_pthread_t = uintptr /* _pthread_types.h:118:34 */
-
-// Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+type U_int16_t = uint16 /* _u_int16_t.h:30:41 */
+// Copyright (c) 2012 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
@@ -1783,7 +1437,8 @@ type X__darwin_pthread_t = uintptr /* _pthread_
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-// Copyright (c) 2000-2007 Apple Inc. All rights reserved.
+type U_int32_t = uint32 /* _u_int32_t.h:30:33 */
+// Copyright (c) 2012 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
@@ -1808,45 +1463,11 @@ type X__darwin_pthread_t = uintptr /* _pthread_
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-// Copyright 1995 NeXT Computer, Inc. All rights reserved.
+type U_int64_t = uint64 /* _u_int64_t.h:30:33 */
-// Copyright (c) 2000-2008 Apple Inc. All rights reserved.
-// Copyright 1995 NeXT Computer, Inc. All rights reserved.
-// Copyright (c) 1990, 1993
-// The Regents of the University of California. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. All advertising materials mentioning features or use of this software
-// must display the following acknowledgement:
-// This product includes software developed by the University of
-// California, Berkeley and its contributors.
-// 4. Neither the name of the University nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-// SUCH DAMAGE.
-//
-// @(#)types.h 8.3 (Berkeley) 1/5/94
+type Register_t = Int64_t /* types.h:66:33 */
-// Copyright (c) 2000-2007 Apple Inc. All rights reserved.
-// Copyright (c) 2000-2018 Apple Inc. All rights reserved.
+// Copyright (c) 2003-2012 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
@@ -1871,46 +1492,7 @@ type X__darwin_pthread_t = uintptr /* _pthread_
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-// Copyright 1995 NeXT Computer, Inc. All rights reserved.
-// Copyright (c) 1991, 1993
-// The Regents of the University of California. All rights reserved.
-//
-// This code is derived from software contributed to Berkeley by
-// Berkeley Software Design, Inc.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. All advertising materials mentioning features or use of this software
-// must display the following acknowledgement:
-// This product includes software developed by the University of
-// California, Berkeley and its contributors.
-// 4. Neither the name of the University nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-// SUCH DAMAGE.
-//
-// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
-
-// Basic integral types. Omit the typedef if
-// not possible for a machine/compiler combination.
-// Copyright (c) 2012 Apple Inc. All rights reserved.
+// Copyright (c) 2003-2012 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
@@ -1935,7 +1517,21 @@ type X__darwin_pthread_t = uintptr /* _pthread_
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-// Copyright (c) 2012 Apple Inc. All rights reserved.
+
+// These types are used for reserving the largest possible size.
+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:104:33 */
+
+type In_addr_t = X__uint32_t /* _in_addr_t.h:31:25 */ // base type for internet address
+// Copyright (c) 2003-2012 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
@@ -1960,7 +1556,7 @@ type X__darwin_pthread_t = uintptr /* _pthread_
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-// Copyright (c) 2012 Apple Inc. All rights reserved.
+// Copyright (c) 2000-2007 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
@@ -1985,7 +1581,13 @@ type X__darwin_pthread_t = uintptr /* _pthread_
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-// Copyright (c) 2012 Apple Inc. All rights reserved.
+// Copyright 1995 NeXT Computer, Inc. All rights reserved.
+type In_port_t = X__uint16_t /* _in_port_t.h:31:33 */
+
+// POSIX 1003.1-2003
+// "Inclusion of the <netinet/in.h> header may also make visible all
+// symbols from <inttypes.h> and <sys/socket.h>".
+// Copyright (c) 2000-2019 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
@@ -2010,34 +1612,47 @@ type X__darwin_pthread_t = uintptr /* _pthread_
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-
-// Copyright (c) 2016 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.
+// Copyright (c) 1998, 1999 Apple Computer, Inc. All Rights Reserved
+// Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
+// Copyright (c) 1982, 1985, 1986, 1988, 1993, 1994
+// The Regents of the University of California. All rights reserved.
//
-// Please obtain a copy of the License at
-// http://www.opensource.apple.com/apsl/ and read it before using this file.
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions
+// are met:
+// 1. Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// 2. Redistributions in binary form must reproduce the above copyright
+// notice, this list of conditions and the following disclaimer in the
+// documentation and/or other materials provided with the distribution.
+// 3. All advertising materials mentioning features or use of this software
+// must display the following acknowledgement:
+// This product includes software developed by the University of
+// California, Berkeley and its contributors.
+// 4. Neither the name of the University nor the names of its contributors
+// may be used to endorse or promote products derived from this software
+// without specific prior written permission.
//
-// 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.
+// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+// SUCH DAMAGE.
//
-// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-type U_int8_t = uint8 /* _u_int8_t.h:30:33 */
-// Copyright (c) 2012 Apple Inc. All rights reserved.
+// @(#)socket.h 8.4 (Berkeley) 2/21/94
+// $FreeBSD: src/sys/sys/socket.h,v 1.39.2.7 2001/07/03 11:02:01 ume Exp $
+// NOTICE: This file was modified by SPARTA, Inc. in 2005 to introduce
+// support for mandatory and extensible security protections. This notice
+// is included in support of clause 2.2 (b) of the Apple Public License,
+// Version 2.0.
+
+// Copyright (c) 2000-2008 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
@@ -2062,34 +1677,46 @@ type U_int8_t = uint8 /* _u_int8_t.h:30:33 */
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-type U_int16_t = uint16 /* _u_int16_t.h:30:41 */
-// 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.
+// Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved
+// Copyright (c) 1982, 1986, 1991, 1993, 1994
+// The Regents of the University of California. All rights reserved.
+// (c) UNIX System Laboratories, Inc.
+// All or some portions of this file are derived from material licensed
+// to the University of California by American Telephone and Telegraph
+// Co. or Unix System Laboratories, Inc. and are reproduced herein with
+// the permission of UNIX System Laboratories, Inc.
//
-// Please obtain a copy of the License at
-// http://www.opensource.apple.com/apsl/ and read it before using this file.
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions
+// are met:
+// 1. Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// 2. Redistributions in binary form must reproduce the above copyright
+// notice, this list of conditions and the following disclaimer in the
+// documentation and/or other materials provided with the distribution.
+// 3. All advertising materials mentioning features or use of this software
+// must display the following acknowledgement:
+// This product includes software developed by the University of
+// California, Berkeley and its contributors.
+// 4. Neither the name of the University nor the names of its contributors
+// may be used to endorse or promote products derived from this software
+// without specific prior written permission.
//
-// 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.
+// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+// SUCH DAMAGE.
//
-// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-type U_int32_t = uint32 /* _u_int32_t.h:30:33 */
-// Copyright (c) 2012 Apple Inc. All rights reserved.
+// @(#)types.h 8.4 (Berkeley) 1/21/94
+
+// Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
@@ -2114,11 +1741,8 @@ type U_int32_t = uint32 /* _u_int32_t.h:30:33 */
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-type U_int64_t = uint64 /* _u_int64_t.h:30:33 */
-type Register_t = Int64_t /* types.h:66:33 */
-
-// Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+// Copyright (c) 2000-2018 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
@@ -2143,48 +1767,45 @@ type Register_t = Int64_t /* types.h:66:33 */
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-// Copyright (c) 2003-2012 Apple Inc. All rights reserved.
-//
-// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+// Copyright 1995 NeXT Computer, Inc. All rights reserved.
+// Copyright (c) 1991, 1993
+// The Regents of the University of California. All rights reserved.
//
-// 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.
+// This code is derived from software contributed to Berkeley by
+// Berkeley Software Design, Inc.
//
-// Please obtain a copy of the License at
-// http://www.opensource.apple.com/apsl/ and read it before using this file.
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions
+// are met:
+// 1. Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// 2. Redistributions in binary form must reproduce the above copyright
+// notice, this list of conditions and the following disclaimer in the
+// documentation and/or other materials provided with the distribution.
+// 3. All advertising materials mentioning features or use of this software
+// must display the following acknowledgement:
+// This product includes software developed by the University of
+// California, Berkeley and its contributors.
+// 4. Neither the name of the University nor the names of its contributors
+// may be used to endorse or promote products derived from this software
+// without specific prior written permission.
//
-// 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.
+// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+// SUCH DAMAGE.
//
-// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-
-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: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:104:33 */
+// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
-type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
-// Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+// Machine type dependent parameters.
+// Copyright (c) 2000-2007 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
@@ -2209,9 +1830,8 @@ type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-
-// 7.18.1.5 Greatest-width integer types
-// Copyright (c) 2012 Apple Inc. All rights reserved.
+// Copyright 1995 NeXT Computer, Inc. All rights reserved.
+// Copyright (c) 2003-2007 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
@@ -2237,8 +1857,7 @@ type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-type Intmax_t = int64 /* _intmax_t.h:32:25 */
-// Copyright (c) 2012 Apple Inc. All rights reserved.
+// Copyright (c) 2000-2018 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
@@ -2263,284 +1882,44 @@ type Intmax_t = int64 /* _intmax_t.h:32:25 */
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-
-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.
-//
-// 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
-
-//
-// 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.
-//
-
-// 7.18.2.2 Limits of minimum-width integer types
-
-// 7.18.2.3 Limits of fastest minimum-width integer types
-
-// 7.18.2.4 Limits of integer types capable of holding object pointers
-
-// 7.18.2.5 Limits of greatest-width integer types
-
-// 7.18.3 "Other"
-
-// 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.
-
-// Copyright (c) 2007-2016 by Apple Inc.. All rights reserved.
-//
-// @APPLE_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. 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_LICENSE_HEADER_END@
-
-//
-// These macros are for use in OS header files. They enable function prototypes
-// and Objective-C methods to be tagged with the OS version in which they
-// were first available; and, if applicable, the OS version in which they
-// became deprecated.
-//
-// The desktop Mac OS X and iOS each have different version numbers.
-// The __OSX_AVAILABLE_STARTING() macro allows you to specify both the desktop
-// and iOS version numbers. For instance:
-// __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0)
-// means the function/method was first available on Mac OS X 10.2 on the desktop
-// and first available in iOS 2.0 on the iPhone.
-//
-// If a function is available on one platform, but not the other a _NA (not
-// applicable) parameter is used. For instance:
-// __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_NA)
-// means that the function/method was first available on Mac OS X 10.3, and it
-// currently not implemented on the iPhone.
-//
-// At some point, a function/method may be deprecated. That means Apple
-// recommends applications stop using the function, either because there is a
-// better replacement or the functionality is being phased out. Deprecated
-// functions/methods can be tagged with a __OSX_AVAILABLE_BUT_DEPRECATED()
-// macro which specifies the OS version where the function became available
-// as well as the OS version in which it became deprecated. For instance:
-// __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0,__MAC_10_5,__IPHONE_NA,__IPHONE_NA)
-// means that the function/method was introduced in Mac OS X 10.0, then
-// became deprecated beginning in Mac OS X 10.5. On iOS the function
-// has never been available.
-//
-// For these macros to function properly, a program must specify the OS version range
-// it is targeting. The min OS version is specified as an option to the compiler:
-// -mmacosx-version-min=10.x when building for Mac OS X, and -miphoneos-version-min=y.z
-// when building for the iPhone. The upper bound for the OS version is rarely needed,
-// but it can be set on the command line via: -D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
-// Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
-//
-// Examples:
-//
-// A function available in Mac OS X 10.5 and later, but not on the phone:
-//
-// extern void mymacfunc() __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
-//
-//
-// An Objective-C method in Mac OS X 10.5 and later, but not on the phone:
-//
-// @interface MyClass : NSObject
-// -(void) mymacmethod __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_NA);
-// @end
-//
-//
-// An enum available on the phone, but not available on Mac OS X:
-//
-// #if __IPHONE_OS_VERSION_MIN_REQUIRED
-// enum { myEnum = 1 };
-// #endif
-// Note: this works when targeting the Mac OS X platform because
-// __IPHONE_OS_VERSION_MIN_REQUIRED is undefined which evaluates to zero.
-//
-//
-// An enum with values added in different iPhoneOS versions:
-//
-// enum {
-// myX = 1, // Usable on iPhoneOS 2.1 and later
-// myY = 2, // Usable on iPhoneOS 3.0 and later
-// myZ = 3, // Usable on iPhoneOS 3.0 and later
-// ...
-// Note: you do not want to use #if with enumeration values
-// when a client needs to see all values at compile time
-// and use runtime logic to only use the viable values.
-//
-//
-// It is also possible to use the *_VERSION_MIN_REQUIRED in source code to make one
-// source base that can be compiled to target a range of OS versions. It is best
-// to not use the _MAC_* and __IPHONE_* macros for comparisons, but rather their values.
-// That is because you might get compiled on an old OS that does not define a later
-// OS version macro, and in the C preprocessor undefined values evaluate to zero
-// in expresssions, which could cause the #if expression to evaluate in an unexpected
-// way.
-//
-// #ifdef __MAC_OS_X_VERSION_MIN_REQUIRED
-// // code only compiled when targeting Mac OS X and not iPhone
-// // note use of 1050 instead of __MAC_10_5
-// #if __MAC_OS_X_VERSION_MIN_REQUIRED < 1050
-// // code in here might run on pre-Leopard OS
-// #else
-// // code here can assume Leopard or later
-// #endif
-// #endif
-//
-//
-
-// __API_TO_BE_DEPRECATED is used as a version number in API that will be deprecated
-// in an upcoming release. This soft deprecation is an intermediate step before formal
-// deprecation to notify developers about the API before compiler warnings are generated.
-// You can find all places in your code that use soft deprecated API by redefining the
-// value of this macro to your current minimum deployment target, for example:
-// (macOS)
-// clang -D__API_TO_BE_DEPRECATED=10.12 <other compiler flags>
-// (iOS)
-// clang -D__API_TO_BE_DEPRECATED=11.0 <other compiler flags>
-
-// Copyright (c) 2019 by Apple Inc.. All rights reserved.
-//
-// @APPLE_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. 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_LICENSE_HEADER_END@
-
-// __MAC_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
-
-// __IPHONE_NA is not defined to a value but is used as a token by macros to indicate that the API is unavailable
-
-// 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@
-//
-// 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. 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_LICENSE_HEADER_END@
-
-//
-// File: AvailabilityInternal.h
-//
-// Contains: implementation details of __OSX_AVAILABLE_* macros from <Availability.h>
-//
-
-// compiler for Mac OS X sets __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
-
-// make sure a default max version is set
-
-//
-// Macros for defining which versions/platform a given symbol can be used.
-//
-// @see http://clang.llvm.org/docs/AttributeReference.html#availability
-//
-
-// Evaluate to nothing for compilers that don't support availability.
-
-// Swift compiler version
-// Allows for project-agnostic "epochs" for frameworks imported into Swift via the Clang importer, like #if _compiler_version for Swift
-// Example:
-//
-// #if __swift_compiler_version_at_least(800, 2, 20)
-// - (nonnull NSString *)description;
-// #else
-// - (NSString *)description;
-// #endif
-
-// If __SPI_AVAILABLE has not been defined elsewhere, disable it.
-
-// for use to document app extension usage
-
-// for use marking APIs available info for Mac OSX
-
-// for use marking APIs available info for iOS
-
-// for use marking APIs available info for tvOS
-
-// for use marking APIs available info for Watch OS
-
-// for use marking APIs unavailable for swift
-
+// Copyright 1995 NeXT Computer, Inc. All rights reserved.
+// Copyright (c) 1991, 1993
+// The Regents of the University of California. All rights reserved.
//
-// Macros for defining which versions/platform a given symbol can be used.
+// This code is derived from software contributed to Berkeley by
+// Berkeley Software Design, Inc.
//
-// @see http://clang.llvm.org/docs/AttributeReference.html#availability
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions
+// are met:
+// 1. Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// 2. Redistributions in binary form must reproduce the above copyright
+// notice, this list of conditions and the following disclaimer in the
+// documentation and/or other materials provided with the distribution.
+// 3. All advertising materials mentioning features or use of this software
+// must display the following acknowledgement:
+// This product includes software developed by the University of
+// California, Berkeley and its contributors.
+// 4. Neither the name of the University nor the names of its contributors
+// may be used to endorse or promote products derived from this software
+// without specific prior written permission.
//
-// * Note that these macros are only compatible with clang compilers that
-// * support the following target selection options:
-// *
-// * -mmacosx-version-min
-// * -miphoneos-version-min
-// * -mwatchos-version-min
-// * -mtvos-version-min
+// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+// SUCH DAMAGE.
//
+// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
-// Evaluate to nothing for compilers that don't support availability.
-
-// If SPI decorations have not been defined elsewhere, disable them.
-
-// Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+// Copyright (c) 2003-2007 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
@@ -2565,7 +1944,35 @@ type Uintmax_t = uint64 /* _uintmax_t.h:32:26 */
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+
// Copyright (c) 2000-2007 Apple Inc. All rights reserved.
+
+// Type definitions; takes common type definitions that must be used
+// in multiple header files due to [XSI], removes them from the system
+// space, and puts them in the implementation space.
+
+type X__darwin_blkcnt_t = X__int64_t /* _types.h:55:25 */ // total blocks
+type X__darwin_blksize_t = X__int32_t /* _types.h:56:25 */ // preferred block size
+type X__darwin_dev_t = X__int32_t /* _types.h:57:25 */ // dev_t
+type X__darwin_fsblkcnt_t = uint32 /* _types.h:58:25 */ // Used by statvfs and fstatvfs
+type X__darwin_fsfilcnt_t = uint32 /* _types.h:59:25 */ // Used by statvfs and fstatvfs
+type X__darwin_gid_t = X__uint32_t /* _types.h:60:25 */ // [???] process and group IDs
+type X__darwin_id_t = X__uint32_t /* _types.h:61:25 */ // [XSI] pid_t, uid_t, or gid_t
+type X__darwin_ino64_t = X__uint64_t /* _types.h:62:25 */ // [???] Used for 64 bit inodes
+type X__darwin_ino_t = X__darwin_ino64_t /* _types.h:64:26 */ // [???] Used for inodes
+type X__darwin_mach_port_name_t = X__darwin_natural_t /* _types.h:68:28 */ // Used by mach
+type X__darwin_mach_port_t = X__darwin_mach_port_name_t /* _types.h:69:35 */ // Used by mach
+type X__darwin_mode_t = X__uint16_t /* _types.h:70:25 */ // [???] Some file attributes
+type X__darwin_off_t = X__int64_t /* _types.h:71:25 */ // [???] Used for file sizes
+type X__darwin_pid_t = X__int32_t /* _types.h:72:25 */ // [???] process and group IDs
+type X__darwin_sigset_t = X__uint32_t /* _types.h:73:25 */ // [???] signal set
+type X__darwin_suseconds_t = X__int32_t /* _types.h:74:25 */ // [???] microseconds
+type X__darwin_uid_t = X__uint32_t /* _types.h:75:25 */ // [???] user IDs
+type X__darwin_useconds_t = X__uint32_t /* _types.h:76:25 */ // [???] microseconds
+type X__darwin_uuid_t = [16]uint8 /* _types.h:77:25 */
+type X__darwin_uuid_string_t = [37]int8 /* _types.h:78:17 */
+
+// Copyright (c) 2003-2013 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
@@ -2590,9 +1997,8 @@ type Uintmax_t = uint64 /* _uintmax_t.h:32:26 */
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-// Copyright 1995 NeXT Computer, Inc. All rights reserved.
-type In_addr_t = X__uint32_t /* _in_addr_t.h:31:25 */ // base type for internet address
-// Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+
+// Copyright (c) 2000-2018 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
//
@@ -2617,33 +2023,107 @@ type In_addr_t = X__uint32_t /* _in_addr_t.h:31:25 */ // base type for internet
// limitations under the License.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-// Copyright (c) 2000-2007 Apple Inc. All rights reserved.
-//
-// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+// Copyright 1995 NeXT Computer, Inc. All rights reserved.
+// Copyright (c) 1991, 1993
+// The Regents of the University of California. All rights reserved.
//
-// 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.
+// This code is derived from software contributed to Berkeley by
+// Berkeley Software Design, Inc.
//
-// Please obtain a copy of the License at
-// http://www.opensource.apple.com/apsl/ and read it before using this file.
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions
+// are met:
+// 1. Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+// 2. Redistributions in binary form must reproduce the above copyright
+// notice, this list of conditions and the following disclaimer in the
+// documentation and/or other materials provided with the distribution.
+// 3. All advertising materials mentioning features or use of this software
+// must display the following acknowledgement:
+// This product includes software developed by the University of
+// California, Berkeley and its contributors.
+// 4. Neither the name of the University nor the names of its contributors
+// may be used to endorse or promote products derived from this software
+// without specific prior written permission.
//
-// 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.
+// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+// SUCH DAMAGE.
//
-// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
-// Copyright 1995 NeXT Computer, Inc. All rights reserved.
-type In_port_t = X__uint16_t /* _in_port_t.h:31:33 */
+// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
+
+// pthread opaque structures
+
+type X__darwin_pthread_handler_rec = struct {
+ F__routine uintptr
+ F__arg uintptr
+ F__next uintptr
+} /* _pthread_types.h:57:1 */
+
+type X_opaque_pthread_attr_t = struct {
+ F__sig int64
+ F__opaque [56]int8
+} /* _pthread_types.h:63:1 */
+
+type X_opaque_pthread_cond_t = struct {
+ F__sig int64
+ F__opaque [40]int8
+} /* _pthread_types.h:68:1 */
+
+type X_opaque_pthread_condattr_t = struct {
+ F__sig int64
+ F__opaque [8]int8
+} /* _pthread_types.h:73:1 */
+
+type X_opaque_pthread_mutex_t = struct {
+ F__sig int64
+ F__opaque [56]int8
+} /* _pthread_types.h:78:1 */
+
+type X_opaque_pthread_mutexattr_t = struct {
+ F__sig int64
+ F__opaque [8]int8
+} /* _pthread_types.h:83:1 */
+
+type X_opaque_pthread_once_t = struct {
+ F__sig int64
+ F__opaque [8]int8
+} /* _pthread_types.h:88:1 */
+
+type X_opaque_pthread_rwlock_t = struct {
+ F__sig int64
+ F__opaque [192]int8
+} /* _pthread_types.h:93:1 */
+
+type X_opaque_pthread_rwlockattr_t = struct {
+ F__sig int64
+ F__opaque [16]int8
+} /* _pthread_types.h:98:1 */
+
+type X_opaque_pthread_t = struct {
+ F__sig int64
+ F__cleanup_stack uintptr
+ F__opaque [8176]int8
+} /* _pthread_types.h:103:1 */
+
+type X__darwin_pthread_attr_t = X_opaque_pthread_attr_t /* _pthread_types.h:109:39 */
+type X__darwin_pthread_cond_t = X_opaque_pthread_cond_t /* _pthread_types.h:110:39 */
+type X__darwin_pthread_condattr_t = X_opaque_pthread_condattr_t /* _pthread_types.h:111:43 */
+type X__darwin_pthread_key_t = uint64 /* _pthread_types.h:112:23 */
+type X__darwin_pthread_mutex_t = X_opaque_pthread_mutex_t /* _pthread_types.h:113:40 */
+type X__darwin_pthread_mutexattr_t = X_opaque_pthread_mutexattr_t /* _pthread_types.h:114:44 */
+type X__darwin_pthread_once_t = X_opaque_pthread_once_t /* _pthread_types.h:115:39 */
+type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t /* _pthread_types.h:116:41 */
+type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
+type X__darwin_pthread_t = uintptr /* _pthread_types.h:118:34 */
// Functions for byte reversed loads.
diff --git a/vendor/modernc.org/libc/poll/capi_darwin_arm64.go b/vendor/modernc.org/libc/poll/capi_darwin_arm64.go
index b5e9cffd..89d2d189 100644
--- a/vendor/modernc.org/libc/poll/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/poll/capi_darwin_arm64.go
@@ -2,4 +2,6 @@
package poll
-var CAPI = map[string]struct{}{}
+var CAPI = map[string]struct{}{
+ "__darwin_check_fd_set_overflow": {},
+}
diff --git a/vendor/modernc.org/libc/poll/poll_darwin_arm64.go b/vendor/modernc.org/libc/poll/poll_darwin_arm64.go
index 30ae157b..27d1110a 100644
--- a/vendor/modernc.org/libc/poll/poll_darwin_arm64.go
+++ b/vendor/modernc.org/libc/poll/poll_darwin_arm64.go
@@ -62,6 +62,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) 2004 Apple Computer, Inc. All rights reserved.
//
// @APPLE_LICENSE_HEADER_START@
diff --git a/vendor/modernc.org/libc/pthread/capi_darwin_arm64.go b/vendor/modernc.org/libc/pthread/capi_darwin_arm64.go
index c772a1c1..b7c71969 100644
--- a/vendor/modernc.org/libc/pthread/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/pthread/capi_darwin_arm64.go
@@ -2,4 +2,6 @@
package pthread
-var CAPI = map[string]struct{}{}
+var CAPI = map[string]struct{}{
+ "__darwin_check_fd_set_overflow": {},
+}
diff --git a/vendor/modernc.org/libc/pthread/capi_windows_386.go b/vendor/modernc.org/libc/pthread/capi_windows_386.go
index 619b6d06..eb0511cc 100644
--- a/vendor/modernc.org/libc/pthread/capi_windows_386.go
+++ b/vendor/modernc.org/libc/pthread/capi_windows_386.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_windows_386.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 -o pthread\pthread_windows_386.go -pkgname pthread', DO NOT EDIT.
package pthread
diff --git a/vendor/modernc.org/libc/pthread/pthread_darwin_amd64.go b/vendor/modernc.org/libc/pthread/pthread_darwin_amd64.go
index 91a0d468..ad34564f 100644
--- a/vendor/modernc.org/libc/pthread/pthread_darwin_amd64.go
+++ b/vendor/modernc.org/libc/pthread/pthread_darwin_amd64.go
@@ -642,6 +642,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.
@@ -1647,15 +1654,6 @@ type Sched_param = struct {
// __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/pthread/pthread_darwin_arm64.go b/vendor/modernc.org/libc/pthread/pthread_darwin_arm64.go
index 0cc05623..ad851e8b 100644
--- a/vendor/modernc.org/libc/pthread/pthread_darwin_arm64.go
+++ b/vendor/modernc.org/libc/pthread/pthread_darwin_arm64.go
@@ -513,6 +513,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-2012 Apple Inc. All rights reserved.
//
// @APPLE_LICENSE_HEADER_START@
@@ -677,6 +679,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).
//
@@ -1670,15 +1679,6 @@ type Sched_param = struct {
// 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@
diff --git a/vendor/modernc.org/libc/pthread/pthread_windows_386.go b/vendor/modernc.org/libc/pthread/pthread_windows_386.go
index c18aec3f..a162ee96 100644
--- a/vendor/modernc.org/libc/pthread/pthread_windows_386.go
+++ b/vendor/modernc.org/libc/pthread/pthread_windows_386.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_windows_386.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 -o pthread\pthread_windows_386.go -pkgname pthread', DO NOT EDIT.
package pthread
@@ -114,10 +114,6 @@ const (
ETXTBSY = 139
EWOULDBLOCK = 140
EXDEV = 18
- GENERIC_ERRORCHECK_INITIALIZER = -2
- GENERIC_INITIALIZER = -1
- GENERIC_NORMAL_INITIALIZER = -1
- GENERIC_RECURSIVE_INITIALIZER = -3
INT_MAX = 2147483647
INT_MIN = -2147483648
LLONG_MAX = 9223372036854775807
@@ -129,7 +125,9 @@ const (
MAX_READ_LOCKS = 2147483646
MB_LEN_MAX = 5
MINGW_DDK_H = 0
+ MINGW_DDRAW_VERSION = 7
MINGW_HAS_DDK_H = 1
+ MINGW_HAS_DDRAW_H = 1
MINGW_HAS_SECURE_API = 1
MINGW_SDK_INIT = 0
NSIG = 23
@@ -236,7 +234,6 @@ const (
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
X_CRT_SYSTEM_DEFINED = 0
X_CRT_TERMINATE_DEFINED = 0
- X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0
X_CRT_WSYSTEM_DEFINED = 0
X_DEV_T_DEFINED = 0
X_DLL = 0
@@ -254,8 +251,6 @@ const (
X_I64_MIN = -9223372036854775808
X_I8_MAX = 127
X_I8_MIN = -128
- X_ILP32 = 1
- X_INC_CORECRT = 0
X_INC_CORECRT_STARTUP = 0
X_INC_CRTDEFS = 0
X_INC_CRTDEFS_MACRO = 0
@@ -291,6 +286,7 @@ const (
X_POSIX_THREADS = 200112
X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 256
X_POSIX_THREAD_KEYS_MAX = 1048576
+ X_POSIX_THREAD_SAFE_FUNCTIONS = 200112
X_POSIX_TIMEOUTS = 200112
X_PTRDIFF_T_ = 0
X_PTRDIFF_T_DEFINED = 0
@@ -299,6 +295,7 @@ const (
X_P_NOWAITO = 3
X_P_OVERLAY = 2
X_P_WAIT = 0
+ X_REENTRANT = 1
X_RSIZE_T_DEFINED = 0
X_SECURECRT_ERRCODE_VALUES_DEFINED = 0
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
@@ -426,11 +423,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// *
-// This file has no copyright assigned and is placed in the Public Domain.
-// This file is part of the mingw-w64 runtime package.
-// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-
// This macro holds an monotonic increasing value, which indicates
// a specific fix/patch is present on trunk. This value isn't related to
// minor/major version-macros. It is increased on demand, if a big
@@ -451,12 +443,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// MinGW-w64 has some additional C99 printf/scanf feature support.
// So we add some helper macros to ease recognition of them.
-// If _FORTIFY_SOURCE is enabled, some inline functions may use
-// __builtin_va_arg_pack(). GCC may report an error if the address
-// of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
-
-// Enable workaround for ABI incompatibility on affected platforms
-
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
@@ -497,28 +483,26 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// for backward compatibility
-
type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
-type Ssize_t = int32 /* corecrt.h:52:13 */
+type Ssize_t = int32 /* crtdefs.h:47:13 */
-type Rsize_t = Size_t /* corecrt.h:57:16 */
+type Rsize_t = Size_t /* crtdefs.h:52:16 */
-type Intptr_t = int32 /* corecrt.h:69:13 */
+type Intptr_t = int32 /* crtdefs.h:64:13 */
-type Uintptr_t = uint32 /* corecrt.h:82:22 */
+type Uintptr_t = uint32 /* crtdefs.h:77:22 */
-type Wint_t = uint16 /* corecrt.h:111:24 */
-type Wctype_t = uint16 /* corecrt.h:112:24 */
+type Wint_t = uint16 /* crtdefs.h:106:24 */
+type Wctype_t = uint16 /* crtdefs.h:107:24 */
-type Errno_t = int32 /* corecrt.h:118:13 */
+type Errno_t = int32 /* crtdefs.h:113:13 */
-type X__time32_t = int32 /* corecrt.h:123:14 */
+type X__time32_t = int32 /* crtdefs.h:118:14 */
-type X__time64_t = int64 /* corecrt.h:128:35 */
+type X__time64_t = int64 /* crtdefs.h:123:35 */
-type Time_t = X__time32_t /* corecrt.h:141:20 */
+type Time_t = X__time32_t /* crtdefs.h:136:20 */
type Threadlocaleinfostruct = struct {
Frefcount int32
@@ -544,29 +528,29 @@ type Threadlocaleinfostruct = struct {
Fpclmap uintptr
Fpcumap uintptr
Flc_time_curr uintptr
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type Pthreadlocinfo = uintptr /* corecrt.h:437:39 */
-type Pthreadmbcinfo = uintptr /* corecrt.h:438:36 */
+type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
+type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
type Localeinfo_struct = struct {
Flocinfo Pthreadlocinfo
Fmbcinfo Pthreadmbcinfo
-} /* corecrt.h:441:9 */
+} /* crtdefs.h:428:9 */
-type X_locale_tstruct = Localeinfo_struct /* corecrt.h:444:3 */
-type X_locale_t = uintptr /* corecrt.h:444:19 */
+type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
+type X_locale_t = uintptr /* crtdefs.h:431:19 */
type TagLC_ID = struct {
FwLanguage uint16
FwCountry uint16
FwCodePage uint16
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type LC_ID = TagLC_ID /* corecrt.h:452:3 */
-type LPLC_ID = uintptr /* corecrt.h:452:9 */
+type LC_ID = TagLC_ID /* crtdefs.h:439:3 */
+type LPLC_ID = uintptr /* crtdefs.h:439:9 */
-type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
+type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
// ISO C Standard: 7.17 Common definitions <stddef.h>
@@ -630,9 +614,9 @@ type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
type Max_align_t = struct {
F__max_align_ll int64
F__max_align_ld float64
-} /* stddef.h:427:3 */
+} /* stddef.h:426:3 */
-// Copyright (C) 1989-2020 Free Software Foundation, Inc.
+// Copyright (C) 1989-2018 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
@@ -738,18 +722,7 @@ type X_onexit_table_t = X_onexit_table_t1 /* corecrt_startup.h:28:3 */
type X_onexit_t = uintptr /* corecrt_startup.h:30:13 */
-// Includes a definition of _pid_t and pid_t
-// *
-// This file has no copyright assigned and is placed in the Public Domain.
-// This file is part of the mingw-w64 runtime package.
-// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-
-type X_beginthread_proc_type = uintptr /* process.h:32:16 */
-type X_beginthreadex_proc_type = uintptr /* process.h:33:20 */
-
-type X_tls_callback_type = uintptr /* process.h:61:16 */
-
-// Copyright (C) 1992-2020 Free Software Foundation, Inc.
+// Copyright (C) 1992-2018 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
@@ -801,7 +774,7 @@ type X_tls_callback_type = uintptr /* process.h:61:16 */
// are semantically identical, with a limit of 259 characters for the
// path name, plus one for a terminating NUL, for a total of 260.
-// Copyright (C) 1991-2020 Free Software Foundation, Inc.
+// Copyright (C) 1991-2018 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
@@ -978,11 +951,11 @@ type Pthread_attr_t1 = struct {
type Pthread_attr_t = Pthread_attr_t1 /* pthread.h:251:31 */
// synchronization objects
-type Pthread_spinlock_t = Intptr_t /* pthread.h:268:18 */
-type Pthread_mutex_t = Intptr_t /* pthread.h:269:18 */
-type Pthread_cond_t = Intptr_t /* pthread.h:270:18 */
-type Pthread_rwlock_t = Intptr_t /* pthread.h:271:18 */
-type Pthread_barrier_t = uintptr /* pthread.h:272:14 */
+type Pthread_spinlock_t = uintptr /* pthread.h:268:14 */
+type Pthread_mutex_t = uintptr /* pthread.h:269:14 */
+type Pthread_cond_t = uintptr /* pthread.h:270:14 */
+type Pthread_rwlock_t = uintptr /* pthread.h:271:14 */
+type Pthread_barrier_t = uintptr /* pthread.h:272:14 */
type Clockid_t = int32 /* pthread.h:389:13 */
@@ -1103,6 +1076,23 @@ type Clockid_t = int32 /* pthread.h:389:13 */
//
// are present.
+// _SC_THREAD_SAFE_FUNCTIONS
+// Affected functions are
+//
+// readdir_r(),
+// getgrgid_r(),
+// getgrnam_r(),
+// getpwnam_r(),
+// getpwuid_r(),
+// flockfile(),
+// ftrylockfile(),
+// funlockfile(),
+// getc_unlocked(),
+// getchar_unlocked(),
+// putc_unlocked(),
+// putchar_unlocked(),
+// strerror_r(),
+
// _SC_TIMEOUTS
// The functions
//
diff --git a/vendor/modernc.org/libc/pwd/capi_darwin_arm64.go b/vendor/modernc.org/libc/pwd/capi_darwin_arm64.go
index 0231bc16..4ce4663e 100644
--- a/vendor/modernc.org/libc/pwd/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/pwd/capi_darwin_arm64.go
@@ -2,4 +2,6 @@
package pwd
-var CAPI = map[string]struct{}{}
+var CAPI = map[string]struct{}{
+ "__darwin_check_fd_set_overflow": {},
+}
diff --git a/vendor/modernc.org/libc/pwd/pwd_darwin_amd64.go b/vendor/modernc.org/libc/pwd/pwd_darwin_amd64.go
index 073da409..5edc4ff2 100644
--- a/vendor/modernc.org/libc/pwd/pwd_darwin_amd64.go
+++ b/vendor/modernc.org/libc/pwd/pwd_darwin_amd64.go
@@ -242,6 +242,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.
diff --git a/vendor/modernc.org/libc/pwd/pwd_darwin_arm64.go b/vendor/modernc.org/libc/pwd/pwd_darwin_arm64.go
index 1cd771aa..cc5a1b2b 100644
--- a/vendor/modernc.org/libc/pwd/pwd_darwin_arm64.go
+++ b/vendor/modernc.org/libc/pwd/pwd_darwin_arm64.go
@@ -80,6 +80,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) 1989, 1993
// The Regents of the University of California. All rights reserved.
@@ -242,6 +244,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).
//
diff --git a/vendor/modernc.org/libc/signal/capi_darwin_amd64.go b/vendor/modernc.org/libc/signal/capi_darwin_amd64.go
index bb67e54a..841f5c77 100644
--- a/vendor/modernc.org/libc/signal/capi_darwin_amd64.go
+++ b/vendor/modernc.org/libc/signal/capi_darwin_amd64.go
@@ -4,4 +4,5 @@ package signal
var CAPI = map[string]struct{}{
"__darwin_check_fd_set_overflow": {},
+ "__sigbits": {},
}
diff --git a/vendor/modernc.org/libc/signal/capi_darwin_arm64.go b/vendor/modernc.org/libc/signal/capi_darwin_arm64.go
index 57a49213..c630a75e 100644
--- a/vendor/modernc.org/libc/signal/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/signal/capi_darwin_arm64.go
@@ -2,4 +2,7 @@
package signal
-var CAPI = map[string]struct{}{}
+var CAPI = map[string]struct{}{
+ "__darwin_check_fd_set_overflow": {},
+ "__sigbits": {},
+}
diff --git a/vendor/modernc.org/libc/signal/capi_windows_386.go b/vendor/modernc.org/libc/signal/capi_windows_386.go
index 2ac7e272..d7651277 100644
--- a/vendor/modernc.org/libc/signal/capi_windows_386.go
+++ b/vendor/modernc.org/libc/signal/capi_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo signal/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 signal/signal_windows_386.go -pkgname signal', DO NOT EDIT.
+// Code generated by 'ccgo signal\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 signal\signal_windows_386.go -pkgname signal', DO NOT EDIT.
package signal
diff --git a/vendor/modernc.org/libc/signal/signal_darwin_amd64.go b/vendor/modernc.org/libc/signal/signal_darwin_amd64.go
index efd05e83..e820a96b 100644
--- a/vendor/modernc.org/libc/signal/signal_darwin_amd64.go
+++ b/vendor/modernc.org/libc/signal/signal_darwin_amd64.go
@@ -316,6 +316,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.
@@ -1302,15 +1309,6 @@ type X__darwin_wctype_t = X__uint32_t /* _types.h:43:20 */
// __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/signal/signal_darwin_arm64.go b/vendor/modernc.org/libc/signal/signal_darwin_arm64.go
index d9827248..9a412b1d 100644
--- a/vendor/modernc.org/libc/signal/signal_darwin_arm64.go
+++ b/vendor/modernc.org/libc/signal/signal_darwin_arm64.go
@@ -216,6 +216,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 Apple Computer, Inc. All rights reserved.
//
// @APPLE_LICENSE_HEADER_START@
@@ -344,6 +346,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).
//
@@ -1339,15 +1348,6 @@ type X__darwin_wctype_t = X__uint32_t /* _types.h:43:20 */
// 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@
diff --git a/vendor/modernc.org/libc/signal/signal_windows_386.go b/vendor/modernc.org/libc/signal/signal_windows_386.go
index e14d880c..2b488a95 100644
--- a/vendor/modernc.org/libc/signal/signal_windows_386.go
+++ b/vendor/modernc.org/libc/signal/signal_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo signal/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 signal/signal_windows_386.go -pkgname signal', DO NOT EDIT.
+// Code generated by 'ccgo signal\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 signal\signal_windows_386.go -pkgname signal', DO NOT EDIT.
package signal
@@ -32,7 +32,9 @@ const (
DUMMYUNIONNAME8 = 0
DUMMYUNIONNAME9 = 0
MINGW_DDK_H = 0
+ MINGW_DDRAW_VERSION = 7
MINGW_HAS_DDK_H = 1
+ MINGW_HAS_DDRAW_H = 1
MINGW_HAS_SECURE_API = 1
MINGW_SDK_INIT = 0
NSIG = 23
@@ -65,12 +67,9 @@ const (
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
- X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0
X_DLL = 0
X_ERRCODE_DEFINED = 0
X_FILE_OFFSET_BITS = 64
- X_ILP32 = 1
- X_INC_CORECRT = 0
X_INC_CRTDEFS = 0
X_INC_CRTDEFS_MACRO = 0
X_INC_MINGW_SECAPI = 0
@@ -85,6 +84,7 @@ const (
X_PGLOBAL = 0
X_PTRDIFF_T_ = 0
X_PTRDIFF_T_DEFINED = 0
+ X_REENTRANT = 1
X_RSIZE_T_DEFINED = 0
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
X_SIG_ATOMIC_T_DEFINED = 0
@@ -139,11 +139,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// *
-// This file has no copyright assigned and is placed in the Public Domain.
-// This file is part of the mingw-w64 runtime package.
-// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-
// This macro holds an monotonic increasing value, which indicates
// a specific fix/patch is present on trunk. This value isn't related to
// minor/major version-macros. It is increased on demand, if a big
@@ -164,12 +159,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// MinGW-w64 has some additional C99 printf/scanf feature support.
// So we add some helper macros to ease recognition of them.
-// If _FORTIFY_SOURCE is enabled, some inline functions may use
-// __builtin_va_arg_pack(). GCC may report an error if the address
-// of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
-
-// Enable workaround for ABI incompatibility on affected platforms
-
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
@@ -210,28 +199,26 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// for backward compatibility
-
type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
-type Ssize_t = int32 /* corecrt.h:52:13 */
+type Ssize_t = int32 /* crtdefs.h:47:13 */
-type Rsize_t = Size_t /* corecrt.h:57:16 */
+type Rsize_t = Size_t /* crtdefs.h:52:16 */
-type Intptr_t = int32 /* corecrt.h:69:13 */
+type Intptr_t = int32 /* crtdefs.h:64:13 */
-type Uintptr_t = uint32 /* corecrt.h:82:22 */
+type Uintptr_t = uint32 /* crtdefs.h:77:22 */
-type Wint_t = uint16 /* corecrt.h:111:24 */
-type Wctype_t = uint16 /* corecrt.h:112:24 */
+type Wint_t = uint16 /* crtdefs.h:106:24 */
+type Wctype_t = uint16 /* crtdefs.h:107:24 */
-type Errno_t = int32 /* corecrt.h:118:13 */
+type Errno_t = int32 /* crtdefs.h:113:13 */
-type X__time32_t = int32 /* corecrt.h:123:14 */
+type X__time32_t = int32 /* crtdefs.h:118:14 */
-type X__time64_t = int64 /* corecrt.h:128:35 */
+type X__time64_t = int64 /* crtdefs.h:123:35 */
-type Time_t = X__time32_t /* corecrt.h:141:20 */
+type Time_t = X__time32_t /* crtdefs.h:136:20 */
type Threadlocaleinfostruct = struct {
Frefcount int32
@@ -257,29 +244,29 @@ type Threadlocaleinfostruct = struct {
Fpclmap uintptr
Fpcumap uintptr
Flc_time_curr uintptr
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type Pthreadlocinfo = uintptr /* corecrt.h:437:39 */
-type Pthreadmbcinfo = uintptr /* corecrt.h:438:36 */
+type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
+type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
type Localeinfo_struct = struct {
Flocinfo Pthreadlocinfo
Fmbcinfo Pthreadmbcinfo
-} /* corecrt.h:441:9 */
+} /* crtdefs.h:428:9 */
-type X_locale_tstruct = Localeinfo_struct /* corecrt.h:444:3 */
-type X_locale_t = uintptr /* corecrt.h:444:19 */
+type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
+type X_locale_t = uintptr /* crtdefs.h:431:19 */
type TagLC_ID = struct {
FwLanguage uint16
FwCountry uint16
FwCodePage uint16
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type LC_ID = TagLC_ID /* corecrt.h:452:3 */
-type LPLC_ID = uintptr /* corecrt.h:452:9 */
+type LC_ID = TagLC_ID /* crtdefs.h:439:3 */
+type LPLC_ID = uintptr /* crtdefs.h:439:9 */
-type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
+type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
//
// Copyright (c) 2013-2016 mingw-w64 project
diff --git a/vendor/modernc.org/libc/stdio/capi_darwin_arm64.go b/vendor/modernc.org/libc/stdio/capi_darwin_arm64.go
index 5c824d92..7e98026e 100644
--- a/vendor/modernc.org/libc/stdio/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/stdio/capi_darwin_arm64.go
@@ -2,4 +2,6 @@
package stdio
-var CAPI = map[string]struct{}{}
+var CAPI = map[string]struct{}{
+ "__darwin_check_fd_set_overflow": {},
+}
diff --git a/vendor/modernc.org/libc/stdio/capi_windows_386.go b/vendor/modernc.org/libc/stdio/capi_windows_386.go
index 22f366ae..280ea7c0 100644
--- a/vendor/modernc.org/libc/stdio/capi_windows_386.go
+++ b/vendor/modernc.org/libc/stdio/capi_windows_386.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_windows_386.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 -o stdio\stdio_windows_386.go -pkgname stdio', DO NOT EDIT.
package stdio
diff --git a/vendor/modernc.org/libc/stdio/stdio_darwin_amd64.go b/vendor/modernc.org/libc/stdio/stdio_darwin_amd64.go
index 987c83a5..f6f20867 100644
--- a/vendor/modernc.org/libc/stdio/stdio_darwin_amd64.go
+++ b/vendor/modernc.org/libc/stdio/stdio_darwin_amd64.go
@@ -18,7 +18,6 @@ const (
BUFSIZ = 1024
EOF = -1
FILENAME_MAX = 1024
- FIXINC_WRAP_STDIO_H_STDIO_STDARG_H = 1
FOPEN_MAX = 20
L_ctermid = 1024
L_tmpnam = 1024
@@ -92,47 +91,6 @@ type X__float128 = float64 /* <builtin>:47:21 */
var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
-// DO NOT EDIT THIS FILE.
-//
-// It has been auto-edited by fixincludes from:
-//
-// "/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h"
-//
-// This had to be done to correct non-standard usages in the
-// original, manufacturer supplied header file.
-
-// Copyright (C) 1989-2021 Free Software Foundation, Inc.
-//
-// This file is part of GCC.
-//
-// GCC is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 3, or (at your option)
-// any later version.
-//
-// GCC is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// Under Section 7 of GPL version 3, you are granted additional
-// permissions described in the GCC Runtime Library Exception, version
-// 3.1, as published by the Free Software Foundation.
-//
-// You should have received a copy of the GNU General Public License and
-// a copy of the GCC Runtime Library Exception along with this program;
-// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
-// <http://www.gnu.org/licenses/>.
-
-// ISO C Standard: 7.15 Variable arguments <stdarg.h>
-
-// Define __gnuc_va_list.
-
-type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */
-
-// Define the standard macros for the user,
-// if this invocation was from the user program.
-
// Copyright (c) 2000, 2005, 2007, 2009, 2010 Apple Inc. All rights reserved.
//
// @APPLE_LICENSE_HEADER_START@
@@ -323,6 +281,13 @@ type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */
// 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.
@@ -729,15 +694,6 @@ type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */
// __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/stdio/stdio_darwin_arm64.go b/vendor/modernc.org/libc/stdio/stdio_darwin_arm64.go
index d361e7a8..76157f5f 100644
--- a/vendor/modernc.org/libc/stdio/stdio_darwin_arm64.go
+++ b/vendor/modernc.org/libc/stdio/stdio_darwin_arm64.go
@@ -18,7 +18,6 @@ const (
BUFSIZ = 1024
EOF = -1
FILENAME_MAX = 1024
- FIXINC_WRAP_STDIO_H_STDIO_STDARG_H = 1
FOPEN_MAX = 20
L_ctermid = 1024
L_tmpnam = 1024
@@ -127,46 +126,7 @@ type X__uint128_t = struct {
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
type X__float128 = float64 /* <builtin>:47:21 */
-// DO NOT EDIT THIS FILE.
-//
-// It has been auto-edited by fixincludes from:
-//
-// "/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/stdio.h"
-//
-// This had to be done to correct non-standard usages in the
-// original, manufacturer supplied header file.
-
-// Copyright (C) 1989-2021 Free Software Foundation, Inc.
-//
-// This file is part of GCC.
-//
-// GCC is free software; you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation; either version 3, or (at your option)
-// any later version.
-//
-// GCC is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// Under Section 7 of GPL version 3, you are granted additional
-// permissions described in the GCC Runtime Library Exception, version
-// 3.1, as published by the Free Software Foundation.
-//
-// You should have received a copy of the GNU General Public License and
-// a copy of the GCC Runtime Library Exception along with this program;
-// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
-// <http://www.gnu.org/licenses/>.
-
-// ISO C Standard: 7.15 Variable arguments <stdarg.h>
-
-// Define __gnuc_va_list.
-
-type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */
-
-// Define the standard macros for the user,
-// if this invocation was from the user program.
+var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
// Copyright (c) 2000, 2005, 2007, 2009, 2010 Apple Inc. All rights reserved.
//
@@ -358,6 +318,13 @@ type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */
// 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).
//
@@ -797,15 +764,6 @@ type X__gnuc_va_list = X__builtin_va_list /* stdarg.h:40:27 */
// 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@
diff --git a/vendor/modernc.org/libc/stdio/stdio_windows_386.go b/vendor/modernc.org/libc/stdio/stdio_windows_386.go
index 5adf00fa..ca396f23 100644
--- a/vendor/modernc.org/libc/stdio/stdio_windows_386.go
+++ b/vendor/modernc.org/libc/stdio/stdio_windows_386.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_windows_386.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 -o stdio\stdio_windows_386.go -pkgname stdio', DO NOT EDIT.
package stdio
@@ -15,152 +15,141 @@ var _ atomic.Value
var _ unsafe.Pointer
const (
- BUFSIZ = 512
- DUMMYSTRUCTNAME = 0
- DUMMYSTRUCTNAME1 = 0
- DUMMYSTRUCTNAME2 = 0
- DUMMYSTRUCTNAME3 = 0
- DUMMYSTRUCTNAME4 = 0
- DUMMYSTRUCTNAME5 = 0
- DUMMYUNIONNAME = 0
- DUMMYUNIONNAME1 = 0
- DUMMYUNIONNAME2 = 0
- DUMMYUNIONNAME3 = 0
- DUMMYUNIONNAME4 = 0
- DUMMYUNIONNAME5 = 0
- DUMMYUNIONNAME6 = 0
- DUMMYUNIONNAME7 = 0
- DUMMYUNIONNAME8 = 0
- DUMMYUNIONNAME9 = 0
- EOF = -1
- FILENAME_MAX = 260
- FOPEN_MAX = 20
- MINGW_DDK_H = 0
- MINGW_HAS_DDK_H = 1
- MINGW_HAS_SECURE_API = 1
- MINGW_SDK_INIT = 0
- SEEK_CUR = 1
- SEEK_END = 2
- SEEK_SET = 0
- STDERR_FILENO = 2
- STDIN_FILENO = 0
- STDOUT_FILENO = 1
- SYS_OPEN = 20
- TMP_MAX = 32767
- TMP_MAX_S = 32767
- UNALIGNED = 0
- USE___UUIDOF = 0
- WIN32 = 1
- WINNT = 1
- X_AGLOBAL = 0
- X_ANONYMOUS_STRUCT = 0
- X_ANONYMOUS_UNION = 0
- X_ARGMAX = 100
- X_CONST_RETURN = 0
- X_CRTNOALIAS = 0
- X_CRTRESTRICT = 0
- X_CRT_ALTERNATIVE_IMPORTED = 0
- X_CRT_DIRECTORY_DEFINED = 0
- X_CRT_INTERNAL_LOCAL_PRINTF_OPTIONS = 4
- X_CRT_INTERNAL_LOCAL_SCANF_OPTIONS = 2
- X_CRT_INTERNAL_PRINTF_LEGACY_MSVCRT_COMPATIBILITY = 0x0008
- X_CRT_INTERNAL_PRINTF_LEGACY_THREE_DIGIT_EXPONENTS = 0x0010
- X_CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION = 0x0001
- X_CRT_INTERNAL_PRINTF_LEGACY_WIDE_SPECIFIERS = 0x0004
- X_CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR = 0x0002
- X_CRT_INTERNAL_SCANF_LEGACY_MSVCRT_COMPATIBILITY = 0x0004
- X_CRT_INTERNAL_SCANF_LEGACY_WIDE_SPECIFIERS = 0x0002
- X_CRT_INTERNAL_SCANF_SECURECRT = 0x0001
- X_CRT_MANAGED_HEAP_DEPRECATE = 0
- X_CRT_PACKING = 8
- X_CRT_PERROR_DEFINED = 0
- X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES = 0
- X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY = 0
- X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
- X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
- X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
- X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0
- X_CRT_WPERROR_DEFINED = 0
- X_DLL = 0
- X_ERRCODE_DEFINED = 0
- X_FILE_DEFINED = 0
- X_FILE_OFFSET_BITS = 64
- X_FILE_OFFSET_BITS_SET_FSEEKO = 0
- X_FILE_OFFSET_BITS_SET_FTELLO = 0
- X_FILE_OFFSET_BITS_SET_OFFT = 0
- X_FPOS_T_DEFINED = 0
- X_ILP32 = 1
- X_INC_CORECRT = 0
- X_INC_CRTDEFS_MACRO = 0
- X_INC_MINGW_SECAPI = 0
- X_INC_STDIO = 0
- X_INC_STDIO_S = 0
- X_INC_SWPRINTF_INL = 0
- X_INC_VADEFS = 0
- X_INC__MINGW_H = 0
- X_INT128_DEFINED = 0
- X_INTEGRAL_MAX_BITS = 64
- X_INTPTR_T_DEFINED = 0
- X_IOB_ENTRIES = 20
- X_IOEOF = 0x0010
- X_IOERR = 0x0020
- X_IOFBF = 0x0000
- X_IOLBF = 0x0040
- X_IOMYBUF = 0x0008
- X_IONBF = 0x0004
- X_IOREAD = 0x0001
- X_IORW = 0x0080
- X_IOSTRG = 0x0040
- X_IOWRT = 0x0002
- X_MT = 0
- X_M_IX86 = 600
- X_NFILE = 512
- X_NSTREAM_ = 512
- X_OFF64_T_DEFINED = 0
- X_OFF_T_ = 0
- X_OFF_T_DEFINED = 0
- X_OLD_P_OVERLAY = 2
- X_PGLOBAL = 0
- X_PTRDIFF_T_ = 0
- X_PTRDIFF_T_DEFINED = 0
- X_P_DETACH = 4
- X_P_NOWAIT = 1
- X_P_NOWAITO = 3
- X_P_OVERLAY = 2
- X_P_WAIT = 0
- X_P_tmpdir = "\\"
- X_RSIZE_T_DEFINED = 0
- X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
- X_SIZE_T_DEFINED = 0
- X_SPAWNV_DEFINED = 0
- X_SSIZE_T_DEFINED = 0
- X_STDIO_CONFIG_DEFINED = 0
- X_STDIO_DEFINED = 0
- X_STDIO_S_DEFINED = 0
- X_STDSTREAM_DEFINED = 0
- X_SYS_OPEN = 20
- X_TAGLC_ID_DEFINED = 0
- X_THREADLOCALEINFO = 0
- X_TIME32_T_DEFINED = 0
- X_TIME64_T_DEFINED = 0
- X_TIME_T_DEFINED = 0
- X_TWO_DIGIT_EXPONENT = 0x1
- X_UINTPTR_T_DEFINED = 0
- X_USE_32BIT_TIME_T = 0
- X_VA_LIST_DEFINED = 0
- X_W64 = 0
- X_WAIT_CHILD = 0
- X_WAIT_GRANDCHILD = 1
- X_WCHAR_T_DEFINED = 0
- X_WCTYPE_T_DEFINED = 0
- X_WIN32 = 1
- X_WIN32_WINNT = 0x502
- X_WINT_T = 0
- X_WSPAWN_DEFINED = 0
- X_WSTDIO_DEFINED = 0
- X_WSTDIO_S_DEFINED = 0
- X_X86_ = 1
- I386 = 1
+ BUFSIZ = 512
+ DUMMYSTRUCTNAME = 0
+ DUMMYSTRUCTNAME1 = 0
+ DUMMYSTRUCTNAME2 = 0
+ DUMMYSTRUCTNAME3 = 0
+ DUMMYSTRUCTNAME4 = 0
+ DUMMYSTRUCTNAME5 = 0
+ DUMMYUNIONNAME = 0
+ DUMMYUNIONNAME1 = 0
+ DUMMYUNIONNAME2 = 0
+ DUMMYUNIONNAME3 = 0
+ DUMMYUNIONNAME4 = 0
+ DUMMYUNIONNAME5 = 0
+ DUMMYUNIONNAME6 = 0
+ DUMMYUNIONNAME7 = 0
+ DUMMYUNIONNAME8 = 0
+ DUMMYUNIONNAME9 = 0
+ EOF = -1
+ FILENAME_MAX = 260
+ FOPEN_MAX = 20
+ MINGW_DDK_H = 0
+ MINGW_DDRAW_VERSION = 7
+ MINGW_HAS_DDK_H = 1
+ MINGW_HAS_DDRAW_H = 1
+ MINGW_HAS_SECURE_API = 1
+ MINGW_SDK_INIT = 0
+ SEEK_CUR = 1
+ SEEK_END = 2
+ SEEK_SET = 0
+ STDERR_FILENO = 2
+ STDIN_FILENO = 0
+ STDOUT_FILENO = 1
+ SYS_OPEN = 20
+ TMP_MAX = 32767
+ UNALIGNED = 0
+ USE___UUIDOF = 0
+ WIN32 = 1
+ WINNT = 1
+ X_AGLOBAL = 0
+ X_ANONYMOUS_STRUCT = 0
+ X_ANONYMOUS_UNION = 0
+ X_ARGMAX = 100
+ X_CONST_RETURN = 0
+ X_CRTNOALIAS = 0
+ X_CRTRESTRICT = 0
+ X_CRT_ALTERNATIVE_IMPORTED = 0
+ X_CRT_DIRECTORY_DEFINED = 0
+ X_CRT_MANAGED_HEAP_DEPRECATE = 0
+ X_CRT_PACKING = 8
+ X_CRT_PERROR_DEFINED = 0
+ X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES = 0
+ X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY = 0
+ X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
+ X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
+ X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
+ X_CRT_WPERROR_DEFINED = 0
+ X_DLL = 0
+ X_ERRCODE_DEFINED = 0
+ X_FILE_DEFINED = 0
+ X_FILE_OFFSET_BITS = 64
+ X_FILE_OFFSET_BITS_SET_FSEEKO = 0
+ X_FILE_OFFSET_BITS_SET_FTELLO = 0
+ X_FILE_OFFSET_BITS_SET_OFFT = 0
+ X_FPOS_T_DEFINED = 0
+ X_INC_CRTDEFS = 0
+ X_INC_CRTDEFS_MACRO = 0
+ X_INC_MINGW_SECAPI = 0
+ X_INC_STDIO = 0
+ X_INC_STDIO_S = 0
+ X_INC_SWPRINTF_INL = 0
+ X_INC_VADEFS = 0
+ X_INC__MINGW_H = 0
+ X_INT128_DEFINED = 0
+ X_INTEGRAL_MAX_BITS = 64
+ X_INTPTR_T_DEFINED = 0
+ X_IOB_ENTRIES = 20
+ X_IOEOF = 0x0010
+ X_IOERR = 0x0020
+ X_IOFBF = 0x0000
+ X_IOLBF = 0x0040
+ X_IOMYBUF = 0x0008
+ X_IONBF = 0x0004
+ X_IOREAD = 0x0001
+ X_IORW = 0x0080
+ X_IOSTRG = 0x0040
+ X_IOWRT = 0x0002
+ X_MT = 0
+ X_M_IX86 = 600
+ X_NFILE = 512
+ X_NSTREAM_ = 512
+ X_OFF64_T_DEFINED = 0
+ X_OFF_T_ = 0
+ X_OFF_T_DEFINED = 0
+ X_OLD_P_OVERLAY = 2
+ X_PGLOBAL = 0
+ X_PTRDIFF_T_ = 0
+ X_PTRDIFF_T_DEFINED = 0
+ X_P_DETACH = 4
+ X_P_NOWAIT = 1
+ X_P_NOWAITO = 3
+ X_P_OVERLAY = 2
+ X_P_WAIT = 0
+ X_P_tmpdir = "\\"
+ X_REENTRANT = 1
+ X_RSIZE_T_DEFINED = 0
+ X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
+ X_SIZE_T_DEFINED = 0
+ X_SPAWNV_DEFINED = 0
+ X_SSIZE_T_DEFINED = 0
+ X_STDIO_DEFINED = 0
+ X_STDIO_S_DEFINED = 0
+ X_STDSTREAM_DEFINED = 0
+ X_SYS_OPEN = 20
+ X_TAGLC_ID_DEFINED = 0
+ X_THREADLOCALEINFO = 0
+ X_TIME32_T_DEFINED = 0
+ X_TIME64_T_DEFINED = 0
+ X_TIME_T_DEFINED = 0
+ X_TWO_DIGIT_EXPONENT = 0x1
+ X_UINTPTR_T_DEFINED = 0
+ X_USE_32BIT_TIME_T = 0
+ X_VA_LIST_DEFINED = 0
+ X_W64 = 0
+ X_WAIT_CHILD = 0
+ X_WAIT_GRANDCHILD = 1
+ X_WCHAR_T_DEFINED = 0
+ X_WCTYPE_T_DEFINED = 0
+ X_WIN32 = 1
+ X_WIN32_WINNT = 0x502
+ X_WINT_T = 0
+ X_WSPAWN_DEFINED = 0
+ X_WSTDIO_DEFINED = 0
+ X_WSTDIO_S_DEFINED = 0
+ X_X86_ = 1
+ I386 = 1
)
type Ptrdiff_t = int32 /* <builtin>:3:26 */
@@ -181,11 +170,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// *
// This file has no copyright assigned and is placed in the Public Domain.
-// This file is part of the Wine project.
-// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-
-// *
-// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
@@ -219,12 +203,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// MinGW-w64 has some additional C99 printf/scanf feature support.
// So we add some helper macros to ease recognition of them.
-// If _FORTIFY_SOURCE is enabled, some inline functions may use
-// __builtin_va_arg_pack(). GCC may report an error if the address
-// of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
-
-// Enable workaround for ABI incompatibility on affected platforms
-
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
@@ -265,28 +243,26 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// for backward compatibility
-
type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
-type Ssize_t = int32 /* corecrt.h:52:13 */
+type Ssize_t = int32 /* crtdefs.h:47:13 */
-type Rsize_t = Size_t /* corecrt.h:57:16 */
+type Rsize_t = Size_t /* crtdefs.h:52:16 */
-type Intptr_t = int32 /* corecrt.h:69:13 */
+type Intptr_t = int32 /* crtdefs.h:64:13 */
-type Uintptr_t = uint32 /* corecrt.h:82:22 */
+type Uintptr_t = uint32 /* crtdefs.h:77:22 */
-type Wint_t = uint16 /* corecrt.h:111:24 */
-type Wctype_t = uint16 /* corecrt.h:112:24 */
+type Wint_t = uint16 /* crtdefs.h:106:24 */
+type Wctype_t = uint16 /* crtdefs.h:107:24 */
-type Errno_t = int32 /* corecrt.h:118:13 */
+type Errno_t = int32 /* crtdefs.h:113:13 */
-type X__time32_t = int32 /* corecrt.h:123:14 */
+type X__time32_t = int32 /* crtdefs.h:118:14 */
-type X__time64_t = int64 /* corecrt.h:128:35 */
+type X__time64_t = int64 /* crtdefs.h:123:35 */
-type Time_t = X__time32_t /* corecrt.h:141:20 */
+type Time_t = X__time32_t /* crtdefs.h:136:20 */
type Threadlocaleinfostruct = struct {
Frefcount int32
@@ -312,29 +288,36 @@ type Threadlocaleinfostruct = struct {
Fpclmap uintptr
Fpcumap uintptr
Flc_time_curr uintptr
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type Pthreadlocinfo = uintptr /* corecrt.h:437:39 */
-type Pthreadmbcinfo = uintptr /* corecrt.h:438:36 */
+type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
+type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
type Localeinfo_struct = struct {
Flocinfo Pthreadlocinfo
Fmbcinfo Pthreadmbcinfo
-} /* corecrt.h:441:9 */
+} /* crtdefs.h:428:9 */
-type X_locale_tstruct = Localeinfo_struct /* corecrt.h:444:3 */
-type X_locale_t = uintptr /* corecrt.h:444:19 */
+type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
+type X_locale_t = uintptr /* crtdefs.h:431:19 */
type TagLC_ID = struct {
FwLanguage uint16
FwCountry uint16
FwCodePage uint16
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type LC_ID = TagLC_ID /* corecrt.h:452:3 */
-type LPLC_ID = uintptr /* corecrt.h:452:9 */
+type LC_ID = TagLC_ID /* crtdefs.h:439:3 */
+type LPLC_ID = uintptr /* crtdefs.h:439:9 */
-type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
+type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
+
+// *
+// This file has no copyright assigned and is placed in the Public Domain.
+// This file is part of the mingw-w64 runtime package.
+// No warranty is given; refer to the file DISCLAIMER.PD within this package.
+
+// Undefine __mingw_<printf> macros.
type X_iobuf = struct {
F_ptr uintptr
@@ -345,9 +328,9 @@ type X_iobuf = struct {
F_charbuf int32
F_bufsiz int32
F_tmpfname uintptr
-} /* stdio.h:24:3 */
+} /* stdio.h:26:3 */
-type FILE = X_iobuf /* stdio.h:34:25 */
+type FILE = X_iobuf /* stdio.h:36:25 */
type X_off_t = int32 /* _mingw_off_t.h:5:16 */
type Off32_t = int32 /* _mingw_off_t.h:7:16 */
@@ -357,6 +340,13 @@ type Off64_t = int64 /* _mingw_off_t.h:15:39 */
type Off_t = Off64_t /* _mingw_off_t.h:24:17 */ // A pointer to an array of FILE
-type Fpos_t = int64 /* stdio.h:102:37 */
+type Fpos_t = int64 /* stdio.h:104:37 */
+
+// *
+// This file has no copyright assigned and is placed in the Public Domain.
+// This file is part of the mingw-w64 runtime package.
+// No warranty is given; refer to the file DISCLAIMER.PD within this package.
+
+// Define __mingw_<printf> macros.
var _ int8 /* gen.c:2:13: */
diff --git a/vendor/modernc.org/libc/stdlib/capi_darwin_arm64.go b/vendor/modernc.org/libc/stdlib/capi_darwin_arm64.go
index 7c81426a..0371aa19 100644
--- a/vendor/modernc.org/libc/stdlib/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/stdlib/capi_darwin_arm64.go
@@ -2,4 +2,6 @@
package stdlib
-var CAPI = map[string]struct{}{}
+var CAPI = map[string]struct{}{
+ "__darwin_check_fd_set_overflow": {},
+}
diff --git a/vendor/modernc.org/libc/stdlib/capi_windows_386.go b/vendor/modernc.org/libc/stdlib/capi_windows_386.go
index 9bf9ad78..c65f2705 100644
--- a/vendor/modernc.org/libc/stdlib/capi_windows_386.go
+++ b/vendor/modernc.org/libc/stdlib/capi_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo stdlib/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 stdlib/stdlib_windows_386.go -pkgname stdlib', DO NOT EDIT.
+// Code generated by 'ccgo stdlib\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 stdlib\stdlib_windows_386.go -pkgname stdlib', DO NOT EDIT.
package stdlib
diff --git a/vendor/modernc.org/libc/stdlib/stdlib_darwin_amd64.go b/vendor/modernc.org/libc/stdlib/stdlib_darwin_amd64.go
index 77e347b6..4767f05a 100644
--- a/vendor/modernc.org/libc/stdlib/stdlib_darwin_amd64.go
+++ b/vendor/modernc.org/libc/stdlib/stdlib_darwin_amd64.go
@@ -270,7 +270,6 @@ const (
X_DEV_T = 0
X_FILE_OFFSET_BITS = 64
X_FORTIFY_SOURCE = 2
- X_GCC_WRAP_STDINT_H = 0
X_I386_SIGNAL_H_ = 1
X_I386__ENDIAN_H_ = 0
X_ID_T = 0
@@ -278,7 +277,6 @@ const (
X_INT32_T = 0
X_INT64_T = 0
X_INT8_T = 0
- X_INTMAX_T = 0
X_INTPTR_T = 0
X_LP64 = 1
X_MACHTYPES_H_ = 0
@@ -300,7 +298,6 @@ const (
X_RUNE_T = 0
X_SIGSET_T = 0
X_SIZE_T = 0
- X_STDINT_H_ = 0
X_STDLIB_H_ = 0
X_SYS_RESOURCE_H_ = 0
X_SYS_SIGNAL_H_ = 0
@@ -309,11 +306,7 @@ const (
X_SYS__PTHREAD_TYPES_H_ = 0
X_SYS__TYPES_H_ = 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_U_INT16_T = 0
X_U_INT32_T = 0
@@ -682,15 +675,6 @@ var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
// __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@
@@ -846,6 +830,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.
@@ -5299,592 +5290,87 @@ type Sigstack = struct {
F__ccgo_pad1 [4]byte
} /* signal.h:367:1 */
-// Copyright (c) 2000-2018 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) 1995 NeXT Computer, Inc. All Rights Reserved
-// Copyright (c) 1982, 1986, 1993
-// The Regents of the University of California. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. All advertising materials mentioning features or use of this software
-// must display the following acknowledgement:
-// This product includes software developed by the University of
-// California, Berkeley and its contributors.
-// 4. Neither the name of the University nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-// SUCH DAMAGE.
-//
-// @(#)resource.h 8.2 (Berkeley) 1/4/94
-
-// Copyright (c) 2002 Apple Computer, 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) 2000-2018 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 1995 NeXT Computer, Inc. All rights reserved.
-// Copyright (c) 1991, 1993
-// The Regents of the University of California. All rights reserved.
-//
-// This code is derived from software contributed to Berkeley by
-// Berkeley Software Design, Inc.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. All advertising materials mentioning features or use of this software
-// must display the following acknowledgement:
-// This product includes software developed by the University of
-// California, Berkeley and its contributors.
-// 4. Neither the name of the University nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-// SUCH DAMAGE.
-//
-// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
-
-// 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@
-
-// 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@
+type Uint64_t = uint64 /* stdint.h:98:25 */
-// 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 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 Uint32_t = uint32 /* stdint.h:172:25 */
-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 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 */
-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_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 */
-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
+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@
-
-type Uintmax_t = uint64 /* _uintmax_t.h:32:26 */
+// 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]).
-// 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) 2007-2016 by Apple Inc.. All rights reserved.
//
diff --git a/vendor/modernc.org/libc/stdlib/stdlib_darwin_arm64.go b/vendor/modernc.org/libc/stdlib/stdlib_darwin_arm64.go
index 67a37e9e..83e44d4e 100644
--- a/vendor/modernc.org/libc/stdlib/stdlib_darwin_arm64.go
+++ b/vendor/modernc.org/libc/stdlib/stdlib_darwin_arm64.go
@@ -320,13 +320,11 @@ const (
X_DEV_T = 0
X_FILE_OFFSET_BITS = 64
X_FORTIFY_SOURCE = 2
- X_GCC_WRAP_STDINT_H = 0
X_ID_T = 0
X_INT16_T = 0
X_INT32_T = 0
X_INT64_T = 0
X_INT8_T = 0
- X_INTMAX_T = 0
X_INTPTR_T = 0
X_LP64 = 1
X_MACHTYPES_H_ = 0
@@ -348,7 +346,6 @@ const (
X_RUNE_T = 0
X_SIGSET_T = 0
X_SIZE_T = 0
- X_STDINT_H_ = 0
X_STDLIB_H_ = 0
X_SYS_RESOURCE_H_ = 0
X_SYS_SIGNAL_H_ = 0
@@ -357,11 +354,7 @@ const (
X_SYS__PTHREAD_TYPES_H_ = 0
X_SYS__TYPES_H_ = 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_U_INT16_T = 0
X_U_INT32_T = 0
@@ -547,6 +540,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, 2002 - 2008 Apple Inc. All rights reserved.
//
// @APPLE_LICENSE_HEADER_START@
@@ -751,15 +746,6 @@ type X__float128 = float64 /* <builtin>:47:21 */
// 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@
@@ -915,6 +901,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).
//
@@ -3637,592 +3630,87 @@ type Sigstack = struct {
F__ccgo_pad1 [4]byte
} /* signal.h:367:1 */
-// Copyright (c) 2000-2018 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) 1995 NeXT Computer, Inc. All Rights Reserved
-// Copyright (c) 1982, 1986, 1993
-// The Regents of the University of California. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. All advertising materials mentioning features or use of this software
-// must display the following acknowledgement:
-// This product includes software developed by the University of
-// California, Berkeley and its contributors.
-// 4. Neither the name of the University nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-// SUCH DAMAGE.
-//
-// @(#)resource.h 8.2 (Berkeley) 1/4/94
+type Uint64_t = uint64 /* stdint.h:98:25 */
-// Copyright (c) 2002 Apple Computer, 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 */
-// Copyright (c) 2000-2018 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 1995 NeXT Computer, Inc. All rights reserved.
-// Copyright (c) 1991, 1993
-// The Regents of the University of California. All rights reserved.
-//
-// This code is derived from software contributed to Berkeley by
-// Berkeley Software Design, Inc.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. All advertising materials mentioning features or use of this software
-// must display the following acknowledgement:
-// This product includes software developed by the University of
-// California, Berkeley and its contributors.
-// 4. Neither the name of the University nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-// SUCH DAMAGE.
-//
-// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
+type Uint32_t = uint32 /* stdint.h:172: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@
+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 */
-// 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_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) 2000-2010 Apple Inc.
-// All rights reserved.
+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 */
-// from ISO/IEC 988:1999 spec
+// prevent glibc sys/types.h from defining conflicting types
-// 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 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@
+// C99 7.18.1.4 Integer types capable of holding object pointers.
-// 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.5 Greatest-width integer types.
+type Intmax_t = int64 /* stdint.h:262:26 */
+type Uintmax_t = uint64 /* stdint.h:263:26 */
-// 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.
+// C99 7.18.4 Macros for minimum-width integer constants.
//
-// Please obtain a copy of the License at
-// http://www.opensource.apple.com/apsl/ and read it before using this file.
+// 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.
//
-// 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.
+// 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.
//
-// @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 Intmax_t = int64 /* _intmax_t.h:32:25 */
-// 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.
+// 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.
//
-// 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 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.
-//
-// 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) 2007-2016 by Apple Inc.. All rights reserved.
//
diff --git a/vendor/modernc.org/libc/stdlib/stdlib_windows_386.go b/vendor/modernc.org/libc/stdlib/stdlib_windows_386.go
index 731c6661..d6e0c8ad 100644
--- a/vendor/modernc.org/libc/stdlib/stdlib_windows_386.go
+++ b/vendor/modernc.org/libc/stdlib/stdlib_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo stdlib/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 stdlib/stdlib_windows_386.go -pkgname stdlib', DO NOT EDIT.
+// Code generated by 'ccgo stdlib\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 stdlib\stdlib_windows_386.go -pkgname stdlib', DO NOT EDIT.
package stdlib
@@ -46,7 +46,9 @@ const (
LONG_MIN = -2147483648
MB_LEN_MAX = 5
MINGW_DDK_H = 0
+ MINGW_DDRAW_VERSION = 7
MINGW_HAS_DDK_H = 1
+ MINGW_HAS_DDRAW_H = 1
MINGW_HAS_SECURE_API = 1
MINGW_SDK_INIT = 0
PATH_MAX = 260
@@ -97,7 +99,6 @@ const (
X_CRT_SWAB_DEFINED = 0
X_CRT_SYSTEM_DEFINED = 0
X_CRT_TERMINATE_DEFINED = 0
- X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0
X_CRT_WPERROR_DEFINED = 0
X_CRT_WSYSTEM_DEFINED = 0
X_CVTBUFSIZE = 349
@@ -124,9 +125,6 @@ const (
X_I64_MIN = -9223372036854775808
X_I8_MAX = 127
X_I8_MIN = -128
- X_ILP32 = 1
- X_INC_CORECRT = 0
- X_INC_CORECRT_WSTDLIB = 0
X_INC_CRTDEFS = 0
X_INC_CRTDEFS_MACRO = 0
X_INC_LIMITS = 0
@@ -158,6 +156,7 @@ const (
X_PTRDIFF_T_ = 0
X_PTRDIFF_T_DEFINED = 0
X_QSORT_S_DEFINED = 0
+ X_REENTRANT = 1
X_REPORT_ERRMODE = 3
X_RSIZE_T_DEFINED = 0
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
@@ -184,7 +183,9 @@ const (
X_WINT_T = 0
X_WRITE_ABORT_MSG = 0x1
X_WSTDLIBP_DEFINED = 0
+ X_WSTDLIBP_S_DEFINED = 0
X_WSTDLIB_DEFINED = 0
+ X_WSTDLIB_S_DEFINED = 0
X_X86_ = 1
I386 = 1
)
@@ -240,12 +241,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// MinGW-w64 has some additional C99 printf/scanf feature support.
// So we add some helper macros to ease recognition of them.
-// If _FORTIFY_SOURCE is enabled, some inline functions may use
-// __builtin_va_arg_pack(). GCC may report an error if the address
-// of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
-
-// Enable workaround for ABI incompatibility on affected platforms
-
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
@@ -286,28 +281,26 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// for backward compatibility
-
type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
-type Ssize_t = int32 /* corecrt.h:52:13 */
+type Ssize_t = int32 /* crtdefs.h:47:13 */
-type Rsize_t = Size_t /* corecrt.h:57:16 */
+type Rsize_t = Size_t /* crtdefs.h:52:16 */
-type Intptr_t = int32 /* corecrt.h:69:13 */
+type Intptr_t = int32 /* crtdefs.h:64:13 */
-type Uintptr_t = uint32 /* corecrt.h:82:22 */
+type Uintptr_t = uint32 /* crtdefs.h:77:22 */
-type Wint_t = uint16 /* corecrt.h:111:24 */
-type Wctype_t = uint16 /* corecrt.h:112:24 */
+type Wint_t = uint16 /* crtdefs.h:106:24 */
+type Wctype_t = uint16 /* crtdefs.h:107:24 */
-type Errno_t = int32 /* corecrt.h:118:13 */
+type Errno_t = int32 /* crtdefs.h:113:13 */
-type X__time32_t = int32 /* corecrt.h:123:14 */
+type X__time32_t = int32 /* crtdefs.h:118:14 */
-type X__time64_t = int64 /* corecrt.h:128:35 */
+type X__time64_t = int64 /* crtdefs.h:123:35 */
-type Time_t = X__time32_t /* corecrt.h:141:20 */
+type Time_t = X__time32_t /* crtdefs.h:136:20 */
type Threadlocaleinfostruct = struct {
Frefcount int32
@@ -333,31 +326,31 @@ type Threadlocaleinfostruct = struct {
Fpclmap uintptr
Fpcumap uintptr
Flc_time_curr uintptr
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type Pthreadlocinfo = uintptr /* corecrt.h:437:39 */
-type Pthreadmbcinfo = uintptr /* corecrt.h:438:36 */
+type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
+type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
type Localeinfo_struct = struct {
Flocinfo Pthreadlocinfo
Fmbcinfo Pthreadmbcinfo
-} /* corecrt.h:441:9 */
+} /* crtdefs.h:428:9 */
-type X_locale_tstruct = Localeinfo_struct /* corecrt.h:444:3 */
-type X_locale_t = uintptr /* corecrt.h:444:19 */
+type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
+type X_locale_t = uintptr /* crtdefs.h:431:19 */
type TagLC_ID = struct {
FwLanguage uint16
FwCountry uint16
FwCodePage uint16
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type LC_ID = TagLC_ID /* corecrt.h:452:3 */
-type LPLC_ID = uintptr /* corecrt.h:452:9 */
+type LC_ID = TagLC_ID /* crtdefs.h:439:3 */
+type LPLC_ID = uintptr /* crtdefs.h:439:9 */
-type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
+type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
-// Copyright (C) 1992-2020 Free Software Foundation, Inc.
+// Copyright (C) 1992-2018 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
@@ -401,11 +394,6 @@ type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// *
-// This file has no copyright assigned and is placed in the Public Domain.
-// This file is part of the mingw-w64 runtime package.
-// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-
// File system limits
//
// NOTE: Apparently the actual size of PATH_MAX is 260, but a space is
@@ -414,7 +402,7 @@ type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
// are semantically identical, with a limit of 259 characters for the
// path name, plus one for a terminating NUL, for a total of 260.
-// Copyright (C) 1991-2020 Free Software Foundation, Inc.
+// Copyright (C) 1991-2018 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
@@ -471,40 +459,40 @@ type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
// This administrivia gets added to the end of limits.h
// if the system has its own version of limits.h.
-type X_onexit_t = uintptr /* stdlib.h:50:15 */
+type X_onexit_t = uintptr /* stdlib.h:49:15 */
type X_div_t = struct {
Fquot int32
Frem int32
-} /* stdlib.h:60:11 */
+} /* stdlib.h:59:11 */
-type Div_t = X_div_t /* stdlib.h:63:5 */
+type Div_t = X_div_t /* stdlib.h:62:5 */
type X_ldiv_t = struct {
Fquot int32
Frem int32
-} /* stdlib.h:65:11 */
+} /* stdlib.h:64:11 */
-type Ldiv_t = X_ldiv_t /* stdlib.h:68:5 */
+type Ldiv_t = X_ldiv_t /* stdlib.h:67:5 */
-type X_LDOUBLE = struct{ Fld [10]uint8 } /* stdlib.h:77:5 */
+type X_LDOUBLE = struct{ Fld [10]uint8 } /* stdlib.h:76:5 */
-type X_CRT_DOUBLE = struct{ Fx float64 } /* stdlib.h:84:5 */
+type X_CRT_DOUBLE = struct{ Fx float64 } /* stdlib.h:83:5 */
-type X_CRT_FLOAT = struct{ Ff float32 } /* stdlib.h:88:5 */
+type X_CRT_FLOAT = struct{ Ff float32 } /* stdlib.h:87:5 */
-type X_LONGDOUBLE = struct{ Fx float64 } /* stdlib.h:95:5 */
+type X_LONGDOUBLE = struct{ Fx float64 } /* stdlib.h:94:5 */
-type X_LDBL12 = struct{ Fld12 [12]uint8 } /* stdlib.h:102:5 */
+type X_LDBL12 = struct{ Fld12 [12]uint8 } /* stdlib.h:101:5 */
-type X_purecall_handler = uintptr /* stdlib.h:143:16 */
+type X_purecall_handler = uintptr /* stdlib.h:142:16 */
-type X_invalid_parameter_handler = uintptr /* stdlib.h:148:16 */
+type X_invalid_parameter_handler = uintptr /* stdlib.h:147:16 */
type Lldiv_t = struct {
Fquot int64
Frem int64
-} /* stdlib.h:727:61 */
+} /* stdlib.h:699:61 */
// *
// This file has no copyright assigned and is placed in the Public Domain.
diff --git a/vendor/modernc.org/libc/sys/socket/capi_darwin_amd64.go b/vendor/modernc.org/libc/sys/socket/capi_darwin_amd64.go
index a2822d19..30149394 100644
--- a/vendor/modernc.org/libc/sys/socket/capi_darwin_amd64.go
+++ b/vendor/modernc.org/libc/sys/socket/capi_darwin_amd64.go
@@ -3,5 +3,9 @@
package socket
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/sys/socket/capi_darwin_arm64.go b/vendor/modernc.org/libc/sys/socket/capi_darwin_arm64.go
index ba45cfeb..6c11868b 100644
--- a/vendor/modernc.org/libc/sys/socket/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/sys/socket/capi_darwin_arm64.go
@@ -2,4 +2,10 @@
package socket
-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/sys/socket/socket_darwin_amd64.go b/vendor/modernc.org/libc/sys/socket/socket_darwin_amd64.go
index e5ea90e2..a17bddfa 100644
--- a/vendor/modernc.org/libc/sys/socket/socket_darwin_amd64.go
+++ b/vendor/modernc.org/libc/sys/socket/socket_darwin_amd64.go
@@ -583,6 +583,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.
@@ -3150,15 +3157,6 @@ type Errno_t = int32 /* _errno_t.h:30:32 */
// __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@
@@ -3429,15 +3427,6 @@ type Fd_set1 = struct{ Ffds_bits [32]X__int32_t } /* _fd_def.h:50:9 */
// __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/sys/socket/socket_darwin_arm64.go b/vendor/modernc.org/libc/sys/socket/socket_darwin_arm64.go
index 4a743258..4468f19b 100644
--- a/vendor/modernc.org/libc/sys/socket/socket_darwin_arm64.go
+++ b/vendor/modernc.org/libc/sys/socket/socket_darwin_arm64.go
@@ -360,7 +360,6 @@ const (
X_FILE_OFFSET_BITS = 64
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
@@ -369,7 +368,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
@@ -404,7 +402,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
@@ -414,11 +411,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
@@ -454,6 +446,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-2019 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
@@ -683,6 +677,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).
//
@@ -1758,727 +1759,39 @@ type X__darwin_pthread_once_t = X_opaque_pthread_once_t /* _pthread_
type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t /* _pthread_types.h:116:41 */
type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
type X__darwin_pthread_t = uintptr /* _pthread_types.h:118:34 */
+type Uint64_t = uint64 /* stdint.h:98:25 */
-// Copyright (c) 2000-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 1995 NeXT Computer, Inc. All rights reserved.
+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-2007 Apple Inc. All rights reserved.
-// Copyright 1995 NeXT Computer, Inc. All rights reserved.
-// Copyright (c) 1987, 1991, 1993
-// The Regents of the University of California. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. All advertising materials mentioning features or use of this software
-// must display the following acknowledgement:
-// This product includes software developed by the University of
-// California, Berkeley and its contributors.
-// 4. Neither the name of the University nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-// SUCH DAMAGE.
-//
-// @(#)endian.h 8.1 (Berkeley) 6/11/93
+type Uint32_t = uint32 /* stdint.h:172:25 */
-// Copyright (c) 2000-2018 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 1995 NeXT Computer, Inc. All rights reserved.
-// Copyright (c) 1991, 1993
-// The Regents of the University of California. All rights reserved.
-//
-// This code is derived from software contributed to Berkeley by
-// Berkeley Software Design, Inc.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. All advertising materials mentioning features or use of this software
-// must display the following acknowledgement:
-// This product includes software developed by the University of
-// California, Berkeley and its contributors.
-// 4. Neither the name of the University nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-// SUCH DAMAGE.
-//
-// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
+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 */
-// Define _NOQUAD if the compiler does NOT support 64-bit integers.
-// #define _NOQUAD
+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 */
-// Define the order of 32-bit words in 64-bit words.
+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 */
-// Definitions for byte order, according to byte significance from low
-// address to high.
+// prevent glibc sys/types.h from defining conflicting types
-// Copyright (c) 2004, 2006 Apple Computer, 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.
-// Copyright (c) 1995 NeXT Computer, Inc. All rights reserved.
-// Copyright (c) 2000-2002 Apple Computer, 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) 1987, 1991, 1993
-// The Regents of the University of California. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. All advertising materials mentioning features or use of this software
-// must display the following acknowledgement:
-// This product includes software developed by the University of
-// California, Berkeley and its contributors.
-// 4. Neither the name of the University nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-// SUCH DAMAGE.
-
-// Copyright (c) 2000-2018 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 1995 NeXT Computer, Inc. All rights reserved.
-// Copyright (c) 1991, 1993
-// The Regents of the University of California. All rights reserved.
-//
-// This code is derived from software contributed to Berkeley by
-// Berkeley Software Design, Inc.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. All advertising materials mentioning features or use of this software
-// must display the following acknowledgement:
-// This product includes software developed by the University of
-// California, Berkeley and its contributors.
-// 4. Neither the name of the University nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-// SUCH DAMAGE.
-//
-// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
-
-// Macros for network/external number representation conversion.
-
-// Copyright (c) 2006 Apple Computer, 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@
-
-// This header is normally included from <libkern/OSByteOrder.h>. However,
-// <sys/_endian.h> also includes this in the case of little-endian
-// architectures, so that we can map OSByteOrder routines to the hton* and ntoh*
-// macros. This results in the asymmetry below; we only include
-// <libkern/arch/_OSByteOrder.h> for little-endian architectures.
-
-// 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@
-
-// Macros for swapping constant values in the preprocessing stage.
-
-// Copyright (c) 1999-2007 Apple Inc. All rights reserved.
-
-// 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.
-
-// 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 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@
-
-// 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@
-
-type Intmax_t = int64 /* _intmax_t.h:32:25 */
-// 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 Uintmax_t = uint64 /* _uintmax_t.h:32:26 */
+// 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 */
// Functions for byte reversed loads.
@@ -3941,15 +3254,6 @@ type Errno_t = int32 /* _errno_t.h:30:32 */
// 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@
@@ -4243,15 +3547,6 @@ type Fd_set1 = struct{ Ffds_bits [32]X__int32_t } /* _fd_def.h:50:9 */
// 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@
diff --git a/vendor/modernc.org/libc/sys/stat/capi_darwin_arm64.go b/vendor/modernc.org/libc/sys/stat/capi_darwin_arm64.go
index 827c5c42..1835b3b1 100644
--- a/vendor/modernc.org/libc/sys/stat/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/sys/stat/capi_darwin_arm64.go
@@ -2,4 +2,6 @@
package stat
-var CAPI = map[string]struct{}{}
+var CAPI = map[string]struct{}{
+ "__darwin_check_fd_set_overflow": {},
+}
diff --git a/vendor/modernc.org/libc/sys/stat/capi_windows_386.go b/vendor/modernc.org/libc/sys/stat/capi_windows_386.go
index ec7e8697..5656b390 100644
--- a/vendor/modernc.org/libc/sys/stat/capi_windows_386.go
+++ b/vendor/modernc.org/libc/sys/stat/capi_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo sys/stat/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 sys/stat/stat_windows_386.go -pkgname stat', DO NOT EDIT.
+// Code generated by 'ccgo sys\stat\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 sys\stat\stat_windows_386.go -pkgname stat', DO NOT EDIT.
package stat
diff --git a/vendor/modernc.org/libc/sys/stat/stat_darwin_amd64.go b/vendor/modernc.org/libc/sys/stat/stat_darwin_amd64.go
index e1ed6a77..45c2ed9a 100644
--- a/vendor/modernc.org/libc/sys/stat/stat_darwin_amd64.go
+++ b/vendor/modernc.org/libc/sys/stat/stat_darwin_amd64.go
@@ -298,6 +298,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.
@@ -1055,15 +1062,6 @@ type X__darwin_pthread_t = uintptr /* _pthread_
// __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/sys/stat/stat_darwin_arm64.go b/vendor/modernc.org/libc/sys/stat/stat_darwin_arm64.go
index dc6c3958..ff41ae3e 100644
--- a/vendor/modernc.org/libc/sys/stat/stat_darwin_arm64.go
+++ b/vendor/modernc.org/libc/sys/stat/stat_darwin_arm64.go
@@ -169,6 +169,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-2014 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
@@ -334,6 +336,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).
//
@@ -1100,15 +1109,6 @@ type X__darwin_pthread_t = uintptr /* _pthread_
// 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@
diff --git a/vendor/modernc.org/libc/sys/stat/stat_windows_386.go b/vendor/modernc.org/libc/sys/stat/stat_windows_386.go
index 46b091f7..c62921b4 100644
--- a/vendor/modernc.org/libc/sys/stat/stat_windows_386.go
+++ b/vendor/modernc.org/libc/sys/stat/stat_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo sys/stat/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 sys/stat/stat_windows_386.go -pkgname stat', DO NOT EDIT.
+// Code generated by 'ccgo sys\stat\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 sys\stat\stat_windows_386.go -pkgname stat', DO NOT EDIT.
package stat
@@ -33,7 +33,9 @@ const (
DUMMYUNIONNAME9 = 0
F_OK = 0
MINGW_DDK_H = 0
+ MINGW_DDRAW_VERSION = 7
MINGW_HAS_DDK_H = 1
+ MINGW_HAS_DDRAW_H = 1
MINGW_HAS_SECURE_API = 1
MINGW_SDK_INIT = 0
R_OK = 4
@@ -87,7 +89,6 @@ const (
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
- X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0
X_DEV_T_DEFINED = 0
X_DLL = 0
X_ERRCODE_DEFINED = 0
@@ -96,8 +97,6 @@ const (
X_FILE_OFFSET_BITS_SET_OFFT = 0
X_FINDDATA_T_DEFINED = 0
X_FSIZE_T_DEFINED = 0
- X_ILP32 = 1
- X_INC_CORECRT = 0
X_INC_CRTDEFS = 0
X_INC_CRTDEFS_MACRO = 0
X_INC_MINGW_SECAPI = 0
@@ -124,6 +123,7 @@ const (
X_PID_T_ = 0
X_PTRDIFF_T_ = 0
X_PTRDIFF_T_DEFINED = 0
+ X_REENTRANT = 1
X_RSIZE_T_DEFINED = 0
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
X_SIGSET_T_ = 0
@@ -199,11 +199,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// *
-// This file has no copyright assigned and is placed in the Public Domain.
-// This file is part of the mingw-w64 runtime package.
-// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-
// This macro holds an monotonic increasing value, which indicates
// a specific fix/patch is present on trunk. This value isn't related to
// minor/major version-macros. It is increased on demand, if a big
@@ -224,12 +219,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// MinGW-w64 has some additional C99 printf/scanf feature support.
// So we add some helper macros to ease recognition of them.
-// If _FORTIFY_SOURCE is enabled, some inline functions may use
-// __builtin_va_arg_pack(). GCC may report an error if the address
-// of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
-
-// Enable workaround for ABI incompatibility on affected platforms
-
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
@@ -270,28 +259,26 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// for backward compatibility
-
type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
-type Ssize_t = int32 /* corecrt.h:52:13 */
+type Ssize_t = int32 /* crtdefs.h:47:13 */
-type Rsize_t = Size_t /* corecrt.h:57:16 */
+type Rsize_t = Size_t /* crtdefs.h:52:16 */
-type Intptr_t = int32 /* corecrt.h:69:13 */
+type Intptr_t = int32 /* crtdefs.h:64:13 */
-type Uintptr_t = uint32 /* corecrt.h:82:22 */
+type Uintptr_t = uint32 /* crtdefs.h:77:22 */
-type Wint_t = uint16 /* corecrt.h:111:24 */
-type Wctype_t = uint16 /* corecrt.h:112:24 */
+type Wint_t = uint16 /* crtdefs.h:106:24 */
+type Wctype_t = uint16 /* crtdefs.h:107:24 */
-type Errno_t = int32 /* corecrt.h:118:13 */
+type Errno_t = int32 /* crtdefs.h:113:13 */
-type X__time32_t = int32 /* corecrt.h:123:14 */
+type X__time32_t = int32 /* crtdefs.h:118:14 */
-type X__time64_t = int64 /* corecrt.h:128:35 */
+type X__time64_t = int64 /* crtdefs.h:123:35 */
-type Time_t = X__time32_t /* corecrt.h:141:20 */
+type Time_t = X__time32_t /* crtdefs.h:136:20 */
type Threadlocaleinfostruct = struct {
Frefcount int32
@@ -317,29 +304,29 @@ type Threadlocaleinfostruct = struct {
Fpclmap uintptr
Fpcumap uintptr
Flc_time_curr uintptr
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type Pthreadlocinfo = uintptr /* corecrt.h:437:39 */
-type Pthreadmbcinfo = uintptr /* corecrt.h:438:36 */
+type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
+type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
type Localeinfo_struct = struct {
Flocinfo Pthreadlocinfo
Fmbcinfo Pthreadmbcinfo
-} /* corecrt.h:441:9 */
+} /* crtdefs.h:428:9 */
-type X_locale_tstruct = Localeinfo_struct /* corecrt.h:444:3 */
-type X_locale_t = uintptr /* corecrt.h:444:19 */
+type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
+type X_locale_t = uintptr /* crtdefs.h:431:19 */
type TagLC_ID = struct {
FwLanguage uint16
FwCountry uint16
FwCodePage uint16
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type LC_ID = TagLC_ID /* corecrt.h:452:3 */
-type LPLC_ID = uintptr /* corecrt.h:452:9 */
+type LC_ID = TagLC_ID /* crtdefs.h:439:3 */
+type LPLC_ID = uintptr /* crtdefs.h:439:9 */
-type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
+type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
type X_fsize_t = uint32 /* io.h:29:25 */
type X_finddata32_t = struct {
@@ -473,7 +460,7 @@ type Itimerspec = struct {
type X_sigset_t = uint32 /* types.h:106:23 */
-type X_stat32 = struct {
+type X_stat = struct {
Fst_dev X_dev_t
Fst_ino X_ino_t
Fst_mode uint16
@@ -486,7 +473,7 @@ type X_stat32 = struct {
Fst_atime X__time32_t
Fst_mtime X__time32_t
Fst_ctime X__time32_t
-} /* _mingw_stat64.h:25:3 */
+} /* _mingw_stat64.h:28:3 */
type Stat = struct {
Fst_dev X_dev_t
@@ -501,7 +488,7 @@ type Stat = struct {
Fst_atime Time_t
Fst_mtime Time_t
Fst_ctime Time_t
-} /* _mingw_stat64.h:40:3 */
+} /* _mingw_stat64.h:43:3 */
type X_stati64 = struct {
Fst_dev X_dev_t
@@ -518,7 +505,7 @@ type X_stati64 = struct {
Fst_mtime X__time32_t
Fst_ctime X__time32_t
F__ccgo_pad3 [4]byte
-} /* _mingw_stat64.h:55:3 */
+} /* _mingw_stat64.h:58:3 */
type X_stat64i32 = struct {
Fst_dev X_dev_t
@@ -533,7 +520,7 @@ type X_stat64i32 = struct {
Fst_atime X__time64_t
Fst_mtime X__time64_t
Fst_ctime X__time64_t
-} /* _mingw_stat64.h:69:3 */
+} /* _mingw_stat64.h:72:3 */
type X_stat64 = struct {
Fst_dev X_dev_t
@@ -549,6 +536,6 @@ type X_stat64 = struct {
Fst_atime X__time64_t
Fst_mtime X__time64_t
Fst_ctime X__time64_t
-} /* _mingw_stat64.h:83:3 */
+} /* _mingw_stat64.h:86:3 */
var _ int8 /* gen.c:2:13: */
diff --git a/vendor/modernc.org/libc/sys/types/capi_darwin_amd64.go b/vendor/modernc.org/libc/sys/types/capi_darwin_amd64.go
index 3ab4f393..b3e96e3d 100644
--- a/vendor/modernc.org/libc/sys/types/capi_darwin_amd64.go
+++ b/vendor/modernc.org/libc/sys/types/capi_darwin_amd64.go
@@ -3,5 +3,9 @@
package types
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/sys/types/capi_darwin_arm64.go b/vendor/modernc.org/libc/sys/types/capi_darwin_arm64.go
index 96cf0022..dfe6e426 100644
--- a/vendor/modernc.org/libc/sys/types/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/sys/types/capi_darwin_arm64.go
@@ -2,4 +2,10 @@
package types
-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/sys/types/capi_windows_386.go b/vendor/modernc.org/libc/sys/types/capi_windows_386.go
index d09a4ea4..9b50442d 100644
--- a/vendor/modernc.org/libc/sys/types/capi_windows_386.go
+++ b/vendor/modernc.org/libc/sys/types/capi_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo sys/types/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 sys/types/types_windows_386.go -pkgname types', DO NOT EDIT.
+// Code generated by 'ccgo sys\types\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 sys\types\types_windows_386.go -pkgname types', DO NOT EDIT.
package types
diff --git a/vendor/modernc.org/libc/sys/types/types_darwin_amd64.go b/vendor/modernc.org/libc/sys/types/types_darwin_amd64.go
index 46de712b..c1949396 100644
--- a/vendor/modernc.org/libc/sys/types/types_darwin_amd64.go
+++ b/vendor/modernc.org/libc/sys/types/types_darwin_amd64.go
@@ -281,6 +281,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.
@@ -2848,15 +2855,6 @@ type Errno_t = int32 /* _errno_t.h:30:32 */
// __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@
@@ -3127,15 +3125,6 @@ type Fd_set1 = struct{ Ffds_bits [32]X__int32_t } /* _fd_def.h:50:9 */
// __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/sys/types/types_darwin_arm64.go b/vendor/modernc.org/libc/sys/types/types_darwin_arm64.go
index cd35b200..e15506dc 100644
--- a/vendor/modernc.org/libc/sys/types/types_darwin_arm64.go
+++ b/vendor/modernc.org/libc/sys/types/types_darwin_arm64.go
@@ -130,7 +130,6 @@ const (
X_FILE_OFFSET_BITS = 64
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
@@ -139,7 +138,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
@@ -170,7 +168,6 @@ const (
X_RSIZE_T = 0
X_SIZE_T = 0
X_SSIZE_T = 0
- X_STDINT_H_ = 0
X_SUSECONDS_T = 0
X_SYS_TYPES_H_ = 0
X_SYS__ENDIAN_H_ = 0
@@ -178,11 +175,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
@@ -213,6 +205,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-2008 Apple Inc. All rights reserved.
//
// @APPLE_OSREFERENCE_LICENSE_HEADER_START@
@@ -377,6 +371,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).
//
@@ -1452,727 +1453,39 @@ type X__darwin_pthread_once_t = X_opaque_pthread_once_t /* _pthread_
type X__darwin_pthread_rwlock_t = X_opaque_pthread_rwlock_t /* _pthread_types.h:116:41 */
type X__darwin_pthread_rwlockattr_t = X_opaque_pthread_rwlockattr_t /* _pthread_types.h:117:45 */
type X__darwin_pthread_t = uintptr /* _pthread_types.h:118:34 */
+type Uint64_t = uint64 /* stdint.h:98:25 */
-// Copyright (c) 2000-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 1995 NeXT Computer, Inc. All rights reserved.
+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-2007 Apple Inc. All rights reserved.
-// Copyright 1995 NeXT Computer, Inc. All rights reserved.
-// Copyright (c) 1987, 1991, 1993
-// The Regents of the University of California. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. All advertising materials mentioning features or use of this software
-// must display the following acknowledgement:
-// This product includes software developed by the University of
-// California, Berkeley and its contributors.
-// 4. Neither the name of the University nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-// SUCH DAMAGE.
-//
-// @(#)endian.h 8.1 (Berkeley) 6/11/93
+type Uint32_t = uint32 /* stdint.h:172:25 */
-// Copyright (c) 2000-2018 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 1995 NeXT Computer, Inc. All rights reserved.
-// Copyright (c) 1991, 1993
-// The Regents of the University of California. All rights reserved.
-//
-// This code is derived from software contributed to Berkeley by
-// Berkeley Software Design, Inc.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. All advertising materials mentioning features or use of this software
-// must display the following acknowledgement:
-// This product includes software developed by the University of
-// California, Berkeley and its contributors.
-// 4. Neither the name of the University nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-// SUCH DAMAGE.
-//
-// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
+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 */
-// Define _NOQUAD if the compiler does NOT support 64-bit integers.
-// #define _NOQUAD
+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 */
-// Define the order of 32-bit words in 64-bit words.
+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 */
-// Definitions for byte order, according to byte significance from low
-// address to high.
+// prevent glibc sys/types.h from defining conflicting types
-// Copyright (c) 2004, 2006 Apple Computer, 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.
-// Copyright (c) 1995 NeXT Computer, Inc. All rights reserved.
-// Copyright (c) 2000-2002 Apple Computer, 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) 1987, 1991, 1993
-// The Regents of the University of California. All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. All advertising materials mentioning features or use of this software
-// must display the following acknowledgement:
-// This product includes software developed by the University of
-// California, Berkeley and its contributors.
-// 4. Neither the name of the University nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-// SUCH DAMAGE.
-
-// Copyright (c) 2000-2018 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 1995 NeXT Computer, Inc. All rights reserved.
-// Copyright (c) 1991, 1993
-// The Regents of the University of California. All rights reserved.
-//
-// This code is derived from software contributed to Berkeley by
-// Berkeley Software Design, Inc.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions
-// are met:
-// 1. Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// 2. Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// 3. All advertising materials mentioning features or use of this software
-// must display the following acknowledgement:
-// This product includes software developed by the University of
-// California, Berkeley and its contributors.
-// 4. Neither the name of the University nor the names of its contributors
-// may be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-// ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-// OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-// SUCH DAMAGE.
-//
-// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
-
-// Macros for network/external number representation conversion.
-
-// Copyright (c) 2006 Apple Computer, 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@
-
-// This header is normally included from <libkern/OSByteOrder.h>. However,
-// <sys/_endian.h> also includes this in the case of little-endian
-// architectures, so that we can map OSByteOrder routines to the hton* and ntoh*
-// macros. This results in the asymmetry below; we only include
-// <libkern/arch/_OSByteOrder.h> for little-endian architectures.
-
-// 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@
-
-// Macros for swapping constant values in the preprocessing stage.
-
-// Copyright (c) 1999-2007 Apple Inc. All rights reserved.
-
-// 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.
-
-// 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 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@
-
-// 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@
-
-type Intmax_t = int64 /* _intmax_t.h:32:25 */
-// 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 Uintmax_t = uint64 /* _uintmax_t.h:32:26 */
+// 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 */
// Functions for byte reversed loads.
@@ -3635,15 +2948,6 @@ type Errno_t = int32 /* _errno_t.h:30:32 */
// 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@
@@ -3937,15 +3241,6 @@ type Fd_set1 = struct{ Ffds_bits [32]X__int32_t } /* _fd_def.h:50:9 */
// 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@
diff --git a/vendor/modernc.org/libc/sys/types/types_windows_386.go b/vendor/modernc.org/libc/sys/types/types_windows_386.go
index 25487bb4..37fddc7a 100644
--- a/vendor/modernc.org/libc/sys/types/types_windows_386.go
+++ b/vendor/modernc.org/libc/sys/types/types_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo sys/types/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 sys/types/types_windows_386.go -pkgname types', DO NOT EDIT.
+// Code generated by 'ccgo sys\types\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 sys\types\types_windows_386.go -pkgname types', DO NOT EDIT.
package types
@@ -32,7 +32,9 @@ const (
DUMMYUNIONNAME8 = 0
DUMMYUNIONNAME9 = 0
MINGW_DDK_H = 0
+ MINGW_DDRAW_VERSION = 7
MINGW_HAS_DDK_H = 1
+ MINGW_HAS_DDRAW_H = 1
MINGW_HAS_SECURE_API = 1
MINGW_SDK_INIT = 0
UNALIGNED = 0
@@ -54,14 +56,11 @@ const (
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
- X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0
X_DEV_T_DEFINED = 0
X_DLL = 0
X_ERRCODE_DEFINED = 0
X_FILE_OFFSET_BITS = 64
X_FILE_OFFSET_BITS_SET_OFFT = 0
- X_ILP32 = 1
- X_INC_CORECRT = 0
X_INC_CRTDEFS = 0
X_INC_CRTDEFS_MACRO = 0
X_INC_MINGW_SECAPI = 0
@@ -82,6 +81,7 @@ const (
X_PID_T_ = 0
X_PTRDIFF_T_ = 0
X_PTRDIFF_T_DEFINED = 0
+ X_REENTRANT = 1
X_RSIZE_T_DEFINED = 0
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
X_SIGSET_T_ = 0
@@ -137,11 +137,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// *
-// This file has no copyright assigned and is placed in the Public Domain.
-// This file is part of the mingw-w64 runtime package.
-// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-
// This macro holds an monotonic increasing value, which indicates
// a specific fix/patch is present on trunk. This value isn't related to
// minor/major version-macros. It is increased on demand, if a big
@@ -162,12 +157,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// MinGW-w64 has some additional C99 printf/scanf feature support.
// So we add some helper macros to ease recognition of them.
-// If _FORTIFY_SOURCE is enabled, some inline functions may use
-// __builtin_va_arg_pack(). GCC may report an error if the address
-// of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
-
-// Enable workaround for ABI incompatibility on affected platforms
-
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
@@ -208,28 +197,26 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// for backward compatibility
-
type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
-type Ssize_t = int32 /* corecrt.h:52:13 */
+type Ssize_t = int32 /* crtdefs.h:47:13 */
-type Rsize_t = Size_t /* corecrt.h:57:16 */
+type Rsize_t = Size_t /* crtdefs.h:52:16 */
-type Intptr_t = int32 /* corecrt.h:69:13 */
+type Intptr_t = int32 /* crtdefs.h:64:13 */
-type Uintptr_t = uint32 /* corecrt.h:82:22 */
+type Uintptr_t = uint32 /* crtdefs.h:77:22 */
-type Wint_t = uint16 /* corecrt.h:111:24 */
-type Wctype_t = uint16 /* corecrt.h:112:24 */
+type Wint_t = uint16 /* crtdefs.h:106:24 */
+type Wctype_t = uint16 /* crtdefs.h:107:24 */
-type Errno_t = int32 /* corecrt.h:118:13 */
+type Errno_t = int32 /* crtdefs.h:113:13 */
-type X__time32_t = int32 /* corecrt.h:123:14 */
+type X__time32_t = int32 /* crtdefs.h:118:14 */
-type X__time64_t = int64 /* corecrt.h:128:35 */
+type X__time64_t = int64 /* crtdefs.h:123:35 */
-type Time_t = X__time32_t /* corecrt.h:141:20 */
+type Time_t = X__time32_t /* crtdefs.h:136:20 */
type Threadlocaleinfostruct = struct {
Frefcount int32
@@ -255,29 +242,29 @@ type Threadlocaleinfostruct = struct {
Fpclmap uintptr
Fpcumap uintptr
Flc_time_curr uintptr
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type Pthreadlocinfo = uintptr /* corecrt.h:437:39 */
-type Pthreadmbcinfo = uintptr /* corecrt.h:438:36 */
+type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
+type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
type Localeinfo_struct = struct {
Flocinfo Pthreadlocinfo
Fmbcinfo Pthreadmbcinfo
-} /* corecrt.h:441:9 */
+} /* crtdefs.h:428:9 */
-type X_locale_tstruct = Localeinfo_struct /* corecrt.h:444:3 */
-type X_locale_t = uintptr /* corecrt.h:444:19 */
+type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
+type X_locale_t = uintptr /* crtdefs.h:431:19 */
type TagLC_ID = struct {
FwLanguage uint16
FwCountry uint16
FwCodePage uint16
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type LC_ID = TagLC_ID /* corecrt.h:452:3 */
-type LPLC_ID = uintptr /* corecrt.h:452:9 */
+type LC_ID = TagLC_ID /* crtdefs.h:439:3 */
+type LPLC_ID = uintptr /* crtdefs.h:439:9 */
-type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
+type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
type X_ino_t = uint16 /* types.h:43:24 */
type Ino_t = uint16 /* types.h:45:24 */
diff --git a/vendor/modernc.org/libc/termios/capi_darwin_arm64.go b/vendor/modernc.org/libc/termios/capi_darwin_arm64.go
index 3e2e7800..cc3e84f5 100644
--- a/vendor/modernc.org/libc/termios/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/termios/capi_darwin_arm64.go
@@ -2,4 +2,6 @@
package termios
-var CAPI = map[string]struct{}{}
+var CAPI = map[string]struct{}{
+ "__darwin_check_fd_set_overflow": {},
+}
diff --git a/vendor/modernc.org/libc/termios/termios_darwin_amd64.go b/vendor/modernc.org/libc/termios/termios_darwin_amd64.go
index 1dec2bc5..9172c98d 100644
--- a/vendor/modernc.org/libc/termios/termios_darwin_amd64.go
+++ b/vendor/modernc.org/libc/termios/termios_darwin_amd64.go
@@ -340,6 +340,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.
diff --git a/vendor/modernc.org/libc/termios/termios_darwin_arm64.go b/vendor/modernc.org/libc/termios/termios_darwin_arm64.go
index 2445b648..25fbac4b 100644
--- a/vendor/modernc.org/libc/termios/termios_darwin_arm64.go
+++ b/vendor/modernc.org/libc/termios/termios_darwin_arm64.go
@@ -245,6 +245,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 Apple Computer, Inc. All rights reserved.
//
// @APPLE_LICENSE_HEADER_START@
@@ -340,6 +342,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).
//
diff --git a/vendor/modernc.org/libc/time/capi_darwin_arm64.go b/vendor/modernc.org/libc/time/capi_darwin_arm64.go
index 87addbca..fbd61d13 100644
--- a/vendor/modernc.org/libc/time/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/time/capi_darwin_arm64.go
@@ -2,4 +2,6 @@
package time
-var CAPI = map[string]struct{}{}
+var CAPI = map[string]struct{}{
+ "__darwin_check_fd_set_overflow": {},
+}
diff --git a/vendor/modernc.org/libc/time/capi_windows_386.go b/vendor/modernc.org/libc/time/capi_windows_386.go
index e46d8d23..b379fa17 100644
--- a/vendor/modernc.org/libc/time/capi_windows_386.go
+++ b/vendor/modernc.org/libc/time/capi_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo time/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 time/time_windows_386.go -pkgname time', DO NOT EDIT.
+// Code generated by 'ccgo time\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 time\time_windows_386.go -pkgname time', DO NOT EDIT.
package time
diff --git a/vendor/modernc.org/libc/time/time_darwin_amd64.go b/vendor/modernc.org/libc/time/time_darwin_amd64.go
index 24a6b034..f11856c4 100644
--- a/vendor/modernc.org/libc/time/time_darwin_amd64.go
+++ b/vendor/modernc.org/libc/time/time_darwin_amd64.go
@@ -259,6 +259,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.
@@ -1046,15 +1053,6 @@ type X__darwin_wctype_t = X__uint32_t /* _types.h:43:20 */
// __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/time/time_darwin_arm64.go b/vendor/modernc.org/libc/time/time_darwin_arm64.go
index 31886c4c..eea0739c 100644
--- a/vendor/modernc.org/libc/time/time_darwin_arm64.go
+++ b/vendor/modernc.org/libc/time/time_darwin_arm64.go
@@ -115,6 +115,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 Apple Computer, Inc. All rights reserved.
//
// @APPLE_LICENSE_HEADER_START@
@@ -294,6 +296,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).
//
@@ -1090,15 +1099,6 @@ type X__darwin_wctype_t = X__uint32_t /* _types.h:43:20 */
// 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@
diff --git a/vendor/modernc.org/libc/time/time_windows_386.go b/vendor/modernc.org/libc/time/time_windows_386.go
index 8fa115a5..c947a392 100644
--- a/vendor/modernc.org/libc/time/time_windows_386.go
+++ b/vendor/modernc.org/libc/time/time_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo time/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 time/time_windows_386.go -pkgname time', DO NOT EDIT.
+// Code generated by 'ccgo time\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 time\time_windows_386.go -pkgname time', DO NOT EDIT.
package time
@@ -38,7 +38,9 @@ const (
DUMMYUNIONNAME8 = 0
DUMMYUNIONNAME9 = 0
MINGW_DDK_H = 0
+ MINGW_DDRAW_VERSION = 7
MINGW_HAS_DDK_H = 1
+ MINGW_HAS_DDRAW_H = 1
MINGW_HAS_SECURE_API = 1
MINGW_SDK_INIT = 0
TIMER_ABSTIME = 1
@@ -64,12 +66,9 @@ const (
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
- X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0
X_DLL = 0
X_ERRCODE_DEFINED = 0
X_FILE_OFFSET_BITS = 64
- X_ILP32 = 1
- X_INC_CORECRT = 0
X_INC_CRTDEFS = 0
X_INC_CRTDEFS_MACRO = 0
X_INC_MINGW_SECAPI = 0
@@ -89,6 +88,7 @@ const (
X_POSIX_TIMERS = 200809
X_PTRDIFF_T_ = 0
X_PTRDIFF_T_DEFINED = 0
+ X_REENTRANT = 1
X_RSIZE_T_DEFINED = 0
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
X_SIZE_T_DEFINED = 0
@@ -151,11 +151,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// *
-// This file has no copyright assigned and is placed in the Public Domain.
-// This file is part of the mingw-w64 runtime package.
-// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-
// This macro holds an monotonic increasing value, which indicates
// a specific fix/patch is present on trunk. This value isn't related to
// minor/major version-macros. It is increased on demand, if a big
@@ -176,12 +171,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// MinGW-w64 has some additional C99 printf/scanf feature support.
// So we add some helper macros to ease recognition of them.
-// If _FORTIFY_SOURCE is enabled, some inline functions may use
-// __builtin_va_arg_pack(). GCC may report an error if the address
-// of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
-
-// Enable workaround for ABI incompatibility on affected platforms
-
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
@@ -222,28 +211,26 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// for backward compatibility
-
type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
-type Ssize_t = int32 /* corecrt.h:52:13 */
+type Ssize_t = int32 /* crtdefs.h:47:13 */
-type Rsize_t = Size_t /* corecrt.h:57:16 */
+type Rsize_t = Size_t /* crtdefs.h:52:16 */
-type Intptr_t = int32 /* corecrt.h:69:13 */
+type Intptr_t = int32 /* crtdefs.h:64:13 */
-type Uintptr_t = uint32 /* corecrt.h:82:22 */
+type Uintptr_t = uint32 /* crtdefs.h:77:22 */
-type Wint_t = uint16 /* corecrt.h:111:24 */
-type Wctype_t = uint16 /* corecrt.h:112:24 */
+type Wint_t = uint16 /* crtdefs.h:106:24 */
+type Wctype_t = uint16 /* crtdefs.h:107:24 */
-type Errno_t = int32 /* corecrt.h:118:13 */
+type Errno_t = int32 /* crtdefs.h:113:13 */
-type X__time32_t = int32 /* corecrt.h:123:14 */
+type X__time32_t = int32 /* crtdefs.h:118:14 */
-type X__time64_t = int64 /* corecrt.h:128:35 */
+type X__time64_t = int64 /* crtdefs.h:123:35 */
-type Time_t = X__time32_t /* corecrt.h:141:20 */
+type Time_t = X__time32_t /* crtdefs.h:136:20 */
type Threadlocaleinfostruct = struct {
Frefcount int32
@@ -269,29 +256,29 @@ type Threadlocaleinfostruct = struct {
Fpclmap uintptr
Fpcumap uintptr
Flc_time_curr uintptr
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type Pthreadlocinfo = uintptr /* corecrt.h:437:39 */
-type Pthreadmbcinfo = uintptr /* corecrt.h:438:36 */
+type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
+type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
type Localeinfo_struct = struct {
Flocinfo Pthreadlocinfo
Fmbcinfo Pthreadmbcinfo
-} /* corecrt.h:441:9 */
+} /* crtdefs.h:428:9 */
-type X_locale_tstruct = Localeinfo_struct /* corecrt.h:444:3 */
-type X_locale_t = uintptr /* corecrt.h:444:19 */
+type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
+type X_locale_t = uintptr /* crtdefs.h:431:19 */
type TagLC_ID = struct {
FwLanguage uint16
FwCountry uint16
FwCodePage uint16
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type LC_ID = TagLC_ID /* corecrt.h:452:3 */
-type LPLC_ID = uintptr /* corecrt.h:452:9 */
+type LC_ID = TagLC_ID /* crtdefs.h:439:3 */
+type LPLC_ID = uintptr /* crtdefs.h:439:9 */
-type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
+type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
type Clock_t = int32 /* time.h:60:16 */
@@ -307,9 +294,10 @@ type Tm = struct {
Ftm_isdst int32
} /* time.h:97:3 */
-var Xdaylight int32 /* time.h:256:22: */
-var Xtimezone int32 /* time.h:257:23: */
-var Xtzname [2]uintptr /* time.h:258:23: */
+var Xdaylight int32 /* time.h:278:22: */
+
+var Xtimezone int32 /* time.h:281:23: */
+var Xtzname [2]uintptr /* time.h:282:23: */
// *
// This file has no copyright assigned and is placed in the Public Domain.
@@ -324,7 +312,7 @@ type Timeval = struct {
type Timezone = struct {
Ftz_minuteswest int32
Ftz_dsttime int32
-} /* time.h:266:1 */
+} /* time.h:290:1 */
// Adding timespec definition.
// *
@@ -364,7 +352,7 @@ type X__timeb64 = struct {
type Timespec = struct {
Ftv_sec Time_t
Ftv_nsec int32
-} /* timeb.h:91:1 */
+} /* timeb.h:90:1 */
type Itimerspec = struct {
Fit_interval struct {
@@ -375,7 +363,7 @@ type Itimerspec = struct {
Ftv_sec Time_t
Ftv_nsec int32
}
-} /* timeb.h:96:1 */
+} /* timeb.h:95:1 */
// POSIX 2008 says clock_gettime and timespec are defined in time.h header,
// but other systems - like Linux, Solaris, etc - tend to declare such
diff --git a/vendor/modernc.org/libc/unistd/capi_darwin_amd64.go b/vendor/modernc.org/libc/unistd/capi_darwin_amd64.go
index b4528b0c..f1a2922a 100644
--- a/vendor/modernc.org/libc/unistd/capi_darwin_amd64.go
+++ b/vendor/modernc.org/libc/unistd/capi_darwin_amd64.go
@@ -3,5 +3,9 @@
package unistd
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/unistd/capi_darwin_arm64.go b/vendor/modernc.org/libc/unistd/capi_darwin_arm64.go
index ec0a268a..094f1592 100644
--- a/vendor/modernc.org/libc/unistd/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/unistd/capi_darwin_arm64.go
@@ -2,4 +2,10 @@
package unistd
-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/unistd/capi_windows_386.go b/vendor/modernc.org/libc/unistd/capi_windows_386.go
index 51753d90..119657c4 100644
--- a/vendor/modernc.org/libc/unistd/capi_windows_386.go
+++ b/vendor/modernc.org/libc/unistd/capi_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo unistd/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 unistd/unistd_windows_386.go -pkgname unistd', DO NOT EDIT.
+// Code generated by 'ccgo unistd\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 unistd\unistd_windows_386.go -pkgname unistd', DO NOT EDIT.
package unistd
diff --git a/vendor/modernc.org/libc/unistd/unistd_darwin_amd64.go b/vendor/modernc.org/libc/unistd/unistd_darwin_amd64.go
index fde58a0d..cc2e8280 100644
--- a/vendor/modernc.org/libc/unistd/unistd_darwin_amd64.go
+++ b/vendor/modernc.org/libc/unistd/unistd_darwin_amd64.go
@@ -585,6 +585,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.
diff --git a/vendor/modernc.org/libc/unistd/unistd_darwin_arm64.go b/vendor/modernc.org/libc/unistd/unistd_darwin_arm64.go
index 8c8a1fe1..3bcfac13 100644
--- a/vendor/modernc.org/libc/unistd/unistd_darwin_arm64.go
+++ b/vendor/modernc.org/libc/unistd/unistd_darwin_arm64.go
@@ -436,6 +436,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, 2002-2006, 2008-2010, 2012 Apple Inc. All rights reserved.
//
// @APPLE_LICENSE_HEADER_START@
@@ -620,6 +622,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).
//
diff --git a/vendor/modernc.org/libc/unistd/unistd_windows_386.go b/vendor/modernc.org/libc/unistd/unistd_windows_386.go
index 86a9fd0d..83efe51b 100644
--- a/vendor/modernc.org/libc/unistd/unistd_windows_386.go
+++ b/vendor/modernc.org/libc/unistd/unistd_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo unistd/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 unistd/unistd_windows_386.go -pkgname unistd', DO NOT EDIT.
+// Code generated by 'ccgo unistd\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 unistd\unistd_windows_386.go -pkgname unistd', DO NOT EDIT.
package unistd
@@ -34,7 +34,9 @@ const (
FTRUNCATE_DEFINED = 0
F_OK = 0
MINGW_DDK_H = 0
+ MINGW_DDRAW_VERSION = 7
MINGW_HAS_DDK_H = 1
+ MINGW_HAS_DDRAW_H = 1
MINGW_HAS_SECURE_API = 1
MINGW_SDK_INIT = 0
OLD_P_OVERLAY = 2
@@ -86,7 +88,6 @@ const (
X_CRT_SWAB_DEFINED = 0
X_CRT_SYSTEM_DEFINED = 0
X_CRT_TERMINATE_DEFINED = 0
- X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0
X_CRT_WSYSTEM_DEFINED = 0
X_DEV_T_DEFINED = 0
X_DLL = 0
@@ -97,8 +98,6 @@ const (
X_FILE_OFFSET_BITS_SET_OFFT = 0
X_FINDDATA_T_DEFINED = 0
X_FSIZE_T_DEFINED = 0
- X_ILP32 = 1
- X_INC_CORECRT = 0
X_INC_CORECRT_STARTUP = 0
X_INC_CRTDEFS = 0
X_INC_CRTDEFS_MACRO = 0
@@ -131,6 +130,7 @@ const (
X_POSIX_SEMAPHORES = 200112
X_POSIX_SPIN_LOCKS = 200112
X_POSIX_THREADS = 200112
+ X_POSIX_THREAD_SAFE_FUNCTIONS = 200112
X_POSIX_TIMEOUTS = 200112
X_PTRDIFF_T_ = 0
X_PTRDIFF_T_DEFINED = 0
@@ -139,6 +139,7 @@ const (
X_P_NOWAITO = 3
X_P_OVERLAY = 2
X_P_WAIT = 0
+ X_REENTRANT = 1
X_RSIZE_T_DEFINED = 0
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
X_SIGSET_T_ = 0
@@ -210,11 +211,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// *
-// This file has no copyright assigned and is placed in the Public Domain.
-// This file is part of the mingw-w64 runtime package.
-// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-
// This macro holds an monotonic increasing value, which indicates
// a specific fix/patch is present on trunk. This value isn't related to
// minor/major version-macros. It is increased on demand, if a big
@@ -235,12 +231,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// MinGW-w64 has some additional C99 printf/scanf feature support.
// So we add some helper macros to ease recognition of them.
-// If _FORTIFY_SOURCE is enabled, some inline functions may use
-// __builtin_va_arg_pack(). GCC may report an error if the address
-// of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
-
-// Enable workaround for ABI incompatibility on affected platforms
-
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
@@ -281,28 +271,26 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// for backward compatibility
-
type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
-type Ssize_t = int32 /* corecrt.h:52:13 */
+type Ssize_t = int32 /* crtdefs.h:47:13 */
-type Rsize_t = Size_t /* corecrt.h:57:16 */
+type Rsize_t = Size_t /* crtdefs.h:52:16 */
-type Intptr_t = int32 /* corecrt.h:69:13 */
+type Intptr_t = int32 /* crtdefs.h:64:13 */
-type Uintptr_t = uint32 /* corecrt.h:82:22 */
+type Uintptr_t = uint32 /* crtdefs.h:77:22 */
-type Wint_t = uint16 /* corecrt.h:111:24 */
-type Wctype_t = uint16 /* corecrt.h:112:24 */
+type Wint_t = uint16 /* crtdefs.h:106:24 */
+type Wctype_t = uint16 /* crtdefs.h:107:24 */
-type Errno_t = int32 /* corecrt.h:118:13 */
+type Errno_t = int32 /* crtdefs.h:113:13 */
-type X__time32_t = int32 /* corecrt.h:123:14 */
+type X__time32_t = int32 /* crtdefs.h:118:14 */
-type X__time64_t = int64 /* corecrt.h:128:35 */
+type X__time64_t = int64 /* crtdefs.h:123:35 */
-type Time_t = X__time32_t /* corecrt.h:141:20 */
+type Time_t = X__time32_t /* crtdefs.h:136:20 */
type Threadlocaleinfostruct = struct {
Frefcount int32
@@ -328,29 +316,29 @@ type Threadlocaleinfostruct = struct {
Fpclmap uintptr
Fpcumap uintptr
Flc_time_curr uintptr
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type Pthreadlocinfo = uintptr /* corecrt.h:437:39 */
-type Pthreadmbcinfo = uintptr /* corecrt.h:438:36 */
+type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
+type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
type Localeinfo_struct = struct {
Flocinfo Pthreadlocinfo
Fmbcinfo Pthreadmbcinfo
-} /* corecrt.h:441:9 */
+} /* crtdefs.h:428:9 */
-type X_locale_tstruct = Localeinfo_struct /* corecrt.h:444:3 */
-type X_locale_t = uintptr /* corecrt.h:444:19 */
+type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
+type X_locale_t = uintptr /* crtdefs.h:431:19 */
type TagLC_ID = struct {
FwLanguage uint16
FwCountry uint16
FwCodePage uint16
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type LC_ID = TagLC_ID /* corecrt.h:452:3 */
-type LPLC_ID = uintptr /* corecrt.h:452:9 */
+type LC_ID = TagLC_ID /* crtdefs.h:439:3 */
+type LPLC_ID = uintptr /* crtdefs.h:439:9 */
-type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
+type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
type X_fsize_t = uint32 /* io.h:29:25 */
type X_finddata32_t = struct {
@@ -499,11 +487,6 @@ type Itimerspec = struct {
type X_sigset_t = uint32 /* types.h:106:23 */
-type X_beginthread_proc_type = uintptr /* process.h:32:16 */
-type X_beginthreadex_proc_type = uintptr /* process.h:33:20 */
-
-type X_tls_callback_type = uintptr /* process.h:61:16 */
-
//
// Copyright (c) 2011-2016 mingw-w64 project
//
@@ -621,6 +604,23 @@ type X_tls_callback_type = uintptr /* process.h:61:16 */
//
// are present.
+// _SC_THREAD_SAFE_FUNCTIONS
+// Affected functions are
+//
+// readdir_r(),
+// getgrgid_r(),
+// getgrnam_r(),
+// getpwnam_r(),
+// getpwuid_r(),
+// flockfile(),
+// ftrylockfile(),
+// funlockfile(),
+// getc_unlocked(),
+// getchar_unlocked(),
+// putc_unlocked(),
+// putchar_unlocked(),
+// strerror_r(),
+
// _SC_TIMEOUTS
// The functions
//
diff --git a/vendor/modernc.org/libc/utime/capi_darwin_arm64.go b/vendor/modernc.org/libc/utime/capi_darwin_arm64.go
index c46b0510..372f430d 100644
--- a/vendor/modernc.org/libc/utime/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/utime/capi_darwin_arm64.go
@@ -2,4 +2,6 @@
package utime
-var CAPI = map[string]struct{}{}
+var CAPI = map[string]struct{}{
+ "__darwin_check_fd_set_overflow": {},
+}
diff --git a/vendor/modernc.org/libc/utime/capi_windows_386.go b/vendor/modernc.org/libc/utime/capi_windows_386.go
index 6b156a0c..82bb0f63 100644
--- a/vendor/modernc.org/libc/utime/capi_windows_386.go
+++ b/vendor/modernc.org/libc/utime/capi_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo utime/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 utime/utime_windows_386.go -pkgname utime', DO NOT EDIT.
+// Code generated by 'ccgo utime\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 utime\utime_windows_386.go -pkgname utime', DO NOT EDIT.
package utime
diff --git a/vendor/modernc.org/libc/utime/utime_darwin_amd64.go b/vendor/modernc.org/libc/utime/utime_darwin_amd64.go
index 1fde870a..7c48b350 100644
--- a/vendor/modernc.org/libc/utime/utime_darwin_amd64.go
+++ b/vendor/modernc.org/libc/utime/utime_darwin_amd64.go
@@ -240,6 +240,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.
diff --git a/vendor/modernc.org/libc/utime/utime_darwin_arm64.go b/vendor/modernc.org/libc/utime/utime_darwin_arm64.go
index 59dba228..e88bf53c 100644
--- a/vendor/modernc.org/libc/utime/utime_darwin_arm64.go
+++ b/vendor/modernc.org/libc/utime/utime_darwin_arm64.go
@@ -66,6 +66,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 Apple Computer, Inc. All rights reserved.
//
// @APPLE_LICENSE_HEADER_START@
@@ -241,6 +243,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).
//
diff --git a/vendor/modernc.org/libc/utime/utime_windows_386.go b/vendor/modernc.org/libc/utime/utime_windows_386.go
index 4fb4cfc0..7716e26b 100644
--- a/vendor/modernc.org/libc/utime/utime_windows_386.go
+++ b/vendor/modernc.org/libc/utime/utime_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo utime/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 utime/utime_windows_386.go -pkgname utime', DO NOT EDIT.
+// Code generated by 'ccgo utime\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 utime\utime_windows_386.go -pkgname utime', DO NOT EDIT.
package utime
@@ -32,7 +32,9 @@ const (
DUMMYUNIONNAME8 = 0
DUMMYUNIONNAME9 = 0
MINGW_DDK_H = 0
+ MINGW_DDRAW_VERSION = 7
MINGW_HAS_DDK_H = 1
+ MINGW_HAS_DDRAW_H = 1
MINGW_HAS_SECURE_API = 1
MINGW_SDK_INIT = 0
UNALIGNED = 0
@@ -54,12 +56,9 @@ const (
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
- X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0
X_DLL = 0
X_ERRCODE_DEFINED = 0
X_FILE_OFFSET_BITS = 64
- X_ILP32 = 1
- X_INC_CORECRT = 0
X_INC_CRTDEFS = 0
X_INC_CRTDEFS_MACRO = 0
X_INC_MINGW_SECAPI = 0
@@ -74,6 +73,7 @@ const (
X_PGLOBAL = 0
X_PTRDIFF_T_ = 0
X_PTRDIFF_T_DEFINED = 0
+ X_REENTRANT = 1
X_RSIZE_T_DEFINED = 0
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
X_SIZE_T_DEFINED = 0
@@ -132,11 +132,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// *
-// This file has no copyright assigned and is placed in the Public Domain.
-// This file is part of the mingw-w64 runtime package.
-// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-
// This macro holds an monotonic increasing value, which indicates
// a specific fix/patch is present on trunk. This value isn't related to
// minor/major version-macros. It is increased on demand, if a big
@@ -157,12 +152,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// MinGW-w64 has some additional C99 printf/scanf feature support.
// So we add some helper macros to ease recognition of them.
-// If _FORTIFY_SOURCE is enabled, some inline functions may use
-// __builtin_va_arg_pack(). GCC may report an error if the address
-// of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
-
-// Enable workaround for ABI incompatibility on affected platforms
-
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
@@ -203,28 +192,26 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// for backward compatibility
-
type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
-type Ssize_t = int32 /* corecrt.h:52:13 */
+type Ssize_t = int32 /* crtdefs.h:47:13 */
-type Rsize_t = Size_t /* corecrt.h:57:16 */
+type Rsize_t = Size_t /* crtdefs.h:52:16 */
-type Intptr_t = int32 /* corecrt.h:69:13 */
+type Intptr_t = int32 /* crtdefs.h:64:13 */
-type Uintptr_t = uint32 /* corecrt.h:82:22 */
+type Uintptr_t = uint32 /* crtdefs.h:77:22 */
-type Wint_t = uint16 /* corecrt.h:111:24 */
-type Wctype_t = uint16 /* corecrt.h:112:24 */
+type Wint_t = uint16 /* crtdefs.h:106:24 */
+type Wctype_t = uint16 /* crtdefs.h:107:24 */
-type Errno_t = int32 /* corecrt.h:118:13 */
+type Errno_t = int32 /* crtdefs.h:113:13 */
-type X__time32_t = int32 /* corecrt.h:123:14 */
+type X__time32_t = int32 /* crtdefs.h:118:14 */
-type X__time64_t = int64 /* corecrt.h:128:35 */
+type X__time64_t = int64 /* crtdefs.h:123:35 */
-type Time_t = X__time32_t /* corecrt.h:141:20 */
+type Time_t = X__time32_t /* crtdefs.h:136:20 */
type Threadlocaleinfostruct = struct {
Frefcount int32
@@ -250,29 +237,29 @@ type Threadlocaleinfostruct = struct {
Fpclmap uintptr
Fpcumap uintptr
Flc_time_curr uintptr
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type Pthreadlocinfo = uintptr /* corecrt.h:437:39 */
-type Pthreadmbcinfo = uintptr /* corecrt.h:438:36 */
+type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
+type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
type Localeinfo_struct = struct {
Flocinfo Pthreadlocinfo
Fmbcinfo Pthreadmbcinfo
-} /* corecrt.h:441:9 */
+} /* crtdefs.h:428:9 */
-type X_locale_tstruct = Localeinfo_struct /* corecrt.h:444:3 */
-type X_locale_t = uintptr /* corecrt.h:444:19 */
+type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
+type X_locale_t = uintptr /* crtdefs.h:431:19 */
type TagLC_ID = struct {
FwLanguage uint16
FwCountry uint16
FwCodePage uint16
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type LC_ID = TagLC_ID /* corecrt.h:452:3 */
-type LPLC_ID = uintptr /* corecrt.h:452:9 */
+type LC_ID = TagLC_ID /* crtdefs.h:439:3 */
+type LPLC_ID = uintptr /* crtdefs.h:439:9 */
-type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
+type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
type X_utimbuf = struct {
Factime Time_t
diff --git a/vendor/modernc.org/libc/uuid/uuid/capi_darwin_arm64.go b/vendor/modernc.org/libc/uuid/uuid/capi_darwin_arm64.go
index 3c9d0135..e8c583fd 100644
--- a/vendor/modernc.org/libc/uuid/uuid/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/uuid/uuid/capi_darwin_arm64.go
@@ -2,4 +2,6 @@
package uuid
-var CAPI = map[string]struct{}{}
+var CAPI = map[string]struct{}{
+ "__darwin_check_fd_set_overflow": {},
+}
diff --git a/vendor/modernc.org/libc/uuid/uuid/uuid_darwin_amd64.go b/vendor/modernc.org/libc/uuid/uuid/uuid_darwin_amd64.go
index da7407bc..ac5acdd9 100644
--- a/vendor/modernc.org/libc/uuid/uuid/uuid_darwin_amd64.go
+++ b/vendor/modernc.org/libc/uuid/uuid/uuid_darwin_amd64.go
@@ -185,6 +185,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.
diff --git a/vendor/modernc.org/libc/uuid/uuid/uuid_darwin_arm64.go b/vendor/modernc.org/libc/uuid/uuid/uuid_darwin_arm64.go
index 595e17f2..9cf36a53 100644
--- a/vendor/modernc.org/libc/uuid/uuid/uuid_darwin_arm64.go
+++ b/vendor/modernc.org/libc/uuid/uuid/uuid_darwin_arm64.go
@@ -53,6 +53,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: */
+
// Public include file for the UUID library
//
// Copyright (C) 1996, 1997, 1998 Theodore Ts'o.
@@ -185,6 +187,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).
//
diff --git a/vendor/modernc.org/libc/wctype/capi_darwin_amd64.go b/vendor/modernc.org/libc/wctype/capi_darwin_amd64.go
index 26b59f1b..d128ab89 100644
--- a/vendor/modernc.org/libc/wctype/capi_darwin_amd64.go
+++ b/vendor/modernc.org/libc/wctype/capi_darwin_amd64.go
@@ -4,4 +4,52 @@ package wctype
var CAPI = map[string]struct{}{
"__darwin_check_fd_set_overflow": {},
+ "__isctype": {},
+ "__istype": {},
+ "__wcwidth": {},
+ "digittoint": {},
+ "isalnum": {},
+ "isalpha": {},
+ "isascii": {},
+ "isblank": {},
+ "iscntrl": {},
+ "isdigit": {},
+ "isgraph": {},
+ "ishexnumber": {},
+ "isideogram": {},
+ "islower": {},
+ "isnumber": {},
+ "isphonogram": {},
+ "isprint": {},
+ "ispunct": {},
+ "isrune": {},
+ "isspace": {},
+ "isspecial": {},
+ "isupper": {},
+ "iswalnum": {},
+ "iswalpha": {},
+ "iswascii": {},
+ "iswblank": {},
+ "iswcntrl": {},
+ "iswctype": {},
+ "iswdigit": {},
+ "iswgraph": {},
+ "iswhexnumber": {},
+ "iswideogram": {},
+ "iswlower": {},
+ "iswnumber": {},
+ "iswphonogram": {},
+ "iswprint": {},
+ "iswpunct": {},
+ "iswrune": {},
+ "iswspace": {},
+ "iswspecial": {},
+ "iswupper": {},
+ "iswxdigit": {},
+ "isxdigit": {},
+ "toascii": {},
+ "tolower": {},
+ "toupper": {},
+ "towlower": {},
+ "towupper": {},
}
diff --git a/vendor/modernc.org/libc/wctype/capi_darwin_arm64.go b/vendor/modernc.org/libc/wctype/capi_darwin_arm64.go
index e79c076d..88852739 100644
--- a/vendor/modernc.org/libc/wctype/capi_darwin_arm64.go
+++ b/vendor/modernc.org/libc/wctype/capi_darwin_arm64.go
@@ -2,4 +2,54 @@
package wctype
-var CAPI = map[string]struct{}{}
+var CAPI = map[string]struct{}{
+ "__darwin_check_fd_set_overflow": {},
+ "__isctype": {},
+ "__istype": {},
+ "__wcwidth": {},
+ "digittoint": {},
+ "isalnum": {},
+ "isalpha": {},
+ "isascii": {},
+ "isblank": {},
+ "iscntrl": {},
+ "isdigit": {},
+ "isgraph": {},
+ "ishexnumber": {},
+ "isideogram": {},
+ "islower": {},
+ "isnumber": {},
+ "isphonogram": {},
+ "isprint": {},
+ "ispunct": {},
+ "isrune": {},
+ "isspace": {},
+ "isspecial": {},
+ "isupper": {},
+ "iswalnum": {},
+ "iswalpha": {},
+ "iswascii": {},
+ "iswblank": {},
+ "iswcntrl": {},
+ "iswctype": {},
+ "iswdigit": {},
+ "iswgraph": {},
+ "iswhexnumber": {},
+ "iswideogram": {},
+ "iswlower": {},
+ "iswnumber": {},
+ "iswphonogram": {},
+ "iswprint": {},
+ "iswpunct": {},
+ "iswrune": {},
+ "iswspace": {},
+ "iswspecial": {},
+ "iswupper": {},
+ "iswxdigit": {},
+ "isxdigit": {},
+ "toascii": {},
+ "tolower": {},
+ "toupper": {},
+ "towlower": {},
+ "towupper": {},
+}
diff --git a/vendor/modernc.org/libc/wctype/capi_windows_386.go b/vendor/modernc.org/libc/wctype/capi_windows_386.go
index a522b190..2f09890d 100644
--- a/vendor/modernc.org/libc/wctype/capi_windows_386.go
+++ b/vendor/modernc.org/libc/wctype/capi_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo wctype/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 wctype/wctype_windows_386.go -pkgname wctype', DO NOT EDIT.
+// Code generated by 'ccgo wctype\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 wctype\wctype_windows_386.go -pkgname wctype', DO NOT EDIT.
package wctype
diff --git a/vendor/modernc.org/libc/wctype/wctype_darwin_amd64.go b/vendor/modernc.org/libc/wctype/wctype_darwin_amd64.go
index 7be00384..19ee06d9 100644
--- a/vendor/modernc.org/libc/wctype/wctype_darwin_amd64.go
+++ b/vendor/modernc.org/libc/wctype/wctype_darwin_amd64.go
@@ -187,6 +187,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.
diff --git a/vendor/modernc.org/libc/wctype/wctype_darwin_arm64.go b/vendor/modernc.org/libc/wctype/wctype_darwin_arm64.go
index 8ed193fe..715e12e6 100644
--- a/vendor/modernc.org/libc/wctype/wctype_darwin_arm64.go
+++ b/vendor/modernc.org/libc/wctype/wctype_darwin_arm64.go
@@ -84,6 +84,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)1999 Citrus Project,
// All rights reserved.
@@ -187,6 +189,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).
//
diff --git a/vendor/modernc.org/libc/wctype/wctype_windows_386.go b/vendor/modernc.org/libc/wctype/wctype_windows_386.go
index 56f1502a..2bc052df 100644
--- a/vendor/modernc.org/libc/wctype/wctype_windows_386.go
+++ b/vendor/modernc.org/libc/wctype/wctype_windows_386.go
@@ -1,4 +1,4 @@
-// Code generated by 'ccgo wctype/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 wctype/wctype_windows_386.go -pkgname wctype', DO NOT EDIT.
+// Code generated by 'ccgo wctype\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 wctype\wctype_windows_386.go -pkgname wctype', DO NOT EDIT.
package wctype
@@ -32,7 +32,9 @@ const (
DUMMYUNIONNAME8 = 0
DUMMYUNIONNAME9 = 0
MINGW_DDK_H = 0
+ MINGW_DDRAW_VERSION = 7
MINGW_HAS_DDK_H = 1
+ MINGW_HAS_DDRAW_H = 1
MINGW_HAS_SECURE_API = 1
MINGW_SDK_INIT = 0
UNALIGNED = 0
@@ -58,15 +60,12 @@ const (
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
- X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0
X_CRT_WCTYPEDATA_DEFINED = 0
X_DIGIT = 0x4
X_DLL = 0
X_ERRCODE_DEFINED = 0
X_FILE_OFFSET_BITS = 64
X_HEX = 0x80
- X_ILP32 = 1
- X_INC_CORECRT = 0
X_INC_CRTDEFS = 0
X_INC_CRTDEFS_MACRO = 0
X_INC_MINGW_SECAPI = 0
@@ -84,6 +83,7 @@ const (
X_PTRDIFF_T_ = 0
X_PTRDIFF_T_DEFINED = 0
X_PUNCT = 0x10
+ X_REENTRANT = 1
X_RSIZE_T_DEFINED = 0
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
X_SIZE_T_DEFINED = 0
@@ -141,11 +141,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// *
-// This file has no copyright assigned and is placed in the Public Domain.
-// This file is part of the mingw-w64 runtime package.
-// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-
// This macro holds an monotonic increasing value, which indicates
// a specific fix/patch is present on trunk. This value isn't related to
// minor/major version-macros. It is increased on demand, if a big
@@ -166,12 +161,6 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// MinGW-w64 has some additional C99 printf/scanf feature support.
// So we add some helper macros to ease recognition of them.
-// If _FORTIFY_SOURCE is enabled, some inline functions may use
-// __builtin_va_arg_pack(). GCC may report an error if the address
-// of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
-
-// Enable workaround for ABI incompatibility on affected platforms
-
// *
// This file has no copyright assigned and is placed in the Public Domain.
// This file is part of the mingw-w64 runtime package.
@@ -212,28 +201,26 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
// This file is part of the mingw-w64 runtime package.
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
-// for backward compatibility
-
type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
-type Ssize_t = int32 /* corecrt.h:52:13 */
+type Ssize_t = int32 /* crtdefs.h:47:13 */
-type Rsize_t = Size_t /* corecrt.h:57:16 */
+type Rsize_t = Size_t /* crtdefs.h:52:16 */
-type Intptr_t = int32 /* corecrt.h:69:13 */
+type Intptr_t = int32 /* crtdefs.h:64:13 */
-type Uintptr_t = uint32 /* corecrt.h:82:22 */
+type Uintptr_t = uint32 /* crtdefs.h:77:22 */
-type Wint_t = uint16 /* corecrt.h:111:24 */
-type Wctype_t = uint16 /* corecrt.h:112:24 */
+type Wint_t = uint16 /* crtdefs.h:106:24 */
+type Wctype_t = uint16 /* crtdefs.h:107:24 */
-type Errno_t = int32 /* corecrt.h:118:13 */
+type Errno_t = int32 /* crtdefs.h:113:13 */
-type X__time32_t = int32 /* corecrt.h:123:14 */
+type X__time32_t = int32 /* crtdefs.h:118:14 */
-type X__time64_t = int64 /* corecrt.h:128:35 */
+type X__time64_t = int64 /* crtdefs.h:123:35 */
-type Time_t = X__time32_t /* corecrt.h:141:20 */
+type Time_t = X__time32_t /* crtdefs.h:136:20 */
type Threadlocaleinfostruct = struct {
Frefcount int32
@@ -259,29 +246,29 @@ type Threadlocaleinfostruct = struct {
Fpclmap uintptr
Fpcumap uintptr
Flc_time_curr uintptr
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type Pthreadlocinfo = uintptr /* corecrt.h:437:39 */
-type Pthreadmbcinfo = uintptr /* corecrt.h:438:36 */
+type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
+type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
type Localeinfo_struct = struct {
Flocinfo Pthreadlocinfo
Fmbcinfo Pthreadmbcinfo
-} /* corecrt.h:441:9 */
+} /* crtdefs.h:428:9 */
-type X_locale_tstruct = Localeinfo_struct /* corecrt.h:444:3 */
-type X_locale_t = uintptr /* corecrt.h:444:19 */
+type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
+type X_locale_t = uintptr /* crtdefs.h:431:19 */
type TagLC_ID = struct {
FwLanguage uint16
FwCountry uint16
FwCodePage uint16
-} /* corecrt.h:435:1 */
+} /* crtdefs.h:422:1 */
-type LC_ID = TagLC_ID /* corecrt.h:452:3 */
-type LPLC_ID = uintptr /* corecrt.h:452:9 */
+type LC_ID = TagLC_ID /* crtdefs.h:439:3 */
+type LPLC_ID = uintptr /* crtdefs.h:439:9 */
-type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
+type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
type Wctrans_t = Wchar_t /* wctype.h:174:19 */