linux/amd64: switch to tcl8.6.10 and regenerate

This commit is contained in:
Jan Mercl
2021-10-23 21:11:59 +02:00
parent 064df839a4
commit 9f43b4373b
7 changed files with 14663 additions and 11944 deletions

10
go.mod
View File

@@ -4,10 +4,10 @@ go 1.15
require (
github.com/mattn/go-sqlite3 v1.14.8
golang.org/x/sys v0.0.0-20210902050250-f475640dd07b
modernc.org/ccgo/v3 v3.12.17
modernc.org/libc v1.11.23
golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac
modernc.org/ccgo/v3 v3.12.39
modernc.org/libc v1.11.40
modernc.org/mathutil v1.4.1
modernc.org/tcl v1.7.3
modernc.org/z v1.2.5
modernc.org/tcl v1.8.1
modernc.org/z v1.2.7
)

41
go.sum
View File

@@ -2,6 +2,8 @@ github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4
github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
github.com/google/go-cmp v0.5.3 h1:x95R7cp+rSeeqAMI2knLtQ0DKlaBhv2NrtrOvafPHRo=
github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
@@ -26,8 +28,9 @@ golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201126233918-771906719818/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210902050250-f475640dd07b h1:S7hKs0Flbq0bbc9xgYt4stIEG1zNDFqyrPwAX2Wj/sE=
golang.org/x/sys v0.0.0-20210902050250-f475640dd07b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac h1:oN6lz7iLW/YC7un8pq+9bOLyXrprv2+DKfkJY+2LJJw=
golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
@@ -49,8 +52,10 @@ modernc.org/cc/v3 v3.35.0/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
modernc.org/cc/v3 v3.35.4/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
modernc.org/cc/v3 v3.35.5/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
modernc.org/cc/v3 v3.35.7/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
modernc.org/cc/v3 v3.35.8 h1:jJydTMwMwOdv78Ij8hZVTS2uLP8LroN0ey0r+dwFMJg=
modernc.org/cc/v3 v3.35.8/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
modernc.org/cc/v3 v3.35.10/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
modernc.org/cc/v3 v3.35.15 h1:hb4dYlebd23NPxULTgLPoM5pI3QBgInCOHPJQiff5PA=
modernc.org/cc/v3 v3.35.15/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
modernc.org/ccgo/v3 v3.9.5/go.mod h1:umuo2EP2oDSBnD3ckjaVUXMrmeAw8C8OSICVa0iFf60=
modernc.org/ccgo/v3 v3.10.0/go.mod h1:c0yBmkRFi7uW4J7fwx/JiijwOjeAeR2NoSaRVFPmjMw=
modernc.org/ccgo/v3 v3.11.0/go.mod h1:dGNposbDp9TOZ/1KBxghxtUp/bzErD0/0QW4hhSaBMI=
@@ -61,8 +66,16 @@ modernc.org/ccgo/v3 v3.12.6/go.mod h1:0Ji3ruvpFPpz+yu+1m0wk68pdr/LENABhTrDkMDWH6
modernc.org/ccgo/v3 v3.12.8/go.mod h1:Hq9keM4ZfjCDuDXxaHptpv9N24JhgBZmUG5q60iLgUo=
modernc.org/ccgo/v3 v3.12.11/go.mod h1:0jVcmyDwDKDGWbcrzQ+xwJjbhZruHtouiBEvDfoIsdg=
modernc.org/ccgo/v3 v3.12.14/go.mod h1:GhTu1k0YCpJSuWwtRAEHAol5W7g1/RRfS4/9hc9vF5I=
modernc.org/ccgo/v3 v3.12.17 h1:EO9eyRkIyFtsv4uuTdJq3y8Ly71NNFrz1znv7aps0Vg=
modernc.org/ccgo/v3 v3.12.17/go.mod h1:apbh9Axl0CacWmz9TPZEQc8O8eMCw4MpkN6g0y/f7ro=
modernc.org/ccgo/v3 v3.12.18/go.mod h1:jvg/xVdWWmZACSgOiAhpWpwHWylbJaSzayCqNOJKIhs=
modernc.org/ccgo/v3 v3.12.20/go.mod h1:aKEdssiu7gVgSy/jjMastnv/q6wWGRbszbheXgWRHc8=
modernc.org/ccgo/v3 v3.12.21/go.mod h1:ydgg2tEprnyMn159ZO/N4pLBqpL7NOkJ88GT5zNU2dE=
modernc.org/ccgo/v3 v3.12.22/go.mod h1:nyDVFMmMWhMsgQw+5JH6B6o4MnZ+UQNw1pp52XYFPRk=
modernc.org/ccgo/v3 v3.12.25/go.mod h1:UaLyWI26TwyIT4+ZFNjkyTbsPsY3plAEB6E7L/vZV3w=
modernc.org/ccgo/v3 v3.12.29/go.mod h1:FXVjG7YLf9FetsS2OOYcwNhcdOLGt8S9bQ48+OP75cE=
modernc.org/ccgo/v3 v3.12.36/go.mod h1:uP3/Fiezp/Ga8onfvMLpREq+KUjUmYMxXPO8tETHtA8=
modernc.org/ccgo/v3 v3.12.38/go.mod h1:93O0G7baRST1vNj4wnZ49b1kLxt0xCW5Hsa2qRaZPqc=
modernc.org/ccgo/v3 v3.12.39 h1:a5VerUVWhtfhVTiLDKIcebmVzXY1U9PeUrKJ71unE9w=
modernc.org/ccgo/v3 v3.12.39/go.mod h1:0r9ejJghrz/33dA6cF6m6m6Glk1uWs0pwagU5T4wOf8=
modernc.org/httpfs v1.0.6 h1:AAgIpFZRXuYnkjftxTAZwMIiwEqAfk8aVB2/oA6nAeM=
modernc.org/httpfs v1.0.6/go.mod h1:7dosgurJGp0sPaRanU53W4xZYKh14wfzX420oZADeHM=
modernc.org/libc v1.9.8/go.mod h1:U1eq8YWr/Kc1RWCMFUWEdkTg8OTcfLw2kY8EDwl039w=
@@ -75,8 +88,16 @@ modernc.org/libc v1.11.11/go.mod h1:lXEp9QOOk4qAYOtL3BmMve99S5Owz7Qyowzvg6LiZso=
modernc.org/libc v1.11.13/go.mod h1:ZYawJWlXIzXy2Pzghaf7YfM8OKacP3eZQI81PDLFdY8=
modernc.org/libc v1.11.16/go.mod h1:+DJquzYi+DMRUtWI1YNxrlQO6TcA5+dRRiq8HWBWRC8=
modernc.org/libc v1.11.19/go.mod h1:e0dgEame6mkydy19KKaVPBeEnyJB4LGNb0bBH1EtQ3I=
modernc.org/libc v1.11.23 h1:NbVKe+RLgznoktr7DOGKreaJCtWT8VBtBL6YyLQ5NjE=
modernc.org/libc v1.11.23/go.mod h1:FOSzE0UwookyT1TtCJrRkvsOrX2k38HoInhw+cSCUGk=
modernc.org/libc v1.11.24/go.mod h1:FOSzE0UwookyT1TtCJrRkvsOrX2k38HoInhw+cSCUGk=
modernc.org/libc v1.11.26/go.mod h1:SFjnYi9OSd2W7f4ct622o/PAYqk7KHv6GS8NZULIjKY=
modernc.org/libc v1.11.27/go.mod h1:zmWm6kcFXt/jpzeCgfvUNswM0qke8qVwxqZrnddlDiE=
modernc.org/libc v1.11.28/go.mod h1:Ii4V0fTFcbq3qrv3CNn+OGHAvzqMBvC7dBNyC4vHZlg=
modernc.org/libc v1.11.31/go.mod h1:FpBncUkEAtopRNJj8aRo29qUiyx5AvAlAxzlx9GNaVM=
modernc.org/libc v1.11.34/go.mod h1:+Tzc4hnb1iaX/SKAutJmfzES6awxfU1BPvrrJO0pYLg=
modernc.org/libc v1.11.37/go.mod h1:dCQebOwoO1046yTrfUE5nX1f3YpGZQKNcITUYWlrAWo=
modernc.org/libc v1.11.39/go.mod h1:mV8lJMo2S5A31uD0k1cMu7vrJbSA3J3waQJxpV4iqx8=
modernc.org/libc v1.11.40 h1:kzLVEt6LvBF9KrFgHDVzd597oqgRcBfMN8x5OidNN90=
modernc.org/libc v1.11.40/go.mod h1:yzrLDU+sSjLE+D4bIhS7q1L5UwXDOw99PLSX0BlZvSQ=
modernc.org/mathutil v1.1.1/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
modernc.org/mathutil v1.2.2/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
modernc.org/mathutil v1.4.0/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
@@ -89,9 +110,9 @@ modernc.org/opt v0.1.1 h1:/0RX92k9vwVeDXj+Xn23DKp2VJubL7k8qNffND6qn3A=
modernc.org/opt v0.1.1/go.mod h1:WdSiB5evDcignE70guQKxYUl14mgWtbClRi5wmkkTX0=
modernc.org/strutil v1.1.1 h1:xv+J1BXY3Opl2ALrBwyfEikFAj8pmqcpnfmuwUwcozs=
modernc.org/strutil v1.1.1/go.mod h1:DE+MQQ/hjKBZS2zNInV5hhcipt5rLPWkmpbGeW5mmdw=
modernc.org/tcl v1.7.3 h1:h0Jo9wNNUPxT3FX1wzJa+/ndXbOYK39+/7cdeXt2dVg=
modernc.org/tcl v1.7.3/go.mod h1:Ybr2KomVDxbFMk9tNbehKcbvYheqgEiL5YqlxcSidwI=
modernc.org/tcl v1.8.1 h1:siVlE4O6t06k8CFftpJyb5T76O1uWzDus5hWScEF1F4=
modernc.org/tcl v1.8.1/go.mod h1:7SlzI6/UneYHe4xn3QCyvbHnj6A//hDZVkAWSGHnowg=
modernc.org/token v1.0.0 h1:a0jaWiNMDhDUtqOj09wvjWWAqd3q7WpBulmL9H2egsk=
modernc.org/token v1.0.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM=
modernc.org/z v1.2.5 h1:z84pUEfsq9pHDczSxdFFARBrVnfMVVaSGLLzLSvzPfg=
modernc.org/z v1.2.5/go.mod h1:Mb/+TeeyfL5jrWprDUFlazAhw9P29Udgef/TzJXsOdk=
modernc.org/z v1.2.7 h1:N0BrQ6wWlEkF+jj1phyav9guASZcWb5j+TuwHcWLWzY=
modernc.org/z v1.2.7/go.mod h1:+L7Vxulgf/QRxha9syRObResxBwvPEDs53Cy43g47Ls=

View File

@@ -698,6 +698,8 @@ const (
X_ASSERT_H = 1
X_ATFILE_SOURCE = 1
X_BITS_BYTESWAP_H = 1
X_BITS_ENDIANNESS_H = 1
X_BITS_ENDIAN_H = 1
X_BITS_ERRNO_H = 1
X_BITS_FLOATN_COMMON_H = 0
X_BITS_FLOATN_H = 0
@@ -706,6 +708,7 @@ const (
X_BITS_PTHREADTYPES_COMMON_H = 1
X_BITS_STDINT_INTN_H = 1
X_BITS_STDIO_LIM_H = 1
X_BITS_TIME64_H = 1
X_BITS_TYPESIZES_H = 1
X_BITS_TYPES_H = 1
X_BITS_TYPES_LOCALE_T_H = 1
@@ -802,6 +805,7 @@ const (
X_POSIX_V7_LPBIG_OFFBIG = -1
X_POSIX_VDISABLE = 0
X_POSIX_VERSION = 200809
X_RWLOCK_INTERNAL_H = 0
X_SIZET_ = 0
X_SIZE_T = 0
X_SIZE_T_ = 0
@@ -820,6 +824,7 @@ const (
X_SYS_SELECT_H = 1
X_SYS_SIZE_T_H = 0
X_SYS_TYPES_H = 1
X_THREAD_MUTEX_INTERNAL_H = 1
X_THREAD_SHARED_TYPES_H = 1
X_T_SIZE = 0
X_T_SIZE_ = 0
@@ -853,7 +858,7 @@ const (
Unix = 1
)
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -868,11 +873,11 @@ const (
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// ISO C99 Standard: 7.2 Diagnostics <assert.h>
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -887,7 +892,7 @@ const (
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// void assert (int expression);
//
@@ -900,7 +905,7 @@ const (
// error message with the error text for ERRNUM and abort.
// (This is a GNU extension.)
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -915,11 +920,11 @@ const (
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// ISO C99 Standard 7.4: Character handling <ctype.h>
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -934,10 +939,10 @@ const (
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -952,7 +957,7 @@ const (
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
@@ -964,7 +969,8 @@ const (
// endian). We define the bit value interpretations here dependent on the
// machine's byte order.
// Copyright (C) 1992-2018 Free Software Foundation, Inc.
// Endian macros for string.h functions
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -1000,7 +1006,7 @@ const ( /* ctype.h:46:1: */
// the `_SC_*' symbols for the NAME argument to `sysconf';
// and the `_CS_*' symbols for the NAME argument to `confstr'.
// `sysconf', `pathconf', and `confstr' NAME values. Generic version.
// Copyright (C) 1993-2018 Free Software Foundation, Inc.
// Copyright (C) 1993-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -1015,7 +1021,7 @@ const ( /* ctype.h:46:1: */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Values for the NAME argument to `pathconf' and `fpathconf'.
const ( /* confname.h:24:1: */
@@ -1364,16 +1370,11 @@ const ( /* confname.h:71:1: */
_SC_THREAD_ROBUST_PRIO_PROTECT = 248
)
// In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
// are already defined.
// BSD/OS 3.1 and FreeBSD [23].x require the MACHINE_ANSI_H check here.
// NetBSD 5 requires the I386_ANSI_H and X86_64_ANSI_H checks here.
// A null pointer constant.
// XPG requires a few symbols from <sys/wait.h> being defined.
// Definitions of flag bits for `waitpid' et al.
// Copyright (C) 1992-2018 Free Software Foundation, Inc.
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -1388,7 +1389,7 @@ const ( /* confname.h:71:1: */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Bits in the third argument to `waitpid'.
@@ -3515,7 +3516,7 @@ type _G_fpos_t = struct {
} /* __fpos_t.h:10:9 */
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3530,7 +3531,7 @@ type _G_fpos_t = struct {
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
@@ -3596,7 +3597,7 @@ type fpos_t = _G_fpos64_t /* stdio.h:86:20 */
// If we are compiling with optimizing read this file. It contains
// several optimizing inline functions and macros.
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3611,11 +3612,11 @@ type fpos_t = _G_fpos64_t /* stdio.h:86:20 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// POSIX Standard: 2.10 Symbolic Constants <unistd.h>
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3630,7 +3631,7 @@ type fpos_t = _G_fpos64_t /* stdio.h:86:20 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// These may be used to determine what facilities are present at compile time.
// Their values can be obtained at run time from `sysconf'.
@@ -3756,7 +3757,7 @@ type fpos_t = _G_fpos64_t /* stdio.h:86:20 */
//
// Define POSIX options for Linux.
// Copyright (C) 1996-2018 Free Software Foundation, Inc.
// Copyright (C) 1996-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3771,13 +3772,16 @@ type fpos_t = _G_fpos64_t /* stdio.h:86:20 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; see the file COPYING.LIB. If
// not, see <http://www.gnu.org/licenses/>.
// not, see <https://www.gnu.org/licenses/>.
// Job control is supported.
// Processes have a saved set-user-ID and a saved set-group-ID.
// Priority scheduling is supported.
// Priority scheduling is not supported with the correct semantics,
// but GNU/Linux applications expect that the corresponding interfaces
// are available, even though the semantics do not meet the POSIX
// requirements. See glibc bug 14829.
// Synchronizing file data is supported.
@@ -3880,7 +3884,7 @@ type fpos_t = _G_fpos64_t /* stdio.h:86:20 */
// Typed memory objects are not available.
// Get the environment definitions from Unix98.
// Copyright (C) 1999-2018 Free Software Foundation, Inc.
// Copyright (C) 1999-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3895,7 +3899,7 @@ type fpos_t = _G_fpos64_t /* stdio.h:86:20 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Determine the wordsize from the preprocessor defines.
@@ -3938,7 +3942,7 @@ type fpos_t = _G_fpos64_t /* stdio.h:86:20 */
// All functions that are not declared anywhere else.
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3953,11 +3957,11 @@ type fpos_t = _G_fpos64_t /* stdio.h:86:20 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
// Copyright (C) 1989-2018 Free Software Foundation, Inc.
// Copyright (C) 1989-2020 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
@@ -3989,15 +3993,6 @@ type fpos_t = _G_fpos64_t /* stdio.h:86:20 */
// This avoids lossage on SunOS but only if stdtypes.h comes first.
// There's no way to win with the other order! Sun lossage.
// On 4.3bsd-net2, make sure ansi.h is included, so we have
// one less case to deal with in the following.
// On FreeBSD 5, machine/ansi.h does not exist anymore...
// In 4.3bsd-net2, machine/ansi.h defines these symbols, which are
// defined if the corresponding type is *not* defined.
// FreeBSD-2.1 defines _MACHINE_ANSI_H_ instead of _ANSI_H_.
// NetBSD defines _I386_ANSI_H_ and _X86_64_ANSI_H_ instead of _ANSI_H_
// Sequent's header files use _PTRDIFF_T_ in some conflicting way.
// Just ignore it.
@@ -4032,11 +4027,6 @@ type fpos_t = _G_fpos64_t /* stdio.h:86:20 */
// Define this type if we are doing the whole job,
// or if we want this type in particular.
// In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
// are already defined.
// BSD/OS 3.1 and FreeBSD [23].x require the MACHINE_ANSI_H check here.
// NetBSD 5 requires the I386_ANSI_H and X86_64_ANSI_H checks here.
// A null pointer constant.
// The Single Unix specification says that some more types are
@@ -4053,16 +4043,11 @@ type intptr_t = int64 /* unistd.h:267:20 */
type socklen_t = uint32 /* unistd.h:274:21 */
// In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
// are already defined.
// BSD/OS 3.1 and FreeBSD [23].x require the MACHINE_ANSI_H check here.
// NetBSD 5 requires the I386_ANSI_H and X86_64_ANSI_H checks here.
// A null pointer constant.
// XPG requires a few symbols from <sys/wait.h> being defined.
// Definitions of flag bits for `waitpid' et al.
// Copyright (C) 1992-2018 Free Software Foundation, Inc.
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4077,7 +4062,7 @@ type socklen_t = uint32 /* unistd.h:274:21 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Bits in the third argument to `waitpid'.
@@ -4090,7 +4075,7 @@ type socklen_t = uint32 /* unistd.h:274:21 */
type idtype_t = uint32 /* waitflags.h:57:3 */
// Definitions of status bits for `wait' et al.
// Copyright (C) 1992-2018 Free Software Foundation, Inc.
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4105,7 +4090,7 @@ type idtype_t = uint32 /* waitflags.h:57:3 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Everything extant so far uses these same bits.
@@ -4132,7 +4117,7 @@ type idtype_t = uint32 /* waitflags.h:57:3 */
// _FloatN API tests for enablement.
// Macros to control TS 18661-3 glibc features on x86.
// Copyright (C) 2017-2018 Free Software Foundation, Inc.
// Copyright (C) 2017-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4147,9 +4132,9 @@ type idtype_t = uint32 /* waitflags.h:57:3 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4164,7 +4149,7 @@ type idtype_t = uint32 /* waitflags.h:57:3 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Defined to 1 if the current compiler invocation provides a
// floating-point type with the IEEE 754 binary128 format, and this
@@ -4208,7 +4193,7 @@ type idtype_t = uint32 /* waitflags.h:57:3 */
// Macros to control TS 18661-3 glibc features where the same
// definitions are appropriate for all platforms.
// Copyright (C) 2017-2018 Free Software Foundation, Inc.
// Copyright (C) 2017-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4223,9 +4208,9 @@ type idtype_t = uint32 /* waitflags.h:57:3 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4240,10 +4225,10 @@ type idtype_t = uint32 /* waitflags.h:57:3 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Properties of long double type. ldbl-96 version.
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4258,7 +4243,7 @@ type idtype_t = uint32 /* waitflags.h:57:3 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// long double is distinct from double, so there is nothing to
// define here.
@@ -4327,7 +4312,7 @@ type lldiv_t = struct {
rem int64
} /* stdlib.h:80:5 */
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4342,11 +4327,11 @@ type lldiv_t = struct {
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// POSIX Standard: 2.6 Primitive System Data Types <sys/types.h>
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4361,10 +4346,10 @@ type lldiv_t = struct {
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4379,7 +4364,7 @@ type lldiv_t = struct {
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
@@ -4408,7 +4393,7 @@ type caddr_t = uintptr /* types.h:115:19 */
type key_t = int32 /* types.h:121:17 */
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4423,7 +4408,7 @@ type key_t = int32 /* types.h:121:17 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
@@ -4431,7 +4416,7 @@ type key_t = int32 /* types.h:121:17 */
type clock_t = int64 /* clock_t.h:7:19 */
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4446,7 +4431,7 @@ type clock_t = int64 /* clock_t.h:7:19 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
@@ -4454,7 +4439,7 @@ type clock_t = int64 /* clock_t.h:7:19 */
type clockid_t = int32 /* clockid_t.h:7:21 */
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4469,7 +4454,7 @@ type clockid_t = int32 /* clockid_t.h:7:21 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
@@ -4477,7 +4462,7 @@ type clockid_t = int32 /* clockid_t.h:7:21 */
type time_t = int64 /* time_t.h:7:18 */
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4492,14 +4477,14 @@ type time_t = int64 /* time_t.h:7:18 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
// Timer ID returned by `timer_create'.
type timer_t = uintptr /* timer_t.h:7:19 */
// Copyright (C) 1989-2018 Free Software Foundation, Inc.
// Copyright (C) 1989-2020 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
@@ -4531,15 +4516,6 @@ type timer_t = uintptr /* timer_t.h:7:19 */
// This avoids lossage on SunOS but only if stdtypes.h comes first.
// There's no way to win with the other order! Sun lossage.
// On 4.3bsd-net2, make sure ansi.h is included, so we have
// one less case to deal with in the following.
// On FreeBSD 5, machine/ansi.h does not exist anymore...
// In 4.3bsd-net2, machine/ansi.h defines these symbols, which are
// defined if the corresponding type is *not* defined.
// FreeBSD-2.1 defines _MACHINE_ANSI_H_ instead of _ANSI_H_.
// NetBSD defines _I386_ANSI_H_ and _X86_64_ANSI_H_ instead of _ANSI_H_
// Sequent's header files use _PTRDIFF_T_ in some conflicting way.
// Just ignore it.
@@ -4574,11 +4550,6 @@ type timer_t = uintptr /* timer_t.h:7:19 */
// Define this type if we are doing the whole job,
// or if we want this type in particular.
// In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
// are already defined.
// BSD/OS 3.1 and FreeBSD [23].x require the MACHINE_ANSI_H check here.
// NetBSD 5 requires the I386_ANSI_H and X86_64_ANSI_H checks here.
// A null pointer constant.
// Old compatibility names for C types.
@@ -4589,7 +4560,7 @@ type uint = uint32 /* types.h:150:22 */
// These size-specific names are used by some of the inet code.
// Define intN_t types.
// Copyright (C) 2017-2018 Free Software Foundation, Inc.
// Copyright (C) 2017-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4604,10 +4575,10 @@ type uint = uint32 /* types.h:150:22 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4622,7 +4593,7 @@ type uint = uint32 /* types.h:150:22 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
@@ -4631,14 +4602,13 @@ type int16_t = int16 /* stdint-intn.h:25:19 */
type int32_t = int32 /* stdint-intn.h:26:19 */
type int64_t = int64 /* stdint-intn.h:27:19 */
// For GCC 2.7 and later, we can use specific type-size attributes.
// These were defined by ISO C without the first `_'.
type u_int8_t = uint8 /* types.h:158:19 */
type u_int16_t = uint16 /* types.h:159:20 */
type u_int32_t = uint32 /* types.h:160:20 */
type u_int64_t = uint64 /* types.h:161:20 */
type u_int8_t = uint32 /* types.h:177:1 */
type u_int16_t = uint32 /* types.h:178:1 */
type u_int32_t = uint32 /* types.h:179:1 */
type u_int64_t = uint32 /* types.h:180:1 */
type register_t = int32 /* types.h:182:13 */
type register_t = int32 /* types.h:164:13 */
// A set of signals to be blocked, unblocked, or waited for.
type sigset_t = struct{ __val [16]uint64 } /* sigset_t.h:7:20 */
@@ -4646,7 +4616,7 @@ type sigset_t = struct{ __val [16]uint64 } /* sigset_t.h:7:20 */
// Get definition of timer specification structures.
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4661,7 +4631,7 @@ type sigset_t = struct{ __val [16]uint64 } /* sigset_t.h:7:20 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
@@ -4675,7 +4645,27 @@ type timeval = struct {
// NB: Include guard matches what <linux/time.h> uses.
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
// Endian macros for string.h functions
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4692,14 +4682,12 @@ type timeval = struct {
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
// POSIX.1b structure for a time value. This is like a `struct timeval' but
// has nanoseconds instead of microseconds.
type timespec = struct {
tv_sec int64
tv_nsec int64
} /* struct_timespec.h:9:1 */
} /* struct_timespec.h:10:1 */
type suseconds_t = int64 /* select.h:43:23 */
@@ -4716,16 +4704,16 @@ type fd_mask = int64 /* select.h:77:19 */
// Define some inlines helping to catch common problems.
type blksize_t = int64 /* types.h:202:21 */
type blksize_t = int64 /* types.h:185:21 */
// Types from the Large File Support interface.
type blkcnt_t = int64 /* types.h:222:22 */ // Type to count number of disk blocks.
type fsblkcnt_t = uint64 /* types.h:226:24 */ // Type to count file system blocks.
type fsfilcnt_t = uint64 /* types.h:230:24 */ // Type to count file system inodes.
type blkcnt_t = int64 /* types.h:205:22 */ // Type to count number of disk blocks.
type fsblkcnt_t = uint64 /* types.h:209:24 */ // Type to count file system blocks.
type fsfilcnt_t = uint64 /* types.h:213:24 */ // Type to count file system inodes.
// Now add the thread types.
// Declaration of common pthread types for all architectures.
// Copyright (C) 2017-2018 Free Software Foundation, Inc.
// Copyright (C) 2017-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4740,11 +4728,11 @@ type fsfilcnt_t = uint64 /* types.h:230:24 */ // Type to count file system inode
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// For internal mutex and condition variable definitions.
// Common threading primitives definitions for both POSIX and C11.
// Copyright (C) 2017-2018 Free Software Foundation, Inc.
// Copyright (C) 2017-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4759,7 +4747,7 @@ type fsfilcnt_t = uint64 /* types.h:230:24 */ // Type to count file system inode
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Arch-specific definitions. Each architecture must define the following
// macros to define the expected sizes of pthread data types:
@@ -4774,36 +4762,6 @@ type fsfilcnt_t = uint64 /* types.h:230:24 */ // Type to count file system inode
// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t.
// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
//
// Also, the following macros must be define for internal pthread_mutex_t
// struct definitions (struct __pthread_mutex_s):
//
// __PTHREAD_COMPAT_PADDING_MID - any additional members after 'kind'
// and before '__spin' (for 64 bits) or
// '__nusers' (for 32 bits).
// __PTHREAD_COMPAT_PADDING_END - any additional members at the end of
// the internal structure.
// __PTHREAD_MUTEX_LOCK_ELISION - 1 if the architecture supports lock
// elision or 0 otherwise.
// __PTHREAD_MUTEX_NUSERS_AFTER_KIND - control where to put __nusers. The
// preferred value for new architectures
// is 0.
// __PTHREAD_MUTEX_USE_UNION - control whether internal __spins and
// __list will be place inside a union for
// linuxthreads compatibility.
// The preferred value for new architectures
// is 0.
//
// For a new port the preferred values for the required defines are:
//
// #define __PTHREAD_COMPAT_PADDING_MID
// #define __PTHREAD_COMPAT_PADDING_END
// #define __PTHREAD_MUTEX_LOCK_ELISION 0
// #define __PTHREAD_MUTEX_NUSERS_AFTER_KIND 0
// #define __PTHREAD_MUTEX_USE_UNION 0
//
// __PTHREAD_MUTEX_LOCK_ELISION can be set to 1 if the hardware plans to
// eventually support lock elision using transactional memory.
//
// The additional macro defines any constraint for the lock alignment
// inside the thread structures:
//
@@ -4812,11 +4770,53 @@ type fsfilcnt_t = uint64 /* types.h:230:24 */ // Type to count file system inode
// Same idea but for the once locking primitive:
//
// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// And finally the internal pthread_rwlock_t (struct __pthread_rwlock_arch_t)
// must be defined.
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Determine the wordsize from the preprocessor defines.
// Both x86-64 and x32 use the 64-bit system call interface.
// Common definition of pthread_mutex_t.
type __pthread_internal_list = struct {
__prev uintptr
__next uintptr
} /* thread-shared-types.h:49:9 */
type __pthread_internal_slist = struct{ __next uintptr } /* thread-shared-types.h:55:9 */
// Arch-specific mutex definitions. A generic implementation is provided
// by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture
// can override it by defining:
//
// 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t
// definition). It should contains at least the internal members
// defined in the generic version.
//
// 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with
// atomic operations.
//
// 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization.
// It should initialize the mutex internal flag.
// x86 internal mutex struct definitions.
// Copyright (C) 2019-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4833,11 +4833,49 @@ type fsfilcnt_t = uint64 /* types.h:230:24 */ // Type to count file system inode
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// Determine the wordsize from the preprocessor defines.
type __pthread_mutex_s = struct {
__lock int32
__count uint32
__owner int32
__nusers uint32
__kind int32
__spins int16
__elision int16
__list struct {
__prev uintptr
__next uintptr
}
} /* struct_mutex.h:22:1 */
// Both x86-64 and x32 use the 64-bit system call interface.
// Arch-sepecific read-write lock definitions. A generic implementation is
// provided by struct_rwlock.h. If required, an architecture can override it
// by defining:
//
// 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition).
// It should contain at least the internal members defined in the
// generic version.
//
// 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization.
// It should initialize the rwlock internal type.
// Definitions for internal mutex struct.
// x86 internal rwlock struct definitions.
// Copyright (C) 2019-2020 Free Software Foundation, Inc.
//
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
type __pthread_rwlock_arch_t = struct {
__readers uint32
@@ -4853,30 +4891,7 @@ type __pthread_rwlock_arch_t = struct {
__pad2 uint64
__flags uint32
_ [4]byte
} /* pthreadtypes-arch.h:65:1 */
// Common definition of pthread_mutex_t.
type __pthread_internal_list = struct {
__prev uintptr
__next uintptr
} /* thread-shared-types.h:82:9 */
// Lock elision support.
type __pthread_mutex_s = struct {
__lock int32
__count uint32
__owner int32
__nusers uint32
__kind int32
__spins int16
__elision int16
__list struct {
__prev uintptr
__next uintptr
}
} /* thread-shared-types.h:118:1 */
} /* struct_rwlock.h:23:1 */
// Common definition of pthread_cond_t.
@@ -4888,7 +4903,7 @@ type __pthread_cond_s = struct {
__g1_orig_size uint32
__wrefs uint32
__g_signals [2]uint32
} /* thread-shared-types.h:171:1 */
} /* thread-shared-types.h:92:1 */
// Thread identifiers. The structure of the attribute type is not
// exposed on purpose.
@@ -4977,7 +4992,7 @@ type drand48_data = struct {
// POSIX.1-2008 extended locale interface (see locale.h).
// Definition of locale_t.
// Copyright (C) 2017-2018 Free Software Foundation, Inc.
// Copyright (C) 2017-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4992,10 +5007,10 @@ type drand48_data = struct {
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Definition of struct __locale_struct and __locale_t.
// Copyright (C) 1997-2018 Free Software Foundation, Inc.
// Copyright (C) 1997-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
// Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
//
@@ -5011,7 +5026,7 @@ type drand48_data = struct {
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// POSIX.1-2008: the locale_t type, representing a locale context
// (implementation-namespace version). This type should be treated

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -561,6 +561,8 @@ const (
X_ASSERT_H = 1
X_ATFILE_SOURCE = 1
X_BITS_BYTESWAP_H = 1
X_BITS_ENDIANNESS_H = 1
X_BITS_ENDIAN_H = 1
X_BITS_FLOATN_COMMON_H = 0
X_BITS_FLOATN_H = 0
X_BITS_POSIX_OPT_H = 1
@@ -568,6 +570,7 @@ const (
X_BITS_PTHREADTYPES_COMMON_H = 1
X_BITS_STDINT_INTN_H = 1
X_BITS_STDIO_LIM_H = 1
X_BITS_TIME64_H = 1
X_BITS_TYPESIZES_H = 1
X_BITS_TYPES_H = 1
X_BITS_TYPES_LOCALE_T_H = 1
@@ -663,6 +666,7 @@ const (
X_POSIX_V7_LPBIG_OFFBIG = -1
X_POSIX_VDISABLE = 0
X_POSIX_VERSION = 200809
X_RWLOCK_INTERNAL_H = 0
X_SIZET_ = 0
X_SIZE_T = 0
X_SIZE_T_ = 0
@@ -681,6 +685,7 @@ const (
X_SYS_SELECT_H = 1
X_SYS_SIZE_T_H = 0
X_SYS_TYPES_H = 1
X_THREAD_MUTEX_INTERNAL_H = 1
X_THREAD_SHARED_TYPES_H = 1
X_T_SIZE = 0
X_T_SIZE_ = 0
@@ -714,7 +719,7 @@ const (
Unix = 1
)
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -729,11 +734,11 @@ const (
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// ISO C99 Standard 7.4: Character handling <ctype.h>
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -748,10 +753,10 @@ const (
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -766,7 +771,7 @@ const (
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
@@ -778,7 +783,8 @@ const (
// endian). We define the bit value interpretations here dependent on the
// machine's byte order.
// Copyright (C) 1992-2018 Free Software Foundation, Inc.
// Endian macros for string.h functions
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -814,7 +820,7 @@ const ( /* ctype.h:46:1: */
// the `_SC_*' symbols for the NAME argument to `sysconf';
// and the `_CS_*' symbols for the NAME argument to `confstr'.
// `sysconf', `pathconf', and `confstr' NAME values. Generic version.
// Copyright (C) 1993-2018 Free Software Foundation, Inc.
// Copyright (C) 1993-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -829,7 +835,7 @@ const ( /* ctype.h:46:1: */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Values for the NAME argument to `pathconf' and `fpathconf'.
const ( /* confname.h:24:1: */
@@ -1178,16 +1184,11 @@ const ( /* confname.h:71:1: */
_SC_THREAD_ROBUST_PRIO_PROTECT = 248
)
// In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
// are already defined.
// BSD/OS 3.1 and FreeBSD [23].x require the MACHINE_ANSI_H check here.
// NetBSD 5 requires the I386_ANSI_H and X86_64_ANSI_H checks here.
// A null pointer constant.
// XPG requires a few symbols from <sys/wait.h> being defined.
// Definitions of flag bits for `waitpid' et al.
// Copyright (C) 1992-2018 Free Software Foundation, Inc.
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -1202,7 +1203,7 @@ const ( /* confname.h:71:1: */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Bits in the third argument to `waitpid'.
@@ -3334,7 +3335,7 @@ type _G_fpos_t = struct {
} /* __fpos_t.h:10:9 */
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3349,7 +3350,7 @@ type _G_fpos_t = struct {
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
@@ -3412,16 +3413,11 @@ type ssize_t = int64 /* stdio.h:77:19 */
// The type of the second argument to `fgetpos' and `fsetpos'.
type fpos_t = _G_fpos64_t /* stdio.h:86:20 */
// In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
// are already defined.
// BSD/OS 3.1 and FreeBSD [23].x require the MACHINE_ANSI_H check here.
// NetBSD 5 requires the I386_ANSI_H and X86_64_ANSI_H checks here.
// A null pointer constant.
// XPG requires a few symbols from <sys/wait.h> being defined.
// Definitions of flag bits for `waitpid' et al.
// Copyright (C) 1992-2018 Free Software Foundation, Inc.
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3436,7 +3432,7 @@ type fpos_t = _G_fpos64_t /* stdio.h:86:20 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Bits in the third argument to `waitpid'.
@@ -3449,7 +3445,7 @@ type fpos_t = _G_fpos64_t /* stdio.h:86:20 */
type idtype_t = uint32 /* waitflags.h:57:3 */
// Definitions of status bits for `wait' et al.
// Copyright (C) 1992-2018 Free Software Foundation, Inc.
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3464,7 +3460,7 @@ type idtype_t = uint32 /* waitflags.h:57:3 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Everything extant so far uses these same bits.
@@ -3491,7 +3487,7 @@ type idtype_t = uint32 /* waitflags.h:57:3 */
// _FloatN API tests for enablement.
// Macros to control TS 18661-3 glibc features on x86.
// Copyright (C) 2017-2018 Free Software Foundation, Inc.
// Copyright (C) 2017-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3506,9 +3502,9 @@ type idtype_t = uint32 /* waitflags.h:57:3 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3523,7 +3519,7 @@ type idtype_t = uint32 /* waitflags.h:57:3 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Defined to 1 if the current compiler invocation provides a
// floating-point type with the IEEE 754 binary128 format, and this
@@ -3567,7 +3563,7 @@ type idtype_t = uint32 /* waitflags.h:57:3 */
// Macros to control TS 18661-3 glibc features where the same
// definitions are appropriate for all platforms.
// Copyright (C) 2017-2018 Free Software Foundation, Inc.
// Copyright (C) 2017-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3582,9 +3578,9 @@ type idtype_t = uint32 /* waitflags.h:57:3 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3599,10 +3595,10 @@ type idtype_t = uint32 /* waitflags.h:57:3 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Properties of long double type. ldbl-96 version.
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3617,7 +3613,7 @@ type idtype_t = uint32 /* waitflags.h:57:3 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// long double is distinct from double, so there is nothing to
// define here.
@@ -3686,7 +3682,7 @@ type lldiv_t = struct {
rem int64
} /* stdlib.h:80:5 */
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3701,11 +3697,11 @@ type lldiv_t = struct {
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// POSIX Standard: 2.6 Primitive System Data Types <sys/types.h>
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3720,10 +3716,10 @@ type lldiv_t = struct {
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3738,7 +3734,7 @@ type lldiv_t = struct {
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
@@ -3773,7 +3769,7 @@ type caddr_t = uintptr /* types.h:115:19 */
type key_t = int32 /* types.h:121:17 */
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3788,7 +3784,7 @@ type key_t = int32 /* types.h:121:17 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
@@ -3796,7 +3792,7 @@ type key_t = int32 /* types.h:121:17 */
type clock_t = int64 /* clock_t.h:7:19 */
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3811,7 +3807,7 @@ type clock_t = int64 /* clock_t.h:7:19 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
@@ -3819,7 +3815,7 @@ type clock_t = int64 /* clock_t.h:7:19 */
type clockid_t = int32 /* clockid_t.h:7:21 */
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3834,7 +3830,7 @@ type clockid_t = int32 /* clockid_t.h:7:21 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
@@ -3842,7 +3838,7 @@ type clockid_t = int32 /* clockid_t.h:7:21 */
type time_t = int64 /* time_t.h:7:18 */
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3857,14 +3853,14 @@ type time_t = int64 /* time_t.h:7:18 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
// Timer ID returned by `timer_create'.
type timer_t = uintptr /* timer_t.h:7:19 */
// Copyright (C) 1989-2018 Free Software Foundation, Inc.
// Copyright (C) 1989-2020 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
@@ -3896,15 +3892,6 @@ type timer_t = uintptr /* timer_t.h:7:19 */
// This avoids lossage on SunOS but only if stdtypes.h comes first.
// There's no way to win with the other order! Sun lossage.
// On 4.3bsd-net2, make sure ansi.h is included, so we have
// one less case to deal with in the following.
// On FreeBSD 5, machine/ansi.h does not exist anymore...
// In 4.3bsd-net2, machine/ansi.h defines these symbols, which are
// defined if the corresponding type is *not* defined.
// FreeBSD-2.1 defines _MACHINE_ANSI_H_ instead of _ANSI_H_.
// NetBSD defines _I386_ANSI_H_ and _X86_64_ANSI_H_ instead of _ANSI_H_
// Sequent's header files use _PTRDIFF_T_ in some conflicting way.
// Just ignore it.
@@ -3939,11 +3926,6 @@ type timer_t = uintptr /* timer_t.h:7:19 */
// Define this type if we are doing the whole job,
// or if we want this type in particular.
// In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
// are already defined.
// BSD/OS 3.1 and FreeBSD [23].x require the MACHINE_ANSI_H check here.
// NetBSD 5 requires the I386_ANSI_H and X86_64_ANSI_H checks here.
// A null pointer constant.
// Old compatibility names for C types.
@@ -3954,7 +3936,7 @@ type uint = uint32 /* types.h:150:22 */
// These size-specific names are used by some of the inet code.
// Define intN_t types.
// Copyright (C) 2017-2018 Free Software Foundation, Inc.
// Copyright (C) 2017-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3969,10 +3951,10 @@ type uint = uint32 /* types.h:150:22 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -3987,7 +3969,7 @@ type uint = uint32 /* types.h:150:22 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
@@ -3996,14 +3978,13 @@ type int16_t = int16 /* stdint-intn.h:25:19 */
type int32_t = int32 /* stdint-intn.h:26:19 */
type int64_t = int64 /* stdint-intn.h:27:19 */
// For GCC 2.7 and later, we can use specific type-size attributes.
// These were defined by ISO C without the first `_'.
type u_int8_t = uint8 /* types.h:158:19 */
type u_int16_t = uint16 /* types.h:159:20 */
type u_int32_t = uint32 /* types.h:160:20 */
type u_int64_t = uint64 /* types.h:161:20 */
type u_int8_t = uint32 /* types.h:177:1 */
type u_int16_t = uint32 /* types.h:178:1 */
type u_int32_t = uint32 /* types.h:179:1 */
type u_int64_t = uint32 /* types.h:180:1 */
type register_t = int32 /* types.h:182:13 */
type register_t = int32 /* types.h:164:13 */
// A set of signals to be blocked, unblocked, or waited for.
type sigset_t = struct{ __val [16]uint64 } /* sigset_t.h:7:20 */
@@ -4011,7 +3992,7 @@ type sigset_t = struct{ __val [16]uint64 } /* sigset_t.h:7:20 */
// Get definition of timer specification structures.
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4026,7 +4007,7 @@ type sigset_t = struct{ __val [16]uint64 } /* sigset_t.h:7:20 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
@@ -4040,7 +4021,27 @@ type timeval = struct {
// NB: Include guard matches what <linux/time.h> uses.
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
// Endian macros for string.h functions
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4057,14 +4058,12 @@ type timeval = struct {
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
// POSIX.1b structure for a time value. This is like a `struct timeval' but
// has nanoseconds instead of microseconds.
type timespec = struct {
tv_sec int64
tv_nsec int64
} /* struct_timespec.h:9:1 */
} /* struct_timespec.h:10:1 */
type suseconds_t = int64 /* select.h:43:23 */
@@ -4081,16 +4080,16 @@ type fd_mask = int64 /* select.h:77:19 */
// Define some inlines helping to catch common problems.
type blksize_t = int64 /* types.h:202:21 */
type blksize_t = int64 /* types.h:185:21 */
// Types from the Large File Support interface.
type blkcnt_t = int64 /* types.h:222:22 */ // Type to count number of disk blocks.
type fsblkcnt_t = uint64 /* types.h:226:24 */ // Type to count file system blocks.
type fsfilcnt_t = uint64 /* types.h:230:24 */ // Type to count file system inodes.
type blkcnt_t = int64 /* types.h:205:22 */ // Type to count number of disk blocks.
type fsblkcnt_t = uint64 /* types.h:209:24 */ // Type to count file system blocks.
type fsfilcnt_t = uint64 /* types.h:213:24 */ // Type to count file system inodes.
// Now add the thread types.
// Declaration of common pthread types for all architectures.
// Copyright (C) 2017-2018 Free Software Foundation, Inc.
// Copyright (C) 2017-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4105,11 +4104,11 @@ type fsfilcnt_t = uint64 /* types.h:230:24 */ // Type to count file system inode
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// For internal mutex and condition variable definitions.
// Common threading primitives definitions for both POSIX and C11.
// Copyright (C) 2017-2018 Free Software Foundation, Inc.
// Copyright (C) 2017-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4124,7 +4123,7 @@ type fsfilcnt_t = uint64 /* types.h:230:24 */ // Type to count file system inode
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Arch-specific definitions. Each architecture must define the following
// macros to define the expected sizes of pthread data types:
@@ -4139,36 +4138,6 @@ type fsfilcnt_t = uint64 /* types.h:230:24 */ // Type to count file system inode
// __SIZEOF_PTHREAD_BARRIER_T - size of pthread_barrier_t.
// __SIZEOF_PTHREAD_BARRIERATTR_T - size of pthread_barrierattr_t.
//
// Also, the following macros must be define for internal pthread_mutex_t
// struct definitions (struct __pthread_mutex_s):
//
// __PTHREAD_COMPAT_PADDING_MID - any additional members after 'kind'
// and before '__spin' (for 64 bits) or
// '__nusers' (for 32 bits).
// __PTHREAD_COMPAT_PADDING_END - any additional members at the end of
// the internal structure.
// __PTHREAD_MUTEX_LOCK_ELISION - 1 if the architecture supports lock
// elision or 0 otherwise.
// __PTHREAD_MUTEX_NUSERS_AFTER_KIND - control where to put __nusers. The
// preferred value for new architectures
// is 0.
// __PTHREAD_MUTEX_USE_UNION - control whether internal __spins and
// __list will be place inside a union for
// linuxthreads compatibility.
// The preferred value for new architectures
// is 0.
//
// For a new port the preferred values for the required defines are:
//
// #define __PTHREAD_COMPAT_PADDING_MID
// #define __PTHREAD_COMPAT_PADDING_END
// #define __PTHREAD_MUTEX_LOCK_ELISION 0
// #define __PTHREAD_MUTEX_NUSERS_AFTER_KIND 0
// #define __PTHREAD_MUTEX_USE_UNION 0
//
// __PTHREAD_MUTEX_LOCK_ELISION can be set to 1 if the hardware plans to
// eventually support lock elision using transactional memory.
//
// The additional macro defines any constraint for the lock alignment
// inside the thread structures:
//
@@ -4177,11 +4146,53 @@ type fsfilcnt_t = uint64 /* types.h:230:24 */ // Type to count file system inode
// Same idea but for the once locking primitive:
//
// __ONCE_ALIGNMENT - for pthread_once_t/once_flag definition.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// And finally the internal pthread_rwlock_t (struct __pthread_rwlock_arch_t)
// must be defined.
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
// Determine the wordsize from the preprocessor defines.
// Both x86-64 and x32 use the 64-bit system call interface.
// Common definition of pthread_mutex_t.
type __pthread_internal_list = struct {
__prev uintptr
__next uintptr
} /* thread-shared-types.h:49:9 */
type __pthread_internal_slist = struct{ __next uintptr } /* thread-shared-types.h:55:9 */
// Arch-specific mutex definitions. A generic implementation is provided
// by sysdeps/nptl/bits/struct_mutex.h. If required, an architecture
// can override it by defining:
//
// 1. struct __pthread_mutex_s (used on both pthread_mutex_t and mtx_t
// definition). It should contains at least the internal members
// defined in the generic version.
//
// 2. __LOCK_ALIGNMENT for any extra attribute for internal lock used with
// atomic operations.
//
// 3. The macro __PTHREAD_MUTEX_INITIALIZER used for static initialization.
// It should initialize the mutex internal flag.
// x86 internal mutex struct definitions.
// Copyright (C) 2019-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4198,11 +4209,49 @@ type fsfilcnt_t = uint64 /* types.h:230:24 */ // Type to count file system inode
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// Determine the wordsize from the preprocessor defines.
type __pthread_mutex_s = struct {
__lock int32
__count uint32
__owner int32
__nusers uint32
__kind int32
__spins int16
__elision int16
__list struct {
__prev uintptr
__next uintptr
}
} /* struct_mutex.h:22:1 */
// Both x86-64 and x32 use the 64-bit system call interface.
// Arch-sepecific read-write lock definitions. A generic implementation is
// provided by struct_rwlock.h. If required, an architecture can override it
// by defining:
//
// 1. struct __pthread_rwlock_arch_t (used on pthread_rwlock_t definition).
// It should contain at least the internal members defined in the
// generic version.
//
// 2. The macro __PTHREAD_RWLOCK_INITIALIZER used for static initialization.
// It should initialize the rwlock internal type.
// Definitions for internal mutex struct.
// x86 internal rwlock struct definitions.
// Copyright (C) 2019-2020 Free Software Foundation, Inc.
//
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
type __pthread_rwlock_arch_t = struct {
__readers uint32
@@ -4218,30 +4267,7 @@ type __pthread_rwlock_arch_t = struct {
__pad2 uint64
__flags uint32
_ [4]byte
} /* pthreadtypes-arch.h:65:1 */
// Common definition of pthread_mutex_t.
type __pthread_internal_list = struct {
__prev uintptr
__next uintptr
} /* thread-shared-types.h:82:9 */
// Lock elision support.
type __pthread_mutex_s = struct {
__lock int32
__count uint32
__owner int32
__nusers uint32
__kind int32
__spins int16
__elision int16
__list struct {
__prev uintptr
__next uintptr
}
} /* thread-shared-types.h:118:1 */
} /* struct_rwlock.h:23:1 */
// Common definition of pthread_cond_t.
@@ -4253,7 +4279,7 @@ type __pthread_cond_s = struct {
__g1_orig_size uint32
__wrefs uint32
__g_signals [2]uint32
} /* thread-shared-types.h:171:1 */
} /* thread-shared-types.h:92:1 */
// Thread identifiers. The structure of the attribute type is not
// exposed on purpose.
@@ -4342,7 +4368,7 @@ type drand48_data = struct {
// POSIX.1-2008 extended locale interface (see locale.h).
// Definition of locale_t.
// Copyright (C) 2017-2018 Free Software Foundation, Inc.
// Copyright (C) 2017-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4357,10 +4383,10 @@ type drand48_data = struct {
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Definition of struct __locale_struct and __locale_t.
// Copyright (C) 1997-2018 Free Software Foundation, Inc.
// Copyright (C) 1997-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
// Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
//
@@ -4376,7 +4402,7 @@ type drand48_data = struct {
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// POSIX.1-2008: the locale_t type, representing a locale context
// (implementation-namespace version). This type should be treated
@@ -4393,7 +4419,7 @@ type __locale_struct = struct {
type locale_t = uintptr /* locale_t.h:24:20 */
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4408,11 +4434,11 @@ type locale_t = uintptr /* locale_t.h:24:20 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// POSIX Standard: 2.10 Symbolic Constants <unistd.h>
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4427,7 +4453,7 @@ type locale_t = uintptr /* locale_t.h:24:20 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// These may be used to determine what facilities are present at compile time.
// Their values can be obtained at run time from `sysconf'.
@@ -4553,7 +4579,7 @@ type locale_t = uintptr /* locale_t.h:24:20 */
//
// Define POSIX options for Linux.
// Copyright (C) 1996-2018 Free Software Foundation, Inc.
// Copyright (C) 1996-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4568,13 +4594,16 @@ type locale_t = uintptr /* locale_t.h:24:20 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; see the file COPYING.LIB. If
// not, see <http://www.gnu.org/licenses/>.
// not, see <https://www.gnu.org/licenses/>.
// Job control is supported.
// Processes have a saved set-user-ID and a saved set-group-ID.
// Priority scheduling is supported.
// Priority scheduling is not supported with the correct semantics,
// but GNU/Linux applications expect that the corresponding interfaces
// are available, even though the semantics do not meet the POSIX
// requirements. See glibc bug 14829.
// Synchronizing file data is supported.
@@ -4677,7 +4706,7 @@ type locale_t = uintptr /* locale_t.h:24:20 */
// Typed memory objects are not available.
// Get the environment definitions from Unix98.
// Copyright (C) 1999-2018 Free Software Foundation, Inc.
// Copyright (C) 1999-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4692,7 +4721,7 @@ type locale_t = uintptr /* locale_t.h:24:20 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Determine the wordsize from the preprocessor defines.
@@ -4735,7 +4764,7 @@ type locale_t = uintptr /* locale_t.h:24:20 */
// All functions that are not declared anywhere else.
// bits/types.h -- definitions of __*_t types underlying *_t types.
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -4750,11 +4779,11 @@ type locale_t = uintptr /* locale_t.h:24:20 */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// Never include this file directly; use <sys/types.h> instead.
// Copyright (C) 1989-2018 Free Software Foundation, Inc.
// Copyright (C) 1989-2020 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
@@ -4786,15 +4815,6 @@ type locale_t = uintptr /* locale_t.h:24:20 */
// This avoids lossage on SunOS but only if stdtypes.h comes first.
// There's no way to win with the other order! Sun lossage.
// On 4.3bsd-net2, make sure ansi.h is included, so we have
// one less case to deal with in the following.
// On FreeBSD 5, machine/ansi.h does not exist anymore...
// In 4.3bsd-net2, machine/ansi.h defines these symbols, which are
// defined if the corresponding type is *not* defined.
// FreeBSD-2.1 defines _MACHINE_ANSI_H_ instead of _ANSI_H_.
// NetBSD defines _I386_ANSI_H_ and _X86_64_ANSI_H_ instead of _ANSI_H_
// Sequent's header files use _PTRDIFF_T_ in some conflicting way.
// Just ignore it.
@@ -4829,11 +4849,6 @@ type locale_t = uintptr /* locale_t.h:24:20 */
// Define this type if we are doing the whole job,
// or if we want this type in particular.
// In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
// are already defined.
// BSD/OS 3.1 and FreeBSD [23].x require the MACHINE_ANSI_H check here.
// NetBSD 5 requires the I386_ANSI_H and X86_64_ANSI_H checks here.
// A null pointer constant.
// The Single Unix specification says that some more types are
@@ -4847,6 +4862,25 @@ type socklen_t = uint32 /* unistd.h:274:21 */
// Define some macros helping to catch buffer overflows.
// System-specific extensions.
// System-specific extensions of <unistd.h>, Linux version.
// Copyright (C) 2019-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// The GNU C Library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <https://www.gnu.org/licenses/>.
type u64 = sqlite3_uint64 /* speedtest1.c:67:24 */
// State structure for a Hash hash in progress
@@ -5065,12 +5099,16 @@ func speedtest1_timestamp(tls *libc.TLS) sqlite3_int64 { /* speedtest1.c:257:15:
clockVfs = sqlite3.Xsqlite3_vfs_find(tls, uintptr(0))
}
if ((*sqlite3_vfs)(unsafe.Pointer(clockVfs)).iVersion >= 2) && ((*sqlite3_vfs)(unsafe.Pointer(clockVfs)).xCurrentTimeInt64 != uintptr(0)) {
(*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer((clockVfs + 136 /* &.xCurrentTimeInt64 */))))(tls, clockVfs, bp /* &t */)
(*struct {
f func(*libc.TLS, uintptr, uintptr) int32
})(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_vfs)(unsafe.Pointer(clockVfs)).xCurrentTimeInt64})).f(tls, clockVfs, bp /* &t */)
} else {
// var r float64 at bp+8, 8
(*(*func(*libc.TLS, uintptr, uintptr) int32)(unsafe.Pointer((clockVfs + 120 /* &.xCurrentTime */))))(tls, clockVfs, bp+8 /* &r */)
*(*sqlite3_int64)(unsafe.Pointer(bp /* t */)) = (sqlite3_int64(*(*float64)(unsafe.Pointer(bp + 8 /* r */)) * 86400000.0))
(*struct {
f func(*libc.TLS, uintptr, uintptr) int32
})(unsafe.Pointer(&struct{ uintptr }{(*sqlite3_vfs)(unsafe.Pointer(clockVfs)).xCurrentTime})).f(tls, clockVfs, bp+8 /* &r */)
*(*sqlite3_int64)(unsafe.Pointer(bp /* t */)) = (libc.Int64FromFloat64(*(*float64)(unsafe.Pointer(bp + 8 /* r */)) * 86400000.0))
}
return *(*sqlite3_int64)(unsafe.Pointer(bp /* t */))
}
@@ -6538,7 +6576,7 @@ func testset_debug1(tls *libc.TLS) { /* speedtest1.c:2083:6: */
}
}
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -6553,11 +6591,11 @@ func testset_debug1(tls *libc.TLS) { /* speedtest1.c:2083:6: */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// POSIX Standard: 2.6 Primitive System Data Types <sys/types.h>
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
// This file is part of the GNU C Library.
//
// The GNU C Library is free software; you can redistribute it and/or
@@ -6572,7 +6610,7 @@ func testset_debug1(tls *libc.TLS) { /* speedtest1.c:2083:6: */
//
// You should have received a copy of the GNU Lesser General Public
// License along with the GNU C Library; if not, see
// <http://www.gnu.org/licenses/>.
// <https://www.gnu.org/licenses/>.
// POSIX Standard: 2.10 Symbolic Constants <unistd.h>