Adding upstream version 1.65.7.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
5189956325
commit
32b8eb3fd7
4153 changed files with 2487292 additions and 0 deletions
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
*.gz
|
||||
*.zip
|
||||
go.work
|
||||
go.sum
|
||||
musl-*
|
20
AUTHORS
Normal file
20
AUTHORS
Normal file
|
@ -0,0 +1,20 @@
|
|||
# This file lists authors for copyright purposes. This file is distinct from
|
||||
# the CONTRIBUTORS files. See the latter for an explanation.
|
||||
#
|
||||
# Names should be added to this file as:
|
||||
# Name or Organization <email address>
|
||||
#
|
||||
# The email address is not required for organizations.
|
||||
#
|
||||
# Please keep the list sorted.
|
||||
|
||||
Dan Kortschak <dan@kortschak.io>
|
||||
Dan Peterson <danp@danp.net>
|
||||
Fabrice Colliot <f.colliot@gmail.com>
|
||||
Jan Mercl <0xjnml@gmail.com>
|
||||
Jason DeBettencourt <jasond17@gmail.com>
|
||||
Koichi Shiraishi <zchee.io@gmail.com>
|
||||
Marius Orcsik <marius@federated.id>
|
||||
Patricio Whittingslow <graded.sp@gmail.com>
|
||||
Scot C Bontrager <scot@indievisible.org>
|
||||
Steffen Butzer <steffen(dot)butzer@outlook.com>
|
23
CONTRIBUTORS
Normal file
23
CONTRIBUTORS
Normal file
|
@ -0,0 +1,23 @@
|
|||
# This file lists people who contributed code to this repository. The AUTHORS
|
||||
# file lists the copyright holders; this file lists people.
|
||||
#
|
||||
# Names should be added to this file like so:
|
||||
# Name <email address>
|
||||
#
|
||||
# Please keep the list sorted.
|
||||
|
||||
Dan Kortschak <dan@kortschak.io>
|
||||
Dan Peterson <danp@danp.net>
|
||||
Bjørn Wiegell <bj.wiegell@gmail.com>
|
||||
Fabrice Colliot <f.colliot@gmail.com>
|
||||
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>
|
||||
Patricio Whittingslow <graded.sp@gmail.com>
|
||||
Roman Khafizianov <roman@any.org>
|
||||
Scot C Bontrager <scot@indievisible.org>
|
||||
Steffen Butzer <steffen(dot)butzer@outlook.com>
|
||||
W. Michael Petullo <mike@flyn.org>
|
||||
ZHU Zijia <piggynl@outlook.com>
|
193
COPYRIGHT-MUSL
Normal file
193
COPYRIGHT-MUSL
Normal file
|
@ -0,0 +1,193 @@
|
|||
musl as a whole is licensed under the following standard MIT license:
|
||||
|
||||
----------------------------------------------------------------------
|
||||
Copyright © 2005-2020 Rich Felker, et al.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
----------------------------------------------------------------------
|
||||
|
||||
Authors/contributors include:
|
||||
|
||||
A. Wilcox
|
||||
Ada Worcester
|
||||
Alex Dowad
|
||||
Alex Suykov
|
||||
Alexander Monakov
|
||||
Andre McCurdy
|
||||
Andrew Kelley
|
||||
Anthony G. Basile
|
||||
Aric Belsito
|
||||
Arvid Picciani
|
||||
Bartosz Brachaczek
|
||||
Benjamin Peterson
|
||||
Bobby Bingham
|
||||
Boris Brezillon
|
||||
Brent Cook
|
||||
Chris Spiegel
|
||||
Clément Vasseur
|
||||
Daniel Micay
|
||||
Daniel Sabogal
|
||||
Daurnimator
|
||||
David Carlier
|
||||
David Edelsohn
|
||||
Denys Vlasenko
|
||||
Dmitry Ivanov
|
||||
Dmitry V. Levin
|
||||
Drew DeVault
|
||||
Emil Renner Berthing
|
||||
Fangrui Song
|
||||
Felix Fietkau
|
||||
Felix Janda
|
||||
Gianluca Anzolin
|
||||
Hauke Mehrtens
|
||||
He X
|
||||
Hiltjo Posthuma
|
||||
Isaac Dunham
|
||||
Jaydeep Patil
|
||||
Jens Gustedt
|
||||
Jeremy Huntwork
|
||||
Jo-Philipp Wich
|
||||
Joakim Sindholt
|
||||
John Spencer
|
||||
Julien Ramseier
|
||||
Justin Cormack
|
||||
Kaarle Ritvanen
|
||||
Khem Raj
|
||||
Kylie McClain
|
||||
Leah Neukirchen
|
||||
Luca Barbato
|
||||
Luka Perkov
|
||||
M Farkas-Dyck (Strake)
|
||||
Mahesh Bodapati
|
||||
Markus Wichmann
|
||||
Masanori Ogino
|
||||
Michael Clark
|
||||
Michael Forney
|
||||
Mikhail Kremnyov
|
||||
Natanael Copa
|
||||
Nicholas J. Kain
|
||||
orc
|
||||
Pascal Cuoq
|
||||
Patrick Oppenlander
|
||||
Petr Hosek
|
||||
Petr Skocik
|
||||
Pierre Carrier
|
||||
Reini Urban
|
||||
Rich Felker
|
||||
Richard Pennington
|
||||
Ryan Fairfax
|
||||
Samuel Holland
|
||||
Segev Finer
|
||||
Shiz
|
||||
sin
|
||||
Solar Designer
|
||||
Stefan Kristiansson
|
||||
Stefan O'Rear
|
||||
Szabolcs Nagy
|
||||
Timo Teräs
|
||||
Trutz Behn
|
||||
Valentin Ochs
|
||||
Will Dietz
|
||||
William Haddon
|
||||
William Pitcock
|
||||
|
||||
Portions of this software are derived from third-party works licensed
|
||||
under terms compatible with the above MIT license:
|
||||
|
||||
The TRE regular expression implementation (src/regex/reg* and
|
||||
src/regex/tre*) is Copyright © 2001-2008 Ville Laurikari and licensed
|
||||
under a 2-clause BSD license (license text in the source files). The
|
||||
included version has been heavily modified by Rich Felker in 2012, in
|
||||
the interests of size, simplicity, and namespace cleanliness.
|
||||
|
||||
Much of the math library code (src/math/* and src/complex/*) is
|
||||
Copyright © 1993,2004 Sun Microsystems or
|
||||
Copyright © 2003-2011 David Schultz or
|
||||
Copyright © 2003-2009 Steven G. Kargl or
|
||||
Copyright © 2003-2009 Bruce D. Evans or
|
||||
Copyright © 2008 Stephen L. Moshier or
|
||||
Copyright © 2017-2018 Arm Limited
|
||||
and labelled as such in comments in the individual source files. All
|
||||
have been licensed under extremely permissive terms.
|
||||
|
||||
The ARM memcpy code (src/string/arm/memcpy.S) is Copyright © 2008
|
||||
The Android Open Source Project and is licensed under a two-clause BSD
|
||||
license. It was taken from Bionic libc, used on Android.
|
||||
|
||||
The AArch64 memcpy and memset code (src/string/aarch64/*) are
|
||||
Copyright © 1999-2019, Arm Limited.
|
||||
|
||||
The implementation of DES for crypt (src/crypt/crypt_des.c) is
|
||||
Copyright © 1994 David Burren. It is licensed under a BSD license.
|
||||
|
||||
The implementation of blowfish crypt (src/crypt/crypt_blowfish.c) was
|
||||
originally written by Solar Designer and placed into the public
|
||||
domain. The code also comes with a fallback permissive license for use
|
||||
in jurisdictions that may not recognize the public domain.
|
||||
|
||||
The smoothsort implementation (src/stdlib/qsort.c) is Copyright © 2011
|
||||
Valentin Ochs and is licensed under an MIT-style license.
|
||||
|
||||
The x86_64 port was written by Nicholas J. Kain and is licensed under
|
||||
the standard MIT terms.
|
||||
|
||||
The mips and microblaze ports were originally written by Richard
|
||||
Pennington for use in the ellcc project. The original code was adapted
|
||||
by Rich Felker for build system and code conventions during upstream
|
||||
integration. It is licensed under the standard MIT terms.
|
||||
|
||||
The mips64 port was contributed by Imagination Technologies and is
|
||||
licensed under the standard MIT terms.
|
||||
|
||||
The powerpc port was also originally written by Richard Pennington,
|
||||
and later supplemented and integrated by John Spencer. It is licensed
|
||||
under the standard MIT terms.
|
||||
|
||||
All other files which have no copyright comments are original works
|
||||
produced specifically for use as part of this library, written either
|
||||
by Rich Felker, the main author of the library, or by one or more
|
||||
contibutors listed above. Details on authorship of individual files
|
||||
can be found in the git version control history of the project. The
|
||||
omission of copyright and license comments in each file is in the
|
||||
interest of source tree size.
|
||||
|
||||
In addition, permission is hereby granted for all public header files
|
||||
(include/* and arch/*/bits/*) and crt files intended to be linked into
|
||||
applications (crt/*, ldso/dlstart.c, and arch/*/crt_arch.h) to omit
|
||||
the copyright notice and permission notice otherwise required by the
|
||||
license, and to use these files without any requirement of
|
||||
attribution. These files include substantial contributions from:
|
||||
|
||||
Bobby Bingham
|
||||
John Spencer
|
||||
Nicholas J. Kain
|
||||
Rich Felker
|
||||
Richard Pennington
|
||||
Stefan Kristiansson
|
||||
Szabolcs Nagy
|
||||
|
||||
all of whom have explicitly granted such permission.
|
||||
|
||||
This file previously contained text expressing a belief that most of
|
||||
the files covered by the above exception were sufficiently trivial not
|
||||
to be subject to copyright, resulting in confusion over whether it
|
||||
negated the permissions granted in the license. In the spirit of
|
||||
permissive licensing, and of not having licensing issues being an
|
||||
obstacle to adoption, that text has been removed.
|
27
LICENSE
Normal file
27
LICENSE
Normal file
|
@ -0,0 +1,27 @@
|
|||
Copyright (c) 2017 The Libc Authors. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* 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.
|
||||
* Neither the names of the authors nor the names of the
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 COPYRIGHT
|
||||
OWNER 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.
|
27
LICENSE-GO
Normal file
27
LICENSE-GO
Normal file
|
@ -0,0 +1,27 @@
|
|||
Copyright (c) 2009 The Go Authors. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* 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.
|
||||
* Neither the name of Google Inc. 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 COPYRIGHT HOLDERS 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 COPYRIGHT
|
||||
OWNER 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.
|
115
Makefile
Normal file
115
Makefile
Normal file
|
@ -0,0 +1,115 @@
|
|||
# Copyright 2024 The Libc Authors. All rights reserved.
|
||||
# Use of this source code is governed by a BSD-style
|
||||
# license that can be found in the LICENSE file.
|
||||
|
||||
.PHONY: all build_all_targets check clean download edit editor generate dev membrk-test test work xtest short-test xlibc libc-test surface
|
||||
|
||||
SHELL=/bin/bash -o pipefail
|
||||
|
||||
DIR = /tmp/libc
|
||||
TAR = musl-7ada6dde6f9dc6a2836c3d92c2f762d35fd229e0.tar.gz
|
||||
URL = https://git.musl-libc.org/cgit/musl/snapshot/$(TAR)
|
||||
|
||||
all: editor
|
||||
golint 2>&1
|
||||
staticcheck 2>&1
|
||||
|
||||
build_all_targets:
|
||||
./build_all_targets.sh
|
||||
echo done
|
||||
|
||||
clean:
|
||||
rm -f log-* cpu.test mem.test *.out
|
||||
git clean -fd
|
||||
find testdata/nsz.repo.hu/ -name \*.go -delete
|
||||
make -C testdata/nsz.repo.hu/libc-test/ cleanall
|
||||
go clean
|
||||
|
||||
check:
|
||||
staticcheck 2>&1 | grep -v U1000
|
||||
|
||||
download:
|
||||
@if [ ! -f $(TAR) ]; then wget $(URL) ; fi
|
||||
|
||||
edit:
|
||||
@if [ -f "Session.vim" ]; then gvim -S & else gvim -p Makefile go.mod builder.json & fi
|
||||
|
||||
editor:
|
||||
gofmt -l -s -w *.go
|
||||
go test -c -o /dev/null
|
||||
go build -o /dev/null -v generator*.go
|
||||
|
||||
generate: download
|
||||
mkdir -p $(DIR) || true
|
||||
rm -rf $(DIR)/*
|
||||
GO_GENERATE_DIR=$(DIR) go run generator*.go
|
||||
go build -v
|
||||
go test -v -short -count=1 ./...
|
||||
git status
|
||||
|
||||
dev: download
|
||||
mkdir -p $(DIR) || true
|
||||
rm -rf $(DIR)/*
|
||||
echo -n > /tmp/ccgo.log
|
||||
GO_GENERATE_DIR=$(DIR) GO_GENERATE_DEV=1 go run -tags=ccgo.dmesg,ccgo.assert generator*.go
|
||||
go build -v
|
||||
go test -v -short -count=1 ./...
|
||||
git status
|
||||
|
||||
membrk-test:
|
||||
echo -n > /tmp/ccgo.log
|
||||
touch log-test
|
||||
cp log-test log-test0
|
||||
go test -v -timeout 24h -count=1 -tags=libc.membrk 2>&1 | tee log-test
|
||||
grep -a 'TRC\|TODO\|ERRORF\|FAIL' log-test || true 2>&1 | tee -a log-test
|
||||
|
||||
test:
|
||||
go test -v -timeout 24h -count=1
|
||||
|
||||
short-test:
|
||||
echo -n > /tmp/ccgo.log
|
||||
touch log-test
|
||||
cp log-test log-test0
|
||||
go test -v -timeout 24h -count=1 -short 2>&1 | tee log-test
|
||||
grep -a 'TRC\|TODO\|ERRORF\|FAIL' log-test || true 2>&1 | tee -a log-test
|
||||
|
||||
xlibc:
|
||||
echo -n > /tmp/ccgo.log
|
||||
touch log-test
|
||||
cp log-test log-test0
|
||||
go test -v -timeout 24h -count=1 -tags=ccgo.dmesg,ccgo.assert 2>&1 -run TestLibc | tee log-test
|
||||
grep -a 'TRC\|TODO\|ERRORF\|FAIL' log-test || true 2>&1 | tee -a log-test
|
||||
|
||||
xpthread:
|
||||
echo -n > /tmp/ccgo.log
|
||||
touch log-test
|
||||
cp log-test log-test0
|
||||
go test -v -timeout 24h -count=1 2>&1 -run TestLibc -re pthread | tee log-test
|
||||
grep -a 'TRC\|TODO\|ERRORF\|FAIL' log-test || true 2>&1 | tee -a log-test
|
||||
|
||||
libc-test:
|
||||
echo -n > /tmp/ccgo.log
|
||||
touch log-test
|
||||
cp log-test log-test0
|
||||
go test -v -timeout 24h -count=1 2>&1 -run TestLibc | tee log-test
|
||||
# grep -a 'TRC\|TODO\|ERRORF\|FAIL' log-test || true 2>&1 | tee -a log-test
|
||||
grep -o 'undefined: \<.*\>' log-test | sort -u
|
||||
|
||||
xtest:
|
||||
echo -n > /tmp/ccgo.log
|
||||
touch log-test
|
||||
cp log-test log-test0
|
||||
go test -v -timeout 24h -count=1 -tags=ccgo.dmesg,ccgo.assert 2>&1 | tee log-test
|
||||
grep -a 'TRC\|TODO\|ERRORF\|FAIL' log-test || true 2>&1 | tee -a log-test
|
||||
|
||||
work:
|
||||
rm -f go.work*
|
||||
go work init
|
||||
go work use .
|
||||
go work use ../ccgo/v4
|
||||
go work use ../ccgo/v3
|
||||
go work use ../cc/v4
|
||||
|
||||
surface:
|
||||
surface > surface.new
|
||||
surface surface.old surface.new > log-todo-surface || true
|
9
README.md
Normal file
9
README.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
# libc
|
||||
|
||||
[](https://liberapay.com/jnml/donate)
|
||||
[](https://liberapay.com/jnml/donate)
|
||||
[](https://liberapay.com/jnml/donate)
|
||||
|
||||
[](https://pkg.go.dev/modernc.org/libc)
|
||||
|
||||
Package libc is a partial reimplementation of C libc in pure Go.
|
64
addport.go
Normal file
64
addport.go
Normal file
|
@ -0,0 +1,64 @@
|
|||
// Copyright 2021 The Libc Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build ignore
|
||||
// +build ignore
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func fail(rc int, msg string, args ...interface{}) {
|
||||
fmt.Fprintf(os.Stderr, msg, args...)
|
||||
os.Exit(rc)
|
||||
}
|
||||
|
||||
func main() {
|
||||
if len(os.Args) != 3 {
|
||||
fail(1, "expected 2 args: pattern and replacement\n")
|
||||
}
|
||||
|
||||
pattern := os.Args[1]
|
||||
replacement := os.Args[2]
|
||||
if err := filepath.Walk(".", func(path string, info os.FileInfo, err error) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if info.IsDir() {
|
||||
return nil
|
||||
}
|
||||
|
||||
dir, file := filepath.Split(path)
|
||||
if x := strings.Index(file, pattern); x >= 0 {
|
||||
// pattern freebsd
|
||||
// replacement netbsd
|
||||
// file libc_freebsd_amd64.go
|
||||
// replaced libc_netbsd_amd64.go
|
||||
// 01234567890123456789
|
||||
// 1
|
||||
// x 5
|
||||
file = file[:x] + replacement + file[x+len(pattern):]
|
||||
dst := filepath.Join(dir, file)
|
||||
b, err := os.ReadFile(path)
|
||||
if err != nil {
|
||||
return fmt.Errorf("reading %s: %v", path, err)
|
||||
}
|
||||
|
||||
if err := os.WriteFile(dst, b, 0640); err != nil {
|
||||
return fmt.Errorf("writing %s: %v", dst, err)
|
||||
}
|
||||
fmt.Printf("%s -> %s\n", path, dst)
|
||||
}
|
||||
|
||||
return nil
|
||||
}); err != nil {
|
||||
fail(1, "%s", err)
|
||||
}
|
||||
}
|
109
aliases.go
Normal file
109
aliases.go
Normal file
|
@ -0,0 +1,109 @@
|
|||
// Copyright 2024 The Libc Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm)
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
func X__vm_wait(tls *TLS) {}
|
||||
|
||||
// static volatile int *const dummy_lockptr = 0;
|
||||
//
|
||||
// weak_alias(dummy_lockptr, __atexit_lockptr);
|
||||
// weak_alias(dummy_lockptr, __bump_lockptr);
|
||||
// weak_alias(dummy_lockptr, __sem_open_lockptr);
|
||||
var X__atexit_lockptr int32
|
||||
var X__bump_lockptr int32
|
||||
var X__sem_open_lockptr int32
|
||||
|
||||
// static int dummy(int fd)
|
||||
//
|
||||
// {
|
||||
// return fd;
|
||||
// }
|
||||
//
|
||||
// weak_alias(dummy, __aio_close);
|
||||
func X__aio_close(tls *TLS, fd int32) int32 {
|
||||
return fd
|
||||
}
|
||||
|
||||
func Xtzset(tls *TLS) {
|
||||
___tzset(tls)
|
||||
}
|
||||
|
||||
type DIR = TDIR
|
||||
|
||||
const DT_DETACHED = _DT_DETACHED
|
||||
|
||||
const DT_EXITING = _DT_EXITING
|
||||
|
||||
const DT_JOINABLE = _DT_JOINABLE
|
||||
|
||||
type FILE = TFILE
|
||||
|
||||
type HEADER = THEADER
|
||||
|
||||
func Xfcntl64(tls *TLS, fd int32, cmd int32, va uintptr) (r int32) {
|
||||
return Xfcntl(tls, fd, cmd, va)
|
||||
}
|
||||
|
||||
func Xfopen64(tls *TLS, filename uintptr, mode uintptr) (r uintptr) {
|
||||
return Xfopen(tls, filename, mode)
|
||||
}
|
||||
|
||||
func Xfstat64(tls *TLS, fd int32, st uintptr) (r int32) {
|
||||
return Xfstat(tls, fd, st)
|
||||
}
|
||||
|
||||
func Xftruncate64(tls *TLS, fd int32, length Toff_t) (r int32) {
|
||||
return Xftruncate(tls, fd, length)
|
||||
}
|
||||
|
||||
func Xgetrlimit64(tls *TLS, resource int32, rlim uintptr) (r int32) {
|
||||
return Xgetrlimit(tls, resource, rlim)
|
||||
}
|
||||
|
||||
func Xlseek64(tls *TLS, fd int32, offset Toff_t, whence int32) (r Toff_t) {
|
||||
return Xlseek(tls, fd, offset, whence)
|
||||
}
|
||||
|
||||
func Xlstat64(tls *TLS, path uintptr, buf uintptr) (r int32) {
|
||||
return Xlstat(tls, path, buf)
|
||||
}
|
||||
|
||||
func Xmkstemp64(tls *TLS, template uintptr) (r int32) {
|
||||
return Xmkstemp(tls, template)
|
||||
}
|
||||
|
||||
func Xmkstemps64(tls *TLS, template uintptr, len1 int32) (r int32) {
|
||||
return Xmkstemps(tls, template, len1)
|
||||
}
|
||||
|
||||
func Xmmap64(tls *TLS, start uintptr, len1 Tsize_t, prot int32, flags int32, fd int32, off Toff_t) (r uintptr) {
|
||||
return Xmmap(tls, start, len1, prot, flags, fd, off)
|
||||
}
|
||||
|
||||
func Xopen64(tls *TLS, filename uintptr, flags int32, va uintptr) (r int32) {
|
||||
return Xopen(tls, filename, flags, va)
|
||||
}
|
||||
|
||||
func Xreaddir64(tls *TLS, dir uintptr) (r uintptr) {
|
||||
return Xreaddir(tls, dir)
|
||||
}
|
||||
|
||||
func Xsetrlimit64(tls *TLS, resource int32, rlim uintptr) (r int32) {
|
||||
return Xsetrlimit(tls, resource, rlim)
|
||||
}
|
||||
|
||||
func Xstat64(tls *TLS, path uintptr, buf uintptr) (r int32) {
|
||||
return Xstat(tls, path, buf)
|
||||
}
|
||||
|
||||
func Xpthread_setcancelstate(tls *TLS, new int32, old uintptr) int32 {
|
||||
return _pthread_setcancelstate(tls, new, old)
|
||||
}
|
||||
|
||||
func Xpthread_sigmask(tls *TLS, now int32, set, old uintptr) int32 {
|
||||
return _pthread_sigmask(tls, now, set, old)
|
||||
}
|
2631
all_musl_test.go
Normal file
2631
all_musl_test.go
Normal file
File diff suppressed because it is too large
Load diff
361
all_non_musl_test.go
Normal file
361
all_non_musl_test.go
Normal file
|
@ -0,0 +1,361 @@
|
|||
// Copyright 2020 The Libc Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !(linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm))
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
import (
|
||||
"encoding/hex"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"testing"
|
||||
"time"
|
||||
"unsafe"
|
||||
|
||||
_ "modernc.org/cc/v4"
|
||||
_ "modernc.org/ccgo/v4/lib"
|
||||
_ "modernc.org/fileutil/ccgo"
|
||||
ctime "modernc.org/libc/time"
|
||||
)
|
||||
|
||||
func TestXfmod(t *testing.T) {
|
||||
x := 1.3518643030646695
|
||||
y := 6.283185307179586
|
||||
if g, e := Xfmod(nil, x, y), 1.3518643030646695; g != e {
|
||||
t.Fatal(g, e)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSwap(t *testing.T) {
|
||||
if g, e := X__builtin_bswap16(nil, 0x1234), uint16(0x3412); g != e {
|
||||
t.Errorf("%#04x %#04x", g, e)
|
||||
}
|
||||
if g, e := X__builtin_bswap32(nil, 0x12345678), uint32(0x78563412); g != e {
|
||||
t.Errorf("%#04x %#04x", g, e)
|
||||
}
|
||||
if g, e := X__builtin_bswap64(nil, 0x123456789abcdef0), uint64(0xf0debc9a78563412); g != e {
|
||||
t.Errorf("%#04x %#04x", g, e)
|
||||
}
|
||||
}
|
||||
|
||||
var (
|
||||
valist [256]byte
|
||||
formatString [256]byte
|
||||
srcString [256]byte
|
||||
testPrintfS1 = [...]byte{'X', 'Y', 0}
|
||||
)
|
||||
|
||||
func TestPrintf(t *testing.T) {
|
||||
isWindows = true
|
||||
i := uint64(0x123456789abcdef)
|
||||
j := uint64(0xf123456789abcde)
|
||||
k := uint64(0x23456789abcdef1)
|
||||
l := uint64(0xef123456789abcd)
|
||||
for itest, test := range []struct {
|
||||
fmt string
|
||||
args []interface{}
|
||||
result string
|
||||
}{
|
||||
{
|
||||
"%I64x %I32x %I64x %I32x",
|
||||
[]interface{}{int64(i), int32(j), int64(k), int32(l)},
|
||||
"123456789abcdef 789abcde 23456789abcdef1 6789abcd",
|
||||
},
|
||||
{
|
||||
"%llx %x %llx %x",
|
||||
[]interface{}{int64(i), int32(j), int64(k), int32(l)},
|
||||
"123456789abcdef 789abcde 23456789abcdef1 6789abcd",
|
||||
},
|
||||
{
|
||||
"%.1s\n",
|
||||
[]interface{}{uintptr(unsafe.Pointer(&testPrintfS1[0]))},
|
||||
"X\n",
|
||||
},
|
||||
{
|
||||
"%.2s\n",
|
||||
[]interface{}{uintptr(unsafe.Pointer(&testPrintfS1[0]))},
|
||||
"XY\n",
|
||||
},
|
||||
} {
|
||||
copy(formatString[:], test.fmt+"\x00")
|
||||
b := printf(uintptr(unsafe.Pointer(&formatString[0])), VaList(uintptr(unsafe.Pointer(&valist[0])), test.args...))
|
||||
if g, e := string(b), test.result; g != e {
|
||||
t.Errorf("%v: %q %q", itest, g, e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestStrtod(t *testing.T) {
|
||||
if runtime.GOOS == "windows" {
|
||||
t.Skip("TODO")
|
||||
}
|
||||
|
||||
tls := NewTLS()
|
||||
defer tls.Close()
|
||||
|
||||
for itest, test := range []struct {
|
||||
s string
|
||||
result float64
|
||||
}{
|
||||
{"+0", 0},
|
||||
{"+1", 1},
|
||||
{"+2", 2},
|
||||
{"-0", 0},
|
||||
{"-1", -1},
|
||||
{"-2", -2},
|
||||
{".5", .5},
|
||||
{"0", 0},
|
||||
{"1", 1},
|
||||
{"1.", 1},
|
||||
{"1.024e3", 1024},
|
||||
{"16", 16},
|
||||
{"2", 2},
|
||||
{"32", 32},
|
||||
} {
|
||||
copy(srcString[:], test.s+"\x00")
|
||||
if g, e := Xstrtod(tls, uintptr(unsafe.Pointer(&srcString[0])), 0), test.result; g != e {
|
||||
t.Errorf("%v: %q: %v %v", itest, test.s, g, e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestParseZone(t *testing.T) {
|
||||
for itest, test := range []struct {
|
||||
in, out string
|
||||
off int
|
||||
}{
|
||||
{"America/Los_Angeles", "America/Los_Angeles", 0},
|
||||
{"America/Los_Angeles+12", "America/Los_Angeles", 43200},
|
||||
{"America/Los_Angeles-12", "America/Los_Angeles", -43200},
|
||||
{"UTC", "UTC", 0},
|
||||
{"UTC+1", "UTC", 3600},
|
||||
{"UTC+10", "UTC", 36000},
|
||||
{"UTC-1", "UTC", -3600},
|
||||
{"UTC-10", "UTC", -36000},
|
||||
} {
|
||||
out, off := parseZone(test.in)
|
||||
if g, e := out, test.out; g != e {
|
||||
t.Errorf("%d: %+v %v %v", itest, test, g, e)
|
||||
}
|
||||
if g, e := off, test.off; g != e {
|
||||
t.Errorf("%d: %+v %v %v", itest, test, g, e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestRint(t *testing.T) {
|
||||
tls := NewTLS()
|
||||
for itest, test := range []struct {
|
||||
x, y float64
|
||||
}{
|
||||
{-1.1, -1.0},
|
||||
{-1.0, -1.0},
|
||||
{-0.9, -1.0},
|
||||
{-0.51, -1.0},
|
||||
{-0.49, 0},
|
||||
{-0.1, 0},
|
||||
{-0, 0},
|
||||
{0.1, 0},
|
||||
{0.49, 0},
|
||||
{0.51, 1},
|
||||
{0.9, 1},
|
||||
{1, 1},
|
||||
{1.1, 1},
|
||||
} {
|
||||
if g, e := Xrint(tls, test.x), test.y; g != e {
|
||||
t.Errorf("#%d: x %v, got %v, expected %v", itest, test.x, g, e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
var testMemsetBuf [67]byte
|
||||
|
||||
func TestMemset(t *testing.T) {
|
||||
v := 0
|
||||
for start := 0; start < len(testMemsetBuf); start++ {
|
||||
for n := 0; n < len(testMemsetBuf)-start; n++ {
|
||||
for x := range testMemsetBuf {
|
||||
testMemsetBuf[x] = byte(v)
|
||||
v++
|
||||
}
|
||||
for x := start; x < start+n; x++ {
|
||||
testMemsetBuf[x] = byte(v)
|
||||
}
|
||||
e := testMemsetBuf
|
||||
Xmemset(nil, uintptr(unsafe.Pointer(&testMemsetBuf[start])), int32(v), size_t(n))
|
||||
if testMemsetBuf != e {
|
||||
t.Fatalf("start %v, v %#x n %v, exp\n%s\ngot\n%s", start, byte(v), n, hex.Dump(e[:]), hex.Dump(testMemsetBuf[:]))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const testGetentropySize = 100
|
||||
|
||||
var testGetentropyBuf [testGetentropySize]byte
|
||||
|
||||
func TestGetentropy(t *testing.T) {
|
||||
Xgetentropy(NewTLS(), uintptr(unsafe.Pointer(&testGetentropyBuf[0])), testGetentropySize)
|
||||
t.Logf("\n%s", hex.Dump(testGetentropyBuf[:]))
|
||||
}
|
||||
|
||||
func TestReallocArray(t *testing.T) {
|
||||
const size = 16
|
||||
tls := NewTLS()
|
||||
p := Xmalloc(tls, size)
|
||||
if p == 0 {
|
||||
t.Fatal()
|
||||
}
|
||||
|
||||
for i := 0; i < size; i++ {
|
||||
(*RawMem)(unsafe.Pointer(p))[i] = byte(i ^ 0x55)
|
||||
}
|
||||
|
||||
q := Xreallocarray(tls, p, 2, size)
|
||||
if q == 0 {
|
||||
t.Fatal()
|
||||
}
|
||||
|
||||
for i := 0; i < size; i++ {
|
||||
if g, e := (*RawMem)(unsafe.Pointer(q))[i], byte(i^0x55); g != e {
|
||||
t.Fatal(i, g, e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func mustCString(s string) uintptr {
|
||||
r, err := CString(s)
|
||||
if err != nil {
|
||||
panic("CString failed")
|
||||
}
|
||||
|
||||
return r
|
||||
}
|
||||
|
||||
var testSnprintfBuf [3]byte
|
||||
|
||||
func TestSnprintf(t *testing.T) {
|
||||
testSnprintfBuf = [3]byte{0xff, 0xff, 0xff}
|
||||
p := uintptr(unsafe.Pointer(&testSnprintfBuf[0]))
|
||||
if g, e := Xsnprintf(nil, p, 0, 0, 0), int32(0); g != e {
|
||||
t.Fatal(g, e)
|
||||
}
|
||||
|
||||
if g, e := testSnprintfBuf, [3]byte{0xff, 0xff, 0xff}; g != e {
|
||||
t.Fatal(g, e)
|
||||
}
|
||||
|
||||
if g, e := Xsnprintf(nil, p, 0, mustCString(""), 0), int32(0); g != e {
|
||||
t.Fatal(g, e)
|
||||
}
|
||||
|
||||
if g, e := testSnprintfBuf, [3]byte{0xff, 0xff, 0xff}; g != e {
|
||||
t.Fatal(g, e)
|
||||
}
|
||||
|
||||
s := mustCString("12")
|
||||
if g, e := Xsnprintf(nil, p, 0, s, 0), int32(2); g != e {
|
||||
t.Fatal(g, e)
|
||||
}
|
||||
|
||||
if g, e := testSnprintfBuf, [3]byte{0xff, 0xff, 0xff}; g != e {
|
||||
t.Fatal(g, e)
|
||||
}
|
||||
|
||||
if g, e := Xsnprintf(nil, p, 1, s, 0), int32(2); g != e {
|
||||
t.Fatal(g, e)
|
||||
}
|
||||
|
||||
if g, e := testSnprintfBuf, [3]byte{0x00, 0xff, 0xff}; g != e {
|
||||
t.Fatal(g, e)
|
||||
}
|
||||
|
||||
testSnprintfBuf = [3]byte{0xff, 0xff, 0xff}
|
||||
if g, e := Xsnprintf(nil, p, 2, s, 0), int32(2); g != e {
|
||||
t.Fatal(g, e)
|
||||
}
|
||||
|
||||
if g, e := testSnprintfBuf, [3]byte{'1', 0x00, 0xff}; g != e {
|
||||
t.Fatal(g, e)
|
||||
}
|
||||
|
||||
testSnprintfBuf = [3]byte{0xff, 0xff, 0xff}
|
||||
if g, e := Xsnprintf(nil, p, 3, s, 0), int32(2); g != e {
|
||||
t.Fatal(g, e)
|
||||
}
|
||||
|
||||
if g, e := testSnprintfBuf, [3]byte{'1', '2', 0x00}; g != e {
|
||||
t.Fatal(g, e)
|
||||
}
|
||||
}
|
||||
|
||||
var testFdopenBuf [100]byte
|
||||
|
||||
func TestFdopen(t *testing.T) {
|
||||
if runtime.GOOS == "windows" {
|
||||
t.Skip("not implemented on Windows")
|
||||
}
|
||||
|
||||
const s = "foobarbaz\n"
|
||||
tempdir := t.TempDir()
|
||||
f, err := os.Create(filepath.Join(tempdir, "test_fdopen"))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if _, err := f.Write([]byte(s)); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
if _, err := f.Seek(0, os.SEEK_SET); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
tls := NewTLS()
|
||||
|
||||
defer tls.Close()
|
||||
|
||||
p := Xfdopen(tls, int32(f.Fd()), mustCString("r"))
|
||||
|
||||
bp := uintptr(unsafe.Pointer(&testFdopenBuf))
|
||||
if g, e := Xfread(tls, bp, 1, size_t(len(testFdopenBuf)), p), size_t(len(s)); g != e {
|
||||
t.Fatal(g, e)
|
||||
}
|
||||
|
||||
if g, e := string(GoBytes(bp, len(s))), s; g != e {
|
||||
t.Fatalf("%q %q", g, e)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSync(t *testing.T) {
|
||||
tls := NewTLS()
|
||||
X__sync_synchronize(tls)
|
||||
tls.Close()
|
||||
}
|
||||
|
||||
func TestProbes(t *testing.T) {
|
||||
p := NewPerfCounter([]string{"a", "b", "c"})
|
||||
p.Inc(1)
|
||||
t.Logf("====\n%s\n----", p)
|
||||
c := NewStackCapture(100)
|
||||
for i := 0; i < 20; i++ {
|
||||
c.Record()
|
||||
if i%3 == 0 {
|
||||
c.Record()
|
||||
}
|
||||
}
|
||||
t.Logf("====\n%s\n----", c)
|
||||
}
|
||||
|
||||
var _time ctime.Time_t
|
||||
|
||||
func TestGmtime(t *testing.T) {
|
||||
tls := NewTLS()
|
||||
_time = ctime.Time_t(time.Now().Unix())
|
||||
p := Xgmtime(tls, uintptr(unsafe.Pointer(&_time)))
|
||||
t.Logf("%v %+v", _time, (*ctime.Tm)(unsafe.Pointer(p)))
|
||||
tls.Close()
|
||||
}
|
53
all_test.go
Normal file
53
all_test.go
Normal file
|
@ -0,0 +1,53 @@
|
|||
// Copyright 2025 The Libc Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
import (
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"testing"
|
||||
|
||||
ccgo "modernc.org/ccgo/v4/lib"
|
||||
)
|
||||
|
||||
var (
|
||||
goarch = runtime.GOARCH
|
||||
goos = runtime.GOOS
|
||||
)
|
||||
|
||||
// https://gitlab.com/cznic/libc/-/issues/42
|
||||
func TestIssue42(t *testing.T) {
|
||||
if goos == "windows" {
|
||||
t.Skip("SKIP: windows")
|
||||
}
|
||||
|
||||
dir := t.TempDir()
|
||||
|
||||
defer os.Remove("test_pread_pwrite.txt")
|
||||
|
||||
gof := filepath.Join(dir, "main.go")
|
||||
if err := ccgo.NewTask(
|
||||
goos, goarch,
|
||||
[]string{
|
||||
os.Args[0],
|
||||
"-ignore-unsupported-alignment",
|
||||
"-o", gof,
|
||||
filepath.Join("testdata", "pread_test.c"),
|
||||
},
|
||||
os.Stdout, os.Stderr,
|
||||
nil,
|
||||
).Main(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
b, err := exec.Command("go", "run", gof).CombinedOutput()
|
||||
if err != nil {
|
||||
t.Fatalf("FAIL err=%v\n%s", err, b)
|
||||
}
|
||||
|
||||
t.Logf("%s", b)
|
||||
}
|
77
asm_386.s
Normal file
77
asm_386.s
Normal file
|
@ -0,0 +1,77 @@
|
|||
#include "textflag.h"
|
||||
|
||||
// static inline void a_or_64(volatile uint64_t *p, uint64_t v)
|
||||
TEXT ·a_or_64(SB),NOSPLIT,$0
|
||||
MOVL p+0(FP), BX
|
||||
MOVL v+4(FP), AX
|
||||
LOCK
|
||||
ORL AX, 0(BX)
|
||||
MOVL v+8(FP), AX
|
||||
LOCK
|
||||
ORL AX, 4(BX)
|
||||
RET
|
||||
|
||||
// static inline void a_and_64(volatile uint64_t *p, uint64_t v)
|
||||
TEXT ·a_and_64(SB),NOSPLIT,$0
|
||||
MOVL p+0(FP), BX
|
||||
MOVL v+4(FP), AX
|
||||
LOCK
|
||||
ANDL AX, 0(BX)
|
||||
MOVL v+8(FP), AX
|
||||
LOCK
|
||||
ANDL AX, 4(BX)
|
||||
RET
|
||||
|
||||
// static inline int a_cas(volatile int *p, int t, int s)
|
||||
TEXT ·a_cas(SB),NOSPLIT,$0
|
||||
MOVL p+0(FP), BX
|
||||
MOVL t+4(FP), AX
|
||||
MOVL s+8(FP), CX
|
||||
LOCK
|
||||
CMPXCHGL CX, 0(BX)
|
||||
MOVL AX, ret+12(FP)
|
||||
RET
|
||||
|
||||
// static inline void a_barrier()
|
||||
TEXT ·a_barrier(SB),NOSPLIT,$0
|
||||
MFENCE
|
||||
RET
|
||||
|
||||
// #define a_crash a_crash
|
||||
// static inline void a_crash()
|
||||
// {
|
||||
// __asm__ __volatile__( "hlt" : : : "memory" );
|
||||
// }
|
||||
TEXT ·a_crash(SB),NOSPLIT,$0
|
||||
HLT
|
||||
|
||||
// static inline void *a_cas_p(volatile void *p, void *t, void *s)
|
||||
TEXT ·a_cas_p(SB),NOSPLIT,$0
|
||||
MOVL p+0(FP), BX
|
||||
MOVL t+4(FP), AX
|
||||
MOVL s+8(FP), CX
|
||||
LOCK
|
||||
CMPXCHGL CX, 0(BX)
|
||||
MOVL AX, ret+12(FP)
|
||||
RET
|
||||
|
||||
// static inline void a_or(volatile int *p, int v)
|
||||
TEXT ·a_or(SB),NOSPLIT,$0
|
||||
MOVL p+0(FP), BX
|
||||
MOVL v+4(FP), AX
|
||||
LOCK
|
||||
ORL AX, 0(BX)
|
||||
RET
|
||||
|
||||
// static inline int a_fetch_add(volatile int *p, int v)
|
||||
TEXT ·a_fetch_add(SB),NOSPLIT,$0
|
||||
MOVL p+0(FP), BX
|
||||
MOVL v+4(FP), AX
|
||||
LOCK
|
||||
XADDL AX, 0(BX)
|
||||
RET
|
||||
|
||||
// static inline void a_spin()
|
||||
TEXT ·a_spin(SB),NOSPLIT,$0
|
||||
PAUSE
|
||||
RET
|
105
atomic.go
Normal file
105
atomic.go
Normal file
|
@ -0,0 +1,105 @@
|
|||
// Copyright 2024 The Libc Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm)
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
import (
|
||||
"math"
|
||||
mbits "math/bits"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
func a_store_8(addr uintptr, val int8) int8 {
|
||||
*(*int8)(unsafe.Pointer(addr)) = val
|
||||
return val
|
||||
}
|
||||
|
||||
func a_load_8(addr uintptr) (val int8) {
|
||||
return *(*int8)(unsafe.Pointer(addr))
|
||||
}
|
||||
|
||||
func a_load_16(addr uintptr) (val int16) {
|
||||
if addr&1 != 0 {
|
||||
panic("unaligned atomic access")
|
||||
}
|
||||
|
||||
return *(*int16)(unsafe.Pointer(addr))
|
||||
}
|
||||
|
||||
func a_store_16(addr uintptr, val uint16) {
|
||||
if addr&1 != 0 {
|
||||
panic("unaligned atomic access")
|
||||
}
|
||||
|
||||
*(*uint16)(unsafe.Pointer(addr)) = val
|
||||
}
|
||||
|
||||
// static inline int a_ctz_64(uint64_t x)
|
||||
func _a_ctz_64(tls *TLS, x uint64) int32 {
|
||||
return int32(mbits.TrailingZeros64(x))
|
||||
}
|
||||
|
||||
func AtomicAddFloat32(addr *float32, delta float32) (new float32) {
|
||||
v := AtomicLoadFloat32(addr) + delta
|
||||
AtomicStoreFloat32(addr, v)
|
||||
return v
|
||||
}
|
||||
|
||||
func AtomicLoadFloat32(addr *float32) (val float32) {
|
||||
return math.Float32frombits(atomic.LoadUint32((*uint32)(unsafe.Pointer(addr))))
|
||||
}
|
||||
|
||||
func AtomicStoreFloat32(addr *float32, val float32) {
|
||||
atomic.StoreUint32((*uint32)(unsafe.Pointer(addr)), math.Float32bits(val))
|
||||
}
|
||||
|
||||
func AtomicAddFloat64(addr *float64, delta float64) (new float64) {
|
||||
v := AtomicLoadFloat64(addr) + delta
|
||||
AtomicStoreFloat64(addr, v)
|
||||
return v
|
||||
}
|
||||
|
||||
func AtomicLoadFloat64(addr *float64) (val float64) {
|
||||
return math.Float64frombits(atomic.LoadUint64((*uint64)(unsafe.Pointer(addr))))
|
||||
}
|
||||
|
||||
func AtomicStoreFloat64(addr *float64, val float64) {
|
||||
atomic.StoreUint64((*uint64)(unsafe.Pointer(addr)), math.Float64bits(val))
|
||||
}
|
||||
|
||||
func AtomicAddInt32(addr *int32, delta int32) (new int32) { return atomic.AddInt32(addr, delta) }
|
||||
|
||||
func AtomicAddInt64(addr *int64, delta int64) (new int64) { return atomic.AddInt64(addr, delta) }
|
||||
|
||||
func AtomicAddUint32(addr *uint32, delta uint32) (new uint32) { return atomic.AddUint32(addr, delta) }
|
||||
|
||||
func AtomicAddUint64(addr *uint64, delta uint64) (new uint64) { return atomic.AddUint64(addr, delta) }
|
||||
|
||||
func AtomicAddUintptr(addr *uintptr, delta uintptr) (new uintptr) {
|
||||
return atomic.AddUintptr(addr, delta)
|
||||
|
||||
}
|
||||
|
||||
func AtomicLoadInt32(addr *int32) (val int32) { return atomic.LoadInt32(addr) }
|
||||
|
||||
func AtomicLoadInt64(addr *int64) (val int64) { return atomic.LoadInt64(addr) }
|
||||
|
||||
func AtomicLoadUint32(addr *uint32) (val uint32) { return atomic.LoadUint32(addr) }
|
||||
|
||||
func AtomicLoadUint64(addr *uint64) (val uint64) { return atomic.LoadUint64(addr) }
|
||||
|
||||
func AtomicLoadUintptr(addr *uintptr) (val uintptr) { return atomic.LoadUintptr(addr) }
|
||||
|
||||
func AtomicStoreInt32(addr *int32, val int32) { atomic.StoreInt32(addr, val) }
|
||||
|
||||
func AtomicStoreUint32(addr *uint32, val uint32) { atomic.StoreUint32(addr, val) }
|
||||
|
||||
func AtomicStoreUint64(addr *uint64, val uint64) { atomic.StoreUint64(addr, val) }
|
||||
|
||||
func AtomicStoreUintptr(addr *uintptr, val uintptr) { atomic.StoreUintptr(addr, val) }
|
||||
|
||||
func AtomicStoreInt64(addr *int64, val int64) { atomic.StoreInt64(addr, val) }
|
16
atomic32.go
Normal file
16
atomic32.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2024 The Libc Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build linux && (386 || arm)
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
import (
|
||||
mbits "math/bits"
|
||||
)
|
||||
|
||||
// static inline int a_ctz_l(unsigned long x)
|
||||
func _a_ctz_l(tls *TLS, x ulong) int32 {
|
||||
return int32(mbits.TrailingZeros32(x))
|
||||
}
|
16
atomic64.go
Normal file
16
atomic64.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright 2024 The Libc Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64)
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
import (
|
||||
mbits "math/bits"
|
||||
)
|
||||
|
||||
// static inline int a_ctz_l(unsigned long x)
|
||||
func _a_ctz_l(tls *TLS, x ulong) int32 {
|
||||
return int32(mbits.TrailingZeros64(x))
|
||||
}
|
74
build_all_targets.sh
Executable file
74
build_all_targets.sh
Executable file
|
@ -0,0 +1,74 @@
|
|||
set -e
|
||||
for tag in none libc.dmesg libc.membrk libc.memgrind libc.strace libc.memexpvar
|
||||
do
|
||||
echo "-tags=$tag"
|
||||
echo "GOOS=darwin GOARCH=amd64"
|
||||
GOOS=darwin GOARCH=amd64 go build -tags=$tag -v ./...
|
||||
GOOS=darwin GOARCH=amd64 go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=darwin GOARCH=arm64"
|
||||
GOOS=darwin GOARCH=arm64 go build -tags=$tag -v ./...
|
||||
GOOS=darwin GOARCH=arm64 go test -tags=$tag -c -o /dev/null
|
||||
#TODO echo "GOOS=freebsd GOARCH=386"
|
||||
#TODO GOOS=freebsd GOARCH=386 go build -tags=$tag -v ./...
|
||||
#TODO GOOS=freebsd GOARCH=386 go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=freebsd GOARCH=amd64"
|
||||
GOOS=freebsd GOARCH=amd64 go build -tags=$tag -v ./...
|
||||
GOOS=freebsd GOARCH=amd64 go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=freebsd GOARCH=arm64"
|
||||
GOOS=freebsd GOARCH=arm64 go build -tags=$tag -v ./...
|
||||
GOOS=freebsd GOARCH=arm64 go test -tags=$tag -c -o /dev/null
|
||||
#TODO echo "GOOS=freebsd GOARCH=arm"
|
||||
#TODO GOOS=freebsd GOARCH=arm go build -tags=$tag -v ./...
|
||||
#TODO GOOS=freebsd GOARCH=arm go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=linux GOARCH=386"
|
||||
GOOS=linux GOARCH=386 go build -tags=$tag -v ./...
|
||||
GOOS=linux GOARCH=386 go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=linux GOARCH=amd64"
|
||||
GOOS=linux GOARCH=amd64 go build -tags=$tag -v ./...
|
||||
GOOS=linux GOARCH=amd64 go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=linux GOARCH=arm"
|
||||
GOOS=linux GOARCH=arm go build -tags=$tag -v ./...
|
||||
GOOS=linux GOARCH=arm go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=linux GOARCH=arm64"
|
||||
GOOS=linux GOARCH=arm64 go build -tags=$tag -v ./...
|
||||
GOOS=linux GOARCH=arm64 go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=linux GOARCH=loong64"
|
||||
GOOS=linux GOARCH=loong64 go build -tags=$tag -v ./...
|
||||
GOOS=linux GOARCH=loong64 go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=linux GOARCH=mips64le"
|
||||
GOOS=linux GOARCH=mips64le go build -tags=$tag -v ./...
|
||||
GOOS=linux GOARCH=mips64le go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=linux GOARCH=ppc64le"
|
||||
GOOS=linux GOARCH=ppc64le go build -tags=$tag -v ./...
|
||||
GOOS=linux GOARCH=ppc64le go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=linux GOARCH=riscv64"
|
||||
GOOS=linux GOARCH=riscv64 go build -tags=$tag -v ./...
|
||||
GOOS=linux GOARCH=riscv64 go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=linux GOARCH=s390x"
|
||||
GOOS=linux GOARCH=s390x go build -tags=$tag -v ./...
|
||||
GOOS=linux GOARCH=s390x go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=netbsd GOARCH=amd64"
|
||||
GOOS=netbsd GOARCH=amd64 go build -tags=$tag -v ./...
|
||||
GOOS=netbsd GOARCH=amd64 go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=netbsd GOARCH=arm"
|
||||
GOOS=netbsd GOARCH=arm go build -tags=$tag -v ./...
|
||||
GOOS=netbsd GOARCH=arm go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=openbsd GOARCH=386"
|
||||
GOOS=openbsd GOARCH=386 go build -tags=$tag -v ./...
|
||||
GOOS=openbsd GOARCH=386 go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=openbsd GOARCH=amd64"
|
||||
GOOS=openbsd GOARCH=amd64 go build -tags=$tag -v ./...
|
||||
GOOS=openbsd GOARCH=amd64 go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=openbsd GOARCH=arm64"
|
||||
GOOS=openbsd GOARCH=arm64 go build -tags=$tag -v ./...
|
||||
GOOS=openbsd GOARCH=arm64 go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=windows GOARCH=386"
|
||||
GOOS=windows GOARCH=386 go build -tags=$tag -v ./...
|
||||
GOOS=windows GOARCH=386 go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=windows GOARCH=amd64"
|
||||
GOOS=windows GOARCH=amd64 go build -tags=$tag -v ./...
|
||||
GOOS=windows GOARCH=amd64 go test -tags=$tag -c -o /dev/null
|
||||
echo "GOOS=windows GOARCH=arm64"
|
||||
GOOS=windows GOARCH=arm64 go build -tags=$tag -v ./...
|
||||
GOOS=windows GOARCH=arm64 go test -tags=$tag -c -o /dev/null
|
||||
done
|
9
builder.json
Normal file
9
builder.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"autogen": "linux/(amd64|arm64|loong64|ppc64le|s390x|riscv64|386|arm)",
|
||||
"autotag": "darwin/(amd64|arm64)|freebsd/(amd64|arm64)|linux/(386|amd64|arm|arm64|loong64|ppc64le|riscv64|s390x)|windows/(amd64|arm64|386)",
|
||||
"autoupdate": "linux/amd64",
|
||||
"download": [
|
||||
{"re": "linux/(amd64|arm64|loong64|ppc64le|s390x|riscv64|386|arm)", "files": ["https://git.musl-libc.org/cgit/musl/snapshot/musl-7ada6dde6f9dc6a2836c3d92c2f762d35fd229e0.tar.gz"]}
|
||||
],
|
||||
"test": "darwin/(amd64|arm64)|freebsd/(amd64|arm64)|linux/(386|amd64|arm|arm64|loong64|ppc64le|riscv64|s390x)|openbsd/(386|amd64|arm64)|windows/(amd64|arm64|386)"
|
||||
}
|
443
builtin.go
Normal file
443
builtin.go
Normal file
|
@ -0,0 +1,443 @@
|
|||
// Copyright 2024 The Libc Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64 || 386 || arm)
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"math"
|
||||
mbits "math/bits"
|
||||
"os"
|
||||
"unsafe"
|
||||
|
||||
"modernc.org/mathutil"
|
||||
)
|
||||
|
||||
func X__builtin_inff(tls *TLS) float32 {
|
||||
return float32(math.Inf(1))
|
||||
}
|
||||
|
||||
func X__builtin_nanf(tls *TLS, s uintptr) float32 {
|
||||
return float32(math.NaN())
|
||||
}
|
||||
|
||||
func X__builtin_printf(tls *TLS, fmt uintptr, va uintptr) (r int32) {
|
||||
return Xprintf(tls, fmt, va)
|
||||
}
|
||||
|
||||
func X__builtin_round(tls *TLS, x float64) (r float64) {
|
||||
return Xround(tls, x)
|
||||
}
|
||||
|
||||
func X__builtin_lround(tls *TLS, x float64) (r long) {
|
||||
return Xlround(tls, x)
|
||||
}
|
||||
|
||||
func X__builtin_roundf(tls *TLS, x float32) (r float32) {
|
||||
return Xroundf(tls, x)
|
||||
}
|
||||
|
||||
func X__builtin_expect(t *TLS, exp, c long) long {
|
||||
return exp
|
||||
}
|
||||
|
||||
func X__builtin_bzero(t *TLS, s uintptr, n Tsize_t) {
|
||||
Xbzero(t, s, n)
|
||||
}
|
||||
|
||||
func X__builtin_abort(t *TLS) {
|
||||
Xabort(t)
|
||||
}
|
||||
|
||||
func X__builtin_abs(t *TLS, j int32) int32 {
|
||||
return Xabs(t, j)
|
||||
}
|
||||
|
||||
func X__builtin_ctz(t *TLS, n uint32) int32 {
|
||||
return int32(mbits.TrailingZeros32(n))
|
||||
}
|
||||
|
||||
func X__builtin_clz(t *TLS, n uint32) int32 {
|
||||
return int32(mbits.LeadingZeros32(n))
|
||||
}
|
||||
|
||||
func X__builtin_clzll(t *TLS, n uint64) int32 {
|
||||
return int32(mbits.LeadingZeros64(n))
|
||||
}
|
||||
func X__builtin_constant_p_impl() { panic(todo("internal error: should never be called")) }
|
||||
|
||||
func X__builtin_copysign(t *TLS, x, y float64) float64 {
|
||||
return Xcopysign(t, x, y)
|
||||
}
|
||||
|
||||
func X__builtin_copysignf(t *TLS, x, y float32) float32 {
|
||||
return Xcopysignf(t, x, y)
|
||||
}
|
||||
|
||||
func X__builtin_copysignl(t *TLS, x, y float64) float64 {
|
||||
return Xcopysign(t, x, y)
|
||||
}
|
||||
|
||||
func X__builtin_exit(t *TLS, status int32) {
|
||||
Xexit(t, status)
|
||||
}
|
||||
|
||||
func X__builtin_fabs(t *TLS, x float64) float64 {
|
||||
return Xfabs(t, x)
|
||||
}
|
||||
|
||||
func X__builtin_fabsf(t *TLS, x float32) float32 {
|
||||
return Xfabsf(t, x)
|
||||
}
|
||||
|
||||
func X__builtin_fabsl(t *TLS, x float64) float64 {
|
||||
return Xfabsl(t, x)
|
||||
}
|
||||
|
||||
func X__builtin_free(t *TLS, ptr uintptr) {
|
||||
Xfree(t, ptr)
|
||||
}
|
||||
|
||||
func X__builtin_getentropy(t *TLS, buf uintptr, n Tsize_t) int32 {
|
||||
return Xgetentropy(t, buf, n)
|
||||
}
|
||||
|
||||
func X__builtin_huge_val(t *TLS) float64 {
|
||||
return math.Inf(1)
|
||||
}
|
||||
|
||||
func X__builtin_huge_valf(t *TLS) float32 {
|
||||
return float32(math.Inf(1))
|
||||
}
|
||||
|
||||
func X__builtin_inf(t *TLS) float64 {
|
||||
return math.Inf(1)
|
||||
}
|
||||
|
||||
func X__builtin_infl(t *TLS) float64 {
|
||||
return math.Inf(1)
|
||||
}
|
||||
|
||||
func X__builtin_malloc(t *TLS, size Tsize_t) uintptr {
|
||||
return Xmalloc(t, size)
|
||||
}
|
||||
|
||||
func X__builtin_memcmp(t *TLS, s1, s2 uintptr, n Tsize_t) int32 {
|
||||
return Xmemcmp(t, s1, s2, n)
|
||||
}
|
||||
|
||||
func X__builtin_nan(t *TLS, s uintptr) float64 {
|
||||
return math.NaN()
|
||||
}
|
||||
|
||||
func X__builtin_nanl(t *TLS, s uintptr) float64 {
|
||||
return math.NaN()
|
||||
}
|
||||
|
||||
func X__builtin_prefetch(t *TLS, addr, args uintptr) {
|
||||
}
|
||||
|
||||
func X__builtin_strchr(t *TLS, s uintptr, c int32) uintptr {
|
||||
return Xstrchr(t, s, c)
|
||||
}
|
||||
|
||||
func X__builtin_strcmp(t *TLS, s1, s2 uintptr) int32 {
|
||||
return Xstrcmp(t, s1, s2)
|
||||
}
|
||||
|
||||
func X__builtin_strcpy(t *TLS, dest, src uintptr) uintptr {
|
||||
return Xstrcpy(t, dest, src)
|
||||
}
|
||||
|
||||
func X__builtin_strlen(t *TLS, s uintptr) Tsize_t {
|
||||
return Xstrlen(t, s)
|
||||
}
|
||||
|
||||
func X__builtin_trap(t *TLS) {
|
||||
Xabort(t)
|
||||
}
|
||||
|
||||
func X__builtin_popcount(t *TLS, x uint32) int32 {
|
||||
return int32(mbits.OnesCount32(x))
|
||||
}
|
||||
|
||||
// char * __builtin___strcpy_chk (char *dest, const char *src, size_t os);
|
||||
func X__builtin___strcpy_chk(t *TLS, dest, src uintptr, os Tsize_t) uintptr {
|
||||
return Xstrcpy(t, dest, src)
|
||||
}
|
||||
|
||||
func X__builtin_mmap(t *TLS, addr uintptr, length Tsize_t, prot, flags, fd int32, offset Toff_t) uintptr {
|
||||
return Xmmap(t, addr, length, prot, flags, fd, offset)
|
||||
}
|
||||
|
||||
// uint16_t __builtin_bswap16 (uint32_t x)
|
||||
func X__builtin_bswap16(t *TLS, x uint16) uint16 {
|
||||
return x<<8 |
|
||||
x>>8
|
||||
}
|
||||
|
||||
// uint32_t __builtin_bswap32 (uint32_t x)
|
||||
func X__builtin_bswap32(t *TLS, x uint32) uint32 {
|
||||
return x<<24 |
|
||||
x&0xff00<<8 |
|
||||
x&0xff0000>>8 |
|
||||
x>>24
|
||||
}
|
||||
|
||||
// uint64_t __builtin_bswap64 (uint64_t x)
|
||||
func X__builtin_bswap64(t *TLS, x uint64) uint64 {
|
||||
return x<<56 |
|
||||
x&0xff00<<40 |
|
||||
x&0xff0000<<24 |
|
||||
x&0xff000000<<8 |
|
||||
x&0xff00000000>>8 |
|
||||
x&0xff0000000000>>24 |
|
||||
x&0xff000000000000>>40 |
|
||||
x>>56
|
||||
}
|
||||
|
||||
// bool __builtin_add_overflow (type1 a, type2 b, type3 *res)
|
||||
func X__builtin_add_overflowInt64(t *TLS, a, b int64, res uintptr) int32 {
|
||||
r, ovf := mathutil.AddOverflowInt64(a, b)
|
||||
*(*int64)(unsafe.Pointer(res)) = r
|
||||
return Bool32(ovf)
|
||||
}
|
||||
|
||||
// bool __builtin_add_overflow (type1 a, type2 b, type3 *res)
|
||||
func X__builtin_add_overflowUint32(t *TLS, a, b uint32, res uintptr) int32 {
|
||||
r := a + b
|
||||
*(*uint32)(unsafe.Pointer(res)) = r
|
||||
return Bool32(r < a)
|
||||
}
|
||||
|
||||
// bool __builtin_add_overflow (type1 a, type2 b, type3 *res)
|
||||
func X__builtin_add_overflowUint64(t *TLS, a, b uint64, res uintptr) int32 {
|
||||
r := a + b
|
||||
*(*uint64)(unsafe.Pointer(res)) = r
|
||||
return Bool32(r < a)
|
||||
}
|
||||
|
||||
// bool __builtin_sub_overflow (type1 a, type2 b, type3 *res)
|
||||
func X__builtin_sub_overflowInt64(t *TLS, a, b int64, res uintptr) int32 {
|
||||
r, ovf := mathutil.SubOverflowInt64(a, b)
|
||||
*(*int64)(unsafe.Pointer(res)) = r
|
||||
return Bool32(ovf)
|
||||
}
|
||||
|
||||
// bool __builtin_mul_overflow (type1 a, type2 b, type3 *res)
|
||||
func X__builtin_mul_overflowInt64(t *TLS, a, b int64, res uintptr) int32 {
|
||||
r, ovf := mathutil.MulOverflowInt64(a, b)
|
||||
*(*int64)(unsafe.Pointer(res)) = r
|
||||
return Bool32(ovf)
|
||||
}
|
||||
|
||||
// bool __builtin_mul_overflow (type1 a, type2 b, type3 *res)
|
||||
func X__builtin_mul_overflowUint64(t *TLS, a, b uint64, res uintptr) int32 {
|
||||
hi, lo := mbits.Mul64(a, b)
|
||||
*(*uint64)(unsafe.Pointer(res)) = lo
|
||||
return Bool32(hi != 0)
|
||||
}
|
||||
|
||||
// bool __builtin_mul_overflow (type1 a, type2 b, type3 *res)
|
||||
func X__builtin_mul_overflowUint128(t *TLS, a, b Uint128, res uintptr) int32 {
|
||||
r, ovf := a.mulOvf(b)
|
||||
*(*Uint128)(unsafe.Pointer(res)) = r
|
||||
return Bool32(ovf)
|
||||
}
|
||||
|
||||
func X__builtin_unreachable(t *TLS) {
|
||||
fmt.Fprintf(os.Stderr, "unrechable\n")
|
||||
os.Stderr.Sync()
|
||||
Xexit(t, 1)
|
||||
}
|
||||
|
||||
func X__builtin_snprintf(t *TLS, str uintptr, size Tsize_t, format, args uintptr) int32 {
|
||||
return Xsnprintf(t, str, size, format, args)
|
||||
}
|
||||
|
||||
func X__builtin_sprintf(t *TLS, str, format, args uintptr) (r int32) {
|
||||
return Xsprintf(t, str, format, args)
|
||||
}
|
||||
|
||||
func X__builtin_memcpy(t *TLS, dest, src uintptr, n Tsize_t) (r uintptr) {
|
||||
return Xmemcpy(t, dest, src, n)
|
||||
}
|
||||
|
||||
// void * __builtin___memcpy_chk (void *dest, const void *src, size_t n, size_t os);
|
||||
func X__builtin___memcpy_chk(t *TLS, dest, src uintptr, n, os Tsize_t) (r uintptr) {
|
||||
if os != ^Tsize_t(0) && n < os {
|
||||
Xabort(t)
|
||||
}
|
||||
|
||||
return Xmemcpy(t, dest, src, n)
|
||||
}
|
||||
|
||||
func X__builtin_memset(t *TLS, s uintptr, c int32, n Tsize_t) uintptr {
|
||||
return Xmemset(t, s, c, n)
|
||||
}
|
||||
|
||||
// void * __builtin___memset_chk (void *s, int c, size_t n, size_t os);
|
||||
func X__builtin___memset_chk(t *TLS, s uintptr, c int32, n, os Tsize_t) uintptr {
|
||||
if os < n {
|
||||
Xabort(t)
|
||||
}
|
||||
|
||||
return Xmemset(t, s, c, n)
|
||||
}
|
||||
|
||||
// size_t __builtin_object_size (const void * ptr, int type)
|
||||
func X__builtin_object_size(t *TLS, p uintptr, typ int32) Tsize_t {
|
||||
switch typ {
|
||||
case 0, 1:
|
||||
return ^Tsize_t(0)
|
||||
default:
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
// int __builtin___sprintf_chk (char *s, int flag, size_t os, const char *fmt, ...);
|
||||
func X__builtin___sprintf_chk(t *TLS, s uintptr, flag int32, os Tsize_t, format, args uintptr) (r int32) {
|
||||
return Xsprintf(t, s, format, args)
|
||||
}
|
||||
|
||||
func X__builtin_vsnprintf(t *TLS, str uintptr, size Tsize_t, format, va uintptr) int32 {
|
||||
return Xvsnprintf(t, str, size, format, va)
|
||||
}
|
||||
|
||||
// int __builtin___snprintf_chk(char * str, size_t maxlen, int flag, size_t os, const char * format, ...);
|
||||
func X__builtin___snprintf_chk(t *TLS, str uintptr, maxlen Tsize_t, flag int32, os Tsize_t, format, args uintptr) (r int32) {
|
||||
if os != ^Tsize_t(0) && maxlen > os {
|
||||
Xabort(t)
|
||||
}
|
||||
|
||||
return Xsnprintf(t, str, maxlen, format, args)
|
||||
}
|
||||
|
||||
// int __builtin___vsnprintf_chk (char *s, size_t maxlen, int flag, size_t os, const char *fmt, va_list ap);
|
||||
func X__builtin___vsnprintf_chk(t *TLS, str uintptr, maxlen Tsize_t, flag int32, os Tsize_t, format, args uintptr) (r int32) {
|
||||
if os != ^Tsize_t(0) && maxlen > os {
|
||||
Xabort(t)
|
||||
}
|
||||
|
||||
return Xsnprintf(t, str, maxlen, format, args)
|
||||
}
|
||||
|
||||
func Xisnan(t *TLS, x float64) int32 {
|
||||
return X__builtin_isnan(t, x)
|
||||
}
|
||||
|
||||
func X__isnan(t *TLS, x float64) int32 {
|
||||
return X__builtin_isnan(t, x)
|
||||
}
|
||||
|
||||
func X__builtin_isnan(t *TLS, x float64) int32 {
|
||||
return Bool32(math.IsNaN(x))
|
||||
}
|
||||
|
||||
func Xisnanf(t *TLS, arg float32) int32 {
|
||||
return X__builtin_isnanf(t, arg)
|
||||
}
|
||||
|
||||
func X__isnanf(t *TLS, arg float32) int32 {
|
||||
return X__builtin_isnanf(t, arg)
|
||||
}
|
||||
|
||||
func X__builtin_isnanf(t *TLS, x float32) int32 {
|
||||
return Bool32(math.IsNaN(float64(x)))
|
||||
}
|
||||
|
||||
func Xisnanl(t *TLS, arg float64) int32 {
|
||||
return X__builtin_isnanl(t, arg)
|
||||
}
|
||||
|
||||
func X__isnanl(t *TLS, arg float64) int32 {
|
||||
return X__builtin_isnanl(t, arg)
|
||||
}
|
||||
|
||||
func X__builtin_isnanl(t *TLS, x float64) int32 {
|
||||
return Bool32(math.IsNaN(x))
|
||||
}
|
||||
|
||||
func X__builtin_llabs(tls *TLS, a int64) int64 {
|
||||
return Xllabs(tls, a)
|
||||
}
|
||||
|
||||
func X__builtin_log2(t *TLS, x float64) float64 {
|
||||
return Xlog2(t, x)
|
||||
}
|
||||
|
||||
func X__builtin___strncpy_chk(t *TLS, dest, src uintptr, n, os Tsize_t) (r uintptr) {
|
||||
if n != ^Tsize_t(0) && os < n {
|
||||
Xabort(t)
|
||||
}
|
||||
|
||||
return Xstrncpy(t, dest, src, n)
|
||||
}
|
||||
|
||||
func X__builtin___strcat_chk(t *TLS, dest, src uintptr, os Tsize_t) (r uintptr) {
|
||||
return Xstrcat(t, dest, src)
|
||||
}
|
||||
|
||||
func X__builtin___memmove_chk(t *TLS, dest, src uintptr, n, os Tsize_t) uintptr {
|
||||
if os != ^Tsize_t(0) && os < n {
|
||||
Xabort(t)
|
||||
}
|
||||
|
||||
return Xmemmove(t, dest, src, n)
|
||||
}
|
||||
|
||||
func X__builtin_isunordered(t *TLS, a, b float64) int32 {
|
||||
return Bool32(math.IsNaN(a) || math.IsNaN(b))
|
||||
}
|
||||
|
||||
func X__builtin_ffs(tls *TLS, i int32) (r int32) {
|
||||
return Xffs(tls, i)
|
||||
}
|
||||
|
||||
func X__builtin_rintf(tls *TLS, x float32) (r float32) {
|
||||
return Xrintf(tls, x)
|
||||
}
|
||||
|
||||
func X__builtin_lrintf(tls *TLS, x float32) (r long) {
|
||||
return Xlrintf(tls, x)
|
||||
}
|
||||
|
||||
func X__builtin_lrint(tls *TLS, x float64) (r long) {
|
||||
return Xlrint(tls, x)
|
||||
}
|
||||
|
||||
// double __builtin_fma(double x, double y, double z);
|
||||
func X__builtin_fma(tls *TLS, x, y, z float64) (r float64) {
|
||||
return math.FMA(x, y, z)
|
||||
}
|
||||
|
||||
func X__builtin_alloca(tls *TLS, size Tsize_t) uintptr {
|
||||
return Xalloca(tls, size)
|
||||
}
|
||||
|
||||
func X__builtin_isprint(tls *TLS, c int32) (r int32) {
|
||||
return Xisprint(tls, c)
|
||||
}
|
||||
|
||||
func X__builtin_isblank(tls *TLS, c int32) (r int32) {
|
||||
return Xisblank(tls, c)
|
||||
}
|
||||
|
||||
func X__builtin_trunc(tls *TLS, x float64) (r float64) {
|
||||
return Xtrunc(tls, x)
|
||||
}
|
||||
|
||||
func X__builtin_hypot(tls *TLS, x float64, y float64) (r float64) {
|
||||
return Xhypot(tls, x, y)
|
||||
}
|
||||
|
||||
func X__builtin_fmax(tls *TLS, x float64, y float64) (r float64) {
|
||||
return Xfmax(tls, x, y)
|
||||
}
|
||||
|
||||
func X__builtin_fmin(tls *TLS, x float64, y float64) (r float64) {
|
||||
return Xfmin(tls, x, y)
|
||||
}
|
24
builtin32.go
Normal file
24
builtin32.go
Normal file
|
@ -0,0 +1,24 @@
|
|||
// Copyright 2024 The Libc Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build linux && (386 || arm)
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
import (
|
||||
mbits "math/bits"
|
||||
)
|
||||
|
||||
func X__builtin_ctzl(tls *TLS, x ulong) int32 {
|
||||
return int32(mbits.TrailingZeros32(x))
|
||||
}
|
||||
|
||||
func X__builtin_clzl(t *TLS, n ulong) int32 {
|
||||
return int32(mbits.LeadingZeros32(n))
|
||||
}
|
||||
|
||||
// int __builtin_popcountl (unsigned long x)
|
||||
func X__builtin_popcountl(t *TLS, x ulong) int32 {
|
||||
return int32(mbits.OnesCount32(x))
|
||||
}
|
24
builtin64.go
Normal file
24
builtin64.go
Normal file
|
@ -0,0 +1,24 @@
|
|||
// Copyright 2024 The Libc Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build linux && (amd64 || arm64 || loong64 || ppc64le || s390x || riscv64)
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
import (
|
||||
mbits "math/bits"
|
||||
)
|
||||
|
||||
func X__builtin_ctzl(tls *TLS, x ulong) int32 {
|
||||
return int32(mbits.TrailingZeros64(x))
|
||||
}
|
||||
|
||||
func X__builtin_clzl(t *TLS, n ulong) int32 {
|
||||
return int32(mbits.LeadingZeros64(n))
|
||||
}
|
||||
|
||||
// int __builtin_popcountl (unsigned long x)
|
||||
func X__builtin_popcountl(t *TLS, x ulong) int32 {
|
||||
return int32(mbits.OnesCount64(x))
|
||||
}
|
540
capi_darwin_amd64.go
Normal file
540
capi_darwin_amd64.go
Normal file
|
@ -0,0 +1,540 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_CurrentRuneLocale": {},
|
||||
"_DefaultRuneLocale": {},
|
||||
"_IO_putc": {},
|
||||
"_NSGetEnviron": {},
|
||||
"___errno_location": {},
|
||||
"__assert_fail": {},
|
||||
"__assert_rtn": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__darwin_check_fd_set_overflow": {},
|
||||
"__darwin_fd_clr": {},
|
||||
"__darwin_fd_isset": {},
|
||||
"__darwin_fd_set": {},
|
||||
"__env_rm_add": {},
|
||||
"__errno_location": {},
|
||||
"__error": {},
|
||||
"__floatscan": {},
|
||||
"__fpclassify": {},
|
||||
"__fpclassifyf": {},
|
||||
"__fpclassifyl": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__inline_isnand": {},
|
||||
"__inline_isnanf": {},
|
||||
"__inline_isnanl": {},
|
||||
"__intscan": {},
|
||||
"__isctype": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__istype": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__maskrune": {},
|
||||
"__mb_cur_max": {},
|
||||
"__putenv": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__sincos_stret": {},
|
||||
"__sincosf_stret": {},
|
||||
"__sincospi_stret": {},
|
||||
"__sincospif_stret": {},
|
||||
"__srget": {},
|
||||
"__stderrp": {},
|
||||
"__stdinp": {},
|
||||
"__stdoutp": {},
|
||||
"__strchrnul": {},
|
||||
"__strncasecmp_l": {},
|
||||
"__svfscanf": {},
|
||||
"__swbuf": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__tolower": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__toupper": {},
|
||||
"__uflow": {},
|
||||
"__wcwidth": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"arc4random_buf": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chflags": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copyfile": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"digittoint": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"flock": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fsctl": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fstatfs": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"futimes": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getattrlist": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostname": {},
|
||||
"gethostuuid": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getprogname": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isblank": {},
|
||||
"iscntrl": {},
|
||||
"isdigit": {},
|
||||
"isgraph": {},
|
||||
"ishexnumber": {},
|
||||
"isideogram": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isnumber": {},
|
||||
"isphonogram": {},
|
||||
"isprint": {},
|
||||
"ispunct": {},
|
||||
"isrune": {},
|
||||
"issetugid": {},
|
||||
"isspace": {},
|
||||
"isspecial": {},
|
||||
"isupper": {},
|
||||
"iswalnum": {},
|
||||
"iswspace": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"mach_absolute_time": {},
|
||||
"mach_timebase_info": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"modf": {},
|
||||
"munmap": {},
|
||||
"nanf": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"posix_fadvise": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"putenv": {},
|
||||
"puts": {},
|
||||
"pwrite": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"rand_r": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setattrlist": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"srandomdev": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"statfs": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlcat": {},
|
||||
"strlcpy": {},
|
||||
"strlen": {},
|
||||
"strncasecmp": {},
|
||||
"strncat": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtok": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"toascii": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"truncate": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_copy": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
540
capi_darwin_arm64.go
Normal file
540
capi_darwin_arm64.go
Normal file
|
@ -0,0 +1,540 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_CurrentRuneLocale": {},
|
||||
"_DefaultRuneLocale": {},
|
||||
"_IO_putc": {},
|
||||
"_NSGetEnviron": {},
|
||||
"___errno_location": {},
|
||||
"__assert_fail": {},
|
||||
"__assert_rtn": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__darwin_check_fd_set_overflow": {},
|
||||
"__darwin_fd_clr": {},
|
||||
"__darwin_fd_isset": {},
|
||||
"__darwin_fd_set": {},
|
||||
"__env_rm_add": {},
|
||||
"__errno_location": {},
|
||||
"__error": {},
|
||||
"__floatscan": {},
|
||||
"__fpclassify": {},
|
||||
"__fpclassifyf": {},
|
||||
"__fpclassifyl": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__inline_isnand": {},
|
||||
"__inline_isnanf": {},
|
||||
"__inline_isnanl": {},
|
||||
"__intscan": {},
|
||||
"__isctype": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__istype": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__maskrune": {},
|
||||
"__mb_cur_max": {},
|
||||
"__putenv": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__sincos_stret": {},
|
||||
"__sincosf_stret": {},
|
||||
"__sincospi_stret": {},
|
||||
"__sincospif_stret": {},
|
||||
"__srget": {},
|
||||
"__stderrp": {},
|
||||
"__stdinp": {},
|
||||
"__stdoutp": {},
|
||||
"__strchrnul": {},
|
||||
"__strncasecmp_l": {},
|
||||
"__svfscanf": {},
|
||||
"__swbuf": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__tolower": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__toupper": {},
|
||||
"__uflow": {},
|
||||
"__wcwidth": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"arc4random_buf": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chflags": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copyfile": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"digittoint": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"flock": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fsctl": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fstatfs": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"futimes": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getattrlist": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostname": {},
|
||||
"gethostuuid": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getprogname": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isblank": {},
|
||||
"iscntrl": {},
|
||||
"isdigit": {},
|
||||
"isgraph": {},
|
||||
"ishexnumber": {},
|
||||
"isideogram": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isnumber": {},
|
||||
"isphonogram": {},
|
||||
"isprint": {},
|
||||
"ispunct": {},
|
||||
"isrune": {},
|
||||
"issetugid": {},
|
||||
"isspace": {},
|
||||
"isspecial": {},
|
||||
"isupper": {},
|
||||
"iswalnum": {},
|
||||
"iswspace": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"mach_absolute_time": {},
|
||||
"mach_timebase_info": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"modf": {},
|
||||
"munmap": {},
|
||||
"nanf": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"posix_fadvise": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"putenv": {},
|
||||
"puts": {},
|
||||
"pwrite": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"rand_r": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setattrlist": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"srandomdev": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"statfs": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlcat": {},
|
||||
"strlcpy": {},
|
||||
"strlen": {},
|
||||
"strncasecmp": {},
|
||||
"strncat": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtok": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"toascii": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"truncate": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_copy": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
506
capi_freebsd_386.go
Normal file
506
capi_freebsd_386.go
Normal file
|
@ -0,0 +1,506 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_CurrentRuneLocale": {},
|
||||
"_DefaultRuneLocale": {},
|
||||
"_IO_putc": {},
|
||||
"_ThreadRuneLocale": {},
|
||||
"___errno_location": {},
|
||||
"___runetype": {},
|
||||
"___tolower": {},
|
||||
"___toupper": {},
|
||||
"__assert": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno_location": {},
|
||||
"__error": {},
|
||||
"__floatscan": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__inet_ntoa": {},
|
||||
"__intscan": {},
|
||||
"__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": {},
|
||||
"__mb_sb_limit": {},
|
||||
"__runes_for_locale": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__srget": {},
|
||||
"__stderrp": {},
|
||||
"__stdinp": {},
|
||||
"__stdoutp": {},
|
||||
"__swbuf": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__xuname": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bswap16": {},
|
||||
"bswap32": {},
|
||||
"bswap64": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chflags": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostname": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isspace": {},
|
||||
"isupper": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"modf": {},
|
||||
"munmap": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"puts": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlen": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
506
capi_freebsd_amd64.go
Normal file
506
capi_freebsd_amd64.go
Normal file
|
@ -0,0 +1,506 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_CurrentRuneLocale": {},
|
||||
"_DefaultRuneLocale": {},
|
||||
"_IO_putc": {},
|
||||
"_ThreadRuneLocale": {},
|
||||
"___errno_location": {},
|
||||
"___runetype": {},
|
||||
"___tolower": {},
|
||||
"___toupper": {},
|
||||
"__assert": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno_location": {},
|
||||
"__error": {},
|
||||
"__floatscan": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__inet_ntoa": {},
|
||||
"__intscan": {},
|
||||
"__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": {},
|
||||
"__mb_sb_limit": {},
|
||||
"__runes_for_locale": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__srget": {},
|
||||
"__stderrp": {},
|
||||
"__stdinp": {},
|
||||
"__stdoutp": {},
|
||||
"__swbuf": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__xuname": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bswap16": {},
|
||||
"bswap32": {},
|
||||
"bswap64": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chflags": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostname": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isspace": {},
|
||||
"isupper": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"modf": {},
|
||||
"munmap": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"puts": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlen": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
506
capi_freebsd_arm.go
Normal file
506
capi_freebsd_arm.go
Normal file
|
@ -0,0 +1,506 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_CurrentRuneLocale": {},
|
||||
"_DefaultRuneLocale": {},
|
||||
"_IO_putc": {},
|
||||
"_ThreadRuneLocale": {},
|
||||
"___errno_location": {},
|
||||
"___runetype": {},
|
||||
"___tolower": {},
|
||||
"___toupper": {},
|
||||
"__assert": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno_location": {},
|
||||
"__error": {},
|
||||
"__floatscan": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__inet_ntoa": {},
|
||||
"__intscan": {},
|
||||
"__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": {},
|
||||
"__mb_sb_limit": {},
|
||||
"__runes_for_locale": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__srget": {},
|
||||
"__stderrp": {},
|
||||
"__stdinp": {},
|
||||
"__stdoutp": {},
|
||||
"__swbuf": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__xuname": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bswap16": {},
|
||||
"bswap32": {},
|
||||
"bswap64": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chflags": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostname": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isspace": {},
|
||||
"isupper": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"modf": {},
|
||||
"munmap": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"puts": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlen": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
506
capi_freebsd_arm64.go
Normal file
506
capi_freebsd_arm64.go
Normal file
|
@ -0,0 +1,506 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_CurrentRuneLocale": {},
|
||||
"_DefaultRuneLocale": {},
|
||||
"_IO_putc": {},
|
||||
"_ThreadRuneLocale": {},
|
||||
"___errno_location": {},
|
||||
"___runetype": {},
|
||||
"___tolower": {},
|
||||
"___toupper": {},
|
||||
"__assert": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno_location": {},
|
||||
"__error": {},
|
||||
"__floatscan": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__inet_ntoa": {},
|
||||
"__intscan": {},
|
||||
"__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": {},
|
||||
"__mb_sb_limit": {},
|
||||
"__runes_for_locale": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__srget": {},
|
||||
"__stderrp": {},
|
||||
"__stdinp": {},
|
||||
"__stdoutp": {},
|
||||
"__swbuf": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__xuname": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bswap16": {},
|
||||
"bswap32": {},
|
||||
"bswap64": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chflags": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostname": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isspace": {},
|
||||
"isupper": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"modf": {},
|
||||
"munmap": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"puts": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlen": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
528
capi_illumos_amd64.go
Normal file
528
capi_illumos_amd64.go
Normal file
|
@ -0,0 +1,528 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_IO_putc": {},
|
||||
"___errno_location": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_b_loc": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno_location": {},
|
||||
"__floatscan": {},
|
||||
"__fpclassify": {},
|
||||
"__fpclassifyf": {},
|
||||
"__fpclassifyl": {},
|
||||
"__fsmu8": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__intscan": {},
|
||||
"__isalnum_l": {},
|
||||
"__isalpha_l": {},
|
||||
"__isdigit_l": {},
|
||||
"__islower_l": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isprint_l": {},
|
||||
"__isupper_l": {},
|
||||
"__isxdigit_l": {},
|
||||
"__lockfile": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__strncasecmp_l": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__unlockfile": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"dup3": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"faccessat": {},
|
||||
"fchmod": {},
|
||||
"fchmodat": {},
|
||||
"fchown": {},
|
||||
"fchownat": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fstatfs": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"ftruncate64": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostbyname_r": {},
|
||||
"gethostname": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getrandom": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isupper": {},
|
||||
"iswalnum": {},
|
||||
"iswspace": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"linkat": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbrtowc": {},
|
||||
"mbsinit": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkdirat": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mknodat": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"mmap64": {},
|
||||
"modf": {},
|
||||
"mremap": {},
|
||||
"munmap": {},
|
||||
"nanf": {},
|
||||
"nanosleep": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"openat": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"pipe2": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"posix_fadvise": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"puts": {},
|
||||
"pwrite": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"rand_r": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readlinkat": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"renameat2": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlcat": {},
|
||||
"strlcpy": {},
|
||||
"strlen": {},
|
||||
"strncasecmp": {},
|
||||
"strncat": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtok": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"symlinkat": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unlinkat": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimensat": {},
|
||||
"utimes": {},
|
||||
"uuid_copy": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vfscanf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"vsscanf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
512
capi_linux_386.go
Normal file
512
capi_linux_386.go
Normal file
|
@ -0,0 +1,512 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_IO_putc": {},
|
||||
"___errno_location": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_b_loc": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno_location": {},
|
||||
"__floatscan": {},
|
||||
"__fpclassify": {},
|
||||
"__fpclassifyf": {},
|
||||
"__fpclassifyl": {},
|
||||
"__fsmu8": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__intscan": {},
|
||||
"__isalnum_l": {},
|
||||
"__isalpha_l": {},
|
||||
"__isdigit_l": {},
|
||||
"__islower_l": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isprint_l": {},
|
||||
"__isupper_l": {},
|
||||
"__isxdigit_l": {},
|
||||
"__lockfile": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__strncasecmp_l": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__unlockfile": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fstatfs": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"ftruncate64": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostbyname_r": {},
|
||||
"gethostname": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getrandom": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isupper": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbrtowc": {},
|
||||
"mbsinit": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"mmap64": {},
|
||||
"modf": {},
|
||||
"mremap": {},
|
||||
"munmap": {},
|
||||
"nanf": {},
|
||||
"nanosleep": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"posix_fadvise": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"puts": {},
|
||||
"pwrite": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"rand_r": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlcat": {},
|
||||
"strlcpy": {},
|
||||
"strlen": {},
|
||||
"strncasecmp": {},
|
||||
"strncat": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtok": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_copy": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vfscanf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"vsscanf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
528
capi_linux_amd64.go
Normal file
528
capi_linux_amd64.go
Normal file
|
@ -0,0 +1,528 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_IO_putc": {},
|
||||
"___errno_location": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_b_loc": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno_location": {},
|
||||
"__floatscan": {},
|
||||
"__fpclassify": {},
|
||||
"__fpclassifyf": {},
|
||||
"__fpclassifyl": {},
|
||||
"__fsmu8": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__intscan": {},
|
||||
"__isalnum_l": {},
|
||||
"__isalpha_l": {},
|
||||
"__isdigit_l": {},
|
||||
"__islower_l": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isprint_l": {},
|
||||
"__isupper_l": {},
|
||||
"__isxdigit_l": {},
|
||||
"__lockfile": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__strncasecmp_l": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__unlockfile": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"dup3": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"faccessat": {},
|
||||
"fchmod": {},
|
||||
"fchmodat": {},
|
||||
"fchown": {},
|
||||
"fchownat": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fstatfs": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"ftruncate64": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostbyname_r": {},
|
||||
"gethostname": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getrandom": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isupper": {},
|
||||
"iswalnum": {},
|
||||
"iswspace": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"linkat": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbrtowc": {},
|
||||
"mbsinit": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkdirat": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mknodat": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"mmap64": {},
|
||||
"modf": {},
|
||||
"mremap": {},
|
||||
"munmap": {},
|
||||
"nanf": {},
|
||||
"nanosleep": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"openat": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"pipe2": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"posix_fadvise": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"puts": {},
|
||||
"pwrite": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"rand_r": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readlinkat": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"renameat2": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlcat": {},
|
||||
"strlcpy": {},
|
||||
"strlen": {},
|
||||
"strncasecmp": {},
|
||||
"strncat": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtok": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"symlinkat": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unlinkat": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimensat": {},
|
||||
"utimes": {},
|
||||
"uuid_copy": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vfscanf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"vsscanf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
512
capi_linux_arm.go
Normal file
512
capi_linux_arm.go
Normal file
|
@ -0,0 +1,512 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_IO_putc": {},
|
||||
"___errno_location": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_b_loc": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno_location": {},
|
||||
"__floatscan": {},
|
||||
"__fpclassify": {},
|
||||
"__fpclassifyf": {},
|
||||
"__fpclassifyl": {},
|
||||
"__fsmu8": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__intscan": {},
|
||||
"__isalnum_l": {},
|
||||
"__isalpha_l": {},
|
||||
"__isdigit_l": {},
|
||||
"__islower_l": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isprint_l": {},
|
||||
"__isupper_l": {},
|
||||
"__isxdigit_l": {},
|
||||
"__lockfile": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__strncasecmp_l": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__unlockfile": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fstatfs": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"ftruncate64": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostbyname_r": {},
|
||||
"gethostname": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getrandom": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isupper": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbrtowc": {},
|
||||
"mbsinit": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"mmap64": {},
|
||||
"modf": {},
|
||||
"mremap": {},
|
||||
"munmap": {},
|
||||
"nanf": {},
|
||||
"nanosleep": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"posix_fadvise": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"puts": {},
|
||||
"pwrite": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"rand_r": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlcat": {},
|
||||
"strlcpy": {},
|
||||
"strlen": {},
|
||||
"strncasecmp": {},
|
||||
"strncat": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtok": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_copy": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vfscanf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"vsscanf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
512
capi_linux_arm64.go
Normal file
512
capi_linux_arm64.go
Normal file
|
@ -0,0 +1,512 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_IO_putc": {},
|
||||
"___errno_location": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_b_loc": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno_location": {},
|
||||
"__floatscan": {},
|
||||
"__fpclassify": {},
|
||||
"__fpclassifyf": {},
|
||||
"__fpclassifyl": {},
|
||||
"__fsmu8": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__intscan": {},
|
||||
"__isalnum_l": {},
|
||||
"__isalpha_l": {},
|
||||
"__isdigit_l": {},
|
||||
"__islower_l": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isprint_l": {},
|
||||
"__isupper_l": {},
|
||||
"__isxdigit_l": {},
|
||||
"__lockfile": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__strncasecmp_l": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__unlockfile": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fstatfs": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"ftruncate64": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostbyname_r": {},
|
||||
"gethostname": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getrandom": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isupper": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbrtowc": {},
|
||||
"mbsinit": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"mmap64": {},
|
||||
"modf": {},
|
||||
"mremap": {},
|
||||
"munmap": {},
|
||||
"nanf": {},
|
||||
"nanosleep": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"posix_fadvise": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"puts": {},
|
||||
"pwrite": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"rand_r": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlcat": {},
|
||||
"strlcpy": {},
|
||||
"strlen": {},
|
||||
"strncasecmp": {},
|
||||
"strncat": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtok": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_copy": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vfscanf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"vsscanf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
528
capi_linux_loong64.go
Normal file
528
capi_linux_loong64.go
Normal file
|
@ -0,0 +1,528 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_IO_putc": {},
|
||||
"___errno_location": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_b_loc": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno_location": {},
|
||||
"__floatscan": {},
|
||||
"__fpclassify": {},
|
||||
"__fpclassifyf": {},
|
||||
"__fpclassifyl": {},
|
||||
"__fsmu8": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__intscan": {},
|
||||
"__isalnum_l": {},
|
||||
"__isalpha_l": {},
|
||||
"__isdigit_l": {},
|
||||
"__islower_l": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isprint_l": {},
|
||||
"__isupper_l": {},
|
||||
"__isxdigit_l": {},
|
||||
"__lockfile": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__strncasecmp_l": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__unlockfile": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"dup3": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"faccessat": {},
|
||||
"fchmod": {},
|
||||
"fchmodat": {},
|
||||
"fchown": {},
|
||||
"fchownat": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fstatfs": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"ftruncate64": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostbyname_r": {},
|
||||
"gethostname": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getrandom": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isupper": {},
|
||||
"iswalnum": {},
|
||||
"iswspace": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"linkat": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbrtowc": {},
|
||||
"mbsinit": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkdirat": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mknodat": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"mmap64": {},
|
||||
"modf": {},
|
||||
"mremap": {},
|
||||
"munmap": {},
|
||||
"nanf": {},
|
||||
"nanosleep": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"openat": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"pipe2": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"posix_fadvise": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"puts": {},
|
||||
"pwrite": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"rand_r": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readlinkat": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"renameat2": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlcat": {},
|
||||
"strlcpy": {},
|
||||
"strlen": {},
|
||||
"strncasecmp": {},
|
||||
"strncat": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtok": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"symlinkat": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unlinkat": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimensat": {},
|
||||
"utimes": {},
|
||||
"uuid_copy": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vfscanf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"vsscanf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
528
capi_linux_mips64le.go
Normal file
528
capi_linux_mips64le.go
Normal file
|
@ -0,0 +1,528 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_IO_putc": {},
|
||||
"___errno_location": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_b_loc": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno_location": {},
|
||||
"__floatscan": {},
|
||||
"__fpclassify": {},
|
||||
"__fpclassifyf": {},
|
||||
"__fpclassifyl": {},
|
||||
"__fsmu8": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__intscan": {},
|
||||
"__isalnum_l": {},
|
||||
"__isalpha_l": {},
|
||||
"__isdigit_l": {},
|
||||
"__islower_l": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isprint_l": {},
|
||||
"__isupper_l": {},
|
||||
"__isxdigit_l": {},
|
||||
"__lockfile": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__strncasecmp_l": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__unlockfile": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"dup3": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"faccessat": {},
|
||||
"fchmod": {},
|
||||
"fchmodat": {},
|
||||
"fchown": {},
|
||||
"fchownat": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fstatfs": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"ftruncate64": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostbyname_r": {},
|
||||
"gethostname": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getrandom": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isupper": {},
|
||||
"iswalnum": {},
|
||||
"iswspace": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"linkat": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbrtowc": {},
|
||||
"mbsinit": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkdirat": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mknodat": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"mmap64": {},
|
||||
"modf": {},
|
||||
"mremap": {},
|
||||
"munmap": {},
|
||||
"nanf": {},
|
||||
"nanosleep": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"openat": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"pipe2": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"posix_fadvise": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"puts": {},
|
||||
"pwrite": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"rand_r": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readlinkat": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"renameat2": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlcat": {},
|
||||
"strlcpy": {},
|
||||
"strlen": {},
|
||||
"strncasecmp": {},
|
||||
"strncat": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtok": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"symlinkat": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unlinkat": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimensat": {},
|
||||
"utimes": {},
|
||||
"uuid_copy": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vfscanf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"vsscanf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
528
capi_linux_ppc64le.go
Normal file
528
capi_linux_ppc64le.go
Normal file
|
@ -0,0 +1,528 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_IO_putc": {},
|
||||
"___errno_location": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_b_loc": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno_location": {},
|
||||
"__floatscan": {},
|
||||
"__fpclassify": {},
|
||||
"__fpclassifyf": {},
|
||||
"__fpclassifyl": {},
|
||||
"__fsmu8": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__intscan": {},
|
||||
"__isalnum_l": {},
|
||||
"__isalpha_l": {},
|
||||
"__isdigit_l": {},
|
||||
"__islower_l": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isprint_l": {},
|
||||
"__isupper_l": {},
|
||||
"__isxdigit_l": {},
|
||||
"__lockfile": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__strncasecmp_l": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__unlockfile": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"dup3": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"faccessat": {},
|
||||
"fchmod": {},
|
||||
"fchmodat": {},
|
||||
"fchown": {},
|
||||
"fchownat": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fstatfs": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"ftruncate64": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostbyname_r": {},
|
||||
"gethostname": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getrandom": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isupper": {},
|
||||
"iswalnum": {},
|
||||
"iswspace": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"linkat": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbrtowc": {},
|
||||
"mbsinit": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkdirat": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mknodat": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"mmap64": {},
|
||||
"modf": {},
|
||||
"mremap": {},
|
||||
"munmap": {},
|
||||
"nanf": {},
|
||||
"nanosleep": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"openat": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"pipe2": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"posix_fadvise": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"puts": {},
|
||||
"pwrite": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"rand_r": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readlinkat": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"renameat2": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlcat": {},
|
||||
"strlcpy": {},
|
||||
"strlen": {},
|
||||
"strncasecmp": {},
|
||||
"strncat": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtok": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"symlinkat": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unlinkat": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimensat": {},
|
||||
"utimes": {},
|
||||
"uuid_copy": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vfscanf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"vsscanf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
514
capi_linux_riscv64.go
Normal file
514
capi_linux_riscv64.go
Normal file
|
@ -0,0 +1,514 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_IO_putc": {},
|
||||
"___errno_location": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_b_loc": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno_location": {},
|
||||
"__floatscan": {},
|
||||
"__fpclassify": {},
|
||||
"__fpclassifyf": {},
|
||||
"__fpclassifyl": {},
|
||||
"__fsmu8": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__intscan": {},
|
||||
"__isalnum_l": {},
|
||||
"__isalpha_l": {},
|
||||
"__isdigit_l": {},
|
||||
"__islower_l": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isprint_l": {},
|
||||
"__isupper_l": {},
|
||||
"__isxdigit_l": {},
|
||||
"__lockfile": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__strncasecmp_l": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__unlockfile": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fstatfs": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"ftruncate64": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostbyname_r": {},
|
||||
"gethostname": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getrandom": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isupper": {},
|
||||
"iswalnum": {},
|
||||
"iswspace": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbrtowc": {},
|
||||
"mbsinit": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"mmap64": {},
|
||||
"modf": {},
|
||||
"mremap": {},
|
||||
"munmap": {},
|
||||
"nanf": {},
|
||||
"nanosleep": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"posix_fadvise": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"puts": {},
|
||||
"pwrite": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"rand_r": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlcat": {},
|
||||
"strlcpy": {},
|
||||
"strlen": {},
|
||||
"strncasecmp": {},
|
||||
"strncat": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtok": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_copy": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vfscanf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"vsscanf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
512
capi_linux_s390x.go
Normal file
512
capi_linux_s390x.go
Normal file
|
@ -0,0 +1,512 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_IO_putc": {},
|
||||
"___errno_location": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_b_loc": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno_location": {},
|
||||
"__floatscan": {},
|
||||
"__fpclassify": {},
|
||||
"__fpclassifyf": {},
|
||||
"__fpclassifyl": {},
|
||||
"__fsmu8": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__intscan": {},
|
||||
"__isalnum_l": {},
|
||||
"__isalpha_l": {},
|
||||
"__isdigit_l": {},
|
||||
"__islower_l": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isprint_l": {},
|
||||
"__isupper_l": {},
|
||||
"__isxdigit_l": {},
|
||||
"__lockfile": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__strncasecmp_l": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__unlockfile": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fstatfs": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"ftruncate64": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostbyname_r": {},
|
||||
"gethostname": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getrandom": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isupper": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbrtowc": {},
|
||||
"mbsinit": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"mmap64": {},
|
||||
"modf": {},
|
||||
"mremap": {},
|
||||
"munmap": {},
|
||||
"nanf": {},
|
||||
"nanosleep": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"posix_fadvise": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"puts": {},
|
||||
"pwrite": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"rand_r": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlcat": {},
|
||||
"strlcpy": {},
|
||||
"strlen": {},
|
||||
"strncasecmp": {},
|
||||
"strncat": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtok": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_copy": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vfscanf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"vsscanf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
501
capi_netbsd_amd64.go
Normal file
501
capi_netbsd_amd64.go
Normal file
|
@ -0,0 +1,501 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_C_ctype_tab_": {},
|
||||
"_IO_putc": {},
|
||||
"_ThreadRuneLocale": {},
|
||||
"___errno_location": {},
|
||||
"___runetype": {},
|
||||
"__assert": {},
|
||||
"__assert13": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno": {},
|
||||
"__errno_location": {},
|
||||
"__error": {},
|
||||
"__floatscan": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__inet_ntoa": {},
|
||||
"__intscan": {},
|
||||
"__isalnum_l": {},
|
||||
"__isalpha_l": {},
|
||||
"__isdigit_l": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isprint_l": {},
|
||||
"__isthreaded": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__mb_sb_limit": {},
|
||||
"__runes_for_locale": {},
|
||||
"__sF": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__srget": {},
|
||||
"__stderrp": {},
|
||||
"__stdinp": {},
|
||||
"__stdoutp": {},
|
||||
"__swbuf": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__xuname": {},
|
||||
"_ctype_tab_": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"_tolower_tab_": {},
|
||||
"_toupper_tab_": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bswap16": {},
|
||||
"bswap32": {},
|
||||
"bswap64": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chflags": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostname": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"modf": {},
|
||||
"munmap": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"puts": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlen": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
501
capi_netbsd_arm.go
Normal file
501
capi_netbsd_arm.go
Normal file
|
@ -0,0 +1,501 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_C_ctype_tab_": {},
|
||||
"_IO_putc": {},
|
||||
"_ThreadRuneLocale": {},
|
||||
"___errno_location": {},
|
||||
"___runetype": {},
|
||||
"__assert": {},
|
||||
"__assert13": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno": {},
|
||||
"__errno_location": {},
|
||||
"__error": {},
|
||||
"__floatscan": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__inet_ntoa": {},
|
||||
"__intscan": {},
|
||||
"__isalnum_l": {},
|
||||
"__isalpha_l": {},
|
||||
"__isdigit_l": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isprint_l": {},
|
||||
"__isthreaded": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__mb_sb_limit": {},
|
||||
"__runes_for_locale": {},
|
||||
"__sF": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__srget": {},
|
||||
"__stderrp": {},
|
||||
"__stdinp": {},
|
||||
"__stdoutp": {},
|
||||
"__swbuf": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__xuname": {},
|
||||
"_ctype_tab_": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"_tolower_tab_": {},
|
||||
"_toupper_tab_": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bswap16": {},
|
||||
"bswap32": {},
|
||||
"bswap64": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chflags": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostname": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"modf": {},
|
||||
"munmap": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"puts": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlen": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
512
capi_openbsd_386.go
Normal file
512
capi_openbsd_386.go
Normal file
|
@ -0,0 +1,512 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_C_ctype_": {},
|
||||
"_IO_putc": {},
|
||||
"_ThreadRuneLocale": {},
|
||||
"___errno_location": {},
|
||||
"___runetype": {},
|
||||
"__assert": {},
|
||||
"__assert13": {},
|
||||
"__assert2": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno": {},
|
||||
"__errno_location": {},
|
||||
"__error": {},
|
||||
"__floatscan": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__inet_ntoa": {},
|
||||
"__intscan": {},
|
||||
"__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": {},
|
||||
"__mb_sb_limit": {},
|
||||
"__runes_for_locale": {},
|
||||
"__sF": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__srget": {},
|
||||
"__stderrp": {},
|
||||
"__stdinp": {},
|
||||
"__stdoutp": {},
|
||||
"__swbuf": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__xuname": {},
|
||||
"_ctype_": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"_tolower_tab_": {},
|
||||
"_toupper_tab_": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bswap16": {},
|
||||
"bswap32": {},
|
||||
"bswap64": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chflags": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostname": {},
|
||||
"getnameinfo": {},
|
||||
"getpagesize": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isblank": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isspace": {},
|
||||
"isupper": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"modf": {},
|
||||
"munmap": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"puts": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlen": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
513
capi_openbsd_amd64.go
Normal file
513
capi_openbsd_amd64.go
Normal file
|
@ -0,0 +1,513 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_C_ctype_": {},
|
||||
"_IO_putc": {},
|
||||
"_ThreadRuneLocale": {},
|
||||
"___errno_location": {},
|
||||
"___runetype": {},
|
||||
"__assert": {},
|
||||
"__assert13": {},
|
||||
"__assert2": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isblank": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno": {},
|
||||
"__errno_location": {},
|
||||
"__error": {},
|
||||
"__floatscan": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__inet_ntoa": {},
|
||||
"__intscan": {},
|
||||
"__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": {},
|
||||
"__mb_sb_limit": {},
|
||||
"__runes_for_locale": {},
|
||||
"__sF": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__srget": {},
|
||||
"__stderrp": {},
|
||||
"__stdinp": {},
|
||||
"__stdoutp": {},
|
||||
"__swbuf": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__xuname": {},
|
||||
"_ctype_": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"_tolower_tab_": {},
|
||||
"_toupper_tab_": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bswap16": {},
|
||||
"bswap32": {},
|
||||
"bswap64": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chflags": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostname": {},
|
||||
"getnameinfo": {},
|
||||
"getpagesize": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isblank": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isspace": {},
|
||||
"isupper": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"modf": {},
|
||||
"munmap": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"puts": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlen": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
513
capi_openbsd_arm64.go
Normal file
513
capi_openbsd_arm64.go
Normal file
|
@ -0,0 +1,513 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_C_ctype_": {},
|
||||
"_IO_putc": {},
|
||||
"_ThreadRuneLocale": {},
|
||||
"___errno_location": {},
|
||||
"___runetype": {},
|
||||
"__assert": {},
|
||||
"__assert13": {},
|
||||
"__assert2": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isblank": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno": {},
|
||||
"__errno_location": {},
|
||||
"__error": {},
|
||||
"__floatscan": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__inet_ntoa": {},
|
||||
"__intscan": {},
|
||||
"__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": {},
|
||||
"__mb_sb_limit": {},
|
||||
"__runes_for_locale": {},
|
||||
"__sF": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__srget": {},
|
||||
"__stderrp": {},
|
||||
"__stdinp": {},
|
||||
"__stdoutp": {},
|
||||
"__swbuf": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__xuname": {},
|
||||
"_ctype_": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"_tolower_tab_": {},
|
||||
"_toupper_tab_": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bswap16": {},
|
||||
"bswap32": {},
|
||||
"bswap64": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chflags": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostname": {},
|
||||
"getnameinfo": {},
|
||||
"getpagesize": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isblank": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isspace": {},
|
||||
"isupper": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"modf": {},
|
||||
"munmap": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"puts": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlen": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
730
capi_windows_386.go
Normal file
730
capi_windows_386.go
Normal file
|
@ -0,0 +1,730 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"AccessCheck": {},
|
||||
"AddAccessDeniedAce": {},
|
||||
"AddAce": {},
|
||||
"AreFileApisANSI": {},
|
||||
"BuildCommDCBW": {},
|
||||
"CancelSynchronousIo": {},
|
||||
"CharLowerW": {},
|
||||
"ClearCommError": {},
|
||||
"CloseHandle": {},
|
||||
"CopyFileW": {},
|
||||
"CreateDirectoryW": {},
|
||||
"CreateEventA": {},
|
||||
"CreateEventW": {},
|
||||
"CreateFileA": {},
|
||||
"CreateFileMappingA": {},
|
||||
"CreateFileMappingW": {},
|
||||
"CreateFileW": {},
|
||||
"CreateHardLinkW": {},
|
||||
"CreateMutexW": {},
|
||||
"CreatePipe": {},
|
||||
"CreateProcessA": {},
|
||||
"CreateProcessW": {},
|
||||
"CreateThread": {},
|
||||
"CreateWindowExW": {},
|
||||
"DdeAbandonTransaction": {},
|
||||
"DdeAccessData": {},
|
||||
"DdeClientTransaction": {},
|
||||
"DdeConnect": {},
|
||||
"DdeCreateDataHandle": {},
|
||||
"DdeCreateStringHandleW": {},
|
||||
"DdeDisconnect": {},
|
||||
"DdeFreeDataHandle": {},
|
||||
"DdeFreeStringHandle": {},
|
||||
"DdeGetData": {},
|
||||
"DdeGetLastError": {},
|
||||
"DdeInitializeW": {},
|
||||
"DdeNameService": {},
|
||||
"DdeQueryStringW": {},
|
||||
"DdeUnaccessData": {},
|
||||
"DdeUninitialize": {},
|
||||
"DebugBreak": {},
|
||||
"DefWindowProcW": {},
|
||||
"DeleteCriticalSection": {},
|
||||
"DeleteFileA": {},
|
||||
"DeleteFileW": {},
|
||||
"DestroyWindow": {},
|
||||
"DeviceIoControl": {},
|
||||
"DispatchMessageW": {},
|
||||
"DuplicateHandle": {},
|
||||
"EnterCriticalSection": {},
|
||||
"EnumWindows": {},
|
||||
"EqualSid": {},
|
||||
"EscapeCommFunction": {},
|
||||
"ExitProcess": {},
|
||||
"FindClose": {},
|
||||
"FindFirstFileExW": {},
|
||||
"FindFirstFileW": {},
|
||||
"FindNextFileW": {},
|
||||
"FlushFileBuffers": {},
|
||||
"FlushViewOfFile": {},
|
||||
"FormatMessageA": {},
|
||||
"FormatMessageW": {},
|
||||
"FreeLibrary": {},
|
||||
"GetACP": {},
|
||||
"GetAce": {},
|
||||
"GetAclInformation": {},
|
||||
"GetCommModemStatus": {},
|
||||
"GetCommState": {},
|
||||
"GetCommandLineW": {},
|
||||
"GetComputerNameExW": {},
|
||||
"GetComputerNameW": {},
|
||||
"GetConsoleCP": {},
|
||||
"GetConsoleMode": {},
|
||||
"GetConsoleScreenBufferInfo": {},
|
||||
"GetCurrentDirectoryW": {},
|
||||
"GetCurrentProcess": {},
|
||||
"GetCurrentProcessId": {},
|
||||
"GetCurrentThread": {},
|
||||
"GetCurrentThreadId": {},
|
||||
"GetDiskFreeSpaceA": {},
|
||||
"GetDiskFreeSpaceW": {},
|
||||
"GetEnvironmentVariableA": {},
|
||||
"GetEnvironmentVariableW": {},
|
||||
"GetExitCodeProcess": {},
|
||||
"GetExitCodeThread": {},
|
||||
"GetFileAttributesA": {},
|
||||
"GetFileAttributesExW": {},
|
||||
"GetFileAttributesW": {},
|
||||
"GetFileInformationByHandle": {},
|
||||
"GetFileSecurityA": {},
|
||||
"GetFileSecurityW": {},
|
||||
"GetFileSize": {},
|
||||
"GetFileType": {},
|
||||
"GetFullPathNameA": {},
|
||||
"GetFullPathNameW": {},
|
||||
"GetLastError": {},
|
||||
"GetLengthSid": {},
|
||||
"GetLogicalDriveStringsA": {},
|
||||
"GetMessageW": {},
|
||||
"GetModuleFileNameA": {},
|
||||
"GetModuleFileNameW": {},
|
||||
"GetModuleHandleA": {},
|
||||
"GetModuleHandleW": {},
|
||||
"GetNamedSecurityInfoW": {},
|
||||
"GetOverlappedResult": {},
|
||||
"GetPrivateProfileStringA": {},
|
||||
"GetProcAddress": {},
|
||||
"GetProcessHeap": {},
|
||||
"GetProfilesDirectoryW": {},
|
||||
"GetSecurityDescriptorDacl": {},
|
||||
"GetSecurityDescriptorOwner": {},
|
||||
"GetShortPathNameW": {},
|
||||
"GetSidIdentifierAuthority": {},
|
||||
"GetSidLengthRequired": {},
|
||||
"GetSidSubAuthority": {},
|
||||
"GetStdHandle": {},
|
||||
"GetSystemInfo": {},
|
||||
"GetSystemTime": {},
|
||||
"GetSystemTimeAsFileTime": {},
|
||||
"GetTempFileNameW": {},
|
||||
"GetTempPathA": {},
|
||||
"GetTempPathW": {},
|
||||
"GetTickCount": {},
|
||||
"GetTokenInformation": {},
|
||||
"GetUserNameW": {},
|
||||
"GetVersionExA": {},
|
||||
"GetVersionExW": {},
|
||||
"GetVolumeInformationA": {},
|
||||
"GetVolumeInformationW": {},
|
||||
"GetVolumeNameForVolumeMountPointW": {},
|
||||
"GetWindowLongPtrW": {},
|
||||
"GetWindowLongW": {},
|
||||
"GetWindowsDirectoryA": {},
|
||||
"GlobalAddAtomW": {},
|
||||
"GlobalDeleteAtom": {},
|
||||
"GlobalGetAtomNameW": {},
|
||||
"HeapAlloc": {},
|
||||
"HeapCompact": {},
|
||||
"HeapCreate": {},
|
||||
"HeapDestroy": {},
|
||||
"HeapFree": {},
|
||||
"HeapReAlloc": {},
|
||||
"HeapSize": {},
|
||||
"HeapValidate": {},
|
||||
"IN6_ADDR_EQUAL": {},
|
||||
"IN6_IS_ADDR_V4MAPPED": {},
|
||||
"ImpersonateSelf": {},
|
||||
"InitializeAcl": {},
|
||||
"InitializeCriticalSection": {},
|
||||
"InitializeSid": {},
|
||||
"IsDebuggerPresent": {},
|
||||
"IsWindow": {},
|
||||
"KillTimer": {},
|
||||
"LeaveCriticalSection": {},
|
||||
"LoadLibraryA": {},
|
||||
"LoadLibraryExW": {},
|
||||
"LoadLibraryW": {},
|
||||
"LocalFree": {},
|
||||
"LockFile": {},
|
||||
"LockFileEx": {},
|
||||
"MapViewOfFile": {},
|
||||
"MessageBeep": {},
|
||||
"MessageBoxW": {},
|
||||
"MoveFileW": {},
|
||||
"MsgWaitForMultipleObjectsEx": {},
|
||||
"MultiByteToWideChar": {},
|
||||
"NetApiBufferFree": {},
|
||||
"NetGetDCName": {},
|
||||
"NetUserGetInfo": {},
|
||||
"OpenEventA": {},
|
||||
"OpenProcessToken": {},
|
||||
"OpenThreadToken": {},
|
||||
"OutputDebugStringA": {},
|
||||
"OutputDebugStringW": {},
|
||||
"PeekConsoleInputW": {},
|
||||
"PeekMessageW": {},
|
||||
"PeekNamedPipe": {},
|
||||
"PostMessageW": {},
|
||||
"PostQuitMessage": {},
|
||||
"PurgeComm": {},
|
||||
"QueryPerformanceCounter": {},
|
||||
"QueryPerformanceFrequency": {},
|
||||
"RaiseException": {},
|
||||
"ReadConsoleW": {},
|
||||
"ReadFile": {},
|
||||
"RegCloseKey": {},
|
||||
"RegConnectRegistryW": {},
|
||||
"RegCreateKeyExW": {},
|
||||
"RegDeleteKeyW": {},
|
||||
"RegDeleteValueW": {},
|
||||
"RegEnumKeyExW": {},
|
||||
"RegEnumValueW": {},
|
||||
"RegOpenKeyExW": {},
|
||||
"RegQueryValueExW": {},
|
||||
"RegSetValueExW": {},
|
||||
"RegisterClassExW": {},
|
||||
"RegisterClassW": {},
|
||||
"RemoveDirectoryW": {},
|
||||
"ResetEvent": {},
|
||||
"RevertToSelf": {},
|
||||
"RtlGetVersion": {},
|
||||
"SearchPathW": {},
|
||||
"SendMessageTimeoutW": {},
|
||||
"SendMessageW": {},
|
||||
"SetCommState": {},
|
||||
"SetCommTimeouts": {},
|
||||
"SetConsoleCtrlHandler": {},
|
||||
"SetConsoleMode": {},
|
||||
"SetConsoleTextAttribute": {},
|
||||
"SetCurrentDirectoryW": {},
|
||||
"SetEndOfFile": {},
|
||||
"SetErrorMode": {},
|
||||
"SetEvent": {},
|
||||
"SetFileAttributesW": {},
|
||||
"SetFilePointer": {},
|
||||
"SetFileTime": {},
|
||||
"SetHandleInformation": {},
|
||||
"SetNamedSecurityInfoA": {},
|
||||
"SetThreadPriority": {},
|
||||
"SetTimer": {},
|
||||
"SetWindowLongPtrW": {},
|
||||
"SetWindowLongW": {},
|
||||
"SetupComm": {},
|
||||
"Sleep": {},
|
||||
"SleepEx": {},
|
||||
"SystemTimeToFileTime": {},
|
||||
"TerminateThread": {},
|
||||
"TranslateMessage": {},
|
||||
"UnlockFile": {},
|
||||
"UnlockFileEx": {},
|
||||
"UnmapViewOfFile": {},
|
||||
"UnregisterClassW": {},
|
||||
"WSAAsyncSelect": {},
|
||||
"WSAGetLastError": {},
|
||||
"WSAStartup": {},
|
||||
"WaitForInputIdle": {},
|
||||
"WaitForSingleObject": {},
|
||||
"WaitForSingleObjectEx": {},
|
||||
"WideCharToMultiByte": {},
|
||||
"WriteConsoleW": {},
|
||||
"WriteFile": {},
|
||||
"WspiapiFreeAddrInfo": {},
|
||||
"WspiapiGetAddrInfo": {},
|
||||
"WspiapiGetNameInfo": {},
|
||||
"_IO_putc": {},
|
||||
"_InterlockedCompareExchange": {},
|
||||
"_InterlockedExchange": {},
|
||||
"___errno_location": {},
|
||||
"__acrt_iob_func": {},
|
||||
"__assert_fail": {},
|
||||
"__atomic_load_n": {},
|
||||
"__atomic_store_n": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflow": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflow": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflow": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__env_rm_add": {},
|
||||
"__errno_location": {},
|
||||
"__imp__environ": {},
|
||||
"__imp__wenviron": {},
|
||||
"__isalnum_l": {},
|
||||
"__isalpha_l": {},
|
||||
"__isdigit_l": {},
|
||||
"__islower_l": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isprint_l": {},
|
||||
"__isspace_l": {},
|
||||
"__isxdigit_l": {},
|
||||
"__mingw_vfprintf": {},
|
||||
"__mingw_vfscanf": {},
|
||||
"__mingw_vfwprintf": {},
|
||||
"__mingw_vfwscanf": {},
|
||||
"__mingw_vprintf": {},
|
||||
"__mingw_vsnprintf": {},
|
||||
"__mingw_vsnwprintf": {},
|
||||
"__mingw_vsprintf": {},
|
||||
"__mingw_vsscanf": {},
|
||||
"__mingw_vswscanf": {},
|
||||
"__ms_vfscanf": {},
|
||||
"__ms_vfwscanf": {},
|
||||
"__ms_vscanf": {},
|
||||
"__ms_vsnprintf": {},
|
||||
"__ms_vsscanf": {},
|
||||
"__ms_vswscanf": {},
|
||||
"__ms_vwscanf": {},
|
||||
"__putenv": {},
|
||||
"__stdio_common_vfprintf": {},
|
||||
"__stdio_common_vfprintf_p": {},
|
||||
"__stdio_common_vfprintf_s": {},
|
||||
"__stdio_common_vfscanf": {},
|
||||
"__stdio_common_vfwprintf_s": {},
|
||||
"__stdio_common_vfwscanf": {},
|
||||
"__stdio_common_vsnprintf_s": {},
|
||||
"__stdio_common_vsnwprintf_s": {},
|
||||
"__stdio_common_vsprintf": {},
|
||||
"__stdio_common_vsprintf_p": {},
|
||||
"__stdio_common_vsprintf_s": {},
|
||||
"__stdio_common_vsscanf": {},
|
||||
"__stdio_common_vswprintf": {},
|
||||
"__stdio_common_vswprintf_s": {},
|
||||
"__stdio_common_vswscanf": {},
|
||||
"__strchrnul": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"_access": {},
|
||||
"_assert": {},
|
||||
"_beginthread": {},
|
||||
"_beginthreadex": {},
|
||||
"_byteswap_uint64": {},
|
||||
"_byteswap_ulong": {},
|
||||
"_chmod": {},
|
||||
"_chsize": {},
|
||||
"_commit": {},
|
||||
"_controlfp": {},
|
||||
"_copysign": {},
|
||||
"_endthreadex": {},
|
||||
"_errno": {},
|
||||
"_exit": {},
|
||||
"_fileno": {},
|
||||
"_findclose": {},
|
||||
"_findfirst32": {},
|
||||
"_findfirst64i32": {},
|
||||
"_findnext32": {},
|
||||
"_findnext64i32": {},
|
||||
"_fstat": {},
|
||||
"_fstat64": {},
|
||||
"_fstati64": {},
|
||||
"_ftime": {},
|
||||
"_ftime64": {},
|
||||
"_gmtime32": {},
|
||||
"_gmtime64": {},
|
||||
"_imp___environ": {},
|
||||
"_iob": {},
|
||||
"_isatty": {},
|
||||
"_localtime32": {},
|
||||
"_localtime64": {},
|
||||
"_longjmp": {},
|
||||
"_mkdir": {},
|
||||
"_mktime64": {},
|
||||
"_msize": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_pclose": {},
|
||||
"_popen": {},
|
||||
"_putchar": {},
|
||||
"_set_abort_behavior": {},
|
||||
"_setjmp": {},
|
||||
"_setmode": {},
|
||||
"_snprintf": {},
|
||||
"_snwprintf": {},
|
||||
"_stat64": {},
|
||||
"_stati64": {},
|
||||
"_strdup": {},
|
||||
"_stricmp": {},
|
||||
"_strnicmp": {},
|
||||
"_unlink": {},
|
||||
"_vsnwprintf": {},
|
||||
"_wcsicmp": {},
|
||||
"_wcsnicmp": {},
|
||||
"_wgetenv": {},
|
||||
"_wopen": {},
|
||||
"_wputenv": {},
|
||||
"_wtoi": {},
|
||||
"_wunlink": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chmod": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"closesocket": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"ftruncate64": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"gai_strerrorA": {},
|
||||
"gai_strerrorW": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"gethostname": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"gmtime": {},
|
||||
"gmtime_r": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"ioctl": {},
|
||||
"ioctlsocket": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isspace": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"lstrcmpiA": {},
|
||||
"lstrlenW": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"mmap64": {},
|
||||
"modf": {},
|
||||
"mremap": {},
|
||||
"munmap": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"popen": {},
|
||||
"pow": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"putenv": {},
|
||||
"puts": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"random": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setmode": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setvbuf": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strlen": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtol": {},
|
||||
"strtoul": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"timezone": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"waitpid": {},
|
||||
"wcrtomb": {},
|
||||
"wcschr": {},
|
||||
"wcscmp": {},
|
||||
"wcscpy": {},
|
||||
"wcsicmp": {},
|
||||
"wcslen": {},
|
||||
"wcsncmp": {},
|
||||
"wcsrtombs": {},
|
||||
"wcstombs": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"wsprintfA": {},
|
||||
"wsprintfW": {},
|
||||
}
|
710
capi_windows_amd64.go
Normal file
710
capi_windows_amd64.go
Normal file
|
@ -0,0 +1,710 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"AccessCheck": {},
|
||||
"AddAccessDeniedAce": {},
|
||||
"AddAce": {},
|
||||
"AreFileApisANSI": {},
|
||||
"BuildCommDCBW": {},
|
||||
"CancelSynchronousIo": {},
|
||||
"CharLowerW": {},
|
||||
"ClearCommError": {},
|
||||
"CloseHandle": {},
|
||||
"CopyFileW": {},
|
||||
"CreateDirectoryW": {},
|
||||
"CreateEventA": {},
|
||||
"CreateEventW": {},
|
||||
"CreateFileA": {},
|
||||
"CreateFileMappingA": {},
|
||||
"CreateFileMappingW": {},
|
||||
"CreateFileW": {},
|
||||
"CreateHardLinkW": {},
|
||||
"CreateMutexW": {},
|
||||
"CreatePipe": {},
|
||||
"CreateProcessA": {},
|
||||
"CreateProcessW": {},
|
||||
"CreateThread": {},
|
||||
"CreateWindowExW": {},
|
||||
"DdeAbandonTransaction": {},
|
||||
"DdeAccessData": {},
|
||||
"DdeClientTransaction": {},
|
||||
"DdeConnect": {},
|
||||
"DdeCreateDataHandle": {},
|
||||
"DdeCreateStringHandleW": {},
|
||||
"DdeDisconnect": {},
|
||||
"DdeFreeDataHandle": {},
|
||||
"DdeFreeStringHandle": {},
|
||||
"DdeGetData": {},
|
||||
"DdeGetLastError": {},
|
||||
"DdeInitializeW": {},
|
||||
"DdeNameService": {},
|
||||
"DdeQueryStringW": {},
|
||||
"DdeUnaccessData": {},
|
||||
"DdeUninitialize": {},
|
||||
"DebugBreak": {},
|
||||
"DefWindowProcW": {},
|
||||
"DeleteCriticalSection": {},
|
||||
"DeleteFileA": {},
|
||||
"DeleteFileW": {},
|
||||
"DestroyWindow": {},
|
||||
"DeviceIoControl": {},
|
||||
"DispatchMessageW": {},
|
||||
"DuplicateHandle": {},
|
||||
"EnterCriticalSection": {},
|
||||
"EnumWindows": {},
|
||||
"EqualSid": {},
|
||||
"EscapeCommFunction": {},
|
||||
"ExitProcess": {},
|
||||
"FindClose": {},
|
||||
"FindFirstFileExW": {},
|
||||
"FindFirstFileW": {},
|
||||
"FindNextFileW": {},
|
||||
"FlushFileBuffers": {},
|
||||
"FlushViewOfFile": {},
|
||||
"FormatMessageA": {},
|
||||
"FormatMessageW": {},
|
||||
"FreeLibrary": {},
|
||||
"GetACP": {},
|
||||
"GetAce": {},
|
||||
"GetAclInformation": {},
|
||||
"GetCommModemStatus": {},
|
||||
"GetCommState": {},
|
||||
"GetCommandLineW": {},
|
||||
"GetComputerNameExW": {},
|
||||
"GetComputerNameW": {},
|
||||
"GetConsoleCP": {},
|
||||
"GetConsoleMode": {},
|
||||
"GetConsoleScreenBufferInfo": {},
|
||||
"GetCurrentDirectoryW": {},
|
||||
"GetCurrentProcess": {},
|
||||
"GetCurrentProcessId": {},
|
||||
"GetCurrentThread": {},
|
||||
"GetCurrentThreadId": {},
|
||||
"GetDiskFreeSpaceA": {},
|
||||
"GetDiskFreeSpaceW": {},
|
||||
"GetEnvironmentVariableA": {},
|
||||
"GetEnvironmentVariableW": {},
|
||||
"GetExitCodeProcess": {},
|
||||
"GetExitCodeThread": {},
|
||||
"GetFileAttributesA": {},
|
||||
"GetFileAttributesExW": {},
|
||||
"GetFileAttributesW": {},
|
||||
"GetFileInformationByHandle": {},
|
||||
"GetFileSecurityA": {},
|
||||
"GetFileSecurityW": {},
|
||||
"GetFileSize": {},
|
||||
"GetFileType": {},
|
||||
"GetFullPathNameA": {},
|
||||
"GetFullPathNameW": {},
|
||||
"GetLastError": {},
|
||||
"GetLengthSid": {},
|
||||
"GetLogicalDriveStringsA": {},
|
||||
"GetMessageW": {},
|
||||
"GetModuleFileNameA": {},
|
||||
"GetModuleFileNameW": {},
|
||||
"GetModuleHandleA": {},
|
||||
"GetModuleHandleW": {},
|
||||
"GetNamedSecurityInfoW": {},
|
||||
"GetOverlappedResult": {},
|
||||
"GetPrivateProfileStringA": {},
|
||||
"GetProcAddress": {},
|
||||
"GetProcessHeap": {},
|
||||
"GetProfilesDirectoryW": {},
|
||||
"GetSecurityDescriptorDacl": {},
|
||||
"GetSecurityDescriptorOwner": {},
|
||||
"GetShortPathNameW": {},
|
||||
"GetSidIdentifierAuthority": {},
|
||||
"GetSidLengthRequired": {},
|
||||
"GetSidSubAuthority": {},
|
||||
"GetStdHandle": {},
|
||||
"GetSystemInfo": {},
|
||||
"GetSystemTime": {},
|
||||
"GetSystemTimeAsFileTime": {},
|
||||
"GetTempFileNameW": {},
|
||||
"GetTempPathA": {},
|
||||
"GetTempPathW": {},
|
||||
"GetTickCount": {},
|
||||
"GetTokenInformation": {},
|
||||
"GetUserNameW": {},
|
||||
"GetVersionExA": {},
|
||||
"GetVersionExW": {},
|
||||
"GetVolumeInformationA": {},
|
||||
"GetVolumeInformationW": {},
|
||||
"GetVolumeNameForVolumeMountPointW": {},
|
||||
"GetWindowLongPtrW": {},
|
||||
"GetWindowsDirectoryA": {},
|
||||
"GlobalAddAtomW": {},
|
||||
"GlobalDeleteAtom": {},
|
||||
"GlobalGetAtomNameW": {},
|
||||
"HeapAlloc": {},
|
||||
"HeapCompact": {},
|
||||
"HeapCreate": {},
|
||||
"HeapDestroy": {},
|
||||
"HeapFree": {},
|
||||
"HeapReAlloc": {},
|
||||
"HeapSize": {},
|
||||
"HeapValidate": {},
|
||||
"IN6_ADDR_EQUAL": {},
|
||||
"IN6_IS_ADDR_V4MAPPED": {},
|
||||
"ImpersonateSelf": {},
|
||||
"InitializeAcl": {},
|
||||
"InitializeCriticalSection": {},
|
||||
"InitializeSid": {},
|
||||
"IsDebuggerPresent": {},
|
||||
"IsWindow": {},
|
||||
"KillTimer": {},
|
||||
"LeaveCriticalSection": {},
|
||||
"LoadLibraryA": {},
|
||||
"LoadLibraryExW": {},
|
||||
"LoadLibraryW": {},
|
||||
"LocalFree": {},
|
||||
"LockFile": {},
|
||||
"LockFileEx": {},
|
||||
"MapViewOfFile": {},
|
||||
"MessageBeep": {},
|
||||
"MessageBoxW": {},
|
||||
"MoveFileW": {},
|
||||
"MsgWaitForMultipleObjectsEx": {},
|
||||
"MultiByteToWideChar": {},
|
||||
"NetApiBufferFree": {},
|
||||
"NetGetDCName": {},
|
||||
"NetUserGetInfo": {},
|
||||
"OpenEventA": {},
|
||||
"OpenProcessToken": {},
|
||||
"OpenThreadToken": {},
|
||||
"OutputDebugStringA": {},
|
||||
"OutputDebugStringW": {},
|
||||
"PeekConsoleInputW": {},
|
||||
"PeekMessageW": {},
|
||||
"PeekNamedPipe": {},
|
||||
"PostMessageW": {},
|
||||
"PostQuitMessage": {},
|
||||
"PurgeComm": {},
|
||||
"QueryPerformanceCounter": {},
|
||||
"QueryPerformanceFrequency": {},
|
||||
"RaiseException": {},
|
||||
"ReadConsoleW": {},
|
||||
"ReadFile": {},
|
||||
"RegCloseKey": {},
|
||||
"RegConnectRegistryW": {},
|
||||
"RegCreateKeyExW": {},
|
||||
"RegDeleteKeyW": {},
|
||||
"RegDeleteValueW": {},
|
||||
"RegEnumKeyExW": {},
|
||||
"RegEnumValueW": {},
|
||||
"RegOpenKeyExW": {},
|
||||
"RegQueryValueExW": {},
|
||||
"RegSetValueExW": {},
|
||||
"RegisterClassExW": {},
|
||||
"RegisterClassW": {},
|
||||
"RemoveDirectoryW": {},
|
||||
"ResetEvent": {},
|
||||
"RevertToSelf": {},
|
||||
"RtlGetVersion": {},
|
||||
"SearchPathW": {},
|
||||
"SendMessageTimeoutW": {},
|
||||
"SendMessageW": {},
|
||||
"SetCommState": {},
|
||||
"SetCommTimeouts": {},
|
||||
"SetConsoleCtrlHandler": {},
|
||||
"SetConsoleMode": {},
|
||||
"SetConsoleTextAttribute": {},
|
||||
"SetCurrentDirectoryW": {},
|
||||
"SetEndOfFile": {},
|
||||
"SetErrorMode": {},
|
||||
"SetEvent": {},
|
||||
"SetFileAttributesW": {},
|
||||
"SetFilePointer": {},
|
||||
"SetFileTime": {},
|
||||
"SetHandleInformation": {},
|
||||
"SetNamedSecurityInfoA": {},
|
||||
"SetThreadPriority": {},
|
||||
"SetTimer": {},
|
||||
"SetWindowLongPtrW": {},
|
||||
"SetupComm": {},
|
||||
"Sleep": {},
|
||||
"SleepEx": {},
|
||||
"SystemTimeToFileTime": {},
|
||||
"TerminateThread": {},
|
||||
"TranslateMessage": {},
|
||||
"UnlockFile": {},
|
||||
"UnlockFileEx": {},
|
||||
"UnmapViewOfFile": {},
|
||||
"UnregisterClassW": {},
|
||||
"WSAAsyncSelect": {},
|
||||
"WSAGetLastError": {},
|
||||
"WSAStartup": {},
|
||||
"WaitForInputIdle": {},
|
||||
"WaitForSingleObject": {},
|
||||
"WaitForSingleObjectEx": {},
|
||||
"WideCharToMultiByte": {},
|
||||
"WriteConsoleW": {},
|
||||
"WriteFile": {},
|
||||
"WspiapiFreeAddrInfo": {},
|
||||
"WspiapiGetAddrInfo": {},
|
||||
"WspiapiGetNameInfo": {},
|
||||
"_IO_putc": {},
|
||||
"_InterlockedCompareExchange": {},
|
||||
"_InterlockedExchange": {},
|
||||
"___errno_location": {},
|
||||
"__acrt_iob_func": {},
|
||||
"__assert_fail": {},
|
||||
"__atomic_load_n": {},
|
||||
"__atomic_store_n": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflow": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflow": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflow": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__env_rm_add": {},
|
||||
"__errno_location": {},
|
||||
"__imp__environ": {},
|
||||
"__imp__wenviron": {},
|
||||
"__isalnum_l": {},
|
||||
"__isalpha_l": {},
|
||||
"__isdigit_l": {},
|
||||
"__islower_l": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isprint_l": {},
|
||||
"__isspace_l": {},
|
||||
"__isxdigit_l": {},
|
||||
"__mingw_vfprintf": {},
|
||||
"__mingw_vfscanf": {},
|
||||
"__mingw_vfwprintf": {},
|
||||
"__mingw_vfwscanf": {},
|
||||
"__mingw_vprintf": {},
|
||||
"__mingw_vsnprintf": {},
|
||||
"__mingw_vsnwprintf": {},
|
||||
"__mingw_vsprintf": {},
|
||||
"__mingw_vsscanf": {},
|
||||
"__mingw_vswscanf": {},
|
||||
"__ms_vfscanf": {},
|
||||
"__ms_vfwscanf": {},
|
||||
"__ms_vscanf": {},
|
||||
"__ms_vsnprintf": {},
|
||||
"__ms_vsscanf": {},
|
||||
"__ms_vswscanf": {},
|
||||
"__ms_vwscanf": {},
|
||||
"__putenv": {},
|
||||
"__strchrnul": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"_access": {},
|
||||
"_assert": {},
|
||||
"_beginthread": {},
|
||||
"_beginthreadex": {},
|
||||
"_byteswap_uint64": {},
|
||||
"_byteswap_ulong": {},
|
||||
"_chmod": {},
|
||||
"_chsize": {},
|
||||
"_commit": {},
|
||||
"_controlfp": {},
|
||||
"_copysign": {},
|
||||
"_endthreadex": {},
|
||||
"_errno": {},
|
||||
"_exit": {},
|
||||
"_fileno": {},
|
||||
"_findclose": {},
|
||||
"_findfirst32": {},
|
||||
"_findfirst64i32": {},
|
||||
"_findnext32": {},
|
||||
"_findnext64i32": {},
|
||||
"_fstat64": {},
|
||||
"_fstati64": {},
|
||||
"_ftime": {},
|
||||
"_ftime64": {},
|
||||
"_gmtime64": {},
|
||||
"_imp___environ": {},
|
||||
"_iob": {},
|
||||
"_isatty": {},
|
||||
"_localtime64": {},
|
||||
"_longjmp": {},
|
||||
"_mkdir": {},
|
||||
"_mktime64": {},
|
||||
"_msize": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_pclose": {},
|
||||
"_popen": {},
|
||||
"_putchar": {},
|
||||
"_set_abort_behavior": {},
|
||||
"_setjmp": {},
|
||||
"_setmode": {},
|
||||
"_snprintf": {},
|
||||
"_snwprintf": {},
|
||||
"_stat64": {},
|
||||
"_stati64": {},
|
||||
"_strdup": {},
|
||||
"_stricmp": {},
|
||||
"_strnicmp": {},
|
||||
"_unlink": {},
|
||||
"_vsnwprintf": {},
|
||||
"_wcsicmp": {},
|
||||
"_wcsnicmp": {},
|
||||
"_wgetenv": {},
|
||||
"_wopen": {},
|
||||
"_wputenv": {},
|
||||
"_wtoi": {},
|
||||
"_wunlink": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chmod": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"closesocket": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"ftruncate64": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"gai_strerrorA": {},
|
||||
"gai_strerrorW": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"gethostname": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"gmtime": {},
|
||||
"gmtime_r": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"ioctl": {},
|
||||
"ioctlsocket": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isspace": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"lstrcmpiA": {},
|
||||
"lstrlenW": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"mmap64": {},
|
||||
"modf": {},
|
||||
"mremap": {},
|
||||
"munmap": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"popen": {},
|
||||
"pow": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"putenv": {},
|
||||
"puts": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"random": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setmode": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setvbuf": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strlen": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtol": {},
|
||||
"strtoul": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"timezone": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"waitpid": {},
|
||||
"wcrtomb": {},
|
||||
"wcschr": {},
|
||||
"wcscmp": {},
|
||||
"wcscpy": {},
|
||||
"wcsicmp": {},
|
||||
"wcslen": {},
|
||||
"wcsncmp": {},
|
||||
"wcsrtombs": {},
|
||||
"wcstombs": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"wsprintfA": {},
|
||||
"wsprintfW": {},
|
||||
}
|
725
capi_windows_arm64.go
Normal file
725
capi_windows_arm64.go
Normal file
|
@ -0,0 +1,725 @@
|
|||
// Code generated by 'go generate' - DO NOT EDIT.
|
||||
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"AccessCheck": {},
|
||||
"AddAccessDeniedAce": {},
|
||||
"AddAce": {},
|
||||
"AreFileApisANSI": {},
|
||||
"BuildCommDCBW": {},
|
||||
"CancelSynchronousIo": {},
|
||||
"CharLowerW": {},
|
||||
"ClearCommError": {},
|
||||
"CloseHandle": {},
|
||||
"CopyFileW": {},
|
||||
"CreateDirectoryW": {},
|
||||
"CreateEventA": {},
|
||||
"CreateEventW": {},
|
||||
"CreateFileA": {},
|
||||
"CreateFileMappingA": {},
|
||||
"CreateFileMappingW": {},
|
||||
"CreateFileW": {},
|
||||
"CreateHardLinkW": {},
|
||||
"CreateMutexW": {},
|
||||
"CreatePipe": {},
|
||||
"CreateProcessA": {},
|
||||
"CreateProcessW": {},
|
||||
"CreateThread": {},
|
||||
"CreateWindowExW": {},
|
||||
"DdeAbandonTransaction": {},
|
||||
"DdeAccessData": {},
|
||||
"DdeClientTransaction": {},
|
||||
"DdeConnect": {},
|
||||
"DdeCreateDataHandle": {},
|
||||
"DdeCreateStringHandleW": {},
|
||||
"DdeDisconnect": {},
|
||||
"DdeFreeDataHandle": {},
|
||||
"DdeFreeStringHandle": {},
|
||||
"DdeGetData": {},
|
||||
"DdeGetLastError": {},
|
||||
"DdeInitializeW": {},
|
||||
"DdeNameService": {},
|
||||
"DdeQueryStringW": {},
|
||||
"DdeUnaccessData": {},
|
||||
"DdeUninitialize": {},
|
||||
"DebugBreak": {},
|
||||
"DefWindowProcW": {},
|
||||
"DeleteCriticalSection": {},
|
||||
"DeleteFileA": {},
|
||||
"DeleteFileW": {},
|
||||
"DestroyWindow": {},
|
||||
"DeviceIoControl": {},
|
||||
"DispatchMessageW": {},
|
||||
"DuplicateHandle": {},
|
||||
"EnterCriticalSection": {},
|
||||
"EnumWindows": {},
|
||||
"EqualSid": {},
|
||||
"EscapeCommFunction": {},
|
||||
"ExitProcess": {},
|
||||
"FindClose": {},
|
||||
"FindFirstFileExW": {},
|
||||
"FindFirstFileW": {},
|
||||
"FindNextFileW": {},
|
||||
"FlushFileBuffers": {},
|
||||
"FlushViewOfFile": {},
|
||||
"FormatMessageA": {},
|
||||
"FormatMessageW": {},
|
||||
"FreeLibrary": {},
|
||||
"GetACP": {},
|
||||
"GetAce": {},
|
||||
"GetAclInformation": {},
|
||||
"GetCommModemStatus": {},
|
||||
"GetCommState": {},
|
||||
"GetCommandLineW": {},
|
||||
"GetComputerNameExW": {},
|
||||
"GetComputerNameW": {},
|
||||
"GetConsoleCP": {},
|
||||
"GetConsoleMode": {},
|
||||
"GetConsoleScreenBufferInfo": {},
|
||||
"GetCurrentDirectoryW": {},
|
||||
"GetCurrentProcess": {},
|
||||
"GetCurrentProcessId": {},
|
||||
"GetCurrentThread": {},
|
||||
"GetCurrentThreadId": {},
|
||||
"GetDiskFreeSpaceA": {},
|
||||
"GetDiskFreeSpaceW": {},
|
||||
"GetEnvironmentVariableA": {},
|
||||
"GetEnvironmentVariableW": {},
|
||||
"GetExitCodeProcess": {},
|
||||
"GetExitCodeThread": {},
|
||||
"GetFileAttributesA": {},
|
||||
"GetFileAttributesExW": {},
|
||||
"GetFileAttributesW": {},
|
||||
"GetFileInformationByHandle": {},
|
||||
"GetFileSecurityA": {},
|
||||
"GetFileSecurityW": {},
|
||||
"GetFileSize": {},
|
||||
"GetFileType": {},
|
||||
"GetFullPathNameA": {},
|
||||
"GetFullPathNameW": {},
|
||||
"GetLastError": {},
|
||||
"GetLengthSid": {},
|
||||
"GetLogicalDriveStringsA": {},
|
||||
"GetMessageW": {},
|
||||
"GetModuleFileNameA": {},
|
||||
"GetModuleFileNameW": {},
|
||||
"GetModuleHandleA": {},
|
||||
"GetModuleHandleW": {},
|
||||
"GetNamedSecurityInfoW": {},
|
||||
"GetOverlappedResult": {},
|
||||
"GetPrivateProfileStringA": {},
|
||||
"GetProcAddress": {},
|
||||
"GetProcessHeap": {},
|
||||
"GetProfilesDirectoryW": {},
|
||||
"GetSecurityDescriptorDacl": {},
|
||||
"GetSecurityDescriptorOwner": {},
|
||||
"GetShortPathNameW": {},
|
||||
"GetSidIdentifierAuthority": {},
|
||||
"GetSidLengthRequired": {},
|
||||
"GetSidSubAuthority": {},
|
||||
"GetStdHandle": {},
|
||||
"GetSystemInfo": {},
|
||||
"GetSystemTime": {},
|
||||
"GetSystemTimeAsFileTime": {},
|
||||
"GetTempFileNameW": {},
|
||||
"GetTempPathA": {},
|
||||
"GetTempPathW": {},
|
||||
"GetTickCount": {},
|
||||
"GetTokenInformation": {},
|
||||
"GetUserNameW": {},
|
||||
"GetVersionExA": {},
|
||||
"GetVersionExW": {},
|
||||
"GetVolumeInformationA": {},
|
||||
"GetVolumeInformationW": {},
|
||||
"GetVolumeNameForVolumeMountPointW": {},
|
||||
"GetWindowLongPtrW": {},
|
||||
"GetWindowsDirectoryA": {},
|
||||
"GlobalAddAtomW": {},
|
||||
"GlobalDeleteAtom": {},
|
||||
"GlobalGetAtomNameW": {},
|
||||
"HeapAlloc": {},
|
||||
"HeapCompact": {},
|
||||
"HeapCreate": {},
|
||||
"HeapDestroy": {},
|
||||
"HeapFree": {},
|
||||
"HeapReAlloc": {},
|
||||
"HeapSize": {},
|
||||
"HeapValidate": {},
|
||||
"IN6_ADDR_EQUAL": {},
|
||||
"IN6_IS_ADDR_V4MAPPED": {},
|
||||
"ImpersonateSelf": {},
|
||||
"InitializeAcl": {},
|
||||
"InitializeCriticalSection": {},
|
||||
"InitializeSid": {},
|
||||
"IsDebuggerPresent": {},
|
||||
"IsWindow": {},
|
||||
"KillTimer": {},
|
||||
"LeaveCriticalSection": {},
|
||||
"LoadLibraryA": {},
|
||||
"LoadLibraryExW": {},
|
||||
"LoadLibraryW": {},
|
||||
"LocalFree": {},
|
||||
"LockFile": {},
|
||||
"LockFileEx": {},
|
||||
"MapViewOfFile": {},
|
||||
"MessageBeep": {},
|
||||
"MessageBoxW": {},
|
||||
"MoveFileW": {},
|
||||
"MsgWaitForMultipleObjectsEx": {},
|
||||
"MultiByteToWideChar": {},
|
||||
"NetApiBufferFree": {},
|
||||
"NetGetDCName": {},
|
||||
"NetUserGetInfo": {},
|
||||
"OpenEventA": {},
|
||||
"OpenProcessToken": {},
|
||||
"OpenThreadToken": {},
|
||||
"OutputDebugStringA": {},
|
||||
"OutputDebugStringW": {},
|
||||
"PeekConsoleInputW": {},
|
||||
"PeekMessageW": {},
|
||||
"PeekNamedPipe": {},
|
||||
"PostMessageW": {},
|
||||
"PostQuitMessage": {},
|
||||
"PurgeComm": {},
|
||||
"QueryPerformanceCounter": {},
|
||||
"QueryPerformanceFrequency": {},
|
||||
"RaiseException": {},
|
||||
"ReadConsoleW": {},
|
||||
"ReadFile": {},
|
||||
"RegCloseKey": {},
|
||||
"RegConnectRegistryW": {},
|
||||
"RegCreateKeyExW": {},
|
||||
"RegDeleteKeyW": {},
|
||||
"RegDeleteValueW": {},
|
||||
"RegEnumKeyExW": {},
|
||||
"RegEnumValueW": {},
|
||||
"RegOpenKeyExW": {},
|
||||
"RegQueryValueExW": {},
|
||||
"RegSetValueExW": {},
|
||||
"RegisterClassExW": {},
|
||||
"RegisterClassW": {},
|
||||
"RemoveDirectoryW": {},
|
||||
"ResetEvent": {},
|
||||
"RevertToSelf": {},
|
||||
"RtlGetVersion": {},
|
||||
"SearchPathW": {},
|
||||
"SendMessageTimeoutW": {},
|
||||
"SendMessageW": {},
|
||||
"SetCommState": {},
|
||||
"SetCommTimeouts": {},
|
||||
"SetConsoleCtrlHandler": {},
|
||||
"SetConsoleMode": {},
|
||||
"SetConsoleTextAttribute": {},
|
||||
"SetCurrentDirectoryW": {},
|
||||
"SetEndOfFile": {},
|
||||
"SetErrorMode": {},
|
||||
"SetEvent": {},
|
||||
"SetFileAttributesW": {},
|
||||
"SetFilePointer": {},
|
||||
"SetFileTime": {},
|
||||
"SetHandleInformation": {},
|
||||
"SetNamedSecurityInfoA": {},
|
||||
"SetThreadPriority": {},
|
||||
"SetTimer": {},
|
||||
"SetWindowLongPtrW": {},
|
||||
"SetupComm": {},
|
||||
"Sleep": {},
|
||||
"SleepEx": {},
|
||||
"SystemTimeToFileTime": {},
|
||||
"TerminateThread": {},
|
||||
"TranslateMessage": {},
|
||||
"UnlockFile": {},
|
||||
"UnlockFileEx": {},
|
||||
"UnmapViewOfFile": {},
|
||||
"UnregisterClassW": {},
|
||||
"WSAAsyncSelect": {},
|
||||
"WSAGetLastError": {},
|
||||
"WSAStartup": {},
|
||||
"WaitForInputIdle": {},
|
||||
"WaitForSingleObject": {},
|
||||
"WaitForSingleObjectEx": {},
|
||||
"WideCharToMultiByte": {},
|
||||
"WriteConsoleW": {},
|
||||
"WriteFile": {},
|
||||
"WspiapiFreeAddrInfo": {},
|
||||
"WspiapiGetAddrInfo": {},
|
||||
"WspiapiGetNameInfo": {},
|
||||
"_IO_putc": {},
|
||||
"_InterlockedCompareExchange": {},
|
||||
"_InterlockedExchange": {},
|
||||
"___errno_location": {},
|
||||
"__acrt_iob_func": {},
|
||||
"__assert_fail": {},
|
||||
"__atomic_load_n": {},
|
||||
"__atomic_store_n": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflow": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflow": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflow": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__env_rm_add": {},
|
||||
"__errno_location": {},
|
||||
"__imp__environ": {},
|
||||
"__imp__wenviron": {},
|
||||
"__isalnum_l": {},
|
||||
"__isalpha_l": {},
|
||||
"__isdigit_l": {},
|
||||
"__islower_l": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isprint_l": {},
|
||||
"__isspace_l": {},
|
||||
"__isxdigit_l": {},
|
||||
"__mingw_vfprintf": {},
|
||||
"__mingw_vfscanf": {},
|
||||
"__mingw_vfwprintf": {},
|
||||
"__mingw_vfwscanf": {},
|
||||
"__mingw_vprintf": {},
|
||||
"__mingw_vsnprintf": {},
|
||||
"__mingw_vsnwprintf": {},
|
||||
"__mingw_vsprintf": {},
|
||||
"__mingw_vsscanf": {},
|
||||
"__mingw_vswscanf": {},
|
||||
"__ms_vfscanf": {},
|
||||
"__ms_vfwscanf": {},
|
||||
"__ms_vscanf": {},
|
||||
"__ms_vsnprintf": {},
|
||||
"__ms_vsscanf": {},
|
||||
"__ms_vswscanf": {},
|
||||
"__ms_vwscanf": {},
|
||||
"__putenv": {},
|
||||
"__stdio_common_vfprintf": {},
|
||||
"__stdio_common_vfprintf_p": {},
|
||||
"__stdio_common_vfprintf_s": {},
|
||||
"__stdio_common_vfscanf": {},
|
||||
"__stdio_common_vfwprintf_s": {},
|
||||
"__stdio_common_vfwscanf": {},
|
||||
"__stdio_common_vsnprintf_s": {},
|
||||
"__stdio_common_vsnwprintf_s": {},
|
||||
"__stdio_common_vsprintf": {},
|
||||
"__stdio_common_vsprintf_p": {},
|
||||
"__stdio_common_vsprintf_s": {},
|
||||
"__stdio_common_vsscanf": {},
|
||||
"__stdio_common_vswprintf": {},
|
||||
"__stdio_common_vswprintf_s": {},
|
||||
"__stdio_common_vswscanf": {},
|
||||
"__strchrnul": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"_access": {},
|
||||
"_assert": {},
|
||||
"_beginthread": {},
|
||||
"_beginthreadex": {},
|
||||
"_byteswap_uint64": {},
|
||||
"_byteswap_ulong": {},
|
||||
"_chmod": {},
|
||||
"_chsize": {},
|
||||
"_commit": {},
|
||||
"_controlfp": {},
|
||||
"_copysign": {},
|
||||
"_endthreadex": {},
|
||||
"_errno": {},
|
||||
"_exit": {},
|
||||
"_fileno": {},
|
||||
"_findclose": {},
|
||||
"_findfirst32": {},
|
||||
"_findfirst64i32": {},
|
||||
"_findnext32": {},
|
||||
"_findnext64i32": {},
|
||||
"_fstat64": {},
|
||||
"_fstati64": {},
|
||||
"_ftime": {},
|
||||
"_ftime64": {},
|
||||
"_gmtime64": {},
|
||||
"_imp___environ": {},
|
||||
"_iob": {},
|
||||
"_isatty": {},
|
||||
"_localtime64": {},
|
||||
"_longjmp": {},
|
||||
"_mkdir": {},
|
||||
"_mktime64": {},
|
||||
"_msize": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_pclose": {},
|
||||
"_popen": {},
|
||||
"_putchar": {},
|
||||
"_set_abort_behavior": {},
|
||||
"_setjmp": {},
|
||||
"_setmode": {},
|
||||
"_snprintf": {},
|
||||
"_snwprintf": {},
|
||||
"_stat64": {},
|
||||
"_stati64": {},
|
||||
"_strdup": {},
|
||||
"_stricmp": {},
|
||||
"_strnicmp": {},
|
||||
"_unlink": {},
|
||||
"_vsnwprintf": {},
|
||||
"_wcsicmp": {},
|
||||
"_wcsnicmp": {},
|
||||
"_wgetenv": {},
|
||||
"_wopen": {},
|
||||
"_wputenv": {},
|
||||
"_wtoi": {},
|
||||
"_wunlink": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chmod": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"closesocket": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"ftruncate64": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"gai_strerrorA": {},
|
||||
"gai_strerrorW": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"gethostname": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"gmtime": {},
|
||||
"gmtime_r": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"ioctl": {},
|
||||
"ioctlsocket": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isspace": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"log2": {},
|
||||
"longjmp": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"lstrcmpiA": {},
|
||||
"lstrlenW": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"mmap64": {},
|
||||
"modf": {},
|
||||
"mremap": {},
|
||||
"munmap": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"popen": {},
|
||||
"pow": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"putenv": {},
|
||||
"puts": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"random": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setmode": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setvbuf": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strlen": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtol": {},
|
||||
"strtoul": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"timezone": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"waitpid": {},
|
||||
"wcrtomb": {},
|
||||
"wcschr": {},
|
||||
"wcscmp": {},
|
||||
"wcscpy": {},
|
||||
"wcsicmp": {},
|
||||
"wcslen": {},
|
||||
"wcsncmp": {},
|
||||
"wcsrtombs": {},
|
||||
"wcstombs": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"wsprintfA": {},
|
||||
"wsprintfW": {},
|
||||
}
|
157064
ccgo_linux_386.go
Normal file
157064
ccgo_linux_386.go
Normal file
File diff suppressed because one or more lines are too long
154830
ccgo_linux_amd64.go
Normal file
154830
ccgo_linux_amd64.go
Normal file
File diff suppressed because one or more lines are too long
156684
ccgo_linux_arm.go
Normal file
156684
ccgo_linux_arm.go
Normal file
File diff suppressed because one or more lines are too long
154146
ccgo_linux_arm64.go
Normal file
154146
ccgo_linux_arm64.go
Normal file
File diff suppressed because one or more lines are too long
154139
ccgo_linux_loong64.go
Normal file
154139
ccgo_linux_loong64.go
Normal file
File diff suppressed because one or more lines are too long
155163
ccgo_linux_ppc64le.go
Normal file
155163
ccgo_linux_ppc64le.go
Normal file
File diff suppressed because one or more lines are too long
154062
ccgo_linux_riscv64.go
Normal file
154062
ccgo_linux_riscv64.go
Normal file
File diff suppressed because one or more lines are too long
154544
ccgo_linux_s390x.go
Normal file
154544
ccgo_linux_s390x.go
Normal file
File diff suppressed because one or more lines are too long
95
darwin/gen.c
Normal file
95
darwin/gen.c
Normal file
|
@ -0,0 +1,95 @@
|
|||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
|
||||
// typedef struct {
|
||||
// char __magic[8]; /* Magic saying what version we are */
|
||||
// char __encoding[32]; /* ASCII name of this encoding */
|
||||
//
|
||||
// __darwin_rune_t (*__sgetrune)(const char *, __darwin_size_t, char const **);
|
||||
// int (*__sputrune)(__darwin_rune_t, char *, __darwin_size_t, char **);
|
||||
// __darwin_rune_t __invalid_rune;
|
||||
//
|
||||
// __uint32_t __runetype[_CACHED_RUNES];
|
||||
// __darwin_rune_t __maplower[_CACHED_RUNES];
|
||||
// __darwin_rune_t __mapupper[_CACHED_RUNES];
|
||||
//
|
||||
// /*
|
||||
// * The following are to deal with Runes larger than _CACHED_RUNES - 1.
|
||||
// * Their data is actually contiguous with this structure so as to make
|
||||
// * it easier to read/write from/to disk.
|
||||
// */
|
||||
// _RuneRange __runetype_ext;
|
||||
// _RuneRange __maplower_ext;
|
||||
// _RuneRange __mapupper_ext;
|
||||
//
|
||||
// void *__variable; /* Data which depends on the encoding */
|
||||
// int __variable_len; /* how long that data is */
|
||||
//
|
||||
// /*
|
||||
// * extra fields to deal with arbitrary character classes
|
||||
// */
|
||||
// int __ncharclasses;
|
||||
// _RuneCharClass *__charclasses;
|
||||
// } _RuneLocale;
|
||||
|
||||
|
||||
#define SZ(a) (sizeof(a)/sizeof(a[0]))
|
||||
|
||||
int main() {
|
||||
printf("#include <ctype.h>\n\n");
|
||||
|
||||
printf(
|
||||
" __maskrune(__darwin_ct_rune_t _c, unsigned long _f)\n"
|
||||
"{\n"
|
||||
" return (int)_DefaultRuneLocale.__runetype[_c & 0xff] & (__uint32_t)_f;\n"
|
||||
"}\n"
|
||||
);
|
||||
printf("\n__darwin_ct_rune_t __toupper(__darwin_ct_rune_t c) { return toupper(c); }\n");
|
||||
printf("\n__darwin_ct_rune_t __tolower(__darwin_ct_rune_t c) { return tolower(c); }\n");
|
||||
|
||||
printf("_RuneLocale _DefaultRuneLocale = {\n");
|
||||
|
||||
printf("\t.__magic = {");
|
||||
for (int i = 0; i < SZ(_DefaultRuneLocale.__magic); i++) {
|
||||
printf("%i, ", _DefaultRuneLocale.__magic[i]);
|
||||
}
|
||||
printf("},\n");
|
||||
|
||||
printf("\t.__encoding = {");
|
||||
for (int i = 0; i < SZ(_DefaultRuneLocale.__encoding); i++) {
|
||||
printf("%i, ", _DefaultRuneLocale.__encoding[i]);
|
||||
}
|
||||
printf("},\n");
|
||||
|
||||
printf("\t.__invalid_rune = 0x%x,\n", (unsigned)_DefaultRuneLocale.__invalid_rune);
|
||||
|
||||
printf("\t.__runetype = {");
|
||||
for (int i = 0; i < SZ(_DefaultRuneLocale.__runetype); i++) {
|
||||
if (i%16 == 0) {
|
||||
printf("\n\t\t");
|
||||
}
|
||||
printf("0x%x, ", _DefaultRuneLocale.__runetype[i]);
|
||||
}
|
||||
printf("\n\t},\n");
|
||||
|
||||
printf("\t.__maplower = {");
|
||||
for (int i = 0; i < SZ(_DefaultRuneLocale.__maplower); i++) {
|
||||
if (i%16 == 0) {
|
||||
printf("\n\t\t");
|
||||
}
|
||||
printf("0x%x, ", _DefaultRuneLocale.__maplower[i]);
|
||||
}
|
||||
printf("\n\t},\n");
|
||||
|
||||
printf("\t.__mapupper= {");
|
||||
for (int i = 0; i < SZ(_DefaultRuneLocale.__mapupper); i++) {
|
||||
if (i%16 == 0) {
|
||||
printf("\n\t\t");
|
||||
}
|
||||
printf("0x%x, ", _DefaultRuneLocale.__mapupper[i]);
|
||||
}
|
||||
printf("\n\t},\n");
|
||||
|
||||
printf("\n};\n");
|
||||
printf("\n_RuneLocale *_CurrentRuneLocale = &_DefaultRuneLocale;\n");
|
||||
}
|
1
darwin/gen.sh
Executable file
1
darwin/gen.sh
Executable file
|
@ -0,0 +1 @@
|
|||
gcc gen.c ; ./a.out | cpp > table.c ; rm -f a.out
|
1941
darwin/table.c
Normal file
1941
darwin/table.c
Normal file
File diff suppressed because it is too large
Load diff
7
dirent/capi_darwin_amd64.go
Normal file
7
dirent/capi_darwin_amd64.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_darwin_amd64.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"__darwin_check_fd_set_overflow": {},
|
||||
}
|
7
dirent/capi_darwin_arm64.go
Normal file
7
dirent/capi_darwin_arm64.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_darwin_arm64.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"__darwin_check_fd_set_overflow": {},
|
||||
}
|
5
dirent/capi_freebsd_386.go
Normal file
5
dirent/capi_freebsd_386.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_freebsd_386.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
5
dirent/capi_freebsd_amd64.go
Normal file
5
dirent/capi_freebsd_amd64.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_freebsd_amd64.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
5
dirent/capi_freebsd_arm.go
Normal file
5
dirent/capi_freebsd_arm.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_freebsd_arm.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
5
dirent/capi_freebsd_arm64.go
Normal file
5
dirent/capi_freebsd_arm64.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_freebsd_amd64.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
5
dirent/capi_illumos_amd64.go
Normal file
5
dirent/capi_illumos_amd64.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_illumos_amd64.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
5
dirent/capi_linux_386.go
Normal file
5
dirent/capi_linux_386.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent/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 dirent/dirent_linux_386.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
5
dirent/capi_linux_amd64.go
Normal file
5
dirent/capi_linux_amd64.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_linux_amd64.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
5
dirent/capi_linux_arm.go
Normal file
5
dirent/capi_linux_arm.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent/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 dirent/dirent_linux_arm.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
5
dirent/capi_linux_arm64.go
Normal file
5
dirent/capi_linux_arm64.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent/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 dirent/dirent_linux_arm64.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
5
dirent/capi_linux_loong64.go
Normal file
5
dirent/capi_linux_loong64.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_linux_loong64.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
5
dirent/capi_linux_mips64le.go
Normal file
5
dirent/capi_linux_mips64le.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_linux_amd64.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
5
dirent/capi_linux_ppc64le.go
Normal file
5
dirent/capi_linux_ppc64le.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_linux_ppc64le.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
5
dirent/capi_linux_riscv64.go
Normal file
5
dirent/capi_linux_riscv64.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent/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 dirent/dirent_linux_riscv64.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
5
dirent/capi_linux_s390x.go
Normal file
5
dirent/capi_linux_s390x.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent/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 dirent/dirent_linux_s390x.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
5
dirent/capi_netbsd_amd64.go
Normal file
5
dirent/capi_netbsd_amd64.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_netbsd_amd64.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
5
dirent/capi_netbsd_arm.go
Normal file
5
dirent/capi_netbsd_arm.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_netbsd_arm.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
5
dirent/capi_openbsd_386.go
Normal file
5
dirent/capi_openbsd_386.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_openbsd_386.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
5
dirent/capi_openbsd_amd64.go
Normal file
5
dirent/capi_openbsd_amd64.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_openbsd_amd64.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
5
dirent/capi_openbsd_arm64.go
Normal file
5
dirent/capi_openbsd_arm64.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_openbsd_arm64.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
5
dirent/capi_windows_386.go
Normal file
5
dirent/capi_windows_386.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_windows_386.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
5
dirent/capi_windows_amd64.go
Normal file
5
dirent/capi_windows_amd64.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent\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 dirent\dirent_windows_amd64.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
5
dirent/capi_windows_arm64.go
Normal file
5
dirent/capi_windows_arm64.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Code generated by 'ccgo dirent\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 dirent\dirent_windows_arm64.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
1091
dirent/dirent_darwin_amd64.go
Normal file
1091
dirent/dirent_darwin_amd64.go
Normal file
File diff suppressed because it is too large
Load diff
1127
dirent/dirent_darwin_arm64.go
Normal file
1127
dirent/dirent_darwin_arm64.go
Normal file
File diff suppressed because it is too large
Load diff
739
dirent/dirent_freebsd_386.go
Normal file
739
dirent/dirent_freebsd_386.go
Normal file
|
@ -0,0 +1,739 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_freebsd_386.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
import (
|
||||
"math"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ = math.Pi
|
||||
var _ reflect.Kind
|
||||
var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
DIRBLKSIZ = 1024 // dirent.h:85:1:
|
||||
DTF_HIDEW = 0x0001 // dirent.h:91:1:
|
||||
DTF_NODUP = 0x0002 // dirent.h:92:1:
|
||||
DTF_REWIND = 0x0004 // dirent.h:93:1:
|
||||
DT_BLK = 6 // dirent.h:101:1:
|
||||
DT_CHR = 2 // dirent.h:99:1:
|
||||
DT_DIR = 4 // dirent.h:100:1:
|
||||
DT_FIFO = 1 // dirent.h:98:1:
|
||||
DT_LNK = 10 // dirent.h:103:1:
|
||||
DT_REG = 8 // dirent.h:102:1:
|
||||
DT_SOCK = 12 // dirent.h:104:1:
|
||||
DT_UNKNOWN = 0 // dirent.h:97:1:
|
||||
DT_WHT = 14 // dirent.h:105:1:
|
||||
MAXNAMLEN = 255 // dirent.h:75:1:
|
||||
X_DIRENT_H_ = 0 // dirent.h:36:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_ILP32 = 1 // <predefined>:1:1:
|
||||
X_INO_T_DECLARED = 0 // dirent.h:43:1:
|
||||
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
|
||||
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
|
||||
X_Nonnull = 0 // cdefs.h:790:1:
|
||||
X_Null_unspecified = 0 // cdefs.h:792:1:
|
||||
X_Nullable = 0 // cdefs.h:791:1:
|
||||
X_OFF_T_DECLARED = 0 // dirent.h:48:1:
|
||||
X_SIZE_T_DECLARED = 0 // dirent.h:50:1:
|
||||
X_SSIZE_T_DECLARED = 0 // dirent.h:55:1:
|
||||
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
|
||||
X_SYS_DIRENT_H_ = 0 // dirent.h:36:1:
|
||||
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
|
||||
I386 = 1 // <predefined>:335:1:
|
||||
Unix = 1 // <predefined>:336:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int32 /* <builtin>:3:26 */
|
||||
|
||||
type Size_t = uint32 /* <builtin>:9:23 */
|
||||
|
||||
type Wchar_t = int32 /* <builtin>:15:24 */
|
||||
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// Copyright (c) 1989, 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. 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.
|
||||
//
|
||||
// @(#)dirent.h 8.2 (Berkeley) 7/28/94
|
||||
// $FreeBSD$
|
||||
|
||||
// The kernel defines the format of directory entries returned by
|
||||
// the getdirentries(2) system call.
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// 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. 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
|
||||
// $FreeBSD$
|
||||
|
||||
// Testing against Clang-specific extensions.
|
||||
|
||||
// This code has been put in place to help reduce the addition of
|
||||
// compiler specific defines in FreeBSD code. It helps to aid in
|
||||
// having a compiler-agnostic source tree.
|
||||
|
||||
// Compiler memory barriers, specific to gcc and clang.
|
||||
|
||||
// XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced
|
||||
|
||||
// Macro to test if we're using a specific version of gcc or later.
|
||||
|
||||
// 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 to use if it must work in non-ANSI
|
||||
// mode -- there must be no spaces between its arguments, and for nested
|
||||
// __CONCAT's, all the __CONCAT's must be at the left. __CONCAT can also
|
||||
// concatenate double-quoted strings produced by the __STRING macro, but
|
||||
// this only works with ANSI C.
|
||||
//
|
||||
// __XSTRING is like __STRING, but it expands any macros in its argument
|
||||
// first. It is only available with ANSI C.
|
||||
|
||||
// Compiler-dependent macros to help declare dead (non-returning) and
|
||||
// pure (no side effects) functions, and unused variables. They are
|
||||
// null except for versions of gcc that are known to support the features
|
||||
// properly (old versions of gcc-2 supported the dead and pure features
|
||||
// in a different (wrong) way). If we do not provide an implementation
|
||||
// for a given compiler, let the compile fail if it is told to use
|
||||
// a feature that we cannot live without.
|
||||
|
||||
// Keywords added in C11.
|
||||
|
||||
// Emulation of C11 _Generic(). Unlike the previously defined C11
|
||||
// keywords, it is not possible to implement this using exactly the same
|
||||
// syntax. Therefore implement something similar under the name
|
||||
// __generic(). Unlike _Generic(), this macro can only distinguish
|
||||
// between a single type, so it requires nested invocations to
|
||||
// distinguish multiple cases.
|
||||
|
||||
// C99 Static array indices in function parameter declarations. Syntax such as:
|
||||
// void bar(int myArray[static 10]);
|
||||
// is allowed in C99 but not in C++. Define __min_size appropriately so
|
||||
// headers using it can be compiled in either language. Use like this:
|
||||
// void bar(int myArray[__min_size(10)]);
|
||||
|
||||
// XXX: should use `#if __STDC_VERSION__ < 199901'.
|
||||
|
||||
// C++11 exposes a load of C99 stuff
|
||||
|
||||
// GCC 2.95 provides `__restrict' as an extension to C90 to support the
|
||||
// C99-specific `restrict' type qualifier. We happen to use `__restrict' as
|
||||
// a way to define the `restrict' type qualifier without disturbing older
|
||||
// software that is unaware of C99 keywords.
|
||||
|
||||
// GNU C version 2.96 adds explicit branch prediction so that
|
||||
// the CPU back-end can hint the processor and also so that
|
||||
// code blocks can be reordered such that the predicted path
|
||||
// sees a more linear flow, thus improving cache behavior, etc.
|
||||
//
|
||||
// The following two macros provide us with a way to utilize this
|
||||
// compiler feature. Use __predict_true() if you expect the expression
|
||||
// to evaluate to true, and __predict_false() if you expect the
|
||||
// expression to evaluate to false.
|
||||
//
|
||||
// A few notes about usage:
|
||||
//
|
||||
// * Generally, __predict_false() error condition checks (unless
|
||||
// you have some _strong_ reason to do otherwise, in which case
|
||||
// document it), and/or __predict_true() `no-error' condition
|
||||
// checks, assuming you want to optimize for the no-error case.
|
||||
//
|
||||
// * Other than that, if you don't know the likelihood of a test
|
||||
// succeeding from empirical or other `hard' evidence, don't
|
||||
// make predictions.
|
||||
//
|
||||
// * These are meant to be used in places that are run `a lot'.
|
||||
// It is wasteful to make predictions in code that is run
|
||||
// seldomly (e.g. at subsystem initialization time) as the
|
||||
// basic block reordering that this affects can often generate
|
||||
// larger code.
|
||||
|
||||
// We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h>
|
||||
// require it.
|
||||
|
||||
// Given the pointer x to the member m of the struct s, return
|
||||
// a pointer to the containing structure. When using GCC, we first
|
||||
// assign pointer x to a local variable, to check that its type is
|
||||
// compatible with member m.
|
||||
|
||||
// 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 (old versions of gcc-2
|
||||
// didn't permit keeping the keywords out of the application namespace).
|
||||
|
||||
// Compiler-dependent macros that rely on FreeBSD-specific extensions.
|
||||
|
||||
// Embed the rcs id of a source file in the resulting library. Note that in
|
||||
// more recent ELF binutils, we use .ident allowing the ID to be stripped.
|
||||
// Usage:
|
||||
// __FBSDID("$FreeBSD$");
|
||||
|
||||
// -
|
||||
// The following definitions are an extension of the behavior originally
|
||||
// implemented in <sys/_posix.h>, but with a different level of granularity.
|
||||
// POSIX.1 requires that the macros we test be defined before any standard
|
||||
// header file is included.
|
||||
//
|
||||
// Here's a quick run-down of the versions:
|
||||
// defined(_POSIX_SOURCE) 1003.1-1988
|
||||
// _POSIX_C_SOURCE == 1 1003.1-1990
|
||||
// _POSIX_C_SOURCE == 2 1003.2-1992 C Language Binding Option
|
||||
// _POSIX_C_SOURCE == 199309 1003.1b-1993
|
||||
// _POSIX_C_SOURCE == 199506 1003.1c-1995, 1003.1i-1995,
|
||||
// and the omnibus ISO/IEC 9945-1: 1996
|
||||
// _POSIX_C_SOURCE == 200112 1003.1-2001
|
||||
// _POSIX_C_SOURCE == 200809 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.
|
||||
//
|
||||
// Our macros begin with two underscores to avoid namespace screwage.
|
||||
|
||||
// Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1.
|
||||
|
||||
// Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2.
|
||||
|
||||
// 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.
|
||||
// -
|
||||
// Deal with _ANSI_SOURCE:
|
||||
// If it is defined, and no other compilation environment is explicitly
|
||||
// requested, then define our internal feature-test macros to zero. This
|
||||
// makes no difference to the preprocessor (undefined symbols in preprocessing
|
||||
// expressions are defined to have value zero), but makes it more convenient for
|
||||
// a test program to print out the values.
|
||||
//
|
||||
// If a program mistakenly defines _ANSI_SOURCE and some other macro such as
|
||||
// _POSIX_C_SOURCE, we will assume that it wants the broader compilation
|
||||
// environment (and in fact we will never get here).
|
||||
|
||||
// User override __EXT1_VISIBLE
|
||||
|
||||
// Old versions of GCC use non-standard ARM arch symbols; acle-compat.h
|
||||
// translates them to __ARM_ARCH and the modern feature symbols defined by ARM.
|
||||
|
||||
// Nullability qualifiers: currently only supported by Clang.
|
||||
|
||||
// Type Safety Checking
|
||||
//
|
||||
// Clang provides additional attributes to enable checking type safety
|
||||
// properties that cannot be enforced by the C type system.
|
||||
|
||||
// Lock annotations.
|
||||
//
|
||||
// Clang provides support for doing basic thread-safety tests at
|
||||
// compile-time, by marking which locks will/should be held when
|
||||
// entering/leaving a functions.
|
||||
//
|
||||
// Furthermore, it is also possible to annotate variables and structure
|
||||
// members to enforce that they are only accessed when certain locks are
|
||||
// held.
|
||||
|
||||
// Structure implements a lock.
|
||||
|
||||
// Function acquires an exclusive or shared lock.
|
||||
|
||||
// Function attempts to acquire an exclusive or shared lock.
|
||||
|
||||
// Function releases a lock.
|
||||
|
||||
// Function asserts that an exclusive or shared lock is held.
|
||||
|
||||
// Function requires that an exclusive or shared lock is or is not held.
|
||||
|
||||
// Function should not be analyzed.
|
||||
|
||||
// Function or variable should not be sanitized, e.g., by AddressSanitizer.
|
||||
// GCC has the nosanitize attribute, but as a function attribute only, and
|
||||
// warns on use as a variable attribute.
|
||||
|
||||
// Guard variables and structure members by lock.
|
||||
|
||||
// Alignment builtins for better type checking and improved code generation.
|
||||
// Provide fallback versions for other compilers (GCC/Clang < 10):
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
//
|
||||
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
|
||||
// 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.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
|
||||
//
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// 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. 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
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// This file is in the public domain.
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-4-Clause
|
||||
//
|
||||
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
|
||||
// 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.
|
||||
//
|
||||
// From: @(#)ansi.h 8.2 (Berkeley) 1/4/94
|
||||
// From: @(#)types.h 8.3 (Berkeley) 1/5/94
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// This file is in the public domain.
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// Copyright (c) 1988, 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. 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.
|
||||
//
|
||||
// @(#)limits.h 8.3 (Berkeley) 1/4/94
|
||||
// $FreeBSD$
|
||||
|
||||
// According to ANSI (section 2.2.4.2), the values below must be usable by
|
||||
// #if preprocessing directives. Additionally, the expression must have the
|
||||
// same type as would an expression that is an object of the corresponding
|
||||
// type converted according to the integral promotions. The subtraction for
|
||||
// INT_MIN, etc., is so the value is not unsigned; e.g., 0x80000000 is an
|
||||
// unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2).
|
||||
|
||||
// max value for an unsigned long long
|
||||
|
||||
// Minimum signal stack size.
|
||||
|
||||
// Basic types upon which most other types are built.
|
||||
type X__int8_t = int8 /* _types.h:55:22 */
|
||||
type X__uint8_t = uint8 /* _types.h:56:24 */
|
||||
type X__int16_t = int16 /* _types.h:57:17 */
|
||||
type X__uint16_t = uint16 /* _types.h:58:25 */
|
||||
type X__int32_t = int32 /* _types.h:59:15 */
|
||||
type X__uint32_t = uint32 /* _types.h:60:23 */
|
||||
|
||||
type X__int64_t = int64 /* _types.h:66:20 */
|
||||
|
||||
type X__uint64_t = uint64 /* _types.h:68:28 */
|
||||
|
||||
// Standard type definitions.
|
||||
type X__clock_t = uint32 /* _types.h:84:23 */
|
||||
type X__critical_t = X__int32_t /* _types.h:85:19 */
|
||||
type X__double_t = float64 /* _types.h:87:21 */
|
||||
type X__float_t = float64 /* _types.h:88:21 */
|
||||
type X__intfptr_t = X__int32_t /* _types.h:90:19 */
|
||||
type X__intptr_t = X__int32_t /* _types.h:91:19 */
|
||||
type X__intmax_t = X__int64_t /* _types.h:93:19 */
|
||||
type X__int_fast8_t = X__int32_t /* _types.h:94:19 */
|
||||
type X__int_fast16_t = X__int32_t /* _types.h:95:19 */
|
||||
type X__int_fast32_t = X__int32_t /* _types.h:96:19 */
|
||||
type X__int_fast64_t = X__int64_t /* _types.h:97:19 */
|
||||
type X__int_least8_t = X__int8_t /* _types.h:98:18 */
|
||||
type X__int_least16_t = X__int16_t /* _types.h:99:19 */
|
||||
type X__int_least32_t = X__int32_t /* _types.h:100:19 */
|
||||
type X__int_least64_t = X__int64_t /* _types.h:101:19 */
|
||||
type X__ptrdiff_t = X__int32_t /* _types.h:112:19 */
|
||||
type X__register_t = X__int32_t /* _types.h:113:19 */
|
||||
type X__segsz_t = X__int32_t /* _types.h:114:19 */
|
||||
type X__size_t = X__uint32_t /* _types.h:115:20 */
|
||||
type X__ssize_t = X__int32_t /* _types.h:116:19 */
|
||||
type X__time_t = X__int32_t /* _types.h:117:19 */
|
||||
type X__uintfptr_t = X__uint32_t /* _types.h:118:20 */
|
||||
type X__uintptr_t = X__uint32_t /* _types.h:119:20 */
|
||||
type X__uintmax_t = X__uint64_t /* _types.h:121:20 */
|
||||
type X__uint_fast8_t = X__uint32_t /* _types.h:122:20 */
|
||||
type X__uint_fast16_t = X__uint32_t /* _types.h:123:20 */
|
||||
type X__uint_fast32_t = X__uint32_t /* _types.h:124:20 */
|
||||
type X__uint_fast64_t = X__uint64_t /* _types.h:125:20 */
|
||||
type X__uint_least8_t = X__uint8_t /* _types.h:126:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* _types.h:127:20 */
|
||||
type X__uint_least32_t = X__uint32_t /* _types.h:128:20 */
|
||||
type X__uint_least64_t = X__uint64_t /* _types.h:129:20 */
|
||||
type X__u_register_t = X__uint32_t /* _types.h:136:20 */
|
||||
type X__vm_offset_t = X__uint32_t /* _types.h:137:20 */
|
||||
type X__vm_paddr_t = X__uint64_t /* _types.h:138:20 */
|
||||
type X__vm_size_t = X__uint32_t /* _types.h:139:20 */
|
||||
type X___wchar_t = int32 /* _types.h:141:14 */
|
||||
|
||||
// Standard type definitions.
|
||||
type X__blksize_t = X__int32_t /* _types.h:40:19 */ // file block size
|
||||
type X__blkcnt_t = X__int64_t /* _types.h:41:19 */ // file block count
|
||||
type X__clockid_t = X__int32_t /* _types.h:42:19 */ // clock_gettime()...
|
||||
type X__fflags_t = X__uint32_t /* _types.h:43:20 */ // file flags
|
||||
type X__fsblkcnt_t = X__uint64_t /* _types.h:44:20 */
|
||||
type X__fsfilcnt_t = X__uint64_t /* _types.h:45:20 */
|
||||
type X__gid_t = X__uint32_t /* _types.h:46:20 */
|
||||
type X__id_t = X__int64_t /* _types.h:47:19 */ // can hold a gid_t, pid_t, or uid_t
|
||||
type X__ino_t = X__uint64_t /* _types.h:48:20 */ // inode number
|
||||
type X__key_t = int32 /* _types.h:49:15 */ // IPC key (for Sys V IPC)
|
||||
type X__lwpid_t = X__int32_t /* _types.h:50:19 */ // Thread ID (a.k.a. LWP)
|
||||
type X__mode_t = X__uint16_t /* _types.h:51:20 */ // permissions
|
||||
type X__accmode_t = int32 /* _types.h:52:14 */ // access permissions
|
||||
type X__nl_item = int32 /* _types.h:53:14 */
|
||||
type X__nlink_t = X__uint64_t /* _types.h:54:20 */ // link count
|
||||
type X__off_t = X__int64_t /* _types.h:55:19 */ // file offset
|
||||
type X__off64_t = X__int64_t /* _types.h:56:19 */ // file offset (alias)
|
||||
type X__pid_t = X__int32_t /* _types.h:57:19 */ // process [group]
|
||||
type X__rlim_t = X__int64_t /* _types.h:58:19 */ // resource limit - intentionally
|
||||
// signed, because of legacy code
|
||||
// that uses -1 for RLIM_INFINITY
|
||||
type X__sa_family_t = X__uint8_t /* _types.h:61:19 */
|
||||
type X__socklen_t = X__uint32_t /* _types.h:62:20 */
|
||||
type X__suseconds_t = int32 /* _types.h:63:15 */ // microseconds (signed)
|
||||
type X__timer_t = uintptr /* _types.h:64:24 */ // timer_gettime()...
|
||||
type X__mqd_t = uintptr /* _types.h:65:21 */ // mq_open()...
|
||||
type X__uid_t = X__uint32_t /* _types.h:66:20 */
|
||||
type X__useconds_t = uint32 /* _types.h:67:22 */ // microseconds (unsigned)
|
||||
type X__cpuwhich_t = int32 /* _types.h:68:14 */ // which parameter for cpuset.
|
||||
type X__cpulevel_t = int32 /* _types.h:69:14 */ // level parameter for cpuset.
|
||||
type X__cpusetid_t = int32 /* _types.h:70:14 */ // cpuset identifier.
|
||||
type X__daddr_t = X__int64_t /* _types.h:71:19 */ // bwrite(3), FIOBMAP2, etc
|
||||
|
||||
// Unusual type definitions.
|
||||
// rune_t is declared to be an “int” instead of the more natural
|
||||
// “unsigned long” or “long”. Two things are happening here. It is not
|
||||
// unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
|
||||
// it looks like 10646 will be a 31 bit standard. This means that if your
|
||||
// ints cannot hold 32 bits, you will be in trouble. The reason an int was
|
||||
// chosen over a long is that the is*() and to*() routines take ints (says
|
||||
// ANSI C), but they use __ct_rune_t instead of int.
|
||||
//
|
||||
// NOTE: rune_t is not covered by ANSI nor other standards, and should not
|
||||
// be instantiated outside of lib/libc/locale. Use wchar_t. wint_t and
|
||||
// rune_t must be the same type. Also, wint_t should be able to hold all
|
||||
// members of the largest character set plus one extra value (WEOF), and
|
||||
// must be at least 16 bits.
|
||||
type X__ct_rune_t = int32 /* _types.h:91:14 */ // arg type for ctype funcs
|
||||
type X__rune_t = X__ct_rune_t /* _types.h:92:21 */ // rune_t (see above)
|
||||
type X__wint_t = X__ct_rune_t /* _types.h:93:21 */ // wint_t (see above)
|
||||
|
||||
// Clang already provides these types as built-ins, but only in C++ mode.
|
||||
type X__char16_t = X__uint_least16_t /* _types.h:97:26 */
|
||||
type X__char32_t = X__uint_least32_t /* _types.h:98:26 */
|
||||
// In C++11, char16_t and char32_t are built-in types.
|
||||
|
||||
type X__max_align_t = struct {
|
||||
F__max_align1 int64
|
||||
F__max_align2 float64
|
||||
} /* _types.h:111:3 */
|
||||
|
||||
type X__dev_t = X__uint64_t /* _types.h:113:20 */ // device number
|
||||
|
||||
type X__fixpt_t = X__uint32_t /* _types.h:115:20 */ // fixed point number
|
||||
|
||||
// mbstate_t is an opaque object to keep conversion state during multibyte
|
||||
// stream conversions.
|
||||
type X__mbstate_t = struct {
|
||||
F__ccgo_pad1 [0]uint32
|
||||
F__mbstate8 [128]int8
|
||||
} /* _types.h:124:3 */
|
||||
|
||||
type X__rman_res_t = X__uintmax_t /* _types.h:126:25 */
|
||||
|
||||
// Types for varargs. These are all provided by builtin types these
|
||||
// days, so centralize their definition.
|
||||
type X__va_list = X__builtin_va_list /* _types.h:133:27 */ // internally known to gcc
|
||||
type X__gnuc_va_list = X__va_list /* _types.h:140:20 */ // compatibility w/GNU headers
|
||||
|
||||
// When the following macro is defined, the system uses 64-bit inode numbers.
|
||||
// Programs can use this to avoid including <sys/param.h>, with its associated
|
||||
// namespace pollution.
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// Copyright (c) 1989, 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. 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.
|
||||
//
|
||||
// @(#)dirent.h 8.3 (Berkeley) 8/10/94
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// 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. 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
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
//
|
||||
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
|
||||
// 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.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
|
||||
//
|
||||
// $FreeBSD$
|
||||
|
||||
type Ino_t = X__ino_t /* dirent.h:42:18 */
|
||||
|
||||
type Off_t = X__off_t /* dirent.h:47:18 */
|
||||
|
||||
// The dirent structure defines the format of directory entries returned by
|
||||
// the getdirentries(2) system call.
|
||||
//
|
||||
// A directory entry has a struct dirent at the front of it, containing its
|
||||
// inode number, the length of the entry, and the length of the name
|
||||
// contained in the entry. These are followed by the name padded to an 8
|
||||
// byte boundary with null bytes. All names are guaranteed null terminated.
|
||||
// The maximum length of a name in a directory is MAXNAMLEN.
|
||||
//
|
||||
// Explicit padding between the last member of the header (d_namlen) and
|
||||
// d_name avoids ABI padding at the end of dirent on LP64 architectures.
|
||||
// There is code depending on d_name being last.
|
||||
|
||||
type Dirent = struct {
|
||||
Fd_fileno Ino_t
|
||||
Fd_off Off_t
|
||||
Fd_reclen X__uint16_t
|
||||
Fd_type X__uint8_t
|
||||
Fd_pad0 X__uint8_t
|
||||
Fd_namlen X__uint16_t
|
||||
Fd_pad1 X__uint16_t
|
||||
Fd_name [256]int8
|
||||
} /* dirent.h:66:1 */
|
||||
|
||||
type Ssize_t = X__ssize_t /* dirent.h:54:19 */
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
747
dirent/dirent_freebsd_amd64.go
Normal file
747
dirent/dirent_freebsd_amd64.go
Normal file
|
@ -0,0 +1,747 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_freebsd_amd64.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
import (
|
||||
"math"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ = math.Pi
|
||||
var _ reflect.Kind
|
||||
var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
DIRBLKSIZ = 1024 // dirent.h:85:1:
|
||||
DTF_HIDEW = 0x0001 // dirent.h:91:1:
|
||||
DTF_NODUP = 0x0002 // dirent.h:92:1:
|
||||
DTF_REWIND = 0x0004 // dirent.h:93:1:
|
||||
DT_BLK = 6 // dirent.h:101:1:
|
||||
DT_CHR = 2 // dirent.h:99:1:
|
||||
DT_DIR = 4 // dirent.h:100:1:
|
||||
DT_FIFO = 1 // dirent.h:98:1:
|
||||
DT_LNK = 10 // dirent.h:103:1:
|
||||
DT_REG = 8 // dirent.h:102:1:
|
||||
DT_SOCK = 12 // dirent.h:104:1:
|
||||
DT_UNKNOWN = 0 // dirent.h:97:1:
|
||||
DT_WHT = 14 // dirent.h:105:1:
|
||||
MAXNAMLEN = 255 // dirent.h:75:1:
|
||||
X_DIRENT_H_ = 0 // dirent.h:36:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_INO_T_DECLARED = 0 // dirent.h:43:1:
|
||||
X_LP64 = 1 // <predefined>:1:1:
|
||||
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
|
||||
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
|
||||
X_Nonnull = 0 // cdefs.h:790:1:
|
||||
X_Null_unspecified = 0 // cdefs.h:792:1:
|
||||
X_Nullable = 0 // cdefs.h:791:1:
|
||||
X_OFF_T_DECLARED = 0 // dirent.h:48:1:
|
||||
X_SIZE_T_DECLARED = 0 // dirent.h:50:1:
|
||||
X_SSIZE_T_DECLARED = 0 // dirent.h:55:1:
|
||||
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
|
||||
X_SYS_DIRENT_H_ = 0 // dirent.h:36:1:
|
||||
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
|
||||
Unix = 1 // <predefined>:340:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
|
||||
type Size_t = uint64 /* <builtin>:9:23 */
|
||||
|
||||
type Wchar_t = int32 /* <builtin>:15:24 */
|
||||
|
||||
type X__int128_t = struct {
|
||||
Flo int64
|
||||
Fhi int64
|
||||
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
|
||||
type X__uint128_t = struct {
|
||||
Flo uint64
|
||||
Fhi uint64
|
||||
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
|
||||
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// Copyright (c) 1989, 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. 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.
|
||||
//
|
||||
// @(#)dirent.h 8.2 (Berkeley) 7/28/94
|
||||
// $FreeBSD$
|
||||
|
||||
// The kernel defines the format of directory entries returned by
|
||||
// the getdirentries(2) system call.
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// 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. 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
|
||||
// $FreeBSD$
|
||||
|
||||
// Testing against Clang-specific extensions.
|
||||
|
||||
// This code has been put in place to help reduce the addition of
|
||||
// compiler specific defines in FreeBSD code. It helps to aid in
|
||||
// having a compiler-agnostic source tree.
|
||||
|
||||
// Compiler memory barriers, specific to gcc and clang.
|
||||
|
||||
// XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced
|
||||
|
||||
// Macro to test if we're using a specific version of gcc or later.
|
||||
|
||||
// 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 to use if it must work in non-ANSI
|
||||
// mode -- there must be no spaces between its arguments, and for nested
|
||||
// __CONCAT's, all the __CONCAT's must be at the left. __CONCAT can also
|
||||
// concatenate double-quoted strings produced by the __STRING macro, but
|
||||
// this only works with ANSI C.
|
||||
//
|
||||
// __XSTRING is like __STRING, but it expands any macros in its argument
|
||||
// first. It is only available with ANSI C.
|
||||
|
||||
// Compiler-dependent macros to help declare dead (non-returning) and
|
||||
// pure (no side effects) functions, and unused variables. They are
|
||||
// null except for versions of gcc that are known to support the features
|
||||
// properly (old versions of gcc-2 supported the dead and pure features
|
||||
// in a different (wrong) way). If we do not provide an implementation
|
||||
// for a given compiler, let the compile fail if it is told to use
|
||||
// a feature that we cannot live without.
|
||||
|
||||
// Keywords added in C11.
|
||||
|
||||
// Emulation of C11 _Generic(). Unlike the previously defined C11
|
||||
// keywords, it is not possible to implement this using exactly the same
|
||||
// syntax. Therefore implement something similar under the name
|
||||
// __generic(). Unlike _Generic(), this macro can only distinguish
|
||||
// between a single type, so it requires nested invocations to
|
||||
// distinguish multiple cases.
|
||||
|
||||
// C99 Static array indices in function parameter declarations. Syntax such as:
|
||||
// void bar(int myArray[static 10]);
|
||||
// is allowed in C99 but not in C++. Define __min_size appropriately so
|
||||
// headers using it can be compiled in either language. Use like this:
|
||||
// void bar(int myArray[__min_size(10)]);
|
||||
|
||||
// XXX: should use `#if __STDC_VERSION__ < 199901'.
|
||||
|
||||
// C++11 exposes a load of C99 stuff
|
||||
|
||||
// GCC 2.95 provides `__restrict' as an extension to C90 to support the
|
||||
// C99-specific `restrict' type qualifier. We happen to use `__restrict' as
|
||||
// a way to define the `restrict' type qualifier without disturbing older
|
||||
// software that is unaware of C99 keywords.
|
||||
|
||||
// GNU C version 2.96 adds explicit branch prediction so that
|
||||
// the CPU back-end can hint the processor and also so that
|
||||
// code blocks can be reordered such that the predicted path
|
||||
// sees a more linear flow, thus improving cache behavior, etc.
|
||||
//
|
||||
// The following two macros provide us with a way to utilize this
|
||||
// compiler feature. Use __predict_true() if you expect the expression
|
||||
// to evaluate to true, and __predict_false() if you expect the
|
||||
// expression to evaluate to false.
|
||||
//
|
||||
// A few notes about usage:
|
||||
//
|
||||
// * Generally, __predict_false() error condition checks (unless
|
||||
// you have some _strong_ reason to do otherwise, in which case
|
||||
// document it), and/or __predict_true() `no-error' condition
|
||||
// checks, assuming you want to optimize for the no-error case.
|
||||
//
|
||||
// * Other than that, if you don't know the likelihood of a test
|
||||
// succeeding from empirical or other `hard' evidence, don't
|
||||
// make predictions.
|
||||
//
|
||||
// * These are meant to be used in places that are run `a lot'.
|
||||
// It is wasteful to make predictions in code that is run
|
||||
// seldomly (e.g. at subsystem initialization time) as the
|
||||
// basic block reordering that this affects can often generate
|
||||
// larger code.
|
||||
|
||||
// We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h>
|
||||
// require it.
|
||||
|
||||
// Given the pointer x to the member m of the struct s, return
|
||||
// a pointer to the containing structure. When using GCC, we first
|
||||
// assign pointer x to a local variable, to check that its type is
|
||||
// compatible with member m.
|
||||
|
||||
// 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 (old versions of gcc-2
|
||||
// didn't permit keeping the keywords out of the application namespace).
|
||||
|
||||
// Compiler-dependent macros that rely on FreeBSD-specific extensions.
|
||||
|
||||
// Embed the rcs id of a source file in the resulting library. Note that in
|
||||
// more recent ELF binutils, we use .ident allowing the ID to be stripped.
|
||||
// Usage:
|
||||
// __FBSDID("$FreeBSD$");
|
||||
|
||||
// -
|
||||
// The following definitions are an extension of the behavior originally
|
||||
// implemented in <sys/_posix.h>, but with a different level of granularity.
|
||||
// POSIX.1 requires that the macros we test be defined before any standard
|
||||
// header file is included.
|
||||
//
|
||||
// Here's a quick run-down of the versions:
|
||||
// defined(_POSIX_SOURCE) 1003.1-1988
|
||||
// _POSIX_C_SOURCE == 1 1003.1-1990
|
||||
// _POSIX_C_SOURCE == 2 1003.2-1992 C Language Binding Option
|
||||
// _POSIX_C_SOURCE == 199309 1003.1b-1993
|
||||
// _POSIX_C_SOURCE == 199506 1003.1c-1995, 1003.1i-1995,
|
||||
// and the omnibus ISO/IEC 9945-1: 1996
|
||||
// _POSIX_C_SOURCE == 200112 1003.1-2001
|
||||
// _POSIX_C_SOURCE == 200809 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.
|
||||
//
|
||||
// Our macros begin with two underscores to avoid namespace screwage.
|
||||
|
||||
// Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1.
|
||||
|
||||
// Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2.
|
||||
|
||||
// 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.
|
||||
// -
|
||||
// Deal with _ANSI_SOURCE:
|
||||
// If it is defined, and no other compilation environment is explicitly
|
||||
// requested, then define our internal feature-test macros to zero. This
|
||||
// makes no difference to the preprocessor (undefined symbols in preprocessing
|
||||
// expressions are defined to have value zero), but makes it more convenient for
|
||||
// a test program to print out the values.
|
||||
//
|
||||
// If a program mistakenly defines _ANSI_SOURCE and some other macro such as
|
||||
// _POSIX_C_SOURCE, we will assume that it wants the broader compilation
|
||||
// environment (and in fact we will never get here).
|
||||
|
||||
// User override __EXT1_VISIBLE
|
||||
|
||||
// Old versions of GCC use non-standard ARM arch symbols; acle-compat.h
|
||||
// translates them to __ARM_ARCH and the modern feature symbols defined by ARM.
|
||||
|
||||
// Nullability qualifiers: currently only supported by Clang.
|
||||
|
||||
// Type Safety Checking
|
||||
//
|
||||
// Clang provides additional attributes to enable checking type safety
|
||||
// properties that cannot be enforced by the C type system.
|
||||
|
||||
// Lock annotations.
|
||||
//
|
||||
// Clang provides support for doing basic thread-safety tests at
|
||||
// compile-time, by marking which locks will/should be held when
|
||||
// entering/leaving a functions.
|
||||
//
|
||||
// Furthermore, it is also possible to annotate variables and structure
|
||||
// members to enforce that they are only accessed when certain locks are
|
||||
// held.
|
||||
|
||||
// Structure implements a lock.
|
||||
|
||||
// Function acquires an exclusive or shared lock.
|
||||
|
||||
// Function attempts to acquire an exclusive or shared lock.
|
||||
|
||||
// Function releases a lock.
|
||||
|
||||
// Function asserts that an exclusive or shared lock is held.
|
||||
|
||||
// Function requires that an exclusive or shared lock is or is not held.
|
||||
|
||||
// Function should not be analyzed.
|
||||
|
||||
// Function or variable should not be sanitized, e.g., by AddressSanitizer.
|
||||
// GCC has the nosanitize attribute, but as a function attribute only, and
|
||||
// warns on use as a variable attribute.
|
||||
|
||||
// Guard variables and structure members by lock.
|
||||
|
||||
// Alignment builtins for better type checking and improved code generation.
|
||||
// Provide fallback versions for other compilers (GCC/Clang < 10):
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
//
|
||||
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
|
||||
// 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.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
|
||||
//
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// 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. 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
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// This file is in the public domain.
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-4-Clause
|
||||
//
|
||||
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
|
||||
// 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.
|
||||
//
|
||||
// From: @(#)ansi.h 8.2 (Berkeley) 1/4/94
|
||||
// From: @(#)types.h 8.3 (Berkeley) 1/5/94
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// This file is in the public domain.
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// Copyright (c) 1988, 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. 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.
|
||||
//
|
||||
// @(#)limits.h 8.3 (Berkeley) 1/4/94
|
||||
// $FreeBSD$
|
||||
|
||||
// According to ANSI (section 2.2.4.2), the values below must be usable by
|
||||
// #if preprocessing directives. Additionally, the expression must have the
|
||||
// same type as would an expression that is an object of the corresponding
|
||||
// type converted according to the integral promotions. The subtraction for
|
||||
// INT_MIN, etc., is so the value is not unsigned; e.g., 0x80000000 is an
|
||||
// unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2).
|
||||
|
||||
// max value for an unsigned long long
|
||||
|
||||
// Quads and longs are the same on the amd64. Ensure they stay in sync.
|
||||
|
||||
// Minimum signal stack size.
|
||||
|
||||
// Basic types upon which most other types are built.
|
||||
type X__int8_t = int8 /* _types.h:55:22 */
|
||||
type X__uint8_t = uint8 /* _types.h:56:24 */
|
||||
type X__int16_t = int16 /* _types.h:57:17 */
|
||||
type X__uint16_t = uint16 /* _types.h:58:25 */
|
||||
type X__int32_t = int32 /* _types.h:59:15 */
|
||||
type X__uint32_t = uint32 /* _types.h:60:23 */
|
||||
type X__int64_t = int64 /* _types.h:62:16 */
|
||||
type X__uint64_t = uint64 /* _types.h:63:24 */
|
||||
|
||||
// Standard type definitions.
|
||||
type X__clock_t = X__int32_t /* _types.h:75:19 */ // clock()...
|
||||
type X__critical_t = X__int64_t /* _types.h:76:19 */
|
||||
type X__double_t = float64 /* _types.h:78:17 */
|
||||
type X__float_t = float32 /* _types.h:79:16 */
|
||||
type X__intfptr_t = X__int64_t /* _types.h:81:19 */
|
||||
type X__intptr_t = X__int64_t /* _types.h:82:19 */
|
||||
type X__intmax_t = X__int64_t /* _types.h:93:19 */
|
||||
type X__int_fast8_t = X__int32_t /* _types.h:94:19 */
|
||||
type X__int_fast16_t = X__int32_t /* _types.h:95:19 */
|
||||
type X__int_fast32_t = X__int32_t /* _types.h:96:19 */
|
||||
type X__int_fast64_t = X__int64_t /* _types.h:97:19 */
|
||||
type X__int_least8_t = X__int8_t /* _types.h:98:18 */
|
||||
type X__int_least16_t = X__int16_t /* _types.h:99:19 */
|
||||
type X__int_least32_t = X__int32_t /* _types.h:100:19 */
|
||||
type X__int_least64_t = X__int64_t /* _types.h:101:19 */
|
||||
type X__ptrdiff_t = X__int64_t /* _types.h:103:19 */ // ptr1 - ptr2
|
||||
type X__register_t = X__int64_t /* _types.h:104:19 */
|
||||
type X__segsz_t = X__int64_t /* _types.h:105:19 */ // segment size (in pages)
|
||||
type X__size_t = X__uint64_t /* _types.h:106:20 */ // sizeof()
|
||||
type X__ssize_t = X__int64_t /* _types.h:107:19 */ // byte count or error
|
||||
type X__time_t = X__int64_t /* _types.h:108:19 */ // time()...
|
||||
type X__uintfptr_t = X__uint64_t /* _types.h:109:20 */
|
||||
type X__uintptr_t = X__uint64_t /* _types.h:110:20 */
|
||||
type X__uintmax_t = X__uint64_t /* _types.h:121:20 */
|
||||
type X__uint_fast8_t = X__uint32_t /* _types.h:122:20 */
|
||||
type X__uint_fast16_t = X__uint32_t /* _types.h:123:20 */
|
||||
type X__uint_fast32_t = X__uint32_t /* _types.h:124:20 */
|
||||
type X__uint_fast64_t = X__uint64_t /* _types.h:125:20 */
|
||||
type X__uint_least8_t = X__uint8_t /* _types.h:126:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* _types.h:127:20 */
|
||||
type X__uint_least32_t = X__uint32_t /* _types.h:128:20 */
|
||||
type X__uint_least64_t = X__uint64_t /* _types.h:129:20 */
|
||||
type X__u_register_t = X__uint64_t /* _types.h:131:20 */
|
||||
type X__vm_offset_t = X__uint64_t /* _types.h:132:20 */
|
||||
type X__vm_paddr_t = X__uint64_t /* _types.h:133:20 */
|
||||
type X__vm_size_t = X__uint64_t /* _types.h:134:20 */
|
||||
type X___wchar_t = int32 /* _types.h:141:14 */
|
||||
|
||||
// Standard type definitions.
|
||||
type X__blksize_t = X__int32_t /* _types.h:40:19 */ // file block size
|
||||
type X__blkcnt_t = X__int64_t /* _types.h:41:19 */ // file block count
|
||||
type X__clockid_t = X__int32_t /* _types.h:42:19 */ // clock_gettime()...
|
||||
type X__fflags_t = X__uint32_t /* _types.h:43:20 */ // file flags
|
||||
type X__fsblkcnt_t = X__uint64_t /* _types.h:44:20 */
|
||||
type X__fsfilcnt_t = X__uint64_t /* _types.h:45:20 */
|
||||
type X__gid_t = X__uint32_t /* _types.h:46:20 */
|
||||
type X__id_t = X__int64_t /* _types.h:47:19 */ // can hold a gid_t, pid_t, or uid_t
|
||||
type X__ino_t = X__uint64_t /* _types.h:48:20 */ // inode number
|
||||
type X__key_t = int64 /* _types.h:49:15 */ // IPC key (for Sys V IPC)
|
||||
type X__lwpid_t = X__int32_t /* _types.h:50:19 */ // Thread ID (a.k.a. LWP)
|
||||
type X__mode_t = X__uint16_t /* _types.h:51:20 */ // permissions
|
||||
type X__accmode_t = int32 /* _types.h:52:14 */ // access permissions
|
||||
type X__nl_item = int32 /* _types.h:53:14 */
|
||||
type X__nlink_t = X__uint64_t /* _types.h:54:20 */ // link count
|
||||
type X__off_t = X__int64_t /* _types.h:55:19 */ // file offset
|
||||
type X__off64_t = X__int64_t /* _types.h:56:19 */ // file offset (alias)
|
||||
type X__pid_t = X__int32_t /* _types.h:57:19 */ // process [group]
|
||||
type X__rlim_t = X__int64_t /* _types.h:58:19 */ // resource limit - intentionally
|
||||
// signed, because of legacy code
|
||||
// that uses -1 for RLIM_INFINITY
|
||||
type X__sa_family_t = X__uint8_t /* _types.h:61:19 */
|
||||
type X__socklen_t = X__uint32_t /* _types.h:62:20 */
|
||||
type X__suseconds_t = int64 /* _types.h:63:15 */ // microseconds (signed)
|
||||
type X__timer_t = uintptr /* _types.h:64:24 */ // timer_gettime()...
|
||||
type X__mqd_t = uintptr /* _types.h:65:21 */ // mq_open()...
|
||||
type X__uid_t = X__uint32_t /* _types.h:66:20 */
|
||||
type X__useconds_t = uint32 /* _types.h:67:22 */ // microseconds (unsigned)
|
||||
type X__cpuwhich_t = int32 /* _types.h:68:14 */ // which parameter for cpuset.
|
||||
type X__cpulevel_t = int32 /* _types.h:69:14 */ // level parameter for cpuset.
|
||||
type X__cpusetid_t = int32 /* _types.h:70:14 */ // cpuset identifier.
|
||||
type X__daddr_t = X__int64_t /* _types.h:71:19 */ // bwrite(3), FIOBMAP2, etc
|
||||
|
||||
// Unusual type definitions.
|
||||
// rune_t is declared to be an “int” instead of the more natural
|
||||
// “unsigned long” or “long”. Two things are happening here. It is not
|
||||
// unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
|
||||
// it looks like 10646 will be a 31 bit standard. This means that if your
|
||||
// ints cannot hold 32 bits, you will be in trouble. The reason an int was
|
||||
// chosen over a long is that the is*() and to*() routines take ints (says
|
||||
// ANSI C), but they use __ct_rune_t instead of int.
|
||||
//
|
||||
// NOTE: rune_t is not covered by ANSI nor other standards, and should not
|
||||
// be instantiated outside of lib/libc/locale. Use wchar_t. wint_t and
|
||||
// rune_t must be the same type. Also, wint_t should be able to hold all
|
||||
// members of the largest character set plus one extra value (WEOF), and
|
||||
// must be at least 16 bits.
|
||||
type X__ct_rune_t = int32 /* _types.h:91:14 */ // arg type for ctype funcs
|
||||
type X__rune_t = X__ct_rune_t /* _types.h:92:21 */ // rune_t (see above)
|
||||
type X__wint_t = X__ct_rune_t /* _types.h:93:21 */ // wint_t (see above)
|
||||
|
||||
// Clang already provides these types as built-ins, but only in C++ mode.
|
||||
type X__char16_t = X__uint_least16_t /* _types.h:97:26 */
|
||||
type X__char32_t = X__uint_least32_t /* _types.h:98:26 */
|
||||
// In C++11, char16_t and char32_t are built-in types.
|
||||
|
||||
type X__max_align_t = struct {
|
||||
F__max_align1 int64
|
||||
F__max_align2 float64
|
||||
} /* _types.h:111:3 */
|
||||
|
||||
type X__dev_t = X__uint64_t /* _types.h:113:20 */ // device number
|
||||
|
||||
type X__fixpt_t = X__uint32_t /* _types.h:115:20 */ // fixed point number
|
||||
|
||||
// mbstate_t is an opaque object to keep conversion state during multibyte
|
||||
// stream conversions.
|
||||
type X__mbstate_t = struct {
|
||||
F__ccgo_pad1 [0]uint64
|
||||
F__mbstate8 [128]int8
|
||||
} /* _types.h:124:3 */
|
||||
|
||||
type X__rman_res_t = X__uintmax_t /* _types.h:126:25 */
|
||||
|
||||
// Types for varargs. These are all provided by builtin types these
|
||||
// days, so centralize their definition.
|
||||
type X__va_list = X__builtin_va_list /* _types.h:133:27 */ // internally known to gcc
|
||||
type X__gnuc_va_list = X__va_list /* _types.h:140:20 */ // compatibility w/GNU headers
|
||||
|
||||
// When the following macro is defined, the system uses 64-bit inode numbers.
|
||||
// Programs can use this to avoid including <sys/param.h>, with its associated
|
||||
// namespace pollution.
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// Copyright (c) 1989, 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. 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.
|
||||
//
|
||||
// @(#)dirent.h 8.3 (Berkeley) 8/10/94
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// 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. 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
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
//
|
||||
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
|
||||
// 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.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
|
||||
//
|
||||
// $FreeBSD$
|
||||
|
||||
type Ino_t = X__ino_t /* dirent.h:42:18 */
|
||||
|
||||
type Off_t = X__off_t /* dirent.h:47:18 */
|
||||
|
||||
// The dirent structure defines the format of directory entries returned by
|
||||
// the getdirentries(2) system call.
|
||||
//
|
||||
// A directory entry has a struct dirent at the front of it, containing its
|
||||
// inode number, the length of the entry, and the length of the name
|
||||
// contained in the entry. These are followed by the name padded to an 8
|
||||
// byte boundary with null bytes. All names are guaranteed null terminated.
|
||||
// The maximum length of a name in a directory is MAXNAMLEN.
|
||||
//
|
||||
// Explicit padding between the last member of the header (d_namlen) and
|
||||
// d_name avoids ABI padding at the end of dirent on LP64 architectures.
|
||||
// There is code depending on d_name being last.
|
||||
|
||||
type Dirent = struct {
|
||||
Fd_fileno Ino_t
|
||||
Fd_off Off_t
|
||||
Fd_reclen X__uint16_t
|
||||
Fd_type X__uint8_t
|
||||
Fd_pad0 X__uint8_t
|
||||
Fd_namlen X__uint16_t
|
||||
Fd_pad1 X__uint16_t
|
||||
Fd_name [256]int8
|
||||
} /* dirent.h:66:1 */
|
||||
|
||||
type Ssize_t = X__ssize_t /* dirent.h:54:19 */
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
688
dirent/dirent_freebsd_arm.go
Normal file
688
dirent/dirent_freebsd_arm.go
Normal file
|
@ -0,0 +1,688 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_freebsd_arm.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
import (
|
||||
"math"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ = math.Pi
|
||||
var _ reflect.Kind
|
||||
var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
DIRBLKSIZ = 1024 // dirent.h:85:1:
|
||||
DTF_HIDEW = 0x0001 // dirent.h:91:1:
|
||||
DTF_NODUP = 0x0002 // dirent.h:92:1:
|
||||
DTF_REWIND = 0x0004 // dirent.h:93:1:
|
||||
DT_BLK = 6 // dirent.h:101:1:
|
||||
DT_CHR = 2 // dirent.h:99:1:
|
||||
DT_DIR = 4 // dirent.h:100:1:
|
||||
DT_FIFO = 1 // dirent.h:98:1:
|
||||
DT_LNK = 10 // dirent.h:103:1:
|
||||
DT_REG = 8 // dirent.h:102:1:
|
||||
DT_SOCK = 12 // dirent.h:104:1:
|
||||
DT_UNKNOWN = 0 // dirent.h:97:1:
|
||||
DT_WHT = 14 // dirent.h:105:1:
|
||||
MAXNAMLEN = 255 // dirent.h:75:1:
|
||||
X_DIRENT_H_ = 0 // dirent.h:36:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_ILP32 = 1 // <predefined>:1:1:
|
||||
X_INO_T_DECLARED = 0 // dirent.h:43:1:
|
||||
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
|
||||
X_Nonnull = 0 // cdefs.h:790:1:
|
||||
X_Null_unspecified = 0 // cdefs.h:792:1:
|
||||
X_Nullable = 0 // cdefs.h:791:1:
|
||||
X_OFF_T_DECLARED = 0 // dirent.h:48:1:
|
||||
X_SIZE_T_DECLARED = 0 // dirent.h:50:1:
|
||||
X_SSIZE_T_DECLARED = 0 // dirent.h:55:1:
|
||||
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
|
||||
X_SYS_DIRENT_H_ = 0 // dirent.h:36:1:
|
||||
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
|
||||
Unix = 1 // <predefined>:367:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int32 /* <builtin>:3:26 */
|
||||
|
||||
type Size_t = uint32 /* <builtin>:9:23 */
|
||||
|
||||
type Wchar_t = uint32 /* <builtin>:15:24 */
|
||||
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// Copyright (c) 1989, 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. 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.
|
||||
//
|
||||
// @(#)dirent.h 8.2 (Berkeley) 7/28/94
|
||||
// $FreeBSD$
|
||||
|
||||
// The kernel defines the format of directory entries returned by
|
||||
// the getdirentries(2) system call.
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// 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. 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
|
||||
// $FreeBSD$
|
||||
|
||||
// Testing against Clang-specific extensions.
|
||||
|
||||
// This code has been put in place to help reduce the addition of
|
||||
// compiler specific defines in FreeBSD code. It helps to aid in
|
||||
// having a compiler-agnostic source tree.
|
||||
|
||||
// Compiler memory barriers, specific to gcc and clang.
|
||||
|
||||
// XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced
|
||||
|
||||
// Macro to test if we're using a specific version of gcc or later.
|
||||
|
||||
// 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 to use if it must work in non-ANSI
|
||||
// mode -- there must be no spaces between its arguments, and for nested
|
||||
// __CONCAT's, all the __CONCAT's must be at the left. __CONCAT can also
|
||||
// concatenate double-quoted strings produced by the __STRING macro, but
|
||||
// this only works with ANSI C.
|
||||
//
|
||||
// __XSTRING is like __STRING, but it expands any macros in its argument
|
||||
// first. It is only available with ANSI C.
|
||||
|
||||
// Compiler-dependent macros to help declare dead (non-returning) and
|
||||
// pure (no side effects) functions, and unused variables. They are
|
||||
// null except for versions of gcc that are known to support the features
|
||||
// properly (old versions of gcc-2 supported the dead and pure features
|
||||
// in a different (wrong) way). If we do not provide an implementation
|
||||
// for a given compiler, let the compile fail if it is told to use
|
||||
// a feature that we cannot live without.
|
||||
|
||||
// Keywords added in C11.
|
||||
|
||||
// Emulation of C11 _Generic(). Unlike the previously defined C11
|
||||
// keywords, it is not possible to implement this using exactly the same
|
||||
// syntax. Therefore implement something similar under the name
|
||||
// __generic(). Unlike _Generic(), this macro can only distinguish
|
||||
// between a single type, so it requires nested invocations to
|
||||
// distinguish multiple cases.
|
||||
|
||||
// C99 Static array indices in function parameter declarations. Syntax such as:
|
||||
// void bar(int myArray[static 10]);
|
||||
// is allowed in C99 but not in C++. Define __min_size appropriately so
|
||||
// headers using it can be compiled in either language. Use like this:
|
||||
// void bar(int myArray[__min_size(10)]);
|
||||
|
||||
// XXX: should use `#if __STDC_VERSION__ < 199901'.
|
||||
|
||||
// C++11 exposes a load of C99 stuff
|
||||
|
||||
// GCC 2.95 provides `__restrict' as an extension to C90 to support the
|
||||
// C99-specific `restrict' type qualifier. We happen to use `__restrict' as
|
||||
// a way to define the `restrict' type qualifier without disturbing older
|
||||
// software that is unaware of C99 keywords.
|
||||
|
||||
// GNU C version 2.96 adds explicit branch prediction so that
|
||||
// the CPU back-end can hint the processor and also so that
|
||||
// code blocks can be reordered such that the predicted path
|
||||
// sees a more linear flow, thus improving cache behavior, etc.
|
||||
//
|
||||
// The following two macros provide us with a way to utilize this
|
||||
// compiler feature. Use __predict_true() if you expect the expression
|
||||
// to evaluate to true, and __predict_false() if you expect the
|
||||
// expression to evaluate to false.
|
||||
//
|
||||
// A few notes about usage:
|
||||
//
|
||||
// * Generally, __predict_false() error condition checks (unless
|
||||
// you have some _strong_ reason to do otherwise, in which case
|
||||
// document it), and/or __predict_true() `no-error' condition
|
||||
// checks, assuming you want to optimize for the no-error case.
|
||||
//
|
||||
// * Other than that, if you don't know the likelihood of a test
|
||||
// succeeding from empirical or other `hard' evidence, don't
|
||||
// make predictions.
|
||||
//
|
||||
// * These are meant to be used in places that are run `a lot'.
|
||||
// It is wasteful to make predictions in code that is run
|
||||
// seldomly (e.g. at subsystem initialization time) as the
|
||||
// basic block reordering that this affects can often generate
|
||||
// larger code.
|
||||
|
||||
// We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h>
|
||||
// require it.
|
||||
|
||||
// Given the pointer x to the member m of the struct s, return
|
||||
// a pointer to the containing structure. When using GCC, we first
|
||||
// assign pointer x to a local variable, to check that its type is
|
||||
// compatible with member m.
|
||||
|
||||
// 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 (old versions of gcc-2
|
||||
// didn't permit keeping the keywords out of the application namespace).
|
||||
|
||||
// Compiler-dependent macros that rely on FreeBSD-specific extensions.
|
||||
|
||||
// Embed the rcs id of a source file in the resulting library. Note that in
|
||||
// more recent ELF binutils, we use .ident allowing the ID to be stripped.
|
||||
// Usage:
|
||||
// __FBSDID("$FreeBSD$");
|
||||
|
||||
// -
|
||||
// The following definitions are an extension of the behavior originally
|
||||
// implemented in <sys/_posix.h>, but with a different level of granularity.
|
||||
// POSIX.1 requires that the macros we test be defined before any standard
|
||||
// header file is included.
|
||||
//
|
||||
// Here's a quick run-down of the versions:
|
||||
// defined(_POSIX_SOURCE) 1003.1-1988
|
||||
// _POSIX_C_SOURCE == 1 1003.1-1990
|
||||
// _POSIX_C_SOURCE == 2 1003.2-1992 C Language Binding Option
|
||||
// _POSIX_C_SOURCE == 199309 1003.1b-1993
|
||||
// _POSIX_C_SOURCE == 199506 1003.1c-1995, 1003.1i-1995,
|
||||
// and the omnibus ISO/IEC 9945-1: 1996
|
||||
// _POSIX_C_SOURCE == 200112 1003.1-2001
|
||||
// _POSIX_C_SOURCE == 200809 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.
|
||||
//
|
||||
// Our macros begin with two underscores to avoid namespace screwage.
|
||||
|
||||
// Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1.
|
||||
|
||||
// Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2.
|
||||
|
||||
// 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.
|
||||
// -
|
||||
// Deal with _ANSI_SOURCE:
|
||||
// If it is defined, and no other compilation environment is explicitly
|
||||
// requested, then define our internal feature-test macros to zero. This
|
||||
// makes no difference to the preprocessor (undefined symbols in preprocessing
|
||||
// expressions are defined to have value zero), but makes it more convenient for
|
||||
// a test program to print out the values.
|
||||
//
|
||||
// If a program mistakenly defines _ANSI_SOURCE and some other macro such as
|
||||
// _POSIX_C_SOURCE, we will assume that it wants the broader compilation
|
||||
// environment (and in fact we will never get here).
|
||||
|
||||
// User override __EXT1_VISIBLE
|
||||
|
||||
// Old versions of GCC use non-standard ARM arch symbols; acle-compat.h
|
||||
// translates them to __ARM_ARCH and the modern feature symbols defined by ARM.
|
||||
|
||||
// Nullability qualifiers: currently only supported by Clang.
|
||||
|
||||
// Type Safety Checking
|
||||
//
|
||||
// Clang provides additional attributes to enable checking type safety
|
||||
// properties that cannot be enforced by the C type system.
|
||||
|
||||
// Lock annotations.
|
||||
//
|
||||
// Clang provides support for doing basic thread-safety tests at
|
||||
// compile-time, by marking which locks will/should be held when
|
||||
// entering/leaving a functions.
|
||||
//
|
||||
// Furthermore, it is also possible to annotate variables and structure
|
||||
// members to enforce that they are only accessed when certain locks are
|
||||
// held.
|
||||
|
||||
// Structure implements a lock.
|
||||
|
||||
// Function acquires an exclusive or shared lock.
|
||||
|
||||
// Function attempts to acquire an exclusive or shared lock.
|
||||
|
||||
// Function releases a lock.
|
||||
|
||||
// Function asserts that an exclusive or shared lock is held.
|
||||
|
||||
// Function requires that an exclusive or shared lock is or is not held.
|
||||
|
||||
// Function should not be analyzed.
|
||||
|
||||
// Function or variable should not be sanitized, e.g., by AddressSanitizer.
|
||||
// GCC has the nosanitize attribute, but as a function attribute only, and
|
||||
// warns on use as a variable attribute.
|
||||
|
||||
// Guard variables and structure members by lock.
|
||||
|
||||
// Alignment builtins for better type checking and improved code generation.
|
||||
// Provide fallback versions for other compilers (GCC/Clang < 10):
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
//
|
||||
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
|
||||
// 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.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
|
||||
//
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// 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. 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
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-4-Clause
|
||||
//
|
||||
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
|
||||
// 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.
|
||||
//
|
||||
// From: @(#)ansi.h 8.2 (Berkeley) 1/4/94
|
||||
// From: @(#)types.h 8.3 (Berkeley) 1/5/94
|
||||
// $FreeBSD$
|
||||
|
||||
// Basic types upon which most other types are built.
|
||||
type X__int8_t = int8 /* _types.h:51:22 */
|
||||
type X__uint8_t = uint8 /* _types.h:52:24 */
|
||||
type X__int16_t = int16 /* _types.h:53:17 */
|
||||
type X__uint16_t = uint16 /* _types.h:54:25 */
|
||||
type X__int32_t = int32 /* _types.h:55:15 */
|
||||
type X__uint32_t = uint32 /* _types.h:56:23 */
|
||||
|
||||
// LONGLONG
|
||||
type X__int64_t = int64 /* _types.h:61:20 */
|
||||
|
||||
// LONGLONG
|
||||
type X__uint64_t = uint64 /* _types.h:66:28 */
|
||||
|
||||
// Standard type definitions.
|
||||
type X__clock_t = X__uint32_t /* _types.h:71:20 */ // clock()...
|
||||
type X__critical_t = X__int32_t /* _types.h:72:19 */
|
||||
type X__double_t = float64 /* _types.h:74:17 */
|
||||
type X__float_t = float32 /* _types.h:75:16 */
|
||||
type X__intfptr_t = X__int32_t /* _types.h:77:19 */
|
||||
type X__intmax_t = X__int64_t /* _types.h:78:19 */
|
||||
type X__intptr_t = X__int32_t /* _types.h:79:19 */
|
||||
type X__int_fast8_t = X__int32_t /* _types.h:80:19 */
|
||||
type X__int_fast16_t = X__int32_t /* _types.h:81:19 */
|
||||
type X__int_fast32_t = X__int32_t /* _types.h:82:19 */
|
||||
type X__int_fast64_t = X__int64_t /* _types.h:83:19 */
|
||||
type X__int_least8_t = X__int8_t /* _types.h:84:18 */
|
||||
type X__int_least16_t = X__int16_t /* _types.h:85:19 */
|
||||
type X__int_least32_t = X__int32_t /* _types.h:86:19 */
|
||||
type X__int_least64_t = X__int64_t /* _types.h:87:19 */
|
||||
type X__ptrdiff_t = X__int32_t /* _types.h:88:19 */ // ptr1 - ptr2
|
||||
type X__register_t = X__int32_t /* _types.h:89:19 */
|
||||
type X__segsz_t = X__int32_t /* _types.h:90:19 */ // segment size (in pages)
|
||||
type X__size_t = X__uint32_t /* _types.h:91:20 */ // sizeof()
|
||||
type X__ssize_t = X__int32_t /* _types.h:92:19 */ // byte count or error
|
||||
type X__time_t = X__int64_t /* _types.h:93:19 */ // time()...
|
||||
type X__uintfptr_t = X__uint32_t /* _types.h:94:20 */
|
||||
type X__uintmax_t = X__uint64_t /* _types.h:95:20 */
|
||||
type X__uintptr_t = X__uint32_t /* _types.h:96:20 */
|
||||
type X__uint_fast8_t = X__uint32_t /* _types.h:97:20 */
|
||||
type X__uint_fast16_t = X__uint32_t /* _types.h:98:20 */
|
||||
type X__uint_fast32_t = X__uint32_t /* _types.h:99:20 */
|
||||
type X__uint_fast64_t = X__uint64_t /* _types.h:100:20 */
|
||||
type X__uint_least8_t = X__uint8_t /* _types.h:101:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* _types.h:102:20 */
|
||||
type X__uint_least32_t = X__uint32_t /* _types.h:103:20 */
|
||||
type X__uint_least64_t = X__uint64_t /* _types.h:104:20 */
|
||||
type X__u_register_t = X__uint32_t /* _types.h:105:20 */
|
||||
type X__vm_offset_t = X__uint32_t /* _types.h:106:20 */
|
||||
type X__vm_paddr_t = X__uint32_t /* _types.h:107:20 */
|
||||
type X__vm_size_t = X__uint32_t /* _types.h:108:20 */
|
||||
|
||||
type X___wchar_t = uint32 /* _types.h:110:22 */
|
||||
|
||||
// Standard type definitions.
|
||||
type X__blksize_t = X__int32_t /* _types.h:40:19 */ // file block size
|
||||
type X__blkcnt_t = X__int64_t /* _types.h:41:19 */ // file block count
|
||||
type X__clockid_t = X__int32_t /* _types.h:42:19 */ // clock_gettime()...
|
||||
type X__fflags_t = X__uint32_t /* _types.h:43:20 */ // file flags
|
||||
type X__fsblkcnt_t = X__uint64_t /* _types.h:44:20 */
|
||||
type X__fsfilcnt_t = X__uint64_t /* _types.h:45:20 */
|
||||
type X__gid_t = X__uint32_t /* _types.h:46:20 */
|
||||
type X__id_t = X__int64_t /* _types.h:47:19 */ // can hold a gid_t, pid_t, or uid_t
|
||||
type X__ino_t = X__uint64_t /* _types.h:48:20 */ // inode number
|
||||
type X__key_t = int32 /* _types.h:49:15 */ // IPC key (for Sys V IPC)
|
||||
type X__lwpid_t = X__int32_t /* _types.h:50:19 */ // Thread ID (a.k.a. LWP)
|
||||
type X__mode_t = X__uint16_t /* _types.h:51:20 */ // permissions
|
||||
type X__accmode_t = int32 /* _types.h:52:14 */ // access permissions
|
||||
type X__nl_item = int32 /* _types.h:53:14 */
|
||||
type X__nlink_t = X__uint64_t /* _types.h:54:20 */ // link count
|
||||
type X__off_t = X__int64_t /* _types.h:55:19 */ // file offset
|
||||
type X__off64_t = X__int64_t /* _types.h:56:19 */ // file offset (alias)
|
||||
type X__pid_t = X__int32_t /* _types.h:57:19 */ // process [group]
|
||||
type X__rlim_t = X__int64_t /* _types.h:58:19 */ // resource limit - intentionally
|
||||
// signed, because of legacy code
|
||||
// that uses -1 for RLIM_INFINITY
|
||||
type X__sa_family_t = X__uint8_t /* _types.h:61:19 */
|
||||
type X__socklen_t = X__uint32_t /* _types.h:62:20 */
|
||||
type X__suseconds_t = int32 /* _types.h:63:15 */ // microseconds (signed)
|
||||
type X__timer_t = uintptr /* _types.h:64:24 */ // timer_gettime()...
|
||||
type X__mqd_t = uintptr /* _types.h:65:21 */ // mq_open()...
|
||||
type X__uid_t = X__uint32_t /* _types.h:66:20 */
|
||||
type X__useconds_t = uint32 /* _types.h:67:22 */ // microseconds (unsigned)
|
||||
type X__cpuwhich_t = int32 /* _types.h:68:14 */ // which parameter for cpuset.
|
||||
type X__cpulevel_t = int32 /* _types.h:69:14 */ // level parameter for cpuset.
|
||||
type X__cpusetid_t = int32 /* _types.h:70:14 */ // cpuset identifier.
|
||||
type X__daddr_t = X__int64_t /* _types.h:71:19 */ // bwrite(3), FIOBMAP2, etc
|
||||
|
||||
// Unusual type definitions.
|
||||
// rune_t is declared to be an “int” instead of the more natural
|
||||
// “unsigned long” or “long”. Two things are happening here. It is not
|
||||
// unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
|
||||
// it looks like 10646 will be a 31 bit standard. This means that if your
|
||||
// ints cannot hold 32 bits, you will be in trouble. The reason an int was
|
||||
// chosen over a long is that the is*() and to*() routines take ints (says
|
||||
// ANSI C), but they use __ct_rune_t instead of int.
|
||||
//
|
||||
// NOTE: rune_t is not covered by ANSI nor other standards, and should not
|
||||
// be instantiated outside of lib/libc/locale. Use wchar_t. wint_t and
|
||||
// rune_t must be the same type. Also, wint_t should be able to hold all
|
||||
// members of the largest character set plus one extra value (WEOF), and
|
||||
// must be at least 16 bits.
|
||||
type X__ct_rune_t = int32 /* _types.h:91:14 */ // arg type for ctype funcs
|
||||
type X__rune_t = X__ct_rune_t /* _types.h:92:21 */ // rune_t (see above)
|
||||
type X__wint_t = X__ct_rune_t /* _types.h:93:21 */ // wint_t (see above)
|
||||
|
||||
// Clang already provides these types as built-ins, but only in C++ mode.
|
||||
type X__char16_t = X__uint_least16_t /* _types.h:97:26 */
|
||||
type X__char32_t = X__uint_least32_t /* _types.h:98:26 */
|
||||
// In C++11, char16_t and char32_t are built-in types.
|
||||
|
||||
type X__max_align_t = struct {
|
||||
F__max_align1 int64
|
||||
F__max_align2 float64
|
||||
} /* _types.h:111:3 */
|
||||
|
||||
type X__dev_t = X__uint64_t /* _types.h:113:20 */ // device number
|
||||
|
||||
type X__fixpt_t = X__uint32_t /* _types.h:115:20 */ // fixed point number
|
||||
|
||||
// mbstate_t is an opaque object to keep conversion state during multibyte
|
||||
// stream conversions.
|
||||
type X__mbstate_t = struct {
|
||||
F__ccgo_pad1 [0]uint64
|
||||
F__mbstate8 [128]uint8
|
||||
} /* _types.h:124:3 */
|
||||
|
||||
type X__rman_res_t = X__uintmax_t /* _types.h:126:25 */
|
||||
|
||||
// Types for varargs. These are all provided by builtin types these
|
||||
// days, so centralize their definition.
|
||||
type X__va_list = X__builtin_va_list /* _types.h:133:27 */ // internally known to gcc
|
||||
type X__gnuc_va_list = X__va_list /* _types.h:140:20 */ // compatibility w/GNU headers
|
||||
|
||||
// When the following macro is defined, the system uses 64-bit inode numbers.
|
||||
// Programs can use this to avoid including <sys/param.h>, with its associated
|
||||
// namespace pollution.
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// Copyright (c) 1989, 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. 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.
|
||||
//
|
||||
// @(#)dirent.h 8.3 (Berkeley) 8/10/94
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// 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. 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
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
//
|
||||
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
|
||||
// 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.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
|
||||
//
|
||||
// $FreeBSD$
|
||||
|
||||
type Ino_t = X__ino_t /* dirent.h:42:18 */
|
||||
|
||||
type Off_t = X__off_t /* dirent.h:47:18 */
|
||||
|
||||
// The dirent structure defines the format of directory entries returned by
|
||||
// the getdirentries(2) system call.
|
||||
//
|
||||
// A directory entry has a struct dirent at the front of it, containing its
|
||||
// inode number, the length of the entry, and the length of the name
|
||||
// contained in the entry. These are followed by the name padded to an 8
|
||||
// byte boundary with null bytes. All names are guaranteed null terminated.
|
||||
// The maximum length of a name in a directory is MAXNAMLEN.
|
||||
//
|
||||
// Explicit padding between the last member of the header (d_namlen) and
|
||||
// d_name avoids ABI padding at the end of dirent on LP64 architectures.
|
||||
// There is code depending on d_name being last.
|
||||
|
||||
type Dirent = struct {
|
||||
Fd_fileno Ino_t
|
||||
Fd_off Off_t
|
||||
Fd_reclen X__uint16_t
|
||||
Fd_type X__uint8_t
|
||||
Fd_pad0 X__uint8_t
|
||||
Fd_namlen X__uint16_t
|
||||
Fd_pad1 X__uint16_t
|
||||
Fd_name [256]uint8
|
||||
} /* dirent.h:66:1 */
|
||||
|
||||
type Ssize_t = X__ssize_t /* dirent.h:54:19 */
|
||||
|
||||
var _ uint8 /* gen.c:2:13: */
|
747
dirent/dirent_freebsd_arm64.go
Normal file
747
dirent/dirent_freebsd_arm64.go
Normal file
|
@ -0,0 +1,747 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_freebsd_amd64.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
import (
|
||||
"math"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ = math.Pi
|
||||
var _ reflect.Kind
|
||||
var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
DIRBLKSIZ = 1024 // dirent.h:85:1:
|
||||
DTF_HIDEW = 0x0001 // dirent.h:91:1:
|
||||
DTF_NODUP = 0x0002 // dirent.h:92:1:
|
||||
DTF_REWIND = 0x0004 // dirent.h:93:1:
|
||||
DT_BLK = 6 // dirent.h:101:1:
|
||||
DT_CHR = 2 // dirent.h:99:1:
|
||||
DT_DIR = 4 // dirent.h:100:1:
|
||||
DT_FIFO = 1 // dirent.h:98:1:
|
||||
DT_LNK = 10 // dirent.h:103:1:
|
||||
DT_REG = 8 // dirent.h:102:1:
|
||||
DT_SOCK = 12 // dirent.h:104:1:
|
||||
DT_UNKNOWN = 0 // dirent.h:97:1:
|
||||
DT_WHT = 14 // dirent.h:105:1:
|
||||
MAXNAMLEN = 255 // dirent.h:75:1:
|
||||
X_DIRENT_H_ = 0 // dirent.h:36:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_INO_T_DECLARED = 0 // dirent.h:43:1:
|
||||
X_LP64 = 1 // <predefined>:1:1:
|
||||
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
|
||||
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
|
||||
X_Nonnull = 0 // cdefs.h:790:1:
|
||||
X_Null_unspecified = 0 // cdefs.h:792:1:
|
||||
X_Nullable = 0 // cdefs.h:791:1:
|
||||
X_OFF_T_DECLARED = 0 // dirent.h:48:1:
|
||||
X_SIZE_T_DECLARED = 0 // dirent.h:50:1:
|
||||
X_SSIZE_T_DECLARED = 0 // dirent.h:55:1:
|
||||
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
|
||||
X_SYS_DIRENT_H_ = 0 // dirent.h:36:1:
|
||||
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
|
||||
Unix = 1 // <predefined>:340:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
|
||||
type Size_t = uint64 /* <builtin>:9:23 */
|
||||
|
||||
type Wchar_t = int32 /* <builtin>:15:24 */
|
||||
|
||||
type X__int128_t = struct {
|
||||
Flo int64
|
||||
Fhi int64
|
||||
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
|
||||
type X__uint128_t = struct {
|
||||
Flo uint64
|
||||
Fhi uint64
|
||||
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
|
||||
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// Copyright (c) 1989, 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. 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.
|
||||
//
|
||||
// @(#)dirent.h 8.2 (Berkeley) 7/28/94
|
||||
// $FreeBSD$
|
||||
|
||||
// The kernel defines the format of directory entries returned by
|
||||
// the getdirentries(2) system call.
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// 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. 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
|
||||
// $FreeBSD$
|
||||
|
||||
// Testing against Clang-specific extensions.
|
||||
|
||||
// This code has been put in place to help reduce the addition of
|
||||
// compiler specific defines in FreeBSD code. It helps to aid in
|
||||
// having a compiler-agnostic source tree.
|
||||
|
||||
// Compiler memory barriers, specific to gcc and clang.
|
||||
|
||||
// XXX: if __GNUC__ >= 2: not tested everywhere originally, where replaced
|
||||
|
||||
// Macro to test if we're using a specific version of gcc or later.
|
||||
|
||||
// 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 to use if it must work in non-ANSI
|
||||
// mode -- there must be no spaces between its arguments, and for nested
|
||||
// __CONCAT's, all the __CONCAT's must be at the left. __CONCAT can also
|
||||
// concatenate double-quoted strings produced by the __STRING macro, but
|
||||
// this only works with ANSI C.
|
||||
//
|
||||
// __XSTRING is like __STRING, but it expands any macros in its argument
|
||||
// first. It is only available with ANSI C.
|
||||
|
||||
// Compiler-dependent macros to help declare dead (non-returning) and
|
||||
// pure (no side effects) functions, and unused variables. They are
|
||||
// null except for versions of gcc that are known to support the features
|
||||
// properly (old versions of gcc-2 supported the dead and pure features
|
||||
// in a different (wrong) way). If we do not provide an implementation
|
||||
// for a given compiler, let the compile fail if it is told to use
|
||||
// a feature that we cannot live without.
|
||||
|
||||
// Keywords added in C11.
|
||||
|
||||
// Emulation of C11 _Generic(). Unlike the previously defined C11
|
||||
// keywords, it is not possible to implement this using exactly the same
|
||||
// syntax. Therefore implement something similar under the name
|
||||
// __generic(). Unlike _Generic(), this macro can only distinguish
|
||||
// between a single type, so it requires nested invocations to
|
||||
// distinguish multiple cases.
|
||||
|
||||
// C99 Static array indices in function parameter declarations. Syntax such as:
|
||||
// void bar(int myArray[static 10]);
|
||||
// is allowed in C99 but not in C++. Define __min_size appropriately so
|
||||
// headers using it can be compiled in either language. Use like this:
|
||||
// void bar(int myArray[__min_size(10)]);
|
||||
|
||||
// XXX: should use `#if __STDC_VERSION__ < 199901'.
|
||||
|
||||
// C++11 exposes a load of C99 stuff
|
||||
|
||||
// GCC 2.95 provides `__restrict' as an extension to C90 to support the
|
||||
// C99-specific `restrict' type qualifier. We happen to use `__restrict' as
|
||||
// a way to define the `restrict' type qualifier without disturbing older
|
||||
// software that is unaware of C99 keywords.
|
||||
|
||||
// GNU C version 2.96 adds explicit branch prediction so that
|
||||
// the CPU back-end can hint the processor and also so that
|
||||
// code blocks can be reordered such that the predicted path
|
||||
// sees a more linear flow, thus improving cache behavior, etc.
|
||||
//
|
||||
// The following two macros provide us with a way to utilize this
|
||||
// compiler feature. Use __predict_true() if you expect the expression
|
||||
// to evaluate to true, and __predict_false() if you expect the
|
||||
// expression to evaluate to false.
|
||||
//
|
||||
// A few notes about usage:
|
||||
//
|
||||
// * Generally, __predict_false() error condition checks (unless
|
||||
// you have some _strong_ reason to do otherwise, in which case
|
||||
// document it), and/or __predict_true() `no-error' condition
|
||||
// checks, assuming you want to optimize for the no-error case.
|
||||
//
|
||||
// * Other than that, if you don't know the likelihood of a test
|
||||
// succeeding from empirical or other `hard' evidence, don't
|
||||
// make predictions.
|
||||
//
|
||||
// * These are meant to be used in places that are run `a lot'.
|
||||
// It is wasteful to make predictions in code that is run
|
||||
// seldomly (e.g. at subsystem initialization time) as the
|
||||
// basic block reordering that this affects can often generate
|
||||
// larger code.
|
||||
|
||||
// We define this here since <stddef.h>, <sys/queue.h>, and <sys/types.h>
|
||||
// require it.
|
||||
|
||||
// Given the pointer x to the member m of the struct s, return
|
||||
// a pointer to the containing structure. When using GCC, we first
|
||||
// assign pointer x to a local variable, to check that its type is
|
||||
// compatible with member m.
|
||||
|
||||
// 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 (old versions of gcc-2
|
||||
// didn't permit keeping the keywords out of the application namespace).
|
||||
|
||||
// Compiler-dependent macros that rely on FreeBSD-specific extensions.
|
||||
|
||||
// Embed the rcs id of a source file in the resulting library. Note that in
|
||||
// more recent ELF binutils, we use .ident allowing the ID to be stripped.
|
||||
// Usage:
|
||||
// __FBSDID("$FreeBSD$");
|
||||
|
||||
// -
|
||||
// The following definitions are an extension of the behavior originally
|
||||
// implemented in <sys/_posix.h>, but with a different level of granularity.
|
||||
// POSIX.1 requires that the macros we test be defined before any standard
|
||||
// header file is included.
|
||||
//
|
||||
// Here's a quick run-down of the versions:
|
||||
// defined(_POSIX_SOURCE) 1003.1-1988
|
||||
// _POSIX_C_SOURCE == 1 1003.1-1990
|
||||
// _POSIX_C_SOURCE == 2 1003.2-1992 C Language Binding Option
|
||||
// _POSIX_C_SOURCE == 199309 1003.1b-1993
|
||||
// _POSIX_C_SOURCE == 199506 1003.1c-1995, 1003.1i-1995,
|
||||
// and the omnibus ISO/IEC 9945-1: 1996
|
||||
// _POSIX_C_SOURCE == 200112 1003.1-2001
|
||||
// _POSIX_C_SOURCE == 200809 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.
|
||||
//
|
||||
// Our macros begin with two underscores to avoid namespace screwage.
|
||||
|
||||
// Deal with IEEE Std. 1003.1-1990, in which _POSIX_C_SOURCE == 1.
|
||||
|
||||
// Deal with IEEE Std. 1003.2-1992, in which _POSIX_C_SOURCE == 2.
|
||||
|
||||
// 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.
|
||||
// -
|
||||
// Deal with _ANSI_SOURCE:
|
||||
// If it is defined, and no other compilation environment is explicitly
|
||||
// requested, then define our internal feature-test macros to zero. This
|
||||
// makes no difference to the preprocessor (undefined symbols in preprocessing
|
||||
// expressions are defined to have value zero), but makes it more convenient for
|
||||
// a test program to print out the values.
|
||||
//
|
||||
// If a program mistakenly defines _ANSI_SOURCE and some other macro such as
|
||||
// _POSIX_C_SOURCE, we will assume that it wants the broader compilation
|
||||
// environment (and in fact we will never get here).
|
||||
|
||||
// User override __EXT1_VISIBLE
|
||||
|
||||
// Old versions of GCC use non-standard ARM arch symbols; acle-compat.h
|
||||
// translates them to __ARM_ARCH and the modern feature symbols defined by ARM.
|
||||
|
||||
// Nullability qualifiers: currently only supported by Clang.
|
||||
|
||||
// Type Safety Checking
|
||||
//
|
||||
// Clang provides additional attributes to enable checking type safety
|
||||
// properties that cannot be enforced by the C type system.
|
||||
|
||||
// Lock annotations.
|
||||
//
|
||||
// Clang provides support for doing basic thread-safety tests at
|
||||
// compile-time, by marking which locks will/should be held when
|
||||
// entering/leaving a functions.
|
||||
//
|
||||
// Furthermore, it is also possible to annotate variables and structure
|
||||
// members to enforce that they are only accessed when certain locks are
|
||||
// held.
|
||||
|
||||
// Structure implements a lock.
|
||||
|
||||
// Function acquires an exclusive or shared lock.
|
||||
|
||||
// Function attempts to acquire an exclusive or shared lock.
|
||||
|
||||
// Function releases a lock.
|
||||
|
||||
// Function asserts that an exclusive or shared lock is held.
|
||||
|
||||
// Function requires that an exclusive or shared lock is or is not held.
|
||||
|
||||
// Function should not be analyzed.
|
||||
|
||||
// Function or variable should not be sanitized, e.g., by AddressSanitizer.
|
||||
// GCC has the nosanitize attribute, but as a function attribute only, and
|
||||
// warns on use as a variable attribute.
|
||||
|
||||
// Guard variables and structure members by lock.
|
||||
|
||||
// Alignment builtins for better type checking and improved code generation.
|
||||
// Provide fallback versions for other compilers (GCC/Clang < 10):
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
//
|
||||
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
|
||||
// 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.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
|
||||
//
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// 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. 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
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// This file is in the public domain.
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-4-Clause
|
||||
//
|
||||
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
|
||||
// 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.
|
||||
//
|
||||
// From: @(#)ansi.h 8.2 (Berkeley) 1/4/94
|
||||
// From: @(#)types.h 8.3 (Berkeley) 1/5/94
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// This file is in the public domain.
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// Copyright (c) 1988, 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. 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.
|
||||
//
|
||||
// @(#)limits.h 8.3 (Berkeley) 1/4/94
|
||||
// $FreeBSD$
|
||||
|
||||
// According to ANSI (section 2.2.4.2), the values below must be usable by
|
||||
// #if preprocessing directives. Additionally, the expression must have the
|
||||
// same type as would an expression that is an object of the corresponding
|
||||
// type converted according to the integral promotions. The subtraction for
|
||||
// INT_MIN, etc., is so the value is not unsigned; e.g., 0x80000000 is an
|
||||
// unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2).
|
||||
|
||||
// max value for an unsigned long long
|
||||
|
||||
// Quads and longs are the same on the amd64. Ensure they stay in sync.
|
||||
|
||||
// Minimum signal stack size.
|
||||
|
||||
// Basic types upon which most other types are built.
|
||||
type X__int8_t = int8 /* _types.h:55:22 */
|
||||
type X__uint8_t = uint8 /* _types.h:56:24 */
|
||||
type X__int16_t = int16 /* _types.h:57:17 */
|
||||
type X__uint16_t = uint16 /* _types.h:58:25 */
|
||||
type X__int32_t = int32 /* _types.h:59:15 */
|
||||
type X__uint32_t = uint32 /* _types.h:60:23 */
|
||||
type X__int64_t = int64 /* _types.h:62:16 */
|
||||
type X__uint64_t = uint64 /* _types.h:63:24 */
|
||||
|
||||
// Standard type definitions.
|
||||
type X__clock_t = X__int32_t /* _types.h:75:19 */ // clock()...
|
||||
type X__critical_t = X__int64_t /* _types.h:76:19 */
|
||||
type X__double_t = float64 /* _types.h:78:17 */
|
||||
type X__float_t = float32 /* _types.h:79:16 */
|
||||
type X__intfptr_t = X__int64_t /* _types.h:81:19 */
|
||||
type X__intptr_t = X__int64_t /* _types.h:82:19 */
|
||||
type X__intmax_t = X__int64_t /* _types.h:93:19 */
|
||||
type X__int_fast8_t = X__int32_t /* _types.h:94:19 */
|
||||
type X__int_fast16_t = X__int32_t /* _types.h:95:19 */
|
||||
type X__int_fast32_t = X__int32_t /* _types.h:96:19 */
|
||||
type X__int_fast64_t = X__int64_t /* _types.h:97:19 */
|
||||
type X__int_least8_t = X__int8_t /* _types.h:98:18 */
|
||||
type X__int_least16_t = X__int16_t /* _types.h:99:19 */
|
||||
type X__int_least32_t = X__int32_t /* _types.h:100:19 */
|
||||
type X__int_least64_t = X__int64_t /* _types.h:101:19 */
|
||||
type X__ptrdiff_t = X__int64_t /* _types.h:103:19 */ // ptr1 - ptr2
|
||||
type X__register_t = X__int64_t /* _types.h:104:19 */
|
||||
type X__segsz_t = X__int64_t /* _types.h:105:19 */ // segment size (in pages)
|
||||
type X__size_t = X__uint64_t /* _types.h:106:20 */ // sizeof()
|
||||
type X__ssize_t = X__int64_t /* _types.h:107:19 */ // byte count or error
|
||||
type X__time_t = X__int64_t /* _types.h:108:19 */ // time()...
|
||||
type X__uintfptr_t = X__uint64_t /* _types.h:109:20 */
|
||||
type X__uintptr_t = X__uint64_t /* _types.h:110:20 */
|
||||
type X__uintmax_t = X__uint64_t /* _types.h:121:20 */
|
||||
type X__uint_fast8_t = X__uint32_t /* _types.h:122:20 */
|
||||
type X__uint_fast16_t = X__uint32_t /* _types.h:123:20 */
|
||||
type X__uint_fast32_t = X__uint32_t /* _types.h:124:20 */
|
||||
type X__uint_fast64_t = X__uint64_t /* _types.h:125:20 */
|
||||
type X__uint_least8_t = X__uint8_t /* _types.h:126:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* _types.h:127:20 */
|
||||
type X__uint_least32_t = X__uint32_t /* _types.h:128:20 */
|
||||
type X__uint_least64_t = X__uint64_t /* _types.h:129:20 */
|
||||
type X__u_register_t = X__uint64_t /* _types.h:131:20 */
|
||||
type X__vm_offset_t = X__uint64_t /* _types.h:132:20 */
|
||||
type X__vm_paddr_t = X__uint64_t /* _types.h:133:20 */
|
||||
type X__vm_size_t = X__uint64_t /* _types.h:134:20 */
|
||||
type X___wchar_t = int32 /* _types.h:141:14 */
|
||||
|
||||
// Standard type definitions.
|
||||
type X__blksize_t = X__int32_t /* _types.h:40:19 */ // file block size
|
||||
type X__blkcnt_t = X__int64_t /* _types.h:41:19 */ // file block count
|
||||
type X__clockid_t = X__int32_t /* _types.h:42:19 */ // clock_gettime()...
|
||||
type X__fflags_t = X__uint32_t /* _types.h:43:20 */ // file flags
|
||||
type X__fsblkcnt_t = X__uint64_t /* _types.h:44:20 */
|
||||
type X__fsfilcnt_t = X__uint64_t /* _types.h:45:20 */
|
||||
type X__gid_t = X__uint32_t /* _types.h:46:20 */
|
||||
type X__id_t = X__int64_t /* _types.h:47:19 */ // can hold a gid_t, pid_t, or uid_t
|
||||
type X__ino_t = X__uint64_t /* _types.h:48:20 */ // inode number
|
||||
type X__key_t = int64 /* _types.h:49:15 */ // IPC key (for Sys V IPC)
|
||||
type X__lwpid_t = X__int32_t /* _types.h:50:19 */ // Thread ID (a.k.a. LWP)
|
||||
type X__mode_t = X__uint16_t /* _types.h:51:20 */ // permissions
|
||||
type X__accmode_t = int32 /* _types.h:52:14 */ // access permissions
|
||||
type X__nl_item = int32 /* _types.h:53:14 */
|
||||
type X__nlink_t = X__uint64_t /* _types.h:54:20 */ // link count
|
||||
type X__off_t = X__int64_t /* _types.h:55:19 */ // file offset
|
||||
type X__off64_t = X__int64_t /* _types.h:56:19 */ // file offset (alias)
|
||||
type X__pid_t = X__int32_t /* _types.h:57:19 */ // process [group]
|
||||
type X__rlim_t = X__int64_t /* _types.h:58:19 */ // resource limit - intentionally
|
||||
// signed, because of legacy code
|
||||
// that uses -1 for RLIM_INFINITY
|
||||
type X__sa_family_t = X__uint8_t /* _types.h:61:19 */
|
||||
type X__socklen_t = X__uint32_t /* _types.h:62:20 */
|
||||
type X__suseconds_t = int64 /* _types.h:63:15 */ // microseconds (signed)
|
||||
type X__timer_t = uintptr /* _types.h:64:24 */ // timer_gettime()...
|
||||
type X__mqd_t = uintptr /* _types.h:65:21 */ // mq_open()...
|
||||
type X__uid_t = X__uint32_t /* _types.h:66:20 */
|
||||
type X__useconds_t = uint32 /* _types.h:67:22 */ // microseconds (unsigned)
|
||||
type X__cpuwhich_t = int32 /* _types.h:68:14 */ // which parameter for cpuset.
|
||||
type X__cpulevel_t = int32 /* _types.h:69:14 */ // level parameter for cpuset.
|
||||
type X__cpusetid_t = int32 /* _types.h:70:14 */ // cpuset identifier.
|
||||
type X__daddr_t = X__int64_t /* _types.h:71:19 */ // bwrite(3), FIOBMAP2, etc
|
||||
|
||||
// Unusual type definitions.
|
||||
// rune_t is declared to be an “int” instead of the more natural
|
||||
// “unsigned long” or “long”. Two things are happening here. It is not
|
||||
// unsigned so that EOF (-1) can be naturally assigned to it and used. Also,
|
||||
// it looks like 10646 will be a 31 bit standard. This means that if your
|
||||
// ints cannot hold 32 bits, you will be in trouble. The reason an int was
|
||||
// chosen over a long is that the is*() and to*() routines take ints (says
|
||||
// ANSI C), but they use __ct_rune_t instead of int.
|
||||
//
|
||||
// NOTE: rune_t is not covered by ANSI nor other standards, and should not
|
||||
// be instantiated outside of lib/libc/locale. Use wchar_t. wint_t and
|
||||
// rune_t must be the same type. Also, wint_t should be able to hold all
|
||||
// members of the largest character set plus one extra value (WEOF), and
|
||||
// must be at least 16 bits.
|
||||
type X__ct_rune_t = int32 /* _types.h:91:14 */ // arg type for ctype funcs
|
||||
type X__rune_t = X__ct_rune_t /* _types.h:92:21 */ // rune_t (see above)
|
||||
type X__wint_t = X__ct_rune_t /* _types.h:93:21 */ // wint_t (see above)
|
||||
|
||||
// Clang already provides these types as built-ins, but only in C++ mode.
|
||||
type X__char16_t = X__uint_least16_t /* _types.h:97:26 */
|
||||
type X__char32_t = X__uint_least32_t /* _types.h:98:26 */
|
||||
// In C++11, char16_t and char32_t are built-in types.
|
||||
|
||||
type X__max_align_t = struct {
|
||||
F__max_align1 int64
|
||||
F__max_align2 float64
|
||||
} /* _types.h:111:3 */
|
||||
|
||||
type X__dev_t = X__uint64_t /* _types.h:113:20 */ // device number
|
||||
|
||||
type X__fixpt_t = X__uint32_t /* _types.h:115:20 */ // fixed point number
|
||||
|
||||
// mbstate_t is an opaque object to keep conversion state during multibyte
|
||||
// stream conversions.
|
||||
type X__mbstate_t = struct {
|
||||
F__ccgo_pad1 [0]uint64
|
||||
F__mbstate8 [128]int8
|
||||
} /* _types.h:124:3 */
|
||||
|
||||
type X__rman_res_t = X__uintmax_t /* _types.h:126:25 */
|
||||
|
||||
// Types for varargs. These are all provided by builtin types these
|
||||
// days, so centralize their definition.
|
||||
type X__va_list = X__builtin_va_list /* _types.h:133:27 */ // internally known to gcc
|
||||
type X__gnuc_va_list = X__va_list /* _types.h:140:20 */ // compatibility w/GNU headers
|
||||
|
||||
// When the following macro is defined, the system uses 64-bit inode numbers.
|
||||
// Programs can use this to avoid including <sys/param.h>, with its associated
|
||||
// namespace pollution.
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// Copyright (c) 1989, 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. 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.
|
||||
//
|
||||
// @(#)dirent.h 8.3 (Berkeley) 8/10/94
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
//
|
||||
// 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. 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
|
||||
// $FreeBSD$
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
//
|
||||
// Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
|
||||
// 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.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
|
||||
//
|
||||
// $FreeBSD$
|
||||
|
||||
type Ino_t = X__ino_t /* dirent.h:42:18 */
|
||||
|
||||
type Off_t = X__off_t /* dirent.h:47:18 */
|
||||
|
||||
// The dirent structure defines the format of directory entries returned by
|
||||
// the getdirentries(2) system call.
|
||||
//
|
||||
// A directory entry has a struct dirent at the front of it, containing its
|
||||
// inode number, the length of the entry, and the length of the name
|
||||
// contained in the entry. These are followed by the name padded to an 8
|
||||
// byte boundary with null bytes. All names are guaranteed null terminated.
|
||||
// The maximum length of a name in a directory is MAXNAMLEN.
|
||||
//
|
||||
// Explicit padding between the last member of the header (d_namlen) and
|
||||
// d_name avoids ABI padding at the end of dirent on LP64 architectures.
|
||||
// There is code depending on d_name being last.
|
||||
|
||||
type Dirent = struct {
|
||||
Fd_fileno Ino_t
|
||||
Fd_off Off_t
|
||||
Fd_reclen X__uint16_t
|
||||
Fd_type X__uint8_t
|
||||
Fd_pad0 X__uint8_t
|
||||
Fd_namlen X__uint16_t
|
||||
Fd_pad1 X__uint16_t
|
||||
Fd_name [256]int8
|
||||
} /* dirent.h:66:1 */
|
||||
|
||||
type Ssize_t = X__ssize_t /* dirent.h:54:19 */
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
2987
dirent/dirent_illumos_amd64.go
Normal file
2987
dirent/dirent_illumos_amd64.go
Normal file
File diff suppressed because it is too large
Load diff
893
dirent/dirent_linux_386.go
Normal file
893
dirent/dirent_linux_386.go
Normal file
|
@ -0,0 +1,893 @@
|
|||
// Code generated by 'ccgo dirent/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 dirent/dirent_linux_386.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
import (
|
||||
"math"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ = math.Pi
|
||||
var _ reflect.Kind
|
||||
var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
AIO_PRIO_DELTA_MAX = 20
|
||||
DELAYTIMER_MAX = 2147483647
|
||||
HOST_NAME_MAX = 64
|
||||
LOGIN_NAME_MAX = 256
|
||||
MAXNAMLEN = 255
|
||||
MAX_CANON = 255
|
||||
MAX_INPUT = 255
|
||||
MQ_PRIO_MAX = 32768
|
||||
NAME_MAX = 255
|
||||
NGROUPS_MAX = 65536
|
||||
PATH_MAX = 4096
|
||||
PIPE_BUF = 4096
|
||||
PTHREAD_DESTRUCTOR_ITERATIONS = 4
|
||||
PTHREAD_KEYS_MAX = 1024
|
||||
PTHREAD_STACK_MIN = 16384
|
||||
RTSIG_MAX = 32
|
||||
SEM_VALUE_MAX = 2147483647
|
||||
TTY_NAME_MAX = 32
|
||||
XATTR_LIST_MAX = 65536
|
||||
XATTR_NAME_MAX = 255
|
||||
XATTR_SIZE_MAX = 65536
|
||||
X_ATFILE_SOURCE = 1
|
||||
X_BITS_POSIX1_LIM_H = 1
|
||||
X_BITS_TIME64_H = 1
|
||||
X_BITS_TYPESIZES_H = 1
|
||||
X_BITS_TYPES_H = 1
|
||||
X_BSD_SIZE_T_ = 0
|
||||
X_BSD_SIZE_T_DEFINED_ = 0
|
||||
X_DEFAULT_SOURCE = 1
|
||||
X_DIRENT_H = 1
|
||||
X_DIRENT_HAVE_D_OFF = 0
|
||||
X_DIRENT_HAVE_D_RECLEN = 0
|
||||
X_DIRENT_HAVE_D_TYPE = 0
|
||||
X_DIRENT_MATCHES_DIRENT64 = 0
|
||||
X_FEATURES_H = 1
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_GCC_SIZE_T = 0
|
||||
X_ILP32 = 1
|
||||
X_LINUX_LIMITS_H = 0
|
||||
X_POSIX_AIO_LISTIO_MAX = 2
|
||||
X_POSIX_AIO_MAX = 1
|
||||
X_POSIX_ARG_MAX = 4096
|
||||
X_POSIX_CHILD_MAX = 25
|
||||
X_POSIX_CLOCKRES_MIN = 20000000
|
||||
X_POSIX_C_SOURCE = 200809
|
||||
X_POSIX_DELAYTIMER_MAX = 32
|
||||
X_POSIX_HOST_NAME_MAX = 255
|
||||
X_POSIX_LINK_MAX = 8
|
||||
X_POSIX_LOGIN_NAME_MAX = 9
|
||||
X_POSIX_MAX_CANON = 255
|
||||
X_POSIX_MAX_INPUT = 255
|
||||
X_POSIX_MQ_OPEN_MAX = 8
|
||||
X_POSIX_MQ_PRIO_MAX = 32
|
||||
X_POSIX_NAME_MAX = 14
|
||||
X_POSIX_NGROUPS_MAX = 8
|
||||
X_POSIX_OPEN_MAX = 20
|
||||
X_POSIX_PATH_MAX = 256
|
||||
X_POSIX_PIPE_BUF = 512
|
||||
X_POSIX_RE_DUP_MAX = 255
|
||||
X_POSIX_RTSIG_MAX = 8
|
||||
X_POSIX_SEM_NSEMS_MAX = 256
|
||||
X_POSIX_SEM_VALUE_MAX = 32767
|
||||
X_POSIX_SIGQUEUE_MAX = 32
|
||||
X_POSIX_SOURCE = 1
|
||||
X_POSIX_SSIZE_MAX = 32767
|
||||
X_POSIX_STREAM_MAX = 8
|
||||
X_POSIX_SYMLINK_MAX = 255
|
||||
X_POSIX_SYMLOOP_MAX = 8
|
||||
X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
|
||||
X_POSIX_THREAD_KEYS_MAX = 128
|
||||
X_POSIX_THREAD_THREADS_MAX = 64
|
||||
X_POSIX_TIMER_MAX = 32
|
||||
X_POSIX_TTY_NAME_MAX = 9
|
||||
X_POSIX_TZNAME_MAX = 6
|
||||
X_SIZET_ = 0
|
||||
X_SIZE_T = 0
|
||||
X_SIZE_T_ = 0
|
||||
X_SIZE_T_DECLARED = 0
|
||||
X_SIZE_T_DEFINED = 0
|
||||
X_SIZE_T_DEFINED_ = 0
|
||||
X_STDC_PREDEF_H = 1
|
||||
X_SYS_CDEFS_H = 1
|
||||
X_SYS_SIZE_T_H = 0
|
||||
X_T_SIZE = 0
|
||||
X_T_SIZE_ = 0
|
||||
I386 = 1
|
||||
Linux = 1
|
||||
Unix = 1
|
||||
)
|
||||
|
||||
// These macros extract size information from a `struct dirent *'.
|
||||
// They may evaluate their argument multiple times, so it must not
|
||||
// have side effects. Each of these may involve a relatively costly
|
||||
// call to `strlen' on some systems, so these values should be cached.
|
||||
//
|
||||
// _D_EXACT_NAMLEN (DP) returns the length of DP->d_name, not including
|
||||
// its terminating null character.
|
||||
//
|
||||
// _D_ALLOC_NAMLEN (DP) returns a size at least (_D_EXACT_NAMLEN (DP) + 1);
|
||||
// that is, the allocation size needed to hold the DP->d_name string.
|
||||
// Use this macro when you don't need the exact length, just an upper bound.
|
||||
// This macro is less likely to require calling `strlen' than _D_EXACT_NAMLEN.
|
||||
//
|
||||
|
||||
// File types for `d_type'.
|
||||
const ( /* dirent.h:97:1: */
|
||||
DT_UNKNOWN = 0
|
||||
DT_FIFO = 1
|
||||
DT_CHR = 2
|
||||
DT_DIR = 4
|
||||
DT_BLK = 6
|
||||
DT_REG = 8
|
||||
DT_LNK = 10
|
||||
DT_SOCK = 12
|
||||
DT_WHT = 14
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int32 /* <builtin>:3:26 */
|
||||
|
||||
type Size_t = uint32 /* <builtin>:9:23 */
|
||||
|
||||
type Wchar_t = int32 /* <builtin>:15:24 */
|
||||
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// POSIX Standard: 5.1.2 Directory Operations <dirent.h>
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// These are defined by the user (or the compiler)
|
||||
// to specify the desired environment:
|
||||
//
|
||||
// __STRICT_ANSI__ ISO Standard C.
|
||||
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
|
||||
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
|
||||
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
|
||||
// __STDC_WANT_LIB_EXT2__
|
||||
// Extensions to ISO C99 from TR 27431-2:2010.
|
||||
// __STDC_WANT_IEC_60559_BFP_EXT__
|
||||
// Extensions to ISO C11 from TS 18661-1:2014.
|
||||
// __STDC_WANT_IEC_60559_FUNCS_EXT__
|
||||
// Extensions to ISO C11 from TS 18661-4:2015.
|
||||
// __STDC_WANT_IEC_60559_TYPES_EXT__
|
||||
// Extensions to ISO C11 from TS 18661-3:2015.
|
||||
//
|
||||
// _POSIX_SOURCE IEEE Std 1003.1.
|
||||
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
|
||||
// if >=199309L, add IEEE Std 1003.1b-1993;
|
||||
// if >=199506L, add IEEE Std 1003.1c-1995;
|
||||
// if >=200112L, all of IEEE 1003.1-2004
|
||||
// if >=200809L, all of IEEE 1003.1-2008
|
||||
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
|
||||
// Single Unix conformance is wanted, to 600 for the
|
||||
// sixth revision, to 700 for the seventh revision.
|
||||
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
|
||||
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
|
||||
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
|
||||
// _FILE_OFFSET_BITS=N Select default filesystem interface.
|
||||
// _ATFILE_SOURCE Additional *at interfaces.
|
||||
// _GNU_SOURCE All of the above, plus GNU extensions.
|
||||
// _DEFAULT_SOURCE The default set of features (taking precedence over
|
||||
// __STRICT_ANSI__).
|
||||
//
|
||||
// _FORTIFY_SOURCE Add security hardening to many library functions.
|
||||
// Set to 1 or 2; 2 performs stricter checks than 1.
|
||||
//
|
||||
// _REENTRANT, _THREAD_SAFE
|
||||
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
|
||||
//
|
||||
// The `-ansi' switch to the GNU C compiler, and standards conformance
|
||||
// options such as `-std=c99', define __STRICT_ANSI__. If none of
|
||||
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
|
||||
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
|
||||
// 200809L, as well as enabling miscellaneous functions from BSD and
|
||||
// SVID. If more than one of these are defined, they accumulate. For
|
||||
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
|
||||
// give you ISO C, 1003.1, and 1003.2, but nothing else.
|
||||
//
|
||||
// These are defined by this file and are used by the
|
||||
// header files to decide what to declare or define:
|
||||
//
|
||||
// __GLIBC_USE (F) Define things from feature set F. This is defined
|
||||
// to 1 or 0; the subsequent macros are either defined
|
||||
// or undefined, and those tests should be moved to
|
||||
// __GLIBC_USE.
|
||||
// __USE_ISOC11 Define ISO C11 things.
|
||||
// __USE_ISOC99 Define ISO C99 things.
|
||||
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
|
||||
// __USE_ISOCXX11 Define ISO C++11 things.
|
||||
// __USE_POSIX Define IEEE Std 1003.1 things.
|
||||
// __USE_POSIX2 Define IEEE Std 1003.2 things.
|
||||
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
|
||||
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
|
||||
// __USE_XOPEN Define XPG things.
|
||||
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
|
||||
// __USE_UNIX98 Define Single Unix V2 things.
|
||||
// __USE_XOPEN2K Define XPG6 things.
|
||||
// __USE_XOPEN2KXSI Define XPG6 XSI things.
|
||||
// __USE_XOPEN2K8 Define XPG7 things.
|
||||
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
|
||||
// __USE_LARGEFILE Define correct standard I/O things.
|
||||
// __USE_LARGEFILE64 Define LFS things with separate names.
|
||||
// __USE_FILE_OFFSET64 Define 64bit interface as default.
|
||||
// __USE_MISC Define things from 4.3BSD or System V Unix.
|
||||
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
|
||||
// __USE_GNU Define GNU extensions.
|
||||
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
|
||||
//
|
||||
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
|
||||
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
|
||||
// only for compatibility. All new code should use the other symbols
|
||||
// to test for features.
|
||||
//
|
||||
// All macros listed above as possibly being defined by this file are
|
||||
// explicitly undefined if they are not explicitly defined.
|
||||
// Feature-test macros that are not defined by the user or compiler
|
||||
// but are implied by the other feature-test macros defined (or by the
|
||||
// lack of any definitions) are defined by the file.
|
||||
//
|
||||
// ISO C feature test macros depend on the definition of the macro
|
||||
// when an affected header is included, not when the first system
|
||||
// header is included, and so they are handled in
|
||||
// <bits/libc-header-start.h>, which does not have a multiple include
|
||||
// guard. Feature test macros that can be handled from the first
|
||||
// system header included are handled here.
|
||||
|
||||
// Undefine everything, so we get a clean slate.
|
||||
|
||||
// Suppress kernel-name space pollution unless user expressedly asks
|
||||
// for it.
|
||||
|
||||
// Convenience macro to test the version of gcc.
|
||||
// Use like this:
|
||||
// #if __GNUC_PREREQ (2,8)
|
||||
// ... code requiring gcc 2.8 or later ...
|
||||
// #endif
|
||||
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
|
||||
// added in 2.0.
|
||||
|
||||
// Similarly for clang. Features added to GCC after version 4.2 may
|
||||
// or may not also be available in clang, and clang's definitions of
|
||||
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
|
||||
// features can be queried via __has_extension/__has_feature.
|
||||
|
||||
// Whether to use feature set F.
|
||||
|
||||
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
|
||||
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
|
||||
// issue a warning; the expectation is that the source is being
|
||||
// transitioned to use the new macro.
|
||||
|
||||
// If _GNU_SOURCE was defined by the user, turn on all the other features.
|
||||
|
||||
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
|
||||
// define _DEFAULT_SOURCE.
|
||||
|
||||
// This is to enable the ISO C2X extension.
|
||||
|
||||
// This is to enable the ISO C11 extension.
|
||||
|
||||
// This is to enable the ISO C99 extension.
|
||||
|
||||
// This is to enable the ISO C90 Amendment 1:1995 extension.
|
||||
|
||||
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
|
||||
// is defined, use POSIX.1-2008 (or another version depending on
|
||||
// _XOPEN_SOURCE).
|
||||
|
||||
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
|
||||
// defined in all multithreaded code. GNU libc has not required this
|
||||
// for many years. We now treat them as compatibility synonyms for
|
||||
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
|
||||
// comprehensive support for multithreaded code. Using them never
|
||||
// lowers the selected level of POSIX conformance, only raises it.
|
||||
|
||||
// The function 'gets' existed in C89, but is impossible to use
|
||||
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
|
||||
// compatibility with various implementations of <cstdio>, this test
|
||||
// must consider only the value of __cplusplus when compiling C++.
|
||||
|
||||
// GNU formerly extended the scanf functions with modified format
|
||||
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
|
||||
// input using malloc. This extension conflicts with ISO C99, which
|
||||
// defines %a as a standalone format specifier that reads a floating-
|
||||
// point number; moreover, POSIX.1-2008 provides the same feature
|
||||
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
|
||||
//
|
||||
// We now follow C99 unless GNU extensions are active and the compiler
|
||||
// is specifically in C89 or C++98 mode (strict or not). For
|
||||
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
|
||||
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
|
||||
// old extension.
|
||||
|
||||
// Get definitions of __STDC_* predefined macros, if the compiler has
|
||||
// not preincluded this header automatically.
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// This macro indicates that the installed library is the GNU C Library.
|
||||
// For historic reasons the value now is 6 and this will stay from now
|
||||
// on. The use of this variable is deprecated. Use __GLIBC__ and
|
||||
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
|
||||
// GNU C library version and use the values in <gnu/lib-names.h> to get
|
||||
// the sonames of the shared libraries.
|
||||
|
||||
// Major and minor version number of the GNU C library package. Use
|
||||
// these macros to test for features in specific releases.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// We are almost always included from features.h.
|
||||
|
||||
// The GNU libc does not support any K&R compilers or the traditional mode
|
||||
// of ISO C compilers anymore. Check for some of the combinations not
|
||||
// anymore supported.
|
||||
|
||||
// Some user header file might have defined this before.
|
||||
|
||||
// All functions, except those with callbacks or those that
|
||||
// synchronize memory, are leaf functions.
|
||||
|
||||
// GCC can always grok prototypes. For C++ programs we add throw()
|
||||
// to help it optimize the function calls. But this works only with
|
||||
// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
|
||||
// as non-throwing using a function attribute since programs can use
|
||||
// the -fexceptions options for C code as well.
|
||||
|
||||
// Compilers that are not clang may object to
|
||||
// #if defined __clang__ && __has_extension(...)
|
||||
// even though they do not need to evaluate the right-hand side of the &&.
|
||||
|
||||
// These two macros are not used in glibc anymore. They are kept here
|
||||
// only because some other projects expect the macros to be defined.
|
||||
|
||||
// For these things, GCC behaves the ANSI way normally,
|
||||
// and the non-ANSI way under -traditional.
|
||||
|
||||
// This is not a typedef so `const __ptr_t' does the right thing.
|
||||
|
||||
// C++ needs to know that types and declarations are C, not C++.
|
||||
|
||||
// Fortify support.
|
||||
|
||||
// Support for flexible arrays.
|
||||
// Headers that should use flexible arrays only if they're "real"
|
||||
// (e.g. only if they won't affect sizeof()) should test
|
||||
// #if __glibc_c99_flexarr_available.
|
||||
|
||||
// __asm__ ("xyz") is used throughout the headers to rename functions
|
||||
// at the assembly language level. This is wrapped by the __REDIRECT
|
||||
// macro, in order to support compilers that can do this some other
|
||||
// way. When compilers don't support asm-names at all, we have to do
|
||||
// preprocessor tricks instead (which don't have exactly the right
|
||||
// semantics, but it's the best we can do).
|
||||
//
|
||||
// Example:
|
||||
// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
|
||||
|
||||
//
|
||||
// #elif __SOME_OTHER_COMPILER__
|
||||
//
|
||||
// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
|
||||
|
||||
// GCC has various useful declarations that can be made with the
|
||||
// `__attribute__' syntax. All of the ways we use this do fine if
|
||||
// they are omitted for compilers that don't understand it.
|
||||
|
||||
// At some point during the gcc 2.96 development the `malloc' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
|
||||
// Tell the compiler which arguments to an allocation function
|
||||
// indicate the size of the allocation.
|
||||
|
||||
// At some point during the gcc 2.96 development the `pure' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
|
||||
// This declaration tells the compiler that the value is constant.
|
||||
|
||||
// At some point during the gcc 3.1 development the `used' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
|
||||
// Since version 3.2, gcc allows marking deprecated functions.
|
||||
|
||||
// Since version 4.5, gcc also allows one to specify the message printed
|
||||
// when a deprecated function is used. clang claims to be gcc 4.2, but
|
||||
// may also support this feature.
|
||||
|
||||
// At some point during the gcc 2.8 development the `format_arg' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
// If several `format_arg' attributes are given for the same function, in
|
||||
// gcc-3.0 and older, all but the last one are ignored. In newer gccs,
|
||||
// all designated arguments are considered.
|
||||
|
||||
// At some point during the gcc 2.97 development the `strfmon' format
|
||||
// attribute for functions was introduced. We don't want to use it
|
||||
// unconditionally (although this would be possible) since it
|
||||
// generates warnings.
|
||||
|
||||
// The nonull function attribute allows to mark pointer parameters which
|
||||
// must not be NULL.
|
||||
|
||||
// If fortification mode, we warn about unused results of certain
|
||||
// function calls which can lead to problems.
|
||||
|
||||
// Forces a function to be always inlined.
|
||||
// The Linux kernel defines __always_inline in stddef.h (283d7573), and
|
||||
// it conflicts with this definition. Therefore undefine it first to
|
||||
// allow either header to be included first.
|
||||
|
||||
// Associate error messages with the source location of the call site rather
|
||||
// than with the source location inside the function.
|
||||
|
||||
// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
|
||||
// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
|
||||
// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
|
||||
// older than 4.3 may define these macros and still not guarantee GNU inlining
|
||||
// semantics.
|
||||
//
|
||||
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
|
||||
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
|
||||
// __GNUC_GNU_INLINE__ macro definitions.
|
||||
|
||||
// GCC 4.3 and above allow passing all anonymous arguments of an
|
||||
// __extern_always_inline function to some other vararg function.
|
||||
|
||||
// It is possible to compile containing GCC extensions even if GCC is
|
||||
// run in pedantic mode if the uses are carefully marked using the
|
||||
// `__extension__' keyword. But this is not generally available before
|
||||
// version 2.8.
|
||||
|
||||
// __restrict is known in EGCS 1.2 and above.
|
||||
|
||||
// ISO C99 also allows to declare arrays as non-overlapping. The syntax is
|
||||
// array_name[restrict]
|
||||
// GCC 3.1 supports this.
|
||||
|
||||
// Describes a char array whose address can safely be passed as the first
|
||||
// argument to strncpy and strncat, as the char array is not necessarily
|
||||
// a NUL-terminated string.
|
||||
|
||||
// Undefine (also defined in libc-symbols.h).
|
||||
// Copies attributes from the declaration or type referenced by
|
||||
// the argument.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// Properties of long double type. ldbl-96 version.
|
||||
// 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
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License 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/>.
|
||||
|
||||
// long double is distinct from double, so there is nothing to
|
||||
// define here.
|
||||
|
||||
// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
|
||||
// intended for use in preprocessor macros.
|
||||
//
|
||||
// Note: MESSAGE must be a _single_ string; concatenation of string
|
||||
// literals is not supported.
|
||||
|
||||
// Generic selection (ISO C11) is a C-only feature, available in GCC
|
||||
// since version 4.9. Previous versions do not provide generic
|
||||
// selection, even though they might set __STDC_VERSION__ to 201112L,
|
||||
// when in -std=c11 mode. Thus, we must check for !defined __GNUC__
|
||||
// when testing __STDC_VERSION__ for generic selection support.
|
||||
// On the other hand, Clang also defines __GNUC__, so a clang-specific
|
||||
// check is required to enable the use of generic selection.
|
||||
|
||||
// If we don't have __REDIRECT, prototypes will be missing if
|
||||
// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
|
||||
|
||||
// Decide whether we can define 'extern inline' functions in headers.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
|
||||
// <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
|
||||
// that will always return failure (and set errno to ENOSYS).
|
||||
// This file is automatically generated.
|
||||
// This file selects the right generated file of `__stub_FUNCTION' macros
|
||||
// based on the architecture being compiled for.
|
||||
|
||||
// This file is automatically generated.
|
||||
// It defines a symbol `__stub_FUNCTION' for each function
|
||||
// in the C library which is a stub, meaning it will fail
|
||||
// every time called, usually setting errno to ENOSYS.
|
||||
|
||||
// bits/types.h -- definitions of __*_t types underlying *_t types.
|
||||
// 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.
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// Bit size of the time_t type at glibc build time, x86-64 and x32 case.
|
||||
// Copyright (C) 2018-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/>.
|
||||
|
||||
// For others, time size is word size.
|
||||
|
||||
// Convenience types.
|
||||
type X__u_char = uint8 /* types.h:31:23 */
|
||||
type X__u_short = uint16 /* types.h:32:28 */
|
||||
type X__u_int = uint32 /* types.h:33:22 */
|
||||
type X__u_long = uint32 /* types.h:34:27 */
|
||||
|
||||
// Fixed-size types, underlying types depend on word size and compiler.
|
||||
type X__int8_t = int8 /* types.h:37:21 */
|
||||
type X__uint8_t = uint8 /* types.h:38:23 */
|
||||
type X__int16_t = int16 /* types.h:39:26 */
|
||||
type X__uint16_t = uint16 /* types.h:40:28 */
|
||||
type X__int32_t = int32 /* types.h:41:20 */
|
||||
type X__uint32_t = uint32 /* types.h:42:22 */
|
||||
type X__int64_t = int64 /* types.h:47:44 */
|
||||
type X__uint64_t = uint64 /* types.h:48:46 */
|
||||
|
||||
// Smallest types with at least a given width.
|
||||
type X__int_least8_t = X__int8_t /* types.h:52:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:54:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:56:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:58:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
|
||||
|
||||
// quad_t is also 64 bits.
|
||||
type X__quad_t = int64 /* types.h:66:37 */
|
||||
type X__u_quad_t = uint64 /* types.h:67:46 */
|
||||
|
||||
// Largest integral types.
|
||||
type X__intmax_t = int64 /* types.h:75:37 */
|
||||
type X__uintmax_t = uint64 /* types.h:76:46 */
|
||||
|
||||
// The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
|
||||
// macros for each of the OS types we define below. The definitions
|
||||
// of those macros must use the following macros for underlying types.
|
||||
// We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
|
||||
// variants of each of the following integer types on this machine.
|
||||
//
|
||||
// 16 -- "natural" 16-bit type (always short)
|
||||
// 32 -- "natural" 32-bit type (always int)
|
||||
// 64 -- "natural" 64-bit type (long or long long)
|
||||
// LONG32 -- 32-bit type, traditionally long
|
||||
// QUAD -- 64-bit type, traditionally long long
|
||||
// WORD -- natural type of __WORDSIZE bits (int or long)
|
||||
// LONGWORD -- type of __WORDSIZE bits, traditionally long
|
||||
//
|
||||
// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
|
||||
// conventional uses of `long' or `long long' type modifiers match the
|
||||
// types we define, even when a less-adorned type would be the same size.
|
||||
// This matters for (somewhat) portably writing printf/scanf formats for
|
||||
// these types, where using the appropriate l or ll format modifiers can
|
||||
// make the typedefs and the formats match up across all GNU platforms. If
|
||||
// we used `long' when it's 64 bits where `long long' is expected, then the
|
||||
// compiler would warn about the formats not matching the argument types,
|
||||
// and the programmer changing them to shut up the compiler would break the
|
||||
// program's portability.
|
||||
//
|
||||
// Here we assume what is presently the case in all the GCC configurations
|
||||
// we support: long long is always 64 bits, long is always word/address size,
|
||||
// and int is always 32 bits.
|
||||
|
||||
// We want __extension__ before typedef's that use nonstandard base types
|
||||
// such as `long long' in C89 mode.
|
||||
// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version.
|
||||
// Copyright (C) 2012-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/>.
|
||||
|
||||
// See <bits/types.h> for the meaning of these macros. This file exists so
|
||||
// that <bits/types.h> need not vary across different GNU platforms.
|
||||
|
||||
// X32 kernel interface is 64-bit.
|
||||
|
||||
// Number of descriptors that can fit in an `fd_set'.
|
||||
|
||||
// bits/time64.h -- underlying types for __time64_t. Generic version.
|
||||
// Copyright (C) 2018-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/>.
|
||||
|
||||
// Define __TIME64_T_TYPE so that it is always a 64-bit type.
|
||||
|
||||
// Define a 64-bit time type alongsize the 32-bit one.
|
||||
|
||||
type X__dev_t = X__uint64_t /* types.h:145:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint32 /* types.h:148:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = X__uint64_t /* types.h:149:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts.
|
||||
type X__off_t = int32 /* types.h:152:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = X__int64_t /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int32 /* types.h:156:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint32 /* types.h:157:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = X__uint64_t /* types.h:158:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
|
||||
type X__time_t = int32 /* types.h:160:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int32 /* types.h:162:31 */ // Signed count of microseconds.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
|
||||
|
||||
// Clock ID used in clock and timer functions.
|
||||
type X__clockid_t = int32 /* types.h:168:29 */
|
||||
|
||||
// Timer ID returned by `timer_create'.
|
||||
type X__timer_t = uintptr /* types.h:171:12 */
|
||||
|
||||
// Type to represent block size.
|
||||
type X__blksize_t = int32 /* types.h:174:29 */
|
||||
|
||||
// Types from the Large File Support interface.
|
||||
|
||||
// Type to count number of disk blocks.
|
||||
type X__blkcnt_t = int32 /* types.h:179:28 */
|
||||
type X__blkcnt64_t = X__int64_t /* types.h:180:30 */
|
||||
|
||||
// Type to count file system blocks.
|
||||
type X__fsblkcnt_t = uint32 /* types.h:183:30 */
|
||||
type X__fsblkcnt64_t = X__uint64_t /* types.h:184:32 */
|
||||
|
||||
// Type to count file system nodes.
|
||||
type X__fsfilcnt_t = uint32 /* types.h:187:30 */
|
||||
type X__fsfilcnt64_t = X__uint64_t /* types.h:188:32 */
|
||||
|
||||
// Type of miscellaneous file system fields.
|
||||
type X__fsword_t = int32 /* types.h:191:28 */
|
||||
|
||||
type X__ssize_t = int32 /* types.h:193:27 */ // Type of a byte count, or error.
|
||||
|
||||
// Signed long type used in system calls.
|
||||
type X__syscall_slong_t = int32 /* types.h:196:33 */
|
||||
// Unsigned long type used in system calls.
|
||||
type X__syscall_ulong_t = uint32 /* types.h:198:33 */
|
||||
|
||||
// These few don't really vary by system, they always correspond
|
||||
//
|
||||
// to one of the other defined types.
|
||||
type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:203:14 */
|
||||
|
||||
// Duplicates info from stdint.h but this is used in unistd.h.
|
||||
type X__intptr_t = int32 /* types.h:206:25 */
|
||||
|
||||
// Duplicate info from sys/socket.h.
|
||||
type X__socklen_t = uint32 /* types.h:209:23 */
|
||||
|
||||
// C99: An integer type that can be accessed as an atomic entity,
|
||||
//
|
||||
// even in the presence of asynchronous interrupts.
|
||||
// It is not currently necessary for this to be machine-specific.
|
||||
type X__sig_atomic_t = int32 /* types.h:214:13 */
|
||||
|
||||
// Seconds since the Epoch, visible to user code when time_t is too
|
||||
//
|
||||
// narrow only for consistency with the old way of widening too-narrow
|
||||
// types. User code should never use __time64_t.
|
||||
type X__time64_t = X__int64_t /* types.h:222:28 */
|
||||
|
||||
// This file defines `struct dirent'.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_NAMLEN' iff there is a `d_namlen'
|
||||
// member that gives the length of `d_name'.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_RECLEN' iff there is a `d_reclen'
|
||||
// member that gives the size of the entire directory entry.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_OFF' iff there is a `d_off'
|
||||
// member that gives the file offset of the next directory entry.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_TYPE' iff there is a `d_type'
|
||||
// member that gives the type of the file.
|
||||
//
|
||||
|
||||
// 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
|
||||
// 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 Dirent = struct {
|
||||
Fd_ino X__ino64_t
|
||||
Fd_off X__off64_t
|
||||
Fd_reclen uint16
|
||||
Fd_type uint8
|
||||
Fd_name [256]int8
|
||||
F__ccgo_pad1 [1]byte
|
||||
} /* dirent.h:22:1 */
|
||||
|
||||
// System-specific extensions of <dirent.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/>.
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
912
dirent/dirent_linux_amd64.go
Normal file
912
dirent/dirent_linux_amd64.go
Normal file
|
@ -0,0 +1,912 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_linux_amd64.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
import (
|
||||
"math"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ = math.Pi
|
||||
var _ reflect.Kind
|
||||
var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
AIO_PRIO_DELTA_MAX = 20 // local_lim.h:78:1:
|
||||
DELAYTIMER_MAX = 2147483647 // local_lim.h:84:1:
|
||||
HOST_NAME_MAX = 64 // local_lim.h:93:1:
|
||||
LOGIN_NAME_MAX = 256 // local_lim.h:90:1:
|
||||
MAXNAMLEN = 255 // dirent.h:237:1:
|
||||
MAX_CANON = 255 // limits.h:10:1:
|
||||
MAX_INPUT = 255 // limits.h:11:1:
|
||||
MQ_PRIO_MAX = 32768 // local_lim.h:96:1:
|
||||
NAME_MAX = 255 // limits.h:12:1:
|
||||
NGROUPS_MAX = 65536 // limits.h:7:1:
|
||||
PATH_MAX = 4096 // limits.h:13:1:
|
||||
PIPE_BUF = 4096 // limits.h:14:1:
|
||||
PTHREAD_DESTRUCTOR_ITERATIONS = 4 // local_lim.h:69:1:
|
||||
PTHREAD_KEYS_MAX = 1024 // local_lim.h:64:1:
|
||||
PTHREAD_STACK_MIN = 16384 // local_lim.h:81:1:
|
||||
RTSIG_MAX = 32 // limits.h:19:1:
|
||||
SEM_VALUE_MAX = 2147483647 // local_lim.h:99:1:
|
||||
TTY_NAME_MAX = 32 // local_lim.h:87:1:
|
||||
XATTR_LIST_MAX = 65536 // limits.h:17:1:
|
||||
XATTR_NAME_MAX = 255 // limits.h:15:1:
|
||||
XATTR_SIZE_MAX = 65536 // limits.h:16:1:
|
||||
X_ATFILE_SOURCE = 1 // features.h:342:1:
|
||||
X_BITS_POSIX1_LIM_H = 1 // posix1_lim.h:25:1:
|
||||
X_BITS_TIME64_H = 1 // time64.h:24:1:
|
||||
X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1:
|
||||
X_BITS_TYPES_H = 1 // types.h:24:1:
|
||||
X_BSD_SIZE_T_ = 0 // stddef.h:189:1:
|
||||
X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1:
|
||||
X_DEFAULT_SOURCE = 1 // features.h:227:1:
|
||||
X_DIRENT_H = 1 // dirent.h:23:1:
|
||||
X_DIRENT_HAVE_D_OFF = 0 // dirent.h:51:1:
|
||||
X_DIRENT_HAVE_D_RECLEN = 0 // dirent.h:50:1:
|
||||
X_DIRENT_HAVE_D_TYPE = 0 // dirent.h:52:1:
|
||||
X_DIRENT_MATCHES_DIRENT64 = 1 // dirent.h:56:1:
|
||||
X_FEATURES_H = 1 // features.h:19:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_GCC_SIZE_T = 0 // stddef.h:195:1:
|
||||
X_LINUX_LIMITS_H = 0 // limits.h:3:1:
|
||||
X_LP64 = 1 // <predefined>:284:1:
|
||||
X_POSIX_AIO_LISTIO_MAX = 2 // posix1_lim.h:32:1:
|
||||
X_POSIX_AIO_MAX = 1 // posix1_lim.h:35:1:
|
||||
X_POSIX_ARG_MAX = 4096 // posix1_lim.h:38:1:
|
||||
X_POSIX_CHILD_MAX = 25 // posix1_lim.h:42:1:
|
||||
X_POSIX_CLOCKRES_MIN = 20000000 // posix1_lim.h:157:1:
|
||||
X_POSIX_C_SOURCE = 200809 // features.h:281:1:
|
||||
X_POSIX_DELAYTIMER_MAX = 32 // posix1_lim.h:48:1:
|
||||
X_POSIX_HOST_NAME_MAX = 255 // posix1_lim.h:52:1:
|
||||
X_POSIX_LINK_MAX = 8 // posix1_lim.h:55:1:
|
||||
X_POSIX_LOGIN_NAME_MAX = 9 // posix1_lim.h:58:1:
|
||||
X_POSIX_MAX_CANON = 255 // posix1_lim.h:61:1:
|
||||
X_POSIX_MAX_INPUT = 255 // posix1_lim.h:65:1:
|
||||
X_POSIX_MQ_OPEN_MAX = 8 // posix1_lim.h:68:1:
|
||||
X_POSIX_MQ_PRIO_MAX = 32 // posix1_lim.h:71:1:
|
||||
X_POSIX_NAME_MAX = 14 // posix1_lim.h:74:1:
|
||||
X_POSIX_NGROUPS_MAX = 8 // posix1_lim.h:78:1:
|
||||
X_POSIX_OPEN_MAX = 20 // posix1_lim.h:85:1:
|
||||
X_POSIX_PATH_MAX = 256 // posix1_lim.h:97:1:
|
||||
X_POSIX_PIPE_BUF = 512 // posix1_lim.h:100:1:
|
||||
X_POSIX_RE_DUP_MAX = 255 // posix1_lim.h:104:1:
|
||||
X_POSIX_RTSIG_MAX = 8 // posix1_lim.h:107:1:
|
||||
X_POSIX_SEM_NSEMS_MAX = 256 // posix1_lim.h:110:1:
|
||||
X_POSIX_SEM_VALUE_MAX = 32767 // posix1_lim.h:113:1:
|
||||
X_POSIX_SIGQUEUE_MAX = 32 // posix1_lim.h:116:1:
|
||||
X_POSIX_SOURCE = 1 // features.h:279:1:
|
||||
X_POSIX_SSIZE_MAX = 32767 // posix1_lim.h:119:1:
|
||||
X_POSIX_STREAM_MAX = 8 // posix1_lim.h:122:1:
|
||||
X_POSIX_SYMLINK_MAX = 255 // posix1_lim.h:125:1:
|
||||
X_POSIX_SYMLOOP_MAX = 8 // posix1_lim.h:129:1:
|
||||
X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 // local_lim.h:67:1:
|
||||
X_POSIX_THREAD_KEYS_MAX = 128 // local_lim.h:62:1:
|
||||
X_POSIX_THREAD_THREADS_MAX = 64 // local_lim.h:72:1:
|
||||
X_POSIX_TIMER_MAX = 32 // posix1_lim.h:132:1:
|
||||
X_POSIX_TTY_NAME_MAX = 9 // posix1_lim.h:135:1:
|
||||
X_POSIX_TZNAME_MAX = 6 // posix1_lim.h:139:1:
|
||||
X_SIZET_ = 0 // stddef.h:196:1:
|
||||
X_SIZE_T = 0 // stddef.h:183:1:
|
||||
X_SIZE_T_ = 0 // stddef.h:188:1:
|
||||
X_SIZE_T_DECLARED = 0 // stddef.h:193:1:
|
||||
X_SIZE_T_DEFINED = 0 // stddef.h:191:1:
|
||||
X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1:
|
||||
X_STDC_PREDEF_H = 1 // <predefined>:162:1:
|
||||
X_SYS_CDEFS_H = 1 // cdefs.h:19:1:
|
||||
X_SYS_SIZE_T_H = 0 // stddef.h:184:1:
|
||||
X_T_SIZE = 0 // stddef.h:186:1:
|
||||
X_T_SIZE_ = 0 // stddef.h:185:1:
|
||||
Linux = 1 // <predefined>:231:1:
|
||||
Unix = 1 // <predefined>:177:1:
|
||||
)
|
||||
|
||||
// Inform libc code that these two types are effectively identical.
|
||||
|
||||
// These macros extract size information from a `struct dirent *'.
|
||||
// They may evaluate their argument multiple times, so it must not
|
||||
// have side effects. Each of these may involve a relatively costly
|
||||
// call to `strlen' on some systems, so these values should be cached.
|
||||
//
|
||||
// _D_EXACT_NAMLEN (DP) returns the length of DP->d_name, not including
|
||||
// its terminating null character.
|
||||
//
|
||||
// _D_ALLOC_NAMLEN (DP) returns a size at least (_D_EXACT_NAMLEN (DP) + 1);
|
||||
// that is, the allocation size needed to hold the DP->d_name string.
|
||||
// Use this macro when you don't need the exact length, just an upper bound.
|
||||
// This macro is less likely to require calling `strlen' than _D_EXACT_NAMLEN.
|
||||
//
|
||||
|
||||
// File types for `d_type'.
|
||||
const ( /* dirent.h:97:1: */
|
||||
DT_UNKNOWN = 0
|
||||
DT_FIFO = 1
|
||||
DT_CHR = 2
|
||||
DT_DIR = 4
|
||||
DT_BLK = 6
|
||||
DT_REG = 8
|
||||
DT_LNK = 10
|
||||
DT_SOCK = 12
|
||||
DT_WHT = 14
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
|
||||
type Size_t = uint64 /* <builtin>:9:23 */
|
||||
|
||||
type Wchar_t = int32 /* <builtin>:15:24 */
|
||||
|
||||
type X__int128_t = struct {
|
||||
Flo int64
|
||||
Fhi int64
|
||||
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
|
||||
type X__uint128_t = struct {
|
||||
Flo uint64
|
||||
Fhi uint64
|
||||
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
|
||||
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// POSIX Standard: 5.1.2 Directory Operations <dirent.h>
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// These are defined by the user (or the compiler)
|
||||
// to specify the desired environment:
|
||||
//
|
||||
// __STRICT_ANSI__ ISO Standard C.
|
||||
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
|
||||
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
|
||||
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
|
||||
// __STDC_WANT_LIB_EXT2__
|
||||
// Extensions to ISO C99 from TR 27431-2:2010.
|
||||
// __STDC_WANT_IEC_60559_BFP_EXT__
|
||||
// Extensions to ISO C11 from TS 18661-1:2014.
|
||||
// __STDC_WANT_IEC_60559_FUNCS_EXT__
|
||||
// Extensions to ISO C11 from TS 18661-4:2015.
|
||||
// __STDC_WANT_IEC_60559_TYPES_EXT__
|
||||
// Extensions to ISO C11 from TS 18661-3:2015.
|
||||
//
|
||||
// _POSIX_SOURCE IEEE Std 1003.1.
|
||||
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
|
||||
// if >=199309L, add IEEE Std 1003.1b-1993;
|
||||
// if >=199506L, add IEEE Std 1003.1c-1995;
|
||||
// if >=200112L, all of IEEE 1003.1-2004
|
||||
// if >=200809L, all of IEEE 1003.1-2008
|
||||
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
|
||||
// Single Unix conformance is wanted, to 600 for the
|
||||
// sixth revision, to 700 for the seventh revision.
|
||||
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
|
||||
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
|
||||
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
|
||||
// _FILE_OFFSET_BITS=N Select default filesystem interface.
|
||||
// _ATFILE_SOURCE Additional *at interfaces.
|
||||
// _GNU_SOURCE All of the above, plus GNU extensions.
|
||||
// _DEFAULT_SOURCE The default set of features (taking precedence over
|
||||
// __STRICT_ANSI__).
|
||||
//
|
||||
// _FORTIFY_SOURCE Add security hardening to many library functions.
|
||||
// Set to 1 or 2; 2 performs stricter checks than 1.
|
||||
//
|
||||
// _REENTRANT, _THREAD_SAFE
|
||||
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
|
||||
//
|
||||
// The `-ansi' switch to the GNU C compiler, and standards conformance
|
||||
// options such as `-std=c99', define __STRICT_ANSI__. If none of
|
||||
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
|
||||
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
|
||||
// 200809L, as well as enabling miscellaneous functions from BSD and
|
||||
// SVID. If more than one of these are defined, they accumulate. For
|
||||
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
|
||||
// give you ISO C, 1003.1, and 1003.2, but nothing else.
|
||||
//
|
||||
// These are defined by this file and are used by the
|
||||
// header files to decide what to declare or define:
|
||||
//
|
||||
// __GLIBC_USE (F) Define things from feature set F. This is defined
|
||||
// to 1 or 0; the subsequent macros are either defined
|
||||
// or undefined, and those tests should be moved to
|
||||
// __GLIBC_USE.
|
||||
// __USE_ISOC11 Define ISO C11 things.
|
||||
// __USE_ISOC99 Define ISO C99 things.
|
||||
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
|
||||
// __USE_ISOCXX11 Define ISO C++11 things.
|
||||
// __USE_POSIX Define IEEE Std 1003.1 things.
|
||||
// __USE_POSIX2 Define IEEE Std 1003.2 things.
|
||||
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
|
||||
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
|
||||
// __USE_XOPEN Define XPG things.
|
||||
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
|
||||
// __USE_UNIX98 Define Single Unix V2 things.
|
||||
// __USE_XOPEN2K Define XPG6 things.
|
||||
// __USE_XOPEN2KXSI Define XPG6 XSI things.
|
||||
// __USE_XOPEN2K8 Define XPG7 things.
|
||||
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
|
||||
// __USE_LARGEFILE Define correct standard I/O things.
|
||||
// __USE_LARGEFILE64 Define LFS things with separate names.
|
||||
// __USE_FILE_OFFSET64 Define 64bit interface as default.
|
||||
// __USE_MISC Define things from 4.3BSD or System V Unix.
|
||||
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
|
||||
// __USE_GNU Define GNU extensions.
|
||||
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
|
||||
//
|
||||
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
|
||||
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
|
||||
// only for compatibility. All new code should use the other symbols
|
||||
// to test for features.
|
||||
//
|
||||
// All macros listed above as possibly being defined by this file are
|
||||
// explicitly undefined if they are not explicitly defined.
|
||||
// Feature-test macros that are not defined by the user or compiler
|
||||
// but are implied by the other feature-test macros defined (or by the
|
||||
// lack of any definitions) are defined by the file.
|
||||
//
|
||||
// ISO C feature test macros depend on the definition of the macro
|
||||
// when an affected header is included, not when the first system
|
||||
// header is included, and so they are handled in
|
||||
// <bits/libc-header-start.h>, which does not have a multiple include
|
||||
// guard. Feature test macros that can be handled from the first
|
||||
// system header included are handled here.
|
||||
|
||||
// Undefine everything, so we get a clean slate.
|
||||
|
||||
// Suppress kernel-name space pollution unless user expressedly asks
|
||||
// for it.
|
||||
|
||||
// Convenience macro to test the version of gcc.
|
||||
// Use like this:
|
||||
// #if __GNUC_PREREQ (2,8)
|
||||
// ... code requiring gcc 2.8 or later ...
|
||||
// #endif
|
||||
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
|
||||
// added in 2.0.
|
||||
|
||||
// Similarly for clang. Features added to GCC after version 4.2 may
|
||||
// or may not also be available in clang, and clang's definitions of
|
||||
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
|
||||
// features can be queried via __has_extension/__has_feature.
|
||||
|
||||
// Whether to use feature set F.
|
||||
|
||||
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
|
||||
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
|
||||
// issue a warning; the expectation is that the source is being
|
||||
// transitioned to use the new macro.
|
||||
|
||||
// If _GNU_SOURCE was defined by the user, turn on all the other features.
|
||||
|
||||
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
|
||||
// define _DEFAULT_SOURCE.
|
||||
|
||||
// This is to enable the ISO C2X extension.
|
||||
|
||||
// This is to enable the ISO C11 extension.
|
||||
|
||||
// This is to enable the ISO C99 extension.
|
||||
|
||||
// This is to enable the ISO C90 Amendment 1:1995 extension.
|
||||
|
||||
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
|
||||
// is defined, use POSIX.1-2008 (or another version depending on
|
||||
// _XOPEN_SOURCE).
|
||||
|
||||
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
|
||||
// defined in all multithreaded code. GNU libc has not required this
|
||||
// for many years. We now treat them as compatibility synonyms for
|
||||
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
|
||||
// comprehensive support for multithreaded code. Using them never
|
||||
// lowers the selected level of POSIX conformance, only raises it.
|
||||
|
||||
// The function 'gets' existed in C89, but is impossible to use
|
||||
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
|
||||
// compatibility with various implementations of <cstdio>, this test
|
||||
// must consider only the value of __cplusplus when compiling C++.
|
||||
|
||||
// GNU formerly extended the scanf functions with modified format
|
||||
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
|
||||
// input using malloc. This extension conflicts with ISO C99, which
|
||||
// defines %a as a standalone format specifier that reads a floating-
|
||||
// point number; moreover, POSIX.1-2008 provides the same feature
|
||||
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
|
||||
//
|
||||
// We now follow C99 unless GNU extensions are active and the compiler
|
||||
// is specifically in C89 or C++98 mode (strict or not). For
|
||||
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
|
||||
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
|
||||
// old extension.
|
||||
|
||||
// Get definitions of __STDC_* predefined macros, if the compiler has
|
||||
// not preincluded this header automatically.
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// This macro indicates that the installed library is the GNU C Library.
|
||||
// For historic reasons the value now is 6 and this will stay from now
|
||||
// on. The use of this variable is deprecated. Use __GLIBC__ and
|
||||
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
|
||||
// GNU C library version and use the values in <gnu/lib-names.h> to get
|
||||
// the sonames of the shared libraries.
|
||||
|
||||
// Major and minor version number of the GNU C library package. Use
|
||||
// these macros to test for features in specific releases.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// We are almost always included from features.h.
|
||||
|
||||
// The GNU libc does not support any K&R compilers or the traditional mode
|
||||
// of ISO C compilers anymore. Check for some of the combinations not
|
||||
// anymore supported.
|
||||
|
||||
// Some user header file might have defined this before.
|
||||
|
||||
// All functions, except those with callbacks or those that
|
||||
// synchronize memory, are leaf functions.
|
||||
|
||||
// GCC can always grok prototypes. For C++ programs we add throw()
|
||||
// to help it optimize the function calls. But this works only with
|
||||
// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
|
||||
// as non-throwing using a function attribute since programs can use
|
||||
// the -fexceptions options for C code as well.
|
||||
|
||||
// Compilers that are not clang may object to
|
||||
// #if defined __clang__ && __has_extension(...)
|
||||
// even though they do not need to evaluate the right-hand side of the &&.
|
||||
|
||||
// These two macros are not used in glibc anymore. They are kept here
|
||||
// only because some other projects expect the macros to be defined.
|
||||
|
||||
// For these things, GCC behaves the ANSI way normally,
|
||||
// and the non-ANSI way under -traditional.
|
||||
|
||||
// This is not a typedef so `const __ptr_t' does the right thing.
|
||||
|
||||
// C++ needs to know that types and declarations are C, not C++.
|
||||
|
||||
// Fortify support.
|
||||
|
||||
// Support for flexible arrays.
|
||||
// Headers that should use flexible arrays only if they're "real"
|
||||
// (e.g. only if they won't affect sizeof()) should test
|
||||
// #if __glibc_c99_flexarr_available.
|
||||
|
||||
// __asm__ ("xyz") is used throughout the headers to rename functions
|
||||
// at the assembly language level. This is wrapped by the __REDIRECT
|
||||
// macro, in order to support compilers that can do this some other
|
||||
// way. When compilers don't support asm-names at all, we have to do
|
||||
// preprocessor tricks instead (which don't have exactly the right
|
||||
// semantics, but it's the best we can do).
|
||||
//
|
||||
// Example:
|
||||
// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
|
||||
|
||||
//
|
||||
// #elif __SOME_OTHER_COMPILER__
|
||||
//
|
||||
// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
|
||||
|
||||
// GCC has various useful declarations that can be made with the
|
||||
// `__attribute__' syntax. All of the ways we use this do fine if
|
||||
// they are omitted for compilers that don't understand it.
|
||||
|
||||
// At some point during the gcc 2.96 development the `malloc' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
|
||||
// Tell the compiler which arguments to an allocation function
|
||||
// indicate the size of the allocation.
|
||||
|
||||
// At some point during the gcc 2.96 development the `pure' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
|
||||
// This declaration tells the compiler that the value is constant.
|
||||
|
||||
// At some point during the gcc 3.1 development the `used' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
|
||||
// Since version 3.2, gcc allows marking deprecated functions.
|
||||
|
||||
// Since version 4.5, gcc also allows one to specify the message printed
|
||||
// when a deprecated function is used. clang claims to be gcc 4.2, but
|
||||
// may also support this feature.
|
||||
|
||||
// At some point during the gcc 2.8 development the `format_arg' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
// If several `format_arg' attributes are given for the same function, in
|
||||
// gcc-3.0 and older, all but the last one are ignored. In newer gccs,
|
||||
// all designated arguments are considered.
|
||||
|
||||
// At some point during the gcc 2.97 development the `strfmon' format
|
||||
// attribute for functions was introduced. We don't want to use it
|
||||
// unconditionally (although this would be possible) since it
|
||||
// generates warnings.
|
||||
|
||||
// The nonull function attribute allows to mark pointer parameters which
|
||||
// must not be NULL.
|
||||
|
||||
// If fortification mode, we warn about unused results of certain
|
||||
// function calls which can lead to problems.
|
||||
|
||||
// Forces a function to be always inlined.
|
||||
// The Linux kernel defines __always_inline in stddef.h (283d7573), and
|
||||
// it conflicts with this definition. Therefore undefine it first to
|
||||
// allow either header to be included first.
|
||||
|
||||
// Associate error messages with the source location of the call site rather
|
||||
// than with the source location inside the function.
|
||||
|
||||
// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
|
||||
// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
|
||||
// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
|
||||
// older than 4.3 may define these macros and still not guarantee GNU inlining
|
||||
// semantics.
|
||||
//
|
||||
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
|
||||
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
|
||||
// __GNUC_GNU_INLINE__ macro definitions.
|
||||
|
||||
// GCC 4.3 and above allow passing all anonymous arguments of an
|
||||
// __extern_always_inline function to some other vararg function.
|
||||
|
||||
// It is possible to compile containing GCC extensions even if GCC is
|
||||
// run in pedantic mode if the uses are carefully marked using the
|
||||
// `__extension__' keyword. But this is not generally available before
|
||||
// version 2.8.
|
||||
|
||||
// __restrict is known in EGCS 1.2 and above.
|
||||
|
||||
// ISO C99 also allows to declare arrays as non-overlapping. The syntax is
|
||||
// array_name[restrict]
|
||||
// GCC 3.1 supports this.
|
||||
|
||||
// Describes a char array whose address can safely be passed as the first
|
||||
// argument to strncpy and strncat, as the char array is not necessarily
|
||||
// a NUL-terminated string.
|
||||
|
||||
// Undefine (also defined in libc-symbols.h).
|
||||
// Copies attributes from the declaration or type referenced by
|
||||
// the argument.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// Both x86-64 and x32 use the 64-bit system call interface.
|
||||
// Properties of long double type. ldbl-96 version.
|
||||
// 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
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License 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/>.
|
||||
|
||||
// long double is distinct from double, so there is nothing to
|
||||
// define here.
|
||||
|
||||
// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
|
||||
// intended for use in preprocessor macros.
|
||||
//
|
||||
// Note: MESSAGE must be a _single_ string; concatenation of string
|
||||
// literals is not supported.
|
||||
|
||||
// Generic selection (ISO C11) is a C-only feature, available in GCC
|
||||
// since version 4.9. Previous versions do not provide generic
|
||||
// selection, even though they might set __STDC_VERSION__ to 201112L,
|
||||
// when in -std=c11 mode. Thus, we must check for !defined __GNUC__
|
||||
// when testing __STDC_VERSION__ for generic selection support.
|
||||
// On the other hand, Clang also defines __GNUC__, so a clang-specific
|
||||
// check is required to enable the use of generic selection.
|
||||
|
||||
// If we don't have __REDIRECT, prototypes will be missing if
|
||||
// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
|
||||
|
||||
// Decide whether we can define 'extern inline' functions in headers.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
|
||||
// <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
|
||||
// that will always return failure (and set errno to ENOSYS).
|
||||
// This file is automatically generated.
|
||||
// This file selects the right generated file of `__stub_FUNCTION' macros
|
||||
// based on the architecture being compiled for.
|
||||
|
||||
// This file is automatically generated.
|
||||
// It defines a symbol `__stub_FUNCTION' for each function
|
||||
// in the C library which is a stub, meaning it will fail
|
||||
// every time called, usually setting errno to ENOSYS.
|
||||
|
||||
// bits/types.h -- definitions of __*_t types underlying *_t types.
|
||||
// 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.
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// Both x86-64 and x32 use the 64-bit system call interface.
|
||||
// Bit size of the time_t type at glibc build time, x86-64 and x32 case.
|
||||
// Copyright (C) 2018-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/>.
|
||||
|
||||
// For others, time size is word size.
|
||||
|
||||
// Convenience types.
|
||||
type X__u_char = uint8 /* types.h:31:23 */
|
||||
type X__u_short = uint16 /* types.h:32:28 */
|
||||
type X__u_int = uint32 /* types.h:33:22 */
|
||||
type X__u_long = uint64 /* types.h:34:27 */
|
||||
|
||||
// Fixed-size types, underlying types depend on word size and compiler.
|
||||
type X__int8_t = int8 /* types.h:37:21 */
|
||||
type X__uint8_t = uint8 /* types.h:38:23 */
|
||||
type X__int16_t = int16 /* types.h:39:26 */
|
||||
type X__uint16_t = uint16 /* types.h:40:28 */
|
||||
type X__int32_t = int32 /* types.h:41:20 */
|
||||
type X__uint32_t = uint32 /* types.h:42:22 */
|
||||
type X__int64_t = int64 /* types.h:44:25 */
|
||||
type X__uint64_t = uint64 /* types.h:45:27 */
|
||||
|
||||
// Smallest types with at least a given width.
|
||||
type X__int_least8_t = X__int8_t /* types.h:52:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:54:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:56:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:58:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
|
||||
|
||||
// quad_t is also 64 bits.
|
||||
type X__quad_t = int64 /* types.h:63:18 */
|
||||
type X__u_quad_t = uint64 /* types.h:64:27 */
|
||||
|
||||
// Largest integral types.
|
||||
type X__intmax_t = int64 /* types.h:72:18 */
|
||||
type X__uintmax_t = uint64 /* types.h:73:27 */
|
||||
|
||||
// The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
|
||||
// macros for each of the OS types we define below. The definitions
|
||||
// of those macros must use the following macros for underlying types.
|
||||
// We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
|
||||
// variants of each of the following integer types on this machine.
|
||||
//
|
||||
// 16 -- "natural" 16-bit type (always short)
|
||||
// 32 -- "natural" 32-bit type (always int)
|
||||
// 64 -- "natural" 64-bit type (long or long long)
|
||||
// LONG32 -- 32-bit type, traditionally long
|
||||
// QUAD -- 64-bit type, traditionally long long
|
||||
// WORD -- natural type of __WORDSIZE bits (int or long)
|
||||
// LONGWORD -- type of __WORDSIZE bits, traditionally long
|
||||
//
|
||||
// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
|
||||
// conventional uses of `long' or `long long' type modifiers match the
|
||||
// types we define, even when a less-adorned type would be the same size.
|
||||
// This matters for (somewhat) portably writing printf/scanf formats for
|
||||
// these types, where using the appropriate l or ll format modifiers can
|
||||
// make the typedefs and the formats match up across all GNU platforms. If
|
||||
// we used `long' when it's 64 bits where `long long' is expected, then the
|
||||
// compiler would warn about the formats not matching the argument types,
|
||||
// and the programmer changing them to shut up the compiler would break the
|
||||
// program's portability.
|
||||
//
|
||||
// Here we assume what is presently the case in all the GCC configurations
|
||||
// we support: long long is always 64 bits, long is always word/address size,
|
||||
// and int is always 32 bits.
|
||||
|
||||
// No need to mark the typedef with __extension__.
|
||||
// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version.
|
||||
// Copyright (C) 2012-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/>.
|
||||
|
||||
// See <bits/types.h> for the meaning of these macros. This file exists so
|
||||
// that <bits/types.h> need not vary across different GNU platforms.
|
||||
|
||||
// X32 kernel interface is 64-bit.
|
||||
|
||||
// Tell the libc code that off_t and off64_t are actually the same type
|
||||
// for all ABI purposes, even if possibly expressed as different base types
|
||||
// for C type-checking purposes.
|
||||
|
||||
// Same for ino_t and ino64_t.
|
||||
|
||||
// And for __rlim_t and __rlim64_t.
|
||||
|
||||
// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
|
||||
|
||||
// Number of descriptors that can fit in an `fd_set'.
|
||||
|
||||
// bits/time64.h -- underlying types for __time64_t. Generic version.
|
||||
// Copyright (C) 2018-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/>.
|
||||
|
||||
// Define __TIME64_T_TYPE so that it is always a 64-bit type.
|
||||
|
||||
// If we already have 64-bit time type then use it.
|
||||
|
||||
type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts.
|
||||
type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
|
||||
type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
|
||||
|
||||
// Clock ID used in clock and timer functions.
|
||||
type X__clockid_t = int32 /* types.h:168:29 */
|
||||
|
||||
// Timer ID returned by `timer_create'.
|
||||
type X__timer_t = uintptr /* types.h:171:12 */
|
||||
|
||||
// Type to represent block size.
|
||||
type X__blksize_t = int64 /* types.h:174:29 */
|
||||
|
||||
// Types from the Large File Support interface.
|
||||
|
||||
// Type to count number of disk blocks.
|
||||
type X__blkcnt_t = int64 /* types.h:179:28 */
|
||||
type X__blkcnt64_t = int64 /* types.h:180:30 */
|
||||
|
||||
// Type to count file system blocks.
|
||||
type X__fsblkcnt_t = uint64 /* types.h:183:30 */
|
||||
type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
|
||||
|
||||
// Type to count file system nodes.
|
||||
type X__fsfilcnt_t = uint64 /* types.h:187:30 */
|
||||
type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
|
||||
|
||||
// Type of miscellaneous file system fields.
|
||||
type X__fsword_t = int64 /* types.h:191:28 */
|
||||
|
||||
type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
|
||||
|
||||
// Signed long type used in system calls.
|
||||
type X__syscall_slong_t = int64 /* types.h:196:33 */
|
||||
// Unsigned long type used in system calls.
|
||||
type X__syscall_ulong_t = uint64 /* types.h:198:33 */
|
||||
|
||||
// These few don't really vary by system, they always correspond
|
||||
//
|
||||
// to one of the other defined types.
|
||||
type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:203:14 */
|
||||
|
||||
// Duplicates info from stdint.h but this is used in unistd.h.
|
||||
type X__intptr_t = int64 /* types.h:206:25 */
|
||||
|
||||
// Duplicate info from sys/socket.h.
|
||||
type X__socklen_t = uint32 /* types.h:209:23 */
|
||||
|
||||
// C99: An integer type that can be accessed as an atomic entity,
|
||||
//
|
||||
// even in the presence of asynchronous interrupts.
|
||||
// It is not currently necessary for this to be machine-specific.
|
||||
type X__sig_atomic_t = int32 /* types.h:214:13 */
|
||||
|
||||
// Seconds since the Epoch, visible to user code when time_t is too
|
||||
// narrow only for consistency with the old way of widening too-narrow
|
||||
// types. User code should never use __time64_t.
|
||||
|
||||
// This file defines `struct dirent'.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_NAMLEN' iff there is a `d_namlen'
|
||||
// member that gives the length of `d_name'.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_RECLEN' iff there is a `d_reclen'
|
||||
// member that gives the size of the entire directory entry.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_OFF' iff there is a `d_off'
|
||||
// member that gives the file offset of the next directory entry.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_TYPE' iff there is a `d_type'
|
||||
// member that gives the type of the file.
|
||||
//
|
||||
|
||||
// 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
|
||||
// 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 Dirent = struct {
|
||||
Fd_ino X__ino64_t
|
||||
Fd_off X__off64_t
|
||||
Fd_reclen uint16
|
||||
Fd_type uint8
|
||||
Fd_name [256]int8
|
||||
F__ccgo_pad1 [5]byte
|
||||
} /* dirent.h:22:1 */
|
||||
|
||||
// System-specific extensions of <dirent.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/>.
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
952
dirent/dirent_linux_arm.go
Normal file
952
dirent/dirent_linux_arm.go
Normal file
|
@ -0,0 +1,952 @@
|
|||
// Code generated by 'ccgo dirent/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 dirent/dirent_linux_arm.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
import (
|
||||
"math"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ = math.Pi
|
||||
var _ reflect.Kind
|
||||
var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
AIO_PRIO_DELTA_MAX = 20
|
||||
DELAYTIMER_MAX = 2147483647
|
||||
HOST_NAME_MAX = 64
|
||||
LOGIN_NAME_MAX = 256
|
||||
MAXNAMLEN = 255
|
||||
MAX_CANON = 255
|
||||
MAX_INPUT = 255
|
||||
MQ_PRIO_MAX = 32768
|
||||
NAME_MAX = 255
|
||||
NGROUPS_MAX = 65536
|
||||
PATH_MAX = 4096
|
||||
PIPE_BUF = 4096
|
||||
PTHREAD_DESTRUCTOR_ITERATIONS = 4
|
||||
PTHREAD_KEYS_MAX = 1024
|
||||
PTHREAD_STACK_MIN = 16384
|
||||
RTSIG_MAX = 32
|
||||
SEM_VALUE_MAX = 2147483647
|
||||
TTY_NAME_MAX = 32
|
||||
XATTR_LIST_MAX = 65536
|
||||
XATTR_NAME_MAX = 255
|
||||
XATTR_SIZE_MAX = 65536
|
||||
X_ATFILE_SOURCE = 1
|
||||
X_BITS_POSIX1_LIM_H = 1
|
||||
X_BITS_TIME64_H = 1
|
||||
X_BITS_TYPESIZES_H = 1
|
||||
X_BITS_TYPES_H = 1
|
||||
X_BSD_SIZE_T_ = 0
|
||||
X_BSD_SIZE_T_DEFINED_ = 0
|
||||
X_DEFAULT_SOURCE = 1
|
||||
X_DIRENT_H = 1
|
||||
X_DIRENT_HAVE_D_OFF = 0
|
||||
X_DIRENT_HAVE_D_RECLEN = 0
|
||||
X_DIRENT_HAVE_D_TYPE = 0
|
||||
X_DIRENT_MATCHES_DIRENT64 = 0
|
||||
X_FEATURES_H = 1
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_GCC_SIZE_T = 0
|
||||
X_LINUX_LIMITS_H = 0
|
||||
X_POSIX_AIO_LISTIO_MAX = 2
|
||||
X_POSIX_AIO_MAX = 1
|
||||
X_POSIX_ARG_MAX = 4096
|
||||
X_POSIX_CHILD_MAX = 25
|
||||
X_POSIX_CLOCKRES_MIN = 20000000
|
||||
X_POSIX_C_SOURCE = 200809
|
||||
X_POSIX_DELAYTIMER_MAX = 32
|
||||
X_POSIX_HOST_NAME_MAX = 255
|
||||
X_POSIX_LINK_MAX = 8
|
||||
X_POSIX_LOGIN_NAME_MAX = 9
|
||||
X_POSIX_MAX_CANON = 255
|
||||
X_POSIX_MAX_INPUT = 255
|
||||
X_POSIX_MQ_OPEN_MAX = 8
|
||||
X_POSIX_MQ_PRIO_MAX = 32
|
||||
X_POSIX_NAME_MAX = 14
|
||||
X_POSIX_NGROUPS_MAX = 8
|
||||
X_POSIX_OPEN_MAX = 20
|
||||
X_POSIX_PATH_MAX = 256
|
||||
X_POSIX_PIPE_BUF = 512
|
||||
X_POSIX_RE_DUP_MAX = 255
|
||||
X_POSIX_RTSIG_MAX = 8
|
||||
X_POSIX_SEM_NSEMS_MAX = 256
|
||||
X_POSIX_SEM_VALUE_MAX = 32767
|
||||
X_POSIX_SIGQUEUE_MAX = 32
|
||||
X_POSIX_SOURCE = 1
|
||||
X_POSIX_SSIZE_MAX = 32767
|
||||
X_POSIX_STREAM_MAX = 8
|
||||
X_POSIX_SYMLINK_MAX = 255
|
||||
X_POSIX_SYMLOOP_MAX = 8
|
||||
X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
|
||||
X_POSIX_THREAD_KEYS_MAX = 128
|
||||
X_POSIX_THREAD_THREADS_MAX = 64
|
||||
X_POSIX_TIMER_MAX = 32
|
||||
X_POSIX_TTY_NAME_MAX = 9
|
||||
X_POSIX_TZNAME_MAX = 6
|
||||
X_SIZET_ = 0
|
||||
X_SIZE_T = 0
|
||||
X_SIZE_T_ = 0
|
||||
X_SIZE_T_DECLARED = 0
|
||||
X_SIZE_T_DEFINED = 0
|
||||
X_SIZE_T_DEFINED_ = 0
|
||||
X_STDC_PREDEF_H = 1
|
||||
X_SYS_CDEFS_H = 1
|
||||
X_SYS_SIZE_T_H = 0
|
||||
X_T_SIZE = 0
|
||||
X_T_SIZE_ = 0
|
||||
Linux = 1
|
||||
Unix = 1
|
||||
)
|
||||
|
||||
// These macros extract size information from a `struct dirent *'.
|
||||
// They may evaluate their argument multiple times, so it must not
|
||||
// have side effects. Each of these may involve a relatively costly
|
||||
// call to `strlen' on some systems, so these values should be cached.
|
||||
//
|
||||
// _D_EXACT_NAMLEN (DP) returns the length of DP->d_name, not including
|
||||
// its terminating null character.
|
||||
//
|
||||
// _D_ALLOC_NAMLEN (DP) returns a size at least (_D_EXACT_NAMLEN (DP) + 1);
|
||||
// that is, the allocation size needed to hold the DP->d_name string.
|
||||
// Use this macro when you don't need the exact length, just an upper bound.
|
||||
// This macro is less likely to require calling `strlen' than _D_EXACT_NAMLEN.
|
||||
//
|
||||
|
||||
// File types for `d_type'.
|
||||
const ( /* dirent.h:97:1: */
|
||||
DT_UNKNOWN = 0
|
||||
DT_FIFO = 1
|
||||
DT_CHR = 2
|
||||
DT_DIR = 4
|
||||
DT_BLK = 6
|
||||
DT_REG = 8
|
||||
DT_LNK = 10
|
||||
DT_SOCK = 12
|
||||
DT_WHT = 14
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int32 /* <builtin>:3:26 */
|
||||
|
||||
type Size_t = uint32 /* <builtin>:9:23 */
|
||||
|
||||
type Wchar_t = uint32 /* <builtin>:15:24 */
|
||||
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// POSIX Standard: 5.1.2 Directory Operations <dirent.h>
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// These are defined by the user (or the compiler)
|
||||
// to specify the desired environment:
|
||||
//
|
||||
// __STRICT_ANSI__ ISO Standard C.
|
||||
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
|
||||
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
|
||||
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
|
||||
// __STDC_WANT_LIB_EXT2__
|
||||
// Extensions to ISO C99 from TR 27431-2:2010.
|
||||
// __STDC_WANT_IEC_60559_BFP_EXT__
|
||||
// Extensions to ISO C11 from TS 18661-1:2014.
|
||||
// __STDC_WANT_IEC_60559_FUNCS_EXT__
|
||||
// Extensions to ISO C11 from TS 18661-4:2015.
|
||||
// __STDC_WANT_IEC_60559_TYPES_EXT__
|
||||
// Extensions to ISO C11 from TS 18661-3:2015.
|
||||
//
|
||||
// _POSIX_SOURCE IEEE Std 1003.1.
|
||||
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
|
||||
// if >=199309L, add IEEE Std 1003.1b-1993;
|
||||
// if >=199506L, add IEEE Std 1003.1c-1995;
|
||||
// if >=200112L, all of IEEE 1003.1-2004
|
||||
// if >=200809L, all of IEEE 1003.1-2008
|
||||
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
|
||||
// Single Unix conformance is wanted, to 600 for the
|
||||
// sixth revision, to 700 for the seventh revision.
|
||||
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
|
||||
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
|
||||
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
|
||||
// _FILE_OFFSET_BITS=N Select default filesystem interface.
|
||||
// _ATFILE_SOURCE Additional *at interfaces.
|
||||
// _GNU_SOURCE All of the above, plus GNU extensions.
|
||||
// _DEFAULT_SOURCE The default set of features (taking precedence over
|
||||
// __STRICT_ANSI__).
|
||||
//
|
||||
// _FORTIFY_SOURCE Add security hardening to many library functions.
|
||||
// Set to 1 or 2; 2 performs stricter checks than 1.
|
||||
//
|
||||
// _REENTRANT, _THREAD_SAFE
|
||||
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
|
||||
//
|
||||
// The `-ansi' switch to the GNU C compiler, and standards conformance
|
||||
// options such as `-std=c99', define __STRICT_ANSI__. If none of
|
||||
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
|
||||
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
|
||||
// 200809L, as well as enabling miscellaneous functions from BSD and
|
||||
// SVID. If more than one of these are defined, they accumulate. For
|
||||
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
|
||||
// give you ISO C, 1003.1, and 1003.2, but nothing else.
|
||||
//
|
||||
// These are defined by this file and are used by the
|
||||
// header files to decide what to declare or define:
|
||||
//
|
||||
// __GLIBC_USE (F) Define things from feature set F. This is defined
|
||||
// to 1 or 0; the subsequent macros are either defined
|
||||
// or undefined, and those tests should be moved to
|
||||
// __GLIBC_USE.
|
||||
// __USE_ISOC11 Define ISO C11 things.
|
||||
// __USE_ISOC99 Define ISO C99 things.
|
||||
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
|
||||
// __USE_ISOCXX11 Define ISO C++11 things.
|
||||
// __USE_POSIX Define IEEE Std 1003.1 things.
|
||||
// __USE_POSIX2 Define IEEE Std 1003.2 things.
|
||||
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
|
||||
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
|
||||
// __USE_XOPEN Define XPG things.
|
||||
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
|
||||
// __USE_UNIX98 Define Single Unix V2 things.
|
||||
// __USE_XOPEN2K Define XPG6 things.
|
||||
// __USE_XOPEN2KXSI Define XPG6 XSI things.
|
||||
// __USE_XOPEN2K8 Define XPG7 things.
|
||||
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
|
||||
// __USE_LARGEFILE Define correct standard I/O things.
|
||||
// __USE_LARGEFILE64 Define LFS things with separate names.
|
||||
// __USE_FILE_OFFSET64 Define 64bit interface as default.
|
||||
// __USE_MISC Define things from 4.3BSD or System V Unix.
|
||||
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
|
||||
// __USE_GNU Define GNU extensions.
|
||||
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
|
||||
//
|
||||
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
|
||||
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
|
||||
// only for compatibility. All new code should use the other symbols
|
||||
// to test for features.
|
||||
//
|
||||
// All macros listed above as possibly being defined by this file are
|
||||
// explicitly undefined if they are not explicitly defined.
|
||||
// Feature-test macros that are not defined by the user or compiler
|
||||
// but are implied by the other feature-test macros defined (or by the
|
||||
// lack of any definitions) are defined by the file.
|
||||
//
|
||||
// ISO C feature test macros depend on the definition of the macro
|
||||
// when an affected header is included, not when the first system
|
||||
// header is included, and so they are handled in
|
||||
// <bits/libc-header-start.h>, which does not have a multiple include
|
||||
// guard. Feature test macros that can be handled from the first
|
||||
// system header included are handled here.
|
||||
|
||||
// Undefine everything, so we get a clean slate.
|
||||
|
||||
// Suppress kernel-name space pollution unless user expressedly asks
|
||||
// for it.
|
||||
|
||||
// Convenience macro to test the version of gcc.
|
||||
// Use like this:
|
||||
// #if __GNUC_PREREQ (2,8)
|
||||
// ... code requiring gcc 2.8 or later ...
|
||||
// #endif
|
||||
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
|
||||
// added in 2.0.
|
||||
|
||||
// Similarly for clang. Features added to GCC after version 4.2 may
|
||||
// or may not also be available in clang, and clang's definitions of
|
||||
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
|
||||
// features can be queried via __has_extension/__has_feature.
|
||||
|
||||
// Whether to use feature set F.
|
||||
|
||||
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
|
||||
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
|
||||
// issue a warning; the expectation is that the source is being
|
||||
// transitioned to use the new macro.
|
||||
|
||||
// If _GNU_SOURCE was defined by the user, turn on all the other features.
|
||||
|
||||
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
|
||||
// define _DEFAULT_SOURCE.
|
||||
|
||||
// This is to enable the ISO C2X extension.
|
||||
|
||||
// This is to enable the ISO C11 extension.
|
||||
|
||||
// This is to enable the ISO C99 extension.
|
||||
|
||||
// This is to enable the ISO C90 Amendment 1:1995 extension.
|
||||
|
||||
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
|
||||
// is defined, use POSIX.1-2008 (or another version depending on
|
||||
// _XOPEN_SOURCE).
|
||||
|
||||
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
|
||||
// defined in all multithreaded code. GNU libc has not required this
|
||||
// for many years. We now treat them as compatibility synonyms for
|
||||
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
|
||||
// comprehensive support for multithreaded code. Using them never
|
||||
// lowers the selected level of POSIX conformance, only raises it.
|
||||
|
||||
// The function 'gets' existed in C89, but is impossible to use
|
||||
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
|
||||
// compatibility with various implementations of <cstdio>, this test
|
||||
// must consider only the value of __cplusplus when compiling C++.
|
||||
|
||||
// GNU formerly extended the scanf functions with modified format
|
||||
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
|
||||
// input using malloc. This extension conflicts with ISO C99, which
|
||||
// defines %a as a standalone format specifier that reads a floating-
|
||||
// point number; moreover, POSIX.1-2008 provides the same feature
|
||||
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
|
||||
//
|
||||
// We now follow C99 unless GNU extensions are active and the compiler
|
||||
// is specifically in C89 or C++98 mode (strict or not). For
|
||||
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
|
||||
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
|
||||
// old extension.
|
||||
|
||||
// Get definitions of __STDC_* predefined macros, if the compiler has
|
||||
// not preincluded this header automatically.
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// This macro indicates that the installed library is the GNU C Library.
|
||||
// For historic reasons the value now is 6 and this will stay from now
|
||||
// on. The use of this variable is deprecated. Use __GLIBC__ and
|
||||
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
|
||||
// GNU C library version and use the values in <gnu/lib-names.h> to get
|
||||
// the sonames of the shared libraries.
|
||||
|
||||
// Major and minor version number of the GNU C library package. Use
|
||||
// these macros to test for features in specific releases.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// We are almost always included from features.h.
|
||||
|
||||
// The GNU libc does not support any K&R compilers or the traditional mode
|
||||
// of ISO C compilers anymore. Check for some of the combinations not
|
||||
// anymore supported.
|
||||
|
||||
// Some user header file might have defined this before.
|
||||
|
||||
// All functions, except those with callbacks or those that
|
||||
// synchronize memory, are leaf functions.
|
||||
|
||||
// GCC can always grok prototypes. For C++ programs we add throw()
|
||||
// to help it optimize the function calls. But this works only with
|
||||
// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
|
||||
// as non-throwing using a function attribute since programs can use
|
||||
// the -fexceptions options for C code as well.
|
||||
|
||||
// Compilers that are not clang may object to
|
||||
// #if defined __clang__ && __has_extension(...)
|
||||
// even though they do not need to evaluate the right-hand side of the &&.
|
||||
|
||||
// These two macros are not used in glibc anymore. They are kept here
|
||||
// only because some other projects expect the macros to be defined.
|
||||
|
||||
// For these things, GCC behaves the ANSI way normally,
|
||||
// and the non-ANSI way under -traditional.
|
||||
|
||||
// This is not a typedef so `const __ptr_t' does the right thing.
|
||||
|
||||
// C++ needs to know that types and declarations are C, not C++.
|
||||
|
||||
// Fortify support.
|
||||
|
||||
// Support for flexible arrays.
|
||||
// Headers that should use flexible arrays only if they're "real"
|
||||
// (e.g. only if they won't affect sizeof()) should test
|
||||
// #if __glibc_c99_flexarr_available.
|
||||
|
||||
// __asm__ ("xyz") is used throughout the headers to rename functions
|
||||
// at the assembly language level. This is wrapped by the __REDIRECT
|
||||
// macro, in order to support compilers that can do this some other
|
||||
// way. When compilers don't support asm-names at all, we have to do
|
||||
// preprocessor tricks instead (which don't have exactly the right
|
||||
// semantics, but it's the best we can do).
|
||||
//
|
||||
// Example:
|
||||
// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
|
||||
|
||||
//
|
||||
// #elif __SOME_OTHER_COMPILER__
|
||||
//
|
||||
// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
|
||||
|
||||
// GCC has various useful declarations that can be made with the
|
||||
// `__attribute__' syntax. All of the ways we use this do fine if
|
||||
// they are omitted for compilers that don't understand it.
|
||||
|
||||
// At some point during the gcc 2.96 development the `malloc' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
|
||||
// Tell the compiler which arguments to an allocation function
|
||||
// indicate the size of the allocation.
|
||||
|
||||
// At some point during the gcc 2.96 development the `pure' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
|
||||
// This declaration tells the compiler that the value is constant.
|
||||
|
||||
// At some point during the gcc 3.1 development the `used' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
|
||||
// Since version 3.2, gcc allows marking deprecated functions.
|
||||
|
||||
// Since version 4.5, gcc also allows one to specify the message printed
|
||||
// when a deprecated function is used. clang claims to be gcc 4.2, but
|
||||
// may also support this feature.
|
||||
|
||||
// At some point during the gcc 2.8 development the `format_arg' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
// If several `format_arg' attributes are given for the same function, in
|
||||
// gcc-3.0 and older, all but the last one are ignored. In newer gccs,
|
||||
// all designated arguments are considered.
|
||||
|
||||
// At some point during the gcc 2.97 development the `strfmon' format
|
||||
// attribute for functions was introduced. We don't want to use it
|
||||
// unconditionally (although this would be possible) since it
|
||||
// generates warnings.
|
||||
|
||||
// The nonull function attribute allows to mark pointer parameters which
|
||||
// must not be NULL.
|
||||
|
||||
// If fortification mode, we warn about unused results of certain
|
||||
// function calls which can lead to problems.
|
||||
|
||||
// Forces a function to be always inlined.
|
||||
// The Linux kernel defines __always_inline in stddef.h (283d7573), and
|
||||
// it conflicts with this definition. Therefore undefine it first to
|
||||
// allow either header to be included first.
|
||||
|
||||
// Associate error messages with the source location of the call site rather
|
||||
// than with the source location inside the function.
|
||||
|
||||
// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
|
||||
// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
|
||||
// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
|
||||
// older than 4.3 may define these macros and still not guarantee GNU inlining
|
||||
// semantics.
|
||||
//
|
||||
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
|
||||
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
|
||||
// __GNUC_GNU_INLINE__ macro definitions.
|
||||
|
||||
// GCC 4.3 and above allow passing all anonymous arguments of an
|
||||
// __extern_always_inline function to some other vararg function.
|
||||
|
||||
// It is possible to compile containing GCC extensions even if GCC is
|
||||
// run in pedantic mode if the uses are carefully marked using the
|
||||
// `__extension__' keyword. But this is not generally available before
|
||||
// version 2.8.
|
||||
|
||||
// __restrict is known in EGCS 1.2 and above.
|
||||
|
||||
// ISO C99 also allows to declare arrays as non-overlapping. The syntax is
|
||||
// array_name[restrict]
|
||||
// GCC 3.1 supports this.
|
||||
|
||||
// Describes a char array whose address can safely be passed as the first
|
||||
// argument to strncpy and strncat, as the char array is not necessarily
|
||||
// a NUL-terminated string.
|
||||
|
||||
// Undefine (also defined in libc-symbols.h).
|
||||
// Copies attributes from the declaration or type referenced by
|
||||
// the argument.
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// Properties of long double type.
|
||||
// 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
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License 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/>.
|
||||
|
||||
// This header is included by <sys/cdefs.h>.
|
||||
//
|
||||
// If long double is ABI-compatible with double, it should define
|
||||
// __NO_LONG_DOUBLE_MATH to 1; otherwise, it should leave
|
||||
// __NO_LONG_DOUBLE_MATH undefined.
|
||||
//
|
||||
// If this build of the GNU C Library supports both long double
|
||||
// ABI-compatible with double and some other long double format not
|
||||
// ABI-compatible with double, it should define
|
||||
// __LONG_DOUBLE_MATH_OPTIONAL to 1; otherwise, it should leave
|
||||
// __LONG_DOUBLE_MATH_OPTIONAL undefined.
|
||||
//
|
||||
// If __NO_LONG_DOUBLE_MATH is already defined, this header must not
|
||||
// define anything; this is needed to work with the definition of
|
||||
// __NO_LONG_DOUBLE_MATH in nldbl-compat.h.
|
||||
|
||||
// In the default version of this header, long double is
|
||||
// ABI-compatible with double.
|
||||
|
||||
// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
|
||||
// intended for use in preprocessor macros.
|
||||
//
|
||||
// Note: MESSAGE must be a _single_ string; concatenation of string
|
||||
// literals is not supported.
|
||||
|
||||
// Generic selection (ISO C11) is a C-only feature, available in GCC
|
||||
// since version 4.9. Previous versions do not provide generic
|
||||
// selection, even though they might set __STDC_VERSION__ to 201112L,
|
||||
// when in -std=c11 mode. Thus, we must check for !defined __GNUC__
|
||||
// when testing __STDC_VERSION__ for generic selection support.
|
||||
// On the other hand, Clang also defines __GNUC__, so a clang-specific
|
||||
// check is required to enable the use of generic selection.
|
||||
|
||||
// If we don't have __REDIRECT, prototypes will be missing if
|
||||
// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
|
||||
|
||||
// Decide whether we can define 'extern inline' functions in headers.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
|
||||
// <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
|
||||
// that will always return failure (and set errno to ENOSYS).
|
||||
// This file is automatically generated.
|
||||
// This file selects the right generated file of `__stub_FUNCTION' macros
|
||||
// based on the architecture being compiled for.
|
||||
|
||||
// This file is automatically generated.
|
||||
// It defines a symbol `__stub_FUNCTION' for each function
|
||||
// in the C library which is a stub, meaning it will fail
|
||||
// every time called, usually setting errno to ENOSYS.
|
||||
|
||||
// bits/types.h -- definitions of __*_t types underlying *_t types.
|
||||
// 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.
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// Bit size of the time_t type at glibc build time, general case.
|
||||
// Copyright (C) 2018-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/>.
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// Size in bits of the 'time_t' type of the default ABI.
|
||||
|
||||
// Convenience types.
|
||||
type X__u_char = uint8 /* types.h:31:23 */
|
||||
type X__u_short = uint16 /* types.h:32:28 */
|
||||
type X__u_int = uint32 /* types.h:33:22 */
|
||||
type X__u_long = uint32 /* types.h:34:27 */
|
||||
|
||||
// Fixed-size types, underlying types depend on word size and compiler.
|
||||
type X__int8_t = int8 /* types.h:37:21 */
|
||||
type X__uint8_t = uint8 /* types.h:38:23 */
|
||||
type X__int16_t = int16 /* types.h:39:26 */
|
||||
type X__uint16_t = uint16 /* types.h:40:28 */
|
||||
type X__int32_t = int32 /* types.h:41:20 */
|
||||
type X__uint32_t = uint32 /* types.h:42:22 */
|
||||
type X__int64_t = int64 /* types.h:47:44 */
|
||||
type X__uint64_t = uint64 /* types.h:48:46 */
|
||||
|
||||
// Smallest types with at least a given width.
|
||||
type X__int_least8_t = X__int8_t /* types.h:52:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:54:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:56:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:58:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
|
||||
|
||||
// quad_t is also 64 bits.
|
||||
type X__quad_t = int64 /* types.h:66:37 */
|
||||
type X__u_quad_t = uint64 /* types.h:67:46 */
|
||||
|
||||
// Largest integral types.
|
||||
type X__intmax_t = int64 /* types.h:75:37 */
|
||||
type X__uintmax_t = uint64 /* types.h:76:46 */
|
||||
|
||||
// The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
|
||||
// macros for each of the OS types we define below. The definitions
|
||||
// of those macros must use the following macros for underlying types.
|
||||
// We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
|
||||
// variants of each of the following integer types on this machine.
|
||||
//
|
||||
// 16 -- "natural" 16-bit type (always short)
|
||||
// 32 -- "natural" 32-bit type (always int)
|
||||
// 64 -- "natural" 64-bit type (long or long long)
|
||||
// LONG32 -- 32-bit type, traditionally long
|
||||
// QUAD -- 64-bit type, traditionally long long
|
||||
// WORD -- natural type of __WORDSIZE bits (int or long)
|
||||
// LONGWORD -- type of __WORDSIZE bits, traditionally long
|
||||
//
|
||||
// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
|
||||
// conventional uses of `long' or `long long' type modifiers match the
|
||||
// types we define, even when a less-adorned type would be the same size.
|
||||
// This matters for (somewhat) portably writing printf/scanf formats for
|
||||
// these types, where using the appropriate l or ll format modifiers can
|
||||
// make the typedefs and the formats match up across all GNU platforms. If
|
||||
// we used `long' when it's 64 bits where `long long' is expected, then the
|
||||
// compiler would warn about the formats not matching the argument types,
|
||||
// and the programmer changing them to shut up the compiler would break the
|
||||
// program's portability.
|
||||
//
|
||||
// Here we assume what is presently the case in all the GCC configurations
|
||||
// we support: long long is always 64 bits, long is always word/address size,
|
||||
// and int is always 32 bits.
|
||||
|
||||
// We want __extension__ before typedef's that use nonstandard base types
|
||||
// such as `long long' in C89 mode.
|
||||
// bits/typesizes.h -- underlying types for *_t. Generic version.
|
||||
// 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/>.
|
||||
|
||||
// See <bits/types.h> for the meaning of these macros. This file exists so
|
||||
// that <bits/types.h> need not vary across different GNU platforms.
|
||||
|
||||
// Number of descriptors that can fit in an `fd_set'.
|
||||
|
||||
// bits/time64.h -- underlying types for __time64_t. Generic version.
|
||||
// Copyright (C) 2018-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/>.
|
||||
|
||||
// Define __TIME64_T_TYPE so that it is always a 64-bit type.
|
||||
|
||||
// Define a 64-bit time type alongsize the 32-bit one.
|
||||
|
||||
type X__dev_t = X__uint64_t /* types.h:145:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint32 /* types.h:148:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = X__uint64_t /* types.h:149:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts.
|
||||
type X__off_t = int32 /* types.h:152:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = X__int64_t /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int32 /* types.h:156:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint32 /* types.h:157:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = X__uint64_t /* types.h:158:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
|
||||
type X__time_t = int32 /* types.h:160:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int32 /* types.h:162:31 */ // Signed count of microseconds.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
|
||||
|
||||
// Clock ID used in clock and timer functions.
|
||||
type X__clockid_t = int32 /* types.h:168:29 */
|
||||
|
||||
// Timer ID returned by `timer_create'.
|
||||
type X__timer_t = uintptr /* types.h:171:12 */
|
||||
|
||||
// Type to represent block size.
|
||||
type X__blksize_t = int32 /* types.h:174:29 */
|
||||
|
||||
// Types from the Large File Support interface.
|
||||
|
||||
// Type to count number of disk blocks.
|
||||
type X__blkcnt_t = int32 /* types.h:179:28 */
|
||||
type X__blkcnt64_t = X__int64_t /* types.h:180:30 */
|
||||
|
||||
// Type to count file system blocks.
|
||||
type X__fsblkcnt_t = uint32 /* types.h:183:30 */
|
||||
type X__fsblkcnt64_t = X__uint64_t /* types.h:184:32 */
|
||||
|
||||
// Type to count file system nodes.
|
||||
type X__fsfilcnt_t = uint32 /* types.h:187:30 */
|
||||
type X__fsfilcnt64_t = X__uint64_t /* types.h:188:32 */
|
||||
|
||||
// Type of miscellaneous file system fields.
|
||||
type X__fsword_t = int32 /* types.h:191:28 */
|
||||
|
||||
type X__ssize_t = int32 /* types.h:193:27 */ // Type of a byte count, or error.
|
||||
|
||||
// Signed long type used in system calls.
|
||||
type X__syscall_slong_t = int32 /* types.h:196:33 */
|
||||
// Unsigned long type used in system calls.
|
||||
type X__syscall_ulong_t = uint32 /* types.h:198:33 */
|
||||
|
||||
// These few don't really vary by system, they always correspond
|
||||
//
|
||||
// to one of the other defined types.
|
||||
type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:203:14 */
|
||||
|
||||
// Duplicates info from stdint.h but this is used in unistd.h.
|
||||
type X__intptr_t = int32 /* types.h:206:25 */
|
||||
|
||||
// Duplicate info from sys/socket.h.
|
||||
type X__socklen_t = uint32 /* types.h:209:23 */
|
||||
|
||||
// C99: An integer type that can be accessed as an atomic entity,
|
||||
//
|
||||
// even in the presence of asynchronous interrupts.
|
||||
// It is not currently necessary for this to be machine-specific.
|
||||
type X__sig_atomic_t = int32 /* types.h:214:13 */
|
||||
|
||||
// Seconds since the Epoch, visible to user code when time_t is too
|
||||
//
|
||||
// narrow only for consistency with the old way of widening too-narrow
|
||||
// types. User code should never use __time64_t.
|
||||
type X__time64_t = X__int64_t /* types.h:222:28 */
|
||||
|
||||
// This file defines `struct dirent'.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_NAMLEN' iff there is a `d_namlen'
|
||||
// member that gives the length of `d_name'.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_RECLEN' iff there is a `d_reclen'
|
||||
// member that gives the size of the entire directory entry.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_OFF' iff there is a `d_off'
|
||||
// member that gives the file offset of the next directory entry.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_TYPE' iff there is a `d_type'
|
||||
// member that gives the type of the file.
|
||||
//
|
||||
|
||||
// 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
|
||||
// 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 Dirent = struct {
|
||||
Fd_ino X__ino64_t
|
||||
Fd_off X__off64_t
|
||||
Fd_reclen uint16
|
||||
Fd_type uint8
|
||||
Fd_name [256]uint8
|
||||
F__ccgo_pad1 [5]byte
|
||||
} /* dirent.h:22:1 */
|
||||
|
||||
// System-specific extensions of <dirent.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/>.
|
||||
|
||||
var _ uint8 /* gen.c:2:13: */
|
980
dirent/dirent_linux_arm64.go
Normal file
980
dirent/dirent_linux_arm64.go
Normal file
|
@ -0,0 +1,980 @@
|
|||
// Code generated by 'ccgo dirent/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 dirent/dirent_linux_arm64.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
import (
|
||||
"math"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ = math.Pi
|
||||
var _ reflect.Kind
|
||||
var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
AIO_PRIO_DELTA_MAX = 20
|
||||
DELAYTIMER_MAX = 2147483647
|
||||
HOST_NAME_MAX = 64
|
||||
LOGIN_NAME_MAX = 256
|
||||
MAXNAMLEN = 255
|
||||
MAX_CANON = 255
|
||||
MAX_INPUT = 255
|
||||
MQ_PRIO_MAX = 32768
|
||||
NAME_MAX = 255
|
||||
NGROUPS_MAX = 65536
|
||||
PATH_MAX = 4096
|
||||
PIPE_BUF = 4096
|
||||
PTHREAD_DESTRUCTOR_ITERATIONS = 4
|
||||
PTHREAD_KEYS_MAX = 1024
|
||||
PTHREAD_STACK_MIN = 131072
|
||||
RTSIG_MAX = 32
|
||||
SEM_VALUE_MAX = 2147483647
|
||||
TTY_NAME_MAX = 32
|
||||
XATTR_LIST_MAX = 65536
|
||||
XATTR_NAME_MAX = 255
|
||||
XATTR_SIZE_MAX = 65536
|
||||
X_ATFILE_SOURCE = 1
|
||||
X_BITS_POSIX1_LIM_H = 1
|
||||
X_BITS_TIME64_H = 1
|
||||
X_BITS_TYPESIZES_H = 1
|
||||
X_BITS_TYPES_H = 1
|
||||
X_BSD_SIZE_T_ = 0
|
||||
X_BSD_SIZE_T_DEFINED_ = 0
|
||||
X_DEFAULT_SOURCE = 1
|
||||
X_DIRENT_H = 1
|
||||
X_DIRENT_HAVE_D_OFF = 0
|
||||
X_DIRENT_HAVE_D_RECLEN = 0
|
||||
X_DIRENT_HAVE_D_TYPE = 0
|
||||
X_DIRENT_MATCHES_DIRENT64 = 1
|
||||
X_FEATURES_H = 1
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_GCC_SIZE_T = 0
|
||||
X_LINUX_LIMITS_H = 0
|
||||
X_LP64 = 1
|
||||
X_POSIX_AIO_LISTIO_MAX = 2
|
||||
X_POSIX_AIO_MAX = 1
|
||||
X_POSIX_ARG_MAX = 4096
|
||||
X_POSIX_CHILD_MAX = 25
|
||||
X_POSIX_CLOCKRES_MIN = 20000000
|
||||
X_POSIX_C_SOURCE = 200809
|
||||
X_POSIX_DELAYTIMER_MAX = 32
|
||||
X_POSIX_HOST_NAME_MAX = 255
|
||||
X_POSIX_LINK_MAX = 8
|
||||
X_POSIX_LOGIN_NAME_MAX = 9
|
||||
X_POSIX_MAX_CANON = 255
|
||||
X_POSIX_MAX_INPUT = 255
|
||||
X_POSIX_MQ_OPEN_MAX = 8
|
||||
X_POSIX_MQ_PRIO_MAX = 32
|
||||
X_POSIX_NAME_MAX = 14
|
||||
X_POSIX_NGROUPS_MAX = 8
|
||||
X_POSIX_OPEN_MAX = 20
|
||||
X_POSIX_PATH_MAX = 256
|
||||
X_POSIX_PIPE_BUF = 512
|
||||
X_POSIX_RE_DUP_MAX = 255
|
||||
X_POSIX_RTSIG_MAX = 8
|
||||
X_POSIX_SEM_NSEMS_MAX = 256
|
||||
X_POSIX_SEM_VALUE_MAX = 32767
|
||||
X_POSIX_SIGQUEUE_MAX = 32
|
||||
X_POSIX_SOURCE = 1
|
||||
X_POSIX_SSIZE_MAX = 32767
|
||||
X_POSIX_STREAM_MAX = 8
|
||||
X_POSIX_SYMLINK_MAX = 255
|
||||
X_POSIX_SYMLOOP_MAX = 8
|
||||
X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
|
||||
X_POSIX_THREAD_KEYS_MAX = 128
|
||||
X_POSIX_THREAD_THREADS_MAX = 64
|
||||
X_POSIX_TIMER_MAX = 32
|
||||
X_POSIX_TTY_NAME_MAX = 9
|
||||
X_POSIX_TZNAME_MAX = 6
|
||||
X_SIZET_ = 0
|
||||
X_SIZE_T = 0
|
||||
X_SIZE_T_ = 0
|
||||
X_SIZE_T_DECLARED = 0
|
||||
X_SIZE_T_DEFINED = 0
|
||||
X_SIZE_T_DEFINED_ = 0
|
||||
X_STDC_PREDEF_H = 1
|
||||
X_SYS_CDEFS_H = 1
|
||||
X_SYS_SIZE_T_H = 0
|
||||
X_T_SIZE = 0
|
||||
X_T_SIZE_ = 0
|
||||
Linux = 1
|
||||
Unix = 1
|
||||
)
|
||||
|
||||
// Inform libc code that these two types are effectively identical.
|
||||
|
||||
// These macros extract size information from a `struct dirent *'.
|
||||
// They may evaluate their argument multiple times, so it must not
|
||||
// have side effects. Each of these may involve a relatively costly
|
||||
// call to `strlen' on some systems, so these values should be cached.
|
||||
//
|
||||
// _D_EXACT_NAMLEN (DP) returns the length of DP->d_name, not including
|
||||
// its terminating null character.
|
||||
//
|
||||
// _D_ALLOC_NAMLEN (DP) returns a size at least (_D_EXACT_NAMLEN (DP) + 1);
|
||||
// that is, the allocation size needed to hold the DP->d_name string.
|
||||
// Use this macro when you don't need the exact length, just an upper bound.
|
||||
// This macro is less likely to require calling `strlen' than _D_EXACT_NAMLEN.
|
||||
//
|
||||
|
||||
// File types for `d_type'.
|
||||
const ( /* dirent.h:97:1: */
|
||||
DT_UNKNOWN = 0
|
||||
DT_FIFO = 1
|
||||
DT_CHR = 2
|
||||
DT_DIR = 4
|
||||
DT_BLK = 6
|
||||
DT_REG = 8
|
||||
DT_LNK = 10
|
||||
DT_SOCK = 12
|
||||
DT_WHT = 14
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
|
||||
type Size_t = uint64 /* <builtin>:9:23 */
|
||||
|
||||
type Wchar_t = uint32 /* <builtin>:15:24 */
|
||||
|
||||
type X__int128_t = struct {
|
||||
Flo int64
|
||||
Fhi int64
|
||||
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
|
||||
type X__uint128_t = struct {
|
||||
Flo uint64
|
||||
Fhi uint64
|
||||
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
|
||||
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// POSIX Standard: 5.1.2 Directory Operations <dirent.h>
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// These are defined by the user (or the compiler)
|
||||
// to specify the desired environment:
|
||||
//
|
||||
// __STRICT_ANSI__ ISO Standard C.
|
||||
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
|
||||
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
|
||||
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
|
||||
// __STDC_WANT_LIB_EXT2__
|
||||
// Extensions to ISO C99 from TR 27431-2:2010.
|
||||
// __STDC_WANT_IEC_60559_BFP_EXT__
|
||||
// Extensions to ISO C11 from TS 18661-1:2014.
|
||||
// __STDC_WANT_IEC_60559_FUNCS_EXT__
|
||||
// Extensions to ISO C11 from TS 18661-4:2015.
|
||||
// __STDC_WANT_IEC_60559_TYPES_EXT__
|
||||
// Extensions to ISO C11 from TS 18661-3:2015.
|
||||
//
|
||||
// _POSIX_SOURCE IEEE Std 1003.1.
|
||||
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
|
||||
// if >=199309L, add IEEE Std 1003.1b-1993;
|
||||
// if >=199506L, add IEEE Std 1003.1c-1995;
|
||||
// if >=200112L, all of IEEE 1003.1-2004
|
||||
// if >=200809L, all of IEEE 1003.1-2008
|
||||
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
|
||||
// Single Unix conformance is wanted, to 600 for the
|
||||
// sixth revision, to 700 for the seventh revision.
|
||||
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
|
||||
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
|
||||
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
|
||||
// _FILE_OFFSET_BITS=N Select default filesystem interface.
|
||||
// _ATFILE_SOURCE Additional *at interfaces.
|
||||
// _GNU_SOURCE All of the above, plus GNU extensions.
|
||||
// _DEFAULT_SOURCE The default set of features (taking precedence over
|
||||
// __STRICT_ANSI__).
|
||||
//
|
||||
// _FORTIFY_SOURCE Add security hardening to many library functions.
|
||||
// Set to 1 or 2; 2 performs stricter checks than 1.
|
||||
//
|
||||
// _REENTRANT, _THREAD_SAFE
|
||||
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
|
||||
//
|
||||
// The `-ansi' switch to the GNU C compiler, and standards conformance
|
||||
// options such as `-std=c99', define __STRICT_ANSI__. If none of
|
||||
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
|
||||
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
|
||||
// 200809L, as well as enabling miscellaneous functions from BSD and
|
||||
// SVID. If more than one of these are defined, they accumulate. For
|
||||
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
|
||||
// give you ISO C, 1003.1, and 1003.2, but nothing else.
|
||||
//
|
||||
// These are defined by this file and are used by the
|
||||
// header files to decide what to declare or define:
|
||||
//
|
||||
// __GLIBC_USE (F) Define things from feature set F. This is defined
|
||||
// to 1 or 0; the subsequent macros are either defined
|
||||
// or undefined, and those tests should be moved to
|
||||
// __GLIBC_USE.
|
||||
// __USE_ISOC11 Define ISO C11 things.
|
||||
// __USE_ISOC99 Define ISO C99 things.
|
||||
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
|
||||
// __USE_ISOCXX11 Define ISO C++11 things.
|
||||
// __USE_POSIX Define IEEE Std 1003.1 things.
|
||||
// __USE_POSIX2 Define IEEE Std 1003.2 things.
|
||||
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
|
||||
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
|
||||
// __USE_XOPEN Define XPG things.
|
||||
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
|
||||
// __USE_UNIX98 Define Single Unix V2 things.
|
||||
// __USE_XOPEN2K Define XPG6 things.
|
||||
// __USE_XOPEN2KXSI Define XPG6 XSI things.
|
||||
// __USE_XOPEN2K8 Define XPG7 things.
|
||||
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
|
||||
// __USE_LARGEFILE Define correct standard I/O things.
|
||||
// __USE_LARGEFILE64 Define LFS things with separate names.
|
||||
// __USE_FILE_OFFSET64 Define 64bit interface as default.
|
||||
// __USE_MISC Define things from 4.3BSD or System V Unix.
|
||||
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
|
||||
// __USE_GNU Define GNU extensions.
|
||||
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
|
||||
//
|
||||
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
|
||||
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
|
||||
// only for compatibility. All new code should use the other symbols
|
||||
// to test for features.
|
||||
//
|
||||
// All macros listed above as possibly being defined by this file are
|
||||
// explicitly undefined if they are not explicitly defined.
|
||||
// Feature-test macros that are not defined by the user or compiler
|
||||
// but are implied by the other feature-test macros defined (or by the
|
||||
// lack of any definitions) are defined by the file.
|
||||
//
|
||||
// ISO C feature test macros depend on the definition of the macro
|
||||
// when an affected header is included, not when the first system
|
||||
// header is included, and so they are handled in
|
||||
// <bits/libc-header-start.h>, which does not have a multiple include
|
||||
// guard. Feature test macros that can be handled from the first
|
||||
// system header included are handled here.
|
||||
|
||||
// Undefine everything, so we get a clean slate.
|
||||
|
||||
// Suppress kernel-name space pollution unless user expressedly asks
|
||||
// for it.
|
||||
|
||||
// Convenience macro to test the version of gcc.
|
||||
// Use like this:
|
||||
// #if __GNUC_PREREQ (2,8)
|
||||
// ... code requiring gcc 2.8 or later ...
|
||||
// #endif
|
||||
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
|
||||
// added in 2.0.
|
||||
|
||||
// Similarly for clang. Features added to GCC after version 4.2 may
|
||||
// or may not also be available in clang, and clang's definitions of
|
||||
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
|
||||
// features can be queried via __has_extension/__has_feature.
|
||||
|
||||
// Whether to use feature set F.
|
||||
|
||||
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
|
||||
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
|
||||
// issue a warning; the expectation is that the source is being
|
||||
// transitioned to use the new macro.
|
||||
|
||||
// If _GNU_SOURCE was defined by the user, turn on all the other features.
|
||||
|
||||
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
|
||||
// define _DEFAULT_SOURCE.
|
||||
|
||||
// This is to enable the ISO C2X extension.
|
||||
|
||||
// This is to enable the ISO C11 extension.
|
||||
|
||||
// This is to enable the ISO C99 extension.
|
||||
|
||||
// This is to enable the ISO C90 Amendment 1:1995 extension.
|
||||
|
||||
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
|
||||
// is defined, use POSIX.1-2008 (or another version depending on
|
||||
// _XOPEN_SOURCE).
|
||||
|
||||
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
|
||||
// defined in all multithreaded code. GNU libc has not required this
|
||||
// for many years. We now treat them as compatibility synonyms for
|
||||
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
|
||||
// comprehensive support for multithreaded code. Using them never
|
||||
// lowers the selected level of POSIX conformance, only raises it.
|
||||
|
||||
// The function 'gets' existed in C89, but is impossible to use
|
||||
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
|
||||
// compatibility with various implementations of <cstdio>, this test
|
||||
// must consider only the value of __cplusplus when compiling C++.
|
||||
|
||||
// GNU formerly extended the scanf functions with modified format
|
||||
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
|
||||
// input using malloc. This extension conflicts with ISO C99, which
|
||||
// defines %a as a standalone format specifier that reads a floating-
|
||||
// point number; moreover, POSIX.1-2008 provides the same feature
|
||||
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
|
||||
//
|
||||
// We now follow C99 unless GNU extensions are active and the compiler
|
||||
// is specifically in C89 or C++98 mode (strict or not). For
|
||||
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
|
||||
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
|
||||
// old extension.
|
||||
|
||||
// Get definitions of __STDC_* predefined macros, if the compiler has
|
||||
// not preincluded this header automatically.
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// This macro indicates that the installed library is the GNU C Library.
|
||||
// For historic reasons the value now is 6 and this will stay from now
|
||||
// on. The use of this variable is deprecated. Use __GLIBC__ and
|
||||
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
|
||||
// GNU C library version and use the values in <gnu/lib-names.h> to get
|
||||
// the sonames of the shared libraries.
|
||||
|
||||
// Major and minor version number of the GNU C library package. Use
|
||||
// these macros to test for features in specific releases.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// We are almost always included from features.h.
|
||||
|
||||
// The GNU libc does not support any K&R compilers or the traditional mode
|
||||
// of ISO C compilers anymore. Check for some of the combinations not
|
||||
// anymore supported.
|
||||
|
||||
// Some user header file might have defined this before.
|
||||
|
||||
// All functions, except those with callbacks or those that
|
||||
// synchronize memory, are leaf functions.
|
||||
|
||||
// GCC can always grok prototypes. For C++ programs we add throw()
|
||||
// to help it optimize the function calls. But this works only with
|
||||
// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
|
||||
// as non-throwing using a function attribute since programs can use
|
||||
// the -fexceptions options for C code as well.
|
||||
|
||||
// Compilers that are not clang may object to
|
||||
// #if defined __clang__ && __has_extension(...)
|
||||
// even though they do not need to evaluate the right-hand side of the &&.
|
||||
|
||||
// These two macros are not used in glibc anymore. They are kept here
|
||||
// only because some other projects expect the macros to be defined.
|
||||
|
||||
// For these things, GCC behaves the ANSI way normally,
|
||||
// and the non-ANSI way under -traditional.
|
||||
|
||||
// This is not a typedef so `const __ptr_t' does the right thing.
|
||||
|
||||
// C++ needs to know that types and declarations are C, not C++.
|
||||
|
||||
// Fortify support.
|
||||
|
||||
// Support for flexible arrays.
|
||||
// Headers that should use flexible arrays only if they're "real"
|
||||
// (e.g. only if they won't affect sizeof()) should test
|
||||
// #if __glibc_c99_flexarr_available.
|
||||
|
||||
// __asm__ ("xyz") is used throughout the headers to rename functions
|
||||
// at the assembly language level. This is wrapped by the __REDIRECT
|
||||
// macro, in order to support compilers that can do this some other
|
||||
// way. When compilers don't support asm-names at all, we have to do
|
||||
// preprocessor tricks instead (which don't have exactly the right
|
||||
// semantics, but it's the best we can do).
|
||||
//
|
||||
// Example:
|
||||
// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
|
||||
|
||||
//
|
||||
// #elif __SOME_OTHER_COMPILER__
|
||||
//
|
||||
// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
|
||||
|
||||
// GCC has various useful declarations that can be made with the
|
||||
// `__attribute__' syntax. All of the ways we use this do fine if
|
||||
// they are omitted for compilers that don't understand it.
|
||||
|
||||
// At some point during the gcc 2.96 development the `malloc' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
|
||||
// Tell the compiler which arguments to an allocation function
|
||||
// indicate the size of the allocation.
|
||||
|
||||
// At some point during the gcc 2.96 development the `pure' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
|
||||
// This declaration tells the compiler that the value is constant.
|
||||
|
||||
// At some point during the gcc 3.1 development the `used' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
|
||||
// Since version 3.2, gcc allows marking deprecated functions.
|
||||
|
||||
// Since version 4.5, gcc also allows one to specify the message printed
|
||||
// when a deprecated function is used. clang claims to be gcc 4.2, but
|
||||
// may also support this feature.
|
||||
|
||||
// At some point during the gcc 2.8 development the `format_arg' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
// If several `format_arg' attributes are given for the same function, in
|
||||
// gcc-3.0 and older, all but the last one are ignored. In newer gccs,
|
||||
// all designated arguments are considered.
|
||||
|
||||
// At some point during the gcc 2.97 development the `strfmon' format
|
||||
// attribute for functions was introduced. We don't want to use it
|
||||
// unconditionally (although this would be possible) since it
|
||||
// generates warnings.
|
||||
|
||||
// The nonull function attribute allows to mark pointer parameters which
|
||||
// must not be NULL.
|
||||
|
||||
// If fortification mode, we warn about unused results of certain
|
||||
// function calls which can lead to problems.
|
||||
|
||||
// Forces a function to be always inlined.
|
||||
// The Linux kernel defines __always_inline in stddef.h (283d7573), and
|
||||
// it conflicts with this definition. Therefore undefine it first to
|
||||
// allow either header to be included first.
|
||||
|
||||
// Associate error messages with the source location of the call site rather
|
||||
// than with the source location inside the function.
|
||||
|
||||
// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
|
||||
// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
|
||||
// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
|
||||
// older than 4.3 may define these macros and still not guarantee GNU inlining
|
||||
// semantics.
|
||||
//
|
||||
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
|
||||
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
|
||||
// __GNUC_GNU_INLINE__ macro definitions.
|
||||
|
||||
// GCC 4.3 and above allow passing all anonymous arguments of an
|
||||
// __extern_always_inline function to some other vararg function.
|
||||
|
||||
// It is possible to compile containing GCC extensions even if GCC is
|
||||
// run in pedantic mode if the uses are carefully marked using the
|
||||
// `__extension__' keyword. But this is not generally available before
|
||||
// version 2.8.
|
||||
|
||||
// __restrict is known in EGCS 1.2 and above.
|
||||
|
||||
// ISO C99 also allows to declare arrays as non-overlapping. The syntax is
|
||||
// array_name[restrict]
|
||||
// GCC 3.1 supports this.
|
||||
|
||||
// Describes a char array whose address can safely be passed as the first
|
||||
// argument to strncpy and strncat, as the char array is not necessarily
|
||||
// a NUL-terminated string.
|
||||
|
||||
// Undefine (also defined in libc-symbols.h).
|
||||
// Copies attributes from the declaration or type referenced by
|
||||
// the argument.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
//
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// Properties of long double type. ldbl-128 version.
|
||||
// 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
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License 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/>.
|
||||
|
||||
// long double is distinct from double, so there is nothing to
|
||||
// define here.
|
||||
|
||||
// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
|
||||
// intended for use in preprocessor macros.
|
||||
//
|
||||
// Note: MESSAGE must be a _single_ string; concatenation of string
|
||||
// literals is not supported.
|
||||
|
||||
// Generic selection (ISO C11) is a C-only feature, available in GCC
|
||||
// since version 4.9. Previous versions do not provide generic
|
||||
// selection, even though they might set __STDC_VERSION__ to 201112L,
|
||||
// when in -std=c11 mode. Thus, we must check for !defined __GNUC__
|
||||
// when testing __STDC_VERSION__ for generic selection support.
|
||||
// On the other hand, Clang also defines __GNUC__, so a clang-specific
|
||||
// check is required to enable the use of generic selection.
|
||||
|
||||
// If we don't have __REDIRECT, prototypes will be missing if
|
||||
// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
|
||||
|
||||
// Decide whether we can define 'extern inline' functions in headers.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
|
||||
// <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
|
||||
// that will always return failure (and set errno to ENOSYS).
|
||||
// This file is automatically generated.
|
||||
// This file selects the right generated file of `__stub_FUNCTION' macros
|
||||
// based on the architecture being compiled for.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
//
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// This file is automatically generated.
|
||||
// It defines a symbol `__stub_FUNCTION' for each function
|
||||
// in the C library which is a stub, meaning it will fail
|
||||
// every time called, usually setting errno to ENOSYS.
|
||||
|
||||
// bits/types.h -- definitions of __*_t types underlying *_t types.
|
||||
// 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.
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
//
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// Bit size of the time_t type at glibc build time, general case.
|
||||
// Copyright (C) 2018-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/>.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
//
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// Size in bits of the 'time_t' type of the default ABI.
|
||||
|
||||
// Convenience types.
|
||||
type X__u_char = uint8 /* types.h:31:23 */
|
||||
type X__u_short = uint16 /* types.h:32:28 */
|
||||
type X__u_int = uint32 /* types.h:33:22 */
|
||||
type X__u_long = uint64 /* types.h:34:27 */
|
||||
|
||||
// Fixed-size types, underlying types depend on word size and compiler.
|
||||
type X__int8_t = int8 /* types.h:37:21 */
|
||||
type X__uint8_t = uint8 /* types.h:38:23 */
|
||||
type X__int16_t = int16 /* types.h:39:26 */
|
||||
type X__uint16_t = uint16 /* types.h:40:28 */
|
||||
type X__int32_t = int32 /* types.h:41:20 */
|
||||
type X__uint32_t = uint32 /* types.h:42:22 */
|
||||
type X__int64_t = int64 /* types.h:44:25 */
|
||||
type X__uint64_t = uint64 /* types.h:45:27 */
|
||||
|
||||
// Smallest types with at least a given width.
|
||||
type X__int_least8_t = X__int8_t /* types.h:52:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:54:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:56:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:58:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
|
||||
|
||||
// quad_t is also 64 bits.
|
||||
type X__quad_t = int64 /* types.h:63:18 */
|
||||
type X__u_quad_t = uint64 /* types.h:64:27 */
|
||||
|
||||
// Largest integral types.
|
||||
type X__intmax_t = int64 /* types.h:72:18 */
|
||||
type X__uintmax_t = uint64 /* types.h:73:27 */
|
||||
|
||||
// The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
|
||||
// macros for each of the OS types we define below. The definitions
|
||||
// of those macros must use the following macros for underlying types.
|
||||
// We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
|
||||
// variants of each of the following integer types on this machine.
|
||||
//
|
||||
// 16 -- "natural" 16-bit type (always short)
|
||||
// 32 -- "natural" 32-bit type (always int)
|
||||
// 64 -- "natural" 64-bit type (long or long long)
|
||||
// LONG32 -- 32-bit type, traditionally long
|
||||
// QUAD -- 64-bit type, traditionally long long
|
||||
// WORD -- natural type of __WORDSIZE bits (int or long)
|
||||
// LONGWORD -- type of __WORDSIZE bits, traditionally long
|
||||
//
|
||||
// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
|
||||
// conventional uses of `long' or `long long' type modifiers match the
|
||||
// types we define, even when a less-adorned type would be the same size.
|
||||
// This matters for (somewhat) portably writing printf/scanf formats for
|
||||
// these types, where using the appropriate l or ll format modifiers can
|
||||
// make the typedefs and the formats match up across all GNU platforms. If
|
||||
// we used `long' when it's 64 bits where `long long' is expected, then the
|
||||
// compiler would warn about the formats not matching the argument types,
|
||||
// and the programmer changing them to shut up the compiler would break the
|
||||
// program's portability.
|
||||
//
|
||||
// Here we assume what is presently the case in all the GCC configurations
|
||||
// we support: long long is always 64 bits, long is always word/address size,
|
||||
// and int is always 32 bits.
|
||||
|
||||
// No need to mark the typedef with __extension__.
|
||||
// bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI.
|
||||
// Copyright (C) 2011-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
// Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
|
||||
//
|
||||
// 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/>.
|
||||
|
||||
// See <bits/types.h> for the meaning of these macros. This file exists so
|
||||
// that <bits/types.h> need not vary across different GNU platforms.
|
||||
|
||||
// Tell the libc code that off_t and off64_t are actually the same type
|
||||
// for all ABI purposes, even if possibly expressed as different base types
|
||||
// for C type-checking purposes.
|
||||
|
||||
// Same for ino_t and ino64_t.
|
||||
|
||||
// And for __rlim_t and __rlim64_t.
|
||||
|
||||
// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
|
||||
// Number of descriptors that can fit in an `fd_set'.
|
||||
|
||||
// bits/time64.h -- underlying types for __time64_t. Generic version.
|
||||
// Copyright (C) 2018-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/>.
|
||||
|
||||
// Define __TIME64_T_TYPE so that it is always a 64-bit type.
|
||||
|
||||
// If we already have 64-bit time type then use it.
|
||||
|
||||
type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts.
|
||||
type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
|
||||
type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
|
||||
|
||||
// Clock ID used in clock and timer functions.
|
||||
type X__clockid_t = int32 /* types.h:168:29 */
|
||||
|
||||
// Timer ID returned by `timer_create'.
|
||||
type X__timer_t = uintptr /* types.h:171:12 */
|
||||
|
||||
// Type to represent block size.
|
||||
type X__blksize_t = int32 /* types.h:174:29 */
|
||||
|
||||
// Types from the Large File Support interface.
|
||||
|
||||
// Type to count number of disk blocks.
|
||||
type X__blkcnt_t = int64 /* types.h:179:28 */
|
||||
type X__blkcnt64_t = int64 /* types.h:180:30 */
|
||||
|
||||
// Type to count file system blocks.
|
||||
type X__fsblkcnt_t = uint64 /* types.h:183:30 */
|
||||
type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
|
||||
|
||||
// Type to count file system nodes.
|
||||
type X__fsfilcnt_t = uint64 /* types.h:187:30 */
|
||||
type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
|
||||
|
||||
// Type of miscellaneous file system fields.
|
||||
type X__fsword_t = int64 /* types.h:191:28 */
|
||||
|
||||
type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
|
||||
|
||||
// Signed long type used in system calls.
|
||||
type X__syscall_slong_t = int64 /* types.h:196:33 */
|
||||
// Unsigned long type used in system calls.
|
||||
type X__syscall_ulong_t = uint64 /* types.h:198:33 */
|
||||
|
||||
// These few don't really vary by system, they always correspond
|
||||
//
|
||||
// to one of the other defined types.
|
||||
type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:203:14 */
|
||||
|
||||
// Duplicates info from stdint.h but this is used in unistd.h.
|
||||
type X__intptr_t = int64 /* types.h:206:25 */
|
||||
|
||||
// Duplicate info from sys/socket.h.
|
||||
type X__socklen_t = uint32 /* types.h:209:23 */
|
||||
|
||||
// C99: An integer type that can be accessed as an atomic entity,
|
||||
//
|
||||
// even in the presence of asynchronous interrupts.
|
||||
// It is not currently necessary for this to be machine-specific.
|
||||
type X__sig_atomic_t = int32 /* types.h:214:13 */
|
||||
|
||||
// Seconds since the Epoch, visible to user code when time_t is too
|
||||
// narrow only for consistency with the old way of widening too-narrow
|
||||
// types. User code should never use __time64_t.
|
||||
|
||||
// This file defines `struct dirent'.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_NAMLEN' iff there is a `d_namlen'
|
||||
// member that gives the length of `d_name'.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_RECLEN' iff there is a `d_reclen'
|
||||
// member that gives the size of the entire directory entry.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_OFF' iff there is a `d_off'
|
||||
// member that gives the file offset of the next directory entry.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_TYPE' iff there is a `d_type'
|
||||
// member that gives the type of the file.
|
||||
//
|
||||
|
||||
// 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
|
||||
// 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 Dirent = struct {
|
||||
Fd_ino X__ino64_t
|
||||
Fd_off X__off64_t
|
||||
Fd_reclen uint16
|
||||
Fd_type uint8
|
||||
Fd_name [256]uint8
|
||||
F__ccgo_pad1 [5]byte
|
||||
} /* dirent.h:22:1 */
|
||||
|
||||
// System-specific extensions of <dirent.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/>.
|
||||
|
||||
var _ uint8 /* gen.c:2:13: */
|
1071
dirent/dirent_linux_loong64.go
Normal file
1071
dirent/dirent_linux_loong64.go
Normal file
File diff suppressed because it is too large
Load diff
912
dirent/dirent_linux_mips64le.go
Normal file
912
dirent/dirent_linux_mips64le.go
Normal file
|
@ -0,0 +1,912 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_linux_amd64.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
import (
|
||||
"math"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ = math.Pi
|
||||
var _ reflect.Kind
|
||||
var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
AIO_PRIO_DELTA_MAX = 20 // local_lim.h:78:1:
|
||||
DELAYTIMER_MAX = 2147483647 // local_lim.h:84:1:
|
||||
HOST_NAME_MAX = 64 // local_lim.h:93:1:
|
||||
LOGIN_NAME_MAX = 256 // local_lim.h:90:1:
|
||||
MAXNAMLEN = 255 // dirent.h:237:1:
|
||||
MAX_CANON = 255 // limits.h:10:1:
|
||||
MAX_INPUT = 255 // limits.h:11:1:
|
||||
MQ_PRIO_MAX = 32768 // local_lim.h:96:1:
|
||||
NAME_MAX = 255 // limits.h:12:1:
|
||||
NGROUPS_MAX = 65536 // limits.h:7:1:
|
||||
PATH_MAX = 4096 // limits.h:13:1:
|
||||
PIPE_BUF = 4096 // limits.h:14:1:
|
||||
PTHREAD_DESTRUCTOR_ITERATIONS = 4 // local_lim.h:69:1:
|
||||
PTHREAD_KEYS_MAX = 1024 // local_lim.h:64:1:
|
||||
PTHREAD_STACK_MIN = 16384 // local_lim.h:81:1:
|
||||
RTSIG_MAX = 32 // limits.h:19:1:
|
||||
SEM_VALUE_MAX = 2147483647 // local_lim.h:99:1:
|
||||
TTY_NAME_MAX = 32 // local_lim.h:87:1:
|
||||
XATTR_LIST_MAX = 65536 // limits.h:17:1:
|
||||
XATTR_NAME_MAX = 255 // limits.h:15:1:
|
||||
XATTR_SIZE_MAX = 65536 // limits.h:16:1:
|
||||
X_ATFILE_SOURCE = 1 // features.h:342:1:
|
||||
X_BITS_POSIX1_LIM_H = 1 // posix1_lim.h:25:1:
|
||||
X_BITS_TIME64_H = 1 // time64.h:24:1:
|
||||
X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1:
|
||||
X_BITS_TYPES_H = 1 // types.h:24:1:
|
||||
X_BSD_SIZE_T_ = 0 // stddef.h:189:1:
|
||||
X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1:
|
||||
X_DEFAULT_SOURCE = 1 // features.h:227:1:
|
||||
X_DIRENT_H = 1 // dirent.h:23:1:
|
||||
X_DIRENT_HAVE_D_OFF = 0 // dirent.h:51:1:
|
||||
X_DIRENT_HAVE_D_RECLEN = 0 // dirent.h:50:1:
|
||||
X_DIRENT_HAVE_D_TYPE = 0 // dirent.h:52:1:
|
||||
X_DIRENT_MATCHES_DIRENT64 = 1 // dirent.h:56:1:
|
||||
X_FEATURES_H = 1 // features.h:19:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_GCC_SIZE_T = 0 // stddef.h:195:1:
|
||||
X_LINUX_LIMITS_H = 0 // limits.h:3:1:
|
||||
X_LP64 = 1 // <predefined>:284:1:
|
||||
X_POSIX_AIO_LISTIO_MAX = 2 // posix1_lim.h:32:1:
|
||||
X_POSIX_AIO_MAX = 1 // posix1_lim.h:35:1:
|
||||
X_POSIX_ARG_MAX = 4096 // posix1_lim.h:38:1:
|
||||
X_POSIX_CHILD_MAX = 25 // posix1_lim.h:42:1:
|
||||
X_POSIX_CLOCKRES_MIN = 20000000 // posix1_lim.h:157:1:
|
||||
X_POSIX_C_SOURCE = 200809 // features.h:281:1:
|
||||
X_POSIX_DELAYTIMER_MAX = 32 // posix1_lim.h:48:1:
|
||||
X_POSIX_HOST_NAME_MAX = 255 // posix1_lim.h:52:1:
|
||||
X_POSIX_LINK_MAX = 8 // posix1_lim.h:55:1:
|
||||
X_POSIX_LOGIN_NAME_MAX = 9 // posix1_lim.h:58:1:
|
||||
X_POSIX_MAX_CANON = 255 // posix1_lim.h:61:1:
|
||||
X_POSIX_MAX_INPUT = 255 // posix1_lim.h:65:1:
|
||||
X_POSIX_MQ_OPEN_MAX = 8 // posix1_lim.h:68:1:
|
||||
X_POSIX_MQ_PRIO_MAX = 32 // posix1_lim.h:71:1:
|
||||
X_POSIX_NAME_MAX = 14 // posix1_lim.h:74:1:
|
||||
X_POSIX_NGROUPS_MAX = 8 // posix1_lim.h:78:1:
|
||||
X_POSIX_OPEN_MAX = 20 // posix1_lim.h:85:1:
|
||||
X_POSIX_PATH_MAX = 256 // posix1_lim.h:97:1:
|
||||
X_POSIX_PIPE_BUF = 512 // posix1_lim.h:100:1:
|
||||
X_POSIX_RE_DUP_MAX = 255 // posix1_lim.h:104:1:
|
||||
X_POSIX_RTSIG_MAX = 8 // posix1_lim.h:107:1:
|
||||
X_POSIX_SEM_NSEMS_MAX = 256 // posix1_lim.h:110:1:
|
||||
X_POSIX_SEM_VALUE_MAX = 32767 // posix1_lim.h:113:1:
|
||||
X_POSIX_SIGQUEUE_MAX = 32 // posix1_lim.h:116:1:
|
||||
X_POSIX_SOURCE = 1 // features.h:279:1:
|
||||
X_POSIX_SSIZE_MAX = 32767 // posix1_lim.h:119:1:
|
||||
X_POSIX_STREAM_MAX = 8 // posix1_lim.h:122:1:
|
||||
X_POSIX_SYMLINK_MAX = 255 // posix1_lim.h:125:1:
|
||||
X_POSIX_SYMLOOP_MAX = 8 // posix1_lim.h:129:1:
|
||||
X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 // local_lim.h:67:1:
|
||||
X_POSIX_THREAD_KEYS_MAX = 128 // local_lim.h:62:1:
|
||||
X_POSIX_THREAD_THREADS_MAX = 64 // local_lim.h:72:1:
|
||||
X_POSIX_TIMER_MAX = 32 // posix1_lim.h:132:1:
|
||||
X_POSIX_TTY_NAME_MAX = 9 // posix1_lim.h:135:1:
|
||||
X_POSIX_TZNAME_MAX = 6 // posix1_lim.h:139:1:
|
||||
X_SIZET_ = 0 // stddef.h:196:1:
|
||||
X_SIZE_T = 0 // stddef.h:183:1:
|
||||
X_SIZE_T_ = 0 // stddef.h:188:1:
|
||||
X_SIZE_T_DECLARED = 0 // stddef.h:193:1:
|
||||
X_SIZE_T_DEFINED = 0 // stddef.h:191:1:
|
||||
X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1:
|
||||
X_STDC_PREDEF_H = 1 // <predefined>:162:1:
|
||||
X_SYS_CDEFS_H = 1 // cdefs.h:19:1:
|
||||
X_SYS_SIZE_T_H = 0 // stddef.h:184:1:
|
||||
X_T_SIZE = 0 // stddef.h:186:1:
|
||||
X_T_SIZE_ = 0 // stddef.h:185:1:
|
||||
Linux = 1 // <predefined>:231:1:
|
||||
Unix = 1 // <predefined>:177:1:
|
||||
)
|
||||
|
||||
// Inform libc code that these two types are effectively identical.
|
||||
|
||||
// These macros extract size information from a `struct dirent *'.
|
||||
// They may evaluate their argument multiple times, so it must not
|
||||
// have side effects. Each of these may involve a relatively costly
|
||||
// call to `strlen' on some systems, so these values should be cached.
|
||||
//
|
||||
// _D_EXACT_NAMLEN (DP) returns the length of DP->d_name, not including
|
||||
// its terminating null character.
|
||||
//
|
||||
// _D_ALLOC_NAMLEN (DP) returns a size at least (_D_EXACT_NAMLEN (DP) + 1);
|
||||
// that is, the allocation size needed to hold the DP->d_name string.
|
||||
// Use this macro when you don't need the exact length, just an upper bound.
|
||||
// This macro is less likely to require calling `strlen' than _D_EXACT_NAMLEN.
|
||||
//
|
||||
|
||||
// File types for `d_type'.
|
||||
const ( /* dirent.h:97:1: */
|
||||
DT_UNKNOWN = 0
|
||||
DT_FIFO = 1
|
||||
DT_CHR = 2
|
||||
DT_DIR = 4
|
||||
DT_BLK = 6
|
||||
DT_REG = 8
|
||||
DT_LNK = 10
|
||||
DT_SOCK = 12
|
||||
DT_WHT = 14
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
|
||||
type Size_t = uint64 /* <builtin>:9:23 */
|
||||
|
||||
type Wchar_t = int32 /* <builtin>:15:24 */
|
||||
|
||||
type X__int128_t = struct {
|
||||
Flo int64
|
||||
Fhi int64
|
||||
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
|
||||
type X__uint128_t = struct {
|
||||
Flo uint64
|
||||
Fhi uint64
|
||||
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
|
||||
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// POSIX Standard: 5.1.2 Directory Operations <dirent.h>
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// These are defined by the user (or the compiler)
|
||||
// to specify the desired environment:
|
||||
//
|
||||
// __STRICT_ANSI__ ISO Standard C.
|
||||
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
|
||||
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
|
||||
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
|
||||
// __STDC_WANT_LIB_EXT2__
|
||||
// Extensions to ISO C99 from TR 27431-2:2010.
|
||||
// __STDC_WANT_IEC_60559_BFP_EXT__
|
||||
// Extensions to ISO C11 from TS 18661-1:2014.
|
||||
// __STDC_WANT_IEC_60559_FUNCS_EXT__
|
||||
// Extensions to ISO C11 from TS 18661-4:2015.
|
||||
// __STDC_WANT_IEC_60559_TYPES_EXT__
|
||||
// Extensions to ISO C11 from TS 18661-3:2015.
|
||||
//
|
||||
// _POSIX_SOURCE IEEE Std 1003.1.
|
||||
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
|
||||
// if >=199309L, add IEEE Std 1003.1b-1993;
|
||||
// if >=199506L, add IEEE Std 1003.1c-1995;
|
||||
// if >=200112L, all of IEEE 1003.1-2004
|
||||
// if >=200809L, all of IEEE 1003.1-2008
|
||||
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
|
||||
// Single Unix conformance is wanted, to 600 for the
|
||||
// sixth revision, to 700 for the seventh revision.
|
||||
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
|
||||
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
|
||||
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
|
||||
// _FILE_OFFSET_BITS=N Select default filesystem interface.
|
||||
// _ATFILE_SOURCE Additional *at interfaces.
|
||||
// _GNU_SOURCE All of the above, plus GNU extensions.
|
||||
// _DEFAULT_SOURCE The default set of features (taking precedence over
|
||||
// __STRICT_ANSI__).
|
||||
//
|
||||
// _FORTIFY_SOURCE Add security hardening to many library functions.
|
||||
// Set to 1 or 2; 2 performs stricter checks than 1.
|
||||
//
|
||||
// _REENTRANT, _THREAD_SAFE
|
||||
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
|
||||
//
|
||||
// The `-ansi' switch to the GNU C compiler, and standards conformance
|
||||
// options such as `-std=c99', define __STRICT_ANSI__. If none of
|
||||
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
|
||||
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
|
||||
// 200809L, as well as enabling miscellaneous functions from BSD and
|
||||
// SVID. If more than one of these are defined, they accumulate. For
|
||||
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
|
||||
// give you ISO C, 1003.1, and 1003.2, but nothing else.
|
||||
//
|
||||
// These are defined by this file and are used by the
|
||||
// header files to decide what to declare or define:
|
||||
//
|
||||
// __GLIBC_USE (F) Define things from feature set F. This is defined
|
||||
// to 1 or 0; the subsequent macros are either defined
|
||||
// or undefined, and those tests should be moved to
|
||||
// __GLIBC_USE.
|
||||
// __USE_ISOC11 Define ISO C11 things.
|
||||
// __USE_ISOC99 Define ISO C99 things.
|
||||
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
|
||||
// __USE_ISOCXX11 Define ISO C++11 things.
|
||||
// __USE_POSIX Define IEEE Std 1003.1 things.
|
||||
// __USE_POSIX2 Define IEEE Std 1003.2 things.
|
||||
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
|
||||
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
|
||||
// __USE_XOPEN Define XPG things.
|
||||
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
|
||||
// __USE_UNIX98 Define Single Unix V2 things.
|
||||
// __USE_XOPEN2K Define XPG6 things.
|
||||
// __USE_XOPEN2KXSI Define XPG6 XSI things.
|
||||
// __USE_XOPEN2K8 Define XPG7 things.
|
||||
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
|
||||
// __USE_LARGEFILE Define correct standard I/O things.
|
||||
// __USE_LARGEFILE64 Define LFS things with separate names.
|
||||
// __USE_FILE_OFFSET64 Define 64bit interface as default.
|
||||
// __USE_MISC Define things from 4.3BSD or System V Unix.
|
||||
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
|
||||
// __USE_GNU Define GNU extensions.
|
||||
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
|
||||
//
|
||||
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
|
||||
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
|
||||
// only for compatibility. All new code should use the other symbols
|
||||
// to test for features.
|
||||
//
|
||||
// All macros listed above as possibly being defined by this file are
|
||||
// explicitly undefined if they are not explicitly defined.
|
||||
// Feature-test macros that are not defined by the user or compiler
|
||||
// but are implied by the other feature-test macros defined (or by the
|
||||
// lack of any definitions) are defined by the file.
|
||||
//
|
||||
// ISO C feature test macros depend on the definition of the macro
|
||||
// when an affected header is included, not when the first system
|
||||
// header is included, and so they are handled in
|
||||
// <bits/libc-header-start.h>, which does not have a multiple include
|
||||
// guard. Feature test macros that can be handled from the first
|
||||
// system header included are handled here.
|
||||
|
||||
// Undefine everything, so we get a clean slate.
|
||||
|
||||
// Suppress kernel-name space pollution unless user expressedly asks
|
||||
// for it.
|
||||
|
||||
// Convenience macro to test the version of gcc.
|
||||
// Use like this:
|
||||
// #if __GNUC_PREREQ (2,8)
|
||||
// ... code requiring gcc 2.8 or later ...
|
||||
// #endif
|
||||
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
|
||||
// added in 2.0.
|
||||
|
||||
// Similarly for clang. Features added to GCC after version 4.2 may
|
||||
// or may not also be available in clang, and clang's definitions of
|
||||
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
|
||||
// features can be queried via __has_extension/__has_feature.
|
||||
|
||||
// Whether to use feature set F.
|
||||
|
||||
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
|
||||
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
|
||||
// issue a warning; the expectation is that the source is being
|
||||
// transitioned to use the new macro.
|
||||
|
||||
// If _GNU_SOURCE was defined by the user, turn on all the other features.
|
||||
|
||||
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
|
||||
// define _DEFAULT_SOURCE.
|
||||
|
||||
// This is to enable the ISO C2X extension.
|
||||
|
||||
// This is to enable the ISO C11 extension.
|
||||
|
||||
// This is to enable the ISO C99 extension.
|
||||
|
||||
// This is to enable the ISO C90 Amendment 1:1995 extension.
|
||||
|
||||
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
|
||||
// is defined, use POSIX.1-2008 (or another version depending on
|
||||
// _XOPEN_SOURCE).
|
||||
|
||||
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
|
||||
// defined in all multithreaded code. GNU libc has not required this
|
||||
// for many years. We now treat them as compatibility synonyms for
|
||||
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
|
||||
// comprehensive support for multithreaded code. Using them never
|
||||
// lowers the selected level of POSIX conformance, only raises it.
|
||||
|
||||
// The function 'gets' existed in C89, but is impossible to use
|
||||
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
|
||||
// compatibility with various implementations of <cstdio>, this test
|
||||
// must consider only the value of __cplusplus when compiling C++.
|
||||
|
||||
// GNU formerly extended the scanf functions with modified format
|
||||
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
|
||||
// input using malloc. This extension conflicts with ISO C99, which
|
||||
// defines %a as a standalone format specifier that reads a floating-
|
||||
// point number; moreover, POSIX.1-2008 provides the same feature
|
||||
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
|
||||
//
|
||||
// We now follow C99 unless GNU extensions are active and the compiler
|
||||
// is specifically in C89 or C++98 mode (strict or not). For
|
||||
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
|
||||
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
|
||||
// old extension.
|
||||
|
||||
// Get definitions of __STDC_* predefined macros, if the compiler has
|
||||
// not preincluded this header automatically.
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// This macro indicates that the installed library is the GNU C Library.
|
||||
// For historic reasons the value now is 6 and this will stay from now
|
||||
// on. The use of this variable is deprecated. Use __GLIBC__ and
|
||||
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
|
||||
// GNU C library version and use the values in <gnu/lib-names.h> to get
|
||||
// the sonames of the shared libraries.
|
||||
|
||||
// Major and minor version number of the GNU C library package. Use
|
||||
// these macros to test for features in specific releases.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// We are almost always included from features.h.
|
||||
|
||||
// The GNU libc does not support any K&R compilers or the traditional mode
|
||||
// of ISO C compilers anymore. Check for some of the combinations not
|
||||
// anymore supported.
|
||||
|
||||
// Some user header file might have defined this before.
|
||||
|
||||
// All functions, except those with callbacks or those that
|
||||
// synchronize memory, are leaf functions.
|
||||
|
||||
// GCC can always grok prototypes. For C++ programs we add throw()
|
||||
// to help it optimize the function calls. But this works only with
|
||||
// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
|
||||
// as non-throwing using a function attribute since programs can use
|
||||
// the -fexceptions options for C code as well.
|
||||
|
||||
// Compilers that are not clang may object to
|
||||
// #if defined __clang__ && __has_extension(...)
|
||||
// even though they do not need to evaluate the right-hand side of the &&.
|
||||
|
||||
// These two macros are not used in glibc anymore. They are kept here
|
||||
// only because some other projects expect the macros to be defined.
|
||||
|
||||
// For these things, GCC behaves the ANSI way normally,
|
||||
// and the non-ANSI way under -traditional.
|
||||
|
||||
// This is not a typedef so `const __ptr_t' does the right thing.
|
||||
|
||||
// C++ needs to know that types and declarations are C, not C++.
|
||||
|
||||
// Fortify support.
|
||||
|
||||
// Support for flexible arrays.
|
||||
// Headers that should use flexible arrays only if they're "real"
|
||||
// (e.g. only if they won't affect sizeof()) should test
|
||||
// #if __glibc_c99_flexarr_available.
|
||||
|
||||
// __asm__ ("xyz") is used throughout the headers to rename functions
|
||||
// at the assembly language level. This is wrapped by the __REDIRECT
|
||||
// macro, in order to support compilers that can do this some other
|
||||
// way. When compilers don't support asm-names at all, we have to do
|
||||
// preprocessor tricks instead (which don't have exactly the right
|
||||
// semantics, but it's the best we can do).
|
||||
//
|
||||
// Example:
|
||||
// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
|
||||
|
||||
//
|
||||
// #elif __SOME_OTHER_COMPILER__
|
||||
//
|
||||
// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
|
||||
|
||||
// GCC has various useful declarations that can be made with the
|
||||
// `__attribute__' syntax. All of the ways we use this do fine if
|
||||
// they are omitted for compilers that don't understand it.
|
||||
|
||||
// At some point during the gcc 2.96 development the `malloc' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
|
||||
// Tell the compiler which arguments to an allocation function
|
||||
// indicate the size of the allocation.
|
||||
|
||||
// At some point during the gcc 2.96 development the `pure' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
|
||||
// This declaration tells the compiler that the value is constant.
|
||||
|
||||
// At some point during the gcc 3.1 development the `used' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
|
||||
// Since version 3.2, gcc allows marking deprecated functions.
|
||||
|
||||
// Since version 4.5, gcc also allows one to specify the message printed
|
||||
// when a deprecated function is used. clang claims to be gcc 4.2, but
|
||||
// may also support this feature.
|
||||
|
||||
// At some point during the gcc 2.8 development the `format_arg' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
// If several `format_arg' attributes are given for the same function, in
|
||||
// gcc-3.0 and older, all but the last one are ignored. In newer gccs,
|
||||
// all designated arguments are considered.
|
||||
|
||||
// At some point during the gcc 2.97 development the `strfmon' format
|
||||
// attribute for functions was introduced. We don't want to use it
|
||||
// unconditionally (although this would be possible) since it
|
||||
// generates warnings.
|
||||
|
||||
// The nonull function attribute allows to mark pointer parameters which
|
||||
// must not be NULL.
|
||||
|
||||
// If fortification mode, we warn about unused results of certain
|
||||
// function calls which can lead to problems.
|
||||
|
||||
// Forces a function to be always inlined.
|
||||
// The Linux kernel defines __always_inline in stddef.h (283d7573), and
|
||||
// it conflicts with this definition. Therefore undefine it first to
|
||||
// allow either header to be included first.
|
||||
|
||||
// Associate error messages with the source location of the call site rather
|
||||
// than with the source location inside the function.
|
||||
|
||||
// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
|
||||
// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
|
||||
// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
|
||||
// older than 4.3 may define these macros and still not guarantee GNU inlining
|
||||
// semantics.
|
||||
//
|
||||
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
|
||||
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
|
||||
// __GNUC_GNU_INLINE__ macro definitions.
|
||||
|
||||
// GCC 4.3 and above allow passing all anonymous arguments of an
|
||||
// __extern_always_inline function to some other vararg function.
|
||||
|
||||
// It is possible to compile containing GCC extensions even if GCC is
|
||||
// run in pedantic mode if the uses are carefully marked using the
|
||||
// `__extension__' keyword. But this is not generally available before
|
||||
// version 2.8.
|
||||
|
||||
// __restrict is known in EGCS 1.2 and above.
|
||||
|
||||
// ISO C99 also allows to declare arrays as non-overlapping. The syntax is
|
||||
// array_name[restrict]
|
||||
// GCC 3.1 supports this.
|
||||
|
||||
// Describes a char array whose address can safely be passed as the first
|
||||
// argument to strncpy and strncat, as the char array is not necessarily
|
||||
// a NUL-terminated string.
|
||||
|
||||
// Undefine (also defined in libc-symbols.h).
|
||||
// Copies attributes from the declaration or type referenced by
|
||||
// the argument.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// Both x86-64 and x32 use the 64-bit system call interface.
|
||||
// Properties of long double type. ldbl-96 version.
|
||||
// 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
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License 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/>.
|
||||
|
||||
// long double is distinct from double, so there is nothing to
|
||||
// define here.
|
||||
|
||||
// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
|
||||
// intended for use in preprocessor macros.
|
||||
//
|
||||
// Note: MESSAGE must be a _single_ string; concatenation of string
|
||||
// literals is not supported.
|
||||
|
||||
// Generic selection (ISO C11) is a C-only feature, available in GCC
|
||||
// since version 4.9. Previous versions do not provide generic
|
||||
// selection, even though they might set __STDC_VERSION__ to 201112L,
|
||||
// when in -std=c11 mode. Thus, we must check for !defined __GNUC__
|
||||
// when testing __STDC_VERSION__ for generic selection support.
|
||||
// On the other hand, Clang also defines __GNUC__, so a clang-specific
|
||||
// check is required to enable the use of generic selection.
|
||||
|
||||
// If we don't have __REDIRECT, prototypes will be missing if
|
||||
// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
|
||||
|
||||
// Decide whether we can define 'extern inline' functions in headers.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
|
||||
// <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
|
||||
// that will always return failure (and set errno to ENOSYS).
|
||||
// This file is automatically generated.
|
||||
// This file selects the right generated file of `__stub_FUNCTION' macros
|
||||
// based on the architecture being compiled for.
|
||||
|
||||
// This file is automatically generated.
|
||||
// It defines a symbol `__stub_FUNCTION' for each function
|
||||
// in the C library which is a stub, meaning it will fail
|
||||
// every time called, usually setting errno to ENOSYS.
|
||||
|
||||
// bits/types.h -- definitions of __*_t types underlying *_t types.
|
||||
// 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.
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// Both x86-64 and x32 use the 64-bit system call interface.
|
||||
// Bit size of the time_t type at glibc build time, x86-64 and x32 case.
|
||||
// Copyright (C) 2018-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/>.
|
||||
|
||||
// For others, time size is word size.
|
||||
|
||||
// Convenience types.
|
||||
type X__u_char = uint8 /* types.h:31:23 */
|
||||
type X__u_short = uint16 /* types.h:32:28 */
|
||||
type X__u_int = uint32 /* types.h:33:22 */
|
||||
type X__u_long = uint64 /* types.h:34:27 */
|
||||
|
||||
// Fixed-size types, underlying types depend on word size and compiler.
|
||||
type X__int8_t = int8 /* types.h:37:21 */
|
||||
type X__uint8_t = uint8 /* types.h:38:23 */
|
||||
type X__int16_t = int16 /* types.h:39:26 */
|
||||
type X__uint16_t = uint16 /* types.h:40:28 */
|
||||
type X__int32_t = int32 /* types.h:41:20 */
|
||||
type X__uint32_t = uint32 /* types.h:42:22 */
|
||||
type X__int64_t = int64 /* types.h:44:25 */
|
||||
type X__uint64_t = uint64 /* types.h:45:27 */
|
||||
|
||||
// Smallest types with at least a given width.
|
||||
type X__int_least8_t = X__int8_t /* types.h:52:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:54:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:56:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:58:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
|
||||
|
||||
// quad_t is also 64 bits.
|
||||
type X__quad_t = int64 /* types.h:63:18 */
|
||||
type X__u_quad_t = uint64 /* types.h:64:27 */
|
||||
|
||||
// Largest integral types.
|
||||
type X__intmax_t = int64 /* types.h:72:18 */
|
||||
type X__uintmax_t = uint64 /* types.h:73:27 */
|
||||
|
||||
// The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
|
||||
// macros for each of the OS types we define below. The definitions
|
||||
// of those macros must use the following macros for underlying types.
|
||||
// We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
|
||||
// variants of each of the following integer types on this machine.
|
||||
//
|
||||
// 16 -- "natural" 16-bit type (always short)
|
||||
// 32 -- "natural" 32-bit type (always int)
|
||||
// 64 -- "natural" 64-bit type (long or long long)
|
||||
// LONG32 -- 32-bit type, traditionally long
|
||||
// QUAD -- 64-bit type, traditionally long long
|
||||
// WORD -- natural type of __WORDSIZE bits (int or long)
|
||||
// LONGWORD -- type of __WORDSIZE bits, traditionally long
|
||||
//
|
||||
// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
|
||||
// conventional uses of `long' or `long long' type modifiers match the
|
||||
// types we define, even when a less-adorned type would be the same size.
|
||||
// This matters for (somewhat) portably writing printf/scanf formats for
|
||||
// these types, where using the appropriate l or ll format modifiers can
|
||||
// make the typedefs and the formats match up across all GNU platforms. If
|
||||
// we used `long' when it's 64 bits where `long long' is expected, then the
|
||||
// compiler would warn about the formats not matching the argument types,
|
||||
// and the programmer changing them to shut up the compiler would break the
|
||||
// program's portability.
|
||||
//
|
||||
// Here we assume what is presently the case in all the GCC configurations
|
||||
// we support: long long is always 64 bits, long is always word/address size,
|
||||
// and int is always 32 bits.
|
||||
|
||||
// No need to mark the typedef with __extension__.
|
||||
// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version.
|
||||
// Copyright (C) 2012-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/>.
|
||||
|
||||
// See <bits/types.h> for the meaning of these macros. This file exists so
|
||||
// that <bits/types.h> need not vary across different GNU platforms.
|
||||
|
||||
// X32 kernel interface is 64-bit.
|
||||
|
||||
// Tell the libc code that off_t and off64_t are actually the same type
|
||||
// for all ABI purposes, even if possibly expressed as different base types
|
||||
// for C type-checking purposes.
|
||||
|
||||
// Same for ino_t and ino64_t.
|
||||
|
||||
// And for __rlim_t and __rlim64_t.
|
||||
|
||||
// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
|
||||
|
||||
// Number of descriptors that can fit in an `fd_set'.
|
||||
|
||||
// bits/time64.h -- underlying types for __time64_t. Generic version.
|
||||
// Copyright (C) 2018-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/>.
|
||||
|
||||
// Define __TIME64_T_TYPE so that it is always a 64-bit type.
|
||||
|
||||
// If we already have 64-bit time type then use it.
|
||||
|
||||
type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts.
|
||||
type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
|
||||
type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
|
||||
|
||||
// Clock ID used in clock and timer functions.
|
||||
type X__clockid_t = int32 /* types.h:168:29 */
|
||||
|
||||
// Timer ID returned by `timer_create'.
|
||||
type X__timer_t = uintptr /* types.h:171:12 */
|
||||
|
||||
// Type to represent block size.
|
||||
type X__blksize_t = int64 /* types.h:174:29 */
|
||||
|
||||
// Types from the Large File Support interface.
|
||||
|
||||
// Type to count number of disk blocks.
|
||||
type X__blkcnt_t = int64 /* types.h:179:28 */
|
||||
type X__blkcnt64_t = int64 /* types.h:180:30 */
|
||||
|
||||
// Type to count file system blocks.
|
||||
type X__fsblkcnt_t = uint64 /* types.h:183:30 */
|
||||
type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
|
||||
|
||||
// Type to count file system nodes.
|
||||
type X__fsfilcnt_t = uint64 /* types.h:187:30 */
|
||||
type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
|
||||
|
||||
// Type of miscellaneous file system fields.
|
||||
type X__fsword_t = int64 /* types.h:191:28 */
|
||||
|
||||
type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
|
||||
|
||||
// Signed long type used in system calls.
|
||||
type X__syscall_slong_t = int64 /* types.h:196:33 */
|
||||
// Unsigned long type used in system calls.
|
||||
type X__syscall_ulong_t = uint64 /* types.h:198:33 */
|
||||
|
||||
// These few don't really vary by system, they always correspond
|
||||
//
|
||||
// to one of the other defined types.
|
||||
type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:203:14 */
|
||||
|
||||
// Duplicates info from stdint.h but this is used in unistd.h.
|
||||
type X__intptr_t = int64 /* types.h:206:25 */
|
||||
|
||||
// Duplicate info from sys/socket.h.
|
||||
type X__socklen_t = uint32 /* types.h:209:23 */
|
||||
|
||||
// C99: An integer type that can be accessed as an atomic entity,
|
||||
//
|
||||
// even in the presence of asynchronous interrupts.
|
||||
// It is not currently necessary for this to be machine-specific.
|
||||
type X__sig_atomic_t = int32 /* types.h:214:13 */
|
||||
|
||||
// Seconds since the Epoch, visible to user code when time_t is too
|
||||
// narrow only for consistency with the old way of widening too-narrow
|
||||
// types. User code should never use __time64_t.
|
||||
|
||||
// This file defines `struct dirent'.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_NAMLEN' iff there is a `d_namlen'
|
||||
// member that gives the length of `d_name'.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_RECLEN' iff there is a `d_reclen'
|
||||
// member that gives the size of the entire directory entry.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_OFF' iff there is a `d_off'
|
||||
// member that gives the file offset of the next directory entry.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_TYPE' iff there is a `d_type'
|
||||
// member that gives the type of the file.
|
||||
//
|
||||
|
||||
// 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
|
||||
// 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 Dirent = struct {
|
||||
Fd_ino X__ino64_t
|
||||
Fd_off X__off64_t
|
||||
Fd_reclen uint16
|
||||
Fd_type uint8
|
||||
Fd_name [256]int8
|
||||
F__ccgo_pad1 [5]byte
|
||||
} /* dirent.h:22:1 */
|
||||
|
||||
// System-specific extensions of <dirent.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/>.
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
922
dirent/dirent_linux_ppc64le.go
Normal file
922
dirent/dirent_linux_ppc64le.go
Normal file
|
@ -0,0 +1,922 @@
|
|||
// Code generated by 'ccgo dirent/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o dirent/dirent_linux_ppc64le.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
import (
|
||||
"math"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ = math.Pi
|
||||
var _ reflect.Kind
|
||||
var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
AIO_PRIO_DELTA_MAX = 20 // local_lim.h:78:1:
|
||||
DELAYTIMER_MAX = 2147483647 // local_lim.h:85:1:
|
||||
HOST_NAME_MAX = 64 // local_lim.h:94:1:
|
||||
LOGIN_NAME_MAX = 256 // local_lim.h:91:1:
|
||||
MAXNAMLEN = 255 // dirent.h:237:1:
|
||||
MAX_CANON = 255 // limits.h:10:1:
|
||||
MAX_INPUT = 255 // limits.h:11:1:
|
||||
MQ_PRIO_MAX = 32768 // local_lim.h:97:1:
|
||||
NAME_MAX = 255 // limits.h:12:1:
|
||||
NGROUPS_MAX = 65536 // limits.h:7:1:
|
||||
PATH_MAX = 4096 // limits.h:13:1:
|
||||
PIPE_BUF = 4096 // limits.h:14:1:
|
||||
PTHREAD_DESTRUCTOR_ITERATIONS = 4 // local_lim.h:69:1:
|
||||
PTHREAD_KEYS_MAX = 1024 // local_lim.h:64:1:
|
||||
PTHREAD_STACK_MIN = 131072 // local_lim.h:82:1:
|
||||
RTSIG_MAX = 32 // limits.h:19:1:
|
||||
SEM_VALUE_MAX = 2147483647 // local_lim.h:100:1:
|
||||
TTY_NAME_MAX = 32 // local_lim.h:88:1:
|
||||
XATTR_LIST_MAX = 65536 // limits.h:17:1:
|
||||
XATTR_NAME_MAX = 255 // limits.h:15:1:
|
||||
XATTR_SIZE_MAX = 65536 // limits.h:16:1:
|
||||
X_ARCH_PPC = 1 // <predefined>:198:1:
|
||||
X_ARCH_PPC64 = 1 // <predefined>:402:1:
|
||||
X_ARCH_PPCGR = 1 // <predefined>:15:1:
|
||||
X_ARCH_PPCSQ = 1 // <predefined>:43:1:
|
||||
X_ARCH_PWR4 = 1 // <predefined>:381:1:
|
||||
X_ARCH_PWR5 = 1 // <predefined>:90:1:
|
||||
X_ARCH_PWR5X = 1 // <predefined>:137:1:
|
||||
X_ARCH_PWR6 = 1 // <predefined>:91:1:
|
||||
X_ARCH_PWR7 = 1 // <predefined>:92:1:
|
||||
X_ARCH_PWR8 = 1 // <predefined>:93:1:
|
||||
X_ATFILE_SOURCE = 1 // features.h:342:1:
|
||||
X_BITS_POSIX1_LIM_H = 1 // posix1_lim.h:25:1:
|
||||
X_BITS_TIME64_H = 1 // time64.h:24:1:
|
||||
X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1:
|
||||
X_BITS_TYPES_H = 1 // types.h:24:1:
|
||||
X_BSD_SIZE_T_ = 0 // stddef.h:189:1:
|
||||
X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1:
|
||||
X_CALL_ELF = 2 // <predefined>:415:1:
|
||||
X_CALL_LINUX = 1 // <predefined>:123:1:
|
||||
X_DEFAULT_SOURCE = 1 // features.h:227:1:
|
||||
X_DIRENT_H = 1 // dirent.h:23:1:
|
||||
X_DIRENT_HAVE_D_OFF = 0 // dirent.h:51:1:
|
||||
X_DIRENT_HAVE_D_RECLEN = 0 // dirent.h:50:1:
|
||||
X_DIRENT_HAVE_D_TYPE = 0 // dirent.h:52:1:
|
||||
X_DIRENT_MATCHES_DIRENT64 = 1 // dirent.h:56:1:
|
||||
X_FEATURES_H = 1 // features.h:19:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_GCC_SIZE_T = 0 // stddef.h:195:1:
|
||||
X_LINUX_LIMITS_H = 0 // limits.h:3:1:
|
||||
X_LITTLE_ENDIAN = 1 // <predefined>:37:1:
|
||||
X_LP64 = 1 // <predefined>:335:1:
|
||||
X_POSIX_AIO_LISTIO_MAX = 2 // posix1_lim.h:32:1:
|
||||
X_POSIX_AIO_MAX = 1 // posix1_lim.h:35:1:
|
||||
X_POSIX_ARG_MAX = 4096 // posix1_lim.h:38:1:
|
||||
X_POSIX_CHILD_MAX = 25 // posix1_lim.h:42:1:
|
||||
X_POSIX_CLOCKRES_MIN = 20000000 // posix1_lim.h:157:1:
|
||||
X_POSIX_C_SOURCE = 200809 // features.h:281:1:
|
||||
X_POSIX_DELAYTIMER_MAX = 32 // posix1_lim.h:48:1:
|
||||
X_POSIX_HOST_NAME_MAX = 255 // posix1_lim.h:52:1:
|
||||
X_POSIX_LINK_MAX = 8 // posix1_lim.h:55:1:
|
||||
X_POSIX_LOGIN_NAME_MAX = 9 // posix1_lim.h:58:1:
|
||||
X_POSIX_MAX_CANON = 255 // posix1_lim.h:61:1:
|
||||
X_POSIX_MAX_INPUT = 255 // posix1_lim.h:65:1:
|
||||
X_POSIX_MQ_OPEN_MAX = 8 // posix1_lim.h:68:1:
|
||||
X_POSIX_MQ_PRIO_MAX = 32 // posix1_lim.h:71:1:
|
||||
X_POSIX_NAME_MAX = 14 // posix1_lim.h:74:1:
|
||||
X_POSIX_NGROUPS_MAX = 8 // posix1_lim.h:78:1:
|
||||
X_POSIX_OPEN_MAX = 20 // posix1_lim.h:85:1:
|
||||
X_POSIX_PATH_MAX = 256 // posix1_lim.h:97:1:
|
||||
X_POSIX_PIPE_BUF = 512 // posix1_lim.h:100:1:
|
||||
X_POSIX_RE_DUP_MAX = 255 // posix1_lim.h:104:1:
|
||||
X_POSIX_RTSIG_MAX = 8 // posix1_lim.h:107:1:
|
||||
X_POSIX_SEM_NSEMS_MAX = 256 // posix1_lim.h:110:1:
|
||||
X_POSIX_SEM_VALUE_MAX = 32767 // posix1_lim.h:113:1:
|
||||
X_POSIX_SIGQUEUE_MAX = 32 // posix1_lim.h:116:1:
|
||||
X_POSIX_SOURCE = 1 // features.h:279:1:
|
||||
X_POSIX_SSIZE_MAX = 32767 // posix1_lim.h:119:1:
|
||||
X_POSIX_STREAM_MAX = 8 // posix1_lim.h:122:1:
|
||||
X_POSIX_SYMLINK_MAX = 255 // posix1_lim.h:125:1:
|
||||
X_POSIX_SYMLOOP_MAX = 8 // posix1_lim.h:129:1:
|
||||
X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4 // local_lim.h:67:1:
|
||||
X_POSIX_THREAD_KEYS_MAX = 128 // local_lim.h:62:1:
|
||||
X_POSIX_THREAD_THREADS_MAX = 64 // local_lim.h:72:1:
|
||||
X_POSIX_TIMER_MAX = 32 // posix1_lim.h:132:1:
|
||||
X_POSIX_TTY_NAME_MAX = 9 // posix1_lim.h:135:1:
|
||||
X_POSIX_TZNAME_MAX = 6 // posix1_lim.h:139:1:
|
||||
X_SIZET_ = 0 // stddef.h:196:1:
|
||||
X_SIZE_T = 0 // stddef.h:183:1:
|
||||
X_SIZE_T_ = 0 // stddef.h:188:1:
|
||||
X_SIZE_T_DECLARED = 0 // stddef.h:193:1:
|
||||
X_SIZE_T_DEFINED = 0 // stddef.h:191:1:
|
||||
X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1:
|
||||
X_STDC_PREDEF_H = 1 // <predefined>:203:1:
|
||||
X_SYS_CDEFS_H = 1 // cdefs.h:19:1:
|
||||
X_SYS_SIZE_T_H = 0 // stddef.h:184:1:
|
||||
X_T_SIZE = 0 // stddef.h:186:1:
|
||||
X_T_SIZE_ = 0 // stddef.h:185:1:
|
||||
Linux = 1 // <predefined>:263:1:
|
||||
Unix = 1 // <predefined>:222:1:
|
||||
)
|
||||
|
||||
// Inform libc code that these two types are effectively identical.
|
||||
|
||||
// These macros extract size information from a `struct dirent *'.
|
||||
// They may evaluate their argument multiple times, so it must not
|
||||
// have side effects. Each of these may involve a relatively costly
|
||||
// call to `strlen' on some systems, so these values should be cached.
|
||||
//
|
||||
// _D_EXACT_NAMLEN (DP) returns the length of DP->d_name, not including
|
||||
// its terminating null character.
|
||||
//
|
||||
// _D_ALLOC_NAMLEN (DP) returns a size at least (_D_EXACT_NAMLEN (DP) + 1);
|
||||
// that is, the allocation size needed to hold the DP->d_name string.
|
||||
// Use this macro when you don't need the exact length, just an upper bound.
|
||||
// This macro is less likely to require calling `strlen' than _D_EXACT_NAMLEN.
|
||||
//
|
||||
|
||||
// File types for `d_type'.
|
||||
const ( /* dirent.h:97:1: */
|
||||
DT_UNKNOWN = 0
|
||||
DT_FIFO = 1
|
||||
DT_CHR = 2
|
||||
DT_DIR = 4
|
||||
DT_BLK = 6
|
||||
DT_REG = 8
|
||||
DT_LNK = 10
|
||||
DT_SOCK = 12
|
||||
DT_WHT = 14
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
|
||||
type Size_t = uint64 /* <builtin>:9:23 */
|
||||
|
||||
type Wchar_t = int32 /* <builtin>:15:24 */
|
||||
|
||||
type X__int128_t = struct {
|
||||
Flo int64
|
||||
Fhi int64
|
||||
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
|
||||
type X__uint128_t = struct {
|
||||
Flo uint64
|
||||
Fhi uint64
|
||||
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
|
||||
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__ieee128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// POSIX Standard: 5.1.2 Directory Operations <dirent.h>
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// These are defined by the user (or the compiler)
|
||||
// to specify the desired environment:
|
||||
//
|
||||
// __STRICT_ANSI__ ISO Standard C.
|
||||
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
|
||||
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
|
||||
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
|
||||
// __STDC_WANT_LIB_EXT2__
|
||||
// Extensions to ISO C99 from TR 27431-2:2010.
|
||||
// __STDC_WANT_IEC_60559_BFP_EXT__
|
||||
// Extensions to ISO C11 from TS 18661-1:2014.
|
||||
// __STDC_WANT_IEC_60559_FUNCS_EXT__
|
||||
// Extensions to ISO C11 from TS 18661-4:2015.
|
||||
// __STDC_WANT_IEC_60559_TYPES_EXT__
|
||||
// Extensions to ISO C11 from TS 18661-3:2015.
|
||||
//
|
||||
// _POSIX_SOURCE IEEE Std 1003.1.
|
||||
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
|
||||
// if >=199309L, add IEEE Std 1003.1b-1993;
|
||||
// if >=199506L, add IEEE Std 1003.1c-1995;
|
||||
// if >=200112L, all of IEEE 1003.1-2004
|
||||
// if >=200809L, all of IEEE 1003.1-2008
|
||||
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
|
||||
// Single Unix conformance is wanted, to 600 for the
|
||||
// sixth revision, to 700 for the seventh revision.
|
||||
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
|
||||
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
|
||||
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
|
||||
// _FILE_OFFSET_BITS=N Select default filesystem interface.
|
||||
// _ATFILE_SOURCE Additional *at interfaces.
|
||||
// _GNU_SOURCE All of the above, plus GNU extensions.
|
||||
// _DEFAULT_SOURCE The default set of features (taking precedence over
|
||||
// __STRICT_ANSI__).
|
||||
//
|
||||
// _FORTIFY_SOURCE Add security hardening to many library functions.
|
||||
// Set to 1 or 2; 2 performs stricter checks than 1.
|
||||
//
|
||||
// _REENTRANT, _THREAD_SAFE
|
||||
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
|
||||
//
|
||||
// The `-ansi' switch to the GNU C compiler, and standards conformance
|
||||
// options such as `-std=c99', define __STRICT_ANSI__. If none of
|
||||
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
|
||||
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
|
||||
// 200809L, as well as enabling miscellaneous functions from BSD and
|
||||
// SVID. If more than one of these are defined, they accumulate. For
|
||||
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
|
||||
// give you ISO C, 1003.1, and 1003.2, but nothing else.
|
||||
//
|
||||
// These are defined by this file and are used by the
|
||||
// header files to decide what to declare or define:
|
||||
//
|
||||
// __GLIBC_USE (F) Define things from feature set F. This is defined
|
||||
// to 1 or 0; the subsequent macros are either defined
|
||||
// or undefined, and those tests should be moved to
|
||||
// __GLIBC_USE.
|
||||
// __USE_ISOC11 Define ISO C11 things.
|
||||
// __USE_ISOC99 Define ISO C99 things.
|
||||
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
|
||||
// __USE_ISOCXX11 Define ISO C++11 things.
|
||||
// __USE_POSIX Define IEEE Std 1003.1 things.
|
||||
// __USE_POSIX2 Define IEEE Std 1003.2 things.
|
||||
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
|
||||
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
|
||||
// __USE_XOPEN Define XPG things.
|
||||
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
|
||||
// __USE_UNIX98 Define Single Unix V2 things.
|
||||
// __USE_XOPEN2K Define XPG6 things.
|
||||
// __USE_XOPEN2KXSI Define XPG6 XSI things.
|
||||
// __USE_XOPEN2K8 Define XPG7 things.
|
||||
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
|
||||
// __USE_LARGEFILE Define correct standard I/O things.
|
||||
// __USE_LARGEFILE64 Define LFS things with separate names.
|
||||
// __USE_FILE_OFFSET64 Define 64bit interface as default.
|
||||
// __USE_MISC Define things from 4.3BSD or System V Unix.
|
||||
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
|
||||
// __USE_GNU Define GNU extensions.
|
||||
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
|
||||
//
|
||||
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
|
||||
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
|
||||
// only for compatibility. All new code should use the other symbols
|
||||
// to test for features.
|
||||
//
|
||||
// All macros listed above as possibly being defined by this file are
|
||||
// explicitly undefined if they are not explicitly defined.
|
||||
// Feature-test macros that are not defined by the user or compiler
|
||||
// but are implied by the other feature-test macros defined (or by the
|
||||
// lack of any definitions) are defined by the file.
|
||||
//
|
||||
// ISO C feature test macros depend on the definition of the macro
|
||||
// when an affected header is included, not when the first system
|
||||
// header is included, and so they are handled in
|
||||
// <bits/libc-header-start.h>, which does not have a multiple include
|
||||
// guard. Feature test macros that can be handled from the first
|
||||
// system header included are handled here.
|
||||
|
||||
// Undefine everything, so we get a clean slate.
|
||||
|
||||
// Suppress kernel-name space pollution unless user expressedly asks
|
||||
// for it.
|
||||
|
||||
// Convenience macro to test the version of gcc.
|
||||
// Use like this:
|
||||
// #if __GNUC_PREREQ (2,8)
|
||||
// ... code requiring gcc 2.8 or later ...
|
||||
// #endif
|
||||
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
|
||||
// added in 2.0.
|
||||
|
||||
// Similarly for clang. Features added to GCC after version 4.2 may
|
||||
// or may not also be available in clang, and clang's definitions of
|
||||
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
|
||||
// features can be queried via __has_extension/__has_feature.
|
||||
|
||||
// Whether to use feature set F.
|
||||
|
||||
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
|
||||
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
|
||||
// issue a warning; the expectation is that the source is being
|
||||
// transitioned to use the new macro.
|
||||
|
||||
// If _GNU_SOURCE was defined by the user, turn on all the other features.
|
||||
|
||||
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
|
||||
// define _DEFAULT_SOURCE.
|
||||
|
||||
// This is to enable the ISO C2X extension.
|
||||
|
||||
// This is to enable the ISO C11 extension.
|
||||
|
||||
// This is to enable the ISO C99 extension.
|
||||
|
||||
// This is to enable the ISO C90 Amendment 1:1995 extension.
|
||||
|
||||
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
|
||||
// is defined, use POSIX.1-2008 (or another version depending on
|
||||
// _XOPEN_SOURCE).
|
||||
|
||||
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
|
||||
// defined in all multithreaded code. GNU libc has not required this
|
||||
// for many years. We now treat them as compatibility synonyms for
|
||||
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
|
||||
// comprehensive support for multithreaded code. Using them never
|
||||
// lowers the selected level of POSIX conformance, only raises it.
|
||||
|
||||
// The function 'gets' existed in C89, but is impossible to use
|
||||
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
|
||||
// compatibility with various implementations of <cstdio>, this test
|
||||
// must consider only the value of __cplusplus when compiling C++.
|
||||
|
||||
// GNU formerly extended the scanf functions with modified format
|
||||
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
|
||||
// input using malloc. This extension conflicts with ISO C99, which
|
||||
// defines %a as a standalone format specifier that reads a floating-
|
||||
// point number; moreover, POSIX.1-2008 provides the same feature
|
||||
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
|
||||
//
|
||||
// We now follow C99 unless GNU extensions are active and the compiler
|
||||
// is specifically in C89 or C++98 mode (strict or not). For
|
||||
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
|
||||
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
|
||||
// old extension.
|
||||
|
||||
// Get definitions of __STDC_* predefined macros, if the compiler has
|
||||
// not preincluded this header automatically.
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// This macro indicates that the installed library is the GNU C Library.
|
||||
// For historic reasons the value now is 6 and this will stay from now
|
||||
// on. The use of this variable is deprecated. Use __GLIBC__ and
|
||||
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
|
||||
// GNU C library version and use the values in <gnu/lib-names.h> to get
|
||||
// the sonames of the shared libraries.
|
||||
|
||||
// Major and minor version number of the GNU C library package. Use
|
||||
// these macros to test for features in specific releases.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// We are almost always included from features.h.
|
||||
|
||||
// The GNU libc does not support any K&R compilers or the traditional mode
|
||||
// of ISO C compilers anymore. Check for some of the combinations not
|
||||
// anymore supported.
|
||||
|
||||
// Some user header file might have defined this before.
|
||||
|
||||
// All functions, except those with callbacks or those that
|
||||
// synchronize memory, are leaf functions.
|
||||
|
||||
// GCC can always grok prototypes. For C++ programs we add throw()
|
||||
// to help it optimize the function calls. But this works only with
|
||||
// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
|
||||
// as non-throwing using a function attribute since programs can use
|
||||
// the -fexceptions options for C code as well.
|
||||
|
||||
// Compilers that are not clang may object to
|
||||
// #if defined __clang__ && __has_extension(...)
|
||||
// even though they do not need to evaluate the right-hand side of the &&.
|
||||
|
||||
// These two macros are not used in glibc anymore. They are kept here
|
||||
// only because some other projects expect the macros to be defined.
|
||||
|
||||
// For these things, GCC behaves the ANSI way normally,
|
||||
// and the non-ANSI way under -traditional.
|
||||
|
||||
// This is not a typedef so `const __ptr_t' does the right thing.
|
||||
|
||||
// C++ needs to know that types and declarations are C, not C++.
|
||||
|
||||
// Fortify support.
|
||||
|
||||
// Support for flexible arrays.
|
||||
// Headers that should use flexible arrays only if they're "real"
|
||||
// (e.g. only if they won't affect sizeof()) should test
|
||||
// #if __glibc_c99_flexarr_available.
|
||||
|
||||
// __asm__ ("xyz") is used throughout the headers to rename functions
|
||||
// at the assembly language level. This is wrapped by the __REDIRECT
|
||||
// macro, in order to support compilers that can do this some other
|
||||
// way. When compilers don't support asm-names at all, we have to do
|
||||
// preprocessor tricks instead (which don't have exactly the right
|
||||
// semantics, but it's the best we can do).
|
||||
//
|
||||
// Example:
|
||||
// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
|
||||
|
||||
//
|
||||
// #elif __SOME_OTHER_COMPILER__
|
||||
//
|
||||
// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
|
||||
|
||||
// GCC has various useful declarations that can be made with the
|
||||
// `__attribute__' syntax. All of the ways we use this do fine if
|
||||
// they are omitted for compilers that don't understand it.
|
||||
|
||||
// At some point during the gcc 2.96 development the `malloc' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
|
||||
// Tell the compiler which arguments to an allocation function
|
||||
// indicate the size of the allocation.
|
||||
|
||||
// At some point during the gcc 2.96 development the `pure' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
|
||||
// This declaration tells the compiler that the value is constant.
|
||||
|
||||
// At some point during the gcc 3.1 development the `used' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
|
||||
// Since version 3.2, gcc allows marking deprecated functions.
|
||||
|
||||
// Since version 4.5, gcc also allows one to specify the message printed
|
||||
// when a deprecated function is used. clang claims to be gcc 4.2, but
|
||||
// may also support this feature.
|
||||
|
||||
// At some point during the gcc 2.8 development the `format_arg' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
// If several `format_arg' attributes are given for the same function, in
|
||||
// gcc-3.0 and older, all but the last one are ignored. In newer gccs,
|
||||
// all designated arguments are considered.
|
||||
|
||||
// At some point during the gcc 2.97 development the `strfmon' format
|
||||
// attribute for functions was introduced. We don't want to use it
|
||||
// unconditionally (although this would be possible) since it
|
||||
// generates warnings.
|
||||
|
||||
// The nonull function attribute allows to mark pointer parameters which
|
||||
// must not be NULL.
|
||||
|
||||
// If fortification mode, we warn about unused results of certain
|
||||
// function calls which can lead to problems.
|
||||
|
||||
// Forces a function to be always inlined.
|
||||
// The Linux kernel defines __always_inline in stddef.h (283d7573), and
|
||||
// it conflicts with this definition. Therefore undefine it first to
|
||||
// allow either header to be included first.
|
||||
|
||||
// Associate error messages with the source location of the call site rather
|
||||
// than with the source location inside the function.
|
||||
|
||||
// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
|
||||
// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
|
||||
// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
|
||||
// older than 4.3 may define these macros and still not guarantee GNU inlining
|
||||
// semantics.
|
||||
//
|
||||
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
|
||||
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
|
||||
// __GNUC_GNU_INLINE__ macro definitions.
|
||||
|
||||
// GCC 4.3 and above allow passing all anonymous arguments of an
|
||||
// __extern_always_inline function to some other vararg function.
|
||||
|
||||
// It is possible to compile containing GCC extensions even if GCC is
|
||||
// run in pedantic mode if the uses are carefully marked using the
|
||||
// `__extension__' keyword. But this is not generally available before
|
||||
// version 2.8.
|
||||
|
||||
// __restrict is known in EGCS 1.2 and above.
|
||||
|
||||
// ISO C99 also allows to declare arrays as non-overlapping. The syntax is
|
||||
// array_name[restrict]
|
||||
// GCC 3.1 supports this.
|
||||
|
||||
// Describes a char array whose address can safely be passed as the first
|
||||
// argument to strncpy and strncat, as the char array is not necessarily
|
||||
// a NUL-terminated string.
|
||||
|
||||
// Undefine (also defined in libc-symbols.h).
|
||||
// Copies attributes from the declaration or type referenced by
|
||||
// the argument.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// Properties of long double type. ldbl-opt version.
|
||||
// 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
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License 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/>.
|
||||
|
||||
// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
|
||||
// intended for use in preprocessor macros.
|
||||
//
|
||||
// Note: MESSAGE must be a _single_ string; concatenation of string
|
||||
// literals is not supported.
|
||||
|
||||
// Generic selection (ISO C11) is a C-only feature, available in GCC
|
||||
// since version 4.9. Previous versions do not provide generic
|
||||
// selection, even though they might set __STDC_VERSION__ to 201112L,
|
||||
// when in -std=c11 mode. Thus, we must check for !defined __GNUC__
|
||||
// when testing __STDC_VERSION__ for generic selection support.
|
||||
// On the other hand, Clang also defines __GNUC__, so a clang-specific
|
||||
// check is required to enable the use of generic selection.
|
||||
|
||||
// If we don't have __REDIRECT, prototypes will be missing if
|
||||
// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
|
||||
|
||||
// Decide whether we can define 'extern inline' functions in headers.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
|
||||
// <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
|
||||
// that will always return failure (and set errno to ENOSYS).
|
||||
// This file is automatically generated.
|
||||
// This file selects the right generated file of `__stub_FUNCTION' macros
|
||||
// based on the architecture being compiled for.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// This file is automatically generated.
|
||||
// It defines a symbol `__stub_FUNCTION' for each function
|
||||
// in the C library which is a stub, meaning it will fail
|
||||
// every time called, usually setting errno to ENOSYS.
|
||||
|
||||
// bits/types.h -- definitions of __*_t types underlying *_t types.
|
||||
// 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.
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// Bit size of the time_t type at glibc build time, general case.
|
||||
// Copyright (C) 2018-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/>.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// Size in bits of the 'time_t' type of the default ABI.
|
||||
|
||||
// Convenience types.
|
||||
type X__u_char = uint8 /* types.h:31:23 */
|
||||
type X__u_short = uint16 /* types.h:32:28 */
|
||||
type X__u_int = uint32 /* types.h:33:22 */
|
||||
type X__u_long = uint64 /* types.h:34:27 */
|
||||
|
||||
// Fixed-size types, underlying types depend on word size and compiler.
|
||||
type X__int8_t = int8 /* types.h:37:21 */
|
||||
type X__uint8_t = uint8 /* types.h:38:23 */
|
||||
type X__int16_t = int16 /* types.h:39:26 */
|
||||
type X__uint16_t = uint16 /* types.h:40:28 */
|
||||
type X__int32_t = int32 /* types.h:41:20 */
|
||||
type X__uint32_t = uint32 /* types.h:42:22 */
|
||||
type X__int64_t = int64 /* types.h:44:25 */
|
||||
type X__uint64_t = uint64 /* types.h:45:27 */
|
||||
|
||||
// Smallest types with at least a given width.
|
||||
type X__int_least8_t = X__int8_t /* types.h:52:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:54:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:56:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:58:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
|
||||
|
||||
// quad_t is also 64 bits.
|
||||
type X__quad_t = int64 /* types.h:63:18 */
|
||||
type X__u_quad_t = uint64 /* types.h:64:27 */
|
||||
|
||||
// Largest integral types.
|
||||
type X__intmax_t = int64 /* types.h:72:18 */
|
||||
type X__uintmax_t = uint64 /* types.h:73:27 */
|
||||
|
||||
// The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
|
||||
// macros for each of the OS types we define below. The definitions
|
||||
// of those macros must use the following macros for underlying types.
|
||||
// We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
|
||||
// variants of each of the following integer types on this machine.
|
||||
//
|
||||
// 16 -- "natural" 16-bit type (always short)
|
||||
// 32 -- "natural" 32-bit type (always int)
|
||||
// 64 -- "natural" 64-bit type (long or long long)
|
||||
// LONG32 -- 32-bit type, traditionally long
|
||||
// QUAD -- 64-bit type, traditionally long long
|
||||
// WORD -- natural type of __WORDSIZE bits (int or long)
|
||||
// LONGWORD -- type of __WORDSIZE bits, traditionally long
|
||||
//
|
||||
// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
|
||||
// conventional uses of `long' or `long long' type modifiers match the
|
||||
// types we define, even when a less-adorned type would be the same size.
|
||||
// This matters for (somewhat) portably writing printf/scanf formats for
|
||||
// these types, where using the appropriate l or ll format modifiers can
|
||||
// make the typedefs and the formats match up across all GNU platforms. If
|
||||
// we used `long' when it's 64 bits where `long long' is expected, then the
|
||||
// compiler would warn about the formats not matching the argument types,
|
||||
// and the programmer changing them to shut up the compiler would break the
|
||||
// program's portability.
|
||||
//
|
||||
// Here we assume what is presently the case in all the GCC configurations
|
||||
// we support: long long is always 64 bits, long is always word/address size,
|
||||
// and int is always 32 bits.
|
||||
|
||||
// No need to mark the typedef with __extension__.
|
||||
// bits/typesizes.h -- underlying types for *_t. Generic version.
|
||||
// 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/>.
|
||||
|
||||
// See <bits/types.h> for the meaning of these macros. This file exists so
|
||||
// that <bits/types.h> need not vary across different GNU platforms.
|
||||
|
||||
// Tell the libc code that off_t and off64_t are actually the same type
|
||||
// for all ABI purposes, even if possibly expressed as different base types
|
||||
// for C type-checking purposes.
|
||||
|
||||
// Same for ino_t and ino64_t.
|
||||
|
||||
// And for rlim_t and rlim64_t.
|
||||
|
||||
// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
|
||||
|
||||
// Number of descriptors that can fit in an `fd_set'.
|
||||
|
||||
// bits/time64.h -- underlying types for __time64_t. Generic version.
|
||||
// Copyright (C) 2018-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/>.
|
||||
|
||||
// Define __TIME64_T_TYPE so that it is always a 64-bit type.
|
||||
|
||||
// If we already have 64-bit time type then use it.
|
||||
|
||||
type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts.
|
||||
type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
|
||||
type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
|
||||
|
||||
// Clock ID used in clock and timer functions.
|
||||
type X__clockid_t = int32 /* types.h:168:29 */
|
||||
|
||||
// Timer ID returned by `timer_create'.
|
||||
type X__timer_t = uintptr /* types.h:171:12 */
|
||||
|
||||
// Type to represent block size.
|
||||
type X__blksize_t = int64 /* types.h:174:29 */
|
||||
|
||||
// Types from the Large File Support interface.
|
||||
|
||||
// Type to count number of disk blocks.
|
||||
type X__blkcnt_t = int64 /* types.h:179:28 */
|
||||
type X__blkcnt64_t = int64 /* types.h:180:30 */
|
||||
|
||||
// Type to count file system blocks.
|
||||
type X__fsblkcnt_t = uint64 /* types.h:183:30 */
|
||||
type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
|
||||
|
||||
// Type to count file system nodes.
|
||||
type X__fsfilcnt_t = uint64 /* types.h:187:30 */
|
||||
type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
|
||||
|
||||
// Type of miscellaneous file system fields.
|
||||
type X__fsword_t = int64 /* types.h:191:28 */
|
||||
|
||||
type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
|
||||
|
||||
// Signed long type used in system calls.
|
||||
type X__syscall_slong_t = int64 /* types.h:196:33 */
|
||||
// Unsigned long type used in system calls.
|
||||
type X__syscall_ulong_t = uint64 /* types.h:198:33 */
|
||||
|
||||
// These few don't really vary by system, they always correspond
|
||||
//
|
||||
// to one of the other defined types.
|
||||
type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:203:14 */
|
||||
|
||||
// Duplicates info from stdint.h but this is used in unistd.h.
|
||||
type X__intptr_t = int64 /* types.h:206:25 */
|
||||
|
||||
// Duplicate info from sys/socket.h.
|
||||
type X__socklen_t = uint32 /* types.h:209:23 */
|
||||
|
||||
// C99: An integer type that can be accessed as an atomic entity,
|
||||
//
|
||||
// even in the presence of asynchronous interrupts.
|
||||
// It is not currently necessary for this to be machine-specific.
|
||||
type X__sig_atomic_t = int32 /* types.h:214:13 */
|
||||
|
||||
// Seconds since the Epoch, visible to user code when time_t is too
|
||||
// narrow only for consistency with the old way of widening too-narrow
|
||||
// types. User code should never use __time64_t.
|
||||
|
||||
// This file defines `struct dirent'.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_NAMLEN' iff there is a `d_namlen'
|
||||
// member that gives the length of `d_name'.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_RECLEN' iff there is a `d_reclen'
|
||||
// member that gives the size of the entire directory entry.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_OFF' iff there is a `d_off'
|
||||
// member that gives the file offset of the next directory entry.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_TYPE' iff there is a `d_type'
|
||||
// member that gives the type of the file.
|
||||
//
|
||||
|
||||
// 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
|
||||
// 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 Dirent = struct {
|
||||
Fd_ino X__ino64_t
|
||||
Fd_off X__off64_t
|
||||
Fd_reclen uint16
|
||||
Fd_type uint8
|
||||
Fd_name [256]uint8
|
||||
F__ccgo_pad1 [5]byte
|
||||
} /* dirent.h:22:1 */
|
||||
|
||||
// System-specific extensions of <dirent.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/>.
|
||||
|
||||
var _ uint8 /* gen.c:2:13: */
|
1084
dirent/dirent_linux_riscv64.go
Normal file
1084
dirent/dirent_linux_riscv64.go
Normal file
File diff suppressed because it is too large
Load diff
911
dirent/dirent_linux_s390x.go
Normal file
911
dirent/dirent_linux_s390x.go
Normal file
|
@ -0,0 +1,911 @@
|
|||
// Code generated by 'ccgo dirent/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 dirent/dirent_linux_s390x.go -pkgname dirent', DO NOT EDIT.
|
||||
|
||||
package dirent
|
||||
|
||||
import (
|
||||
"math"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ = math.Pi
|
||||
var _ reflect.Kind
|
||||
var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
AIO_PRIO_DELTA_MAX = 20
|
||||
DELAYTIMER_MAX = 2147483647
|
||||
HOST_NAME_MAX = 64
|
||||
LOGIN_NAME_MAX = 256
|
||||
MAXNAMLEN = 255
|
||||
MAX_CANON = 255
|
||||
MAX_INPUT = 255
|
||||
MQ_PRIO_MAX = 32768
|
||||
NAME_MAX = 255
|
||||
NGROUPS_MAX = 65536
|
||||
PATH_MAX = 4096
|
||||
PIPE_BUF = 4096
|
||||
PTHREAD_DESTRUCTOR_ITERATIONS = 4
|
||||
PTHREAD_KEYS_MAX = 1024
|
||||
PTHREAD_STACK_MIN = 16384
|
||||
RTSIG_MAX = 32
|
||||
SEM_VALUE_MAX = 2147483647
|
||||
TTY_NAME_MAX = 32
|
||||
XATTR_LIST_MAX = 65536
|
||||
XATTR_NAME_MAX = 255
|
||||
XATTR_SIZE_MAX = 65536
|
||||
X_ATFILE_SOURCE = 1
|
||||
X_BITS_POSIX1_LIM_H = 1
|
||||
X_BITS_TIME64_H = 1
|
||||
X_BITS_TYPESIZES_H = 1
|
||||
X_BITS_TYPES_H = 1
|
||||
X_BSD_SIZE_T_ = 0
|
||||
X_BSD_SIZE_T_DEFINED_ = 0
|
||||
X_DEFAULT_SOURCE = 1
|
||||
X_DIRENT_H = 1
|
||||
X_DIRENT_HAVE_D_OFF = 0
|
||||
X_DIRENT_HAVE_D_RECLEN = 0
|
||||
X_DIRENT_HAVE_D_TYPE = 0
|
||||
X_DIRENT_MATCHES_DIRENT64 = 1
|
||||
X_FEATURES_H = 1
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_GCC_SIZE_T = 0
|
||||
X_LINUX_LIMITS_H = 0
|
||||
X_LP64 = 1
|
||||
X_POSIX_AIO_LISTIO_MAX = 2
|
||||
X_POSIX_AIO_MAX = 1
|
||||
X_POSIX_ARG_MAX = 4096
|
||||
X_POSIX_CHILD_MAX = 25
|
||||
X_POSIX_CLOCKRES_MIN = 20000000
|
||||
X_POSIX_C_SOURCE = 200809
|
||||
X_POSIX_DELAYTIMER_MAX = 32
|
||||
X_POSIX_HOST_NAME_MAX = 255
|
||||
X_POSIX_LINK_MAX = 8
|
||||
X_POSIX_LOGIN_NAME_MAX = 9
|
||||
X_POSIX_MAX_CANON = 255
|
||||
X_POSIX_MAX_INPUT = 255
|
||||
X_POSIX_MQ_OPEN_MAX = 8
|
||||
X_POSIX_MQ_PRIO_MAX = 32
|
||||
X_POSIX_NAME_MAX = 14
|
||||
X_POSIX_NGROUPS_MAX = 8
|
||||
X_POSIX_OPEN_MAX = 20
|
||||
X_POSIX_PATH_MAX = 256
|
||||
X_POSIX_PIPE_BUF = 512
|
||||
X_POSIX_RE_DUP_MAX = 255
|
||||
X_POSIX_RTSIG_MAX = 8
|
||||
X_POSIX_SEM_NSEMS_MAX = 256
|
||||
X_POSIX_SEM_VALUE_MAX = 32767
|
||||
X_POSIX_SIGQUEUE_MAX = 32
|
||||
X_POSIX_SOURCE = 1
|
||||
X_POSIX_SSIZE_MAX = 32767
|
||||
X_POSIX_STREAM_MAX = 8
|
||||
X_POSIX_SYMLINK_MAX = 255
|
||||
X_POSIX_SYMLOOP_MAX = 8
|
||||
X_POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
|
||||
X_POSIX_THREAD_KEYS_MAX = 128
|
||||
X_POSIX_THREAD_THREADS_MAX = 64
|
||||
X_POSIX_TIMER_MAX = 32
|
||||
X_POSIX_TTY_NAME_MAX = 9
|
||||
X_POSIX_TZNAME_MAX = 6
|
||||
X_SIZET_ = 0
|
||||
X_SIZE_T = 0
|
||||
X_SIZE_T_ = 0
|
||||
X_SIZE_T_DECLARED = 0
|
||||
X_SIZE_T_DEFINED = 0
|
||||
X_SIZE_T_DEFINED_ = 0
|
||||
X_STDC_PREDEF_H = 1
|
||||
X_SYS_CDEFS_H = 1
|
||||
X_SYS_SIZE_T_H = 0
|
||||
X_T_SIZE = 0
|
||||
X_T_SIZE_ = 0
|
||||
Linux = 1
|
||||
Unix = 1
|
||||
)
|
||||
|
||||
// Inform libc code that these two types are effectively identical.
|
||||
|
||||
// These macros extract size information from a `struct dirent *'.
|
||||
// They may evaluate their argument multiple times, so it must not
|
||||
// have side effects. Each of these may involve a relatively costly
|
||||
// call to `strlen' on some systems, so these values should be cached.
|
||||
//
|
||||
// _D_EXACT_NAMLEN (DP) returns the length of DP->d_name, not including
|
||||
// its terminating null character.
|
||||
//
|
||||
// _D_ALLOC_NAMLEN (DP) returns a size at least (_D_EXACT_NAMLEN (DP) + 1);
|
||||
// that is, the allocation size needed to hold the DP->d_name string.
|
||||
// Use this macro when you don't need the exact length, just an upper bound.
|
||||
// This macro is less likely to require calling `strlen' than _D_EXACT_NAMLEN.
|
||||
//
|
||||
|
||||
// File types for `d_type'.
|
||||
const ( /* dirent.h:97:1: */
|
||||
DT_UNKNOWN = 0
|
||||
DT_FIFO = 1
|
||||
DT_CHR = 2
|
||||
DT_DIR = 4
|
||||
DT_BLK = 6
|
||||
DT_REG = 8
|
||||
DT_LNK = 10
|
||||
DT_SOCK = 12
|
||||
DT_WHT = 14
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
|
||||
type Size_t = uint64 /* <builtin>:9:23 */
|
||||
|
||||
type Wchar_t = int32 /* <builtin>:15:24 */
|
||||
|
||||
type X__int128_t = struct {
|
||||
Flo int64
|
||||
Fhi int64
|
||||
} /* <builtin>:21:43 */ // must match modernc.org/mathutil.Int128
|
||||
type X__uint128_t = struct {
|
||||
Flo uint64
|
||||
Fhi uint64
|
||||
} /* <builtin>:22:44 */ // must match modernc.org/mathutil.Int128
|
||||
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// POSIX Standard: 5.1.2 Directory Operations <dirent.h>
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// These are defined by the user (or the compiler)
|
||||
// to specify the desired environment:
|
||||
//
|
||||
// __STRICT_ANSI__ ISO Standard C.
|
||||
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
|
||||
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
|
||||
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
|
||||
// __STDC_WANT_LIB_EXT2__
|
||||
// Extensions to ISO C99 from TR 27431-2:2010.
|
||||
// __STDC_WANT_IEC_60559_BFP_EXT__
|
||||
// Extensions to ISO C11 from TS 18661-1:2014.
|
||||
// __STDC_WANT_IEC_60559_FUNCS_EXT__
|
||||
// Extensions to ISO C11 from TS 18661-4:2015.
|
||||
// __STDC_WANT_IEC_60559_TYPES_EXT__
|
||||
// Extensions to ISO C11 from TS 18661-3:2015.
|
||||
//
|
||||
// _POSIX_SOURCE IEEE Std 1003.1.
|
||||
// _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2;
|
||||
// if >=199309L, add IEEE Std 1003.1b-1993;
|
||||
// if >=199506L, add IEEE Std 1003.1c-1995;
|
||||
// if >=200112L, all of IEEE 1003.1-2004
|
||||
// if >=200809L, all of IEEE 1003.1-2008
|
||||
// _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if
|
||||
// Single Unix conformance is wanted, to 600 for the
|
||||
// sixth revision, to 700 for the seventh revision.
|
||||
// _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions.
|
||||
// _LARGEFILE_SOURCE Some more functions for correct standard I/O.
|
||||
// _LARGEFILE64_SOURCE Additional functionality from LFS for large files.
|
||||
// _FILE_OFFSET_BITS=N Select default filesystem interface.
|
||||
// _ATFILE_SOURCE Additional *at interfaces.
|
||||
// _GNU_SOURCE All of the above, plus GNU extensions.
|
||||
// _DEFAULT_SOURCE The default set of features (taking precedence over
|
||||
// __STRICT_ANSI__).
|
||||
//
|
||||
// _FORTIFY_SOURCE Add security hardening to many library functions.
|
||||
// Set to 1 or 2; 2 performs stricter checks than 1.
|
||||
//
|
||||
// _REENTRANT, _THREAD_SAFE
|
||||
// Obsolete; equivalent to _POSIX_C_SOURCE=199506L.
|
||||
//
|
||||
// The `-ansi' switch to the GNU C compiler, and standards conformance
|
||||
// options such as `-std=c99', define __STRICT_ANSI__. If none of
|
||||
// these are defined, or if _DEFAULT_SOURCE is defined, the default is
|
||||
// to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to
|
||||
// 200809L, as well as enabling miscellaneous functions from BSD and
|
||||
// SVID. If more than one of these are defined, they accumulate. For
|
||||
// example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together
|
||||
// give you ISO C, 1003.1, and 1003.2, but nothing else.
|
||||
//
|
||||
// These are defined by this file and are used by the
|
||||
// header files to decide what to declare or define:
|
||||
//
|
||||
// __GLIBC_USE (F) Define things from feature set F. This is defined
|
||||
// to 1 or 0; the subsequent macros are either defined
|
||||
// or undefined, and those tests should be moved to
|
||||
// __GLIBC_USE.
|
||||
// __USE_ISOC11 Define ISO C11 things.
|
||||
// __USE_ISOC99 Define ISO C99 things.
|
||||
// __USE_ISOC95 Define ISO C90 AMD1 (C95) things.
|
||||
// __USE_ISOCXX11 Define ISO C++11 things.
|
||||
// __USE_POSIX Define IEEE Std 1003.1 things.
|
||||
// __USE_POSIX2 Define IEEE Std 1003.2 things.
|
||||
// __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things.
|
||||
// __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things.
|
||||
// __USE_XOPEN Define XPG things.
|
||||
// __USE_XOPEN_EXTENDED Define X/Open Unix things.
|
||||
// __USE_UNIX98 Define Single Unix V2 things.
|
||||
// __USE_XOPEN2K Define XPG6 things.
|
||||
// __USE_XOPEN2KXSI Define XPG6 XSI things.
|
||||
// __USE_XOPEN2K8 Define XPG7 things.
|
||||
// __USE_XOPEN2K8XSI Define XPG7 XSI things.
|
||||
// __USE_LARGEFILE Define correct standard I/O things.
|
||||
// __USE_LARGEFILE64 Define LFS things with separate names.
|
||||
// __USE_FILE_OFFSET64 Define 64bit interface as default.
|
||||
// __USE_MISC Define things from 4.3BSD or System V Unix.
|
||||
// __USE_ATFILE Define *at interfaces and AT_* constants for them.
|
||||
// __USE_GNU Define GNU extensions.
|
||||
// __USE_FORTIFY_LEVEL Additional security measures used, according to level.
|
||||
//
|
||||
// The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are
|
||||
// defined by this file unconditionally. `__GNU_LIBRARY__' is provided
|
||||
// only for compatibility. All new code should use the other symbols
|
||||
// to test for features.
|
||||
//
|
||||
// All macros listed above as possibly being defined by this file are
|
||||
// explicitly undefined if they are not explicitly defined.
|
||||
// Feature-test macros that are not defined by the user or compiler
|
||||
// but are implied by the other feature-test macros defined (or by the
|
||||
// lack of any definitions) are defined by the file.
|
||||
//
|
||||
// ISO C feature test macros depend on the definition of the macro
|
||||
// when an affected header is included, not when the first system
|
||||
// header is included, and so they are handled in
|
||||
// <bits/libc-header-start.h>, which does not have a multiple include
|
||||
// guard. Feature test macros that can be handled from the first
|
||||
// system header included are handled here.
|
||||
|
||||
// Undefine everything, so we get a clean slate.
|
||||
|
||||
// Suppress kernel-name space pollution unless user expressedly asks
|
||||
// for it.
|
||||
|
||||
// Convenience macro to test the version of gcc.
|
||||
// Use like this:
|
||||
// #if __GNUC_PREREQ (2,8)
|
||||
// ... code requiring gcc 2.8 or later ...
|
||||
// #endif
|
||||
// Note: only works for GCC 2.0 and later, because __GNUC_MINOR__ was
|
||||
// added in 2.0.
|
||||
|
||||
// Similarly for clang. Features added to GCC after version 4.2 may
|
||||
// or may not also be available in clang, and clang's definitions of
|
||||
// __GNUC(_MINOR)__ are fixed at 4 and 2 respectively. Not all such
|
||||
// features can be queried via __has_extension/__has_feature.
|
||||
|
||||
// Whether to use feature set F.
|
||||
|
||||
// _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for
|
||||
// _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not
|
||||
// issue a warning; the expectation is that the source is being
|
||||
// transitioned to use the new macro.
|
||||
|
||||
// If _GNU_SOURCE was defined by the user, turn on all the other features.
|
||||
|
||||
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
|
||||
// define _DEFAULT_SOURCE.
|
||||
|
||||
// This is to enable the ISO C2X extension.
|
||||
|
||||
// This is to enable the ISO C11 extension.
|
||||
|
||||
// This is to enable the ISO C99 extension.
|
||||
|
||||
// This is to enable the ISO C90 Amendment 1:1995 extension.
|
||||
|
||||
// If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE
|
||||
// is defined, use POSIX.1-2008 (or another version depending on
|
||||
// _XOPEN_SOURCE).
|
||||
|
||||
// Some C libraries once required _REENTRANT and/or _THREAD_SAFE to be
|
||||
// defined in all multithreaded code. GNU libc has not required this
|
||||
// for many years. We now treat them as compatibility synonyms for
|
||||
// _POSIX_C_SOURCE=199506L, which is the earliest level of POSIX with
|
||||
// comprehensive support for multithreaded code. Using them never
|
||||
// lowers the selected level of POSIX conformance, only raises it.
|
||||
|
||||
// The function 'gets' existed in C89, but is impossible to use
|
||||
// safely. It has been removed from ISO C11 and ISO C++14. Note: for
|
||||
// compatibility with various implementations of <cstdio>, this test
|
||||
// must consider only the value of __cplusplus when compiling C++.
|
||||
|
||||
// GNU formerly extended the scanf functions with modified format
|
||||
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
|
||||
// input using malloc. This extension conflicts with ISO C99, which
|
||||
// defines %a as a standalone format specifier that reads a floating-
|
||||
// point number; moreover, POSIX.1-2008 provides the same feature
|
||||
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
|
||||
//
|
||||
// We now follow C99 unless GNU extensions are active and the compiler
|
||||
// is specifically in C89 or C++98 mode (strict or not). For
|
||||
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
|
||||
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
|
||||
// old extension.
|
||||
|
||||
// Get definitions of __STDC_* predefined macros, if the compiler has
|
||||
// not preincluded this header automatically.
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// This macro indicates that the installed library is the GNU C Library.
|
||||
// For historic reasons the value now is 6 and this will stay from now
|
||||
// on. The use of this variable is deprecated. Use __GLIBC__ and
|
||||
// __GLIBC_MINOR__ now (see below) when you want to test for a specific
|
||||
// GNU C library version and use the values in <gnu/lib-names.h> to get
|
||||
// the sonames of the shared libraries.
|
||||
|
||||
// Major and minor version number of the GNU C library package. Use
|
||||
// these macros to test for features in specific releases.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// We are almost always included from features.h.
|
||||
|
||||
// The GNU libc does not support any K&R compilers or the traditional mode
|
||||
// of ISO C compilers anymore. Check for some of the combinations not
|
||||
// anymore supported.
|
||||
|
||||
// Some user header file might have defined this before.
|
||||
|
||||
// All functions, except those with callbacks or those that
|
||||
// synchronize memory, are leaf functions.
|
||||
|
||||
// GCC can always grok prototypes. For C++ programs we add throw()
|
||||
// to help it optimize the function calls. But this works only with
|
||||
// gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions
|
||||
// as non-throwing using a function attribute since programs can use
|
||||
// the -fexceptions options for C code as well.
|
||||
|
||||
// Compilers that are not clang may object to
|
||||
// #if defined __clang__ && __has_extension(...)
|
||||
// even though they do not need to evaluate the right-hand side of the &&.
|
||||
|
||||
// These two macros are not used in glibc anymore. They are kept here
|
||||
// only because some other projects expect the macros to be defined.
|
||||
|
||||
// For these things, GCC behaves the ANSI way normally,
|
||||
// and the non-ANSI way under -traditional.
|
||||
|
||||
// This is not a typedef so `const __ptr_t' does the right thing.
|
||||
|
||||
// C++ needs to know that types and declarations are C, not C++.
|
||||
|
||||
// Fortify support.
|
||||
|
||||
// Support for flexible arrays.
|
||||
// Headers that should use flexible arrays only if they're "real"
|
||||
// (e.g. only if they won't affect sizeof()) should test
|
||||
// #if __glibc_c99_flexarr_available.
|
||||
|
||||
// __asm__ ("xyz") is used throughout the headers to rename functions
|
||||
// at the assembly language level. This is wrapped by the __REDIRECT
|
||||
// macro, in order to support compilers that can do this some other
|
||||
// way. When compilers don't support asm-names at all, we have to do
|
||||
// preprocessor tricks instead (which don't have exactly the right
|
||||
// semantics, but it's the best we can do).
|
||||
//
|
||||
// Example:
|
||||
// int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid);
|
||||
|
||||
//
|
||||
// #elif __SOME_OTHER_COMPILER__
|
||||
//
|
||||
// # define __REDIRECT(name, proto, alias) name proto; _Pragma("let " #name " = " #alias)
|
||||
|
||||
// GCC has various useful declarations that can be made with the
|
||||
// `__attribute__' syntax. All of the ways we use this do fine if
|
||||
// they are omitted for compilers that don't understand it.
|
||||
|
||||
// At some point during the gcc 2.96 development the `malloc' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
|
||||
// Tell the compiler which arguments to an allocation function
|
||||
// indicate the size of the allocation.
|
||||
|
||||
// At some point during the gcc 2.96 development the `pure' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
|
||||
// This declaration tells the compiler that the value is constant.
|
||||
|
||||
// At some point during the gcc 3.1 development the `used' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
|
||||
// Since version 3.2, gcc allows marking deprecated functions.
|
||||
|
||||
// Since version 4.5, gcc also allows one to specify the message printed
|
||||
// when a deprecated function is used. clang claims to be gcc 4.2, but
|
||||
// may also support this feature.
|
||||
|
||||
// At some point during the gcc 2.8 development the `format_arg' attribute
|
||||
// for functions was introduced. We don't want to use it unconditionally
|
||||
// (although this would be possible) since it generates warnings.
|
||||
// If several `format_arg' attributes are given for the same function, in
|
||||
// gcc-3.0 and older, all but the last one are ignored. In newer gccs,
|
||||
// all designated arguments are considered.
|
||||
|
||||
// At some point during the gcc 2.97 development the `strfmon' format
|
||||
// attribute for functions was introduced. We don't want to use it
|
||||
// unconditionally (although this would be possible) since it
|
||||
// generates warnings.
|
||||
|
||||
// The nonull function attribute allows to mark pointer parameters which
|
||||
// must not be NULL.
|
||||
|
||||
// If fortification mode, we warn about unused results of certain
|
||||
// function calls which can lead to problems.
|
||||
|
||||
// Forces a function to be always inlined.
|
||||
// The Linux kernel defines __always_inline in stddef.h (283d7573), and
|
||||
// it conflicts with this definition. Therefore undefine it first to
|
||||
// allow either header to be included first.
|
||||
|
||||
// Associate error messages with the source location of the call site rather
|
||||
// than with the source location inside the function.
|
||||
|
||||
// GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
|
||||
// inline semantics, unless -fgnu89-inline is used. Using __GNUC_STDC_INLINE__
|
||||
// or __GNUC_GNU_INLINE is not a good enough check for gcc because gcc versions
|
||||
// older than 4.3 may define these macros and still not guarantee GNU inlining
|
||||
// semantics.
|
||||
//
|
||||
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
|
||||
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
|
||||
// __GNUC_GNU_INLINE__ macro definitions.
|
||||
|
||||
// GCC 4.3 and above allow passing all anonymous arguments of an
|
||||
// __extern_always_inline function to some other vararg function.
|
||||
|
||||
// It is possible to compile containing GCC extensions even if GCC is
|
||||
// run in pedantic mode if the uses are carefully marked using the
|
||||
// `__extension__' keyword. But this is not generally available before
|
||||
// version 2.8.
|
||||
|
||||
// __restrict is known in EGCS 1.2 and above.
|
||||
|
||||
// ISO C99 also allows to declare arrays as non-overlapping. The syntax is
|
||||
// array_name[restrict]
|
||||
// GCC 3.1 supports this.
|
||||
|
||||
// Describes a char array whose address can safely be passed as the first
|
||||
// argument to strncpy and strncat, as the char array is not necessarily
|
||||
// a NUL-terminated string.
|
||||
|
||||
// Undefine (also defined in libc-symbols.h).
|
||||
// Copies attributes from the declaration or type referenced by
|
||||
// the argument.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// Properties of long double type. ldbl-opt version.
|
||||
// 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
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License 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/>.
|
||||
|
||||
// __glibc_macro_warning (MESSAGE) issues warning MESSAGE. This is
|
||||
// intended for use in preprocessor macros.
|
||||
//
|
||||
// Note: MESSAGE must be a _single_ string; concatenation of string
|
||||
// literals is not supported.
|
||||
|
||||
// Generic selection (ISO C11) is a C-only feature, available in GCC
|
||||
// since version 4.9. Previous versions do not provide generic
|
||||
// selection, even though they might set __STDC_VERSION__ to 201112L,
|
||||
// when in -std=c11 mode. Thus, we must check for !defined __GNUC__
|
||||
// when testing __STDC_VERSION__ for generic selection support.
|
||||
// On the other hand, Clang also defines __GNUC__, so a clang-specific
|
||||
// check is required to enable the use of generic selection.
|
||||
|
||||
// If we don't have __REDIRECT, prototypes will be missing if
|
||||
// __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64].
|
||||
|
||||
// Decide whether we can define 'extern inline' functions in headers.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// Get the definitions of all the appropriate `__stub_FUNCTION' symbols.
|
||||
// <gnu/stubs.h> contains `#define __stub_FUNCTION' when FUNCTION is a stub
|
||||
// that will always return failure (and set errno to ENOSYS).
|
||||
// This file is automatically generated.
|
||||
// This file selects the right generated file of `__stub_FUNCTION' macros
|
||||
// based on the architecture being compiled for.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// This file is automatically generated.
|
||||
// It defines a symbol `__stub_FUNCTION' for each function
|
||||
// in the C library which is a stub, meaning it will fail
|
||||
// every time called, usually setting errno to ENOSYS.
|
||||
|
||||
// bits/types.h -- definitions of __*_t types underlying *_t types.
|
||||
// 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.
|
||||
|
||||
// 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
|
||||
// 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/>.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// Bit size of the time_t type at glibc build time, general case.
|
||||
// Copyright (C) 2018-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/>.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// Size in bits of the 'time_t' type of the default ABI.
|
||||
|
||||
// Convenience types.
|
||||
type X__u_char = uint8 /* types.h:31:23 */
|
||||
type X__u_short = uint16 /* types.h:32:28 */
|
||||
type X__u_int = uint32 /* types.h:33:22 */
|
||||
type X__u_long = uint64 /* types.h:34:27 */
|
||||
|
||||
// Fixed-size types, underlying types depend on word size and compiler.
|
||||
type X__int8_t = int8 /* types.h:37:21 */
|
||||
type X__uint8_t = uint8 /* types.h:38:23 */
|
||||
type X__int16_t = int16 /* types.h:39:26 */
|
||||
type X__uint16_t = uint16 /* types.h:40:28 */
|
||||
type X__int32_t = int32 /* types.h:41:20 */
|
||||
type X__uint32_t = uint32 /* types.h:42:22 */
|
||||
type X__int64_t = int64 /* types.h:44:25 */
|
||||
type X__uint64_t = uint64 /* types.h:45:27 */
|
||||
|
||||
// Smallest types with at least a given width.
|
||||
type X__int_least8_t = X__int8_t /* types.h:52:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:54:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:56:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:58:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
|
||||
|
||||
// quad_t is also 64 bits.
|
||||
type X__quad_t = int64 /* types.h:63:18 */
|
||||
type X__u_quad_t = uint64 /* types.h:64:27 */
|
||||
|
||||
// Largest integral types.
|
||||
type X__intmax_t = int64 /* types.h:72:18 */
|
||||
type X__uintmax_t = uint64 /* types.h:73:27 */
|
||||
|
||||
// The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
|
||||
// macros for each of the OS types we define below. The definitions
|
||||
// of those macros must use the following macros for underlying types.
|
||||
// We define __S<SIZE>_TYPE and __U<SIZE>_TYPE for the signed and unsigned
|
||||
// variants of each of the following integer types on this machine.
|
||||
//
|
||||
// 16 -- "natural" 16-bit type (always short)
|
||||
// 32 -- "natural" 32-bit type (always int)
|
||||
// 64 -- "natural" 64-bit type (long or long long)
|
||||
// LONG32 -- 32-bit type, traditionally long
|
||||
// QUAD -- 64-bit type, traditionally long long
|
||||
// WORD -- natural type of __WORDSIZE bits (int or long)
|
||||
// LONGWORD -- type of __WORDSIZE bits, traditionally long
|
||||
//
|
||||
// We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the
|
||||
// conventional uses of `long' or `long long' type modifiers match the
|
||||
// types we define, even when a less-adorned type would be the same size.
|
||||
// This matters for (somewhat) portably writing printf/scanf formats for
|
||||
// these types, where using the appropriate l or ll format modifiers can
|
||||
// make the typedefs and the formats match up across all GNU platforms. If
|
||||
// we used `long' when it's 64 bits where `long long' is expected, then the
|
||||
// compiler would warn about the formats not matching the argument types,
|
||||
// and the programmer changing them to shut up the compiler would break the
|
||||
// program's portability.
|
||||
//
|
||||
// Here we assume what is presently the case in all the GCC configurations
|
||||
// we support: long long is always 64 bits, long is always word/address size,
|
||||
// and int is always 32 bits.
|
||||
|
||||
// No need to mark the typedef with __extension__.
|
||||
// bits/typesizes.h -- underlying types for *_t. Linux/s390 version.
|
||||
// Copyright (C) 2003-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/>.
|
||||
|
||||
// See <bits/types.h> for the meaning of these macros. This file exists so
|
||||
// that <bits/types.h> need not vary across different GNU platforms.
|
||||
|
||||
// size_t is unsigned long int on s390 -m31.
|
||||
|
||||
// Tell the libc code that off_t and off64_t are actually the same type
|
||||
// for all ABI purposes, even if possibly expressed as different base types
|
||||
// for C type-checking purposes.
|
||||
|
||||
// Same for ino_t and ino64_t.
|
||||
|
||||
// And for __rlim_t and __rlim64_t.
|
||||
|
||||
// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
|
||||
|
||||
// Number of descriptors that can fit in an `fd_set'.
|
||||
|
||||
// bits/time64.h -- underlying types for __time64_t. Generic version.
|
||||
// Copyright (C) 2018-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/>.
|
||||
|
||||
// Define __TIME64_T_TYPE so that it is always a 64-bit type.
|
||||
|
||||
// If we already have 64-bit time type then use it.
|
||||
|
||||
type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts.
|
||||
type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
|
||||
type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
|
||||
|
||||
// Clock ID used in clock and timer functions.
|
||||
type X__clockid_t = int32 /* types.h:168:29 */
|
||||
|
||||
// Timer ID returned by `timer_create'.
|
||||
type X__timer_t = uintptr /* types.h:171:12 */
|
||||
|
||||
// Type to represent block size.
|
||||
type X__blksize_t = int64 /* types.h:174:29 */
|
||||
|
||||
// Types from the Large File Support interface.
|
||||
|
||||
// Type to count number of disk blocks.
|
||||
type X__blkcnt_t = int64 /* types.h:179:28 */
|
||||
type X__blkcnt64_t = int64 /* types.h:180:30 */
|
||||
|
||||
// Type to count file system blocks.
|
||||
type X__fsblkcnt_t = uint64 /* types.h:183:30 */
|
||||
type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
|
||||
|
||||
// Type to count file system nodes.
|
||||
type X__fsfilcnt_t = uint64 /* types.h:187:30 */
|
||||
type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
|
||||
|
||||
// Type of miscellaneous file system fields.
|
||||
type X__fsword_t = int64 /* types.h:191:28 */
|
||||
|
||||
type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
|
||||
|
||||
// Signed long type used in system calls.
|
||||
type X__syscall_slong_t = int64 /* types.h:196:33 */
|
||||
// Unsigned long type used in system calls.
|
||||
type X__syscall_ulong_t = uint64 /* types.h:198:33 */
|
||||
|
||||
// These few don't really vary by system, they always correspond
|
||||
//
|
||||
// to one of the other defined types.
|
||||
type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:203:14 */
|
||||
|
||||
// Duplicates info from stdint.h but this is used in unistd.h.
|
||||
type X__intptr_t = int64 /* types.h:206:25 */
|
||||
|
||||
// Duplicate info from sys/socket.h.
|
||||
type X__socklen_t = uint32 /* types.h:209:23 */
|
||||
|
||||
// C99: An integer type that can be accessed as an atomic entity,
|
||||
//
|
||||
// even in the presence of asynchronous interrupts.
|
||||
// It is not currently necessary for this to be machine-specific.
|
||||
type X__sig_atomic_t = int32 /* types.h:214:13 */
|
||||
|
||||
// Seconds since the Epoch, visible to user code when time_t is too
|
||||
// narrow only for consistency with the old way of widening too-narrow
|
||||
// types. User code should never use __time64_t.
|
||||
|
||||
// This file defines `struct dirent'.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_NAMLEN' iff there is a `d_namlen'
|
||||
// member that gives the length of `d_name'.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_RECLEN' iff there is a `d_reclen'
|
||||
// member that gives the size of the entire directory entry.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_OFF' iff there is a `d_off'
|
||||
// member that gives the file offset of the next directory entry.
|
||||
//
|
||||
// It defines the macro `_DIRENT_HAVE_D_TYPE' iff there is a `d_type'
|
||||
// member that gives the type of the file.
|
||||
//
|
||||
|
||||
// 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
|
||||
// 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 Dirent = struct {
|
||||
Fd_ino X__ino64_t
|
||||
Fd_off X__off64_t
|
||||
Fd_reclen uint16
|
||||
Fd_type uint8
|
||||
Fd_name [256]uint8
|
||||
F__ccgo_pad1 [5]byte
|
||||
} /* dirent.h:22:1 */
|
||||
|
||||
// System-specific extensions of <dirent.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/>.
|
||||
|
||||
var _ uint8 /* gen.c:2:13: */
|
1588
dirent/dirent_netbsd_amd64.go
Normal file
1588
dirent/dirent_netbsd_amd64.go
Normal file
File diff suppressed because it is too large
Load diff
1561
dirent/dirent_netbsd_arm.go
Normal file
1561
dirent/dirent_netbsd_arm.go
Normal file
File diff suppressed because it is too large
Load diff
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue