mirror of
https://github.com/BishopFox/sliver.git
synced 2026-11-08 01:38:17 -10:00
Compare commits
16
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3cfe6435f3 | ||
|
|
48c65108d6 | ||
|
|
a271932c8a | ||
|
|
8c6fe18280 | ||
|
|
97dbae571c | ||
|
|
b5e629c4a6 | ||
|
|
30b1cb8a85 | ||
|
|
eb70ed2d0b | ||
|
|
53593be73f | ||
|
|
a144991ede | ||
|
|
0bb5ea506a | ||
|
|
d76e845bda | ||
|
|
47d1f0d66b | ||
|
|
bf1127f7f2 | ||
|
|
8b58648713 | ||
|
|
15b5b7c09b |
No files matched your search
@@ -5,4 +5,4 @@ queries:
|
||||
uses: security-extended
|
||||
paths:
|
||||
- server
|
||||
- implant
|
||||
- client
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
- name: Go 1.19
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: "1.19.1"
|
||||
go-version: "^1.19"
|
||||
|
||||
- name: OS Packages
|
||||
run: |
|
||||
|
||||
@@ -4,23 +4,22 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- test/*
|
||||
# pull_request:
|
||||
# branches:
|
||||
# - master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
CodeQL-Build:
|
||||
name: CodeQL Security Scan
|
||||
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 45
|
||||
timeout-minutes: 90
|
||||
|
||||
steps:
|
||||
# Setup go environment
|
||||
- name: Go 1.19
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: "1.19.1"
|
||||
go-version: "^1.19"
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
@@ -37,23 +36,6 @@ jobs:
|
||||
git build-essential zlib1g zlib1g-dev wget zip unzip \
|
||||
mingw-w64 binutils-mingw-w64 g++-mingw-w64
|
||||
|
||||
- name: Protoc
|
||||
env:
|
||||
PROTOC_VER: 3.11.4
|
||||
run: |
|
||||
wget -O protoc-${PROTOC_VER}-linux-x86_64.zip https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VER}/protoc-${PROTOC_VER}-linux-x86_64.zip \
|
||||
&& unzip protoc-${PROTOC_VER}-linux-x86_64.zip \
|
||||
&& sudo cp -vv ./bin/protoc /usr/local/bin/protoc
|
||||
|
||||
- name: Protoc-gen-go
|
||||
env:
|
||||
PROTOC_GEN_GO_VER: 1.3.5
|
||||
run: |
|
||||
wget -O protoc-gen-go.tar.gz https://github.com/golang/protobuf/archive/v${PROTOC_GEN_GO_VER}.tar.gz \
|
||||
&& tar xvf protoc-gen-go.tar.gz \
|
||||
&& cd protobuf-${PROTOC_GEN_GO_VER} \
|
||||
&& make install
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v3
|
||||
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
name: Build & Test
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- test/*
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
@@ -21,7 +18,7 @@ jobs:
|
||||
- name: Go 1.19
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: "1.19.1"
|
||||
go-version: "^1.19"
|
||||
|
||||
- name: OS Packages
|
||||
run: |
|
||||
@@ -55,7 +52,7 @@ jobs:
|
||||
- name: Go 1.19
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: "1.19.1"
|
||||
go-version: "^1.19"
|
||||
|
||||
- name: Mingw
|
||||
run: brew install mingw-w64
|
||||
|
||||
@@ -99,6 +99,12 @@ ifeq ($(MAKECMDGOALS), linux)
|
||||
-X $(CLIENT_ASSETS_PKG).DefaultArmoryRepoURL=$(ARMORY_REPO_URL)"
|
||||
endif
|
||||
|
||||
ifeq ($(MAKECMDGOALS), linux-arm64)
|
||||
# Redefine TAGS/ENV to use pure go sqlite3
|
||||
TAGS = -tags osusergo,netgo,gosqlite
|
||||
ENV = CGO_ENABLED=0
|
||||
endif
|
||||
|
||||
#
|
||||
# Targets
|
||||
#
|
||||
|
||||
@@ -5,7 +5,7 @@ Sliver is an open source cross-platform adversary emulation/red team framework,
|
||||
|
||||
The server and client support MacOS, Windows, and Linux. Implants are supported on MacOS, Windows, and Linux (and possibly every Golang compiler target but we've not tested them all).
|
||||
|
||||
 [](https://goreportcard.com/report/github.com/BishopFox/sliver) [](https://www.gnu.org/licenses/gpl-3.0)
|
||||
[](https://goreportcard.com/report/github.com/BishopFox/sliver) [](https://www.gnu.org/licenses/gpl-3.0)
|
||||
|
||||
### Features
|
||||
|
||||
|
||||
+1
-1
@@ -232,7 +232,7 @@ GEM
|
||||
jekyll-seo-tag (~> 2.1)
|
||||
minitest (5.15.0)
|
||||
multipart-post (2.1.1)
|
||||
nokogiri (1.13.6)
|
||||
nokogiri (1.13.9)
|
||||
mini_portile2 (~> 2.8.0)
|
||||
racc (~> 1.4)
|
||||
octokit (4.22.0)
|
||||
|
||||
+1
-1
@@ -156,7 +156,7 @@ echo "-----------------------------------------------------------------"
|
||||
|
||||
echo "curl -L --fail --output $OUTPUT_DIR/linux/$GO_ARCH_1/garble https://github.com/moloch--/garble/releases/download/v$GARBLE_VER/garble_linux"
|
||||
curl -L --fail --output $OUTPUT_DIR/linux/$GO_ARCH_1/garble https://github.com/moloch--/garble/releases/download/v$GARBLE_VER/garble_linux
|
||||
echo "curl -L --fail --output $OUTPUT_DIR/linux/$GO_ARCH_2/garble https://github.com/moloch--/garble/releases/download/v$GARBLE_VER/garble_linux"
|
||||
echo "curl -L --fail --output $OUTPUT_DIR/linux/$GO_ARCH_2/garble https://github.com/moloch--/garble/releases/download/v$GARBLE_VER/garble_linux-$GO_ARCH_2"
|
||||
curl -L --fail --output $OUTPUT_DIR/linux/$GO_ARCH_2/garble https://github.com/moloch--/garble/releases/download/v$GARBLE_VER/garble_linux
|
||||
echo "curl -L --fail --output $OUTPUT_DIR/windows/$GO_ARCH_1/garble.exe https://github.com/moloch--/garble/releases/download/v$GARBLE_VER/garble_windows.exe"
|
||||
curl -L --fail --output $OUTPUT_DIR/windows/$GO_ARCH_1/garble.exe https://github.com/moloch--/garble/releases/download/v$GARBLE_VER/garble_windows.exe
|
||||
|
||||
@@ -53,7 +53,7 @@ require (
|
||||
gorm.io/driver/sqlite v1.4.2
|
||||
gorm.io/gorm v1.24.0
|
||||
gvisor.dev/gvisor v0.0.0-20220817001344-846276b3dbc5
|
||||
modernc.org/sqlite v1.16.0
|
||||
modernc.org/sqlite v1.19.2
|
||||
)
|
||||
|
||||
require (
|
||||
@@ -99,7 +99,7 @@ require (
|
||||
github.com/lxn/win v0.0.0-20210218163916-a377121e959e // indirect
|
||||
github.com/mailru/easyjson v0.7.7 // indirect
|
||||
github.com/mattn/go-colorable v0.1.9 // indirect
|
||||
github.com/mattn/go-isatty v0.0.14 // indirect
|
||||
github.com/mattn/go-isatty v0.0.16 // indirect
|
||||
github.com/mattn/go-runewidth v0.0.13 // indirect
|
||||
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect
|
||||
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
|
||||
@@ -122,13 +122,13 @@ require (
|
||||
gopkg.in/jcmturner/gokrb5.v7 v7.5.0 // indirect
|
||||
gopkg.in/jcmturner/rpc.v1 v1.1.0 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
lukechampine.com/uint128 v1.1.1 // indirect
|
||||
modernc.org/cc/v3 v3.35.24 // indirect
|
||||
modernc.org/ccgo/v3 v3.15.18 // indirect
|
||||
modernc.org/libc v1.14.12 // indirect
|
||||
modernc.org/mathutil v1.4.1 // indirect
|
||||
modernc.org/memory v1.0.7 // indirect
|
||||
modernc.org/opt v0.1.1 // indirect
|
||||
modernc.org/strutil v1.1.1 // indirect
|
||||
modernc.org/token v1.0.0 // indirect
|
||||
lukechampine.com/uint128 v1.2.0 // indirect
|
||||
modernc.org/cc/v3 v3.40.0 // indirect
|
||||
modernc.org/ccgo/v3 v3.16.12 // indirect
|
||||
modernc.org/libc v1.20.3 // indirect
|
||||
modernc.org/mathutil v1.5.0 // indirect
|
||||
modernc.org/memory v1.4.0 // indirect
|
||||
modernc.org/opt v0.1.3 // indirect
|
||||
modernc.org/strutil v1.1.3 // indirect
|
||||
modernc.org/token v1.0.1 // indirect
|
||||
)
|
||||
@@ -287,6 +287,8 @@ github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOA
|
||||
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
|
||||
github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y=
|
||||
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
|
||||
github.com/mattn/go-isatty v0.0.16 h1:bq3VjFmv/sOjHtdEhmkEV4x1AJtvUvOJ2PFAZ5+peKQ=
|
||||
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
|
||||
github.com/mattn/go-runewidth v0.0.12/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
|
||||
github.com/mattn/go-runewidth v0.0.13 h1:lTGmDsbAYt5DmK6OnoV7EuIF1wEIFAcxld6ypU4OSgU=
|
||||
github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
|
||||
@@ -494,6 +496,7 @@ golang.org/x/sys v0.0.0-20220422013727-9388b58f7150/go.mod h1:oPkhp1MJrh7nUepCBc
|
||||
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220928140112-f11e5e49a4ec h1:BkDtF2Ih9xZ7le9ndzTA7KJow28VbQW3odyk/8drmuI=
|
||||
golang.org/x/sys v0.0.0-20220928140112-f11e5e49a4ec/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
|
||||
@@ -621,6 +624,8 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh
|
||||
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
|
||||
lukechampine.com/uint128 v1.1.1 h1:pnxCASz787iMf+02ssImqk6OLt+Z5QHMoZyUXR4z6JU=
|
||||
lukechampine.com/uint128 v1.1.1/go.mod h1:c4eWIwlEGaxC/+H1VguhU4PHXNWDCDMUlWdIWl2j1gk=
|
||||
lukechampine.com/uint128 v1.2.0 h1:mBi/5l91vocEN8otkC5bDLhi2KdCticRiwbdB0O+rjI=
|
||||
lukechampine.com/uint128 v1.2.0/go.mod h1:c4eWIwlEGaxC/+H1VguhU4PHXNWDCDMUlWdIWl2j1gk=
|
||||
modernc.org/cc/v3 v3.33.6/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
|
||||
modernc.org/cc/v3 v3.33.9/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
|
||||
modernc.org/cc/v3 v3.33.11/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
|
||||
@@ -639,6 +644,8 @@ modernc.org/cc/v3 v3.35.20/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g
|
||||
modernc.org/cc/v3 v3.35.22/go.mod h1:iPJg1pkwXqAV16SNgFBVYmggfMg6xhs+2oiO0vclK3g=
|
||||
modernc.org/cc/v3 v3.35.24 h1:vlCqjhVwX15t1uwlMPpOpNRC7JTjMZ9lT9DYHKQTFuA=
|
||||
modernc.org/cc/v3 v3.35.24/go.mod h1:NFUHyPn4ekoC/JHeZFfZurN6ixxawE1BnVonP/oahEI=
|
||||
modernc.org/cc/v3 v3.40.0 h1:P3g79IUS/93SYhtoeaHW+kRCIrYaxJ27MFPv+7kaTOw=
|
||||
modernc.org/cc/v3 v3.40.0/go.mod h1:/bTg4dnWkSXowUO6ssQKnOV0yMVxDYNIsIrzqTFDGH0=
|
||||
modernc.org/ccgo/v3 v3.9.5/go.mod h1:umuo2EP2oDSBnD3ckjaVUXMrmeAw8C8OSICVa0iFf60=
|
||||
modernc.org/ccgo/v3 v3.10.0/go.mod h1:c0yBmkRFi7uW4J7fwx/JiijwOjeAeR2NoSaRVFPmjMw=
|
||||
modernc.org/ccgo/v3 v3.11.0/go.mod h1:dGNposbDp9TOZ/1KBxghxtUp/bzErD0/0QW4hhSaBMI=
|
||||
@@ -686,6 +693,8 @@ modernc.org/ccgo/v3 v3.15.16/go.mod h1:XbKRMeMWMdq712Tr5ECgATYMrzJ+g9zAZEj2ktzBe
|
||||
modernc.org/ccgo/v3 v3.15.17/go.mod h1:bofnFkpRFf5gLY+mBZIyTW6FEcp26xi2lgOFk2Rlvs0=
|
||||
modernc.org/ccgo/v3 v3.15.18 h1:X5ym656Ye7/ubL+wox0SeF9aRX5od1UDFn1tAbQR+90=
|
||||
modernc.org/ccgo/v3 v3.15.18/go.mod h1:/2lv3WjHyanEr2sAPdGKRC38n6f0werut9BRXUjjX+A=
|
||||
modernc.org/ccgo/v3 v3.16.12 h1:gWAnL87wSqwM6EQ1a+36O9zMFjqx1FBj0p9rA4xbQCY=
|
||||
modernc.org/ccgo/v3 v3.16.12/go.mod h1:fUB3Vn0nVPReA+7IG7yZDfjv1TMWjhQP8gCxrFAtL5g=
|
||||
modernc.org/ccorpus v1.11.1/go.mod h1:2gEUTrWqdpH2pXsmTM1ZkjeSrUWDpjMu2T6m29L/ErQ=
|
||||
modernc.org/ccorpus v1.11.6 h1:J16RXiiqiCgua6+ZvQot4yUuUy8zxgqbqEEUuGPlISk=
|
||||
modernc.org/ccorpus v1.11.6/go.mod h1:2gEUTrWqdpH2pXsmTM1ZkjeSrUWDpjMu2T6m29L/ErQ=
|
||||
@@ -739,25 +748,41 @@ modernc.org/libc v1.14.10/go.mod h1:y1MtIWhwpJFpLYm6grAThtuXJKEsY6xkdZmXbRngIdo=
|
||||
modernc.org/libc v1.14.11/go.mod h1:l5/Mz/GrZwOqzwRHA3abgSCnSeJzzTl+Ify0bAwKbAw=
|
||||
modernc.org/libc v1.14.12 h1:pUBZTYoISfbb4pCf4PECENpbvwDBxeKc+/dS9LyOWFM=
|
||||
modernc.org/libc v1.14.12/go.mod h1:fJdoe23MHu2ruPQkFPPqCpToDi5cckzsbmkI6Ez0LqQ=
|
||||
modernc.org/libc v1.20.3 h1:BodaDPuUse7taQchAClMmbE/yZp3T2ZBiwCDFyBLEXw=
|
||||
modernc.org/libc v1.20.3/go.mod h1:ZRfIaEkgrYgZDl6pa4W39HgN5G/yDW+NRmNKZBDFrk0=
|
||||
modernc.org/mathutil v1.1.1/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
|
||||
modernc.org/mathutil v1.2.2/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
|
||||
modernc.org/mathutil v1.4.0/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
|
||||
modernc.org/mathutil v1.4.1 h1:ij3fYGe8zBF4Vu+g0oT7mB06r8sqGWKuJu1yXeR4by8=
|
||||
modernc.org/mathutil v1.4.1/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
|
||||
modernc.org/mathutil v1.5.0 h1:rV0Ko/6SfM+8G+yKiyI830l3Wuz1zRutdslNoQ0kfiQ=
|
||||
modernc.org/mathutil v1.5.0/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
|
||||
modernc.org/memory v1.0.4/go.mod h1:nV2OApxradM3/OVbs2/0OsP6nPfakXpi50C7dcoHXlc=
|
||||
modernc.org/memory v1.0.5/go.mod h1:B7OYswTRnfGg+4tDH1t1OeUNnsy2viGTdME4tzd+IjM=
|
||||
modernc.org/memory v1.0.6/go.mod h1:/0wo5ibyrQiaoUoH7f9D8dnglAmILJ5/cxZlRECf+Nw=
|
||||
modernc.org/memory v1.0.7 h1:UE3cxTRFa5tfUibAV7Jqq8P7zRY0OlJg+yWVIIaluEE=
|
||||
modernc.org/memory v1.0.7/go.mod h1:/0wo5ibyrQiaoUoH7f9D8dnglAmILJ5/cxZlRECf+Nw=
|
||||
modernc.org/memory v1.4.0 h1:crykUfNSnMAXaOJnnxcSzbUGMqkLWjklJKkBK2nwZwk=
|
||||
modernc.org/memory v1.4.0/go.mod h1:PkUhL0Mugw21sHPeskwZW4D6VscE/GQJOnIpCnW6pSU=
|
||||
modernc.org/opt v0.1.1 h1:/0RX92k9vwVeDXj+Xn23DKp2VJubL7k8qNffND6qn3A=
|
||||
modernc.org/opt v0.1.1/go.mod h1:WdSiB5evDcignE70guQKxYUl14mgWtbClRi5wmkkTX0=
|
||||
modernc.org/opt v0.1.3 h1:3XOZf2yznlhC+ibLltsDGzABUGVx8J6pnFMS3E4dcq4=
|
||||
modernc.org/opt v0.1.3/go.mod h1:WdSiB5evDcignE70guQKxYUl14mgWtbClRi5wmkkTX0=
|
||||
modernc.org/sqlite v1.16.0 h1:DdvOGaWN0y+X7t2L7RUD63gcwbVjYZjcBZnA68g44EI=
|
||||
modernc.org/sqlite v1.16.0/go.mod h1:Jwe13ItpESZ+78K5WS6+AjXsUg+JvirsjN3iIDO4C8k=
|
||||
modernc.org/sqlite v1.19.2 h1:1VaNHEe6amuHhelmAOtibvYpAjwLfT4q6cBB2K7ZlQ8=
|
||||
modernc.org/sqlite v1.19.2/go.mod h1:fEgebDYAGTFJj2c/ukKmnaq/0ZQZg0PSYxRa/bHyCDs=
|
||||
modernc.org/strutil v1.1.1 h1:xv+J1BXY3Opl2ALrBwyfEikFAj8pmqcpnfmuwUwcozs=
|
||||
modernc.org/strutil v1.1.1/go.mod h1:DE+MQQ/hjKBZS2zNInV5hhcipt5rLPWkmpbGeW5mmdw=
|
||||
modernc.org/strutil v1.1.3 h1:fNMm+oJklMGYfU9Ylcywl0CO5O6nTfaowNsh2wpPjzY=
|
||||
modernc.org/strutil v1.1.3/go.mod h1:MEHNA7PdEnEwLvspRMtWTNnp2nnyvMfkimT1NKNAGbw=
|
||||
modernc.org/tcl v1.11.2 h1:mXpsx3AZqJt83uDiFu9UYQVBjNjaWKGCF1YDSlpCL6Y=
|
||||
modernc.org/tcl v1.11.2/go.mod h1:BRzgpajcGdS2qTxniOx9c/dcxjlbA7p12eJNmiriQYo=
|
||||
modernc.org/tcl v1.15.0 h1:oY+JeD11qVVSgVvodMJsu7Edf8tr5E/7tuhF5cNYz34=
|
||||
modernc.org/token v1.0.0 h1:a0jaWiNMDhDUtqOj09wvjWWAqd3q7WpBulmL9H2egsk=
|
||||
modernc.org/token v1.0.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM=
|
||||
modernc.org/token v1.0.1 h1:A3qvTqOwexpfZZeyI0FeGPDlSWX5pjZu9hF4lU+EKWg=
|
||||
modernc.org/token v1.0.1/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM=
|
||||
modernc.org/z v1.3.2 h1:4GWBVMa48UDC7KQ9tnaggN/yTlXg+CdCX9bhgHPQ9AM=
|
||||
modernc.org/z v1.3.2/go.mod h1:PEU2oK2OEA1CfzDTd+8E908qEXhC9s0MfyKp5LZsd+k=
|
||||
modernc.org/z v1.7.0 h1:xkDw/KepgEjeizO2sNco+hqYkU12taxQFqPEmgm1GWE=
|
||||
+14
-34
@@ -24,7 +24,6 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
insecureRand "math/rand"
|
||||
"os"
|
||||
"os/user"
|
||||
@@ -80,7 +79,7 @@ func GetRootAppDir() string {
|
||||
|
||||
func assetVersion() string {
|
||||
appDir := GetRootAppDir()
|
||||
data, err := ioutil.ReadFile(path.Join(appDir, versionFileName))
|
||||
data, err := os.ReadFile(path.Join(appDir, versionFileName))
|
||||
if err != nil {
|
||||
setupLog.Infof("No version detected %s", err)
|
||||
return ""
|
||||
@@ -184,7 +183,7 @@ func setupGo(appDir string) error {
|
||||
|
||||
goZipPath := filepath.Join(appDir, "go.zip")
|
||||
defer os.Remove(goZipPath)
|
||||
ioutil.WriteFile(goZipPath, goZip, 0600)
|
||||
os.WriteFile(goZipPath, goZip, 0600)
|
||||
_, err = unzip(goZipPath, appDir)
|
||||
if err != nil {
|
||||
setupLog.Infof("Failed to unzip file %s -> %s", goZipPath, appDir)
|
||||
@@ -198,7 +197,7 @@ func setupGo(appDir string) error {
|
||||
}
|
||||
goSrcZipPath := filepath.Join(appDir, "src.zip")
|
||||
defer os.Remove(goSrcZipPath)
|
||||
ioutil.WriteFile(goSrcZipPath, goSrcZip, 0600)
|
||||
os.WriteFile(goSrcZipPath, goSrcZip, 0600)
|
||||
_, err = unzip(goSrcZipPath, goRootPath)
|
||||
if err != nil {
|
||||
setupLog.Infof("Failed to unzip file %s -> %s/go", goSrcZipPath, appDir)
|
||||
@@ -216,7 +215,7 @@ func setupGo(appDir string) error {
|
||||
return err
|
||||
}
|
||||
garbleLocalPath := filepath.Join(appDir, "go", "bin", garbleFileName)
|
||||
err = ioutil.WriteFile(garbleLocalPath, garbleFile, 0700)
|
||||
err = os.WriteFile(garbleLocalPath, garbleFile, 0700)
|
||||
if err != nil {
|
||||
setupLog.Errorf("Failed to write garble %s", err)
|
||||
return err
|
||||
@@ -260,8 +259,8 @@ func SetupGoPath(goPathSrc string) error {
|
||||
sliverpbGoSrc = stripSliverpb(sliverpbGoSrc)
|
||||
sliverpbDir := filepath.Join(goPathSrc, "github.com", "bishopfox", "sliver", "protobuf", "sliverpb")
|
||||
os.MkdirAll(sliverpbDir, 0700)
|
||||
ioutil.WriteFile(filepath.Join(sliverpbDir, "sliver.pb.go"), sliverpbGoSrc, 0600)
|
||||
ioutil.WriteFile(filepath.Join(sliverpbDir, "constants.go"), sliverpbConstSrc, 0600)
|
||||
os.WriteFile(filepath.Join(sliverpbDir, "sliver.pb.go"), sliverpbGoSrc, 0600)
|
||||
os.WriteFile(filepath.Join(sliverpbDir, "constants.go"), sliverpbConstSrc, 0600)
|
||||
|
||||
// Common PB
|
||||
commonpbSrc, err := protobufs.FS.ReadFile("commonpb/common.pb.go")
|
||||
@@ -271,7 +270,7 @@ func SetupGoPath(goPathSrc string) error {
|
||||
}
|
||||
commonpbDir := filepath.Join(goPathSrc, "github.com", "bishopfox", "sliver", "protobuf", "commonpb")
|
||||
os.MkdirAll(commonpbDir, 0700)
|
||||
ioutil.WriteFile(filepath.Join(commonpbDir, "common.pb.go"), commonpbSrc, 0600)
|
||||
os.WriteFile(filepath.Join(commonpbDir, "common.pb.go"), commonpbSrc, 0600)
|
||||
|
||||
// DNS PB
|
||||
dnspbSrc, err := protobufs.FS.ReadFile("dnspb/dns.pb.go")
|
||||
@@ -281,7 +280,7 @@ func SetupGoPath(goPathSrc string) error {
|
||||
}
|
||||
dnspbDir := filepath.Join(goPathSrc, "github.com", "bishopfox", "sliver", "protobuf", "dnspb")
|
||||
os.MkdirAll(dnspbDir, 0700)
|
||||
ioutil.WriteFile(filepath.Join(dnspbDir, "dns.pb.go"), dnspbSrc, 0600)
|
||||
os.WriteFile(filepath.Join(dnspbDir, "dns.pb.go"), dnspbSrc, 0600)
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -307,28 +306,6 @@ func stripSliverpb(src []byte) []byte {
|
||||
return out
|
||||
}
|
||||
|
||||
func unzipGoDependency(fsPath string, targetPath string) error {
|
||||
setupLog.Infof("Unpacking go dependency %s -> %s", fsPath, targetPath)
|
||||
|
||||
appDir := GetRootAppDir()
|
||||
goDep, err := assetsFs.ReadFile(fsPath)
|
||||
if err != nil {
|
||||
setupLog.Infof("static asset not found: %s", fsPath)
|
||||
return err
|
||||
}
|
||||
|
||||
goDepZipPath := filepath.Join(appDir, filepath.Base(fsPath))
|
||||
defer os.Remove(goDepZipPath)
|
||||
ioutil.WriteFile(goDepZipPath, goDep, 0600)
|
||||
_, err = unzip(goDepZipPath, targetPath)
|
||||
if err != nil {
|
||||
setupLog.Infof("Failed to unzip file %s -> %s", goDepZipPath, appDir)
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func setupCodenames(appDir string) error {
|
||||
nouns, err := assetsFs.ReadFile("fs/nouns.txt")
|
||||
if err != nil {
|
||||
@@ -342,13 +319,13 @@ func setupCodenames(appDir string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
err = ioutil.WriteFile(path.Join(appDir, "nouns.txt"), nouns, 0600)
|
||||
err = os.WriteFile(filepath.Join(appDir, "nouns.txt"), nouns, 0600)
|
||||
if err != nil {
|
||||
setupLog.Infof("Failed to write noun data to: %s", appDir)
|
||||
return err
|
||||
}
|
||||
|
||||
err = ioutil.WriteFile(path.Join(appDir, "adjectives.txt"), adjectives, 0600)
|
||||
err = os.WriteFile(filepath.Join(appDir, "adjectives.txt"), adjectives, 0600)
|
||||
if err != nil {
|
||||
setupLog.Infof("Failed to write adjective data to: %s", appDir)
|
||||
return err
|
||||
@@ -374,7 +351,10 @@ func unzip(src string, dest string) ([]string, error) {
|
||||
}
|
||||
defer rc.Close()
|
||||
|
||||
fPath := filepath.Join(dest, file.Name)
|
||||
fPath := filepath.Clean(filepath.Join(dest, file.Name))
|
||||
if !strings.HasPrefix(fPath, filepath.Clean(dest)) {
|
||||
panic("illegal zip file path")
|
||||
}
|
||||
filenames = append(filenames, fPath)
|
||||
|
||||
if file.FileInfo().IsDir() {
|
||||
|
||||
@@ -22,10 +22,10 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net/url"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/bishopfox/sliver/server/assets"
|
||||
"github.com/bishopfox/sliver/server/log"
|
||||
@@ -52,8 +52,8 @@ var (
|
||||
// GetDatabaseConfigPath - File path to config.json
|
||||
func GetDatabaseConfigPath() string {
|
||||
appDir := assets.GetRootAppDir()
|
||||
databaseConfigPath := path.Join(appDir, "configs", databaseConfigFileName)
|
||||
databaseConfigLog.Infof("Loading config from %s", databaseConfigPath)
|
||||
databaseConfigPath := filepath.Join(appDir, "configs", databaseConfigFileName)
|
||||
databaseConfigLog.Debugf("Loading config from %s", databaseConfigPath)
|
||||
return databaseConfigPath
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ type DatabaseConfig struct {
|
||||
func (c *DatabaseConfig) DSN() (string, error) {
|
||||
switch c.Dialect {
|
||||
case Sqlite:
|
||||
filePath := path.Join(assets.GetRootAppDir(), "sliver.db")
|
||||
filePath := filepath.Join(assets.GetRootAppDir(), "sliver.db")
|
||||
params := encodeParams(c.Params)
|
||||
return fmt.Sprintf("file:%s?%s", filePath, params), nil
|
||||
case MySQL:
|
||||
@@ -88,6 +88,7 @@ func (c *DatabaseConfig) DSN() (string, error) {
|
||||
db := url.QueryEscape(c.Database)
|
||||
host := fmt.Sprintf("%s:%d", url.QueryEscape(c.Host), c.Port)
|
||||
params := encodeParams(c.Params)
|
||||
databaseConfigLog.Infof("Connecting to MySQL database %s@%s/%s", user, host, db)
|
||||
return fmt.Sprintf("%s:%s@tcp(%s)/%s?%s", user, password, host, db, params), nil
|
||||
case Postgres:
|
||||
user := url.QueryEscape(c.Username)
|
||||
@@ -96,6 +97,7 @@ func (c *DatabaseConfig) DSN() (string, error) {
|
||||
host := url.QueryEscape(c.Host)
|
||||
port := c.Port
|
||||
params := encodeParams(c.Params)
|
||||
databaseConfigLog.Infof("Connecting to Postgres database %s@%s:%d/%s", user, host, port, db)
|
||||
return fmt.Sprintf("host=%s port=%d user=%s password=%s dbname=%s %s", host, port, user, password, db, params), nil
|
||||
default:
|
||||
return "", ErrInvalidDialect
|
||||
@@ -126,7 +128,7 @@ func (c *DatabaseConfig) Save() error {
|
||||
return err
|
||||
}
|
||||
databaseConfigLog.Infof("Saving config to %s", configPath)
|
||||
err = ioutil.WriteFile(configPath, data, 0600)
|
||||
err = os.WriteFile(configPath, data, 0600)
|
||||
if err != nil {
|
||||
databaseConfigLog.Errorf("Failed to write config %s", err)
|
||||
}
|
||||
@@ -138,7 +140,7 @@ func GetDatabaseConfig() *DatabaseConfig {
|
||||
configPath := GetDatabaseConfigPath()
|
||||
config := getDefaultDatabaseConfig()
|
||||
if _, err := os.Stat(configPath); !os.IsNotExist(err) {
|
||||
data, err := ioutil.ReadFile(configPath)
|
||||
data, err := os.ReadFile(configPath)
|
||||
if err != nil {
|
||||
databaseConfigLog.Errorf("Failed to read config file %s", err)
|
||||
return config
|
||||
|
||||
@@ -22,7 +22,6 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
insecureRand "math/rand"
|
||||
"os"
|
||||
"path"
|
||||
@@ -298,7 +297,7 @@ func GetHTTPC2Config() *HTTPC2Config {
|
||||
return &defaultHTTPC2Config
|
||||
}
|
||||
}
|
||||
data, err := ioutil.ReadFile(configPath)
|
||||
data, err := os.ReadFile(configPath)
|
||||
if err != nil {
|
||||
httpC2ConfigLog.Errorf("Failed to read http c2 config %s", err)
|
||||
return &defaultHTTPC2Config
|
||||
@@ -327,7 +326,7 @@ func CheckHTTPC2ConfigErrors() error {
|
||||
return err
|
||||
}
|
||||
}
|
||||
data, err := ioutil.ReadFile(configPath)
|
||||
data, err := os.ReadFile(configPath)
|
||||
if err != nil {
|
||||
httpC2ConfigLog.Errorf("Failed to read http c2 config %s", err)
|
||||
return err
|
||||
@@ -351,7 +350,7 @@ func generateDefaultConfig(saveTo string) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return ioutil.WriteFile(saveTo, data, 0600)
|
||||
return os.WriteFile(saveTo, data, 0600)
|
||||
}
|
||||
|
||||
var (
|
||||
|
||||
@@ -111,16 +111,16 @@ func (d *ddl) removeConstraint(name string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (d *ddl) hasConstraint(name string) bool {
|
||||
reg := regexp.MustCompile("^CONSTRAINT [\"`]?" + regexp.QuoteMeta(name) + "[\"` ]")
|
||||
// func (d *ddl) hasConstraint(name string) bool {
|
||||
// reg := regexp.MustCompile("^CONSTRAINT [\"`]?" + regexp.QuoteMeta(name) + "[\"` ]")
|
||||
|
||||
for _, f := range d.fields {
|
||||
if reg.MatchString(f) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
// for _, f := range d.fields {
|
||||
// if reg.MatchString(f) {
|
||||
// return true
|
||||
// }
|
||||
// }
|
||||
// return false
|
||||
// }
|
||||
|
||||
func (d *ddl) getColumns() []string {
|
||||
res := []string{}
|
||||
|
||||
@@ -97,11 +97,11 @@ func (dialector Dialector) ClauseBuilders() map[string]clause.ClauseBuilder {
|
||||
},
|
||||
"LIMIT": func(c clause.Clause, builder clause.Builder) {
|
||||
if limit, ok := c.Expression.(clause.Limit); ok {
|
||||
if limit.Limit > 0 || limit.Offset > 0 {
|
||||
if limit.Limit <= 0 {
|
||||
limit.Limit = -1
|
||||
if (*limit.Limit) > 0 || limit.Offset > 0 {
|
||||
if (*limit.Limit) <= 0 {
|
||||
(*limit.Limit) = -1
|
||||
}
|
||||
builder.WriteString("LIMIT " + strconv.Itoa(limit.Limit))
|
||||
builder.WriteString("LIMIT " + strconv.Itoa((*limit.Limit)))
|
||||
}
|
||||
if limit.Offset > 0 {
|
||||
builder.WriteString(" OFFSET " + strconv.Itoa(limit.Offset))
|
||||
|
||||
@@ -98,7 +98,6 @@ func postgresClient(dbConfig *configs.DatabaseConfig) *gorm.DB {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
clientLog.Infof("postgres -> %s", dsn)
|
||||
dbClient, err := gorm.Open(postgres.Open(dsn), &gorm.Config{
|
||||
PrepareStmt: true,
|
||||
Logger: getGormLogger(dbConfig),
|
||||
@@ -114,7 +113,6 @@ func mySQLClient(dbConfig *configs.DatabaseConfig) *gorm.DB {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
clientLog.Infof("mysql -> %s", dsn)
|
||||
dbClient, err := gorm.Open(mysql.Open(dsn), &gorm.Config{
|
||||
PrepareStmt: true,
|
||||
Logger: getGormLogger(dbConfig),
|
||||
|
||||
@@ -32,7 +32,7 @@ func sqliteClient(dbConfig *configs.DatabaseConfig) *gorm.DB {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
clientLog.Infof("sqlite -> %s", dsn)
|
||||
clientLog.Debugf("sqlite -> %s", dsn)
|
||||
|
||||
dbClient, err := gorm.Open(sqlite.Open(dsn), &gorm.Config{
|
||||
PrepareStmt: true,
|
||||
|
||||
+24
-1
@@ -2,6 +2,8 @@ package uint128 // import "lukechampine.com/uint128"
|
||||
|
||||
import (
|
||||
"encoding/binary"
|
||||
"errors"
|
||||
"fmt"
|
||||
"math"
|
||||
"math/big"
|
||||
"math/bits"
|
||||
@@ -385,6 +387,21 @@ func (u Uint128) Big() *big.Int {
|
||||
return i
|
||||
}
|
||||
|
||||
// Scan implements fmt.Scanner.
|
||||
func (u *Uint128) Scan(s fmt.ScanState, ch rune) error {
|
||||
i := new(big.Int)
|
||||
if err := i.Scan(s, ch); err != nil {
|
||||
return err
|
||||
} else if i.Sign() < 0 {
|
||||
return errors.New("value cannot be negative")
|
||||
} else if i.BitLen() > 128 {
|
||||
return errors.New("value overflows Uint128")
|
||||
}
|
||||
u.Lo = i.Uint64()
|
||||
u.Hi = i.Rsh(i, 64).Uint64()
|
||||
return nil
|
||||
}
|
||||
|
||||
// New returns the Uint128 value (lo,hi).
|
||||
func New(lo, hi uint64) Uint128 {
|
||||
return Uint128{lo, hi}
|
||||
@@ -412,6 +429,12 @@ func FromBig(i *big.Int) (u Uint128) {
|
||||
panic("value overflows Uint128")
|
||||
}
|
||||
u.Lo = i.Uint64()
|
||||
u.Hi = new(big.Int).Rsh(i, 64).Uint64()
|
||||
u.Hi = i.Rsh(i, 64).Uint64()
|
||||
return u
|
||||
}
|
||||
|
||||
// FromString parses s as a Uint128 value.
|
||||
func FromString(s string) (u Uint128, err error) {
|
||||
_, err = fmt.Sscan(s, &u)
|
||||
return
|
||||
}
|
||||
+1
@@ -16,3 +16,4 @@ Steffen Butzer <steffen(dot)[email protected]>
|
||||
Tommi Virtanen <[email protected]>
|
||||
Yasuhiro Matsumoto <[email protected]>
|
||||
Zvi Effron <[email protected]>
|
||||
Lucas Raab <[email protected]>
|
||||
+9
@@ -63,15 +63,24 @@ build_all_targets:
|
||||
GOOS=darwin GOARCH=arm64 go build -v ./...
|
||||
GOOS=freebsd GOARCH=386 go build -v ./...
|
||||
GOOS=freebsd GOARCH=amd64 go build -v ./...
|
||||
GOOS=freebsd GOARCH=arm go build -v ./...
|
||||
GOOS=freebsd GOARCH=arm64 go build -v ./...
|
||||
GOOS=linux GOARCH=386 go build -v ./...
|
||||
GOOS=linux GOARCH=amd64 go build -v ./...
|
||||
GOOS=linux GOARCH=arm go build -v ./...
|
||||
GOOS=linux GOARCH=arm64 go build -v ./...
|
||||
GOOS=linux GOARCH=ppc64le go build -v ./...
|
||||
GOOS=linux GOARCH=riscv64 go build -v ./...
|
||||
GOOS=linux GOARCH=s390x go build -v ./...
|
||||
GOOS=netbsd GOARCH=amd64 go build -v ./...
|
||||
GOOS=netbsd GOARCH=arm go build -v ./...
|
||||
GOOS=netbsd GOARCH=386 go build -v ./...
|
||||
GOOS=openbsd GOARCH=amd64 go build -v ./...
|
||||
GOOS=openbsd GOARCH=arm64 go build -v ./...
|
||||
GOOS=openbsd GOARCH=386 go build -v ./...
|
||||
GOOS=windows GOARCH=386 go build -v ./...
|
||||
GOOS=windows GOARCH=amd64 go build -v ./...
|
||||
GOOS=windows GOARCH=arm64 go build -v ./...
|
||||
|
||||
devbench:
|
||||
date 2>&1 | tee log-devbench
|
||||
|
||||
+6
-2
@@ -395,8 +395,12 @@ func (a *ABI) layout(ctx *context, n Node, t *structType) *structType {
|
||||
group += f.bitFieldWidth
|
||||
default:
|
||||
if n := group % 64; n != 0 {
|
||||
group -= n
|
||||
off += int64(normalizeBitFieldWidth(group) - group)
|
||||
if ctx.cfg.FixBitfieldPadding {
|
||||
off += int64(normalizeBitFieldWidth(group-n) - group)
|
||||
} else {
|
||||
group -= n
|
||||
off += int64(normalizeBitFieldWidth(group) - group)
|
||||
}
|
||||
}
|
||||
off0 := off
|
||||
off = roundup(off, 8*int64(al))
|
||||
|
||||
+263
-2
@@ -9,26 +9,35 @@ var (
|
||||
"amd64": binary.LittleEndian,
|
||||
"arm": binary.LittleEndian,
|
||||
"arm64": binary.LittleEndian,
|
||||
"ppc64le": binary.LittleEndian,
|
||||
"riscv64": binary.LittleEndian,
|
||||
"s390x": binary.BigEndian,
|
||||
}
|
||||
|
||||
abiSignedChar = map[[2]string]bool{
|
||||
{"freebsd", "arm"}: false,
|
||||
{"freebsd", "arm64"}: false,
|
||||
{"linux", "arm"}: false,
|
||||
{"linux", "arm64"}: false,
|
||||
{"linux", "s390x"}: false,
|
||||
{"linux", "ppc64le"}: false,
|
||||
{"linux", "riscv64"}: false,
|
||||
{"linux", "s390x"}: false,
|
||||
{"netbsd", "arm"}: false,
|
||||
|
||||
{"darwin", "amd64"}: true,
|
||||
{"darwin", "arm64"}: true,
|
||||
{"freebsd", "amd64"}: true,
|
||||
{"freebsd", "386"}: true,
|
||||
{"freebsd", "amd64"}: true,
|
||||
{"linux", "386"}: true,
|
||||
{"linux", "amd64"}: true,
|
||||
{"netbsd", "386"}: true,
|
||||
{"netbsd", "amd64"}: true,
|
||||
{"openbsd", "386"}: true,
|
||||
{"openbsd", "amd64"}: true,
|
||||
{"openbsd", "arm64"}: true,
|
||||
{"windows", "386"}: true,
|
||||
{"windows", "amd64"}: true,
|
||||
{"windows", "arm64"}: true,
|
||||
}
|
||||
)
|
||||
|
||||
@@ -213,6 +222,29 @@ var abiTypes = map[[2]string]map[Kind]ABIType{
|
||||
Decimal64: {8, 8, 8},
|
||||
Decimal128: {16, 16, 16},
|
||||
},
|
||||
// clang version 14.0.0 (https://github.com/llvm/llvm-project.git 329fda39c507e8740978d10458451dcdb21563be)
|
||||
// Target: aarch64-w64-windows-gnu
|
||||
{"windows", "arm64"}: {
|
||||
Void: {1, 1, 1},
|
||||
Bool: {1, 1, 1},
|
||||
Char: {1, 1, 1},
|
||||
SChar: {1, 1, 1},
|
||||
UChar: {1, 1, 1},
|
||||
Short: {2, 2, 2},
|
||||
UShort: {2, 2, 2},
|
||||
Enum: {4, 4, 4},
|
||||
Int: {4, 4, 4},
|
||||
UInt: {4, 4, 4},
|
||||
Long: {4, 4, 4},
|
||||
ULong: {4, 4, 4},
|
||||
LongLong: {8, 8, 8},
|
||||
ULongLong: {8, 8, 8},
|
||||
Ptr: {8, 8, 8},
|
||||
Function: {8, 8, 8},
|
||||
Float: {4, 4, 4},
|
||||
Double: {8, 8, 8},
|
||||
LongDouble: {8, 8, 8},
|
||||
},
|
||||
// $ i686-w64-mingw32-gcc main.c && wine a.exe
|
||||
{"windows", "386"}: {
|
||||
Void: {1, 1, 1},
|
||||
@@ -385,6 +417,38 @@ var abiTypes = map[[2]string]map[Kind]ABIType{
|
||||
Int128: {16, 16, 16},
|
||||
UInt128: {16, 16, 16},
|
||||
},
|
||||
// gcc (FreeBSD Ports Collection) 11.3.0
|
||||
{"freebsd", "arm64"}: {
|
||||
Void: {1, 1, 1},
|
||||
Bool: {1, 1, 1},
|
||||
Char: {1, 1, 1},
|
||||
SChar: {1, 1, 1},
|
||||
UChar: {1, 1, 1},
|
||||
Short: {2, 2, 2},
|
||||
UShort: {2, 2, 2},
|
||||
Enum: {4, 4, 4},
|
||||
Int: {4, 4, 4},
|
||||
UInt: {4, 4, 4},
|
||||
Long: {8, 8, 8},
|
||||
ULong: {8, 8, 8},
|
||||
LongLong: {8, 8, 8},
|
||||
ULongLong: {8, 8, 8},
|
||||
Ptr: {8, 8, 8},
|
||||
Function: {8, 8, 8},
|
||||
Float: {4, 4, 4},
|
||||
Double: {8, 8, 8},
|
||||
LongDouble: {16, 16, 16},
|
||||
Int8: {1, 1, 1},
|
||||
UInt8: {1, 1, 1},
|
||||
Int16: {2, 2, 2},
|
||||
UInt16: {2, 2, 2},
|
||||
Int32: {4, 4, 4},
|
||||
UInt32: {4, 4, 4},
|
||||
Int64: {8, 8, 8},
|
||||
UInt64: {8, 8, 8},
|
||||
Int128: {16, 16, 16},
|
||||
UInt128: {16, 16, 16},
|
||||
},
|
||||
// gcc (FreeBSD Ports Collection) 10.3.0
|
||||
{"freebsd", "386"}: {
|
||||
Void: {1, 1, 1},
|
||||
@@ -420,6 +484,36 @@ var abiTypes = map[[2]string]map[Kind]ABIType{
|
||||
Float64x: {16, 16, 16},
|
||||
Float128: {16, 16, 16},
|
||||
},
|
||||
// gcc (FreeBSD Ports Collection) 11.3.0
|
||||
{"freebsd", "arm"}: {
|
||||
Void: {1, 1, 1},
|
||||
Bool: {1, 1, 1},
|
||||
Char: {1, 1, 1},
|
||||
SChar: {1, 1, 1},
|
||||
UChar: {1, 1, 1},
|
||||
Short: {2, 2, 2},
|
||||
UShort: {2, 2, 2},
|
||||
Enum: {4, 4, 4},
|
||||
Int: {4, 4, 4},
|
||||
UInt: {4, 4, 4},
|
||||
Long: {4, 4, 4},
|
||||
ULong: {4, 4, 4},
|
||||
LongLong: {8, 8, 8},
|
||||
ULongLong: {8, 8, 8},
|
||||
Ptr: {4, 4, 4},
|
||||
Function: {4, 4, 4},
|
||||
Float: {4, 4, 4},
|
||||
Double: {8, 8, 8},
|
||||
LongDouble: {8, 8, 8},
|
||||
Int8: {1, 1, 1},
|
||||
UInt8: {1, 1, 1},
|
||||
Int16: {2, 2, 2},
|
||||
UInt16: {2, 2, 2},
|
||||
Int32: {4, 4, 4},
|
||||
UInt32: {4, 4, 4},
|
||||
Int64: {8, 8, 8},
|
||||
UInt64: {8, 8, 8},
|
||||
},
|
||||
// gcc (GCC) 8.4.0
|
||||
{"openbsd", "amd64"}: {
|
||||
Void: {1, 1, 1},
|
||||
@@ -457,6 +551,68 @@ var abiTypes = map[[2]string]map[Kind]ABIType{
|
||||
Float64x: {16, 16, 16},
|
||||
Float128: {16, 16, 16},
|
||||
},
|
||||
// OpenBSD clang version 13.0.0
|
||||
{"openbsd", "arm64"}: {
|
||||
Void: {1, 1, 1},
|
||||
Bool: {1, 1, 1},
|
||||
Char: {1, 1, 1},
|
||||
SChar: {1, 1, 1},
|
||||
UChar: {1, 1, 1},
|
||||
Short: {2, 2, 2},
|
||||
UShort: {2, 2, 2},
|
||||
Enum: {4, 4, 4},
|
||||
Int: {4, 4, 4},
|
||||
UInt: {4, 4, 4},
|
||||
Long: {8, 8, 8},
|
||||
ULong: {8, 8, 8},
|
||||
LongLong: {8, 8, 8},
|
||||
ULongLong: {8, 8, 8},
|
||||
Ptr: {8, 8, 8},
|
||||
Function: {8, 8, 8},
|
||||
Float: {4, 4, 4},
|
||||
Double: {8, 8, 8},
|
||||
LongDouble: {16, 16, 16},
|
||||
Int8: {1, 1, 1},
|
||||
UInt8: {1, 1, 1},
|
||||
Int16: {2, 2, 2},
|
||||
UInt16: {2, 2, 2},
|
||||
Int32: {4, 4, 4},
|
||||
UInt32: {4, 4, 4},
|
||||
Int64: {8, 8, 8},
|
||||
UInt64: {8, 8, 8},
|
||||
Int128: {16, 16, 16},
|
||||
UInt128: {16, 16, 16},
|
||||
},
|
||||
// OpenBSD clang version 13.0.0
|
||||
{"openbsd", "386"}: {
|
||||
Void: {1, 1, 1},
|
||||
Bool: {1, 1, 1},
|
||||
Char: {1, 1, 1},
|
||||
SChar: {1, 1, 1},
|
||||
UChar: {1, 1, 1},
|
||||
Short: {2, 2, 2},
|
||||
UShort: {2, 2, 2},
|
||||
Enum: {4, 4, 4},
|
||||
Int: {4, 4, 4},
|
||||
UInt: {4, 4, 4},
|
||||
Long: {4, 4, 4},
|
||||
ULong: {4, 4, 4},
|
||||
LongLong: {8, 4, 4},
|
||||
ULongLong: {8, 4, 4},
|
||||
Ptr: {4, 4, 4},
|
||||
Function: {4, 4, 4},
|
||||
Float: {4, 4, 4},
|
||||
Double: {8, 4, 4},
|
||||
LongDouble: {12, 4, 4},
|
||||
Int8: {1, 1, 1},
|
||||
UInt8: {1, 1, 1},
|
||||
Int16: {2, 2, 2},
|
||||
UInt16: {2, 2, 2},
|
||||
Int32: {4, 4, 4},
|
||||
UInt32: {4, 4, 4},
|
||||
Int64: {8, 4, 4},
|
||||
UInt64: {8, 4, 4},
|
||||
},
|
||||
// gcc (GCC) 10.3.0
|
||||
{"netbsd", "amd64"}: {
|
||||
Void: {1, 1, 1},
|
||||
@@ -489,6 +645,71 @@ var abiTypes = map[[2]string]map[Kind]ABIType{
|
||||
Int128: {16, 16, 16},
|
||||
UInt128: {16, 16, 16},
|
||||
},
|
||||
// gcc (nb4 20200810) 7.5.0
|
||||
{"netbsd", "arm"}: {
|
||||
Void: {1, 1, 1},
|
||||
Bool: {1, 1, 1},
|
||||
Char: {1, 1, 1},
|
||||
SChar: {1, 1, 1},
|
||||
UChar: {1, 1, 1},
|
||||
Short: {2, 2, 2},
|
||||
UShort: {2, 2, 2},
|
||||
Enum: {4, 4, 4},
|
||||
Int: {4, 4, 4},
|
||||
UInt: {4, 4, 4},
|
||||
Long: {4, 4, 4},
|
||||
ULong: {4, 4, 4},
|
||||
LongLong: {8, 8, 8},
|
||||
ULongLong: {8, 8, 8},
|
||||
Ptr: {4, 4, 4},
|
||||
Function: {4, 4, 4},
|
||||
Float: {4, 4, 4},
|
||||
Double: {8, 8, 8},
|
||||
LongDouble: {8, 8, 8},
|
||||
Int8: {1, 1, 1},
|
||||
UInt8: {1, 1, 1},
|
||||
Int16: {2, 2, 2},
|
||||
UInt16: {2, 2, 2},
|
||||
Int32: {4, 4, 4},
|
||||
UInt32: {4, 4, 4},
|
||||
Int64: {8, 8, 8},
|
||||
UInt64: {8, 8, 8},
|
||||
},
|
||||
// gcc (nb4 20200810) 7.5.0
|
||||
{"netbsd", "386"}: {
|
||||
Void: {1, 1, 1},
|
||||
Bool: {1, 1, 1},
|
||||
Char: {1, 1, 1},
|
||||
SChar: {1, 1, 1},
|
||||
UChar: {1, 1, 1},
|
||||
Short: {2, 2, 2},
|
||||
UShort: {2, 2, 2},
|
||||
Enum: {4, 4, 4},
|
||||
Int: {4, 4, 4},
|
||||
UInt: {4, 4, 4},
|
||||
Long: {4, 4, 4},
|
||||
ULong: {4, 4, 4},
|
||||
LongLong: {8, 4, 4},
|
||||
ULongLong: {8, 4, 4},
|
||||
Ptr: {4, 4, 4},
|
||||
Function: {4, 4, 4},
|
||||
Float: {4, 4, 4},
|
||||
Double: {8, 4, 4},
|
||||
LongDouble: {12, 4, 4},
|
||||
Int8: {1, 1, 1},
|
||||
UInt8: {1, 1, 1},
|
||||
Int16: {2, 2, 2},
|
||||
UInt16: {2, 2, 2},
|
||||
Int32: {4, 4, 4},
|
||||
UInt32: {4, 4, 4},
|
||||
Int64: {8, 4, 4},
|
||||
UInt64: {8, 4, 4},
|
||||
Float32: {4, 4, 4},
|
||||
Float32x: {8, 4, 4},
|
||||
Float64: {8, 4, 4},
|
||||
Float64x: {12, 4, 4},
|
||||
Float128: {16, 16, 16},
|
||||
},
|
||||
// gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0
|
||||
{"linux", "riscv64"}: {
|
||||
Void: {1, 1, 1},
|
||||
@@ -526,4 +747,44 @@ var abiTypes = map[[2]string]map[Kind]ABIType{
|
||||
Float64x: {16, 16, 16},
|
||||
Float128: {16, 16, 16},
|
||||
},
|
||||
// gcc (Debian 10.2.1-6) 10.2.1 20210110
|
||||
{"linux", "ppc64le"}: {
|
||||
Void: {1, 1, 1},
|
||||
Bool: {1, 1, 1},
|
||||
Char: {1, 1, 1},
|
||||
SChar: {1, 1, 1},
|
||||
UChar: {1, 1, 1},
|
||||
Short: {2, 2, 2},
|
||||
UShort: {2, 2, 2},
|
||||
Enum: {4, 4, 4},
|
||||
Int: {4, 4, 4},
|
||||
UInt: {4, 4, 4},
|
||||
Long: {8, 8, 8},
|
||||
ULong: {8, 8, 8},
|
||||
LongLong: {8, 8, 8},
|
||||
ULongLong: {8, 8, 8},
|
||||
Ptr: {8, 8, 8},
|
||||
Function: {8, 8, 8},
|
||||
Float: {4, 4, 4},
|
||||
Double: {8, 8, 8},
|
||||
LongDouble: {16, 16, 16},
|
||||
Int8: {1, 1, 1},
|
||||
UInt8: {1, 1, 1},
|
||||
Int16: {2, 2, 2},
|
||||
UInt16: {2, 2, 2},
|
||||
Int32: {4, 4, 4},
|
||||
UInt32: {4, 4, 4},
|
||||
Int64: {8, 8, 8},
|
||||
UInt64: {8, 8, 8},
|
||||
Int128: {16, 16, 16},
|
||||
UInt128: {16, 16, 16},
|
||||
Float32: {4, 4, 4},
|
||||
Float32x: {8, 8, 8},
|
||||
Float64: {8, 8, 8},
|
||||
Float64x: {16, 16, 16},
|
||||
Float128: {16, 16, 16},
|
||||
Decimal32: {4, 4, 4},
|
||||
Decimal64: {8, 8, 8},
|
||||
Decimal128: {16, 16, 16},
|
||||
},
|
||||
}
|
||||
+77
@@ -528,6 +528,7 @@ type Config struct {
|
||||
DebugWorkingDir bool // Output to stderr.
|
||||
DoNotTypecheckAsm bool
|
||||
EnableAssignmentCompatibilityChecking bool // No such checks performed up to v3.31.0. Currently only partially implemented.
|
||||
FixBitfieldPadding bool // Fix a bug in calculating field positions after a bitfield.
|
||||
InjectTracingCode bool // Output to stderr.
|
||||
LongDoubleIsDouble bool
|
||||
PreprocessOnly bool
|
||||
@@ -792,6 +793,14 @@ func (c *context) openFile(name string, sys bool) (io.ReadCloser, error) {
|
||||
// Execution of HostConfig is not free, so caching of the results is
|
||||
// recommended.
|
||||
func HostConfig(cpp string, opts ...string) (predefined string, includePaths, sysIncludePaths []string, err error) {
|
||||
if predefined, includePaths, sysIncludePaths, err = hostConfigv3(cpp, opts...); err == nil {
|
||||
return predefined, includePaths, sysIncludePaths, nil
|
||||
}
|
||||
|
||||
return hostConfigv4(opts)
|
||||
}
|
||||
|
||||
func hostConfigv3(cpp string, opts ...string) (predefined string, includePaths, sysIncludePaths []string, err error) {
|
||||
if cpp == "" {
|
||||
cpp = "cpp"
|
||||
}
|
||||
@@ -843,6 +852,74 @@ func HostConfig(cpp string, opts ...string) (predefined string, includePaths, sy
|
||||
return "", nil, nil, fmt.Errorf("failed parsing %s -v output", cpp)
|
||||
}
|
||||
|
||||
func hostConfigv4(opts []string) (predefined string, includePaths, sysIncludePaths []string, err error) {
|
||||
for _, cc := range []string{os.Getenv("CC"), "cc", "gcc"} {
|
||||
if cc == "" {
|
||||
continue
|
||||
}
|
||||
|
||||
cc, err = exec.LookPath(cc)
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
|
||||
args := append(opts, "-dM", "-E", "-")
|
||||
pre, err := exec.Command(cc, args...).CombinedOutput()
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
|
||||
sep := "\n"
|
||||
if env("GOOS", runtime.GOOS) == "windows" {
|
||||
sep = "\r\n"
|
||||
}
|
||||
a := strings.Split(string(pre), sep)
|
||||
w := 0
|
||||
for _, v := range a {
|
||||
if strings.HasPrefix(v, "#") {
|
||||
a[w] = v
|
||||
w++
|
||||
}
|
||||
}
|
||||
predefined = strings.Join(a[:w], "\n")
|
||||
args = append(opts, "-v", "-E", "-")
|
||||
out, err := exec.Command(cc, args...).CombinedOutput()
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
|
||||
a = strings.Split(string(out), sep)
|
||||
for i := 0; i < len(a); {
|
||||
switch a[i] {
|
||||
case "#include \"...\" search starts here:":
|
||||
loop:
|
||||
for i = i + 1; i < len(a); {
|
||||
switch v := a[i]; {
|
||||
case strings.HasPrefix(v, "#") || v == "End of search list.":
|
||||
break loop
|
||||
default:
|
||||
includePaths = append(includePaths, strings.TrimSpace(v))
|
||||
i++
|
||||
}
|
||||
}
|
||||
case "#include <...> search starts here:":
|
||||
for i = i + 1; i < len(a); {
|
||||
switch v := a[i]; {
|
||||
case strings.HasPrefix(v, "#") || v == "End of search list.":
|
||||
return predefined, includePaths, sysIncludePaths, nil
|
||||
default:
|
||||
sysIncludePaths = append(sysIncludePaths, strings.TrimSpace(v))
|
||||
i++
|
||||
}
|
||||
}
|
||||
default:
|
||||
i++
|
||||
}
|
||||
}
|
||||
}
|
||||
return "", nil, nil, fmt.Errorf("cannot determine C compiler configuration")
|
||||
}
|
||||
|
||||
func env(key, val string) string {
|
||||
if s := os.Getenv(key); s != "" {
|
||||
return s
|
||||
|
||||
+8
@@ -1138,6 +1138,10 @@ func (n *UnaryExpression) check(ctx *context, isAsmArg bool) Operand {
|
||||
case UnaryExpressionPlus: // '+' CastExpression
|
||||
op := n.CastExpression.check(ctx, isAsmArg)
|
||||
n.IsSideEffectsFree = n.CastExpression.IsSideEffectsFree
|
||||
if op == nil {
|
||||
//TODO report error
|
||||
break
|
||||
}
|
||||
if !op.Type().IsArithmeticType() {
|
||||
//TODO report error
|
||||
break
|
||||
@@ -1150,6 +1154,10 @@ func (n *UnaryExpression) check(ctx *context, isAsmArg bool) Operand {
|
||||
case UnaryExpressionMinus: // '-' CastExpression
|
||||
op := n.CastExpression.check(ctx, isAsmArg)
|
||||
n.IsSideEffectsFree = n.CastExpression.IsSideEffectsFree
|
||||
if op == nil {
|
||||
//TODO report error
|
||||
break
|
||||
}
|
||||
if op.Type().Kind() == Vector {
|
||||
n.Operand = &operand{abi: &ctx.cfg.ABI, typ: op.Type()}
|
||||
break
|
||||
|
||||
+46
-27
@@ -3162,28 +3162,49 @@ func (p *parser) designator(acceptCol bool) (*Designator, bool) {
|
||||
// iteration-statement
|
||||
// jump-statement
|
||||
// asm-statement
|
||||
func (p *parser) statement() *Statement {
|
||||
switch p.rune() {
|
||||
case IDENTIFIER:
|
||||
if p.peek(false) == ':' {
|
||||
return &Statement{Case: StatementLabeled, LabeledStatement: p.labeledStatement()}
|
||||
func (p *parser) statement() (r *Statement) {
|
||||
var r0 *Statement
|
||||
var prevLS, ls *LabeledStatement
|
||||
|
||||
defer func() {
|
||||
if ls != nil {
|
||||
ls.Statement = r
|
||||
r = r0
|
||||
}
|
||||
}()
|
||||
|
||||
for {
|
||||
switch p.rune() {
|
||||
case IDENTIFIER:
|
||||
switch {
|
||||
case p.peek(false) == ':':
|
||||
ls = p.labeledStatement()
|
||||
default:
|
||||
return &Statement{Case: StatementExpr, ExpressionStatement: p.expressionStatement()}
|
||||
}
|
||||
case '{':
|
||||
return &Statement{Case: StatementCompound, CompoundStatement: p.compoundStatement(nil, nil)}
|
||||
case IF, SWITCH:
|
||||
return &Statement{Case: StatementSelection, SelectionStatement: p.selectionStatement()}
|
||||
case WHILE, DO, FOR:
|
||||
return &Statement{Case: StatementIteration, IterationStatement: p.iterationStatement()}
|
||||
case GOTO, BREAK, CONTINUE, RETURN:
|
||||
return &Statement{Case: StatementJump, JumpStatement: p.jumpStatement()}
|
||||
case CASE, DEFAULT:
|
||||
ls = p.labeledStatement()
|
||||
case ASM:
|
||||
return &Statement{Case: StatementAsm, AsmStatement: p.asmStatement()}
|
||||
default:
|
||||
return &Statement{Case: StatementExpr, ExpressionStatement: p.expressionStatement()}
|
||||
}
|
||||
|
||||
return &Statement{Case: StatementExpr, ExpressionStatement: p.expressionStatement()}
|
||||
case '{':
|
||||
return &Statement{Case: StatementCompound, CompoundStatement: p.compoundStatement(nil, nil)}
|
||||
case IF, SWITCH:
|
||||
return &Statement{Case: StatementSelection, SelectionStatement: p.selectionStatement()}
|
||||
case WHILE, DO, FOR:
|
||||
return &Statement{Case: StatementIteration, IterationStatement: p.iterationStatement()}
|
||||
case GOTO, BREAK, CONTINUE, RETURN:
|
||||
return &Statement{Case: StatementJump, JumpStatement: p.jumpStatement()}
|
||||
case CASE, DEFAULT:
|
||||
return &Statement{Case: StatementLabeled, LabeledStatement: p.labeledStatement()}
|
||||
case ASM:
|
||||
return &Statement{Case: StatementAsm, AsmStatement: p.asmStatement()}
|
||||
default:
|
||||
return &Statement{Case: StatementExpr, ExpressionStatement: p.expressionStatement()}
|
||||
switch {
|
||||
case r0 == nil:
|
||||
r0 = &Statement{Case: StatementLabeled, LabeledStatement: ls}
|
||||
default:
|
||||
prevLS.Statement = &Statement{Case: StatementLabeled, LabeledStatement: ls}
|
||||
}
|
||||
prevLS = ls
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3220,7 +3241,7 @@ func (p *parser) labeledStatement() (r *LabeledStatement) {
|
||||
p.block.hasLabel()
|
||||
r = &LabeledStatement{
|
||||
Case: LabeledStatementLabel, Token: t, Token2: t2, AttributeSpecifierList: attr,
|
||||
Statement: p.statement(), lexicalScope: p.declScope, block: p.block,
|
||||
lexicalScope: p.declScope, block: p.block,
|
||||
}
|
||||
p.declScope.declare(t.Value, r)
|
||||
return r
|
||||
@@ -3246,8 +3267,7 @@ func (p *parser) labeledStatement() (r *LabeledStatement) {
|
||||
return &LabeledStatement{
|
||||
Case: LabeledStatementRange, Token: t, ConstantExpression: e,
|
||||
Token2: t2, ConstantExpression2: e2, Token3: t3,
|
||||
Statement: p.statement(), lexicalScope: p.declScope,
|
||||
block: p.block,
|
||||
lexicalScope: p.declScope, block: p.block,
|
||||
}
|
||||
case ':':
|
||||
t2 = p.shift()
|
||||
@@ -3256,8 +3276,7 @@ func (p *parser) labeledStatement() (r *LabeledStatement) {
|
||||
}
|
||||
return &LabeledStatement{
|
||||
Case: LabeledStatementCaseLabel, Token: t, ConstantExpression: e,
|
||||
Token2: t2, Statement: p.statement(), lexicalScope: p.declScope,
|
||||
block: p.block,
|
||||
Token2: t2, lexicalScope: p.declScope, block: p.block,
|
||||
}
|
||||
case DEFAULT:
|
||||
if p.switches == 0 {
|
||||
@@ -3271,12 +3290,12 @@ func (p *parser) labeledStatement() (r *LabeledStatement) {
|
||||
p.err("expected :")
|
||||
}
|
||||
return &LabeledStatement{
|
||||
Case: LabeledStatementDefault, Token: t, Token2: t2, Statement: p.statement(),
|
||||
Case: LabeledStatementDefault, Token: t, Token2: t2,
|
||||
lexicalScope: p.declScope, block: p.block,
|
||||
}
|
||||
default:
|
||||
p.err("expected labeled-statement")
|
||||
return nil
|
||||
return &LabeledStatement{}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+5
-1
@@ -76,6 +76,7 @@ build_all_targets:
|
||||
GOOS=darwin GOARCH=arm64 go test -c -o /dev/null
|
||||
GOOS=freebsd GOARCH=386 go test -c -o /dev/null
|
||||
GOOS=freebsd GOARCH=amd64 go test -c -o /dev/null
|
||||
GOOS=freebsd GOARCH=arm go test -c -o /dev/null
|
||||
GOOS=linux GOARCH=386 go test -c -o /dev/null
|
||||
GOOS=linux GOARCH=amd64 go test -c -o /dev/null
|
||||
GOOS=linux GOARCH=arm go test -c -o /dev/null
|
||||
@@ -83,9 +84,12 @@ build_all_targets:
|
||||
GOOS=linux GOARCH=riscv64 go test -c -o /dev/null
|
||||
GOOS=linux GOARCH=s390x go test -c -o /dev/null
|
||||
GOOS=netbsd GOARCH=amd64 go test -c -o /dev/null
|
||||
#TODO GOOS=netbsd GOARCH=arm go test -c -o /dev/null
|
||||
GOOS=openbsd GOARCH=amd64 go test -c -o /dev/null
|
||||
GOOS=openbsd GOARCH=arm64 go test -c -o /dev/null
|
||||
GOOS=windows GOARCH=386 go test -c -o /dev/null
|
||||
GOOS=windows GOARCH=amd64 go test -c -o /dev/null
|
||||
GOOS=windows GOARCH=arm64 go test -c -o /dev/null
|
||||
|
||||
devbench:
|
||||
date 2>&1 | tee log-devbench
|
||||
@@ -115,7 +119,7 @@ edit:
|
||||
|
||||
editor:
|
||||
gofmt -l -s -w *.go
|
||||
go build -v -o $(GOPATH)/bin/ccgo modernc.org/ccgo/v3
|
||||
go build -v -o $(GOPATH)/bin/ccgo3 modernc.org/ccgo/v3
|
||||
go test -c -o /dev/null
|
||||
|
||||
later:
|
||||
|
||||
+4
-2
@@ -1507,14 +1507,16 @@ out:
|
||||
cmd = exec.Command(command[0], command[1:]...)
|
||||
parser = makeXParser2
|
||||
case "windows":
|
||||
if command[0] != "make" {
|
||||
if command[0] != "make" && command[0] != "make.exe" {
|
||||
return fmt.Errorf("usupported build command: %s", command[0])
|
||||
}
|
||||
|
||||
switch s := runtime.GOOS; s {
|
||||
case "windows":
|
||||
argv := append([]string{"-d"}, command[1:]...)
|
||||
command[0] += ".exe"
|
||||
if !strings.HasSuffix(command[0], ".exe") {
|
||||
command[0] += ".exe"
|
||||
}
|
||||
cmd = exec.Command(command[0], argv...)
|
||||
parser = makeDParser
|
||||
break out
|
||||
|
||||
+115
-15
@@ -1012,6 +1012,8 @@ func (p *project) isArray(f *function, n declarator, t cc.Type) (r bool) {
|
||||
return p.detectArray(f, n.(cc.Node), false, true, nil)
|
||||
}
|
||||
|
||||
var home = os.Getenv("HOME")
|
||||
|
||||
// Return n's position with path reduced to baseName(path) unless
|
||||
// p.task.fullPathComments is true.
|
||||
func (p *project) pos(n cc.Node) (r token.Position) {
|
||||
@@ -1019,9 +1021,15 @@ func (p *project) pos(n cc.Node) (r token.Position) {
|
||||
return r
|
||||
}
|
||||
|
||||
r = token.Position(n.Position())
|
||||
if r.IsValid() && !p.task.fullPathComments {
|
||||
r.Filename = filepath.Base(r.Filename)
|
||||
if r = token.Position(n.Position()); r.IsValid() {
|
||||
switch {
|
||||
case p.task.fullPathComments:
|
||||
if strings.HasPrefix(r.Filename, home) {
|
||||
r.Filename = "$HOME" + r.Filename[len(home):]
|
||||
}
|
||||
default:
|
||||
r.Filename = filepath.Base(r.Filename)
|
||||
}
|
||||
}
|
||||
return r
|
||||
}
|
||||
@@ -1237,8 +1245,9 @@ type project struct {
|
||||
wanted map[*cc.Declarator]struct{}
|
||||
wcharSize uintptr
|
||||
|
||||
isMain bool
|
||||
pass1 bool
|
||||
isMain bool
|
||||
pass1 bool
|
||||
pauseCodegen bool
|
||||
}
|
||||
|
||||
func newProject(t *Task) (*project, error) {
|
||||
@@ -1358,7 +1367,7 @@ func (p *project) o(s string, args ...interface{}) {
|
||||
}
|
||||
|
||||
func (p *project) w(s string, args ...interface{}) {
|
||||
if p.pass1 {
|
||||
if p.pass1 || p.pauseCodegen {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -1491,7 +1500,7 @@ func (p *project) layoutDefines() error {
|
||||
}
|
||||
name = p.scope.take(cc.String(name))
|
||||
p.defines[nm] = define{name, val}
|
||||
p.defineLines = append(p.defineLines, fmt.Sprintf("%s = %s", name, src))
|
||||
p.defineLines = append(p.defineLines, fmt.Sprintf("%s = %s // %v:", name, src, p.pos(m)))
|
||||
}
|
||||
}
|
||||
return nil
|
||||
@@ -3929,9 +3938,9 @@ func (p *project) convertToUint128(n cc.Node, op cc.Operand, to cc.Type, flags f
|
||||
func (p *project) convertNil(n cc.Node, to cc.Type, flags flags) string {
|
||||
switch to.Kind() {
|
||||
case cc.Int128:
|
||||
panic(todo("", pos(n)))
|
||||
panic(todo("", p.pos(n)))
|
||||
case cc.UInt128:
|
||||
panic(todo("", pos(n)))
|
||||
panic(todo("", p.pos(n)))
|
||||
}
|
||||
|
||||
p.w("%s(", p.typ(n, to))
|
||||
@@ -4025,15 +4034,15 @@ func (p *project) convertInt(n cc.Node, op cc.Operand, to cc.Type, flags flags)
|
||||
from := op.Type()
|
||||
switch from.Kind() {
|
||||
case cc.Int128:
|
||||
panic(todo("", pos(n)))
|
||||
panic(todo("", p.pos(n)))
|
||||
case cc.UInt128:
|
||||
panic(todo("", pos(n)))
|
||||
panic(todo("", p.pos(n)))
|
||||
}
|
||||
switch to.Kind() {
|
||||
case cc.Int128:
|
||||
panic(todo("", pos(n)))
|
||||
panic(todo("", p.pos(n)))
|
||||
case cc.UInt128:
|
||||
panic(todo("", pos(n)))
|
||||
panic(todo("", p.pos(n)))
|
||||
}
|
||||
|
||||
force := flags&fForceConv != 0
|
||||
@@ -4625,6 +4634,11 @@ var dummyJumpStatement = &cc.JumpStatement{}
|
||||
|
||||
func (p *project) statement(f *function, n *cc.Statement, forceCompoundStmtBrace, forceNoBraces, switchBlock bool, mode exprMode) (r *cc.JumpStatement) {
|
||||
if forceCompoundStmtBrace {
|
||||
if f.switchCtx == inSwitchFirst && p.pauseCodegen {
|
||||
p.pauseCodegen = false
|
||||
p.w(" {")
|
||||
p.pauseCodegen = true
|
||||
}
|
||||
p.w(" {")
|
||||
if !switchBlock {
|
||||
p.instrument(n)
|
||||
@@ -4671,6 +4685,12 @@ func (p *project) statement(f *function, n *cc.Statement, forceCompoundStmtBrace
|
||||
panic(todo("%v: internal error: %v", n.Position(), n.Case))
|
||||
}
|
||||
if forceCompoundStmtBrace {
|
||||
// We need to do this, to guarantee that we always close the brace is we opened it
|
||||
if f.switchCtx == inSwitchFirst && p.pauseCodegen {
|
||||
p.pauseCodegen = false
|
||||
p.w("}")
|
||||
p.pauseCodegen = true
|
||||
}
|
||||
p.w("}")
|
||||
}
|
||||
return r
|
||||
@@ -9515,7 +9535,7 @@ func (p *project) postfixExpressionSelectPSelectStruct(f *function, n *cc.Postfi
|
||||
|
||||
func (p *project) postfixExpressionSelectSelect(f *function, n *cc.PostfixExpression, t cc.Type, mode exprMode, flags flags) {
|
||||
// PostfixExpression '.' IDENTIFIER
|
||||
switch k := p.opKind(f, n.PostfixExpression, n.PostfixExpression.Operand.Type()); k {
|
||||
switch k := p.structOrUnion(n); k {
|
||||
case opUnion:
|
||||
p.postfixExpressionSelectSelectUnion(f, n, t, mode, flags)
|
||||
case opStruct:
|
||||
@@ -9525,6 +9545,40 @@ func (p *project) postfixExpressionSelectSelect(f *function, n *cc.PostfixExpres
|
||||
}
|
||||
}
|
||||
|
||||
func (p *project) structOrUnion(n *cc.PostfixExpression) opKind {
|
||||
t := n.PostfixExpression.Operand.Type()
|
||||
switch n.Case {
|
||||
case cc.PostfixExpressionSelect: // PostfixExpression '.' IDENTIFIER
|
||||
// ok
|
||||
case cc.PostfixExpressionPSelect: // PostfixExpression "->" IDENTIFIER
|
||||
if t.Kind() == cc.Ptr {
|
||||
t = t.Elem()
|
||||
break
|
||||
}
|
||||
|
||||
p.err(n, "expected pointer type: %s", t)
|
||||
return opStruct
|
||||
}
|
||||
f, path, ok := t.FieldByName2(n.Token2.Src)
|
||||
if !ok {
|
||||
p.err(&n.Token, "unknown field: %s", n.Token2)
|
||||
return opStruct
|
||||
}
|
||||
|
||||
for len(path) > 1 {
|
||||
f = t.FieldByIndex(path[:1])
|
||||
path = path[1:]
|
||||
t = f.Type()
|
||||
}
|
||||
if t.Kind() == cc.Union {
|
||||
// trc("%v: %q %v", n.Token2.Position(), n.Token2.Src, opUnion)
|
||||
return opUnion
|
||||
}
|
||||
|
||||
// trc("%v: %q %v", n.Token2.Position(), n.Token2.Src, opStruct)
|
||||
return opStruct
|
||||
}
|
||||
|
||||
func (p *project) postfixExpressionSelectSelectStruct(f *function, n *cc.PostfixExpression, t cc.Type, mode exprMode, flags flags) {
|
||||
// PostfixExpression '.' IDENTIFIER
|
||||
fld := n.Field
|
||||
@@ -12048,7 +12102,7 @@ func (p *project) intConst(n cc.Node, src string, op cc.Operand, to cc.Type, fla
|
||||
defer p.w(")")
|
||||
// ok
|
||||
default:
|
||||
panic(todo("%v: %v -> %v", pos(n), op.Type(), to))
|
||||
panic(todo("%v: %v -> %v", p.pos(n), op.Type(), to))
|
||||
}
|
||||
|
||||
src = strings.TrimRight(src, "luLU")
|
||||
@@ -12632,6 +12686,23 @@ func (p *project) iterationStatement(f *function, n *cc.IterationStatement) {
|
||||
}
|
||||
p.statement(f, n.Statement, true, false, false, 0)
|
||||
case cc.IterationStatementForDecl: // "for" '(' Declaration Expression ';' Expression ')' Statement
|
||||
if !(f.hasJumps || n.Expression2 != nil && n.Expression2.Case == cc.ExpressionComma) {
|
||||
p.w("{")
|
||||
p.declaration(f, n.Declaration, false)
|
||||
p.w("for ;")
|
||||
if n.Expression != nil {
|
||||
p.expression(f, n.Expression, n.Expression.Operand.Type(), exprBool, 0)
|
||||
}
|
||||
p.w(";")
|
||||
if n.Expression2 != nil {
|
||||
p.expression(f, n.Expression2, n.Expression2.Operand.Type(), exprVoid, fNoCondAssignment)
|
||||
}
|
||||
p.w("{")
|
||||
p.statement(f, n.Statement, false, true, false, 0)
|
||||
p.w("}};")
|
||||
break
|
||||
}
|
||||
|
||||
var ids []*cc.InitDeclarator
|
||||
for list := n.Declaration.InitDeclaratorList; list != nil; list = list.InitDeclaratorList {
|
||||
ids = append(ids, list.InitDeclarator)
|
||||
@@ -12727,12 +12798,22 @@ func (p *project) selectionStatement(f *function, n *cc.SelectionStatement) {
|
||||
p.statement(f, n.Statement2, true, false, false, 0)
|
||||
}
|
||||
case cc.SelectionStatementSwitch: // "switch" '(' Expression ')' Statement
|
||||
// just dont generate in this case
|
||||
if f.switchCtx == inSwitchFirst {
|
||||
break
|
||||
}
|
||||
sv := f.switchCtx
|
||||
sb := f.block
|
||||
sc := p.pauseCodegen
|
||||
svBreakCtx := f.breakCtx
|
||||
f.breakCtx = 0
|
||||
f.block = f.blocks[n.Statement.CompoundStatement]
|
||||
|
||||
defer func() {
|
||||
f.block = sb
|
||||
f.switchCtx = sv
|
||||
f.breakCtx = svBreakCtx
|
||||
p.pauseCodegen = sc
|
||||
}()
|
||||
if f.hasJumps {
|
||||
f.switchCtx = inSwitchFlat
|
||||
@@ -12741,9 +12822,27 @@ func (p *project) selectionStatement(f *function, n *cc.SelectionStatement) {
|
||||
}
|
||||
|
||||
f.switchCtx = inSwitchFirst
|
||||
// fmt.Println(f.block.decls)
|
||||
if len(f.block.decls) != 0 {
|
||||
f.block.topDecl = true
|
||||
// fmt.Printf("%p:%tf\n", f.block, f.block.topDecl)
|
||||
p.w("{")
|
||||
for _, v := range f.block.decls {
|
||||
// fmt.Printf("%p:%tf\n", f.block, f.block.topDecl)
|
||||
p.declaration(f, v, true)
|
||||
// fmt.Println("done!")
|
||||
}
|
||||
}
|
||||
|
||||
p.w("switch ")
|
||||
p.expression(f, n.Expression, n.Promote(), exprValue, 0)
|
||||
p.pauseCodegen = true
|
||||
p.statement(f, n.Statement, true, false, true, 0)
|
||||
p.pauseCodegen = false
|
||||
if len(f.block.decls) != 0 {
|
||||
p.w("}")
|
||||
}
|
||||
|
||||
default:
|
||||
panic(todo("%v: internal error: %v", n.Position(), n.Case))
|
||||
}
|
||||
@@ -12866,6 +12965,7 @@ func (p *project) labeledStatementCase(f *function, n *cc.LabeledStatement) {
|
||||
switch f.switchCtx {
|
||||
case inSwitchFirst:
|
||||
f.switchCtx = inSwitchCase
|
||||
p.pauseCodegen = false
|
||||
case inSwitchCase:
|
||||
p.w("\nfallthrough;")
|
||||
case inSwitchSeenBreak:
|
||||
|
||||
+2
-2
@@ -326,7 +326,7 @@ func (p *project) containingStructField(part *cc.Initializer, off uintptr, t cc.
|
||||
}
|
||||
}
|
||||
|
||||
panic(todo("%v: internal error", pos(part)))
|
||||
panic(todo("%v: internal error", p.pos(part)))
|
||||
}
|
||||
|
||||
func (p *project) initializerUnion(tag string, off uintptr, f *function, s []*cc.Initializer, t cc.Type, sc cc.StorageClass, tld *tld, lm, tm map[*cc.Initializer][]cc.StringID) {
|
||||
@@ -376,7 +376,7 @@ func (p *project) initializerUnion(tag string, off uintptr, f *function, s []*cc
|
||||
}
|
||||
continue
|
||||
default:
|
||||
panic(todo("%v: %v <- %T", pos(part), et, x))
|
||||
panic(todo("%v: %v <- %T", p.pos(part), et, x))
|
||||
}
|
||||
case p.isWCharType(et):
|
||||
panic(todo(""))
|
||||
|
||||
+32
-50
@@ -2,7 +2,7 @@
|
||||
# Use of this source code is governed by a BSD-style
|
||||
# license that can be found in the LICENSE file.
|
||||
|
||||
.PHONY: all bench clean cover cpu editor internalError later mem nuke todo edit devbench \
|
||||
.PHONY: all bench build_all_targets clean cover cpu editor internalError later mem nuke todo edit devbench \
|
||||
darwin_amd64 \
|
||||
darwin_arm64 \
|
||||
linux_386 \
|
||||
@@ -21,31 +21,21 @@ all:
|
||||
go generate
|
||||
gofmt -l -s -w *.go
|
||||
go install -v ./...
|
||||
go test -i
|
||||
go test
|
||||
go test 2>&1 -timeout 1h | tee -a $(log)
|
||||
GOOS=darwin GOARCH=amd64 go build
|
||||
GOOS=darwin GOARCH=arm64 go build
|
||||
GOOS=freebsd GOARCH=386 go build
|
||||
GOOS=freebsd GOARCH=amd64 go build
|
||||
GOOS=linux GOARCH=386 go build
|
||||
GOOS=linux GOARCH=amd64 go build
|
||||
GOOS=linux GOARCH=arm go build
|
||||
GOOS=linux GOARCH=arm64 go build
|
||||
GOOS=linux GOARCH=s390x go build
|
||||
GOOS=netbsd GOARCH=amd64 go build
|
||||
GOOS=openbsd GOARCH=amd64 go build
|
||||
GOOS=windows GOARCH=386 go build
|
||||
GOOS=windows GOARCH=amd64 go build
|
||||
go vet -unsafeptr=false 2>&1 | grep -v $(ngrep) || true
|
||||
golint 2>&1 | grep -v $(ngrep) || true
|
||||
make todo
|
||||
misspell *.go
|
||||
staticcheck || true
|
||||
maligned || true
|
||||
# go vet -unsafeptr=false 2>&1 | grep -v $(ngrep) || true
|
||||
# golint 2>&1 | grep -v $(ngrep) || true
|
||||
# make todo
|
||||
# misspell *.go
|
||||
# staticcheck || true
|
||||
grep -n 'FAIL\|PASS' $(log)
|
||||
go version
|
||||
date 2>&1 | tee -a $(log)
|
||||
|
||||
build_all_targets:
|
||||
./build_all_targets.sh
|
||||
echo done
|
||||
|
||||
darwin_amd64:
|
||||
@echo "Should be executed only on darwin/amd64."
|
||||
go generate 2>&1 | tee log-generate
|
||||
@@ -68,6 +58,12 @@ freebsd_386:
|
||||
go generate 2>&1 | tee log-generate
|
||||
go build -v ./...
|
||||
|
||||
# only on freebsd/arm
|
||||
freebsd_arm:
|
||||
@echo "Should be executed only on freebsd/arm."
|
||||
go generate 2>&1 | tee log-generate
|
||||
go build -v ./...
|
||||
|
||||
# only on netbsd/amd64
|
||||
netbsd_amd64:
|
||||
@echo "Should be executed only on netbsd/amd64."
|
||||
@@ -95,17 +91,32 @@ linux_s390x:
|
||||
CCGO_CPP=s390x-linux-gnu-cpp TARGET_GOOS=linux TARGET_GOARCH=s390x go generate
|
||||
GOOS=linux GOARCH=s390x go build -v ./...
|
||||
|
||||
linux_ppc64le:
|
||||
CCGO_CPP=powerpc64le-linux-gnu-cpp TARGET_GOOS=linux TARGET_GOARCH=ppc64le go generate
|
||||
GOOS=linux GOARCH=ppc64le go build -v ./...
|
||||
|
||||
# only on openbsd/amd64
|
||||
openbsd_amd64:
|
||||
@echo "Should be executed only on openbsd/amd64."
|
||||
go generate 2>&1 | tee log-generate
|
||||
go build -v ./...
|
||||
#
|
||||
# only on openbsd/arm64
|
||||
openbsd_arm64:
|
||||
@echo "Should be executed only on openbsd/arm64."
|
||||
go generate 2>&1 | tee log-generate
|
||||
go build -v ./...
|
||||
|
||||
windows_amd64:
|
||||
@echo "Should be executed only on windows/amd64."
|
||||
go generate 2>&1 | tee log-generate
|
||||
go build -v ./...
|
||||
|
||||
windows_arm64:
|
||||
@echo "Should be executed only on windows/arm64."
|
||||
go generate 2>&1 | tee log-generate
|
||||
go build -v ./...
|
||||
|
||||
windows_386:
|
||||
@echo "Should be executed only on linux/amd64."
|
||||
CCGO_CPP=i686-w64-mingw32-cpp TARGET_GOOS=windows TARGET_GOARCH=386 go generate
|
||||
@@ -114,35 +125,6 @@ windows_386:
|
||||
all_targets: linux_amd64 linux_386 linux_arm linux_arm64 linux_s390x # windows_amd64 windows_386
|
||||
echo done
|
||||
|
||||
build_all_targets:
|
||||
GOOS=darwin GOARCH=amd64 go build -v ./...
|
||||
GOOS=darwin GOARCH=amd64 go test -c -o /dev/null
|
||||
GOOS=darwin GOARCH=arm64 go build -v ./...
|
||||
GOOS=darwin GOARCH=arm64 go test -c -o /dev/null
|
||||
GOOS=freebsd GOARCH=386 go build -v ./...
|
||||
GOOS=freebsd GOARCH=386 go test -c -o /dev/null
|
||||
GOOS=freebsd GOARCH=amd64 go build -v ./...
|
||||
GOOS=freebsd GOARCH=amd64 go test -c -o /dev/null
|
||||
GOOS=linux GOARCH=386 go build -v ./...
|
||||
GOOS=linux GOARCH=386 go test -c -o /dev/null
|
||||
GOOS=linux GOARCH=amd64 go build -v ./...
|
||||
GOOS=linux GOARCH=amd64 go test -c -o /dev/null
|
||||
GOOS=linux GOARCH=arm go build -v ./...
|
||||
GOOS=linux GOARCH=arm go test -c -o /dev/null
|
||||
GOOS=linux GOARCH=arm64 go build -v ./...
|
||||
GOOS=linux GOARCH=arm64 go test -c -o /dev/null
|
||||
GOOS=linux GOARCH=s390x go build -v ./...
|
||||
GOOS=linux GOARCH=s390x go test -c -o /dev/null
|
||||
GOOS=netbsd GOARCH=amd64 go build -v ./...
|
||||
GOOS=netbsd GOARCH=amd64 go test -c -o /dev/null
|
||||
GOOS=openbsd GOARCH=amd64 go build -v ./...
|
||||
GOOS=openbsd GOARCH=amd64 go test -c -o /dev/null
|
||||
GOOS=windows GOARCH=386 go build -v ./...
|
||||
GOOS=windows GOARCH=386 go test -c -o /dev/null
|
||||
GOOS=windows GOARCH=amd64 go build -v ./...
|
||||
GOOS=windows GOARCH=amd64 go test -c -o /dev/null
|
||||
echo done
|
||||
|
||||
devbench:
|
||||
date 2>&1 | tee log-devbench
|
||||
go test -timeout 24h -dev -run @ -bench . 2>&1 | tee -a log-devbench
|
||||
|
||||
+41
@@ -0,0 +1,41 @@
|
||||
set -e
|
||||
for tag in none dmesg libc.membrk libc.memgrind
|
||||
do
|
||||
echo "-tags=$tag"
|
||||
GOOS=darwin GOARCH=amd64 go build -tags=$tag -v ./...
|
||||
GOOS=darwin GOARCH=amd64 go test -tags=$tag -c -o /dev/null
|
||||
GOOS=darwin GOARCH=arm64 go build -tags=$tag -v ./...
|
||||
GOOS=darwin GOARCH=arm64 go test -tags=$tag -c -o /dev/null
|
||||
GOOS=freebsd GOARCH=386 go build -tags=$tag -v ./...
|
||||
GOOS=freebsd GOARCH=386 go test -tags=$tag -c -o /dev/null
|
||||
GOOS=freebsd GOARCH=amd64 go build -tags=$tag -v ./...
|
||||
GOOS=freebsd GOARCH=amd64 go test -tags=$tag -c -o /dev/null
|
||||
GOOS=freebsd GOARCH=arm go build -tags=$tag -v ./...
|
||||
GOOS=freebsd GOARCH=arm go test -tags=$tag -c -o /dev/null
|
||||
GOOS=linux GOARCH=386 go build -tags=$tag -v ./...
|
||||
GOOS=linux GOARCH=386 go test -tags=$tag -c -o /dev/null
|
||||
GOOS=linux GOARCH=amd64 go build -tags=$tag -v ./...
|
||||
GOOS=linux GOARCH=amd64 go test -tags=$tag -c -o /dev/null
|
||||
GOOS=linux GOARCH=arm go build -tags=$tag -v ./...
|
||||
GOOS=linux GOARCH=arm go test -tags=$tag -c -o /dev/null
|
||||
GOOS=linux GOARCH=arm64 go build -tags=$tag -v ./...
|
||||
GOOS=linux GOARCH=arm64 go test -tags=$tag -c -o /dev/null
|
||||
GOOS=linux GOARCH=ppc64le go test -tags=$tag -c -o /dev/null
|
||||
GOOS=linux GOARCH=riscv64 go build -tags=$tag -v ./...
|
||||
GOOS=linux GOARCH=s390x go build -tags=$tag -v ./...
|
||||
GOOS=linux GOARCH=s390x go test -tags=$tag -c -o /dev/null
|
||||
GOOS=netbsd GOARCH=amd64 go build -tags=$tag -v ./...
|
||||
GOOS=netbsd GOARCH=amd64 go test -tags=$tag -c -o /dev/null
|
||||
GOOS=openbsd GOARCH=386 go build -tags=$tag -v ./...
|
||||
GOOS=openbsd GOARCH=386 go test -tags=$tag -c -o /dev/null
|
||||
GOOS=openbsd GOARCH=amd64 go build -tags=$tag -v ./...
|
||||
GOOS=openbsd GOARCH=amd64 go test -tags=$tag -c -o /dev/null
|
||||
GOOS=openbsd GOARCH=arm64 go build -tags=$tag -v ./...
|
||||
GOOS=openbsd GOARCH=arm64 go test -tags=$tag -c -o /dev/null
|
||||
GOOS=windows GOARCH=386 go build -tags=$tag -v ./...
|
||||
GOOS=windows GOARCH=386 go test -tags=$tag -c -o /dev/null
|
||||
GOOS=windows GOARCH=amd64 go build -tags=$tag -v ./...
|
||||
GOOS=windows GOARCH=amd64 go test -tags=$tag -c -o /dev/null
|
||||
GOOS=windows GOARCH=arm64 go build -tags=$tag -v ./...
|
||||
GOOS=windows GOARCH=arm64 go test -tags=$tag -c -o /dev/null
|
||||
done
|
||||
+5
@@ -49,6 +49,7 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
@@ -117,11 +118,14 @@ var CAPI = map[string]struct{}{
|
||||
"__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": {},
|
||||
@@ -309,6 +313,7 @@ var CAPI = map[string]struct{}{
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
|
||||
+5
@@ -49,6 +49,7 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
@@ -117,11 +118,14 @@ var CAPI = map[string]struct{}{
|
||||
"__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": {},
|
||||
@@ -309,6 +313,7 @@ var CAPI = map[string]struct{}{
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
|
||||
+13
@@ -50,6 +50,7 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
@@ -93,11 +94,16 @@ var CAPI = map[string]struct{}{
|
||||
"__isalnum_l": {},
|
||||
"__isalpha_l": {},
|
||||
"__isdigit_l": {},
|
||||
"__islower_l": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isprint_l": {},
|
||||
"__isspace_l": {},
|
||||
"__isthreaded": {},
|
||||
"__isupper_l": {},
|
||||
"__isxdigit_l": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
@@ -143,6 +149,7 @@ var CAPI = map[string]struct{}{
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
@@ -270,13 +277,19 @@ var CAPI = map[string]struct{}{
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isspace": {},
|
||||
"isupper": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
|
||||
+3
@@ -50,6 +50,7 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
@@ -110,6 +111,7 @@ var CAPI = map[string]struct{}{
|
||||
"__runes_for_locale": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__srget": {},
|
||||
"__stderrp": {},
|
||||
"__stdinp": {},
|
||||
"__stdoutp": {},
|
||||
@@ -287,6 +289,7 @@ var CAPI = map[string]struct{}{
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
|
||||
+499
@@ -0,0 +1,499 @@
|
||||
// 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": {},
|
||||
"__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": {},
|
||||
"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": {},
|
||||
"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": {},
|
||||
"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": {},
|
||||
}
|
||||
+499
@@ -0,0 +1,499 @@
|
||||
// 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": {},
|
||||
"__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": {},
|
||||
"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": {},
|
||||
"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": {},
|
||||
"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": {},
|
||||
}
|
||||
+2
@@ -45,6 +45,7 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
@@ -281,6 +282,7 @@ var CAPI = map[string]struct{}{
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
|
||||
+16
@@ -45,6 +45,7 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
@@ -168,6 +169,7 @@ var CAPI = map[string]struct{}{
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"dup3": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
@@ -176,8 +178,11 @@ var CAPI = map[string]struct{}{
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"faccessat": {},
|
||||
"fchmod": {},
|
||||
"fchmodat": {},
|
||||
"fchown": {},
|
||||
"fchownat": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
@@ -282,7 +287,9 @@ var CAPI = map[string]struct{}{
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"linkat": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
@@ -306,8 +313,10 @@ var CAPI = map[string]struct{}{
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkdirat": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mknodat": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
@@ -326,6 +335,7 @@ var CAPI = map[string]struct{}{
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"openat": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
@@ -333,6 +343,7 @@ var CAPI = map[string]struct{}{
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"pipe2": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"posix_fadvise": {},
|
||||
@@ -383,6 +394,7 @@ var CAPI = map[string]struct{}{
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readlinkat": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
@@ -392,6 +404,7 @@ var CAPI = map[string]struct{}{
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"renameat2": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
@@ -467,6 +480,7 @@ var CAPI = map[string]struct{}{
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"symlinkat": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
@@ -484,9 +498,11 @@ var CAPI = map[string]struct{}{
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unlinkat": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimensat": {},
|
||||
"utimes": {},
|
||||
"uuid_copy": {},
|
||||
"uuid_generate_random": {},
|
||||
|
||||
+2
@@ -45,6 +45,7 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
@@ -281,6 +282,7 @@ var CAPI = map[string]struct{}{
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
|
||||
+2
@@ -45,6 +45,7 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
@@ -281,6 +282,7 @@ var CAPI = map[string]struct{}{
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
|
||||
+525
@@ -0,0 +1,525 @@
|
||||
// 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": {},
|
||||
"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": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"openat": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"pipe2": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"posix_fadvise": {},
|
||||
"pow": {},
|
||||
"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": {},
|
||||
}
|
||||
+2
@@ -45,6 +45,7 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
@@ -283,6 +284,7 @@ var CAPI = map[string]struct{}{
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
|
||||
+2
@@ -45,6 +45,7 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
@@ -281,6 +282,7 @@ var CAPI = map[string]struct{}{
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
|
||||
+5
@@ -50,6 +50,7 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
@@ -98,6 +99,7 @@ var CAPI = map[string]struct{}{
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isprint_l": {},
|
||||
"__isthreaded": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
@@ -107,6 +109,7 @@ var CAPI = map[string]struct{}{
|
||||
"__sF": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__srget": {},
|
||||
"__stderrp": {},
|
||||
"__stdinp": {},
|
||||
"__stdoutp": {},
|
||||
@@ -278,10 +281,12 @@ var CAPI = map[string]struct{}{
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
|
||||
+499
@@ -0,0 +1,499 @@
|
||||
// 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": {},
|
||||
"__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": {},
|
||||
"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": {},
|
||||
"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": {},
|
||||
"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": {},
|
||||
}
|
||||
+2
@@ -52,6 +52,7 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
@@ -295,6 +296,7 @@ var CAPI = map[string]struct{}{
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
|
||||
+506
@@ -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": {},
|
||||
"__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": {},
|
||||
"_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": {},
|
||||
"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": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isspace": {},
|
||||
"isupper": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"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": {},
|
||||
"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": {},
|
||||
}
|
||||
+2
@@ -295,6 +295,7 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
@@ -552,6 +553,7 @@ var CAPI = map[string]struct{}{
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
|
||||
+2
@@ -293,6 +293,7 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
@@ -548,6 +549,7 @@ var CAPI = map[string]struct{}{
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
|
||||
+724
@@ -0,0 +1,724 @@
|
||||
// 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": {},
|
||||
"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": {},
|
||||
}
|
||||
+386
-263
@@ -46,17 +46,19 @@ func AtomicLoadNUint64(ptr uintptr, memorder int32) uint64 {
|
||||
func AtomicLoadNUintptr(ptr uintptr, memorder int32) uintptr {
|
||||
return atomic.LoadUintptr((*uintptr)(unsafe.Pointer(ptr)))
|
||||
}
|
||||
func AssignInt8(p *int8, v int8) int8 { *p = v; return v }
|
||||
func AssignInt16(p *int16, v int16) int16 { *p = v; return v }
|
||||
func AssignInt32(p *int32, v int32) int32 { *p = v; return v }
|
||||
func AssignInt64(p *int64, v int64) int64 { *p = v; return v }
|
||||
func AssignUint8(p *uint8, v uint8) uint8 { *p = v; return v }
|
||||
func AssignUint16(p *uint16, v uint16) uint16 { *p = v; return v }
|
||||
func AssignUint32(p *uint32, v uint32) uint32 { *p = v; return v }
|
||||
func AssignUint64(p *uint64, v uint64) uint64 { *p = v; return v }
|
||||
func AssignFloat32(p *float32, v float32) float32 { *p = v; return v }
|
||||
func AssignFloat64(p *float64, v float64) float64 { *p = v; return v }
|
||||
func AssignUintptr(p *uintptr, v uintptr) uintptr { *p = v; return v }
|
||||
func AssignInt8(p *int8, v int8) int8 { *p = v; return v }
|
||||
func AssignInt16(p *int16, v int16) int16 { *p = v; return v }
|
||||
func AssignInt32(p *int32, v int32) int32 { *p = v; return v }
|
||||
func AssignInt64(p *int64, v int64) int64 { *p = v; return v }
|
||||
func AssignUint8(p *uint8, v uint8) uint8 { *p = v; return v }
|
||||
func AssignUint16(p *uint16, v uint16) uint16 { *p = v; return v }
|
||||
func AssignUint32(p *uint32, v uint32) uint32 { *p = v; return v }
|
||||
func AssignUint64(p *uint64, v uint64) uint64 { *p = v; return v }
|
||||
func AssignFloat32(p *float32, v float32) float32 { *p = v; return v }
|
||||
func AssignFloat64(p *float64, v float64) float64 { *p = v; return v }
|
||||
func AssignComplex64(p *complex64, v complex64) complex64 { *p = v; return v }
|
||||
func AssignComplex128(p *complex128, v complex128) complex128 { *p = v; return v }
|
||||
func AssignUintptr(p *uintptr, v uintptr) uintptr { *p = v; return v }
|
||||
|
||||
func AssignPtrInt8(p uintptr, v int8) int8 { *(*int8)(unsafe.Pointer(p)) = v; return v }
|
||||
func AssignPtrInt16(p uintptr, v int16) int16 { *(*int16)(unsafe.Pointer(p)) = v; return v }
|
||||
@@ -68,31 +70,43 @@ func AssignPtrUint32(p uintptr, v uint32) uint32 { *(*uint32)(unsafe.Pointer(
|
||||
func AssignPtrUint64(p uintptr, v uint64) uint64 { *(*uint64)(unsafe.Pointer(p)) = v; return v }
|
||||
func AssignPtrFloat32(p uintptr, v float32) float32 { *(*float32)(unsafe.Pointer(p)) = v; return v }
|
||||
func AssignPtrFloat64(p uintptr, v float64) float64 { *(*float64)(unsafe.Pointer(p)) = v; return v }
|
||||
func AssignPtrComplex64(p uintptr, v complex64) complex64 {
|
||||
*(*complex64)(unsafe.Pointer(p)) = v
|
||||
return v
|
||||
}
|
||||
func AssignPtrComplex128(p uintptr, v complex128) complex128 {
|
||||
*(*complex128)(unsafe.Pointer(p)) = v
|
||||
return v
|
||||
}
|
||||
func AssignPtrUintptr(p uintptr, v uintptr) uintptr { *(*uintptr)(unsafe.Pointer(p)) = v; return v }
|
||||
|
||||
func AssignMulInt8(p *int8, v int8) int8 { *p *= v; return *p }
|
||||
func AssignMulInt16(p *int16, v int16) int16 { *p *= v; return *p }
|
||||
func AssignMulInt32(p *int32, v int32) int32 { *p *= v; return *p }
|
||||
func AssignMulInt64(p *int64, v int64) int64 { *p *= v; return *p }
|
||||
func AssignMulUint8(p *uint8, v uint8) uint8 { *p *= v; return *p }
|
||||
func AssignMulUint16(p *uint16, v uint16) uint16 { *p *= v; return *p }
|
||||
func AssignMulUint32(p *uint32, v uint32) uint32 { *p *= v; return *p }
|
||||
func AssignMulUint64(p *uint64, v uint64) uint64 { *p *= v; return *p }
|
||||
func AssignMulFloat32(p *float32, v float32) float32 { *p *= v; return *p }
|
||||
func AssignMulFloat64(p *float64, v float64) float64 { *p *= v; return *p }
|
||||
func AssignMulUintptr(p *uintptr, v uintptr) uintptr { *p *= v; return *p }
|
||||
func AssignMulInt8(p *int8, v int8) int8 { *p *= v; return *p }
|
||||
func AssignMulInt16(p *int16, v int16) int16 { *p *= v; return *p }
|
||||
func AssignMulInt32(p *int32, v int32) int32 { *p *= v; return *p }
|
||||
func AssignMulInt64(p *int64, v int64) int64 { *p *= v; return *p }
|
||||
func AssignMulUint8(p *uint8, v uint8) uint8 { *p *= v; return *p }
|
||||
func AssignMulUint16(p *uint16, v uint16) uint16 { *p *= v; return *p }
|
||||
func AssignMulUint32(p *uint32, v uint32) uint32 { *p *= v; return *p }
|
||||
func AssignMulUint64(p *uint64, v uint64) uint64 { *p *= v; return *p }
|
||||
func AssignMulFloat32(p *float32, v float32) float32 { *p *= v; return *p }
|
||||
func AssignMulFloat64(p *float64, v float64) float64 { *p *= v; return *p }
|
||||
func AssignMulComplex64(p *complex64, v complex64) complex64 { *p *= v; return *p }
|
||||
func AssignMulComplex128(p *complex128, v complex128) complex128 { *p *= v; return *p }
|
||||
func AssignMulUintptr(p *uintptr, v uintptr) uintptr { *p *= v; return *p }
|
||||
|
||||
func AssignDivInt8(p *int8, v int8) int8 { *p /= v; return *p }
|
||||
func AssignDivInt16(p *int16, v int16) int16 { *p /= v; return *p }
|
||||
func AssignDivInt32(p *int32, v int32) int32 { *p /= v; return *p }
|
||||
func AssignDivInt64(p *int64, v int64) int64 { *p /= v; return *p }
|
||||
func AssignDivUint8(p *uint8, v uint8) uint8 { *p /= v; return *p }
|
||||
func AssignDivUint16(p *uint16, v uint16) uint16 { *p /= v; return *p }
|
||||
func AssignDivUint32(p *uint32, v uint32) uint32 { *p /= v; return *p }
|
||||
func AssignDivUint64(p *uint64, v uint64) uint64 { *p /= v; return *p }
|
||||
func AssignDivFloat32(p *float32, v float32) float32 { *p /= v; return *p }
|
||||
func AssignDivFloat64(p *float64, v float64) float64 { *p /= v; return *p }
|
||||
func AssignDivUintptr(p *uintptr, v uintptr) uintptr { *p /= v; return *p }
|
||||
func AssignDivInt8(p *int8, v int8) int8 { *p /= v; return *p }
|
||||
func AssignDivInt16(p *int16, v int16) int16 { *p /= v; return *p }
|
||||
func AssignDivInt32(p *int32, v int32) int32 { *p /= v; return *p }
|
||||
func AssignDivInt64(p *int64, v int64) int64 { *p /= v; return *p }
|
||||
func AssignDivUint8(p *uint8, v uint8) uint8 { *p /= v; return *p }
|
||||
func AssignDivUint16(p *uint16, v uint16) uint16 { *p /= v; return *p }
|
||||
func AssignDivUint32(p *uint32, v uint32) uint32 { *p /= v; return *p }
|
||||
func AssignDivUint64(p *uint64, v uint64) uint64 { *p /= v; return *p }
|
||||
func AssignDivFloat32(p *float32, v float32) float32 { *p /= v; return *p }
|
||||
func AssignDivFloat64(p *float64, v float64) float64 { *p /= v; return *p }
|
||||
func AssignDivComplex64(p *complex64, v complex64) complex64 { *p /= v; return *p }
|
||||
func AssignDivComplex128(p *complex128, v complex128) complex128 { *p /= v; return *p }
|
||||
func AssignDivUintptr(p *uintptr, v uintptr) uintptr { *p /= v; return *p }
|
||||
|
||||
func AssignRemInt8(p *int8, v int8) int8 { *p %= v; return *p }
|
||||
func AssignRemInt16(p *int16, v int16) int16 { *p %= v; return *p }
|
||||
@@ -104,29 +118,33 @@ func AssignRemUint32(p *uint32, v uint32) uint32 { *p %= v; return *p }
|
||||
func AssignRemUint64(p *uint64, v uint64) uint64 { *p %= v; return *p }
|
||||
func AssignRemUintptr(p *uintptr, v uintptr) uintptr { *p %= v; return *p }
|
||||
|
||||
func AssignAddInt8(p *int8, v int8) int8 { *p += v; return *p }
|
||||
func AssignAddInt16(p *int16, v int16) int16 { *p += v; return *p }
|
||||
func AssignAddInt32(p *int32, v int32) int32 { *p += v; return *p }
|
||||
func AssignAddInt64(p *int64, v int64) int64 { *p += v; return *p }
|
||||
func AssignAddUint8(p *uint8, v uint8) uint8 { *p += v; return *p }
|
||||
func AssignAddUint16(p *uint16, v uint16) uint16 { *p += v; return *p }
|
||||
func AssignAddUint32(p *uint32, v uint32) uint32 { *p += v; return *p }
|
||||
func AssignAddUint64(p *uint64, v uint64) uint64 { *p += v; return *p }
|
||||
func AssignAddFloat32(p *float32, v float32) float32 { *p += v; return *p }
|
||||
func AssignAddFloat64(p *float64, v float64) float64 { *p += v; return *p }
|
||||
func AssignAddUintptr(p *uintptr, v uintptr) uintptr { *p += v; return *p }
|
||||
func AssignAddInt8(p *int8, v int8) int8 { *p += v; return *p }
|
||||
func AssignAddInt16(p *int16, v int16) int16 { *p += v; return *p }
|
||||
func AssignAddInt32(p *int32, v int32) int32 { *p += v; return *p }
|
||||
func AssignAddInt64(p *int64, v int64) int64 { *p += v; return *p }
|
||||
func AssignAddUint8(p *uint8, v uint8) uint8 { *p += v; return *p }
|
||||
func AssignAddUint16(p *uint16, v uint16) uint16 { *p += v; return *p }
|
||||
func AssignAddUint32(p *uint32, v uint32) uint32 { *p += v; return *p }
|
||||
func AssignAddUint64(p *uint64, v uint64) uint64 { *p += v; return *p }
|
||||
func AssignAddFloat32(p *float32, v float32) float32 { *p += v; return *p }
|
||||
func AssignAddFloat64(p *float64, v float64) float64 { *p += v; return *p }
|
||||
func AssignAddComplex64(p *complex64, v complex64) complex64 { *p += v; return *p }
|
||||
func AssignAddComplex128(p *complex128, v complex128) complex128 { *p += v; return *p }
|
||||
func AssignAddUintptr(p *uintptr, v uintptr) uintptr { *p += v; return *p }
|
||||
|
||||
func AssignSubInt8(p *int8, v int8) int8 { *p -= v; return *p }
|
||||
func AssignSubInt16(p *int16, v int16) int16 { *p -= v; return *p }
|
||||
func AssignSubInt32(p *int32, v int32) int32 { *p -= v; return *p }
|
||||
func AssignSubInt64(p *int64, v int64) int64 { *p -= v; return *p }
|
||||
func AssignSubUint8(p *uint8, v uint8) uint8 { *p -= v; return *p }
|
||||
func AssignSubUint16(p *uint16, v uint16) uint16 { *p -= v; return *p }
|
||||
func AssignSubUint32(p *uint32, v uint32) uint32 { *p -= v; return *p }
|
||||
func AssignSubUint64(p *uint64, v uint64) uint64 { *p -= v; return *p }
|
||||
func AssignSubFloat32(p *float32, v float32) float32 { *p -= v; return *p }
|
||||
func AssignSubFloat64(p *float64, v float64) float64 { *p -= v; return *p }
|
||||
func AssignSubUintptr(p *uintptr, v uintptr) uintptr { *p -= v; return *p }
|
||||
func AssignSubInt8(p *int8, v int8) int8 { *p -= v; return *p }
|
||||
func AssignSubInt16(p *int16, v int16) int16 { *p -= v; return *p }
|
||||
func AssignSubInt32(p *int32, v int32) int32 { *p -= v; return *p }
|
||||
func AssignSubInt64(p *int64, v int64) int64 { *p -= v; return *p }
|
||||
func AssignSubUint8(p *uint8, v uint8) uint8 { *p -= v; return *p }
|
||||
func AssignSubUint16(p *uint16, v uint16) uint16 { *p -= v; return *p }
|
||||
func AssignSubUint32(p *uint32, v uint32) uint32 { *p -= v; return *p }
|
||||
func AssignSubUint64(p *uint64, v uint64) uint64 { *p -= v; return *p }
|
||||
func AssignSubFloat32(p *float32, v float32) float32 { *p -= v; return *p }
|
||||
func AssignSubFloat64(p *float64, v float64) float64 { *p -= v; return *p }
|
||||
func AssignSubComplex64(p *complex64, v complex64) complex64 { *p -= v; return *p }
|
||||
func AssignSubComplex128(p *complex128, v complex128) complex128 { *p -= v; return *p }
|
||||
func AssignSubUintptr(p *uintptr, v uintptr) uintptr { *p -= v; return *p }
|
||||
|
||||
func AssignAndInt8(p *int8, v int8) int8 { *p &= v; return *p }
|
||||
func AssignAndInt16(p *int16, v int16) int16 { *p &= v; return *p }
|
||||
@@ -208,6 +226,16 @@ func AssignMulPtrFloat64(p uintptr, v float64) float64 {
|
||||
return *(*float64)(unsafe.Pointer(p))
|
||||
}
|
||||
|
||||
func AssignMulPtrComplex64(p uintptr, v complex64) complex64 {
|
||||
*(*complex64)(unsafe.Pointer(p)) *= v
|
||||
return *(*complex64)(unsafe.Pointer(p))
|
||||
}
|
||||
|
||||
func AssignMulPtrComplex128(p uintptr, v complex128) complex128 {
|
||||
*(*complex128)(unsafe.Pointer(p)) *= v
|
||||
return *(*complex128)(unsafe.Pointer(p))
|
||||
}
|
||||
|
||||
func AssignMulPtrUintptr(p uintptr, v uintptr) uintptr {
|
||||
*(*uintptr)(unsafe.Pointer(p)) *= v
|
||||
return *(*uintptr)(unsafe.Pointer(p))
|
||||
@@ -263,6 +291,16 @@ func AssignDivPtrFloat64(p uintptr, v float64) float64 {
|
||||
return *(*float64)(unsafe.Pointer(p))
|
||||
}
|
||||
|
||||
func AssignDivPtrComplex64(p uintptr, v complex64) complex64 {
|
||||
*(*complex64)(unsafe.Pointer(p)) /= v
|
||||
return *(*complex64)(unsafe.Pointer(p))
|
||||
}
|
||||
|
||||
func AssignDivPtrComplex128(p uintptr, v complex128) complex128 {
|
||||
*(*complex128)(unsafe.Pointer(p)) /= v
|
||||
return *(*complex128)(unsafe.Pointer(p))
|
||||
}
|
||||
|
||||
func AssignDivPtrUintptr(p uintptr, v uintptr) uintptr {
|
||||
*(*uintptr)(unsafe.Pointer(p)) /= v
|
||||
return *(*uintptr)(unsafe.Pointer(p))
|
||||
@@ -363,6 +401,16 @@ func AssignAddPtrFloat64(p uintptr, v float64) float64 {
|
||||
return *(*float64)(unsafe.Pointer(p))
|
||||
}
|
||||
|
||||
func AssignAddPtrComplex64(p uintptr, v complex64) complex64 {
|
||||
*(*complex64)(unsafe.Pointer(p)) += v
|
||||
return *(*complex64)(unsafe.Pointer(p))
|
||||
}
|
||||
|
||||
func AssignAddPtrComplex128(p uintptr, v complex128) complex128 {
|
||||
*(*complex128)(unsafe.Pointer(p)) += v
|
||||
return *(*complex128)(unsafe.Pointer(p))
|
||||
}
|
||||
|
||||
func AssignAddPtrUintptr(p uintptr, v uintptr) uintptr {
|
||||
*(*uintptr)(unsafe.Pointer(p)) += v
|
||||
return *(*uintptr)(unsafe.Pointer(p))
|
||||
@@ -418,6 +466,16 @@ func AssignSubPtrFloat64(p uintptr, v float64) float64 {
|
||||
return *(*float64)(unsafe.Pointer(p))
|
||||
}
|
||||
|
||||
func AssignSubPtrComplex64(p uintptr, v complex64) complex64 {
|
||||
*(*complex64)(unsafe.Pointer(p)) -= v
|
||||
return *(*complex64)(unsafe.Pointer(p))
|
||||
}
|
||||
|
||||
func AssignSubPtrComplex128(p uintptr, v complex128) complex128 {
|
||||
*(*complex128)(unsafe.Pointer(p)) -= v
|
||||
return *(*complex128)(unsafe.Pointer(p))
|
||||
}
|
||||
|
||||
func AssignSubPtrUintptr(p uintptr, v uintptr) uintptr {
|
||||
*(*uintptr)(unsafe.Pointer(p)) -= v
|
||||
return *(*uintptr)(unsafe.Pointer(p))
|
||||
@@ -684,17 +742,19 @@ func AssignShrUint64(p *uint64, v int) uint64 { *p >>= v; return *p }
|
||||
|
||||
func AssignShrUintptr(p *uintptr, v int) uintptr { *p >>= v; return *p }
|
||||
|
||||
func PreIncInt8(p *int8, d int8) int8 { *p += d; return *p }
|
||||
func PreIncInt16(p *int16, d int16) int16 { *p += d; return *p }
|
||||
func PreIncInt32(p *int32, d int32) int32 { *p += d; return *p }
|
||||
func PreIncInt64(p *int64, d int64) int64 { *p += d; return *p }
|
||||
func PreIncUint8(p *uint8, d uint8) uint8 { *p += d; return *p }
|
||||
func PreIncUint16(p *uint16, d uint16) uint16 { *p += d; return *p }
|
||||
func PreIncUint32(p *uint32, d uint32) uint32 { *p += d; return *p }
|
||||
func PreIncUint64(p *uint64, d uint64) uint64 { *p += d; return *p }
|
||||
func PreIncFloat32(p *float32, d float32) float32 { *p += d; return *p }
|
||||
func PreIncFloat64(p *float64, d float64) float64 { *p += d; return *p }
|
||||
func PreIncUintptr(p *uintptr, d uintptr) uintptr { *p += d; return *p }
|
||||
func PreIncInt8(p *int8, d int8) int8 { *p += d; return *p }
|
||||
func PreIncInt16(p *int16, d int16) int16 { *p += d; return *p }
|
||||
func PreIncInt32(p *int32, d int32) int32 { *p += d; return *p }
|
||||
func PreIncInt64(p *int64, d int64) int64 { *p += d; return *p }
|
||||
func PreIncUint8(p *uint8, d uint8) uint8 { *p += d; return *p }
|
||||
func PreIncUint16(p *uint16, d uint16) uint16 { *p += d; return *p }
|
||||
func PreIncUint32(p *uint32, d uint32) uint32 { *p += d; return *p }
|
||||
func PreIncUint64(p *uint64, d uint64) uint64 { *p += d; return *p }
|
||||
func PreIncFloat32(p *float32, d float32) float32 { *p += d; return *p }
|
||||
func PreIncFloat64(p *float64, d float64) float64 { *p += d; return *p }
|
||||
func PreIncComplex64(p *complex64, d complex64) complex64 { *p += d; return *p }
|
||||
func PreIncComplex128(p *complex128, d complex128) complex128 { *p += d; return *p }
|
||||
func PreIncUintptr(p *uintptr, d uintptr) uintptr { *p += d; return *p }
|
||||
|
||||
func PreIncAtomicInt32(p *int32, d int32) int32 { return atomic.AddInt32(p, d) }
|
||||
func PreIncAtomicInt64(p *int64, d int64) int64 { return atomic.AddInt64(p, d) }
|
||||
@@ -702,17 +762,19 @@ func PreIncAtomicUint32(p *uint32, d uint32) uint32 { return atomic.AddUint3
|
||||
func PreIncAtomicUint64(p *uint64, d uint64) uint64 { return atomic.AddUint64(p, d) }
|
||||
func PreIncAtomicUintptr(p *uintptr, d uintptr) uintptr { return atomic.AddUintptr(p, d) }
|
||||
|
||||
func PreDecInt8(p *int8, d int8) int8 { *p -= d; return *p }
|
||||
func PreDecInt16(p *int16, d int16) int16 { *p -= d; return *p }
|
||||
func PreDecInt32(p *int32, d int32) int32 { *p -= d; return *p }
|
||||
func PreDecInt64(p *int64, d int64) int64 { *p -= d; return *p }
|
||||
func PreDecUint8(p *uint8, d uint8) uint8 { *p -= d; return *p }
|
||||
func PreDecUint16(p *uint16, d uint16) uint16 { *p -= d; return *p }
|
||||
func PreDecUint32(p *uint32, d uint32) uint32 { *p -= d; return *p }
|
||||
func PreDecUint64(p *uint64, d uint64) uint64 { *p -= d; return *p }
|
||||
func PreDecFloat32(p *float32, d float32) float32 { *p -= d; return *p }
|
||||
func PreDecFloat64(p *float64, d float64) float64 { *p -= d; return *p }
|
||||
func PreDecUintptr(p *uintptr, d uintptr) uintptr { *p -= d; return *p }
|
||||
func PreDecInt8(p *int8, d int8) int8 { *p -= d; return *p }
|
||||
func PreDecInt16(p *int16, d int16) int16 { *p -= d; return *p }
|
||||
func PreDecInt32(p *int32, d int32) int32 { *p -= d; return *p }
|
||||
func PreDecInt64(p *int64, d int64) int64 { *p -= d; return *p }
|
||||
func PreDecUint8(p *uint8, d uint8) uint8 { *p -= d; return *p }
|
||||
func PreDecUint16(p *uint16, d uint16) uint16 { *p -= d; return *p }
|
||||
func PreDecUint32(p *uint32, d uint32) uint32 { *p -= d; return *p }
|
||||
func PreDecUint64(p *uint64, d uint64) uint64 { *p -= d; return *p }
|
||||
func PreDecFloat32(p *float32, d float32) float32 { *p -= d; return *p }
|
||||
func PreDecFloat64(p *float64, d float64) float64 { *p -= d; return *p }
|
||||
func PreDecComplex64(p *complex64, d complex64) complex64 { *p -= d; return *p }
|
||||
func PreDecComplex128(p *complex128, d complex128) complex128 { *p -= d; return *p }
|
||||
func PreDecUintptr(p *uintptr, d uintptr) uintptr { *p -= d; return *p }
|
||||
|
||||
func PreDecAtomicInt32(p *int32, d int32) int32 { return atomic.AddInt32(p, -d) }
|
||||
func PreDecAtomicInt64(p *int64, d int64) int64 { return atomic.AddInt64(p, -d) }
|
||||
@@ -720,17 +782,19 @@ func PreDecAtomicUint32(p *uint32, d uint32) uint32 { return atomic.AddUint3
|
||||
func PreDecAtomicUint64(p *uint64, d uint64) uint64 { return atomic.AddUint64(p, -d) }
|
||||
func PreDecAtomicUintptr(p *uintptr, d uintptr) uintptr { return atomic.AddUintptr(p, -d) }
|
||||
|
||||
func PostIncInt8(p *int8, d int8) int8 { r := *p; *p += d; return r }
|
||||
func PostIncInt16(p *int16, d int16) int16 { r := *p; *p += d; return r }
|
||||
func PostIncInt32(p *int32, d int32) int32 { r := *p; *p += d; return r }
|
||||
func PostIncInt64(p *int64, d int64) int64 { r := *p; *p += d; return r }
|
||||
func PostIncUint8(p *uint8, d uint8) uint8 { r := *p; *p += d; return r }
|
||||
func PostIncUint16(p *uint16, d uint16) uint16 { r := *p; *p += d; return r }
|
||||
func PostIncUint32(p *uint32, d uint32) uint32 { r := *p; *p += d; return r }
|
||||
func PostIncUint64(p *uint64, d uint64) uint64 { r := *p; *p += d; return r }
|
||||
func PostIncFloat32(p *float32, d float32) float32 { r := *p; *p += d; return r }
|
||||
func PostIncFloat64(p *float64, d float64) float64 { r := *p; *p += d; return r }
|
||||
func PostIncUintptr(p *uintptr, d uintptr) uintptr { r := *p; *p += d; return r }
|
||||
func PostIncInt8(p *int8, d int8) int8 { r := *p; *p += d; return r }
|
||||
func PostIncInt16(p *int16, d int16) int16 { r := *p; *p += d; return r }
|
||||
func PostIncInt32(p *int32, d int32) int32 { r := *p; *p += d; return r }
|
||||
func PostIncInt64(p *int64, d int64) int64 { r := *p; *p += d; return r }
|
||||
func PostIncUint8(p *uint8, d uint8) uint8 { r := *p; *p += d; return r }
|
||||
func PostIncUint16(p *uint16, d uint16) uint16 { r := *p; *p += d; return r }
|
||||
func PostIncUint32(p *uint32, d uint32) uint32 { r := *p; *p += d; return r }
|
||||
func PostIncUint64(p *uint64, d uint64) uint64 { r := *p; *p += d; return r }
|
||||
func PostIncFloat32(p *float32, d float32) float32 { r := *p; *p += d; return r }
|
||||
func PostIncFloat64(p *float64, d float64) float64 { r := *p; *p += d; return r }
|
||||
func PostIncComplex64(p *complex64, d complex64) complex64 { r := *p; *p += d; return r }
|
||||
func PostIncComplex128(p *complex128, d complex128) complex128 { r := *p; *p += d; return r }
|
||||
func PostIncUintptr(p *uintptr, d uintptr) uintptr { r := *p; *p += d; return r }
|
||||
|
||||
func PostIncAtomicInt32(p *int32, d int32) int32 { return atomic.AddInt32(p, d) - d }
|
||||
func PostIncAtomicInt64(p *int64, d int64) int64 { return atomic.AddInt64(p, d) - d }
|
||||
@@ -738,17 +802,19 @@ func PostIncAtomicUint32(p *uint32, d uint32) uint32 { return atomic.AddUint
|
||||
func PostIncAtomicUint64(p *uint64, d uint64) uint64 { return atomic.AddUint64(p, d) - d }
|
||||
func PostIncAtomicUintptr(p *uintptr, d uintptr) uintptr { return atomic.AddUintptr(p, d) - d }
|
||||
|
||||
func PostDecInt8(p *int8, d int8) int8 { r := *p; *p -= d; return r }
|
||||
func PostDecInt16(p *int16, d int16) int16 { r := *p; *p -= d; return r }
|
||||
func PostDecInt32(p *int32, d int32) int32 { r := *p; *p -= d; return r }
|
||||
func PostDecInt64(p *int64, d int64) int64 { r := *p; *p -= d; return r }
|
||||
func PostDecUint8(p *uint8, d uint8) uint8 { r := *p; *p -= d; return r }
|
||||
func PostDecUint16(p *uint16, d uint16) uint16 { r := *p; *p -= d; return r }
|
||||
func PostDecUint32(p *uint32, d uint32) uint32 { r := *p; *p -= d; return r }
|
||||
func PostDecUint64(p *uint64, d uint64) uint64 { r := *p; *p -= d; return r }
|
||||
func PostDecFloat32(p *float32, d float32) float32 { r := *p; *p -= d; return r }
|
||||
func PostDecFloat64(p *float64, d float64) float64 { r := *p; *p -= d; return r }
|
||||
func PostDecUintptr(p *uintptr, d uintptr) uintptr { r := *p; *p -= d; return r }
|
||||
func PostDecInt8(p *int8, d int8) int8 { r := *p; *p -= d; return r }
|
||||
func PostDecInt16(p *int16, d int16) int16 { r := *p; *p -= d; return r }
|
||||
func PostDecInt32(p *int32, d int32) int32 { r := *p; *p -= d; return r }
|
||||
func PostDecInt64(p *int64, d int64) int64 { r := *p; *p -= d; return r }
|
||||
func PostDecUint8(p *uint8, d uint8) uint8 { r := *p; *p -= d; return r }
|
||||
func PostDecUint16(p *uint16, d uint16) uint16 { r := *p; *p -= d; return r }
|
||||
func PostDecUint32(p *uint32, d uint32) uint32 { r := *p; *p -= d; return r }
|
||||
func PostDecUint64(p *uint64, d uint64) uint64 { r := *p; *p -= d; return r }
|
||||
func PostDecFloat32(p *float32, d float32) float32 { r := *p; *p -= d; return r }
|
||||
func PostDecFloat64(p *float64, d float64) float64 { r := *p; *p -= d; return r }
|
||||
func PostDecComplex64(p *complex64, d complex64) complex64 { r := *p; *p -= d; return r }
|
||||
func PostDecComplex128(p *complex128, d complex128) complex128 { r := *p; *p -= d; return r }
|
||||
func PostDecUintptr(p *uintptr, d uintptr) uintptr { r := *p; *p -= d; return r }
|
||||
|
||||
func PostDecAtomicInt32(p *int32, d int32) int32 { return atomic.AddInt32(p, -d) + d }
|
||||
func PostDecAtomicInt64(p *int64, d int64) int64 { return atomic.AddInt64(p, -d) + d }
|
||||
@@ -756,139 +822,189 @@ func PostDecAtomicUint32(p *uint32, d uint32) uint32 { return atomic.AddUint
|
||||
func PostDecAtomicUint64(p *uint64, d uint64) uint64 { return atomic.AddUint64(p, -d) + d }
|
||||
func PostDecAtomicUintptr(p *uintptr, d uintptr) uintptr { return atomic.AddUintptr(p, -d) + d }
|
||||
|
||||
func Int8FromInt8(n int8) int8 { return int8(n) }
|
||||
func Int8FromInt16(n int16) int8 { return int8(n) }
|
||||
func Int8FromInt32(n int32) int8 { return int8(n) }
|
||||
func Int8FromInt64(n int64) int8 { return int8(n) }
|
||||
func Int8FromUint8(n uint8) int8 { return int8(n) }
|
||||
func Int8FromUint16(n uint16) int8 { return int8(n) }
|
||||
func Int8FromUint32(n uint32) int8 { return int8(n) }
|
||||
func Int8FromUint64(n uint64) int8 { return int8(n) }
|
||||
func Int8FromFloat32(n float32) int8 { return int8(n) }
|
||||
func Int8FromFloat64(n float64) int8 { return int8(n) }
|
||||
func Int8FromUintptr(n uintptr) int8 { return int8(n) }
|
||||
func Int16FromInt8(n int8) int16 { return int16(n) }
|
||||
func Int16FromInt16(n int16) int16 { return int16(n) }
|
||||
func Int16FromInt32(n int32) int16 { return int16(n) }
|
||||
func Int16FromInt64(n int64) int16 { return int16(n) }
|
||||
func Int16FromUint8(n uint8) int16 { return int16(n) }
|
||||
func Int16FromUint16(n uint16) int16 { return int16(n) }
|
||||
func Int16FromUint32(n uint32) int16 { return int16(n) }
|
||||
func Int16FromUint64(n uint64) int16 { return int16(n) }
|
||||
func Int16FromFloat32(n float32) int16 { return int16(n) }
|
||||
func Int16FromFloat64(n float64) int16 { return int16(n) }
|
||||
func Int16FromUintptr(n uintptr) int16 { return int16(n) }
|
||||
func Int32FromInt8(n int8) int32 { return int32(n) }
|
||||
func Int32FromInt16(n int16) int32 { return int32(n) }
|
||||
func Int32FromInt32(n int32) int32 { return int32(n) }
|
||||
func Int32FromInt64(n int64) int32 { return int32(n) }
|
||||
func Int32FromUint8(n uint8) int32 { return int32(n) }
|
||||
func Int32FromUint16(n uint16) int32 { return int32(n) }
|
||||
func Int32FromUint32(n uint32) int32 { return int32(n) }
|
||||
func Int32FromUint64(n uint64) int32 { return int32(n) }
|
||||
func Int32FromFloat32(n float32) int32 { return int32(n) }
|
||||
func Int32FromFloat64(n float64) int32 { return int32(n) }
|
||||
func Int32FromUintptr(n uintptr) int32 { return int32(n) }
|
||||
func Int64FromInt8(n int8) int64 { return int64(n) }
|
||||
func Int64FromInt16(n int16) int64 { return int64(n) }
|
||||
func Int64FromInt32(n int32) int64 { return int64(n) }
|
||||
func Int64FromInt64(n int64) int64 { return int64(n) }
|
||||
func Int64FromUint8(n uint8) int64 { return int64(n) }
|
||||
func Int64FromUint16(n uint16) int64 { return int64(n) }
|
||||
func Int64FromUint32(n uint32) int64 { return int64(n) }
|
||||
func Int64FromUint64(n uint64) int64 { return int64(n) }
|
||||
func Int64FromFloat32(n float32) int64 { return int64(n) }
|
||||
func Int64FromFloat64(n float64) int64 { return int64(n) }
|
||||
func Int64FromUintptr(n uintptr) int64 { return int64(n) }
|
||||
func Uint8FromInt8(n int8) uint8 { return uint8(n) }
|
||||
func Uint8FromInt16(n int16) uint8 { return uint8(n) }
|
||||
func Uint8FromInt32(n int32) uint8 { return uint8(n) }
|
||||
func Uint8FromInt64(n int64) uint8 { return uint8(n) }
|
||||
func Uint8FromUint8(n uint8) uint8 { return uint8(n) }
|
||||
func Uint8FromUint16(n uint16) uint8 { return uint8(n) }
|
||||
func Uint8FromUint32(n uint32) uint8 { return uint8(n) }
|
||||
func Uint8FromUint64(n uint64) uint8 { return uint8(n) }
|
||||
func Uint8FromFloat32(n float32) uint8 { return uint8(n) }
|
||||
func Uint8FromFloat64(n float64) uint8 { return uint8(n) }
|
||||
func Uint8FromUintptr(n uintptr) uint8 { return uint8(n) }
|
||||
func Uint16FromInt8(n int8) uint16 { return uint16(n) }
|
||||
func Uint16FromInt16(n int16) uint16 { return uint16(n) }
|
||||
func Uint16FromInt32(n int32) uint16 { return uint16(n) }
|
||||
func Uint16FromInt64(n int64) uint16 { return uint16(n) }
|
||||
func Uint16FromUint8(n uint8) uint16 { return uint16(n) }
|
||||
func Uint16FromUint16(n uint16) uint16 { return uint16(n) }
|
||||
func Uint16FromUint32(n uint32) uint16 { return uint16(n) }
|
||||
func Uint16FromUint64(n uint64) uint16 { return uint16(n) }
|
||||
func Uint16FromFloat32(n float32) uint16 { return uint16(n) }
|
||||
func Uint16FromFloat64(n float64) uint16 { return uint16(n) }
|
||||
func Uint16FromUintptr(n uintptr) uint16 { return uint16(n) }
|
||||
func Uint32FromInt8(n int8) uint32 { return uint32(n) }
|
||||
func Uint32FromInt16(n int16) uint32 { return uint32(n) }
|
||||
func Uint32FromInt32(n int32) uint32 { return uint32(n) }
|
||||
func Uint32FromInt64(n int64) uint32 { return uint32(n) }
|
||||
func Uint32FromUint8(n uint8) uint32 { return uint32(n) }
|
||||
func Uint32FromUint16(n uint16) uint32 { return uint32(n) }
|
||||
func Uint32FromUint32(n uint32) uint32 { return uint32(n) }
|
||||
func Uint32FromUint64(n uint64) uint32 { return uint32(n) }
|
||||
func Uint32FromFloat32(n float32) uint32 { return uint32(n) }
|
||||
func Uint32FromFloat64(n float64) uint32 { return uint32(n) }
|
||||
func Uint32FromUintptr(n uintptr) uint32 { return uint32(n) }
|
||||
func Uint64FromInt8(n int8) uint64 { return uint64(n) }
|
||||
func Uint64FromInt16(n int16) uint64 { return uint64(n) }
|
||||
func Uint64FromInt32(n int32) uint64 { return uint64(n) }
|
||||
func Uint64FromInt64(n int64) uint64 { return uint64(n) }
|
||||
func Uint64FromUint8(n uint8) uint64 { return uint64(n) }
|
||||
func Uint64FromUint16(n uint16) uint64 { return uint64(n) }
|
||||
func Uint64FromUint32(n uint32) uint64 { return uint64(n) }
|
||||
func Uint64FromUint64(n uint64) uint64 { return uint64(n) }
|
||||
func Uint64FromFloat32(n float32) uint64 { return uint64(n) }
|
||||
func Uint64FromFloat64(n float64) uint64 { return uint64(n) }
|
||||
func Uint64FromUintptr(n uintptr) uint64 { return uint64(n) }
|
||||
func Float32FromInt8(n int8) float32 { return float32(n) }
|
||||
func Float32FromInt16(n int16) float32 { return float32(n) }
|
||||
func Float32FromInt32(n int32) float32 { return float32(n) }
|
||||
func Float32FromInt64(n int64) float32 { return float32(n) }
|
||||
func Float32FromUint8(n uint8) float32 { return float32(n) }
|
||||
func Float32FromUint16(n uint16) float32 { return float32(n) }
|
||||
func Float32FromUint32(n uint32) float32 { return float32(n) }
|
||||
func Float32FromUint64(n uint64) float32 { return float32(n) }
|
||||
func Float32FromFloat32(n float32) float32 { return float32(n) }
|
||||
func Float32FromFloat64(n float64) float32 { return float32(n) }
|
||||
func Float32FromUintptr(n uintptr) float32 { return float32(n) }
|
||||
func Float64FromInt8(n int8) float64 { return float64(n) }
|
||||
func Float64FromInt16(n int16) float64 { return float64(n) }
|
||||
func Float64FromInt32(n int32) float64 { return float64(n) }
|
||||
func Float64FromInt64(n int64) float64 { return float64(n) }
|
||||
func Float64FromUint8(n uint8) float64 { return float64(n) }
|
||||
func Float64FromUint16(n uint16) float64 { return float64(n) }
|
||||
func Float64FromUint32(n uint32) float64 { return float64(n) }
|
||||
func Float64FromUint64(n uint64) float64 { return float64(n) }
|
||||
func Float64FromFloat32(n float32) float64 { return float64(n) }
|
||||
func Float64FromFloat64(n float64) float64 { return float64(n) }
|
||||
func Float64FromUintptr(n uintptr) float64 { return float64(n) }
|
||||
func UintptrFromInt8(n int8) uintptr { return uintptr(n) }
|
||||
func UintptrFromInt16(n int16) uintptr { return uintptr(n) }
|
||||
func UintptrFromInt32(n int32) uintptr { return uintptr(n) }
|
||||
func UintptrFromInt64(n int64) uintptr { return uintptr(n) }
|
||||
func UintptrFromUint8(n uint8) uintptr { return uintptr(n) }
|
||||
func UintptrFromUint16(n uint16) uintptr { return uintptr(n) }
|
||||
func UintptrFromUint32(n uint32) uintptr { return uintptr(n) }
|
||||
func UintptrFromUint64(n uint64) uintptr { return uintptr(n) }
|
||||
func UintptrFromFloat32(n float32) uintptr { return uintptr(n) }
|
||||
func UintptrFromFloat64(n float64) uintptr { return uintptr(n) }
|
||||
func UintptrFromUintptr(n uintptr) uintptr { return uintptr(n) }
|
||||
func Int8FromInt8(n int8) int8 { return int8(n) }
|
||||
func Int8FromInt16(n int16) int8 { return int8(n) }
|
||||
func Int8FromInt32(n int32) int8 { return int8(n) }
|
||||
func Int8FromInt64(n int64) int8 { return int8(n) }
|
||||
func Int8FromUint8(n uint8) int8 { return int8(n) }
|
||||
func Int8FromUint16(n uint16) int8 { return int8(n) }
|
||||
func Int8FromUint32(n uint32) int8 { return int8(n) }
|
||||
func Int8FromUint64(n uint64) int8 { return int8(n) }
|
||||
func Int8FromFloat32(n float32) int8 { return int8(n) }
|
||||
func Int8FromFloat64(n float64) int8 { return int8(n) }
|
||||
func Int8FromComplex64(n complex64) int8 { return int8(real(n)) }
|
||||
func Int8FromComplex128(n complex128) int8 { return int8(real(n)) }
|
||||
func Int8FromUintptr(n uintptr) int8 { return int8(n) }
|
||||
func Int16FromInt8(n int8) int16 { return int16(n) }
|
||||
func Int16FromInt16(n int16) int16 { return int16(n) }
|
||||
func Int16FromInt32(n int32) int16 { return int16(n) }
|
||||
func Int16FromInt64(n int64) int16 { return int16(n) }
|
||||
func Int16FromUint8(n uint8) int16 { return int16(n) }
|
||||
func Int16FromUint16(n uint16) int16 { return int16(n) }
|
||||
func Int16FromUint32(n uint32) int16 { return int16(n) }
|
||||
func Int16FromUint64(n uint64) int16 { return int16(n) }
|
||||
func Int16FromFloat32(n float32) int16 { return int16(n) }
|
||||
func Int16FromFloat64(n float64) int16 { return int16(n) }
|
||||
func Int16FromComplex64(n complex64) int16 { return int16(real(n)) }
|
||||
func Int16FromComplex128(n complex128) int16 { return int16(real(n)) }
|
||||
func Int16FromUintptr(n uintptr) int16 { return int16(n) }
|
||||
func Int32FromInt8(n int8) int32 { return int32(n) }
|
||||
func Int32FromInt16(n int16) int32 { return int32(n) }
|
||||
func Int32FromInt32(n int32) int32 { return int32(n) }
|
||||
func Int32FromInt64(n int64) int32 { return int32(n) }
|
||||
func Int32FromUint8(n uint8) int32 { return int32(n) }
|
||||
func Int32FromUint16(n uint16) int32 { return int32(n) }
|
||||
func Int32FromUint32(n uint32) int32 { return int32(n) }
|
||||
func Int32FromUint64(n uint64) int32 { return int32(n) }
|
||||
func Int32FromFloat32(n float32) int32 { return int32(n) }
|
||||
func Int32FromFloat64(n float64) int32 { return int32(n) }
|
||||
func Int32FromComplex64(n complex64) int32 { return int32(real(n)) }
|
||||
func Int32FromComplex128(n complex128) int32 { return int32(real(n)) }
|
||||
func Int32FromUintptr(n uintptr) int32 { return int32(n) }
|
||||
func Int64FromInt8(n int8) int64 { return int64(n) }
|
||||
func Int64FromInt16(n int16) int64 { return int64(n) }
|
||||
func Int64FromInt32(n int32) int64 { return int64(n) }
|
||||
func Int64FromInt64(n int64) int64 { return int64(n) }
|
||||
func Int64FromUint8(n uint8) int64 { return int64(n) }
|
||||
func Int64FromUint16(n uint16) int64 { return int64(n) }
|
||||
func Int64FromUint32(n uint32) int64 { return int64(n) }
|
||||
func Int64FromUint64(n uint64) int64 { return int64(n) }
|
||||
func Int64FromFloat32(n float32) int64 { return int64(n) }
|
||||
func Int64FromFloat64(n float64) int64 { return int64(n) }
|
||||
func Int64FromComplex64(n complex64) int64 { return int64(real(n)) }
|
||||
func Int64FromComplex128(n complex128) int64 { return int64(real(n)) }
|
||||
func Int64FromUintptr(n uintptr) int64 { return int64(n) }
|
||||
func Uint8FromInt8(n int8) uint8 { return uint8(n) }
|
||||
func Uint8FromInt16(n int16) uint8 { return uint8(n) }
|
||||
func Uint8FromInt32(n int32) uint8 { return uint8(n) }
|
||||
func Uint8FromInt64(n int64) uint8 { return uint8(n) }
|
||||
func Uint8FromUint8(n uint8) uint8 { return uint8(n) }
|
||||
func Uint8FromUint16(n uint16) uint8 { return uint8(n) }
|
||||
func Uint8FromUint32(n uint32) uint8 { return uint8(n) }
|
||||
func Uint8FromUint64(n uint64) uint8 { return uint8(n) }
|
||||
func Uint8FromFloat32(n float32) uint8 { return uint8(n) }
|
||||
func Uint8FromFloat64(n float64) uint8 { return uint8(n) }
|
||||
func Uint8FromComplex64(n complex64) uint8 { return uint8(real(n)) }
|
||||
func Uint8FromComplex128(n complex128) uint8 { return uint8(real(n)) }
|
||||
func Uint8FromUintptr(n uintptr) uint8 { return uint8(n) }
|
||||
func Uint16FromInt8(n int8) uint16 { return uint16(n) }
|
||||
func Uint16FromInt16(n int16) uint16 { return uint16(n) }
|
||||
func Uint16FromInt32(n int32) uint16 { return uint16(n) }
|
||||
func Uint16FromInt64(n int64) uint16 { return uint16(n) }
|
||||
func Uint16FromUint8(n uint8) uint16 { return uint16(n) }
|
||||
func Uint16FromUint16(n uint16) uint16 { return uint16(n) }
|
||||
func Uint16FromUint32(n uint32) uint16 { return uint16(n) }
|
||||
func Uint16FromUint64(n uint64) uint16 { return uint16(n) }
|
||||
func Uint16FromFloat32(n float32) uint16 { return uint16(n) }
|
||||
func Uint16FromFloat64(n float64) uint16 { return uint16(n) }
|
||||
func Uint16FromComplex64(n complex64) uint16 { return uint16(real(n)) }
|
||||
func Uint16FromComplex128(n complex128) uint16 { return uint16(real(n)) }
|
||||
func Uint16FromUintptr(n uintptr) uint16 { return uint16(n) }
|
||||
func Uint32FromInt8(n int8) uint32 { return uint32(n) }
|
||||
func Uint32FromInt16(n int16) uint32 { return uint32(n) }
|
||||
func Uint32FromInt32(n int32) uint32 { return uint32(n) }
|
||||
func Uint32FromInt64(n int64) uint32 { return uint32(n) }
|
||||
func Uint32FromUint8(n uint8) uint32 { return uint32(n) }
|
||||
func Uint32FromUint16(n uint16) uint32 { return uint32(n) }
|
||||
func Uint32FromUint32(n uint32) uint32 { return uint32(n) }
|
||||
func Uint32FromUint64(n uint64) uint32 { return uint32(n) }
|
||||
func Uint32FromFloat32(n float32) uint32 { return uint32(n) }
|
||||
func Uint32FromFloat64(n float64) uint32 { return uint32(n) }
|
||||
func Uint32FromComplex64(n complex64) uint32 { return uint32(real(n)) }
|
||||
func Uint32FromComplex128(n complex128) uint32 { return uint32(real(n)) }
|
||||
func Uint32FromUintptr(n uintptr) uint32 { return uint32(n) }
|
||||
func Uint64FromInt8(n int8) uint64 { return uint64(n) }
|
||||
func Uint64FromInt16(n int16) uint64 { return uint64(n) }
|
||||
func Uint64FromInt32(n int32) uint64 { return uint64(n) }
|
||||
func Uint64FromInt64(n int64) uint64 { return uint64(n) }
|
||||
func Uint64FromUint8(n uint8) uint64 { return uint64(n) }
|
||||
func Uint64FromUint16(n uint16) uint64 { return uint64(n) }
|
||||
func Uint64FromUint32(n uint32) uint64 { return uint64(n) }
|
||||
func Uint64FromUint64(n uint64) uint64 { return uint64(n) }
|
||||
func Uint64FromFloat32(n float32) uint64 { return uint64(n) }
|
||||
func Uint64FromFloat64(n float64) uint64 { return uint64(n) }
|
||||
func Uint64FromComplex64(n complex64) uint64 { return uint64(real(n)) }
|
||||
func Uint64FromComplex128(n complex128) uint64 { return uint64(real(n)) }
|
||||
func Uint64FromUintptr(n uintptr) uint64 { return uint64(n) }
|
||||
func Float32FromInt8(n int8) float32 { return float32(n) }
|
||||
func Float32FromInt16(n int16) float32 { return float32(n) }
|
||||
func Float32FromInt32(n int32) float32 { return float32(n) }
|
||||
func Float32FromInt64(n int64) float32 { return float32(n) }
|
||||
func Float32FromUint8(n uint8) float32 { return float32(n) }
|
||||
func Float32FromUint16(n uint16) float32 { return float32(n) }
|
||||
func Float32FromUint32(n uint32) float32 { return float32(n) }
|
||||
func Float32FromUint64(n uint64) float32 { return float32(n) }
|
||||
func Float32FromFloat32(n float32) float32 { return float32(n) }
|
||||
func Float32FromFloat64(n float64) float32 { return float32(n) }
|
||||
func Float32FromComplex64(n complex64) float32 { return float32(real(n)) }
|
||||
func Float32FromComplex128(n complex128) float32 { return float32(real(n)) }
|
||||
func Float32FromUintptr(n uintptr) float32 { return float32(n) }
|
||||
func Float64FromInt8(n int8) float64 { return float64(n) }
|
||||
func Float64FromInt16(n int16) float64 { return float64(n) }
|
||||
func Float64FromInt32(n int32) float64 { return float64(n) }
|
||||
func Float64FromInt64(n int64) float64 { return float64(n) }
|
||||
func Float64FromUint8(n uint8) float64 { return float64(n) }
|
||||
func Float64FromUint16(n uint16) float64 { return float64(n) }
|
||||
func Float64FromUint32(n uint32) float64 { return float64(n) }
|
||||
func Float64FromUint64(n uint64) float64 { return float64(n) }
|
||||
func Float64FromFloat32(n float32) float64 { return float64(n) }
|
||||
func Float64FromFloat64(n float64) float64 { return float64(n) }
|
||||
func Float64FromComplex64(n complex64) float64 { return float64(real(n)) }
|
||||
func Float64FromComplex128(n complex128) float64 { return float64(real(n)) }
|
||||
func Float64FromUintptr(n uintptr) float64 { return float64(n) }
|
||||
func Complex64FromInt8(n int8) complex64 { return complex64(complex(float32(n), 0)) }
|
||||
func Complex64FromInt16(n int16) complex64 { return complex64(complex(float32(n), 0)) }
|
||||
func Complex64FromInt32(n int32) complex64 { return complex64(complex(float32(n), 0)) }
|
||||
func Complex64FromInt64(n int64) complex64 { return complex64(complex(float32(n), 0)) }
|
||||
func Complex64FromUint8(n uint8) complex64 { return complex64(complex(float32(n), 0)) }
|
||||
func Complex64FromUint16(n uint16) complex64 { return complex64(complex(float32(n), 0)) }
|
||||
func Complex64FromUint32(n uint32) complex64 { return complex64(complex(float32(n), 0)) }
|
||||
func Complex64FromUint64(n uint64) complex64 { return complex64(complex(float32(n), 0)) }
|
||||
func Complex64FromFloat32(n float32) complex64 { return complex64(complex(float32(n), 0)) }
|
||||
func Complex64FromFloat64(n float64) complex64 { return complex64(complex(float32(n), 0)) }
|
||||
func Complex64FromComplex64(n complex64) complex64 { return complex64(n) }
|
||||
func Complex64FromComplex128(n complex128) complex64 { return complex64(n) }
|
||||
func Complex64FromUintptr(n uintptr) complex64 { return complex64(complex(float32(n), 0)) }
|
||||
func Complex128FromInt8(n int8) complex128 { return complex128(complex(float64(n), 0)) }
|
||||
func Complex128FromInt16(n int16) complex128 { return complex128(complex(float64(n), 0)) }
|
||||
func Complex128FromInt32(n int32) complex128 { return complex128(complex(float64(n), 0)) }
|
||||
func Complex128FromInt64(n int64) complex128 { return complex128(complex(float64(n), 0)) }
|
||||
func Complex128FromUint8(n uint8) complex128 { return complex128(complex(float64(n), 0)) }
|
||||
func Complex128FromUint16(n uint16) complex128 { return complex128(complex(float64(n), 0)) }
|
||||
func Complex128FromUint32(n uint32) complex128 { return complex128(complex(float64(n), 0)) }
|
||||
func Complex128FromUint64(n uint64) complex128 { return complex128(complex(float64(n), 0)) }
|
||||
func Complex128FromFloat32(n float32) complex128 { return complex128(complex(float64(n), 0)) }
|
||||
func Complex128FromFloat64(n float64) complex128 { return complex128(complex(float64(n), 0)) }
|
||||
func Complex128FromComplex64(n complex64) complex128 { return complex128(n) }
|
||||
func Complex128FromComplex128(n complex128) complex128 { return complex128(n) }
|
||||
func Complex128FromUintptr(n uintptr) complex128 { return complex128(complex(float64(n), 0)) }
|
||||
func UintptrFromInt8(n int8) uintptr { return uintptr(n) }
|
||||
func UintptrFromInt16(n int16) uintptr { return uintptr(n) }
|
||||
func UintptrFromInt32(n int32) uintptr { return uintptr(n) }
|
||||
func UintptrFromInt64(n int64) uintptr { return uintptr(n) }
|
||||
func UintptrFromUint8(n uint8) uintptr { return uintptr(n) }
|
||||
func UintptrFromUint16(n uint16) uintptr { return uintptr(n) }
|
||||
func UintptrFromUint32(n uint32) uintptr { return uintptr(n) }
|
||||
func UintptrFromUint64(n uint64) uintptr { return uintptr(n) }
|
||||
func UintptrFromFloat32(n float32) uintptr { return uintptr(n) }
|
||||
func UintptrFromFloat64(n float64) uintptr { return uintptr(n) }
|
||||
func UintptrFromComplex64(n complex64) uintptr { return uintptr(real(n)) }
|
||||
func UintptrFromComplex128(n complex128) uintptr { return uintptr(real(n)) }
|
||||
func UintptrFromUintptr(n uintptr) uintptr { return uintptr(n) }
|
||||
|
||||
func Int8(n int8) int8 { return n }
|
||||
func Int16(n int16) int16 { return n }
|
||||
func Int32(n int32) int32 { return n }
|
||||
func Int64(n int64) int64 { return n }
|
||||
func Uint8(n uint8) uint8 { return n }
|
||||
func Uint16(n uint16) uint16 { return n }
|
||||
func Uint32(n uint32) uint32 { return n }
|
||||
func Uint64(n uint64) uint64 { return n }
|
||||
func Float32(n float32) float32 { return n }
|
||||
func Float64(n float64) float64 { return n }
|
||||
func Uintptr(n uintptr) uintptr { return n }
|
||||
func Int8(n int8) int8 { return n }
|
||||
func Int16(n int16) int16 { return n }
|
||||
func Int32(n int32) int32 { return n }
|
||||
func Int64(n int64) int64 { return n }
|
||||
func Uint8(n uint8) uint8 { return n }
|
||||
func Uint16(n uint16) uint16 { return n }
|
||||
func Uint32(n uint32) uint32 { return n }
|
||||
func Uint64(n uint64) uint64 { return n }
|
||||
func Float32(n float32) float32 { return n }
|
||||
func Float64(n float64) float64 { return n }
|
||||
func Complex64(n complex64) complex64 { return n }
|
||||
func Complex128(n complex128) complex128 { return n }
|
||||
func Uintptr(n uintptr) uintptr { return n }
|
||||
|
||||
func NegInt8(n int8) int8 { return -n }
|
||||
func NegInt16(n int16) int16 { return -n }
|
||||
@@ -966,6 +1082,13 @@ func BoolUint64(b bool) uint64 {
|
||||
return 0
|
||||
}
|
||||
|
||||
func BoolUintptr(b bool) uintptr {
|
||||
if b {
|
||||
return 1
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func SetBitFieldPtr8Int8(p uintptr, v int8, off int, mask uint8) {
|
||||
*(*uint8)(unsafe.Pointer(p)) = *(*uint8)(unsafe.Pointer(p))&^uint8(mask) | uint8(v)<<off&mask
|
||||
}
|
||||
@@ -1272,7 +1395,7 @@ func AssignBitFieldPtr64Uint64(p uintptr, v uint64, w, off int, mask uint64) uin
|
||||
|
||||
func PostDecBitFieldPtr8Int8(p uintptr, d int8, w, off int, mask uint8) (r int8) {
|
||||
x0 := *(*uint8)(unsafe.Pointer(p))
|
||||
s := 8 - w
|
||||
s := 8 - w - off
|
||||
r = int8(x0) & int8(mask) << s >> (s + off)
|
||||
*(*uint8)(unsafe.Pointer(p)) = x0&^uint8(mask) | uint8(r-d)<<off&mask
|
||||
return r
|
||||
@@ -1280,7 +1403,7 @@ func PostDecBitFieldPtr8Int8(p uintptr, d int8, w, off int, mask uint8) (r int8)
|
||||
|
||||
func PostDecBitFieldPtr8Int16(p uintptr, d int16, w, off int, mask uint8) (r int16) {
|
||||
x0 := *(*uint8)(unsafe.Pointer(p))
|
||||
s := 16 - w
|
||||
s := 16 - w - off
|
||||
r = int16(x0) & int16(mask) << s >> (s + off)
|
||||
*(*uint8)(unsafe.Pointer(p)) = x0&^uint8(mask) | uint8(r-d)<<off&mask
|
||||
return r
|
||||
@@ -1288,7 +1411,7 @@ func PostDecBitFieldPtr8Int16(p uintptr, d int16, w, off int, mask uint8) (r int
|
||||
|
||||
func PostDecBitFieldPtr8Int32(p uintptr, d int32, w, off int, mask uint8) (r int32) {
|
||||
x0 := *(*uint8)(unsafe.Pointer(p))
|
||||
s := 32 - w
|
||||
s := 32 - w - off
|
||||
r = int32(x0) & int32(mask) << s >> (s + off)
|
||||
*(*uint8)(unsafe.Pointer(p)) = x0&^uint8(mask) | uint8(r-d)<<off&mask
|
||||
return r
|
||||
@@ -1296,7 +1419,7 @@ func PostDecBitFieldPtr8Int32(p uintptr, d int32, w, off int, mask uint8) (r int
|
||||
|
||||
func PostDecBitFieldPtr8Int64(p uintptr, d int64, w, off int, mask uint8) (r int64) {
|
||||
x0 := *(*uint8)(unsafe.Pointer(p))
|
||||
s := 64 - w
|
||||
s := 64 - w - off
|
||||
r = int64(x0) & int64(mask) << s >> (s + off)
|
||||
*(*uint8)(unsafe.Pointer(p)) = x0&^uint8(mask) | uint8(r-d)<<off&mask
|
||||
return r
|
||||
@@ -1304,7 +1427,7 @@ func PostDecBitFieldPtr8Int64(p uintptr, d int64, w, off int, mask uint8) (r int
|
||||
|
||||
func PostDecBitFieldPtr16Int8(p uintptr, d int8, w, off int, mask uint16) (r int8) {
|
||||
x0 := *(*uint16)(unsafe.Pointer(p))
|
||||
s := 8 - w
|
||||
s := 8 - w - off
|
||||
r = int8(x0) & int8(mask) << s >> (s + off)
|
||||
*(*uint16)(unsafe.Pointer(p)) = x0&^uint16(mask) | uint16(r-d)<<off&mask
|
||||
return r
|
||||
@@ -1312,7 +1435,7 @@ func PostDecBitFieldPtr16Int8(p uintptr, d int8, w, off int, mask uint16) (r int
|
||||
|
||||
func PostDecBitFieldPtr16Int16(p uintptr, d int16, w, off int, mask uint16) (r int16) {
|
||||
x0 := *(*uint16)(unsafe.Pointer(p))
|
||||
s := 16 - w
|
||||
s := 16 - w - off
|
||||
r = int16(x0) & int16(mask) << s >> (s + off)
|
||||
*(*uint16)(unsafe.Pointer(p)) = x0&^uint16(mask) | uint16(r-d)<<off&mask
|
||||
return r
|
||||
@@ -1320,7 +1443,7 @@ func PostDecBitFieldPtr16Int16(p uintptr, d int16, w, off int, mask uint16) (r i
|
||||
|
||||
func PostDecBitFieldPtr16Int32(p uintptr, d int32, w, off int, mask uint16) (r int32) {
|
||||
x0 := *(*uint16)(unsafe.Pointer(p))
|
||||
s := 32 - w
|
||||
s := 32 - w - off
|
||||
r = int32(x0) & int32(mask) << s >> (s + off)
|
||||
*(*uint16)(unsafe.Pointer(p)) = x0&^uint16(mask) | uint16(r-d)<<off&mask
|
||||
return r
|
||||
@@ -1328,7 +1451,7 @@ func PostDecBitFieldPtr16Int32(p uintptr, d int32, w, off int, mask uint16) (r i
|
||||
|
||||
func PostDecBitFieldPtr16Int64(p uintptr, d int64, w, off int, mask uint16) (r int64) {
|
||||
x0 := *(*uint16)(unsafe.Pointer(p))
|
||||
s := 64 - w
|
||||
s := 64 - w - off
|
||||
r = int64(x0) & int64(mask) << s >> (s + off)
|
||||
*(*uint16)(unsafe.Pointer(p)) = x0&^uint16(mask) | uint16(r-d)<<off&mask
|
||||
return r
|
||||
@@ -1336,7 +1459,7 @@ func PostDecBitFieldPtr16Int64(p uintptr, d int64, w, off int, mask uint16) (r i
|
||||
|
||||
func PostDecBitFieldPtr32Int8(p uintptr, d int8, w, off int, mask uint32) (r int8) {
|
||||
x0 := *(*uint32)(unsafe.Pointer(p))
|
||||
s := 8 - w
|
||||
s := 8 - w - off
|
||||
r = int8(x0) & int8(mask) << s >> (s + off)
|
||||
*(*uint32)(unsafe.Pointer(p)) = x0&^uint32(mask) | uint32(r-d)<<off&mask
|
||||
return r
|
||||
@@ -1344,7 +1467,7 @@ func PostDecBitFieldPtr32Int8(p uintptr, d int8, w, off int, mask uint32) (r int
|
||||
|
||||
func PostDecBitFieldPtr32Int16(p uintptr, d int16, w, off int, mask uint32) (r int16) {
|
||||
x0 := *(*uint32)(unsafe.Pointer(p))
|
||||
s := 16 - w
|
||||
s := 16 - w - off
|
||||
r = int16(x0) & int16(mask) << s >> (s + off)
|
||||
*(*uint32)(unsafe.Pointer(p)) = x0&^uint32(mask) | uint32(r-d)<<off&mask
|
||||
return r
|
||||
@@ -1352,7 +1475,7 @@ func PostDecBitFieldPtr32Int16(p uintptr, d int16, w, off int, mask uint32) (r i
|
||||
|
||||
func PostDecBitFieldPtr32Int32(p uintptr, d int32, w, off int, mask uint32) (r int32) {
|
||||
x0 := *(*uint32)(unsafe.Pointer(p))
|
||||
s := 32 - w
|
||||
s := 32 - w - off
|
||||
r = int32(x0) & int32(mask) << s >> (s + off)
|
||||
*(*uint32)(unsafe.Pointer(p)) = x0&^uint32(mask) | uint32(r-d)<<off&mask
|
||||
return r
|
||||
@@ -1360,7 +1483,7 @@ func PostDecBitFieldPtr32Int32(p uintptr, d int32, w, off int, mask uint32) (r i
|
||||
|
||||
func PostDecBitFieldPtr32Int64(p uintptr, d int64, w, off int, mask uint32) (r int64) {
|
||||
x0 := *(*uint32)(unsafe.Pointer(p))
|
||||
s := 64 - w
|
||||
s := 64 - w - off
|
||||
r = int64(x0) & int64(mask) << s >> (s + off)
|
||||
*(*uint32)(unsafe.Pointer(p)) = x0&^uint32(mask) | uint32(r-d)<<off&mask
|
||||
return r
|
||||
@@ -1368,7 +1491,7 @@ func PostDecBitFieldPtr32Int64(p uintptr, d int64, w, off int, mask uint32) (r i
|
||||
|
||||
func PostDecBitFieldPtr64Int8(p uintptr, d int8, w, off int, mask uint64) (r int8) {
|
||||
x0 := *(*uint64)(unsafe.Pointer(p))
|
||||
s := 8 - w
|
||||
s := 8 - w - off
|
||||
r = int8(x0) & int8(mask) << s >> (s + off)
|
||||
*(*uint64)(unsafe.Pointer(p)) = x0&^uint64(mask) | uint64(r-d)<<off&mask
|
||||
return r
|
||||
@@ -1376,7 +1499,7 @@ func PostDecBitFieldPtr64Int8(p uintptr, d int8, w, off int, mask uint64) (r int
|
||||
|
||||
func PostDecBitFieldPtr64Int16(p uintptr, d int16, w, off int, mask uint64) (r int16) {
|
||||
x0 := *(*uint64)(unsafe.Pointer(p))
|
||||
s := 16 - w
|
||||
s := 16 - w - off
|
||||
r = int16(x0) & int16(mask) << s >> (s + off)
|
||||
*(*uint64)(unsafe.Pointer(p)) = x0&^uint64(mask) | uint64(r-d)<<off&mask
|
||||
return r
|
||||
@@ -1384,7 +1507,7 @@ func PostDecBitFieldPtr64Int16(p uintptr, d int16, w, off int, mask uint64) (r i
|
||||
|
||||
func PostDecBitFieldPtr64Int32(p uintptr, d int32, w, off int, mask uint64) (r int32) {
|
||||
x0 := *(*uint64)(unsafe.Pointer(p))
|
||||
s := 32 - w
|
||||
s := 32 - w - off
|
||||
r = int32(x0) & int32(mask) << s >> (s + off)
|
||||
*(*uint64)(unsafe.Pointer(p)) = x0&^uint64(mask) | uint64(r-d)<<off&mask
|
||||
return r
|
||||
@@ -1392,7 +1515,7 @@ func PostDecBitFieldPtr64Int32(p uintptr, d int32, w, off int, mask uint64) (r i
|
||||
|
||||
func PostDecBitFieldPtr64Int64(p uintptr, d int64, w, off int, mask uint64) (r int64) {
|
||||
x0 := *(*uint64)(unsafe.Pointer(p))
|
||||
s := 64 - w
|
||||
s := 64 - w - off
|
||||
r = int64(x0) & int64(mask) << s >> (s + off)
|
||||
*(*uint64)(unsafe.Pointer(p)) = x0&^uint64(mask) | uint64(r-d)<<off&mask
|
||||
return r
|
||||
@@ -1512,7 +1635,7 @@ func PostDecBitFieldPtr64Uint64(p uintptr, d uint64, w, off int, mask uint64) (r
|
||||
|
||||
func PostIncBitFieldPtr8Int8(p uintptr, d int8, w, off int, mask uint8) (r int8) {
|
||||
x0 := *(*uint8)(unsafe.Pointer(p))
|
||||
s := 8 - w
|
||||
s := 8 - w - off
|
||||
r = int8(x0) & int8(mask) << s >> (s + off)
|
||||
*(*uint8)(unsafe.Pointer(p)) = x0&^uint8(mask) | uint8(r+d)<<off&mask
|
||||
return r
|
||||
@@ -1520,7 +1643,7 @@ func PostIncBitFieldPtr8Int8(p uintptr, d int8, w, off int, mask uint8) (r int8)
|
||||
|
||||
func PostIncBitFieldPtr8Int16(p uintptr, d int16, w, off int, mask uint8) (r int16) {
|
||||
x0 := *(*uint8)(unsafe.Pointer(p))
|
||||
s := 16 - w
|
||||
s := 16 - w - off
|
||||
r = int16(x0) & int16(mask) << s >> (s + off)
|
||||
*(*uint8)(unsafe.Pointer(p)) = x0&^uint8(mask) | uint8(r+d)<<off&mask
|
||||
return r
|
||||
@@ -1528,7 +1651,7 @@ func PostIncBitFieldPtr8Int16(p uintptr, d int16, w, off int, mask uint8) (r int
|
||||
|
||||
func PostIncBitFieldPtr8Int32(p uintptr, d int32, w, off int, mask uint8) (r int32) {
|
||||
x0 := *(*uint8)(unsafe.Pointer(p))
|
||||
s := 32 - w
|
||||
s := 32 - w - off
|
||||
r = int32(x0) & int32(mask) << s >> (s + off)
|
||||
*(*uint8)(unsafe.Pointer(p)) = x0&^uint8(mask) | uint8(r+d)<<off&mask
|
||||
return r
|
||||
@@ -1536,7 +1659,7 @@ func PostIncBitFieldPtr8Int32(p uintptr, d int32, w, off int, mask uint8) (r int
|
||||
|
||||
func PostIncBitFieldPtr8Int64(p uintptr, d int64, w, off int, mask uint8) (r int64) {
|
||||
x0 := *(*uint8)(unsafe.Pointer(p))
|
||||
s := 64 - w
|
||||
s := 64 - w - off
|
||||
r = int64(x0) & int64(mask) << s >> (s + off)
|
||||
*(*uint8)(unsafe.Pointer(p)) = x0&^uint8(mask) | uint8(r+d)<<off&mask
|
||||
return r
|
||||
@@ -1544,7 +1667,7 @@ func PostIncBitFieldPtr8Int64(p uintptr, d int64, w, off int, mask uint8) (r int
|
||||
|
||||
func PostIncBitFieldPtr16Int8(p uintptr, d int8, w, off int, mask uint16) (r int8) {
|
||||
x0 := *(*uint16)(unsafe.Pointer(p))
|
||||
s := 8 - w
|
||||
s := 8 - w - off
|
||||
r = int8(x0) & int8(mask) << s >> (s + off)
|
||||
*(*uint16)(unsafe.Pointer(p)) = x0&^uint16(mask) | uint16(r+d)<<off&mask
|
||||
return r
|
||||
@@ -1552,7 +1675,7 @@ func PostIncBitFieldPtr16Int8(p uintptr, d int8, w, off int, mask uint16) (r int
|
||||
|
||||
func PostIncBitFieldPtr16Int16(p uintptr, d int16, w, off int, mask uint16) (r int16) {
|
||||
x0 := *(*uint16)(unsafe.Pointer(p))
|
||||
s := 16 - w
|
||||
s := 16 - w - off
|
||||
r = int16(x0) & int16(mask) << s >> (s + off)
|
||||
*(*uint16)(unsafe.Pointer(p)) = x0&^uint16(mask) | uint16(r+d)<<off&mask
|
||||
return r
|
||||
@@ -1560,7 +1683,7 @@ func PostIncBitFieldPtr16Int16(p uintptr, d int16, w, off int, mask uint16) (r i
|
||||
|
||||
func PostIncBitFieldPtr16Int32(p uintptr, d int32, w, off int, mask uint16) (r int32) {
|
||||
x0 := *(*uint16)(unsafe.Pointer(p))
|
||||
s := 32 - w
|
||||
s := 32 - w - off
|
||||
r = int32(x0) & int32(mask) << s >> (s + off)
|
||||
*(*uint16)(unsafe.Pointer(p)) = x0&^uint16(mask) | uint16(r+d)<<off&mask
|
||||
return r
|
||||
@@ -1568,7 +1691,7 @@ func PostIncBitFieldPtr16Int32(p uintptr, d int32, w, off int, mask uint16) (r i
|
||||
|
||||
func PostIncBitFieldPtr16Int64(p uintptr, d int64, w, off int, mask uint16) (r int64) {
|
||||
x0 := *(*uint16)(unsafe.Pointer(p))
|
||||
s := 64 - w
|
||||
s := 64 - w - off
|
||||
r = int64(x0) & int64(mask) << s >> (s + off)
|
||||
*(*uint16)(unsafe.Pointer(p)) = x0&^uint16(mask) | uint16(r+d)<<off&mask
|
||||
return r
|
||||
@@ -1576,7 +1699,7 @@ func PostIncBitFieldPtr16Int64(p uintptr, d int64, w, off int, mask uint16) (r i
|
||||
|
||||
func PostIncBitFieldPtr32Int8(p uintptr, d int8, w, off int, mask uint32) (r int8) {
|
||||
x0 := *(*uint32)(unsafe.Pointer(p))
|
||||
s := 8 - w
|
||||
s := 8 - w - off
|
||||
r = int8(x0) & int8(mask) << s >> (s + off)
|
||||
*(*uint32)(unsafe.Pointer(p)) = x0&^uint32(mask) | uint32(r+d)<<off&mask
|
||||
return r
|
||||
@@ -1584,7 +1707,7 @@ func PostIncBitFieldPtr32Int8(p uintptr, d int8, w, off int, mask uint32) (r int
|
||||
|
||||
func PostIncBitFieldPtr32Int16(p uintptr, d int16, w, off int, mask uint32) (r int16) {
|
||||
x0 := *(*uint32)(unsafe.Pointer(p))
|
||||
s := 16 - w
|
||||
s := 16 - w - off
|
||||
r = int16(x0) & int16(mask) << s >> (s + off)
|
||||
*(*uint32)(unsafe.Pointer(p)) = x0&^uint32(mask) | uint32(r+d)<<off&mask
|
||||
return r
|
||||
@@ -1592,7 +1715,7 @@ func PostIncBitFieldPtr32Int16(p uintptr, d int16, w, off int, mask uint32) (r i
|
||||
|
||||
func PostIncBitFieldPtr32Int32(p uintptr, d int32, w, off int, mask uint32) (r int32) {
|
||||
x0 := *(*uint32)(unsafe.Pointer(p))
|
||||
s := 32 - w
|
||||
s := 32 - w - off
|
||||
r = int32(x0) & int32(mask) << s >> (s + off)
|
||||
*(*uint32)(unsafe.Pointer(p)) = x0&^uint32(mask) | uint32(r+d)<<off&mask
|
||||
return r
|
||||
@@ -1600,7 +1723,7 @@ func PostIncBitFieldPtr32Int32(p uintptr, d int32, w, off int, mask uint32) (r i
|
||||
|
||||
func PostIncBitFieldPtr32Int64(p uintptr, d int64, w, off int, mask uint32) (r int64) {
|
||||
x0 := *(*uint32)(unsafe.Pointer(p))
|
||||
s := 64 - w
|
||||
s := 64 - w - off
|
||||
r = int64(x0) & int64(mask) << s >> (s + off)
|
||||
*(*uint32)(unsafe.Pointer(p)) = x0&^uint32(mask) | uint32(r+d)<<off&mask
|
||||
return r
|
||||
@@ -1608,7 +1731,7 @@ func PostIncBitFieldPtr32Int64(p uintptr, d int64, w, off int, mask uint32) (r i
|
||||
|
||||
func PostIncBitFieldPtr64Int8(p uintptr, d int8, w, off int, mask uint64) (r int8) {
|
||||
x0 := *(*uint64)(unsafe.Pointer(p))
|
||||
s := 8 - w
|
||||
s := 8 - w - off
|
||||
r = int8(x0) & int8(mask) << s >> (s + off)
|
||||
*(*uint64)(unsafe.Pointer(p)) = x0&^uint64(mask) | uint64(r+d)<<off&mask
|
||||
return r
|
||||
@@ -1616,7 +1739,7 @@ func PostIncBitFieldPtr64Int8(p uintptr, d int8, w, off int, mask uint64) (r int
|
||||
|
||||
func PostIncBitFieldPtr64Int16(p uintptr, d int16, w, off int, mask uint64) (r int16) {
|
||||
x0 := *(*uint64)(unsafe.Pointer(p))
|
||||
s := 16 - w
|
||||
s := 16 - w - off
|
||||
r = int16(x0) & int16(mask) << s >> (s + off)
|
||||
*(*uint64)(unsafe.Pointer(p)) = x0&^uint64(mask) | uint64(r+d)<<off&mask
|
||||
return r
|
||||
@@ -1624,7 +1747,7 @@ func PostIncBitFieldPtr64Int16(p uintptr, d int16, w, off int, mask uint64) (r i
|
||||
|
||||
func PostIncBitFieldPtr64Int32(p uintptr, d int32, w, off int, mask uint64) (r int32) {
|
||||
x0 := *(*uint64)(unsafe.Pointer(p))
|
||||
s := 32 - w
|
||||
s := 32 - w - off
|
||||
r = int32(x0) & int32(mask) << s >> (s + off)
|
||||
*(*uint64)(unsafe.Pointer(p)) = x0&^uint64(mask) | uint64(r+d)<<off&mask
|
||||
return r
|
||||
@@ -1632,7 +1755,7 @@ func PostIncBitFieldPtr64Int32(p uintptr, d int32, w, off int, mask uint64) (r i
|
||||
|
||||
func PostIncBitFieldPtr64Int64(p uintptr, d int64, w, off int, mask uint64) (r int64) {
|
||||
x0 := *(*uint64)(unsafe.Pointer(p))
|
||||
s := 64 - w
|
||||
s := 64 - w - off
|
||||
r = int64(x0) & int64(mask) << s >> (s + off)
|
||||
*(*uint64)(unsafe.Pointer(p)) = x0&^uint64(mask) | uint64(r+d)<<off&mask
|
||||
return r
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno/errno_darwin_arm64.go -pkgname errno', DO NOT EDIT.
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_darwin_arm64.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno/errno_freebsd_386.go -pkgname errno', DO NOT EDIT.
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_freebsd_386.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno/errno_freebsd_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_freebsd_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_freebsd_arm.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_freebsd_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno/errno_linux_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_linux_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_linux_ppc64le.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno/errno_netbsd_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_netbsd_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_freebsd_386.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno/errno_openbsd_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_openbsd_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_openbsd_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// Code generated by 'ccgo errno\gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno\errno_windows_arm64.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
||||
+136
-122
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno/errno_darwin_arm64.go -pkgname errno', DO NOT EDIT.
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_darwin_arm64.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
@@ -15,127 +15,127 @@ var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
E2BIG = 7
|
||||
EACCES = 13
|
||||
EADDRINUSE = 48
|
||||
EADDRNOTAVAIL = 49
|
||||
EAFNOSUPPORT = 47
|
||||
EAGAIN = 35
|
||||
EALREADY = 37
|
||||
EAUTH = 80
|
||||
EBADARCH = 86
|
||||
EBADEXEC = 85
|
||||
EBADF = 9
|
||||
EBADMACHO = 88
|
||||
EBADMSG = 94
|
||||
EBADRPC = 72
|
||||
EBUSY = 16
|
||||
ECANCELED = 89
|
||||
ECHILD = 10
|
||||
ECONNABORTED = 53
|
||||
ECONNREFUSED = 61
|
||||
ECONNRESET = 54
|
||||
EDEADLK = 11
|
||||
EDESTADDRREQ = 39
|
||||
EDEVERR = 83
|
||||
EDOM = 33
|
||||
EDQUOT = 69
|
||||
EEXIST = 17
|
||||
EFAULT = 14
|
||||
EFBIG = 27
|
||||
EFTYPE = 79
|
||||
EHOSTDOWN = 64
|
||||
EHOSTUNREACH = 65
|
||||
EIDRM = 90
|
||||
EILSEQ = 92
|
||||
EINPROGRESS = 36
|
||||
EINTR = 4
|
||||
EINVAL = 22
|
||||
EIO = 5
|
||||
EISCONN = 56
|
||||
EISDIR = 21
|
||||
ELAST = 106
|
||||
ELOOP = 62
|
||||
EMFILE = 24
|
||||
EMLINK = 31
|
||||
EMSGSIZE = 40
|
||||
EMULTIHOP = 95
|
||||
ENAMETOOLONG = 63
|
||||
ENEEDAUTH = 81
|
||||
ENETDOWN = 50
|
||||
ENETRESET = 52
|
||||
ENETUNREACH = 51
|
||||
ENFILE = 23
|
||||
ENOATTR = 93
|
||||
ENOBUFS = 55
|
||||
ENODATA = 96
|
||||
ENODEV = 19
|
||||
ENOENT = 2
|
||||
ENOEXEC = 8
|
||||
ENOLCK = 77
|
||||
ENOLINK = 97
|
||||
ENOMEM = 12
|
||||
ENOMSG = 91
|
||||
ENOPOLICY = 103
|
||||
ENOPROTOOPT = 42
|
||||
ENOSPC = 28
|
||||
ENOSR = 98
|
||||
ENOSTR = 99
|
||||
ENOSYS = 78
|
||||
ENOTBLK = 15
|
||||
ENOTCONN = 57
|
||||
ENOTDIR = 20
|
||||
ENOTEMPTY = 66
|
||||
ENOTRECOVERABLE = 104
|
||||
ENOTSOCK = 38
|
||||
ENOTSUP = 45
|
||||
ENOTTY = 25
|
||||
ENXIO = 6
|
||||
EOPNOTSUPP = 102
|
||||
EOVERFLOW = 84
|
||||
EOWNERDEAD = 105
|
||||
EPERM = 1
|
||||
EPFNOSUPPORT = 46
|
||||
EPIPE = 32
|
||||
EPROCLIM = 67
|
||||
EPROCUNAVAIL = 76
|
||||
EPROGMISMATCH = 75
|
||||
EPROGUNAVAIL = 74
|
||||
EPROTO = 100
|
||||
EPROTONOSUPPORT = 43
|
||||
EPROTOTYPE = 41
|
||||
EPWROFF = 82
|
||||
EQFULL = 106
|
||||
ERANGE = 34
|
||||
EREMOTE = 71
|
||||
EROFS = 30
|
||||
ERPCMISMATCH = 73
|
||||
ESHLIBVERS = 87
|
||||
ESHUTDOWN = 58
|
||||
ESOCKTNOSUPPORT = 44
|
||||
ESPIPE = 29
|
||||
ESRCH = 3
|
||||
ESTALE = 70
|
||||
ETIME = 101
|
||||
ETIMEDOUT = 60
|
||||
ETOOMANYREFS = 59
|
||||
ETXTBSY = 26
|
||||
EUSERS = 68
|
||||
EWOULDBLOCK = 35
|
||||
EXDEV = 18
|
||||
X_CDEFS_H_ = 0
|
||||
X_DARWIN_FEATURE_64_BIT_INODE = 1
|
||||
X_DARWIN_FEATURE_ONLY_64_BIT_INODE = 1
|
||||
X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1
|
||||
X_DARWIN_FEATURE_ONLY_VERS_1050 = 1
|
||||
X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3
|
||||
X_ERRNO_T = 0
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_LP64 = 1
|
||||
X_Nonnull = 0
|
||||
X_Null_unspecified = 0
|
||||
X_Nullable = 0
|
||||
X_SYS_ERRNO_H_ = 0
|
||||
E2BIG = 7 // errno.h:94:1:
|
||||
EACCES = 13 // errno.h:101:1:
|
||||
EADDRINUSE = 48 // errno.h:161:1:
|
||||
EADDRNOTAVAIL = 49 // errno.h:162:1:
|
||||
EAFNOSUPPORT = 47 // errno.h:160:1:
|
||||
EAGAIN = 35 // errno.h:129:1:
|
||||
EALREADY = 37 // errno.h:132:1:
|
||||
EAUTH = 80 // errno.h:213:1:
|
||||
EBADARCH = 86 // errno.h:226:1:
|
||||
EBADEXEC = 85 // errno.h:225:1:
|
||||
EBADF = 9 // errno.h:96:1:
|
||||
EBADMACHO = 88 // errno.h:228:1:
|
||||
EBADMSG = 94 // errno.h:240:1:
|
||||
EBADRPC = 72 // errno.h:201:1:
|
||||
EBUSY = 16 // errno.h:106:1:
|
||||
ECANCELED = 89 // errno.h:231:1:
|
||||
ECHILD = 10 // errno.h:97:1:
|
||||
ECONNABORTED = 53 // errno.h:168:1:
|
||||
ECONNREFUSED = 61 // errno.h:178:1:
|
||||
ECONNRESET = 54 // errno.h:169:1:
|
||||
EDEADLK = 11 // errno.h:98:1:
|
||||
EDESTADDRREQ = 39 // errno.h:136:1:
|
||||
EDEVERR = 83 // errno.h:218:1:
|
||||
EDOM = 33 // errno.h:125:1:
|
||||
EDQUOT = 69 // errno.h:195:1:
|
||||
EEXIST = 17 // errno.h:107:1:
|
||||
EFAULT = 14 // errno.h:102:1:
|
||||
EFBIG = 27 // errno.h:117:1:
|
||||
EFTYPE = 79 // errno.h:212:1:
|
||||
EHOSTDOWN = 64 // errno.h:185:1:
|
||||
EHOSTUNREACH = 65 // errno.h:187:1:
|
||||
EIDRM = 90 // errno.h:233:1:
|
||||
EILSEQ = 92 // errno.h:235:1:
|
||||
EINPROGRESS = 36 // errno.h:131:1:
|
||||
EINTR = 4 // errno.h:91:1:
|
||||
EINVAL = 22 // errno.h:112:1:
|
||||
EIO = 5 // errno.h:92:1:
|
||||
EISCONN = 56 // errno.h:171:1:
|
||||
EISDIR = 21 // errno.h:111:1:
|
||||
ELAST = 106 // errno.h:263:1:
|
||||
ELOOP = 62 // errno.h:180:1:
|
||||
EMFILE = 24 // errno.h:114:1:
|
||||
EMLINK = 31 // errno.h:121:1:
|
||||
EMSGSIZE = 40 // errno.h:137:1:
|
||||
EMULTIHOP = 95 // errno.h:241:1:
|
||||
ENAMETOOLONG = 63 // errno.h:181:1:
|
||||
ENEEDAUTH = 81 // errno.h:214:1:
|
||||
ENETDOWN = 50 // errno.h:165:1:
|
||||
ENETRESET = 52 // errno.h:167:1:
|
||||
ENETUNREACH = 51 // errno.h:166:1:
|
||||
ENFILE = 23 // errno.h:113:1:
|
||||
ENOATTR = 93 // errno.h:237:1:
|
||||
ENOBUFS = 55 // errno.h:170:1:
|
||||
ENODATA = 96 // errno.h:242:1:
|
||||
ENODEV = 19 // errno.h:109:1:
|
||||
ENOENT = 2 // errno.h:89:1:
|
||||
ENOEXEC = 8 // errno.h:95:1:
|
||||
ENOLCK = 77 // errno.h:208:1:
|
||||
ENOLINK = 97 // errno.h:243:1:
|
||||
ENOMEM = 12 // errno.h:100:1:
|
||||
ENOMSG = 91 // errno.h:234:1:
|
||||
ENOPOLICY = 103 // errno.h:254:1:
|
||||
ENOPROTOOPT = 42 // errno.h:139:1:
|
||||
ENOSPC = 28 // errno.h:118:1:
|
||||
ENOSR = 98 // errno.h:244:1:
|
||||
ENOSTR = 99 // errno.h:245:1:
|
||||
ENOSYS = 78 // errno.h:209:1:
|
||||
ENOTBLK = 15 // errno.h:104:1:
|
||||
ENOTCONN = 57 // errno.h:172:1:
|
||||
ENOTDIR = 20 // errno.h:110:1:
|
||||
ENOTEMPTY = 66 // errno.h:188:1:
|
||||
ENOTRECOVERABLE = 104 // errno.h:257:1:
|
||||
ENOTSOCK = 38 // errno.h:135:1:
|
||||
ENOTSUP = 45 // errno.h:144:1:
|
||||
ENOTTY = 25 // errno.h:115:1:
|
||||
ENXIO = 6 // errno.h:93:1:
|
||||
EOPNOTSUPP = 102 // errno.h:251:1:
|
||||
EOVERFLOW = 84 // errno.h:221:1:
|
||||
EOWNERDEAD = 105 // errno.h:258:1:
|
||||
EPERM = 1 // errno.h:88:1:
|
||||
EPFNOSUPPORT = 46 // errno.h:158:1:
|
||||
EPIPE = 32 // errno.h:122:1:
|
||||
EPROCLIM = 67 // errno.h:192:1:
|
||||
EPROCUNAVAIL = 76 // errno.h:205:1:
|
||||
EPROGMISMATCH = 75 // errno.h:204:1:
|
||||
EPROGUNAVAIL = 74 // errno.h:203:1:
|
||||
EPROTO = 100 // errno.h:246:1:
|
||||
EPROTONOSUPPORT = 43 // errno.h:140:1:
|
||||
EPROTOTYPE = 41 // errno.h:138:1:
|
||||
EPWROFF = 82 // errno.h:217:1:
|
||||
EQFULL = 106 // errno.h:262:1:
|
||||
ERANGE = 34 // errno.h:126:1:
|
||||
EREMOTE = 71 // errno.h:200:1:
|
||||
EROFS = 30 // errno.h:120:1:
|
||||
ERPCMISMATCH = 73 // errno.h:202:1:
|
||||
ESHLIBVERS = 87 // errno.h:227:1:
|
||||
ESHUTDOWN = 58 // errno.h:174:1:
|
||||
ESOCKTNOSUPPORT = 44 // errno.h:142:1:
|
||||
ESPIPE = 29 // errno.h:119:1:
|
||||
ESRCH = 3 // errno.h:90:1:
|
||||
ESTALE = 70 // errno.h:198:1:
|
||||
ETIME = 101 // errno.h:247:1:
|
||||
ETIMEDOUT = 60 // errno.h:177:1:
|
||||
ETOOMANYREFS = 59 // errno.h:175:1:
|
||||
ETXTBSY = 26 // errno.h:116:1:
|
||||
EUSERS = 68 // errno.h:193:1:
|
||||
EWOULDBLOCK = 35 // errno.h:130:1:
|
||||
EXDEV = 18 // errno.h:108:1:
|
||||
X_CDEFS_H_ = 0 // cdefs.h:68:1:
|
||||
X_DARWIN_FEATURE_64_BIT_INODE = 1 // cdefs.h:774:1:
|
||||
X_DARWIN_FEATURE_ONLY_64_BIT_INODE = 1 // cdefs.h:784:1:
|
||||
X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:800:1:
|
||||
X_DARWIN_FEATURE_ONLY_VERS_1050 = 1 // cdefs.h:792:1:
|
||||
X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:808:1:
|
||||
X_ERRNO_T = 0 // _errno_t.h:29:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_LP64 = 1 // <predefined>:1:1:
|
||||
X_Nonnull = 0 // cdefs.h:268:1:
|
||||
X_Null_unspecified = 0 // cdefs.h:271:1:
|
||||
X_Nullable = 0 // cdefs.h:265:1:
|
||||
X_SYS_ERRNO_H_ = 0 // errno.h:70:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
@@ -605,6 +605,20 @@ var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
|
||||
// __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
|
||||
// used from other compilation units, but not other libraries or executables.
|
||||
|
||||
// We intentionally define to nothing pointer attributes which do not have an
|
||||
// impact on the ABI. __indexable and __bidi_indexable are not defined because
|
||||
// of the ABI incompatibility that makes the diagnostic preferable.
|
||||
|
||||
// Similarly, we intentionally define to nothing the
|
||||
// __ptrcheck_abi_assume_single and __ptrcheck_abi_assume_unsafe_indexable
|
||||
// macros because they do not lead to an ABI incompatibility. However, we do not
|
||||
// define the indexable and unsafe_indexable ones because the diagnostic is
|
||||
// better than the silent ABI break.
|
||||
|
||||
// __unsafe_forge intrinsics are defined as regular C casts.
|
||||
|
||||
// decay operates normally; attribute is meaningless without pointer checks.
|
||||
|
||||
// Architecture validation for current SDK
|
||||
|
||||
// Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
|
||||
|
||||
+111
-111
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno/errno_freebsd_386.go -pkgname errno', DO NOT EDIT.
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_freebsd_386.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
@@ -15,116 +15,116 @@ var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
E2BIG = 7
|
||||
EACCES = 13
|
||||
EADDRINUSE = 48
|
||||
EADDRNOTAVAIL = 49
|
||||
EAFNOSUPPORT = 47
|
||||
EAGAIN = 35
|
||||
EALREADY = 37
|
||||
EAUTH = 80
|
||||
EBADF = 9
|
||||
EBADMSG = 89
|
||||
EBADRPC = 72
|
||||
EBUSY = 16
|
||||
ECANCELED = 85
|
||||
ECAPMODE = 94
|
||||
ECHILD = 10
|
||||
ECONNABORTED = 53
|
||||
ECONNREFUSED = 61
|
||||
ECONNRESET = 54
|
||||
EDEADLK = 11
|
||||
EDESTADDRREQ = 39
|
||||
EDOM = 33
|
||||
EDOOFUS = 88
|
||||
EDQUOT = 69
|
||||
EEXIST = 17
|
||||
EFAULT = 14
|
||||
EFBIG = 27
|
||||
EFTYPE = 79
|
||||
EHOSTDOWN = 64
|
||||
EHOSTUNREACH = 65
|
||||
EIDRM = 82
|
||||
EILSEQ = 86
|
||||
EINPROGRESS = 36
|
||||
EINTEGRITY = 97
|
||||
EINTR = 4
|
||||
EINVAL = 22
|
||||
EIO = 5
|
||||
EISCONN = 56
|
||||
EISDIR = 21
|
||||
ELAST = 97
|
||||
ELOOP = 62
|
||||
EMFILE = 24
|
||||
EMLINK = 31
|
||||
EMSGSIZE = 40
|
||||
EMULTIHOP = 90
|
||||
ENAMETOOLONG = 63
|
||||
ENEEDAUTH = 81
|
||||
ENETDOWN = 50
|
||||
ENETRESET = 52
|
||||
ENETUNREACH = 51
|
||||
ENFILE = 23
|
||||
ENOATTR = 87
|
||||
ENOBUFS = 55
|
||||
ENODEV = 19
|
||||
ENOENT = 2
|
||||
ENOEXEC = 8
|
||||
ENOLCK = 77
|
||||
ENOLINK = 91
|
||||
ENOMEM = 12
|
||||
ENOMSG = 83
|
||||
ENOPROTOOPT = 42
|
||||
ENOSPC = 28
|
||||
ENOSYS = 78
|
||||
ENOTBLK = 15
|
||||
ENOTCAPABLE = 93
|
||||
ENOTCONN = 57
|
||||
ENOTDIR = 20
|
||||
ENOTEMPTY = 66
|
||||
ENOTRECOVERABLE = 95
|
||||
ENOTSOCK = 38
|
||||
ENOTSUP = 45
|
||||
ENOTTY = 25
|
||||
ENXIO = 6
|
||||
EOPNOTSUPP = 45
|
||||
EOVERFLOW = 84
|
||||
EOWNERDEAD = 96
|
||||
EPERM = 1
|
||||
EPFNOSUPPORT = 46
|
||||
EPIPE = 32
|
||||
EPROCLIM = 67
|
||||
EPROCUNAVAIL = 76
|
||||
EPROGMISMATCH = 75
|
||||
EPROGUNAVAIL = 74
|
||||
EPROTO = 92
|
||||
EPROTONOSUPPORT = 43
|
||||
EPROTOTYPE = 41
|
||||
ERANGE = 34
|
||||
EREMOTE = 71
|
||||
EROFS = 30
|
||||
ERPCMISMATCH = 73
|
||||
ESHUTDOWN = 58
|
||||
ESOCKTNOSUPPORT = 44
|
||||
ESPIPE = 29
|
||||
ESRCH = 3
|
||||
ESTALE = 70
|
||||
ETIMEDOUT = 60
|
||||
ETOOMANYREFS = 59
|
||||
ETXTBSY = 26
|
||||
EUSERS = 68
|
||||
EWOULDBLOCK = 35
|
||||
EXDEV = 18
|
||||
X_ERRNO_T_DEFINED = 0
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_ILP32 = 1
|
||||
X_Nonnull = 0
|
||||
X_Null_unspecified = 0
|
||||
X_Nullable = 0
|
||||
X_SYS_CDEFS_H_ = 0
|
||||
X_SYS_ERRNO_H_ = 0
|
||||
I386 = 1
|
||||
Unix = 1
|
||||
E2BIG = 7 // errno.h:57:1:
|
||||
EACCES = 13 // errno.h:64:1:
|
||||
EADDRINUSE = 48 // errno.h:112:1:
|
||||
EADDRNOTAVAIL = 49 // errno.h:113:1:
|
||||
EAFNOSUPPORT = 47 // errno.h:111:1:
|
||||
EAGAIN = 35 // errno.h:94:1:
|
||||
EALREADY = 37 // errno.h:98:1:
|
||||
EAUTH = 80 // errno.h:161:1:
|
||||
EBADF = 9 // errno.h:59:1:
|
||||
EBADMSG = 89 // errno.h:173:1:
|
||||
EBADRPC = 72 // errno.h:149:1:
|
||||
EBUSY = 16 // errno.h:69:1:
|
||||
ECANCELED = 85 // errno.h:166:1:
|
||||
ECAPMODE = 94 // errno.h:180:1:
|
||||
ECHILD = 10 // errno.h:60:1:
|
||||
ECONNABORTED = 53 // errno.h:119:1:
|
||||
ECONNREFUSED = 61 // errno.h:127:1:
|
||||
ECONNRESET = 54 // errno.h:120:1:
|
||||
EDEADLK = 11 // errno.h:61:1:
|
||||
EDESTADDRREQ = 39 // errno.h:102:1:
|
||||
EDOM = 33 // errno.h:90:1:
|
||||
EDOOFUS = 88 // errno.h:170:1:
|
||||
EDQUOT = 69 // errno.h:144:1:
|
||||
EEXIST = 17 // errno.h:70:1:
|
||||
EFAULT = 14 // errno.h:65:1:
|
||||
EFBIG = 27 // errno.h:82:1:
|
||||
EFTYPE = 79 // errno.h:160:1:
|
||||
EHOSTDOWN = 64 // errno.h:135:1:
|
||||
EHOSTUNREACH = 65 // errno.h:136:1:
|
||||
EIDRM = 82 // errno.h:163:1:
|
||||
EILSEQ = 86 // errno.h:167:1:
|
||||
EINPROGRESS = 36 // errno.h:97:1:
|
||||
EINTEGRITY = 97 // errno.h:183:1:
|
||||
EINTR = 4 // errno.h:54:1:
|
||||
EINVAL = 22 // errno.h:75:1:
|
||||
EIO = 5 // errno.h:55:1:
|
||||
EISCONN = 56 // errno.h:122:1:
|
||||
EISDIR = 21 // errno.h:74:1:
|
||||
ELAST = 97 // errno.h:187:1:
|
||||
ELOOP = 62 // errno.h:129:1:
|
||||
EMFILE = 24 // errno.h:77:1:
|
||||
EMLINK = 31 // errno.h:86:1:
|
||||
EMSGSIZE = 40 // errno.h:103:1:
|
||||
EMULTIHOP = 90 // errno.h:174:1:
|
||||
ENAMETOOLONG = 63 // errno.h:131:1:
|
||||
ENEEDAUTH = 81 // errno.h:162:1:
|
||||
ENETDOWN = 50 // errno.h:116:1:
|
||||
ENETRESET = 52 // errno.h:118:1:
|
||||
ENETUNREACH = 51 // errno.h:117:1:
|
||||
ENFILE = 23 // errno.h:76:1:
|
||||
ENOATTR = 87 // errno.h:168:1:
|
||||
ENOBUFS = 55 // errno.h:121:1:
|
||||
ENODEV = 19 // errno.h:72:1:
|
||||
ENOENT = 2 // errno.h:52:1:
|
||||
ENOEXEC = 8 // errno.h:58:1:
|
||||
ENOLCK = 77 // errno.h:156:1:
|
||||
ENOLINK = 91 // errno.h:175:1:
|
||||
ENOMEM = 12 // errno.h:63:1:
|
||||
ENOMSG = 83 // errno.h:164:1:
|
||||
ENOPROTOOPT = 42 // errno.h:105:1:
|
||||
ENOSPC = 28 // errno.h:83:1:
|
||||
ENOSYS = 78 // errno.h:157:1:
|
||||
ENOTBLK = 15 // errno.h:67:1:
|
||||
ENOTCAPABLE = 93 // errno.h:179:1:
|
||||
ENOTCONN = 57 // errno.h:123:1:
|
||||
ENOTDIR = 20 // errno.h:73:1:
|
||||
ENOTEMPTY = 66 // errno.h:138:1:
|
||||
ENOTRECOVERABLE = 95 // errno.h:181:1:
|
||||
ENOTSOCK = 38 // errno.h:101:1:
|
||||
ENOTSUP = 45 // errno.h:109:1:
|
||||
ENOTTY = 25 // errno.h:78:1:
|
||||
ENXIO = 6 // errno.h:56:1:
|
||||
EOPNOTSUPP = 45 // errno.h:108:1:
|
||||
EOVERFLOW = 84 // errno.h:165:1:
|
||||
EOWNERDEAD = 96 // errno.h:182:1:
|
||||
EPERM = 1 // errno.h:51:1:
|
||||
EPFNOSUPPORT = 46 // errno.h:110:1:
|
||||
EPIPE = 32 // errno.h:87:1:
|
||||
EPROCLIM = 67 // errno.h:142:1:
|
||||
EPROCUNAVAIL = 76 // errno.h:153:1:
|
||||
EPROGMISMATCH = 75 // errno.h:152:1:
|
||||
EPROGUNAVAIL = 74 // errno.h:151:1:
|
||||
EPROTO = 92 // errno.h:176:1:
|
||||
EPROTONOSUPPORT = 43 // errno.h:106:1:
|
||||
EPROTOTYPE = 41 // errno.h:104:1:
|
||||
ERANGE = 34 // errno.h:91:1:
|
||||
EREMOTE = 71 // errno.h:148:1:
|
||||
EROFS = 30 // errno.h:85:1:
|
||||
ERPCMISMATCH = 73 // errno.h:150:1:
|
||||
ESHUTDOWN = 58 // errno.h:124:1:
|
||||
ESOCKTNOSUPPORT = 44 // errno.h:107:1:
|
||||
ESPIPE = 29 // errno.h:84:1:
|
||||
ESRCH = 3 // errno.h:53:1:
|
||||
ESTALE = 70 // errno.h:147:1:
|
||||
ETIMEDOUT = 60 // errno.h:126:1:
|
||||
ETOOMANYREFS = 59 // errno.h:125:1:
|
||||
ETXTBSY = 26 // errno.h:80:1:
|
||||
EUSERS = 68 // errno.h:143:1:
|
||||
EWOULDBLOCK = 35 // errno.h:96:1:
|
||||
EXDEV = 18 // errno.h:71:1:
|
||||
X_ERRNO_T_DEFINED = 0 // errno.h:203:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_ILP32 = 1 // <predefined>:1:1:
|
||||
X_Nonnull = 0 // cdefs.h:790:1:
|
||||
X_Null_unspecified = 0 // cdefs.h:792:1:
|
||||
X_Nullable = 0 // cdefs.h:791:1:
|
||||
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
|
||||
X_SYS_ERRNO_H_ = 0 // errno.h:41:1:
|
||||
I386 = 1 // <predefined>:335:1:
|
||||
Unix = 1 // <predefined>:336:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int32 /* <builtin>:3:26 */
|
||||
|
||||
+110
-110
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno/errno_freebsd_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_freebsd_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
@@ -15,115 +15,115 @@ var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
E2BIG = 7
|
||||
EACCES = 13
|
||||
EADDRINUSE = 48
|
||||
EADDRNOTAVAIL = 49
|
||||
EAFNOSUPPORT = 47
|
||||
EAGAIN = 35
|
||||
EALREADY = 37
|
||||
EAUTH = 80
|
||||
EBADF = 9
|
||||
EBADMSG = 89
|
||||
EBADRPC = 72
|
||||
EBUSY = 16
|
||||
ECANCELED = 85
|
||||
ECAPMODE = 94
|
||||
ECHILD = 10
|
||||
ECONNABORTED = 53
|
||||
ECONNREFUSED = 61
|
||||
ECONNRESET = 54
|
||||
EDEADLK = 11
|
||||
EDESTADDRREQ = 39
|
||||
EDOM = 33
|
||||
EDOOFUS = 88
|
||||
EDQUOT = 69
|
||||
EEXIST = 17
|
||||
EFAULT = 14
|
||||
EFBIG = 27
|
||||
EFTYPE = 79
|
||||
EHOSTDOWN = 64
|
||||
EHOSTUNREACH = 65
|
||||
EIDRM = 82
|
||||
EILSEQ = 86
|
||||
EINPROGRESS = 36
|
||||
EINTEGRITY = 97
|
||||
EINTR = 4
|
||||
EINVAL = 22
|
||||
EIO = 5
|
||||
EISCONN = 56
|
||||
EISDIR = 21
|
||||
ELAST = 97
|
||||
ELOOP = 62
|
||||
EMFILE = 24
|
||||
EMLINK = 31
|
||||
EMSGSIZE = 40
|
||||
EMULTIHOP = 90
|
||||
ENAMETOOLONG = 63
|
||||
ENEEDAUTH = 81
|
||||
ENETDOWN = 50
|
||||
ENETRESET = 52
|
||||
ENETUNREACH = 51
|
||||
ENFILE = 23
|
||||
ENOATTR = 87
|
||||
ENOBUFS = 55
|
||||
ENODEV = 19
|
||||
ENOENT = 2
|
||||
ENOEXEC = 8
|
||||
ENOLCK = 77
|
||||
ENOLINK = 91
|
||||
ENOMEM = 12
|
||||
ENOMSG = 83
|
||||
ENOPROTOOPT = 42
|
||||
ENOSPC = 28
|
||||
ENOSYS = 78
|
||||
ENOTBLK = 15
|
||||
ENOTCAPABLE = 93
|
||||
ENOTCONN = 57
|
||||
ENOTDIR = 20
|
||||
ENOTEMPTY = 66
|
||||
ENOTRECOVERABLE = 95
|
||||
ENOTSOCK = 38
|
||||
ENOTSUP = 45
|
||||
ENOTTY = 25
|
||||
ENXIO = 6
|
||||
EOPNOTSUPP = 45
|
||||
EOVERFLOW = 84
|
||||
EOWNERDEAD = 96
|
||||
EPERM = 1
|
||||
EPFNOSUPPORT = 46
|
||||
EPIPE = 32
|
||||
EPROCLIM = 67
|
||||
EPROCUNAVAIL = 76
|
||||
EPROGMISMATCH = 75
|
||||
EPROGUNAVAIL = 74
|
||||
EPROTO = 92
|
||||
EPROTONOSUPPORT = 43
|
||||
EPROTOTYPE = 41
|
||||
ERANGE = 34
|
||||
EREMOTE = 71
|
||||
EROFS = 30
|
||||
ERPCMISMATCH = 73
|
||||
ESHUTDOWN = 58
|
||||
ESOCKTNOSUPPORT = 44
|
||||
ESPIPE = 29
|
||||
ESRCH = 3
|
||||
ESTALE = 70
|
||||
ETIMEDOUT = 60
|
||||
ETOOMANYREFS = 59
|
||||
ETXTBSY = 26
|
||||
EUSERS = 68
|
||||
EWOULDBLOCK = 35
|
||||
EXDEV = 18
|
||||
X_ERRNO_T_DEFINED = 0
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_LP64 = 1
|
||||
X_Nonnull = 0
|
||||
X_Null_unspecified = 0
|
||||
X_Nullable = 0
|
||||
X_SYS_CDEFS_H_ = 0
|
||||
X_SYS_ERRNO_H_ = 0
|
||||
Unix = 1
|
||||
E2BIG = 7 // errno.h:57:1:
|
||||
EACCES = 13 // errno.h:64:1:
|
||||
EADDRINUSE = 48 // errno.h:112:1:
|
||||
EADDRNOTAVAIL = 49 // errno.h:113:1:
|
||||
EAFNOSUPPORT = 47 // errno.h:111:1:
|
||||
EAGAIN = 35 // errno.h:94:1:
|
||||
EALREADY = 37 // errno.h:98:1:
|
||||
EAUTH = 80 // errno.h:161:1:
|
||||
EBADF = 9 // errno.h:59:1:
|
||||
EBADMSG = 89 // errno.h:173:1:
|
||||
EBADRPC = 72 // errno.h:149:1:
|
||||
EBUSY = 16 // errno.h:69:1:
|
||||
ECANCELED = 85 // errno.h:166:1:
|
||||
ECAPMODE = 94 // errno.h:180:1:
|
||||
ECHILD = 10 // errno.h:60:1:
|
||||
ECONNABORTED = 53 // errno.h:119:1:
|
||||
ECONNREFUSED = 61 // errno.h:127:1:
|
||||
ECONNRESET = 54 // errno.h:120:1:
|
||||
EDEADLK = 11 // errno.h:61:1:
|
||||
EDESTADDRREQ = 39 // errno.h:102:1:
|
||||
EDOM = 33 // errno.h:90:1:
|
||||
EDOOFUS = 88 // errno.h:170:1:
|
||||
EDQUOT = 69 // errno.h:144:1:
|
||||
EEXIST = 17 // errno.h:70:1:
|
||||
EFAULT = 14 // errno.h:65:1:
|
||||
EFBIG = 27 // errno.h:82:1:
|
||||
EFTYPE = 79 // errno.h:160:1:
|
||||
EHOSTDOWN = 64 // errno.h:135:1:
|
||||
EHOSTUNREACH = 65 // errno.h:136:1:
|
||||
EIDRM = 82 // errno.h:163:1:
|
||||
EILSEQ = 86 // errno.h:167:1:
|
||||
EINPROGRESS = 36 // errno.h:97:1:
|
||||
EINTEGRITY = 97 // errno.h:183:1:
|
||||
EINTR = 4 // errno.h:54:1:
|
||||
EINVAL = 22 // errno.h:75:1:
|
||||
EIO = 5 // errno.h:55:1:
|
||||
EISCONN = 56 // errno.h:122:1:
|
||||
EISDIR = 21 // errno.h:74:1:
|
||||
ELAST = 97 // errno.h:187:1:
|
||||
ELOOP = 62 // errno.h:129:1:
|
||||
EMFILE = 24 // errno.h:77:1:
|
||||
EMLINK = 31 // errno.h:86:1:
|
||||
EMSGSIZE = 40 // errno.h:103:1:
|
||||
EMULTIHOP = 90 // errno.h:174:1:
|
||||
ENAMETOOLONG = 63 // errno.h:131:1:
|
||||
ENEEDAUTH = 81 // errno.h:162:1:
|
||||
ENETDOWN = 50 // errno.h:116:1:
|
||||
ENETRESET = 52 // errno.h:118:1:
|
||||
ENETUNREACH = 51 // errno.h:117:1:
|
||||
ENFILE = 23 // errno.h:76:1:
|
||||
ENOATTR = 87 // errno.h:168:1:
|
||||
ENOBUFS = 55 // errno.h:121:1:
|
||||
ENODEV = 19 // errno.h:72:1:
|
||||
ENOENT = 2 // errno.h:52:1:
|
||||
ENOEXEC = 8 // errno.h:58:1:
|
||||
ENOLCK = 77 // errno.h:156:1:
|
||||
ENOLINK = 91 // errno.h:175:1:
|
||||
ENOMEM = 12 // errno.h:63:1:
|
||||
ENOMSG = 83 // errno.h:164:1:
|
||||
ENOPROTOOPT = 42 // errno.h:105:1:
|
||||
ENOSPC = 28 // errno.h:83:1:
|
||||
ENOSYS = 78 // errno.h:157:1:
|
||||
ENOTBLK = 15 // errno.h:67:1:
|
||||
ENOTCAPABLE = 93 // errno.h:179:1:
|
||||
ENOTCONN = 57 // errno.h:123:1:
|
||||
ENOTDIR = 20 // errno.h:73:1:
|
||||
ENOTEMPTY = 66 // errno.h:138:1:
|
||||
ENOTRECOVERABLE = 95 // errno.h:181:1:
|
||||
ENOTSOCK = 38 // errno.h:101:1:
|
||||
ENOTSUP = 45 // errno.h:109:1:
|
||||
ENOTTY = 25 // errno.h:78:1:
|
||||
ENXIO = 6 // errno.h:56:1:
|
||||
EOPNOTSUPP = 45 // errno.h:108:1:
|
||||
EOVERFLOW = 84 // errno.h:165:1:
|
||||
EOWNERDEAD = 96 // errno.h:182:1:
|
||||
EPERM = 1 // errno.h:51:1:
|
||||
EPFNOSUPPORT = 46 // errno.h:110:1:
|
||||
EPIPE = 32 // errno.h:87:1:
|
||||
EPROCLIM = 67 // errno.h:142:1:
|
||||
EPROCUNAVAIL = 76 // errno.h:153:1:
|
||||
EPROGMISMATCH = 75 // errno.h:152:1:
|
||||
EPROGUNAVAIL = 74 // errno.h:151:1:
|
||||
EPROTO = 92 // errno.h:176:1:
|
||||
EPROTONOSUPPORT = 43 // errno.h:106:1:
|
||||
EPROTOTYPE = 41 // errno.h:104:1:
|
||||
ERANGE = 34 // errno.h:91:1:
|
||||
EREMOTE = 71 // errno.h:148:1:
|
||||
EROFS = 30 // errno.h:85:1:
|
||||
ERPCMISMATCH = 73 // errno.h:150:1:
|
||||
ESHUTDOWN = 58 // errno.h:124:1:
|
||||
ESOCKTNOSUPPORT = 44 // errno.h:107:1:
|
||||
ESPIPE = 29 // errno.h:84:1:
|
||||
ESRCH = 3 // errno.h:53:1:
|
||||
ESTALE = 70 // errno.h:147:1:
|
||||
ETIMEDOUT = 60 // errno.h:126:1:
|
||||
ETOOMANYREFS = 59 // errno.h:125:1:
|
||||
ETXTBSY = 26 // errno.h:80:1:
|
||||
EUSERS = 68 // errno.h:143:1:
|
||||
EWOULDBLOCK = 35 // errno.h:96:1:
|
||||
EXDEV = 18 // errno.h:71:1:
|
||||
X_ERRNO_T_DEFINED = 0 // errno.h:203:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_LP64 = 1 // <predefined>:1:1:
|
||||
X_Nonnull = 0 // cdefs.h:783:1:
|
||||
X_Null_unspecified = 0 // cdefs.h:785:1:
|
||||
X_Nullable = 0 // cdefs.h:784:1:
|
||||
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
|
||||
X_SYS_ERRNO_H_ = 0 // errno.h:41:1:
|
||||
Unix = 1 // <predefined>:337:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
|
||||
+157
@@ -0,0 +1,157 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_freebsd_arm.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
import (
|
||||
"math"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ = math.Pi
|
||||
var _ reflect.Kind
|
||||
var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
E2BIG = 7 // errno.h:57:1:
|
||||
EACCES = 13 // errno.h:64:1:
|
||||
EADDRINUSE = 48 // errno.h:112:1:
|
||||
EADDRNOTAVAIL = 49 // errno.h:113:1:
|
||||
EAFNOSUPPORT = 47 // errno.h:111:1:
|
||||
EAGAIN = 35 // errno.h:94:1:
|
||||
EALREADY = 37 // errno.h:98:1:
|
||||
EAUTH = 80 // errno.h:161:1:
|
||||
EBADF = 9 // errno.h:59:1:
|
||||
EBADMSG = 89 // errno.h:173:1:
|
||||
EBADRPC = 72 // errno.h:149:1:
|
||||
EBUSY = 16 // errno.h:69:1:
|
||||
ECANCELED = 85 // errno.h:166:1:
|
||||
ECAPMODE = 94 // errno.h:180:1:
|
||||
ECHILD = 10 // errno.h:60:1:
|
||||
ECONNABORTED = 53 // errno.h:119:1:
|
||||
ECONNREFUSED = 61 // errno.h:127:1:
|
||||
ECONNRESET = 54 // errno.h:120:1:
|
||||
EDEADLK = 11 // errno.h:61:1:
|
||||
EDESTADDRREQ = 39 // errno.h:102:1:
|
||||
EDOM = 33 // errno.h:90:1:
|
||||
EDOOFUS = 88 // errno.h:170:1:
|
||||
EDQUOT = 69 // errno.h:144:1:
|
||||
EEXIST = 17 // errno.h:70:1:
|
||||
EFAULT = 14 // errno.h:65:1:
|
||||
EFBIG = 27 // errno.h:82:1:
|
||||
EFTYPE = 79 // errno.h:160:1:
|
||||
EHOSTDOWN = 64 // errno.h:135:1:
|
||||
EHOSTUNREACH = 65 // errno.h:136:1:
|
||||
EIDRM = 82 // errno.h:163:1:
|
||||
EILSEQ = 86 // errno.h:167:1:
|
||||
EINPROGRESS = 36 // errno.h:97:1:
|
||||
EINTEGRITY = 97 // errno.h:183:1:
|
||||
EINTR = 4 // errno.h:54:1:
|
||||
EINVAL = 22 // errno.h:75:1:
|
||||
EIO = 5 // errno.h:55:1:
|
||||
EISCONN = 56 // errno.h:122:1:
|
||||
EISDIR = 21 // errno.h:74:1:
|
||||
ELAST = 97 // errno.h:187:1:
|
||||
ELOOP = 62 // errno.h:129:1:
|
||||
EMFILE = 24 // errno.h:77:1:
|
||||
EMLINK = 31 // errno.h:86:1:
|
||||
EMSGSIZE = 40 // errno.h:103:1:
|
||||
EMULTIHOP = 90 // errno.h:174:1:
|
||||
ENAMETOOLONG = 63 // errno.h:131:1:
|
||||
ENEEDAUTH = 81 // errno.h:162:1:
|
||||
ENETDOWN = 50 // errno.h:116:1:
|
||||
ENETRESET = 52 // errno.h:118:1:
|
||||
ENETUNREACH = 51 // errno.h:117:1:
|
||||
ENFILE = 23 // errno.h:76:1:
|
||||
ENOATTR = 87 // errno.h:168:1:
|
||||
ENOBUFS = 55 // errno.h:121:1:
|
||||
ENODEV = 19 // errno.h:72:1:
|
||||
ENOENT = 2 // errno.h:52:1:
|
||||
ENOEXEC = 8 // errno.h:58:1:
|
||||
ENOLCK = 77 // errno.h:156:1:
|
||||
ENOLINK = 91 // errno.h:175:1:
|
||||
ENOMEM = 12 // errno.h:63:1:
|
||||
ENOMSG = 83 // errno.h:164:1:
|
||||
ENOPROTOOPT = 42 // errno.h:105:1:
|
||||
ENOSPC = 28 // errno.h:83:1:
|
||||
ENOSYS = 78 // errno.h:157:1:
|
||||
ENOTBLK = 15 // errno.h:67:1:
|
||||
ENOTCAPABLE = 93 // errno.h:179:1:
|
||||
ENOTCONN = 57 // errno.h:123:1:
|
||||
ENOTDIR = 20 // errno.h:73:1:
|
||||
ENOTEMPTY = 66 // errno.h:138:1:
|
||||
ENOTRECOVERABLE = 95 // errno.h:181:1:
|
||||
ENOTSOCK = 38 // errno.h:101:1:
|
||||
ENOTSUP = 45 // errno.h:109:1:
|
||||
ENOTTY = 25 // errno.h:78:1:
|
||||
ENXIO = 6 // errno.h:56:1:
|
||||
EOPNOTSUPP = 45 // errno.h:108:1:
|
||||
EOVERFLOW = 84 // errno.h:165:1:
|
||||
EOWNERDEAD = 96 // errno.h:182:1:
|
||||
EPERM = 1 // errno.h:51:1:
|
||||
EPFNOSUPPORT = 46 // errno.h:110:1:
|
||||
EPIPE = 32 // errno.h:87:1:
|
||||
EPROCLIM = 67 // errno.h:142:1:
|
||||
EPROCUNAVAIL = 76 // errno.h:153:1:
|
||||
EPROGMISMATCH = 75 // errno.h:152:1:
|
||||
EPROGUNAVAIL = 74 // errno.h:151:1:
|
||||
EPROTO = 92 // errno.h:176:1:
|
||||
EPROTONOSUPPORT = 43 // errno.h:106:1:
|
||||
EPROTOTYPE = 41 // errno.h:104:1:
|
||||
ERANGE = 34 // errno.h:91:1:
|
||||
EREMOTE = 71 // errno.h:148:1:
|
||||
EROFS = 30 // errno.h:85:1:
|
||||
ERPCMISMATCH = 73 // errno.h:150:1:
|
||||
ESHUTDOWN = 58 // errno.h:124:1:
|
||||
ESOCKTNOSUPPORT = 44 // errno.h:107:1:
|
||||
ESPIPE = 29 // errno.h:84:1:
|
||||
ESRCH = 3 // errno.h:53:1:
|
||||
ESTALE = 70 // errno.h:147:1:
|
||||
ETIMEDOUT = 60 // errno.h:126:1:
|
||||
ETOOMANYREFS = 59 // errno.h:125:1:
|
||||
ETXTBSY = 26 // errno.h:80:1:
|
||||
EUSERS = 68 // errno.h:143:1:
|
||||
EWOULDBLOCK = 35 // errno.h:96:1:
|
||||
EXDEV = 18 // errno.h:71:1:
|
||||
X_ERRNO_T_DEFINED = 0 // errno.h:203:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_ILP32 = 1 // <predefined>:1:1:
|
||||
X_Nonnull = 0 // cdefs.h:790:1:
|
||||
X_Null_unspecified = 0 // cdefs.h:792:1:
|
||||
X_Nullable = 0 // cdefs.h:791:1:
|
||||
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
|
||||
X_SYS_ERRNO_H_ = 0 // errno.h:41: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 */
|
||||
|
||||
// 11 was EAGAIN
|
||||
|
||||
// math software
|
||||
|
||||
// non-blocking and interrupt i/o
|
||||
|
||||
// ipc/network software -- argument errors
|
||||
|
||||
// ipc/network software -- operational errors
|
||||
|
||||
// should be rearranged
|
||||
|
||||
// quotas & mush
|
||||
|
||||
// Network File System
|
||||
|
||||
// ISO/IEC 9899:2011 K.3.2.2
|
||||
type Errno_t = int32 /* errno.h:204:13 */
|
||||
|
||||
var _ uint8 /* gen.c:2:13: */
|
||||
+166
@@ -0,0 +1,166 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_freebsd_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
import (
|
||||
"math"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ = math.Pi
|
||||
var _ reflect.Kind
|
||||
var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
E2BIG = 7 // errno.h:57:1:
|
||||
EACCES = 13 // errno.h:64:1:
|
||||
EADDRINUSE = 48 // errno.h:112:1:
|
||||
EADDRNOTAVAIL = 49 // errno.h:113:1:
|
||||
EAFNOSUPPORT = 47 // errno.h:111:1:
|
||||
EAGAIN = 35 // errno.h:94:1:
|
||||
EALREADY = 37 // errno.h:98:1:
|
||||
EAUTH = 80 // errno.h:161:1:
|
||||
EBADF = 9 // errno.h:59:1:
|
||||
EBADMSG = 89 // errno.h:173:1:
|
||||
EBADRPC = 72 // errno.h:149:1:
|
||||
EBUSY = 16 // errno.h:69:1:
|
||||
ECANCELED = 85 // errno.h:166:1:
|
||||
ECAPMODE = 94 // errno.h:180:1:
|
||||
ECHILD = 10 // errno.h:60:1:
|
||||
ECONNABORTED = 53 // errno.h:119:1:
|
||||
ECONNREFUSED = 61 // errno.h:127:1:
|
||||
ECONNRESET = 54 // errno.h:120:1:
|
||||
EDEADLK = 11 // errno.h:61:1:
|
||||
EDESTADDRREQ = 39 // errno.h:102:1:
|
||||
EDOM = 33 // errno.h:90:1:
|
||||
EDOOFUS = 88 // errno.h:170:1:
|
||||
EDQUOT = 69 // errno.h:144:1:
|
||||
EEXIST = 17 // errno.h:70:1:
|
||||
EFAULT = 14 // errno.h:65:1:
|
||||
EFBIG = 27 // errno.h:82:1:
|
||||
EFTYPE = 79 // errno.h:160:1:
|
||||
EHOSTDOWN = 64 // errno.h:135:1:
|
||||
EHOSTUNREACH = 65 // errno.h:136:1:
|
||||
EIDRM = 82 // errno.h:163:1:
|
||||
EILSEQ = 86 // errno.h:167:1:
|
||||
EINPROGRESS = 36 // errno.h:97:1:
|
||||
EINTEGRITY = 97 // errno.h:183:1:
|
||||
EINTR = 4 // errno.h:54:1:
|
||||
EINVAL = 22 // errno.h:75:1:
|
||||
EIO = 5 // errno.h:55:1:
|
||||
EISCONN = 56 // errno.h:122:1:
|
||||
EISDIR = 21 // errno.h:74:1:
|
||||
ELAST = 97 // errno.h:187:1:
|
||||
ELOOP = 62 // errno.h:129:1:
|
||||
EMFILE = 24 // errno.h:77:1:
|
||||
EMLINK = 31 // errno.h:86:1:
|
||||
EMSGSIZE = 40 // errno.h:103:1:
|
||||
EMULTIHOP = 90 // errno.h:174:1:
|
||||
ENAMETOOLONG = 63 // errno.h:131:1:
|
||||
ENEEDAUTH = 81 // errno.h:162:1:
|
||||
ENETDOWN = 50 // errno.h:116:1:
|
||||
ENETRESET = 52 // errno.h:118:1:
|
||||
ENETUNREACH = 51 // errno.h:117:1:
|
||||
ENFILE = 23 // errno.h:76:1:
|
||||
ENOATTR = 87 // errno.h:168:1:
|
||||
ENOBUFS = 55 // errno.h:121:1:
|
||||
ENODEV = 19 // errno.h:72:1:
|
||||
ENOENT = 2 // errno.h:52:1:
|
||||
ENOEXEC = 8 // errno.h:58:1:
|
||||
ENOLCK = 77 // errno.h:156:1:
|
||||
ENOLINK = 91 // errno.h:175:1:
|
||||
ENOMEM = 12 // errno.h:63:1:
|
||||
ENOMSG = 83 // errno.h:164:1:
|
||||
ENOPROTOOPT = 42 // errno.h:105:1:
|
||||
ENOSPC = 28 // errno.h:83:1:
|
||||
ENOSYS = 78 // errno.h:157:1:
|
||||
ENOTBLK = 15 // errno.h:67:1:
|
||||
ENOTCAPABLE = 93 // errno.h:179:1:
|
||||
ENOTCONN = 57 // errno.h:123:1:
|
||||
ENOTDIR = 20 // errno.h:73:1:
|
||||
ENOTEMPTY = 66 // errno.h:138:1:
|
||||
ENOTRECOVERABLE = 95 // errno.h:181:1:
|
||||
ENOTSOCK = 38 // errno.h:101:1:
|
||||
ENOTSUP = 45 // errno.h:109:1:
|
||||
ENOTTY = 25 // errno.h:78:1:
|
||||
ENXIO = 6 // errno.h:56:1:
|
||||
EOPNOTSUPP = 45 // errno.h:108:1:
|
||||
EOVERFLOW = 84 // errno.h:165:1:
|
||||
EOWNERDEAD = 96 // errno.h:182:1:
|
||||
EPERM = 1 // errno.h:51:1:
|
||||
EPFNOSUPPORT = 46 // errno.h:110:1:
|
||||
EPIPE = 32 // errno.h:87:1:
|
||||
EPROCLIM = 67 // errno.h:142:1:
|
||||
EPROCUNAVAIL = 76 // errno.h:153:1:
|
||||
EPROGMISMATCH = 75 // errno.h:152:1:
|
||||
EPROGUNAVAIL = 74 // errno.h:151:1:
|
||||
EPROTO = 92 // errno.h:176:1:
|
||||
EPROTONOSUPPORT = 43 // errno.h:106:1:
|
||||
EPROTOTYPE = 41 // errno.h:104:1:
|
||||
ERANGE = 34 // errno.h:91:1:
|
||||
EREMOTE = 71 // errno.h:148:1:
|
||||
EROFS = 30 // errno.h:85:1:
|
||||
ERPCMISMATCH = 73 // errno.h:150:1:
|
||||
ESHUTDOWN = 58 // errno.h:124:1:
|
||||
ESOCKTNOSUPPORT = 44 // errno.h:107:1:
|
||||
ESPIPE = 29 // errno.h:84:1:
|
||||
ESRCH = 3 // errno.h:53:1:
|
||||
ESTALE = 70 // errno.h:147:1:
|
||||
ETIMEDOUT = 60 // errno.h:126:1:
|
||||
ETOOMANYREFS = 59 // errno.h:125:1:
|
||||
ETXTBSY = 26 // errno.h:80:1:
|
||||
EUSERS = 68 // errno.h:143:1:
|
||||
EWOULDBLOCK = 35 // errno.h:96:1:
|
||||
EXDEV = 18 // errno.h:71:1:
|
||||
X_ERRNO_T_DEFINED = 0 // errno.h:203:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_LP64 = 1 // <predefined>:1:1:
|
||||
X_Nonnull = 0 // cdefs.h:783:1:
|
||||
X_Null_unspecified = 0 // cdefs.h:785:1:
|
||||
X_Nullable = 0 // cdefs.h:784:1:
|
||||
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
|
||||
X_SYS_ERRNO_H_ = 0 // errno.h:41:1:
|
||||
Unix = 1 // <predefined>:337: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 */
|
||||
|
||||
// 11 was EAGAIN
|
||||
|
||||
// math software
|
||||
|
||||
// non-blocking and interrupt i/o
|
||||
|
||||
// ipc/network software -- argument errors
|
||||
|
||||
// ipc/network software -- operational errors
|
||||
|
||||
// should be rearranged
|
||||
|
||||
// quotas & mush
|
||||
|
||||
// Network File System
|
||||
|
||||
// ISO/IEC 9899:2011 K.3.2.2
|
||||
type Errno_t = int32 /* errno.h:204:13 */
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
||||
+150
-150
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno/errno_linux_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_linux_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
@@ -15,155 +15,155 @@ var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
E2BIG = 7
|
||||
EACCES = 13
|
||||
EADDRINUSE = 98
|
||||
EADDRNOTAVAIL = 99
|
||||
EADV = 68
|
||||
EAFNOSUPPORT = 97
|
||||
EAGAIN = 11
|
||||
EALREADY = 114
|
||||
EBADE = 52
|
||||
EBADF = 9
|
||||
EBADFD = 77
|
||||
EBADMSG = 74
|
||||
EBADR = 53
|
||||
EBADRQC = 56
|
||||
EBADSLT = 57
|
||||
EBFONT = 59
|
||||
EBUSY = 16
|
||||
ECANCELED = 125
|
||||
ECHILD = 10
|
||||
ECHRNG = 44
|
||||
ECOMM = 70
|
||||
ECONNABORTED = 103
|
||||
ECONNREFUSED = 111
|
||||
ECONNRESET = 104
|
||||
EDEADLK = 35
|
||||
EDEADLOCK = 35
|
||||
EDESTADDRREQ = 89
|
||||
EDOM = 33
|
||||
EDOTDOT = 73
|
||||
EDQUOT = 122
|
||||
EEXIST = 17
|
||||
EFAULT = 14
|
||||
EFBIG = 27
|
||||
EHOSTDOWN = 112
|
||||
EHOSTUNREACH = 113
|
||||
EHWPOISON = 133
|
||||
EIDRM = 43
|
||||
EILSEQ = 84
|
||||
EINPROGRESS = 115
|
||||
EINTR = 4
|
||||
EINVAL = 22
|
||||
EIO = 5
|
||||
EISCONN = 106
|
||||
EISDIR = 21
|
||||
EISNAM = 120
|
||||
EKEYEXPIRED = 127
|
||||
EKEYREJECTED = 129
|
||||
EKEYREVOKED = 128
|
||||
EL2HLT = 51
|
||||
EL2NSYNC = 45
|
||||
EL3HLT = 46
|
||||
EL3RST = 47
|
||||
ELIBACC = 79
|
||||
ELIBBAD = 80
|
||||
ELIBEXEC = 83
|
||||
ELIBMAX = 82
|
||||
ELIBSCN = 81
|
||||
ELNRNG = 48
|
||||
ELOOP = 40
|
||||
EMEDIUMTYPE = 124
|
||||
EMFILE = 24
|
||||
EMLINK = 31
|
||||
EMSGSIZE = 90
|
||||
EMULTIHOP = 72
|
||||
ENAMETOOLONG = 36
|
||||
ENAVAIL = 119
|
||||
ENETDOWN = 100
|
||||
ENETRESET = 102
|
||||
ENETUNREACH = 101
|
||||
ENFILE = 23
|
||||
ENOANO = 55
|
||||
ENOBUFS = 105
|
||||
ENOCSI = 50
|
||||
ENODATA = 61
|
||||
ENODEV = 19
|
||||
ENOENT = 2
|
||||
ENOEXEC = 8
|
||||
ENOKEY = 126
|
||||
ENOLCK = 37
|
||||
ENOLINK = 67
|
||||
ENOMEDIUM = 123
|
||||
ENOMEM = 12
|
||||
ENOMSG = 42
|
||||
ENONET = 64
|
||||
ENOPKG = 65
|
||||
ENOPROTOOPT = 92
|
||||
ENOSPC = 28
|
||||
ENOSR = 63
|
||||
ENOSTR = 60
|
||||
ENOSYS = 38
|
||||
ENOTBLK = 15
|
||||
ENOTCONN = 107
|
||||
ENOTDIR = 20
|
||||
ENOTEMPTY = 39
|
||||
ENOTNAM = 118
|
||||
ENOTRECOVERABLE = 131
|
||||
ENOTSOCK = 88
|
||||
ENOTSUP = 95
|
||||
ENOTTY = 25
|
||||
ENOTUNIQ = 76
|
||||
ENXIO = 6
|
||||
EOPNOTSUPP = 95
|
||||
EOVERFLOW = 75
|
||||
EOWNERDEAD = 130
|
||||
EPERM = 1
|
||||
EPFNOSUPPORT = 96
|
||||
EPIPE = 32
|
||||
EPROTO = 71
|
||||
EPROTONOSUPPORT = 93
|
||||
EPROTOTYPE = 91
|
||||
ERANGE = 34
|
||||
EREMCHG = 78
|
||||
EREMOTE = 66
|
||||
EREMOTEIO = 121
|
||||
ERESTART = 85
|
||||
ERFKILL = 132
|
||||
EROFS = 30
|
||||
ESHUTDOWN = 108
|
||||
ESOCKTNOSUPPORT = 94
|
||||
ESPIPE = 29
|
||||
ESRCH = 3
|
||||
ESRMNT = 69
|
||||
ESTALE = 116
|
||||
ESTRPIPE = 86
|
||||
ETIME = 62
|
||||
ETIMEDOUT = 110
|
||||
ETOOMANYREFS = 109
|
||||
ETXTBSY = 26
|
||||
EUCLEAN = 117
|
||||
EUNATCH = 49
|
||||
EUSERS = 87
|
||||
EWOULDBLOCK = 11
|
||||
EXDEV = 18
|
||||
EXFULL = 54
|
||||
X_ASM_GENERIC_ERRNO_BASE_H = 0
|
||||
X_ASM_GENERIC_ERRNO_H = 0
|
||||
X_ATFILE_SOURCE = 1
|
||||
X_BITS_ERRNO_H = 1
|
||||
X_DEFAULT_SOURCE = 1
|
||||
X_ERRNO_H = 1
|
||||
X_FEATURES_H = 1
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_LP64 = 1
|
||||
X_POSIX_C_SOURCE = 200809
|
||||
X_POSIX_SOURCE = 1
|
||||
X_STDC_PREDEF_H = 1
|
||||
X_SYS_CDEFS_H = 1
|
||||
Linux = 1
|
||||
Unix = 1
|
||||
E2BIG = 7 // errno-base.h:11:1:
|
||||
EACCES = 13 // errno-base.h:17:1:
|
||||
EADDRINUSE = 98 // errno.h:81:1:
|
||||
EADDRNOTAVAIL = 99 // errno.h:82:1:
|
||||
EADV = 68 // errno.h:51:1:
|
||||
EAFNOSUPPORT = 97 // errno.h:80:1:
|
||||
EAGAIN = 11 // errno-base.h:15:1:
|
||||
EALREADY = 114 // errno.h:97:1:
|
||||
EBADE = 52 // errno.h:33:1:
|
||||
EBADF = 9 // errno-base.h:13:1:
|
||||
EBADFD = 77 // errno.h:60:1:
|
||||
EBADMSG = 74 // errno.h:57:1:
|
||||
EBADR = 53 // errno.h:34:1:
|
||||
EBADRQC = 56 // errno.h:37:1:
|
||||
EBADSLT = 57 // errno.h:38:1:
|
||||
EBFONT = 59 // errno.h:42:1:
|
||||
EBUSY = 16 // errno-base.h:20:1:
|
||||
ECANCELED = 125 // errno.h:109:1:
|
||||
ECHILD = 10 // errno-base.h:14:1:
|
||||
ECHRNG = 44 // errno.h:25:1:
|
||||
ECOMM = 70 // errno.h:53:1:
|
||||
ECONNABORTED = 103 // errno.h:86:1:
|
||||
ECONNREFUSED = 111 // errno.h:94:1:
|
||||
ECONNRESET = 104 // errno.h:87:1:
|
||||
EDEADLK = 35 // errno.h:7:1:
|
||||
EDEADLOCK = 35 // errno.h:40:1:
|
||||
EDESTADDRREQ = 89 // errno.h:72:1:
|
||||
EDOM = 33 // errno-base.h:37:1:
|
||||
EDOTDOT = 73 // errno.h:56:1:
|
||||
EDQUOT = 122 // errno.h:105:1:
|
||||
EEXIST = 17 // errno-base.h:21:1:
|
||||
EFAULT = 14 // errno-base.h:18:1:
|
||||
EFBIG = 27 // errno-base.h:31:1:
|
||||
EHOSTDOWN = 112 // errno.h:95:1:
|
||||
EHOSTUNREACH = 113 // errno.h:96:1:
|
||||
EHWPOISON = 133 // errno.h:121:1:
|
||||
EIDRM = 43 // errno.h:24:1:
|
||||
EILSEQ = 84 // errno.h:67:1:
|
||||
EINPROGRESS = 115 // errno.h:98:1:
|
||||
EINTR = 4 // errno-base.h:8:1:
|
||||
EINVAL = 22 // errno-base.h:26:1:
|
||||
EIO = 5 // errno-base.h:9:1:
|
||||
EISCONN = 106 // errno.h:89:1:
|
||||
EISDIR = 21 // errno-base.h:25:1:
|
||||
EISNAM = 120 // errno.h:103:1:
|
||||
EKEYEXPIRED = 127 // errno.h:111:1:
|
||||
EKEYREJECTED = 129 // errno.h:113:1:
|
||||
EKEYREVOKED = 128 // errno.h:112:1:
|
||||
EL2HLT = 51 // errno.h:32:1:
|
||||
EL2NSYNC = 45 // errno.h:26:1:
|
||||
EL3HLT = 46 // errno.h:27:1:
|
||||
EL3RST = 47 // errno.h:28:1:
|
||||
ELIBACC = 79 // errno.h:62:1:
|
||||
ELIBBAD = 80 // errno.h:63:1:
|
||||
ELIBEXEC = 83 // errno.h:66:1:
|
||||
ELIBMAX = 82 // errno.h:65:1:
|
||||
ELIBSCN = 81 // errno.h:64:1:
|
||||
ELNRNG = 48 // errno.h:29:1:
|
||||
ELOOP = 40 // errno.h:21:1:
|
||||
EMEDIUMTYPE = 124 // errno.h:108:1:
|
||||
EMFILE = 24 // errno-base.h:28:1:
|
||||
EMLINK = 31 // errno-base.h:35:1:
|
||||
EMSGSIZE = 90 // errno.h:73:1:
|
||||
EMULTIHOP = 72 // errno.h:55:1:
|
||||
ENAMETOOLONG = 36 // errno.h:8:1:
|
||||
ENAVAIL = 119 // errno.h:102:1:
|
||||
ENETDOWN = 100 // errno.h:83:1:
|
||||
ENETRESET = 102 // errno.h:85:1:
|
||||
ENETUNREACH = 101 // errno.h:84:1:
|
||||
ENFILE = 23 // errno-base.h:27:1:
|
||||
ENOANO = 55 // errno.h:36:1:
|
||||
ENOBUFS = 105 // errno.h:88:1:
|
||||
ENOCSI = 50 // errno.h:31:1:
|
||||
ENODATA = 61 // errno.h:44:1:
|
||||
ENODEV = 19 // errno-base.h:23:1:
|
||||
ENOENT = 2 // errno-base.h:6:1:
|
||||
ENOEXEC = 8 // errno-base.h:12:1:
|
||||
ENOKEY = 126 // errno.h:110:1:
|
||||
ENOLCK = 37 // errno.h:9:1:
|
||||
ENOLINK = 67 // errno.h:50:1:
|
||||
ENOMEDIUM = 123 // errno.h:107:1:
|
||||
ENOMEM = 12 // errno-base.h:16:1:
|
||||
ENOMSG = 42 // errno.h:23:1:
|
||||
ENONET = 64 // errno.h:47:1:
|
||||
ENOPKG = 65 // errno.h:48:1:
|
||||
ENOPROTOOPT = 92 // errno.h:75:1:
|
||||
ENOSPC = 28 // errno-base.h:32:1:
|
||||
ENOSR = 63 // errno.h:46:1:
|
||||
ENOSTR = 60 // errno.h:43:1:
|
||||
ENOSYS = 38 // errno.h:18:1:
|
||||
ENOTBLK = 15 // errno-base.h:19:1:
|
||||
ENOTCONN = 107 // errno.h:90:1:
|
||||
ENOTDIR = 20 // errno-base.h:24:1:
|
||||
ENOTEMPTY = 39 // errno.h:20:1:
|
||||
ENOTNAM = 118 // errno.h:101:1:
|
||||
ENOTRECOVERABLE = 131 // errno.h:117:1:
|
||||
ENOTSOCK = 88 // errno.h:71:1:
|
||||
ENOTSUP = 95 // errno.h:30:1:
|
||||
ENOTTY = 25 // errno-base.h:29:1:
|
||||
ENOTUNIQ = 76 // errno.h:59:1:
|
||||
ENXIO = 6 // errno-base.h:10:1:
|
||||
EOPNOTSUPP = 95 // errno.h:78:1:
|
||||
EOVERFLOW = 75 // errno.h:58:1:
|
||||
EOWNERDEAD = 130 // errno.h:116:1:
|
||||
EPERM = 1 // errno-base.h:5:1:
|
||||
EPFNOSUPPORT = 96 // errno.h:79:1:
|
||||
EPIPE = 32 // errno-base.h:36:1:
|
||||
EPROTO = 71 // errno.h:54:1:
|
||||
EPROTONOSUPPORT = 93 // errno.h:76:1:
|
||||
EPROTOTYPE = 91 // errno.h:74:1:
|
||||
ERANGE = 34 // errno-base.h:38:1:
|
||||
EREMCHG = 78 // errno.h:61:1:
|
||||
EREMOTE = 66 // errno.h:49:1:
|
||||
EREMOTEIO = 121 // errno.h:104:1:
|
||||
ERESTART = 85 // errno.h:68:1:
|
||||
ERFKILL = 132 // errno.h:119:1:
|
||||
EROFS = 30 // errno-base.h:34:1:
|
||||
ESHUTDOWN = 108 // errno.h:91:1:
|
||||
ESOCKTNOSUPPORT = 94 // errno.h:77:1:
|
||||
ESPIPE = 29 // errno-base.h:33:1:
|
||||
ESRCH = 3 // errno-base.h:7:1:
|
||||
ESRMNT = 69 // errno.h:52:1:
|
||||
ESTALE = 116 // errno.h:99:1:
|
||||
ESTRPIPE = 86 // errno.h:69:1:
|
||||
ETIME = 62 // errno.h:45:1:
|
||||
ETIMEDOUT = 110 // errno.h:93:1:
|
||||
ETOOMANYREFS = 109 // errno.h:92:1:
|
||||
ETXTBSY = 26 // errno-base.h:30:1:
|
||||
EUCLEAN = 117 // errno.h:100:1:
|
||||
EUNATCH = 49 // errno.h:30:1:
|
||||
EUSERS = 87 // errno.h:70:1:
|
||||
EWOULDBLOCK = 11 // errno.h:22:1:
|
||||
EXDEV = 18 // errno-base.h:22:1:
|
||||
EXFULL = 54 // errno.h:35:1:
|
||||
X_ASM_GENERIC_ERRNO_BASE_H = 0 // errno-base.h:3:1:
|
||||
X_ASM_GENERIC_ERRNO_H = 0 // errno.h:3:1:
|
||||
X_ATFILE_SOURCE = 1 // features.h:342:1:
|
||||
X_BITS_ERRNO_H = 1 // errno.h:20:1:
|
||||
X_DEFAULT_SOURCE = 1 // features.h:227:1:
|
||||
X_ERRNO_H = 1 // errno.h:23:1:
|
||||
X_FEATURES_H = 1 // features.h:19:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_LP64 = 1 // <predefined>:284:1:
|
||||
X_POSIX_C_SOURCE = 200809 // features.h:281:1:
|
||||
X_POSIX_SOURCE = 1 // features.h:279:1:
|
||||
X_STDC_PREDEF_H = 1 // <predefined>:162:1:
|
||||
X_SYS_CDEFS_H = 1 // cdefs.h:19:1:
|
||||
Linux = 1 // <predefined>:231:1:
|
||||
Unix = 1 // <predefined>:177:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
|
||||
+201
@@ -0,0 +1,201 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_linux_ppc64le.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
import (
|
||||
"math"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ = math.Pi
|
||||
var _ reflect.Kind
|
||||
var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
E2BIG = 7 // errno-base.h:11:1:
|
||||
EACCES = 13 // errno-base.h:17:1:
|
||||
EADDRINUSE = 98 // errno.h:81:1:
|
||||
EADDRNOTAVAIL = 99 // errno.h:82:1:
|
||||
EADV = 68 // errno.h:51:1:
|
||||
EAFNOSUPPORT = 97 // errno.h:80:1:
|
||||
EAGAIN = 11 // errno-base.h:15:1:
|
||||
EALREADY = 114 // errno.h:97:1:
|
||||
EBADE = 52 // errno.h:33:1:
|
||||
EBADF = 9 // errno-base.h:13:1:
|
||||
EBADFD = 77 // errno.h:60:1:
|
||||
EBADMSG = 74 // errno.h:57:1:
|
||||
EBADR = 53 // errno.h:34:1:
|
||||
EBADRQC = 56 // errno.h:37:1:
|
||||
EBADSLT = 57 // errno.h:38:1:
|
||||
EBFONT = 59 // errno.h:42:1:
|
||||
EBUSY = 16 // errno-base.h:20:1:
|
||||
ECANCELED = 125 // errno.h:109:1:
|
||||
ECHILD = 10 // errno-base.h:14:1:
|
||||
ECHRNG = 44 // errno.h:25:1:
|
||||
ECOMM = 70 // errno.h:53:1:
|
||||
ECONNABORTED = 103 // errno.h:86:1:
|
||||
ECONNREFUSED = 111 // errno.h:94:1:
|
||||
ECONNRESET = 104 // errno.h:87:1:
|
||||
EDEADLK = 35 // errno.h:7:1:
|
||||
EDEADLOCK = 58 // errno.h:8:1:
|
||||
EDESTADDRREQ = 89 // errno.h:72:1:
|
||||
EDOM = 33 // errno-base.h:37:1:
|
||||
EDOTDOT = 73 // errno.h:56:1:
|
||||
EDQUOT = 122 // errno.h:105:1:
|
||||
EEXIST = 17 // errno-base.h:21:1:
|
||||
EFAULT = 14 // errno-base.h:18:1:
|
||||
EFBIG = 27 // errno-base.h:31:1:
|
||||
EHOSTDOWN = 112 // errno.h:95:1:
|
||||
EHOSTUNREACH = 113 // errno.h:96:1:
|
||||
EHWPOISON = 133 // errno.h:121:1:
|
||||
EIDRM = 43 // errno.h:24:1:
|
||||
EILSEQ = 84 // errno.h:67:1:
|
||||
EINPROGRESS = 115 // errno.h:98:1:
|
||||
EINTR = 4 // errno-base.h:8:1:
|
||||
EINVAL = 22 // errno-base.h:26:1:
|
||||
EIO = 5 // errno-base.h:9:1:
|
||||
EISCONN = 106 // errno.h:89:1:
|
||||
EISDIR = 21 // errno-base.h:25:1:
|
||||
EISNAM = 120 // errno.h:103:1:
|
||||
EKEYEXPIRED = 127 // errno.h:111:1:
|
||||
EKEYREJECTED = 129 // errno.h:113:1:
|
||||
EKEYREVOKED = 128 // errno.h:112:1:
|
||||
EL2HLT = 51 // errno.h:32:1:
|
||||
EL2NSYNC = 45 // errno.h:26:1:
|
||||
EL3HLT = 46 // errno.h:27:1:
|
||||
EL3RST = 47 // errno.h:28:1:
|
||||
ELIBACC = 79 // errno.h:62:1:
|
||||
ELIBBAD = 80 // errno.h:63:1:
|
||||
ELIBEXEC = 83 // errno.h:66:1:
|
||||
ELIBMAX = 82 // errno.h:65:1:
|
||||
ELIBSCN = 81 // errno.h:64:1:
|
||||
ELNRNG = 48 // errno.h:29:1:
|
||||
ELOOP = 40 // errno.h:21:1:
|
||||
EMEDIUMTYPE = 124 // errno.h:108:1:
|
||||
EMFILE = 24 // errno-base.h:28:1:
|
||||
EMLINK = 31 // errno-base.h:35:1:
|
||||
EMSGSIZE = 90 // errno.h:73:1:
|
||||
EMULTIHOP = 72 // errno.h:55:1:
|
||||
ENAMETOOLONG = 36 // errno.h:8:1:
|
||||
ENAVAIL = 119 // errno.h:102:1:
|
||||
ENETDOWN = 100 // errno.h:83:1:
|
||||
ENETRESET = 102 // errno.h:85:1:
|
||||
ENETUNREACH = 101 // errno.h:84:1:
|
||||
ENFILE = 23 // errno-base.h:27:1:
|
||||
ENOANO = 55 // errno.h:36:1:
|
||||
ENOBUFS = 105 // errno.h:88:1:
|
||||
ENOCSI = 50 // errno.h:31:1:
|
||||
ENODATA = 61 // errno.h:44:1:
|
||||
ENODEV = 19 // errno-base.h:23:1:
|
||||
ENOENT = 2 // errno-base.h:6:1:
|
||||
ENOEXEC = 8 // errno-base.h:12:1:
|
||||
ENOKEY = 126 // errno.h:110:1:
|
||||
ENOLCK = 37 // errno.h:9:1:
|
||||
ENOLINK = 67 // errno.h:50:1:
|
||||
ENOMEDIUM = 123 // errno.h:107:1:
|
||||
ENOMEM = 12 // errno-base.h:16:1:
|
||||
ENOMSG = 42 // errno.h:23:1:
|
||||
ENONET = 64 // errno.h:47:1:
|
||||
ENOPKG = 65 // errno.h:48:1:
|
||||
ENOPROTOOPT = 92 // errno.h:75:1:
|
||||
ENOSPC = 28 // errno-base.h:32:1:
|
||||
ENOSR = 63 // errno.h:46:1:
|
||||
ENOSTR = 60 // errno.h:43:1:
|
||||
ENOSYS = 38 // errno.h:18:1:
|
||||
ENOTBLK = 15 // errno-base.h:19:1:
|
||||
ENOTCONN = 107 // errno.h:90:1:
|
||||
ENOTDIR = 20 // errno-base.h:24:1:
|
||||
ENOTEMPTY = 39 // errno.h:20:1:
|
||||
ENOTNAM = 118 // errno.h:101:1:
|
||||
ENOTRECOVERABLE = 131 // errno.h:117:1:
|
||||
ENOTSOCK = 88 // errno.h:71:1:
|
||||
ENOTSUP = 95 // errno.h:30:1:
|
||||
ENOTTY = 25 // errno-base.h:29:1:
|
||||
ENOTUNIQ = 76 // errno.h:59:1:
|
||||
ENXIO = 6 // errno-base.h:10:1:
|
||||
EOPNOTSUPP = 95 // errno.h:78:1:
|
||||
EOVERFLOW = 75 // errno.h:58:1:
|
||||
EOWNERDEAD = 130 // errno.h:116:1:
|
||||
EPERM = 1 // errno-base.h:5:1:
|
||||
EPFNOSUPPORT = 96 // errno.h:79:1:
|
||||
EPIPE = 32 // errno-base.h:36:1:
|
||||
EPROTO = 71 // errno.h:54:1:
|
||||
EPROTONOSUPPORT = 93 // errno.h:76:1:
|
||||
EPROTOTYPE = 91 // errno.h:74:1:
|
||||
ERANGE = 34 // errno-base.h:38:1:
|
||||
EREMCHG = 78 // errno.h:61:1:
|
||||
EREMOTE = 66 // errno.h:49:1:
|
||||
EREMOTEIO = 121 // errno.h:104:1:
|
||||
ERESTART = 85 // errno.h:68:1:
|
||||
ERFKILL = 132 // errno.h:119:1:
|
||||
EROFS = 30 // errno-base.h:34:1:
|
||||
ESHUTDOWN = 108 // errno.h:91:1:
|
||||
ESOCKTNOSUPPORT = 94 // errno.h:77:1:
|
||||
ESPIPE = 29 // errno-base.h:33:1:
|
||||
ESRCH = 3 // errno-base.h:7:1:
|
||||
ESRMNT = 69 // errno.h:52:1:
|
||||
ESTALE = 116 // errno.h:99:1:
|
||||
ESTRPIPE = 86 // errno.h:69:1:
|
||||
ETIME = 62 // errno.h:45:1:
|
||||
ETIMEDOUT = 110 // errno.h:93:1:
|
||||
ETOOMANYREFS = 109 // errno.h:92:1:
|
||||
ETXTBSY = 26 // errno-base.h:30:1:
|
||||
EUCLEAN = 117 // errno.h:100:1:
|
||||
EUNATCH = 49 // errno.h:30:1:
|
||||
EUSERS = 87 // errno.h:70:1:
|
||||
EWOULDBLOCK = 11 // errno.h:22:1:
|
||||
EXDEV = 18 // errno-base.h:22:1:
|
||||
EXFULL = 54 // errno.h:35: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_ASM_GENERIC_ERRNO_BASE_H = 0 // errno-base.h:3:1:
|
||||
X_ASM_GENERIC_ERRNO_H = 0 // errno.h:3:1:
|
||||
X_ASM_POWERPC_ERRNO_H = 0 // errno.h:3:1:
|
||||
X_ATFILE_SOURCE = 1 // features.h:342:1:
|
||||
X_BITS_ERRNO_H = 1 // errno.h:20:1:
|
||||
X_CALL_ELF = 2 // <predefined>:415:1:
|
||||
X_CALL_LINUX = 1 // <predefined>:123:1:
|
||||
X_DEFAULT_SOURCE = 1 // features.h:227:1:
|
||||
X_ERRNO_H = 1 // errno.h:23:1:
|
||||
X_FEATURES_H = 1 // features.h:19:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_LITTLE_ENDIAN = 1 // <predefined>:37:1:
|
||||
X_LP64 = 1 // <predefined>:335:1:
|
||||
X_POSIX_C_SOURCE = 200809 // features.h:281:1:
|
||||
X_POSIX_SOURCE = 1 // features.h:279:1:
|
||||
X_STDC_PREDEF_H = 1 // <predefined>:203:1:
|
||||
X_SYS_CDEFS_H = 1 // cdefs.h:19:1:
|
||||
Linux = 1 // <predefined>:263:1:
|
||||
Unix = 1 // <predefined>:222: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__ieee128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
var _ uint8 /* gen.c:2:13: */
|
||||
+107
-107
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno/errno_netbsd_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_netbsd_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
@@ -15,112 +15,112 @@ var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
E2BIG = 7
|
||||
EACCES = 13
|
||||
EADDRINUSE = 48
|
||||
EADDRNOTAVAIL = 49
|
||||
EAFNOSUPPORT = 47
|
||||
EAGAIN = 35
|
||||
EALREADY = 37
|
||||
EAUTH = 80
|
||||
EBADF = 9
|
||||
EBADMSG = 88
|
||||
EBADRPC = 72
|
||||
EBUSY = 16
|
||||
ECANCELED = 87
|
||||
ECHILD = 10
|
||||
ECONNABORTED = 53
|
||||
ECONNREFUSED = 61
|
||||
ECONNRESET = 54
|
||||
EDEADLK = 11
|
||||
EDESTADDRREQ = 39
|
||||
EDOM = 33
|
||||
EDQUOT = 69
|
||||
EEXIST = 17
|
||||
EFAULT = 14
|
||||
EFBIG = 27
|
||||
EFTYPE = 79
|
||||
EHOSTDOWN = 64
|
||||
EHOSTUNREACH = 65
|
||||
EIDRM = 82
|
||||
EILSEQ = 85
|
||||
EINPROGRESS = 36
|
||||
EINTR = 4
|
||||
EINVAL = 22
|
||||
EIO = 5
|
||||
EISCONN = 56
|
||||
EISDIR = 21
|
||||
ELAST = 96
|
||||
ELOOP = 62
|
||||
EMFILE = 24
|
||||
EMLINK = 31
|
||||
EMSGSIZE = 40
|
||||
EMULTIHOP = 94
|
||||
ENAMETOOLONG = 63
|
||||
ENEEDAUTH = 81
|
||||
ENETDOWN = 50
|
||||
ENETRESET = 52
|
||||
ENETUNREACH = 51
|
||||
ENFILE = 23
|
||||
ENOATTR = 93
|
||||
ENOBUFS = 55
|
||||
ENODATA = 89
|
||||
ENODEV = 19
|
||||
ENOENT = 2
|
||||
ENOEXEC = 8
|
||||
ENOLCK = 77
|
||||
ENOLINK = 95
|
||||
ENOMEM = 12
|
||||
ENOMSG = 83
|
||||
ENOPROTOOPT = 42
|
||||
ENOSPC = 28
|
||||
ENOSR = 90
|
||||
ENOSTR = 91
|
||||
ENOSYS = 78
|
||||
ENOTBLK = 15
|
||||
ENOTCONN = 57
|
||||
ENOTDIR = 20
|
||||
ENOTEMPTY = 66
|
||||
ENOTSOCK = 38
|
||||
ENOTSUP = 86
|
||||
ENOTTY = 25
|
||||
ENXIO = 6
|
||||
EOPNOTSUPP = 45
|
||||
EOVERFLOW = 84
|
||||
EPERM = 1
|
||||
EPFNOSUPPORT = 46
|
||||
EPIPE = 32
|
||||
EPROCLIM = 67
|
||||
EPROCUNAVAIL = 76
|
||||
EPROGMISMATCH = 75
|
||||
EPROGUNAVAIL = 74
|
||||
EPROTO = 96
|
||||
EPROTONOSUPPORT = 43
|
||||
EPROTOTYPE = 41
|
||||
ERANGE = 34
|
||||
EREMOTE = 71
|
||||
EROFS = 30
|
||||
ERPCMISMATCH = 73
|
||||
ESHUTDOWN = 58
|
||||
ESOCKTNOSUPPORT = 44
|
||||
ESPIPE = 29
|
||||
ESRCH = 3
|
||||
ESTALE = 70
|
||||
ETIME = 92
|
||||
ETIMEDOUT = 60
|
||||
ETOOMANYREFS = 59
|
||||
ETXTBSY = 26
|
||||
EUSERS = 68
|
||||
EWOULDBLOCK = 35
|
||||
EXDEV = 18
|
||||
X_ERRNO_H_ = 0
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_LP64 = 1
|
||||
X_NETBSD_SOURCE = 1
|
||||
X_SYS_CDEFS_ELF_H_ = 0
|
||||
X_SYS_CDEFS_H_ = 0
|
||||
X_SYS_ERRNO_H_ = 0
|
||||
X_X86_64_CDEFS_H_ = 0
|
||||
E2BIG = 7 // errno.h:48:1:
|
||||
EACCES = 13 // errno.h:55:1:
|
||||
EADDRINUSE = 48 // errno.h:97:1:
|
||||
EADDRNOTAVAIL = 49 // errno.h:98:1:
|
||||
EAFNOSUPPORT = 47 // errno.h:96:1:
|
||||
EAGAIN = 35 // errno.h:81:1:
|
||||
EALREADY = 37 // errno.h:84:1:
|
||||
EAUTH = 80 // errno.h:140:1:
|
||||
EBADF = 9 // errno.h:50:1:
|
||||
EBADMSG = 88 // errno.h:159:1:
|
||||
EBADRPC = 72 // errno.h:130:1:
|
||||
EBUSY = 16 // errno.h:58:1:
|
||||
ECANCELED = 87 // errno.h:156:1:
|
||||
ECHILD = 10 // errno.h:51:1:
|
||||
ECONNABORTED = 53 // errno.h:104:1:
|
||||
ECONNREFUSED = 61 // errno.h:112:1:
|
||||
ECONNRESET = 54 // errno.h:105:1:
|
||||
EDEADLK = 11 // errno.h:52:1:
|
||||
EDESTADDRREQ = 39 // errno.h:88:1:
|
||||
EDOM = 33 // errno.h:77:1:
|
||||
EDQUOT = 69 // errno.h:125:1:
|
||||
EEXIST = 17 // errno.h:59:1:
|
||||
EFAULT = 14 // errno.h:56:1:
|
||||
EFBIG = 27 // errno.h:69:1:
|
||||
EFTYPE = 79 // errno.h:139:1:
|
||||
EHOSTDOWN = 64 // errno.h:118:1:
|
||||
EHOSTUNREACH = 65 // errno.h:119:1:
|
||||
EIDRM = 82 // errno.h:144:1:
|
||||
EILSEQ = 85 // errno.h:149:1:
|
||||
EINPROGRESS = 36 // errno.h:83:1:
|
||||
EINTR = 4 // errno.h:45:1:
|
||||
EINVAL = 22 // errno.h:64:1:
|
||||
EIO = 5 // errno.h:46:1:
|
||||
EISCONN = 56 // errno.h:107:1:
|
||||
EISDIR = 21 // errno.h:63:1:
|
||||
ELAST = 96 // errno.h:175:1:
|
||||
ELOOP = 62 // errno.h:114:1:
|
||||
EMFILE = 24 // errno.h:66:1:
|
||||
EMLINK = 31 // errno.h:73:1:
|
||||
EMSGSIZE = 40 // errno.h:89:1:
|
||||
EMULTIHOP = 94 // errno.h:171:1:
|
||||
ENAMETOOLONG = 63 // errno.h:115:1:
|
||||
ENEEDAUTH = 81 // errno.h:141:1:
|
||||
ENETDOWN = 50 // errno.h:101:1:
|
||||
ENETRESET = 52 // errno.h:103:1:
|
||||
ENETUNREACH = 51 // errno.h:102:1:
|
||||
ENFILE = 23 // errno.h:65:1:
|
||||
ENOATTR = 93 // errno.h:168:1:
|
||||
ENOBUFS = 55 // errno.h:106:1:
|
||||
ENODATA = 89 // errno.h:162:1:
|
||||
ENODEV = 19 // errno.h:61:1:
|
||||
ENOENT = 2 // errno.h:43:1:
|
||||
ENOEXEC = 8 // errno.h:49:1:
|
||||
ENOLCK = 77 // errno.h:136:1:
|
||||
ENOLINK = 95 // errno.h:172:1:
|
||||
ENOMEM = 12 // errno.h:54:1:
|
||||
ENOMSG = 83 // errno.h:145:1:
|
||||
ENOPROTOOPT = 42 // errno.h:91:1:
|
||||
ENOSPC = 28 // errno.h:70:1:
|
||||
ENOSR = 90 // errno.h:163:1:
|
||||
ENOSTR = 91 // errno.h:164:1:
|
||||
ENOSYS = 78 // errno.h:137:1:
|
||||
ENOTBLK = 15 // errno.h:57:1:
|
||||
ENOTCONN = 57 // errno.h:108:1:
|
||||
ENOTDIR = 20 // errno.h:62:1:
|
||||
ENOTEMPTY = 66 // errno.h:120:1:
|
||||
ENOTSOCK = 38 // errno.h:87:1:
|
||||
ENOTSUP = 86 // errno.h:153:1:
|
||||
ENOTTY = 25 // errno.h:67:1:
|
||||
ENXIO = 6 // errno.h:47:1:
|
||||
EOPNOTSUPP = 45 // errno.h:94:1:
|
||||
EOVERFLOW = 84 // errno.h:146:1:
|
||||
EPERM = 1 // errno.h:42:1:
|
||||
EPFNOSUPPORT = 46 // errno.h:95:1:
|
||||
EPIPE = 32 // errno.h:74:1:
|
||||
EPROCLIM = 67 // errno.h:123:1:
|
||||
EPROCUNAVAIL = 76 // errno.h:134:1:
|
||||
EPROGMISMATCH = 75 // errno.h:133:1:
|
||||
EPROGUNAVAIL = 74 // errno.h:132:1:
|
||||
EPROTO = 96 // errno.h:173:1:
|
||||
EPROTONOSUPPORT = 43 // errno.h:92:1:
|
||||
EPROTOTYPE = 41 // errno.h:90:1:
|
||||
ERANGE = 34 // errno.h:78:1:
|
||||
EREMOTE = 71 // errno.h:129:1:
|
||||
EROFS = 30 // errno.h:72:1:
|
||||
ERPCMISMATCH = 73 // errno.h:131:1:
|
||||
ESHUTDOWN = 58 // errno.h:109:1:
|
||||
ESOCKTNOSUPPORT = 44 // errno.h:93:1:
|
||||
ESPIPE = 29 // errno.h:71:1:
|
||||
ESRCH = 3 // errno.h:44:1:
|
||||
ESTALE = 70 // errno.h:128:1:
|
||||
ETIME = 92 // errno.h:165:1:
|
||||
ETIMEDOUT = 60 // errno.h:111:1:
|
||||
ETOOMANYREFS = 59 // errno.h:110:1:
|
||||
ETXTBSY = 26 // errno.h:68:1:
|
||||
EUSERS = 68 // errno.h:124:1:
|
||||
EWOULDBLOCK = 35 // errno.h:82:1:
|
||||
EXDEV = 18 // errno.h:60:1:
|
||||
X_ERRNO_H_ = 0 // errno.h:40:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_LP64 = 1 // <predefined>:268:1:
|
||||
X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
|
||||
X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
|
||||
X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
|
||||
X_SYS_ERRNO_H_ = 0 // errno.h:40:1:
|
||||
X_X86_64_CDEFS_H_ = 0 // cdefs.h:4:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
|
||||
+158
@@ -0,0 +1,158 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_freebsd_386.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
import (
|
||||
"math"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ = math.Pi
|
||||
var _ reflect.Kind
|
||||
var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
E2BIG = 7 // errno.h:57:1:
|
||||
EACCES = 13 // errno.h:64:1:
|
||||
EADDRINUSE = 48 // errno.h:112:1:
|
||||
EADDRNOTAVAIL = 49 // errno.h:113:1:
|
||||
EAFNOSUPPORT = 47 // errno.h:111:1:
|
||||
EAGAIN = 35 // errno.h:94:1:
|
||||
EALREADY = 37 // errno.h:98:1:
|
||||
EAUTH = 80 // errno.h:161:1:
|
||||
EBADF = 9 // errno.h:59:1:
|
||||
EBADMSG = 89 // errno.h:173:1:
|
||||
EBADRPC = 72 // errno.h:149:1:
|
||||
EBUSY = 16 // errno.h:69:1:
|
||||
ECANCELED = 85 // errno.h:166:1:
|
||||
ECAPMODE = 94 // errno.h:180:1:
|
||||
ECHILD = 10 // errno.h:60:1:
|
||||
ECONNABORTED = 53 // errno.h:119:1:
|
||||
ECONNREFUSED = 61 // errno.h:127:1:
|
||||
ECONNRESET = 54 // errno.h:120:1:
|
||||
EDEADLK = 11 // errno.h:61:1:
|
||||
EDESTADDRREQ = 39 // errno.h:102:1:
|
||||
EDOM = 33 // errno.h:90:1:
|
||||
EDOOFUS = 88 // errno.h:170:1:
|
||||
EDQUOT = 69 // errno.h:144:1:
|
||||
EEXIST = 17 // errno.h:70:1:
|
||||
EFAULT = 14 // errno.h:65:1:
|
||||
EFBIG = 27 // errno.h:82:1:
|
||||
EFTYPE = 79 // errno.h:160:1:
|
||||
EHOSTDOWN = 64 // errno.h:135:1:
|
||||
EHOSTUNREACH = 65 // errno.h:136:1:
|
||||
EIDRM = 82 // errno.h:163:1:
|
||||
EILSEQ = 86 // errno.h:167:1:
|
||||
EINPROGRESS = 36 // errno.h:97:1:
|
||||
EINTEGRITY = 97 // errno.h:183:1:
|
||||
EINTR = 4 // errno.h:54:1:
|
||||
EINVAL = 22 // errno.h:75:1:
|
||||
EIO = 5 // errno.h:55:1:
|
||||
EISCONN = 56 // errno.h:122:1:
|
||||
EISDIR = 21 // errno.h:74:1:
|
||||
ELAST = 97 // errno.h:187:1:
|
||||
ELOOP = 62 // errno.h:129:1:
|
||||
EMFILE = 24 // errno.h:77:1:
|
||||
EMLINK = 31 // errno.h:86:1:
|
||||
EMSGSIZE = 40 // errno.h:103:1:
|
||||
EMULTIHOP = 90 // errno.h:174:1:
|
||||
ENAMETOOLONG = 63 // errno.h:131:1:
|
||||
ENEEDAUTH = 81 // errno.h:162:1:
|
||||
ENETDOWN = 50 // errno.h:116:1:
|
||||
ENETRESET = 52 // errno.h:118:1:
|
||||
ENETUNREACH = 51 // errno.h:117:1:
|
||||
ENFILE = 23 // errno.h:76:1:
|
||||
ENOATTR = 87 // errno.h:168:1:
|
||||
ENOBUFS = 55 // errno.h:121:1:
|
||||
ENODEV = 19 // errno.h:72:1:
|
||||
ENOENT = 2 // errno.h:52:1:
|
||||
ENOEXEC = 8 // errno.h:58:1:
|
||||
ENOLCK = 77 // errno.h:156:1:
|
||||
ENOLINK = 91 // errno.h:175:1:
|
||||
ENOMEM = 12 // errno.h:63:1:
|
||||
ENOMSG = 83 // errno.h:164:1:
|
||||
ENOPROTOOPT = 42 // errno.h:105:1:
|
||||
ENOSPC = 28 // errno.h:83:1:
|
||||
ENOSYS = 78 // errno.h:157:1:
|
||||
ENOTBLK = 15 // errno.h:67:1:
|
||||
ENOTCAPABLE = 93 // errno.h:179:1:
|
||||
ENOTCONN = 57 // errno.h:123:1:
|
||||
ENOTDIR = 20 // errno.h:73:1:
|
||||
ENOTEMPTY = 66 // errno.h:138:1:
|
||||
ENOTRECOVERABLE = 95 // errno.h:181:1:
|
||||
ENOTSOCK = 38 // errno.h:101:1:
|
||||
ENOTSUP = 45 // errno.h:109:1:
|
||||
ENOTTY = 25 // errno.h:78:1:
|
||||
ENXIO = 6 // errno.h:56:1:
|
||||
EOPNOTSUPP = 45 // errno.h:108:1:
|
||||
EOVERFLOW = 84 // errno.h:165:1:
|
||||
EOWNERDEAD = 96 // errno.h:182:1:
|
||||
EPERM = 1 // errno.h:51:1:
|
||||
EPFNOSUPPORT = 46 // errno.h:110:1:
|
||||
EPIPE = 32 // errno.h:87:1:
|
||||
EPROCLIM = 67 // errno.h:142:1:
|
||||
EPROCUNAVAIL = 76 // errno.h:153:1:
|
||||
EPROGMISMATCH = 75 // errno.h:152:1:
|
||||
EPROGUNAVAIL = 74 // errno.h:151:1:
|
||||
EPROTO = 92 // errno.h:176:1:
|
||||
EPROTONOSUPPORT = 43 // errno.h:106:1:
|
||||
EPROTOTYPE = 41 // errno.h:104:1:
|
||||
ERANGE = 34 // errno.h:91:1:
|
||||
EREMOTE = 71 // errno.h:148:1:
|
||||
EROFS = 30 // errno.h:85:1:
|
||||
ERPCMISMATCH = 73 // errno.h:150:1:
|
||||
ESHUTDOWN = 58 // errno.h:124:1:
|
||||
ESOCKTNOSUPPORT = 44 // errno.h:107:1:
|
||||
ESPIPE = 29 // errno.h:84:1:
|
||||
ESRCH = 3 // errno.h:53:1:
|
||||
ESTALE = 70 // errno.h:147:1:
|
||||
ETIMEDOUT = 60 // errno.h:126:1:
|
||||
ETOOMANYREFS = 59 // errno.h:125:1:
|
||||
ETXTBSY = 26 // errno.h:80:1:
|
||||
EUSERS = 68 // errno.h:143:1:
|
||||
EWOULDBLOCK = 35 // errno.h:96:1:
|
||||
EXDEV = 18 // errno.h:71:1:
|
||||
X_ERRNO_T_DEFINED = 0 // errno.h:203:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_ILP32 = 1 // <predefined>:1:1:
|
||||
X_Nonnull = 0 // cdefs.h:790:1:
|
||||
X_Null_unspecified = 0 // cdefs.h:792:1:
|
||||
X_Nullable = 0 // cdefs.h:791:1:
|
||||
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
|
||||
X_SYS_ERRNO_H_ = 0 // errno.h:41: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 */
|
||||
|
||||
// 11 was EAGAIN
|
||||
|
||||
// math software
|
||||
|
||||
// non-blocking and interrupt i/o
|
||||
|
||||
// ipc/network software -- argument errors
|
||||
|
||||
// ipc/network software -- operational errors
|
||||
|
||||
// should be rearranged
|
||||
|
||||
// quotas & mush
|
||||
|
||||
// Network File System
|
||||
|
||||
// ISO/IEC 9899:2011 K.3.2.2
|
||||
type Errno_t = int32 /* errno.h:204:13 */
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
||||
+105
-105
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno/errno_openbsd_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_openbsd_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
@@ -15,110 +15,110 @@ var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
E2BIG = 7
|
||||
EACCES = 13
|
||||
EADDRINUSE = 48
|
||||
EADDRNOTAVAIL = 49
|
||||
EAFNOSUPPORT = 47
|
||||
EAGAIN = 35
|
||||
EALREADY = 37
|
||||
EAUTH = 80
|
||||
EBADF = 9
|
||||
EBADMSG = 92
|
||||
EBADRPC = 72
|
||||
EBUSY = 16
|
||||
ECANCELED = 88
|
||||
ECHILD = 10
|
||||
ECONNABORTED = 53
|
||||
ECONNREFUSED = 61
|
||||
ECONNRESET = 54
|
||||
EDEADLK = 11
|
||||
EDESTADDRREQ = 39
|
||||
EDOM = 33
|
||||
EDQUOT = 69
|
||||
EEXIST = 17
|
||||
EFAULT = 14
|
||||
EFBIG = 27
|
||||
EFTYPE = 79
|
||||
EHOSTDOWN = 64
|
||||
EHOSTUNREACH = 65
|
||||
EIDRM = 89
|
||||
EILSEQ = 84
|
||||
EINPROGRESS = 36
|
||||
EINTR = 4
|
||||
EINVAL = 22
|
||||
EIO = 5
|
||||
EIPSEC = 82
|
||||
EISCONN = 56
|
||||
EISDIR = 21
|
||||
ELAST = 95
|
||||
ELOOP = 62
|
||||
EMEDIUMTYPE = 86
|
||||
EMFILE = 24
|
||||
EMLINK = 31
|
||||
EMSGSIZE = 40
|
||||
ENAMETOOLONG = 63
|
||||
ENEEDAUTH = 81
|
||||
ENETDOWN = 50
|
||||
ENETRESET = 52
|
||||
ENETUNREACH = 51
|
||||
ENFILE = 23
|
||||
ENOATTR = 83
|
||||
ENOBUFS = 55
|
||||
ENODEV = 19
|
||||
ENOENT = 2
|
||||
ENOEXEC = 8
|
||||
ENOLCK = 77
|
||||
ENOMEDIUM = 85
|
||||
ENOMEM = 12
|
||||
ENOMSG = 90
|
||||
ENOPROTOOPT = 42
|
||||
ENOSPC = 28
|
||||
ENOSYS = 78
|
||||
ENOTBLK = 15
|
||||
ENOTCONN = 57
|
||||
ENOTDIR = 20
|
||||
ENOTEMPTY = 66
|
||||
ENOTRECOVERABLE = 93
|
||||
ENOTSOCK = 38
|
||||
ENOTSUP = 91
|
||||
ENOTTY = 25
|
||||
ENXIO = 6
|
||||
EOPNOTSUPP = 45
|
||||
EOVERFLOW = 87
|
||||
EOWNERDEAD = 94
|
||||
EPERM = 1
|
||||
EPFNOSUPPORT = 46
|
||||
EPIPE = 32
|
||||
EPROCLIM = 67
|
||||
EPROCUNAVAIL = 76
|
||||
EPROGMISMATCH = 75
|
||||
EPROGUNAVAIL = 74
|
||||
EPROTO = 95
|
||||
EPROTONOSUPPORT = 43
|
||||
EPROTOTYPE = 41
|
||||
ERANGE = 34
|
||||
EREMOTE = 71
|
||||
EROFS = 30
|
||||
ERPCMISMATCH = 73
|
||||
ESHUTDOWN = 58
|
||||
ESOCKTNOSUPPORT = 44
|
||||
ESPIPE = 29
|
||||
ESRCH = 3
|
||||
ESTALE = 70
|
||||
ETIMEDOUT = 60
|
||||
ETOOMANYREFS = 59
|
||||
ETXTBSY = 26
|
||||
EUSERS = 68
|
||||
EWOULDBLOCK = 35
|
||||
EXDEV = 18
|
||||
X_ERRNO_H_ = 0
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_LP64 = 1
|
||||
X_MACHINE_CDEFS_H_ = 0
|
||||
X_RET_PROTECTOR = 1
|
||||
X_SYS_CDEFS_H_ = 0
|
||||
Unix = 1
|
||||
E2BIG = 7 // errno.h:48:1:
|
||||
EACCES = 13 // errno.h:55:1:
|
||||
EADDRINUSE = 48 // errno.h:103:1:
|
||||
EADDRNOTAVAIL = 49 // errno.h:104:1:
|
||||
EAFNOSUPPORT = 47 // errno.h:102:1:
|
||||
EAGAIN = 35 // errno.h:83:1:
|
||||
EALREADY = 37 // errno.h:86:1:
|
||||
EAUTH = 80 // errno.h:155:1:
|
||||
EBADF = 9 // errno.h:50:1:
|
||||
EBADMSG = 92 // errno.h:170:1:
|
||||
EBADRPC = 72 // errno.h:143:1:
|
||||
EBUSY = 16 // errno.h:60:1:
|
||||
ECANCELED = 88 // errno.h:166:1:
|
||||
ECHILD = 10 // errno.h:51:1:
|
||||
ECONNABORTED = 53 // errno.h:110:1:
|
||||
ECONNREFUSED = 61 // errno.h:120:1:
|
||||
ECONNRESET = 54 // errno.h:111:1:
|
||||
EDEADLK = 11 // errno.h:52:1:
|
||||
EDESTADDRREQ = 39 // errno.h:90:1:
|
||||
EDOM = 33 // errno.h:79:1:
|
||||
EDQUOT = 69 // errno.h:137:1:
|
||||
EEXIST = 17 // errno.h:61:1:
|
||||
EFAULT = 14 // errno.h:56:1:
|
||||
EFBIG = 27 // errno.h:71:1:
|
||||
EFTYPE = 79 // errno.h:154:1:
|
||||
EHOSTDOWN = 64 // errno.h:127:1:
|
||||
EHOSTUNREACH = 65 // errno.h:129:1:
|
||||
EIDRM = 89 // errno.h:167:1:
|
||||
EILSEQ = 84 // errno.h:160:1:
|
||||
EINPROGRESS = 36 // errno.h:85:1:
|
||||
EINTR = 4 // errno.h:45:1:
|
||||
EINVAL = 22 // errno.h:66:1:
|
||||
EIO = 5 // errno.h:46:1:
|
||||
EIPSEC = 82 // errno.h:157:1:
|
||||
EISCONN = 56 // errno.h:113:1:
|
||||
EISDIR = 21 // errno.h:65:1:
|
||||
ELAST = 95 // errno.h:175:1:
|
||||
ELOOP = 62 // errno.h:122:1:
|
||||
EMEDIUMTYPE = 86 // errno.h:163:1:
|
||||
EMFILE = 24 // errno.h:68:1:
|
||||
EMLINK = 31 // errno.h:75:1:
|
||||
EMSGSIZE = 40 // errno.h:91:1:
|
||||
ENAMETOOLONG = 63 // errno.h:123:1:
|
||||
ENEEDAUTH = 81 // errno.h:156:1:
|
||||
ENETDOWN = 50 // errno.h:107:1:
|
||||
ENETRESET = 52 // errno.h:109:1:
|
||||
ENETUNREACH = 51 // errno.h:108:1:
|
||||
ENFILE = 23 // errno.h:67:1:
|
||||
ENOATTR = 83 // errno.h:158:1:
|
||||
ENOBUFS = 55 // errno.h:112:1:
|
||||
ENODEV = 19 // errno.h:63:1:
|
||||
ENOENT = 2 // errno.h:43:1:
|
||||
ENOEXEC = 8 // errno.h:49:1:
|
||||
ENOLCK = 77 // errno.h:150:1:
|
||||
ENOMEDIUM = 85 // errno.h:162:1:
|
||||
ENOMEM = 12 // errno.h:54:1:
|
||||
ENOMSG = 90 // errno.h:168:1:
|
||||
ENOPROTOOPT = 42 // errno.h:93:1:
|
||||
ENOSPC = 28 // errno.h:72:1:
|
||||
ENOSYS = 78 // errno.h:151:1:
|
||||
ENOTBLK = 15 // errno.h:58:1:
|
||||
ENOTCONN = 57 // errno.h:114:1:
|
||||
ENOTDIR = 20 // errno.h:64:1:
|
||||
ENOTEMPTY = 66 // errno.h:130:1:
|
||||
ENOTRECOVERABLE = 93 // errno.h:171:1:
|
||||
ENOTSOCK = 38 // errno.h:89:1:
|
||||
ENOTSUP = 91 // errno.h:169:1:
|
||||
ENOTTY = 25 // errno.h:69:1:
|
||||
ENXIO = 6 // errno.h:47:1:
|
||||
EOPNOTSUPP = 45 // errno.h:98:1:
|
||||
EOVERFLOW = 87 // errno.h:165:1:
|
||||
EOWNERDEAD = 94 // errno.h:172:1:
|
||||
EPERM = 1 // errno.h:42:1:
|
||||
EPFNOSUPPORT = 46 // errno.h:100:1:
|
||||
EPIPE = 32 // errno.h:76:1:
|
||||
EPROCLIM = 67 // errno.h:134:1:
|
||||
EPROCUNAVAIL = 76 // errno.h:147:1:
|
||||
EPROGMISMATCH = 75 // errno.h:146:1:
|
||||
EPROGUNAVAIL = 74 // errno.h:145:1:
|
||||
EPROTO = 95 // errno.h:173:1:
|
||||
EPROTONOSUPPORT = 43 // errno.h:94:1:
|
||||
EPROTOTYPE = 41 // errno.h:92:1:
|
||||
ERANGE = 34 // errno.h:80:1:
|
||||
EREMOTE = 71 // errno.h:142:1:
|
||||
EROFS = 30 // errno.h:74:1:
|
||||
ERPCMISMATCH = 73 // errno.h:144:1:
|
||||
ESHUTDOWN = 58 // errno.h:116:1:
|
||||
ESOCKTNOSUPPORT = 44 // errno.h:96:1:
|
||||
ESPIPE = 29 // errno.h:73:1:
|
||||
ESRCH = 3 // errno.h:44:1:
|
||||
ESTALE = 70 // errno.h:140:1:
|
||||
ETIMEDOUT = 60 // errno.h:119:1:
|
||||
ETOOMANYREFS = 59 // errno.h:117:1:
|
||||
ETXTBSY = 26 // errno.h:70:1:
|
||||
EUSERS = 68 // errno.h:135:1:
|
||||
EWOULDBLOCK = 35 // errno.h:84:1:
|
||||
EXDEV = 18 // errno.h:62:1:
|
||||
X_ERRNO_H_ = 0 // errno.h:40:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_LP64 = 1 // <predefined>:1:1:
|
||||
X_MACHINE_CDEFS_H_ = 0 // cdefs.h:9:1:
|
||||
X_RET_PROTECTOR = 1 // <predefined>:2:1:
|
||||
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
|
||||
Unix = 1 // <predefined>:340:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
|
||||
+142
@@ -0,0 +1,142 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_openbsd_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
import (
|
||||
"math"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ = math.Pi
|
||||
var _ reflect.Kind
|
||||
var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
E2BIG = 7 // errno.h:48:1:
|
||||
EACCES = 13 // errno.h:55:1:
|
||||
EADDRINUSE = 48 // errno.h:103:1:
|
||||
EADDRNOTAVAIL = 49 // errno.h:104:1:
|
||||
EAFNOSUPPORT = 47 // errno.h:102:1:
|
||||
EAGAIN = 35 // errno.h:83:1:
|
||||
EALREADY = 37 // errno.h:86:1:
|
||||
EAUTH = 80 // errno.h:155:1:
|
||||
EBADF = 9 // errno.h:50:1:
|
||||
EBADMSG = 92 // errno.h:170:1:
|
||||
EBADRPC = 72 // errno.h:143:1:
|
||||
EBUSY = 16 // errno.h:60:1:
|
||||
ECANCELED = 88 // errno.h:166:1:
|
||||
ECHILD = 10 // errno.h:51:1:
|
||||
ECONNABORTED = 53 // errno.h:110:1:
|
||||
ECONNREFUSED = 61 // errno.h:120:1:
|
||||
ECONNRESET = 54 // errno.h:111:1:
|
||||
EDEADLK = 11 // errno.h:52:1:
|
||||
EDESTADDRREQ = 39 // errno.h:90:1:
|
||||
EDOM = 33 // errno.h:79:1:
|
||||
EDQUOT = 69 // errno.h:137:1:
|
||||
EEXIST = 17 // errno.h:61:1:
|
||||
EFAULT = 14 // errno.h:56:1:
|
||||
EFBIG = 27 // errno.h:71:1:
|
||||
EFTYPE = 79 // errno.h:154:1:
|
||||
EHOSTDOWN = 64 // errno.h:127:1:
|
||||
EHOSTUNREACH = 65 // errno.h:129:1:
|
||||
EIDRM = 89 // errno.h:167:1:
|
||||
EILSEQ = 84 // errno.h:160:1:
|
||||
EINPROGRESS = 36 // errno.h:85:1:
|
||||
EINTR = 4 // errno.h:45:1:
|
||||
EINVAL = 22 // errno.h:66:1:
|
||||
EIO = 5 // errno.h:46:1:
|
||||
EIPSEC = 82 // errno.h:157:1:
|
||||
EISCONN = 56 // errno.h:113:1:
|
||||
EISDIR = 21 // errno.h:65:1:
|
||||
ELAST = 95 // errno.h:175:1:
|
||||
ELOOP = 62 // errno.h:122:1:
|
||||
EMEDIUMTYPE = 86 // errno.h:163:1:
|
||||
EMFILE = 24 // errno.h:68:1:
|
||||
EMLINK = 31 // errno.h:75:1:
|
||||
EMSGSIZE = 40 // errno.h:91:1:
|
||||
ENAMETOOLONG = 63 // errno.h:123:1:
|
||||
ENEEDAUTH = 81 // errno.h:156:1:
|
||||
ENETDOWN = 50 // errno.h:107:1:
|
||||
ENETRESET = 52 // errno.h:109:1:
|
||||
ENETUNREACH = 51 // errno.h:108:1:
|
||||
ENFILE = 23 // errno.h:67:1:
|
||||
ENOATTR = 83 // errno.h:158:1:
|
||||
ENOBUFS = 55 // errno.h:112:1:
|
||||
ENODEV = 19 // errno.h:63:1:
|
||||
ENOENT = 2 // errno.h:43:1:
|
||||
ENOEXEC = 8 // errno.h:49:1:
|
||||
ENOLCK = 77 // errno.h:150:1:
|
||||
ENOMEDIUM = 85 // errno.h:162:1:
|
||||
ENOMEM = 12 // errno.h:54:1:
|
||||
ENOMSG = 90 // errno.h:168:1:
|
||||
ENOPROTOOPT = 42 // errno.h:93:1:
|
||||
ENOSPC = 28 // errno.h:72:1:
|
||||
ENOSYS = 78 // errno.h:151:1:
|
||||
ENOTBLK = 15 // errno.h:58:1:
|
||||
ENOTCONN = 57 // errno.h:114:1:
|
||||
ENOTDIR = 20 // errno.h:64:1:
|
||||
ENOTEMPTY = 66 // errno.h:130:1:
|
||||
ENOTRECOVERABLE = 93 // errno.h:171:1:
|
||||
ENOTSOCK = 38 // errno.h:89:1:
|
||||
ENOTSUP = 91 // errno.h:169:1:
|
||||
ENOTTY = 25 // errno.h:69:1:
|
||||
ENXIO = 6 // errno.h:47:1:
|
||||
EOPNOTSUPP = 45 // errno.h:98:1:
|
||||
EOVERFLOW = 87 // errno.h:165:1:
|
||||
EOWNERDEAD = 94 // errno.h:172:1:
|
||||
EPERM = 1 // errno.h:42:1:
|
||||
EPFNOSUPPORT = 46 // errno.h:100:1:
|
||||
EPIPE = 32 // errno.h:76:1:
|
||||
EPROCLIM = 67 // errno.h:134:1:
|
||||
EPROCUNAVAIL = 76 // errno.h:147:1:
|
||||
EPROGMISMATCH = 75 // errno.h:146:1:
|
||||
EPROGUNAVAIL = 74 // errno.h:145:1:
|
||||
EPROTO = 95 // errno.h:173:1:
|
||||
EPROTONOSUPPORT = 43 // errno.h:94:1:
|
||||
EPROTOTYPE = 41 // errno.h:92:1:
|
||||
ERANGE = 34 // errno.h:80:1:
|
||||
EREMOTE = 71 // errno.h:142:1:
|
||||
EROFS = 30 // errno.h:74:1:
|
||||
ERPCMISMATCH = 73 // errno.h:144:1:
|
||||
ESHUTDOWN = 58 // errno.h:116:1:
|
||||
ESOCKTNOSUPPORT = 44 // errno.h:96:1:
|
||||
ESPIPE = 29 // errno.h:73:1:
|
||||
ESRCH = 3 // errno.h:44:1:
|
||||
ESTALE = 70 // errno.h:140:1:
|
||||
ETIMEDOUT = 60 // errno.h:119:1:
|
||||
ETOOMANYREFS = 59 // errno.h:117:1:
|
||||
ETXTBSY = 26 // errno.h:70:1:
|
||||
EUSERS = 68 // errno.h:135:1:
|
||||
EWOULDBLOCK = 35 // errno.h:84:1:
|
||||
EXDEV = 18 // errno.h:62:1:
|
||||
X_ERRNO_H_ = 0 // errno.h:40:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_LP64 = 1 // <predefined>:1:1:
|
||||
X_MACHINE_CDEFS_H_ = 0 // cdefs.h:9:1:
|
||||
X_RET_PROTECTOR = 1 // <predefined>:2:1:
|
||||
X_SYS_CDEFS_H_ = 0 // cdefs.h:39: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 */
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
||||
+363
@@ -0,0 +1,363 @@
|
||||
// Code generated by 'ccgo errno\gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno\errno_windows_arm64.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
import (
|
||||
"math"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ = math.Pi
|
||||
var _ reflect.Kind
|
||||
var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
DUMMYSTRUCTNAME = 0
|
||||
DUMMYSTRUCTNAME1 = 0
|
||||
DUMMYSTRUCTNAME2 = 0
|
||||
DUMMYSTRUCTNAME3 = 0
|
||||
DUMMYSTRUCTNAME4 = 0
|
||||
DUMMYSTRUCTNAME5 = 0
|
||||
DUMMYUNIONNAME = 0
|
||||
DUMMYUNIONNAME1 = 0
|
||||
DUMMYUNIONNAME2 = 0
|
||||
DUMMYUNIONNAME3 = 0
|
||||
DUMMYUNIONNAME4 = 0
|
||||
DUMMYUNIONNAME5 = 0
|
||||
DUMMYUNIONNAME6 = 0
|
||||
DUMMYUNIONNAME7 = 0
|
||||
DUMMYUNIONNAME8 = 0
|
||||
DUMMYUNIONNAME9 = 0
|
||||
E2BIG = 7
|
||||
EACCES = 13
|
||||
EADDRINUSE = 100
|
||||
EADDRNOTAVAIL = 101
|
||||
EAFNOSUPPORT = 102
|
||||
EAGAIN = 11
|
||||
EALREADY = 103
|
||||
EBADF = 9
|
||||
EBADMSG = 104
|
||||
EBUSY = 16
|
||||
ECANCELED = 105
|
||||
ECHILD = 10
|
||||
ECONNABORTED = 106
|
||||
ECONNREFUSED = 107
|
||||
ECONNRESET = 108
|
||||
EDEADLK = 36
|
||||
EDEADLOCK = 36
|
||||
EDESTADDRREQ = 109
|
||||
EDOM = 33
|
||||
EEXIST = 17
|
||||
EFAULT = 14
|
||||
EFBIG = 27
|
||||
EHOSTUNREACH = 110
|
||||
EIDRM = 111
|
||||
EILSEQ = 42
|
||||
EINPROGRESS = 112
|
||||
EINTR = 4
|
||||
EINVAL = 22
|
||||
EIO = 5
|
||||
EISCONN = 113
|
||||
EISDIR = 21
|
||||
ELOOP = 114
|
||||
EMFILE = 24
|
||||
EMLINK = 31
|
||||
EMSGSIZE = 115
|
||||
ENAMETOOLONG = 38
|
||||
ENETDOWN = 116
|
||||
ENETRESET = 117
|
||||
ENETUNREACH = 118
|
||||
ENFILE = 23
|
||||
ENOBUFS = 119
|
||||
ENODATA = 120
|
||||
ENODEV = 19
|
||||
ENOENT = 2
|
||||
ENOEXEC = 8
|
||||
ENOFILE = 2
|
||||
ENOLCK = 39
|
||||
ENOLINK = 121
|
||||
ENOMEM = 12
|
||||
ENOMSG = 122
|
||||
ENOPROTOOPT = 123
|
||||
ENOSPC = 28
|
||||
ENOSR = 124
|
||||
ENOSTR = 125
|
||||
ENOSYS = 40
|
||||
ENOTCONN = 126
|
||||
ENOTDIR = 20
|
||||
ENOTEMPTY = 41
|
||||
ENOTRECOVERABLE = 127
|
||||
ENOTSOCK = 128
|
||||
ENOTSUP = 129
|
||||
ENOTTY = 25
|
||||
ENXIO = 6
|
||||
EOPNOTSUPP = 130
|
||||
EOVERFLOW = 132
|
||||
EOWNERDEAD = 133
|
||||
EPERM = 1
|
||||
EPIPE = 32
|
||||
EPROTO = 134
|
||||
EPROTONOSUPPORT = 135
|
||||
EPROTOTYPE = 136
|
||||
ERANGE = 34
|
||||
EROFS = 30
|
||||
ESPIPE = 29
|
||||
ESRCH = 3
|
||||
ETIME = 137
|
||||
ETIMEDOUT = 138
|
||||
ETXTBSY = 139
|
||||
EWOULDBLOCK = 140
|
||||
EXDEV = 18
|
||||
MINGW_DDK_H = 0
|
||||
MINGW_HAS_DDK_H = 1
|
||||
MINGW_HAS_SECURE_API = 1
|
||||
MINGW_SDK_INIT = 0
|
||||
STRUNCATE = 80
|
||||
UNALIGNED = 0
|
||||
USE___UUIDOF = 0
|
||||
WIN32 = 1
|
||||
WIN64 = 1
|
||||
WINNT = 1
|
||||
X_AGLOBAL = 0
|
||||
X_ANONYMOUS_STRUCT = 0
|
||||
X_ANONYMOUS_UNION = 0
|
||||
X_ARGMAX = 100
|
||||
X_ARM64_ = 1
|
||||
X_CONST_RETURN = 0
|
||||
X_CRTNOALIAS = 0
|
||||
X_CRTRESTRICT = 0
|
||||
X_CRT_ALTERNATIVE_IMPORTED = 0
|
||||
X_CRT_ERRNO_DEFINED = 0
|
||||
X_CRT_MANAGED_HEAP_DEPRECATE = 0
|
||||
X_CRT_PACKING = 8
|
||||
X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES = 0
|
||||
X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY = 0
|
||||
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0
|
||||
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0
|
||||
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0
|
||||
X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0
|
||||
X_DLL = 0
|
||||
X_ERRCODE_DEFINED = 0
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_INC_CORECRT = 0
|
||||
X_INC_CRTDEFS = 0
|
||||
X_INC_CRTDEFS_MACRO = 0
|
||||
X_INC_ERRNO = 0
|
||||
X_INC_MINGW_SECAPI = 0
|
||||
X_INC_VADEFS = 0
|
||||
X_INC__MINGW_H = 0
|
||||
X_INT128_DEFINED = 0
|
||||
X_INTPTR_T_DEFINED = 0
|
||||
X_MT = 0
|
||||
X_M_ARM64 = 1
|
||||
X_PGLOBAL = 0
|
||||
X_PTRDIFF_T_ = 0
|
||||
X_PTRDIFF_T_DEFINED = 0
|
||||
X_RSIZE_T_DEFINED = 0
|
||||
X_SECURECRT_ERRCODE_VALUES_DEFINED = 0
|
||||
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
|
||||
X_SIZE_T_DEFINED = 0
|
||||
X_SSIZE_T_DEFINED = 0
|
||||
X_TAGLC_ID_DEFINED = 0
|
||||
X_THREADLOCALEINFO = 0
|
||||
X_TIME32_T_DEFINED = 0
|
||||
X_TIME64_T_DEFINED = 0
|
||||
X_TIME_T_DEFINED = 0
|
||||
X_UCRT = 0
|
||||
X_UINTPTR_T_DEFINED = 0
|
||||
X_VA_LIST_DEFINED = 0
|
||||
X_W64 = 0
|
||||
X_WCHAR_T_DEFINED = 0
|
||||
X_WCTYPE_T_DEFINED = 0
|
||||
X_WIN32 = 1
|
||||
X_WIN32_WINNT = 0x601
|
||||
X_WIN64 = 1
|
||||
X_WINT_T = 0
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
|
||||
type Size_t = uint64 /* <builtin>:9:23 */
|
||||
|
||||
type Wchar_t = uint16 /* <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 */
|
||||
|
||||
type Va_list = X__builtin_va_list /* <builtin>:50:27 */
|
||||
|
||||
// *
|
||||
// This file has no copyright assigned and is placed in the Public Domain.
|
||||
// This file is part of the mingw-w64 runtime package.
|
||||
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
||||
|
||||
// *
|
||||
// This file has no copyright assigned and is placed in the Public Domain.
|
||||
// This file is part of the mingw-w64 runtime package.
|
||||
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
||||
|
||||
// *
|
||||
// This file has no copyright assigned and is placed in the Public Domain.
|
||||
// This file is part of the mingw-w64 runtime package.
|
||||
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
||||
|
||||
// *
|
||||
// This file has no copyright assigned and is placed in the Public Domain.
|
||||
// This file is part of the mingw-w64 runtime package.
|
||||
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
||||
|
||||
// *
|
||||
// This file has no copyright assigned and is placed in the Public Domain.
|
||||
// This file is part of the mingw-w64 runtime package.
|
||||
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
||||
|
||||
// This macro holds an monotonic increasing value, which indicates
|
||||
// a specific fix/patch is present on trunk. This value isn't related to
|
||||
// minor/major version-macros. It is increased on demand, if a big
|
||||
// fix was applied to trunk. This macro gets just increased on trunk. For
|
||||
// other branches its value won't be modified.
|
||||
|
||||
// mingw.org's version macros: these make gcc to define
|
||||
// MINGW32_SUPPORTS_MT_EH and to use the _CRT_MT global
|
||||
// and the __mingwthr_key_dtor() function from the MinGW
|
||||
// CRT in its private gthr-win32.h header.
|
||||
|
||||
// Set VC specific compiler target macros.
|
||||
|
||||
// MS does not prefix symbols by underscores for 64-bit.
|
||||
// As we have to support older gcc version, which are using underscores
|
||||
// as symbol prefix for x64, we have to check here for the user label
|
||||
// prefix defined by gcc.
|
||||
|
||||
// Special case nameless struct/union.
|
||||
|
||||
// MinGW-w64 has some additional C99 printf/scanf feature support.
|
||||
// So we add some helper macros to ease recognition of them.
|
||||
|
||||
// If _FORTIFY_SOURCE is enabled, some inline functions may use
|
||||
// __builtin_va_arg_pack(). GCC may report an error if the address
|
||||
// of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
|
||||
|
||||
// Enable workaround for ABI incompatibility on affected platforms
|
||||
|
||||
// *
|
||||
// This file has no copyright assigned and is placed in the Public Domain.
|
||||
// This file is part of the mingw-w64 runtime package.
|
||||
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
||||
|
||||
// http://msdn.microsoft.com/en-us/library/ms175759%28v=VS.100%29.aspx
|
||||
// Templates won't work in C, will break if secure API is not enabled, disabled
|
||||
|
||||
// https://blogs.msdn.com/b/sdl/archive/2010/02/16/vc-2010-and-memcpy.aspx?Redirected=true
|
||||
// fallback on default implementation if we can't know the size of the destination
|
||||
|
||||
// Include _cygwin.h if we're building a Cygwin application.
|
||||
|
||||
// Target specific macro replacement for type "long". In the Windows API,
|
||||
// the type long is always 32 bit, even if the target is 64 bit (LLP64).
|
||||
// On 64 bit Cygwin, the type long is 64 bit (LP64). So, to get the right
|
||||
// sized definitions and declarations, all usage of type long in the Windows
|
||||
// headers have to be replaced by the below defined macro __LONG32.
|
||||
|
||||
// C/C++ specific language defines.
|
||||
|
||||
// Note the extern. This is needed to work around GCC's
|
||||
// limitations in handling dllimport attribute.
|
||||
|
||||
// Attribute `nonnull' was valid as of gcc 3.3. We don't use GCC's
|
||||
// variadiac macro facility, because variadic macros cause syntax
|
||||
// errors with --traditional-cpp.
|
||||
|
||||
// High byte is the major version, low byte is the minor.
|
||||
|
||||
// Allow both 0x1400 and 0xE00 to identify UCRT
|
||||
|
||||
// ===-------- vadefs.h ---------------------------------------------------===
|
||||
//
|
||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
// See https://llvm.org/LICENSE.txt for license information.
|
||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
//
|
||||
//===-----------------------------------------------------------------------===
|
||||
|
||||
// Only include this if we are aiming for MSVC compatibility.
|
||||
// *
|
||||
// This file has no copyright assigned and is placed in the Public Domain.
|
||||
// This file is part of the mingw-w64 runtime package.
|
||||
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
||||
|
||||
// *
|
||||
// This file has no copyright assigned and is placed in the Public Domain.
|
||||
// This file is part of the mingw-w64 runtime package.
|
||||
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
||||
|
||||
// for backward compatibility
|
||||
|
||||
type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
|
||||
|
||||
type Ssize_t = int64 /* corecrt.h:45:35 */
|
||||
|
||||
type Rsize_t = Size_t /* corecrt.h:52:16 */
|
||||
|
||||
type Intptr_t = int64 /* corecrt.h:62:35 */
|
||||
|
||||
type Uintptr_t = uint64 /* corecrt.h:75:44 */
|
||||
|
||||
type Wint_t = uint16 /* corecrt.h:106:24 */
|
||||
type Wctype_t = uint16 /* corecrt.h:107:24 */
|
||||
|
||||
type Errno_t = int32 /* corecrt.h:113:13 */
|
||||
|
||||
type X__time32_t = int32 /* corecrt.h:118:14 */
|
||||
|
||||
type X__time64_t = int64 /* corecrt.h:123:35 */
|
||||
|
||||
type Time_t = X__time64_t /* corecrt.h:138:20 */
|
||||
|
||||
type Threadlocaleinfostruct = struct {
|
||||
F_locale_pctype uintptr
|
||||
F_locale_mb_cur_max int32
|
||||
F_locale_lc_codepage uint32
|
||||
} /* corecrt.h:430:1 */
|
||||
|
||||
type Pthreadlocinfo = uintptr /* corecrt.h:432:39 */
|
||||
type Pthreadmbcinfo = uintptr /* corecrt.h:433:36 */
|
||||
|
||||
type Localeinfo_struct = struct {
|
||||
Flocinfo Pthreadlocinfo
|
||||
Fmbcinfo Pthreadmbcinfo
|
||||
} /* corecrt.h:436:9 */
|
||||
|
||||
type X_locale_tstruct = Localeinfo_struct /* corecrt.h:439:3 */
|
||||
type X_locale_t = uintptr /* corecrt.h:439:19 */
|
||||
|
||||
type TagLC_ID = struct {
|
||||
FwLanguage uint16
|
||||
FwCountry uint16
|
||||
FwCodePage uint16
|
||||
} /* corecrt.h:443:9 */
|
||||
|
||||
type LC_ID = TagLC_ID /* corecrt.h:447:3 */
|
||||
type LPLC_ID = uintptr /* corecrt.h:447:9 */
|
||||
|
||||
type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:482:3 */
|
||||
|
||||
// Posix thread extensions.
|
||||
|
||||
// Extension defined as by report VC 10+ defines error-numbers.
|
||||
|
||||
// Defined as WSAETIMEDOUT.
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
||||
+2
-2
@@ -307,7 +307,7 @@ func (t *TLS) Alloc(n int) (r uintptr) {
|
||||
return r
|
||||
}
|
||||
|
||||
//this declares how many stack frames are kept alive before being freed
|
||||
// this declares how many stack frames are kept alive before being freed
|
||||
const stackFrameKeepalive = 2
|
||||
|
||||
// Free deallocates n bytes of thread-local storage. See TLS.Alloc for details
|
||||
@@ -822,7 +822,7 @@ func parseZoneOffset(s string, offOpt bool) (string, string, int, bool) {
|
||||
return "", s0, 0, true
|
||||
}
|
||||
|
||||
// [+|-]hh[:mm[:ss]]
|
||||
// [+|-]hh[:mm[:ss]]
|
||||
func parseOffset(s string) (string, int) {
|
||||
if len(s) == 0 {
|
||||
panic(todo(""))
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fcntl/fcntl_darwin_arm64.go -pkgname fcntl', DO NOT EDIT.
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_darwin_arm64.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fcntl/fcntl_freebsd_386.go -pkgname fcntl', DO NOT EDIT.
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_freebsd_386.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fcntl/fcntl_freebsd_amd64.go -pkgname fcntl', DO NOT EDIT.
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_freebsd_amd64.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_freebsd_arm.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_freebsd_amd64.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fcntl/fcntl_linux_amd64.go -pkgname fcntl', DO NOT EDIT.
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_linux_amd64.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_linux_ppc64le.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fcntl/fcntl_netbsd_amd64.go -pkgname fcntl', DO NOT EDIT.
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_netbsd_amd64.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_freebsd_386.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fcntl/fcntl_openbsd_amd64.go -pkgname fcntl', DO NOT EDIT.
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_openbsd_amd64.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_openbsd_amd64.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// Code generated by 'ccgo fcntl\gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fcntl\fcntl_windows_arm64.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
||||
+2
-2
@@ -1915,7 +1915,7 @@ type Radvisory = struct {
|
||||
F__ccgo_pad1 [4]byte
|
||||
} /* fcntl.h:371:1 */
|
||||
|
||||
//* Information the user passes in to get the codeblobs out of the kernel
|
||||
// * Information the user passes in to get the codeblobs out of the kernel
|
||||
type Fcodeblobs = struct {
|
||||
Ff_cd_hash uintptr
|
||||
Ff_hash_size Size_t
|
||||
@@ -1926,7 +1926,7 @@ type Fcodeblobs = struct {
|
||||
F__padding int32
|
||||
} /* fcntl.h:378:9 */
|
||||
|
||||
//* Information the user passes in to get the codeblobs out of the kernel
|
||||
// * Information the user passes in to get the codeblobs out of the kernel
|
||||
type Fcodeblobs_t = Fcodeblobs /* fcntl.h:386:3 */
|
||||
|
||||
// detached code signatures data type -
|
||||
|
||||
+255
-239
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fcntl/fcntl_darwin_arm64.go -pkgname fcntl', DO NOT EDIT.
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_darwin_arm64.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
@@ -15,223 +15,225 @@ var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
AT_EACCESS = 0x0010
|
||||
AT_FDCWD = -2
|
||||
AT_FDONLY = 0x0400
|
||||
AT_REALDEV = 0x0200
|
||||
AT_REMOVEDIR = 0x0080
|
||||
AT_SYMLINK_FOLLOW = 0x0040
|
||||
AT_SYMLINK_NOFOLLOW = 0x0020
|
||||
CPF_IGNORE_MODE = 0x0002
|
||||
CPF_MASK = 3
|
||||
CPF_OVERWRITE = 0x0001
|
||||
FAPPEND = 8
|
||||
FASYNC = 64
|
||||
FCNTL_FS_SPECIFIC_BASE = 0x00010000
|
||||
FD_CLOEXEC = 1
|
||||
FFDSYNC = 4194304
|
||||
FFSYNC = 128
|
||||
FNDELAY = 4
|
||||
FNONBLOCK = 4
|
||||
FREAD = 0x00000001
|
||||
FWRITE = 0x00000002
|
||||
F_ADDFILESIGS = 61
|
||||
F_ADDFILESIGS_FOR_DYLD_SIM = 83
|
||||
F_ADDFILESIGS_INFO = 103
|
||||
F_ADDFILESIGS_RETURN = 97
|
||||
F_ADDFILESUPPL = 104
|
||||
F_ADDSIGS = 59
|
||||
F_ALLOCATEALL = 0x00000004
|
||||
F_ALLOCATECONTIG = 0x00000002
|
||||
F_BARRIERFSYNC = 85
|
||||
F_CHECK_LV = 98
|
||||
F_CHKCLEAN = 41
|
||||
F_DUPFD = 0
|
||||
F_DUPFD_CLOEXEC = 67
|
||||
F_FINDSIGS = 78
|
||||
F_FLUSH_DATA = 40
|
||||
F_FREEZE_FS = 53
|
||||
F_FULLFSYNC = 51
|
||||
F_GETCODEDIR = 72
|
||||
F_GETFD = 1
|
||||
F_GETFL = 3
|
||||
F_GETLK = 7
|
||||
F_GETLKPID = 66
|
||||
F_GETNOSIGPIPE = 74
|
||||
F_GETOWN = 5
|
||||
F_GETPATH = 50
|
||||
F_GETPATH_MTMINFO = 71
|
||||
F_GETPATH_NOFIRMLINK = 102
|
||||
F_GETPROTECTIONCLASS = 63
|
||||
F_GETPROTECTIONLEVEL = 77
|
||||
F_GETSIGSINFO = 105
|
||||
F_GLOBAL_NOCACHE = 55
|
||||
F_LOG2PHYS = 49
|
||||
F_LOG2PHYS_EXT = 65
|
||||
F_NOCACHE = 48
|
||||
F_NODIRECT = 62
|
||||
F_PATHPKG_CHECK = 52
|
||||
F_PEOFPOSMODE = 3
|
||||
F_PREALLOCATE = 42
|
||||
F_PUNCHHOLE = 99
|
||||
F_RDADVISE = 44
|
||||
F_RDAHEAD = 45
|
||||
F_RDLCK = 1
|
||||
F_SETBACKINGSTORE = 70
|
||||
F_SETFD = 2
|
||||
F_SETFL = 4
|
||||
F_SETLK = 8
|
||||
F_SETLKW = 9
|
||||
F_SETLKWTIMEOUT = 10
|
||||
F_SETNOSIGPIPE = 73
|
||||
F_SETOWN = 6
|
||||
F_SETPROTECTIONCLASS = 64
|
||||
F_SETSIZE = 43
|
||||
F_SINGLE_WRITER = 76
|
||||
F_SPECULATIVE_READ = 101
|
||||
F_THAW_FS = 54
|
||||
F_TRANSCODEKEY = 75
|
||||
F_TRIM_ACTIVE_FILE = 100
|
||||
F_UNLCK = 2
|
||||
F_VOLPOSMODE = 4
|
||||
F_WRLCK = 3
|
||||
GETSIGSINFO_PLATFORM_BINARY = 1
|
||||
LOCK_EX = 0x02
|
||||
LOCK_NB = 0x04
|
||||
LOCK_SH = 0x01
|
||||
LOCK_UN = 0x08
|
||||
MAC_OS_VERSION_11_0 = 110000
|
||||
MAC_OS_VERSION_12_0 = 120000
|
||||
MAC_OS_X_VERSION_10_0 = 1000
|
||||
MAC_OS_X_VERSION_10_1 = 1010
|
||||
MAC_OS_X_VERSION_10_10 = 101000
|
||||
MAC_OS_X_VERSION_10_10_2 = 101002
|
||||
MAC_OS_X_VERSION_10_10_3 = 101003
|
||||
MAC_OS_X_VERSION_10_11 = 101100
|
||||
MAC_OS_X_VERSION_10_11_2 = 101102
|
||||
MAC_OS_X_VERSION_10_11_3 = 101103
|
||||
MAC_OS_X_VERSION_10_11_4 = 101104
|
||||
MAC_OS_X_VERSION_10_12 = 101200
|
||||
MAC_OS_X_VERSION_10_12_1 = 101201
|
||||
MAC_OS_X_VERSION_10_12_2 = 101202
|
||||
MAC_OS_X_VERSION_10_12_4 = 101204
|
||||
MAC_OS_X_VERSION_10_13 = 101300
|
||||
MAC_OS_X_VERSION_10_13_1 = 101301
|
||||
MAC_OS_X_VERSION_10_13_2 = 101302
|
||||
MAC_OS_X_VERSION_10_13_4 = 101304
|
||||
MAC_OS_X_VERSION_10_14 = 101400
|
||||
MAC_OS_X_VERSION_10_14_1 = 101401
|
||||
MAC_OS_X_VERSION_10_14_4 = 101404
|
||||
MAC_OS_X_VERSION_10_14_6 = 101406
|
||||
MAC_OS_X_VERSION_10_15 = 101500
|
||||
MAC_OS_X_VERSION_10_15_1 = 101501
|
||||
MAC_OS_X_VERSION_10_16 = 101600
|
||||
MAC_OS_X_VERSION_10_2 = 1020
|
||||
MAC_OS_X_VERSION_10_3 = 1030
|
||||
MAC_OS_X_VERSION_10_4 = 1040
|
||||
MAC_OS_X_VERSION_10_5 = 1050
|
||||
MAC_OS_X_VERSION_10_6 = 1060
|
||||
MAC_OS_X_VERSION_10_7 = 1070
|
||||
MAC_OS_X_VERSION_10_8 = 1080
|
||||
MAC_OS_X_VERSION_10_9 = 1090
|
||||
O_ACCMODE = 0x0003
|
||||
O_ALERT = 0x20000000
|
||||
O_APPEND = 0x00000008
|
||||
O_ASYNC = 0x00000040
|
||||
O_CLOEXEC = 0x01000000
|
||||
O_CREAT = 0x00000200
|
||||
O_DIRECTORY = 0x00100000
|
||||
O_DP_GETRAWENCRYPTED = 0x0001
|
||||
O_DP_GETRAWUNENCRYPTED = 0x0002
|
||||
O_DSYNC = 0x400000
|
||||
O_EVTONLY = 0x00008000
|
||||
O_EXCL = 0x00000800
|
||||
O_EXLOCK = 0x00000020
|
||||
O_FSYNC = 128
|
||||
O_NDELAY = 4
|
||||
O_NOCTTY = 0x00020000
|
||||
O_NOFOLLOW = 0x00000100
|
||||
O_NOFOLLOW_ANY = 0x20000000
|
||||
O_NONBLOCK = 0x00000004
|
||||
O_POPUP = 0x80000000
|
||||
O_RDONLY = 0x0000
|
||||
O_RDWR = 0x0002
|
||||
O_SHLOCK = 0x00000010
|
||||
O_SYMLINK = 0x00200000
|
||||
O_SYNC = 0x0080
|
||||
O_TRUNC = 0x00000400
|
||||
O_WRONLY = 0x0001
|
||||
SEEK_CUR = 1
|
||||
SEEK_DATA = 4
|
||||
SEEK_END = 2
|
||||
SEEK_HOLE = 3
|
||||
SEEK_SET = 0
|
||||
S_IEXEC = 64
|
||||
S_IFBLK = 0060000
|
||||
S_IFCHR = 0020000
|
||||
S_IFDIR = 0040000
|
||||
S_IFIFO = 0010000
|
||||
S_IFLNK = 0120000
|
||||
S_IFMT = 0170000
|
||||
S_IFREG = 0100000
|
||||
S_IFSOCK = 0140000
|
||||
S_IFWHT = 0160000
|
||||
S_IREAD = 256
|
||||
S_IRGRP = 0000040
|
||||
S_IROTH = 0000004
|
||||
S_IRUSR = 0000400
|
||||
S_IRWXG = 0000070
|
||||
S_IRWXO = 0000007
|
||||
S_IRWXU = 0000700
|
||||
S_ISGID = 0002000
|
||||
S_ISTXT = 512
|
||||
S_ISUID = 0004000
|
||||
S_ISVTX = 0001000
|
||||
S_IWGRP = 0000020
|
||||
S_IWOTH = 0000002
|
||||
S_IWRITE = 128
|
||||
S_IWUSR = 0000200
|
||||
S_IXGRP = 0000010
|
||||
S_IXOTH = 0000001
|
||||
S_IXUSR = 0000100
|
||||
USER_FSIGNATURES_CDHASH_LEN = 20
|
||||
X_ARM_MACHTYPES_H_ = 0
|
||||
X_BSD_ARM__TYPES_H_ = 0
|
||||
X_BSD_MACHINE_TYPES_H_ = 0
|
||||
X_BSD_MACHINE__TYPES_H_ = 0
|
||||
X_CDEFS_H_ = 0
|
||||
X_DARWIN_FEATURE_64_BIT_INODE = 1
|
||||
X_DARWIN_FEATURE_ONLY_64_BIT_INODE = 1
|
||||
X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1
|
||||
X_DARWIN_FEATURE_ONLY_VERS_1050 = 1
|
||||
X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3
|
||||
X_FILESEC_T = 0
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_INT16_T = 0
|
||||
X_INT32_T = 0
|
||||
X_INT64_T = 0
|
||||
X_INT8_T = 0
|
||||
X_INTPTR_T = 0
|
||||
X_LP64 = 1
|
||||
X_MACHTYPES_H_ = 0
|
||||
X_MODE_T = 0
|
||||
X_Nonnull = 0
|
||||
X_Null_unspecified = 0
|
||||
X_Nullable = 0
|
||||
X_OFF_T = 0
|
||||
X_PID_T = 0
|
||||
X_SIZE_T = 0
|
||||
X_SYS_FCNTL_H_ = 0
|
||||
X_SYS__PTHREAD_TYPES_H_ = 0
|
||||
X_SYS__TYPES_H_ = 0
|
||||
X_UINTPTR_T = 0
|
||||
X_U_INT16_T = 0
|
||||
X_U_INT32_T = 0
|
||||
X_U_INT64_T = 0
|
||||
X_U_INT8_T = 0
|
||||
AT_EACCESS = 0x0010 // fcntl.h:168:1:
|
||||
AT_FDCWD = -2 // fcntl.h:163:1:
|
||||
AT_FDONLY = 0x0400 // fcntl.h:174:1:
|
||||
AT_REALDEV = 0x0200 // fcntl.h:173:1:
|
||||
AT_REMOVEDIR = 0x0080 // fcntl.h:171:1:
|
||||
AT_SYMLINK_FOLLOW = 0x0040 // fcntl.h:170:1:
|
||||
AT_SYMLINK_NOFOLLOW = 0x0020 // fcntl.h:169:1:
|
||||
AT_SYMLINK_NOFOLLOW_ANY = 0x0800 // fcntl.h:175:1:
|
||||
CPF_IGNORE_MODE = 0x0002 // fcntl.h:208:1:
|
||||
CPF_MASK = 3 // fcntl.h:209:1:
|
||||
CPF_OVERWRITE = 0x0001 // fcntl.h:207:1:
|
||||
FAPPEND = 8 // fcntl.h:193:1:
|
||||
FASYNC = 64 // fcntl.h:194:1:
|
||||
FCNTL_FS_SPECIFIC_BASE = 0x00010000 // fcntl.h:315:1:
|
||||
FD_CLOEXEC = 1 // fcntl.h:324:1:
|
||||
FFDSYNC = 4194304 // fcntl.h:196:1:
|
||||
FFSYNC = 128 // fcntl.h:195:1:
|
||||
FNDELAY = 4 // fcntl.h:198:1:
|
||||
FNONBLOCK = 4 // fcntl.h:197:1:
|
||||
FREAD = 0x00000001 // fcntl.h:110:1:
|
||||
FWRITE = 0x00000002 // fcntl.h:111:1:
|
||||
F_ADDFILESIGS = 61 // fcntl.h:253:1:
|
||||
F_ADDFILESIGS_FOR_DYLD_SIM = 83 // fcntl.h:292:1:
|
||||
F_ADDFILESIGS_INFO = 103 // fcntl.h:309:1:
|
||||
F_ADDFILESIGS_RETURN = 97 // fcntl.h:298:1:
|
||||
F_ADDFILESUPPL = 104 // fcntl.h:310:1:
|
||||
F_ADDSIGS = 59 // fcntl.h:250:1:
|
||||
F_ALLOCATEALL = 0x00000004 // fcntl.h:348:1:
|
||||
F_ALLOCATECONTIG = 0x00000002 // fcntl.h:347:1:
|
||||
F_BARRIERFSYNC = 85 // fcntl.h:295:1:
|
||||
F_CHECK_LV = 98 // fcntl.h:299:1:
|
||||
F_CHKCLEAN = 41 // fcntl.h:232:1:
|
||||
F_DUPFD = 0 // fcntl.h:217:1:
|
||||
F_DUPFD_CLOEXEC = 67 // fcntl.h:320:1:
|
||||
F_FINDSIGS = 78 // fcntl.h:289:1:
|
||||
F_FLUSH_DATA = 40 // fcntl.h:231:1:
|
||||
F_FREEZE_FS = 53 // fcntl.h:245:1:
|
||||
F_FSRESERVED = 106 // fcntl.h:312:1:
|
||||
F_FULLFSYNC = 51 // fcntl.h:243:1:
|
||||
F_GETCODEDIR = 72 // fcntl.h:277:1:
|
||||
F_GETFD = 1 // fcntl.h:218:1:
|
||||
F_GETFL = 3 // fcntl.h:220:1:
|
||||
F_GETLK = 7 // fcntl.h:224:1:
|
||||
F_GETLKPID = 66 // fcntl.h:263:1:
|
||||
F_GETNOSIGPIPE = 74 // fcntl.h:280:1:
|
||||
F_GETOWN = 5 // fcntl.h:222:1:
|
||||
F_GETPATH = 50 // fcntl.h:242:1:
|
||||
F_GETPATH_MTMINFO = 71 // fcntl.h:275:1:
|
||||
F_GETPATH_NOFIRMLINK = 102 // fcntl.h:307:1:
|
||||
F_GETPROTECTIONCLASS = 63 // fcntl.h:258:1:
|
||||
F_GETPROTECTIONLEVEL = 77 // fcntl.h:287:1:
|
||||
F_GETSIGSINFO = 105 // fcntl.h:311:1:
|
||||
F_GLOBAL_NOCACHE = 55 // fcntl.h:247:1:
|
||||
F_LOG2PHYS = 49 // fcntl.h:241:1:
|
||||
F_LOG2PHYS_EXT = 65 // fcntl.h:261:1:
|
||||
F_NOCACHE = 48 // fcntl.h:240:1:
|
||||
F_NODIRECT = 62 // fcntl.h:255:1:
|
||||
F_PATHPKG_CHECK = 52 // fcntl.h:244:1:
|
||||
F_PEOFPOSMODE = 3 // fcntl.h:352:1:
|
||||
F_PREALLOCATE = 42 // fcntl.h:233:1:
|
||||
F_PUNCHHOLE = 99 // fcntl.h:301:1:
|
||||
F_RDADVISE = 44 // fcntl.h:235:1:
|
||||
F_RDAHEAD = 45 // fcntl.h:236:1:
|
||||
F_RDLCK = 1 // fcntl.h:327:1:
|
||||
F_SETBACKINGSTORE = 70 // fcntl.h:274:1:
|
||||
F_SETFD = 2 // fcntl.h:219:1:
|
||||
F_SETFL = 4 // fcntl.h:221:1:
|
||||
F_SETLK = 8 // fcntl.h:225:1:
|
||||
F_SETLKW = 9 // fcntl.h:226:1:
|
||||
F_SETLKWTIMEOUT = 10 // fcntl.h:228:1:
|
||||
F_SETNOSIGPIPE = 73 // fcntl.h:279:1:
|
||||
F_SETOWN = 6 // fcntl.h:223:1:
|
||||
F_SETPROTECTIONCLASS = 64 // fcntl.h:259:1:
|
||||
F_SETSIZE = 43 // fcntl.h:234:1:
|
||||
F_SINGLE_WRITER = 76 // fcntl.h:284:1:
|
||||
F_SPECULATIVE_READ = 101 // fcntl.h:305:1:
|
||||
F_THAW_FS = 54 // fcntl.h:246:1:
|
||||
F_TRANSCODEKEY = 75 // fcntl.h:282:1:
|
||||
F_TRIM_ACTIVE_FILE = 100 // fcntl.h:303:1:
|
||||
F_UNLCK = 2 // fcntl.h:328:1:
|
||||
F_VOLPOSMODE = 4 // fcntl.h:354:1:
|
||||
F_WRLCK = 3 // fcntl.h:329:1:
|
||||
GETSIGSINFO_PLATFORM_BINARY = 1 // fcntl.h:444:1:
|
||||
LOCK_EX = 0x02 // fcntl.h:456:1:
|
||||
LOCK_NB = 0x04 // fcntl.h:457:1:
|
||||
LOCK_SH = 0x01 // fcntl.h:455:1:
|
||||
LOCK_UN = 0x08 // fcntl.h:458:1:
|
||||
MAC_OS_VERSION_11_0 = 110000 // AvailabilityVersions.h:238:1:
|
||||
MAC_OS_VERSION_12_0 = 120000 // AvailabilityVersions.h:239:1:
|
||||
MAC_OS_X_VERSION_10_0 = 1000 // AvailabilityVersions.h:206:1:
|
||||
MAC_OS_X_VERSION_10_1 = 1010 // AvailabilityVersions.h:207:1:
|
||||
MAC_OS_X_VERSION_10_10 = 101000 // AvailabilityVersions.h:216:1:
|
||||
MAC_OS_X_VERSION_10_10_2 = 101002 // AvailabilityVersions.h:217:1:
|
||||
MAC_OS_X_VERSION_10_10_3 = 101003 // AvailabilityVersions.h:218:1:
|
||||
MAC_OS_X_VERSION_10_11 = 101100 // AvailabilityVersions.h:219:1:
|
||||
MAC_OS_X_VERSION_10_11_2 = 101102 // AvailabilityVersions.h:220:1:
|
||||
MAC_OS_X_VERSION_10_11_3 = 101103 // AvailabilityVersions.h:221:1:
|
||||
MAC_OS_X_VERSION_10_11_4 = 101104 // AvailabilityVersions.h:222:1:
|
||||
MAC_OS_X_VERSION_10_12 = 101200 // AvailabilityVersions.h:223:1:
|
||||
MAC_OS_X_VERSION_10_12_1 = 101201 // AvailabilityVersions.h:224:1:
|
||||
MAC_OS_X_VERSION_10_12_2 = 101202 // AvailabilityVersions.h:225:1:
|
||||
MAC_OS_X_VERSION_10_12_4 = 101204 // AvailabilityVersions.h:226:1:
|
||||
MAC_OS_X_VERSION_10_13 = 101300 // AvailabilityVersions.h:227:1:
|
||||
MAC_OS_X_VERSION_10_13_1 = 101301 // AvailabilityVersions.h:228:1:
|
||||
MAC_OS_X_VERSION_10_13_2 = 101302 // AvailabilityVersions.h:229:1:
|
||||
MAC_OS_X_VERSION_10_13_4 = 101304 // AvailabilityVersions.h:230:1:
|
||||
MAC_OS_X_VERSION_10_14 = 101400 // AvailabilityVersions.h:231:1:
|
||||
MAC_OS_X_VERSION_10_14_1 = 101401 // AvailabilityVersions.h:232:1:
|
||||
MAC_OS_X_VERSION_10_14_4 = 101404 // AvailabilityVersions.h:233:1:
|
||||
MAC_OS_X_VERSION_10_14_6 = 101406 // AvailabilityVersions.h:234:1:
|
||||
MAC_OS_X_VERSION_10_15 = 101500 // AvailabilityVersions.h:235:1:
|
||||
MAC_OS_X_VERSION_10_15_1 = 101501 // AvailabilityVersions.h:236:1:
|
||||
MAC_OS_X_VERSION_10_16 = 101600 // AvailabilityVersions.h:237:1:
|
||||
MAC_OS_X_VERSION_10_2 = 1020 // AvailabilityVersions.h:208:1:
|
||||
MAC_OS_X_VERSION_10_3 = 1030 // AvailabilityVersions.h:209:1:
|
||||
MAC_OS_X_VERSION_10_4 = 1040 // AvailabilityVersions.h:210:1:
|
||||
MAC_OS_X_VERSION_10_5 = 1050 // AvailabilityVersions.h:211:1:
|
||||
MAC_OS_X_VERSION_10_6 = 1060 // AvailabilityVersions.h:212:1:
|
||||
MAC_OS_X_VERSION_10_7 = 1070 // AvailabilityVersions.h:213:1:
|
||||
MAC_OS_X_VERSION_10_8 = 1080 // AvailabilityVersions.h:214:1:
|
||||
MAC_OS_X_VERSION_10_9 = 1090 // AvailabilityVersions.h:215:1:
|
||||
O_ACCMODE = 0x0003 // fcntl.h:99:1:
|
||||
O_ALERT = 0x20000000 // fcntl.h:537:1:
|
||||
O_APPEND = 0x00000008 // fcntl.h:114:1:
|
||||
O_ASYNC = 0x00000040 // fcntl.h:121:1:
|
||||
O_CLOEXEC = 0x01000000 // fcntl.h:150:1:
|
||||
O_CREAT = 0x00000200 // fcntl.h:125:1:
|
||||
O_DIRECTORY = 0x00100000 // fcntl.h:138:1:
|
||||
O_DP_GETRAWENCRYPTED = 0x0001 // fcntl.h:181:1:
|
||||
O_DP_GETRAWUNENCRYPTED = 0x0002 // fcntl.h:182:1:
|
||||
O_DSYNC = 0x400000 // _o_dsync.h:29:1:
|
||||
O_EVTONLY = 0x00008000 // fcntl.h:130:1:
|
||||
O_EXCL = 0x00000800 // fcntl.h:127:1:
|
||||
O_EXLOCK = 0x00000020 // fcntl.h:120:1:
|
||||
O_FSYNC = 128 // fcntl.h:122:1:
|
||||
O_NDELAY = 4 // fcntl.h:199:1:
|
||||
O_NOCTTY = 0x00020000 // fcntl.h:134:1:
|
||||
O_NOFOLLOW = 0x00000100 // fcntl.h:123:1:
|
||||
O_NOFOLLOW_ANY = 0x20000000 // fcntl.h:155:1:
|
||||
O_NONBLOCK = 0x00000004 // fcntl.h:113:1:
|
||||
O_POPUP = 0x80000000 // fcntl.h:536:1:
|
||||
O_RDONLY = 0x0000 // fcntl.h:96:1:
|
||||
O_RDWR = 0x0002 // fcntl.h:98:1:
|
||||
O_SHLOCK = 0x00000010 // fcntl.h:119:1:
|
||||
O_SYMLINK = 0x00200000 // fcntl.h:142:1:
|
||||
O_SYNC = 0x0080 // _o_sync.h:29:1:
|
||||
O_TRUNC = 0x00000400 // fcntl.h:126:1:
|
||||
O_WRONLY = 0x0001 // fcntl.h:97:1:
|
||||
SEEK_CUR = 1 // _seek_set.h:34:1:
|
||||
SEEK_DATA = 4 // _seek_set.h:44:1:
|
||||
SEEK_END = 2 // _seek_set.h:35:1:
|
||||
SEEK_HOLE = 3 // _seek_set.h:40:1:
|
||||
SEEK_SET = 0 // _seek_set.h:33:1:
|
||||
S_IEXEC = 64 // _s_ifmt.h:72:1:
|
||||
S_IFBLK = 0060000 // _s_ifmt.h:39:1:
|
||||
S_IFCHR = 0020000 // _s_ifmt.h:37:1:
|
||||
S_IFDIR = 0040000 // _s_ifmt.h:38:1:
|
||||
S_IFIFO = 0010000 // _s_ifmt.h:36:1:
|
||||
S_IFLNK = 0120000 // _s_ifmt.h:41:1:
|
||||
S_IFMT = 0170000 // _s_ifmt.h:35:1:
|
||||
S_IFREG = 0100000 // _s_ifmt.h:40:1:
|
||||
S_IFSOCK = 0140000 // _s_ifmt.h:42:1:
|
||||
S_IFWHT = 0160000 // _s_ifmt.h:44:1:
|
||||
S_IREAD = 256 // _s_ifmt.h:70:1:
|
||||
S_IRGRP = 0000040 // _s_ifmt.h:55:1:
|
||||
S_IROTH = 0000004 // _s_ifmt.h:60:1:
|
||||
S_IRUSR = 0000400 // _s_ifmt.h:50:1:
|
||||
S_IRWXG = 0000070 // _s_ifmt.h:54:1:
|
||||
S_IRWXO = 0000007 // _s_ifmt.h:59:1:
|
||||
S_IRWXU = 0000700 // _s_ifmt.h:49:1:
|
||||
S_ISGID = 0002000 // _s_ifmt.h:65:1:
|
||||
S_ISTXT = 512 // _s_ifmt.h:69:1:
|
||||
S_ISUID = 0004000 // _s_ifmt.h:64:1:
|
||||
S_ISVTX = 0001000 // _s_ifmt.h:66:1:
|
||||
S_IWGRP = 0000020 // _s_ifmt.h:56:1:
|
||||
S_IWOTH = 0000002 // _s_ifmt.h:61:1:
|
||||
S_IWRITE = 128 // _s_ifmt.h:71:1:
|
||||
S_IWUSR = 0000200 // _s_ifmt.h:51:1:
|
||||
S_IXGRP = 0000010 // _s_ifmt.h:57:1:
|
||||
S_IXOTH = 0000001 // _s_ifmt.h:62:1:
|
||||
S_IXUSR = 0000100 // _s_ifmt.h:52:1:
|
||||
USER_FSIGNATURES_CDHASH_LEN = 20 // fcntl.h:401:1:
|
||||
X_ARM_MACHTYPES_H_ = 0 // types.h:43:1:
|
||||
X_BSD_ARM__TYPES_H_ = 0 // _types.h:5:1:
|
||||
X_BSD_MACHINE_TYPES_H_ = 0 // types.h:32:1:
|
||||
X_BSD_MACHINE__TYPES_H_ = 0 // _types.h:29:1:
|
||||
X_CDEFS_H_ = 0 // cdefs.h:68:1:
|
||||
X_DARWIN_FEATURE_64_BIT_INODE = 1 // cdefs.h:774:1:
|
||||
X_DARWIN_FEATURE_ONLY_64_BIT_INODE = 1 // cdefs.h:784:1:
|
||||
X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:800:1:
|
||||
X_DARWIN_FEATURE_ONLY_VERS_1050 = 1 // cdefs.h:792:1:
|
||||
X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:808:1:
|
||||
X_FILESEC_T = 0 // _filesec_t.h:29:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_INT16_T = 0 // _int16_t.h:29:1:
|
||||
X_INT32_T = 0 // _int32_t.h:29:1:
|
||||
X_INT64_T = 0 // _int64_t.h:29:1:
|
||||
X_INT8_T = 0 // _int8_t.h:29:1:
|
||||
X_INTPTR_T = 0 // _intptr_t.h:29:1:
|
||||
X_LP64 = 1 // <predefined>:1:1:
|
||||
X_MACHTYPES_H_ = 0 // types.h:44:1:
|
||||
X_MODE_T = 0 // _mode_t.h:29:1:
|
||||
X_Nonnull = 0 // cdefs.h:268:1:
|
||||
X_Null_unspecified = 0 // cdefs.h:271:1:
|
||||
X_Nullable = 0 // cdefs.h:265:1:
|
||||
X_OFF_T = 0 // _off_t.h:29:1:
|
||||
X_PID_T = 0 // _pid_t.h:29:1:
|
||||
X_SIZE_T = 0 // _size_t.h:29:1:
|
||||
X_SYS_FCNTL_H_ = 0 // fcntl.h:71:1:
|
||||
X_SYS__PTHREAD_TYPES_H_ = 0 // _pthread_types.h:30:1:
|
||||
X_SYS__TYPES_H_ = 0 // _types.h:30:1:
|
||||
X_UINTPTR_T = 0 // _uintptr_t.h:29:1:
|
||||
X_U_INT16_T = 0 // _u_int16_t.h:29:1:
|
||||
X_U_INT32_T = 0 // _u_int32_t.h:29:1:
|
||||
X_U_INT64_T = 0 // _u_int64_t.h:29:1:
|
||||
X_U_INT8_T = 0 // _u_int8_t.h:29:1:
|
||||
)
|
||||
|
||||
const ( /* fcntl.h:545:1: */
|
||||
const ( /* fcntl.h:547:1: */
|
||||
FILESEC_OWNER = 1
|
||||
FILESEC_GROUP = 2
|
||||
FILESEC_UUID = 3
|
||||
@@ -741,6 +743,20 @@ var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
|
||||
// __XNU_PRIVATE_EXTERN is a linkage decoration indicating that a symbol can be
|
||||
// used from other compilation units, but not other libraries or executables.
|
||||
|
||||
// We intentionally define to nothing pointer attributes which do not have an
|
||||
// impact on the ABI. __indexable and __bidi_indexable are not defined because
|
||||
// of the ABI incompatibility that makes the diagnostic preferable.
|
||||
|
||||
// Similarly, we intentionally define to nothing the
|
||||
// __ptrcheck_abi_assume_single and __ptrcheck_abi_assume_unsafe_indexable
|
||||
// macros because they do not lead to an ABI incompatibility. However, we do not
|
||||
// define the indexable and unsafe_indexable ones because the diagnostic is
|
||||
// better than the silent ABI break.
|
||||
|
||||
// __unsafe_forge intrinsics are defined as regular C casts.
|
||||
|
||||
// decay operates normally; attribute is meaningless without pointer checks.
|
||||
|
||||
// Architecture validation for current SDK
|
||||
|
||||
// Similar to OS_ENUM/OS_CLOSED_ENUM/OS_OPTIONS/OS_CLOSED_OPTIONS
|
||||
@@ -1408,7 +1424,7 @@ type Flock = struct {
|
||||
Fl_pid Pid_t
|
||||
Fl_type int16
|
||||
Fl_whence int16
|
||||
} /* fcntl.h:359:1 */
|
||||
} /* fcntl.h:361:1 */
|
||||
|
||||
// Copyright (c) 2003-2012 Apple Inc. All rights reserved.
|
||||
//
|
||||
@@ -1887,7 +1903,7 @@ type Flocktimeout = struct {
|
||||
Ftv_sec X__darwin_time_t
|
||||
Ftv_nsec int64
|
||||
}
|
||||
} /* fcntl.h:374:1 */
|
||||
} /* fcntl.h:376:1 */
|
||||
|
||||
// advisory file read data type -
|
||||
// information passed by user to system
|
||||
@@ -1896,7 +1912,7 @@ type Radvisory = struct {
|
||||
Fra_offset Off_t
|
||||
Fra_count int32
|
||||
F__ccgo_pad1 [4]byte
|
||||
} /* fcntl.h:387:1 */
|
||||
} /* fcntl.h:389:1 */
|
||||
|
||||
// detached code signatures data type -
|
||||
// information passed by user to system used by F_ADDSIGS and F_ADDFILESIGS.
|
||||
@@ -1909,13 +1925,13 @@ type Fsignatures = struct {
|
||||
Ffs_fsignatures_size Size_t
|
||||
Ffs_cdhash [20]int8
|
||||
Ffs_hash_type int32
|
||||
} /* fcntl.h:400:9 */
|
||||
} /* fcntl.h:402:9 */
|
||||
|
||||
// detached code signatures data type -
|
||||
// information passed by user to system used by F_ADDSIGS and F_ADDFILESIGS.
|
||||
// F_ADDFILESIGS is a shortcut for files that contain their own signature and
|
||||
// doesn't require mapping of the file in order to load the signature.
|
||||
type Fsignatures_t = Fsignatures /* fcntl.h:410:3 */
|
||||
type Fsignatures_t = Fsignatures /* fcntl.h:412:3 */
|
||||
|
||||
type Fsupplement = struct {
|
||||
Ffs_file_start Off_t
|
||||
@@ -1923,9 +1939,9 @@ type Fsupplement = struct {
|
||||
Ffs_blob_size Size_t
|
||||
Ffs_orig_fd int32
|
||||
F__ccgo_pad1 [4]byte
|
||||
} /* fcntl.h:412:9 */
|
||||
} /* fcntl.h:414:9 */
|
||||
|
||||
type Fsupplement_t = Fsupplement /* fcntl.h:417:3 */
|
||||
type Fsupplement_t = Fsupplement /* fcntl.h:419:3 */
|
||||
|
||||
// DYLD needs to check if the object is allowed to be combined
|
||||
// into the main binary. This is done between the code signature
|
||||
@@ -1939,7 +1955,7 @@ type Fchecklv = struct {
|
||||
Flv_file_start Off_t
|
||||
Flv_error_message_size Size_t
|
||||
Flv_error_message uintptr
|
||||
} /* fcntl.h:431:9 */
|
||||
} /* fcntl.h:433:9 */
|
||||
|
||||
// DYLD needs to check if the object is allowed to be combined
|
||||
// into the main binary. This is done between the code signature
|
||||
@@ -1949,7 +1965,7 @@ type Fchecklv = struct {
|
||||
// the MAC module doesn't say no when LV isn't enabled and then that
|
||||
// is cached on the vnode, and the MAC module never gets change once
|
||||
// a process that library validation enabled.
|
||||
type Fchecklv_t = Fchecklv /* fcntl.h:435:3 */
|
||||
type Fchecklv_t = Fchecklv /* fcntl.h:437:3 */
|
||||
|
||||
// At this time F_GETSIGSINFO can only indicate platformness.
|
||||
// As additional requestable information is defined, new keys will be added and the
|
||||
@@ -1960,14 +1976,14 @@ type Fgetsigsinfo = struct {
|
||||
Ffg_file_start Off_t
|
||||
Ffg_info_request int32
|
||||
Ffg_sig_is_platform int32
|
||||
} /* fcntl.h:445:9 */
|
||||
} /* fcntl.h:447:9 */
|
||||
|
||||
// At this time F_GETSIGSINFO can only indicate platformness.
|
||||
// As additional requestable information is defined, new keys will be added and the
|
||||
// fgetsigsinfo_t structure will be lengthened to add space for the additional information
|
||||
|
||||
// fgetsigsinfo_t used by F_GETSIGSINFO command
|
||||
type Fgetsigsinfo_t = Fgetsigsinfo /* fcntl.h:449:3 */
|
||||
type Fgetsigsinfo_t = Fgetsigsinfo /* fcntl.h:451:3 */
|
||||
|
||||
// lock operations for flock(2)
|
||||
|
||||
@@ -1979,13 +1995,13 @@ type Fstore = struct {
|
||||
Ffst_offset Off_t
|
||||
Ffst_length Off_t
|
||||
Ffst_bytesalloc Off_t
|
||||
} /* fcntl.h:460:9 */
|
||||
} /* fcntl.h:462:9 */
|
||||
|
||||
// lock operations for flock(2)
|
||||
|
||||
// fstore_t type used by F_PREALLOCATE command
|
||||
|
||||
type Fstore_t = Fstore /* fcntl.h:466:3 */
|
||||
type Fstore_t = Fstore /* fcntl.h:468:3 */
|
||||
|
||||
// fpunchhole_t used by F_PUNCHHOLE
|
||||
type Fpunchhole = struct {
|
||||
@@ -1993,19 +2009,19 @@ type Fpunchhole = struct {
|
||||
Freserved uint32
|
||||
Ffp_offset Off_t
|
||||
Ffp_length Off_t
|
||||
} /* fcntl.h:469:9 */
|
||||
} /* fcntl.h:471:9 */
|
||||
|
||||
// fpunchhole_t used by F_PUNCHHOLE
|
||||
type Fpunchhole_t = Fpunchhole /* fcntl.h:474:3 */
|
||||
type Fpunchhole_t = Fpunchhole /* fcntl.h:476:3 */
|
||||
|
||||
// factive_file_trim_t used by F_TRIM_ACTIVE_FILE
|
||||
type Ftrimactivefile = struct {
|
||||
Ffta_offset Off_t
|
||||
Ffta_length Off_t
|
||||
} /* fcntl.h:477:9 */
|
||||
} /* fcntl.h:479:9 */
|
||||
|
||||
// factive_file_trim_t used by F_TRIM_ACTIVE_FILE
|
||||
type Ftrimactivefile_t = Ftrimactivefile /* fcntl.h:480:3 */
|
||||
type Ftrimactivefile_t = Ftrimactivefile /* fcntl.h:482:3 */
|
||||
|
||||
// fspecread_t used by F_SPECULATIVE_READ
|
||||
type Fspecread = struct {
|
||||
@@ -2013,10 +2029,10 @@ type Fspecread = struct {
|
||||
Freserved uint32
|
||||
Ffsr_offset Off_t
|
||||
Ffsr_length Off_t
|
||||
} /* fcntl.h:483:9 */
|
||||
} /* fcntl.h:485:9 */
|
||||
|
||||
// fspecread_t used by F_SPECULATIVE_READ
|
||||
type Fspecread_t = Fspecread /* fcntl.h:488:3 */
|
||||
type Fspecread_t = Fspecread /* fcntl.h:490:3 */
|
||||
|
||||
// fbootstraptransfer_t used by F_READBOOTSTRAP and F_WRITEBOOTSTRAP commands
|
||||
|
||||
@@ -2024,11 +2040,11 @@ type Fbootstraptransfer = struct {
|
||||
Ffbt_offset Off_t
|
||||
Ffbt_length Size_t
|
||||
Ffbt_buffer uintptr
|
||||
} /* fcntl.h:492:9 */
|
||||
} /* fcntl.h:494:9 */
|
||||
|
||||
// fbootstraptransfer_t used by F_READBOOTSTRAP and F_WRITEBOOTSTRAP commands
|
||||
|
||||
type Fbootstraptransfer_t = Fbootstraptransfer /* fcntl.h:496:3 */
|
||||
type Fbootstraptransfer_t = Fbootstraptransfer /* fcntl.h:498:3 */
|
||||
|
||||
// For F_LOG2PHYS this information is passed back to user
|
||||
// Currently only devoffset is returned - that is the VOP_BMAP
|
||||
@@ -2055,10 +2071,10 @@ type Log2phys = struct {
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fl2p_contigbytes Off_t
|
||||
Fl2p_devoffset Off_t
|
||||
} /* fcntl.h:522:1 */
|
||||
} /* fcntl.h:524:1 */
|
||||
|
||||
type Filesec_t = uintptr /* _filesec_t.h:31:25 */
|
||||
|
||||
type Filesec_property_t = uint32 /* fcntl.h:556:3 */
|
||||
type Filesec_property_t = uint32 /* fcntl.h:558:3 */
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
||||
+106
-106
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fcntl/fcntl_freebsd_386.go -pkgname fcntl', DO NOT EDIT.
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_freebsd_386.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
@@ -15,109 +15,109 @@ var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
AT_EACCESS = 0x0100
|
||||
AT_EMPTY_PATH = 0x4000
|
||||
AT_FDCWD = -100
|
||||
AT_REMOVEDIR = 0x0800
|
||||
AT_RESOLVE_BENEATH = 0x2000
|
||||
AT_SYMLINK_FOLLOW = 0x0400
|
||||
AT_SYMLINK_NOFOLLOW = 0x0200
|
||||
FAPPEND = 8
|
||||
FASYNC = 64
|
||||
FDSYNC = 16777216
|
||||
FD_CLOEXEC = 1
|
||||
FD_NONE = -200
|
||||
FFSYNC = 128
|
||||
FNDELAY = 4
|
||||
FNONBLOCK = 4
|
||||
FRDAHEAD = 512
|
||||
FREAD = 0x0001
|
||||
FWRITE = 0x0002
|
||||
F_ADD_SEALS = 19
|
||||
F_CANCEL = 5
|
||||
F_DUP2FD = 10
|
||||
F_DUP2FD_CLOEXEC = 18
|
||||
F_DUPFD = 0
|
||||
F_DUPFD_CLOEXEC = 17
|
||||
F_GETFD = 1
|
||||
F_GETFL = 3
|
||||
F_GETLK = 11
|
||||
F_GETOWN = 5
|
||||
F_GET_SEALS = 20
|
||||
F_ISUNIONSTACK = 21
|
||||
F_KINFO = 22
|
||||
F_OGETLK = 7
|
||||
F_OSETLK = 8
|
||||
F_OSETLKW = 9
|
||||
F_RDAHEAD = 16
|
||||
F_RDLCK = 1
|
||||
F_READAHEAD = 15
|
||||
F_SEAL_GROW = 0x0004
|
||||
F_SEAL_SEAL = 0x0001
|
||||
F_SEAL_SHRINK = 0x0002
|
||||
F_SEAL_WRITE = 0x0008
|
||||
F_SETFD = 2
|
||||
F_SETFL = 4
|
||||
F_SETLK = 12
|
||||
F_SETLKW = 13
|
||||
F_SETLK_REMOTE = 14
|
||||
F_SETOWN = 6
|
||||
F_UNLCK = 2
|
||||
F_UNLCKSYS = 4
|
||||
F_WRLCK = 3
|
||||
LOCK_EX = 0x02
|
||||
LOCK_NB = 0x04
|
||||
LOCK_SH = 0x01
|
||||
LOCK_UN = 0x08
|
||||
O_ACCMODE = 0x0003
|
||||
O_APPEND = 0x0008
|
||||
O_ASYNC = 0x0040
|
||||
O_CLOEXEC = 0x00100000
|
||||
O_CREAT = 0x0200
|
||||
O_DIRECT = 0x00010000
|
||||
O_DIRECTORY = 0x00020000
|
||||
O_DSYNC = 0x01000000
|
||||
O_EMPTY_PATH = 0x02000000
|
||||
O_EXCL = 0x0800
|
||||
O_EXEC = 0x00040000
|
||||
O_EXLOCK = 0x0020
|
||||
O_FSYNC = 0x0080
|
||||
O_NDELAY = 4
|
||||
O_NOCTTY = 0x8000
|
||||
O_NOFOLLOW = 0x0100
|
||||
O_NONBLOCK = 0x0004
|
||||
O_PATH = 0x00400000
|
||||
O_RDONLY = 0x0000
|
||||
O_RDWR = 0x0002
|
||||
O_RESOLVE_BENEATH = 0x00800000
|
||||
O_SEARCH = 262144
|
||||
O_SHLOCK = 0x0010
|
||||
O_SYNC = 0x0080
|
||||
O_TRUNC = 0x0400
|
||||
O_TTY_INIT = 0x00080000
|
||||
O_VERIFY = 0x00200000
|
||||
O_WRONLY = 0x0001
|
||||
POSIX_FADV_DONTNEED = 4
|
||||
POSIX_FADV_NOREUSE = 5
|
||||
POSIX_FADV_NORMAL = 0
|
||||
POSIX_FADV_RANDOM = 1
|
||||
POSIX_FADV_SEQUENTIAL = 2
|
||||
POSIX_FADV_WILLNEED = 3
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_ILP32 = 1
|
||||
X_MACHINE__LIMITS_H_ = 0
|
||||
X_MACHINE__TYPES_H_ = 0
|
||||
X_MODE_T_DECLARED = 0
|
||||
X_Nonnull = 0
|
||||
X_Null_unspecified = 0
|
||||
X_Nullable = 0
|
||||
X_OFF_T_DECLARED = 0
|
||||
X_PID_T_DECLARED = 0
|
||||
X_SYS_CDEFS_H_ = 0
|
||||
X_SYS_FCNTL_H_ = 0
|
||||
X_SYS__TYPES_H_ = 0
|
||||
I386 = 1
|
||||
Unix = 1
|
||||
AT_EACCESS = 0x0100 // fcntl.h:224:1:
|
||||
AT_EMPTY_PATH = 0x4000 // fcntl.h:234:1:
|
||||
AT_FDCWD = -100 // fcntl.h:219:1:
|
||||
AT_REMOVEDIR = 0x0800 // fcntl.h:228:1:
|
||||
AT_RESOLVE_BENEATH = 0x2000 // fcntl.h:232:1:
|
||||
AT_SYMLINK_FOLLOW = 0x0400 // fcntl.h:227:1:
|
||||
AT_SYMLINK_NOFOLLOW = 0x0200 // fcntl.h:226:1:
|
||||
FAPPEND = 8 // fcntl.h:193:1:
|
||||
FASYNC = 64 // fcntl.h:194:1:
|
||||
FDSYNC = 16777216 // fcntl.h:196:1:
|
||||
FD_CLOEXEC = 1 // fcntl.h:283:1:
|
||||
FD_NONE = -200 // fcntl.h:355:1:
|
||||
FFSYNC = 128 // fcntl.h:195:1:
|
||||
FNDELAY = 4 // fcntl.h:198:1:
|
||||
FNONBLOCK = 4 // fcntl.h:197:1:
|
||||
FRDAHEAD = 512 // fcntl.h:210:1:
|
||||
FREAD = 0x0001 // fcntl.h:89:1:
|
||||
FWRITE = 0x0002 // fcntl.h:90:1:
|
||||
F_ADD_SEALS = 19 // fcntl.h:270:1:
|
||||
F_CANCEL = 5 // fcntl.h:291:1:
|
||||
F_DUP2FD = 10 // fcntl.h:255:1:
|
||||
F_DUP2FD_CLOEXEC = 18 // fcntl.h:269:1:
|
||||
F_DUPFD = 0 // fcntl.h:242:1:
|
||||
F_DUPFD_CLOEXEC = 17 // fcntl.h:266:1:
|
||||
F_GETFD = 1 // fcntl.h:243:1:
|
||||
F_GETFL = 3 // fcntl.h:245:1:
|
||||
F_GETLK = 11 // fcntl.h:257:1:
|
||||
F_GETOWN = 5 // fcntl.h:248:1:
|
||||
F_GET_SEALS = 20 // fcntl.h:271:1:
|
||||
F_ISUNIONSTACK = 21 // fcntl.h:272:1:
|
||||
F_KINFO = 22 // fcntl.h:273:1:
|
||||
F_OGETLK = 7 // fcntl.h:252:1:
|
||||
F_OSETLK = 8 // fcntl.h:253:1:
|
||||
F_OSETLKW = 9 // fcntl.h:254:1:
|
||||
F_RDAHEAD = 16 // fcntl.h:263:1:
|
||||
F_RDLCK = 1 // fcntl.h:286:1:
|
||||
F_READAHEAD = 15 // fcntl.h:262:1:
|
||||
F_SEAL_GROW = 0x0004 // fcntl.h:278:1:
|
||||
F_SEAL_SEAL = 0x0001 // fcntl.h:276:1:
|
||||
F_SEAL_SHRINK = 0x0002 // fcntl.h:277:1:
|
||||
F_SEAL_WRITE = 0x0008 // fcntl.h:279:1:
|
||||
F_SETFD = 2 // fcntl.h:244:1:
|
||||
F_SETFL = 4 // fcntl.h:246:1:
|
||||
F_SETLK = 12 // fcntl.h:258:1:
|
||||
F_SETLKW = 13 // fcntl.h:259:1:
|
||||
F_SETLK_REMOTE = 14 // fcntl.h:261:1:
|
||||
F_SETOWN = 6 // fcntl.h:249:1:
|
||||
F_UNLCK = 2 // fcntl.h:287:1:
|
||||
F_UNLCKSYS = 4 // fcntl.h:290:1:
|
||||
F_WRLCK = 3 // fcntl.h:288:1:
|
||||
LOCK_EX = 0x02 // fcntl.h:332:1:
|
||||
LOCK_NB = 0x04 // fcntl.h:333:1:
|
||||
LOCK_SH = 0x01 // fcntl.h:331:1:
|
||||
LOCK_UN = 0x08 // fcntl.h:334:1:
|
||||
O_ACCMODE = 0x0003 // fcntl.h:78:1:
|
||||
O_APPEND = 0x0008 // fcntl.h:93:1:
|
||||
O_ASYNC = 0x0040 // fcntl.h:97:1:
|
||||
O_CLOEXEC = 0x00100000 // fcntl.h:133:1:
|
||||
O_CREAT = 0x0200 // fcntl.h:104:1:
|
||||
O_DIRECT = 0x00010000 // fcntl.h:116:1:
|
||||
O_DIRECTORY = 0x00020000 // fcntl.h:120:1:
|
||||
O_DSYNC = 0x01000000 // fcntl.h:143:1:
|
||||
O_EMPTY_PATH = 0x02000000 // fcntl.h:145:1:
|
||||
O_EXCL = 0x0800 // fcntl.h:106:1:
|
||||
O_EXEC = 0x00040000 // fcntl.h:121:1:
|
||||
O_EXLOCK = 0x0020 // fcntl.h:96:1:
|
||||
O_FSYNC = 0x0080 // fcntl.h:98:1:
|
||||
O_NDELAY = 4 // fcntl.h:199:1:
|
||||
O_NOCTTY = 0x8000 // fcntl.h:112:1:
|
||||
O_NOFOLLOW = 0x0100 // fcntl.h:102:1:
|
||||
O_NONBLOCK = 0x0004 // fcntl.h:92:1:
|
||||
O_PATH = 0x00400000 // fcntl.h:138:1:
|
||||
O_RDONLY = 0x0000 // fcntl.h:75:1:
|
||||
O_RDWR = 0x0002 // fcntl.h:77:1:
|
||||
O_RESOLVE_BENEATH = 0x00800000 // fcntl.h:139:1:
|
||||
O_SEARCH = 262144 // fcntl.h:122:1:
|
||||
O_SHLOCK = 0x0010 // fcntl.h:95:1:
|
||||
O_SYNC = 0x0080 // fcntl.h:100:1:
|
||||
O_TRUNC = 0x0400 // fcntl.h:105:1:
|
||||
O_TTY_INIT = 0x00080000 // fcntl.h:131:1:
|
||||
O_VERIFY = 0x00200000 // fcntl.h:137:1:
|
||||
O_WRONLY = 0x0001 // fcntl.h:76:1:
|
||||
POSIX_FADV_DONTNEED = 4 // fcntl.h:345:1:
|
||||
POSIX_FADV_NOREUSE = 5 // fcntl.h:346:1:
|
||||
POSIX_FADV_NORMAL = 0 // fcntl.h:341:1:
|
||||
POSIX_FADV_RANDOM = 1 // fcntl.h:342:1:
|
||||
POSIX_FADV_SEQUENTIAL = 2 // fcntl.h:343:1:
|
||||
POSIX_FADV_WILLNEED = 3 // fcntl.h:344:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_ILP32 = 1 // <predefined>:1:1:
|
||||
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
|
||||
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
|
||||
X_MODE_T_DECLARED = 0 // fcntl.h:54: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 // fcntl.h:59:1:
|
||||
X_PID_T_DECLARED = 0 // fcntl.h:64:1:
|
||||
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
|
||||
X_SYS_FCNTL_H_ = 0 // fcntl.h:41: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 */
|
||||
@@ -638,8 +638,8 @@ 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
|
||||
// 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
|
||||
|
||||
+101
-101
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fcntl/fcntl_freebsd_amd64.go -pkgname fcntl', DO NOT EDIT.
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_freebsd_amd64.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
@@ -15,104 +15,104 @@ var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
AT_EACCESS = 0x0100
|
||||
AT_FDCWD = -100
|
||||
AT_REMOVEDIR = 0x0800
|
||||
AT_RESOLVE_BENEATH = 0x2000
|
||||
AT_SYMLINK_FOLLOW = 0x0400
|
||||
AT_SYMLINK_NOFOLLOW = 0x0200
|
||||
FAPPEND = 8
|
||||
FASYNC = 64
|
||||
FDSYNC = 16777216
|
||||
FD_CLOEXEC = 1
|
||||
FD_NONE = -200
|
||||
FFSYNC = 128
|
||||
FNDELAY = 4
|
||||
FNONBLOCK = 4
|
||||
FRDAHEAD = 512
|
||||
FREAD = 0x0001
|
||||
FWRITE = 0x0002
|
||||
F_ADD_SEALS = 19
|
||||
F_CANCEL = 5
|
||||
F_DUP2FD = 10
|
||||
F_DUP2FD_CLOEXEC = 18
|
||||
F_DUPFD = 0
|
||||
F_DUPFD_CLOEXEC = 17
|
||||
F_GETFD = 1
|
||||
F_GETFL = 3
|
||||
F_GETLK = 11
|
||||
F_GETOWN = 5
|
||||
F_GET_SEALS = 20
|
||||
F_ISUNIONSTACK = 21
|
||||
F_OGETLK = 7
|
||||
F_OSETLK = 8
|
||||
F_OSETLKW = 9
|
||||
F_RDAHEAD = 16
|
||||
F_RDLCK = 1
|
||||
F_READAHEAD = 15
|
||||
F_SEAL_GROW = 0x0004
|
||||
F_SEAL_SEAL = 0x0001
|
||||
F_SEAL_SHRINK = 0x0002
|
||||
F_SEAL_WRITE = 0x0008
|
||||
F_SETFD = 2
|
||||
F_SETFL = 4
|
||||
F_SETLK = 12
|
||||
F_SETLKW = 13
|
||||
F_SETLK_REMOTE = 14
|
||||
F_SETOWN = 6
|
||||
F_UNLCK = 2
|
||||
F_UNLCKSYS = 4
|
||||
F_WRLCK = 3
|
||||
LOCK_EX = 0x02
|
||||
LOCK_NB = 0x04
|
||||
LOCK_SH = 0x01
|
||||
LOCK_UN = 0x08
|
||||
O_ACCMODE = 0x0003
|
||||
O_APPEND = 0x0008
|
||||
O_ASYNC = 0x0040
|
||||
O_CLOEXEC = 0x00100000
|
||||
O_CREAT = 0x0200
|
||||
O_DIRECT = 0x00010000
|
||||
O_DIRECTORY = 0x00020000
|
||||
O_DSYNC = 0x01000000
|
||||
O_EXCL = 0x0800
|
||||
O_EXEC = 0x00040000
|
||||
O_EXLOCK = 0x0020
|
||||
O_FSYNC = 0x0080
|
||||
O_NDELAY = 4
|
||||
O_NOCTTY = 0x8000
|
||||
O_NOFOLLOW = 0x0100
|
||||
O_NONBLOCK = 0x0004
|
||||
O_RDONLY = 0x0000
|
||||
O_RDWR = 0x0002
|
||||
O_RESOLVE_BENEATH = 0x00800000
|
||||
O_SEARCH = 262144
|
||||
O_SHLOCK = 0x0010
|
||||
O_SYNC = 0x0080
|
||||
O_TRUNC = 0x0400
|
||||
O_TTY_INIT = 0x00080000
|
||||
O_VERIFY = 0x00200000
|
||||
O_WRONLY = 0x0001
|
||||
POSIX_FADV_DONTNEED = 4
|
||||
POSIX_FADV_NOREUSE = 5
|
||||
POSIX_FADV_NORMAL = 0
|
||||
POSIX_FADV_RANDOM = 1
|
||||
POSIX_FADV_SEQUENTIAL = 2
|
||||
POSIX_FADV_WILLNEED = 3
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_LP64 = 1
|
||||
X_MACHINE__LIMITS_H_ = 0
|
||||
X_MACHINE__TYPES_H_ = 0
|
||||
X_MODE_T_DECLARED = 0
|
||||
X_Nonnull = 0
|
||||
X_Null_unspecified = 0
|
||||
X_Nullable = 0
|
||||
X_OFF_T_DECLARED = 0
|
||||
X_PID_T_DECLARED = 0
|
||||
X_SYS_CDEFS_H_ = 0
|
||||
X_SYS_FCNTL_H_ = 0
|
||||
X_SYS__TYPES_H_ = 0
|
||||
Unix = 1
|
||||
AT_EACCESS = 0x0100 // fcntl.h:217:1:
|
||||
AT_FDCWD = -100 // fcntl.h:212:1:
|
||||
AT_REMOVEDIR = 0x0800 // fcntl.h:221:1:
|
||||
AT_RESOLVE_BENEATH = 0x2000 // fcntl.h:223:1:
|
||||
AT_SYMLINK_FOLLOW = 0x0400 // fcntl.h:220:1:
|
||||
AT_SYMLINK_NOFOLLOW = 0x0200 // fcntl.h:219:1:
|
||||
FAPPEND = 8 // fcntl.h:186:1:
|
||||
FASYNC = 64 // fcntl.h:187:1:
|
||||
FDSYNC = 16777216 // fcntl.h:189:1:
|
||||
FD_CLOEXEC = 1 // fcntl.h:272:1:
|
||||
FD_NONE = -200 // fcntl.h:343:1:
|
||||
FFSYNC = 128 // fcntl.h:188:1:
|
||||
FNDELAY = 4 // fcntl.h:191:1:
|
||||
FNONBLOCK = 4 // fcntl.h:190:1:
|
||||
FRDAHEAD = 512 // fcntl.h:203:1:
|
||||
FREAD = 0x0001 // fcntl.h:89:1:
|
||||
FWRITE = 0x0002 // fcntl.h:90:1:
|
||||
F_ADD_SEALS = 19 // fcntl.h:260:1:
|
||||
F_CANCEL = 5 // fcntl.h:280:1:
|
||||
F_DUP2FD = 10 // fcntl.h:245:1:
|
||||
F_DUP2FD_CLOEXEC = 18 // fcntl.h:259:1:
|
||||
F_DUPFD = 0 // fcntl.h:232:1:
|
||||
F_DUPFD_CLOEXEC = 17 // fcntl.h:256:1:
|
||||
F_GETFD = 1 // fcntl.h:233:1:
|
||||
F_GETFL = 3 // fcntl.h:235:1:
|
||||
F_GETLK = 11 // fcntl.h:247:1:
|
||||
F_GETOWN = 5 // fcntl.h:238:1:
|
||||
F_GET_SEALS = 20 // fcntl.h:261:1:
|
||||
F_ISUNIONSTACK = 21 // fcntl.h:262:1:
|
||||
F_OGETLK = 7 // fcntl.h:242:1:
|
||||
F_OSETLK = 8 // fcntl.h:243:1:
|
||||
F_OSETLKW = 9 // fcntl.h:244:1:
|
||||
F_RDAHEAD = 16 // fcntl.h:253:1:
|
||||
F_RDLCK = 1 // fcntl.h:275:1:
|
||||
F_READAHEAD = 15 // fcntl.h:252:1:
|
||||
F_SEAL_GROW = 0x0004 // fcntl.h:267:1:
|
||||
F_SEAL_SEAL = 0x0001 // fcntl.h:265:1:
|
||||
F_SEAL_SHRINK = 0x0002 // fcntl.h:266:1:
|
||||
F_SEAL_WRITE = 0x0008 // fcntl.h:268:1:
|
||||
F_SETFD = 2 // fcntl.h:234:1:
|
||||
F_SETFL = 4 // fcntl.h:236:1:
|
||||
F_SETLK = 12 // fcntl.h:248:1:
|
||||
F_SETLKW = 13 // fcntl.h:249:1:
|
||||
F_SETLK_REMOTE = 14 // fcntl.h:251:1:
|
||||
F_SETOWN = 6 // fcntl.h:239:1:
|
||||
F_UNLCK = 2 // fcntl.h:276:1:
|
||||
F_UNLCKSYS = 4 // fcntl.h:279:1:
|
||||
F_WRLCK = 3 // fcntl.h:277:1:
|
||||
LOCK_EX = 0x02 // fcntl.h:320:1:
|
||||
LOCK_NB = 0x04 // fcntl.h:321:1:
|
||||
LOCK_SH = 0x01 // fcntl.h:319:1:
|
||||
LOCK_UN = 0x08 // fcntl.h:322:1:
|
||||
O_ACCMODE = 0x0003 // fcntl.h:78:1:
|
||||
O_APPEND = 0x0008 // fcntl.h:93:1:
|
||||
O_ASYNC = 0x0040 // fcntl.h:97:1:
|
||||
O_CLOEXEC = 0x00100000 // fcntl.h:133:1:
|
||||
O_CREAT = 0x0200 // fcntl.h:104:1:
|
||||
O_DIRECT = 0x00010000 // fcntl.h:116:1:
|
||||
O_DIRECTORY = 0x00020000 // fcntl.h:120:1:
|
||||
O_DSYNC = 0x01000000 // fcntl.h:143:1:
|
||||
O_EXCL = 0x0800 // fcntl.h:106:1:
|
||||
O_EXEC = 0x00040000 // fcntl.h:121:1:
|
||||
O_EXLOCK = 0x0020 // fcntl.h:96:1:
|
||||
O_FSYNC = 0x0080 // fcntl.h:98:1:
|
||||
O_NDELAY = 4 // fcntl.h:192:1:
|
||||
O_NOCTTY = 0x8000 // fcntl.h:112:1:
|
||||
O_NOFOLLOW = 0x0100 // fcntl.h:102:1:
|
||||
O_NONBLOCK = 0x0004 // fcntl.h:92:1:
|
||||
O_RDONLY = 0x0000 // fcntl.h:75:1:
|
||||
O_RDWR = 0x0002 // fcntl.h:77:1:
|
||||
O_RESOLVE_BENEATH = 0x00800000 // fcntl.h:139:1:
|
||||
O_SEARCH = 262144 // fcntl.h:122:1:
|
||||
O_SHLOCK = 0x0010 // fcntl.h:95:1:
|
||||
O_SYNC = 0x0080 // fcntl.h:100:1:
|
||||
O_TRUNC = 0x0400 // fcntl.h:105:1:
|
||||
O_TTY_INIT = 0x00080000 // fcntl.h:131:1:
|
||||
O_VERIFY = 0x00200000 // fcntl.h:137:1:
|
||||
O_WRONLY = 0x0001 // fcntl.h:76:1:
|
||||
POSIX_FADV_DONTNEED = 4 // fcntl.h:333:1:
|
||||
POSIX_FADV_NOREUSE = 5 // fcntl.h:334:1:
|
||||
POSIX_FADV_NORMAL = 0 // fcntl.h:329:1:
|
||||
POSIX_FADV_RANDOM = 1 // fcntl.h:330:1:
|
||||
POSIX_FADV_SEQUENTIAL = 2 // fcntl.h:331:1:
|
||||
POSIX_FADV_WILLNEED = 3 // fcntl.h:332:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25: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_MODE_T_DECLARED = 0 // fcntl.h:54:1:
|
||||
X_Nonnull = 0 // cdefs.h:783:1:
|
||||
X_Null_unspecified = 0 // cdefs.h:785:1:
|
||||
X_Nullable = 0 // cdefs.h:784:1:
|
||||
X_OFF_T_DECLARED = 0 // fcntl.h:59:1:
|
||||
X_PID_T_DECLARED = 0 // fcntl.h:64:1:
|
||||
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
|
||||
X_SYS_FCNTL_H_ = 0 // fcntl.h:41:1:
|
||||
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
|
||||
Unix = 1 // <predefined>:337:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
@@ -639,8 +639,8 @@ 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
|
||||
// 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
|
||||
|
||||
+716
@@ -0,0 +1,716 @@
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_freebsd_arm.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
import (
|
||||
"math"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ = math.Pi
|
||||
var _ reflect.Kind
|
||||
var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
AT_EACCESS = 0x0100 // fcntl.h:224:1:
|
||||
AT_EMPTY_PATH = 0x4000 // fcntl.h:234:1:
|
||||
AT_FDCWD = -100 // fcntl.h:219:1:
|
||||
AT_REMOVEDIR = 0x0800 // fcntl.h:228:1:
|
||||
AT_RESOLVE_BENEATH = 0x2000 // fcntl.h:232:1:
|
||||
AT_SYMLINK_FOLLOW = 0x0400 // fcntl.h:227:1:
|
||||
AT_SYMLINK_NOFOLLOW = 0x0200 // fcntl.h:226:1:
|
||||
FAPPEND = 8 // fcntl.h:193:1:
|
||||
FASYNC = 64 // fcntl.h:194:1:
|
||||
FDSYNC = 16777216 // fcntl.h:196:1:
|
||||
FD_CLOEXEC = 1 // fcntl.h:283:1:
|
||||
FD_NONE = -200 // fcntl.h:355:1:
|
||||
FFSYNC = 128 // fcntl.h:195:1:
|
||||
FNDELAY = 4 // fcntl.h:198:1:
|
||||
FNONBLOCK = 4 // fcntl.h:197:1:
|
||||
FRDAHEAD = 512 // fcntl.h:210:1:
|
||||
FREAD = 0x0001 // fcntl.h:89:1:
|
||||
FWRITE = 0x0002 // fcntl.h:90:1:
|
||||
F_ADD_SEALS = 19 // fcntl.h:270:1:
|
||||
F_CANCEL = 5 // fcntl.h:291:1:
|
||||
F_DUP2FD = 10 // fcntl.h:255:1:
|
||||
F_DUP2FD_CLOEXEC = 18 // fcntl.h:269:1:
|
||||
F_DUPFD = 0 // fcntl.h:242:1:
|
||||
F_DUPFD_CLOEXEC = 17 // fcntl.h:266:1:
|
||||
F_GETFD = 1 // fcntl.h:243:1:
|
||||
F_GETFL = 3 // fcntl.h:245:1:
|
||||
F_GETLK = 11 // fcntl.h:257:1:
|
||||
F_GETOWN = 5 // fcntl.h:248:1:
|
||||
F_GET_SEALS = 20 // fcntl.h:271:1:
|
||||
F_ISUNIONSTACK = 21 // fcntl.h:272:1:
|
||||
F_KINFO = 22 // fcntl.h:273:1:
|
||||
F_OGETLK = 7 // fcntl.h:252:1:
|
||||
F_OSETLK = 8 // fcntl.h:253:1:
|
||||
F_OSETLKW = 9 // fcntl.h:254:1:
|
||||
F_RDAHEAD = 16 // fcntl.h:263:1:
|
||||
F_RDLCK = 1 // fcntl.h:286:1:
|
||||
F_READAHEAD = 15 // fcntl.h:262:1:
|
||||
F_SEAL_GROW = 0x0004 // fcntl.h:278:1:
|
||||
F_SEAL_SEAL = 0x0001 // fcntl.h:276:1:
|
||||
F_SEAL_SHRINK = 0x0002 // fcntl.h:277:1:
|
||||
F_SEAL_WRITE = 0x0008 // fcntl.h:279:1:
|
||||
F_SETFD = 2 // fcntl.h:244:1:
|
||||
F_SETFL = 4 // fcntl.h:246:1:
|
||||
F_SETLK = 12 // fcntl.h:258:1:
|
||||
F_SETLKW = 13 // fcntl.h:259:1:
|
||||
F_SETLK_REMOTE = 14 // fcntl.h:261:1:
|
||||
F_SETOWN = 6 // fcntl.h:249:1:
|
||||
F_UNLCK = 2 // fcntl.h:287:1:
|
||||
F_UNLCKSYS = 4 // fcntl.h:290:1:
|
||||
F_WRLCK = 3 // fcntl.h:288:1:
|
||||
LOCK_EX = 0x02 // fcntl.h:332:1:
|
||||
LOCK_NB = 0x04 // fcntl.h:333:1:
|
||||
LOCK_SH = 0x01 // fcntl.h:331:1:
|
||||
LOCK_UN = 0x08 // fcntl.h:334:1:
|
||||
O_ACCMODE = 0x0003 // fcntl.h:78:1:
|
||||
O_APPEND = 0x0008 // fcntl.h:93:1:
|
||||
O_ASYNC = 0x0040 // fcntl.h:97:1:
|
||||
O_CLOEXEC = 0x00100000 // fcntl.h:133:1:
|
||||
O_CREAT = 0x0200 // fcntl.h:104:1:
|
||||
O_DIRECT = 0x00010000 // fcntl.h:116:1:
|
||||
O_DIRECTORY = 0x00020000 // fcntl.h:120:1:
|
||||
O_DSYNC = 0x01000000 // fcntl.h:143:1:
|
||||
O_EMPTY_PATH = 0x02000000 // fcntl.h:145:1:
|
||||
O_EXCL = 0x0800 // fcntl.h:106:1:
|
||||
O_EXEC = 0x00040000 // fcntl.h:121:1:
|
||||
O_EXLOCK = 0x0020 // fcntl.h:96:1:
|
||||
O_FSYNC = 0x0080 // fcntl.h:98:1:
|
||||
O_NDELAY = 4 // fcntl.h:199:1:
|
||||
O_NOCTTY = 0x8000 // fcntl.h:112:1:
|
||||
O_NOFOLLOW = 0x0100 // fcntl.h:102:1:
|
||||
O_NONBLOCK = 0x0004 // fcntl.h:92:1:
|
||||
O_PATH = 0x00400000 // fcntl.h:138:1:
|
||||
O_RDONLY = 0x0000 // fcntl.h:75:1:
|
||||
O_RDWR = 0x0002 // fcntl.h:77:1:
|
||||
O_RESOLVE_BENEATH = 0x00800000 // fcntl.h:139:1:
|
||||
O_SEARCH = 262144 // fcntl.h:122:1:
|
||||
O_SHLOCK = 0x0010 // fcntl.h:95:1:
|
||||
O_SYNC = 0x0080 // fcntl.h:100:1:
|
||||
O_TRUNC = 0x0400 // fcntl.h:105:1:
|
||||
O_TTY_INIT = 0x00080000 // fcntl.h:131:1:
|
||||
O_VERIFY = 0x00200000 // fcntl.h:137:1:
|
||||
O_WRONLY = 0x0001 // fcntl.h:76:1:
|
||||
POSIX_FADV_DONTNEED = 4 // fcntl.h:345:1:
|
||||
POSIX_FADV_NOREUSE = 5 // fcntl.h:346:1:
|
||||
POSIX_FADV_NORMAL = 0 // fcntl.h:341:1:
|
||||
POSIX_FADV_RANDOM = 1 // fcntl.h:342:1:
|
||||
POSIX_FADV_SEQUENTIAL = 2 // fcntl.h:343:1:
|
||||
POSIX_FADV_WILLNEED = 3 // fcntl.h:344:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_ILP32 = 1 // <predefined>:1:1:
|
||||
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
|
||||
X_MODE_T_DECLARED = 0 // fcntl.h:54: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 // fcntl.h:59:1:
|
||||
X_PID_T_DECLARED = 0 // fcntl.h:64:1:
|
||||
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
|
||||
X_SYS_FCNTL_H_ = 0 // fcntl.h:41: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) 1983, 1990, 1993
|
||||
// The Regents of the University of California. All rights reserved.
|
||||
// (c) UNIX System Laboratories, Inc.
|
||||
// All or some portions of this file are derived from material licensed
|
||||
// to the University of California by American Telephone and Telegraph
|
||||
// Co. or Unix System Laboratories, Inc. and are reproduced herein with
|
||||
// the permission of UNIX System Laboratories, Inc.
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
// @(#)fcntl.h 8.3 (Berkeley) 1/21/94
|
||||
// $FreeBSD$
|
||||
|
||||
// This file includes the definitions for open and fcntl
|
||||
// described by POSIX for <fcntl.h>; it also includes
|
||||
// related kernel definitions.
|
||||
|
||||
// -
|
||||
// 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 <[email protected]>
|
||||
// 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 <[email protected]>
|
||||
// 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.
|
||||
|
||||
type Mode_t = X__mode_t /* fcntl.h:53:18 */
|
||||
|
||||
type Off_t = X__off_t /* fcntl.h:58:18 */
|
||||
|
||||
type Pid_t = X__pid_t /* fcntl.h:63:18 */
|
||||
|
||||
// File status flags: these are used by open(2), fcntl(2).
|
||||
// They are also used (indirectly) in the kernel file structure f_flags,
|
||||
// which is a superset of the open/fcntl flags. Open flags and f_flags
|
||||
// are inter-convertible using OFLAGS(fflags) and FFLAGS(oflags).
|
||||
// Open/fcntl flags begin with O_; kernel-internal flags begin with F.
|
||||
// open-only flags
|
||||
|
||||
// Kernel encoding of open mode; separate read and write bits that are
|
||||
// independently testable: 1 greater than the above.
|
||||
//
|
||||
// XXX
|
||||
// FREAD and FWRITE are excluded from the #ifdef _KERNEL so that TIOCFLUSH,
|
||||
// which was documented to use FREAD/FWRITE, continues to work.
|
||||
|
||||
// Defined by POSIX 1003.1; BSD default, but must be distinct from O_RDONLY.
|
||||
|
||||
// Attempt to bypass buffer cache
|
||||
|
||||
// Defined by POSIX 1003.1-2008; BSD default, but reserve for future use.
|
||||
|
||||
// XXX missing O_RSYNC.
|
||||
|
||||
// The O_* flags used to have only F* names, which were used in the kernel
|
||||
// and by fcntl. We retain the F* names for the kernel f_flag field
|
||||
// and for backward compatibility for fcntl. These flags are deprecated.
|
||||
|
||||
// Historically, we ran out of bits in f_flag (which was once a short).
|
||||
// However, the flag bits not set in FMASK are only meaningful in the
|
||||
// initial open syscall. Those bits were thus given a
|
||||
// different meaning for fcntl(2).
|
||||
// Read ahead
|
||||
|
||||
// Magic value that specify the use of the current working directory
|
||||
// to determine the target of relative file paths in the openat() and
|
||||
// similar syscalls.
|
||||
|
||||
// Miscellaneous flags for the *at() syscalls.
|
||||
/* #define AT_UNUSED1 0x1000 */ // Was AT_BENEATH
|
||||
|
||||
// Constants used for fcntl(2)
|
||||
|
||||
// command values
|
||||
|
||||
// Seals (F_ADD_SEALS, F_GET_SEALS).
|
||||
|
||||
// file descriptor flags (F_GETFD, F_SETFD)
|
||||
|
||||
// record locking flags (F_GETLK, F_SETLK, F_SETLKW)
|
||||
|
||||
// Advisory file segment locking data type -
|
||||
// information passed to system by user
|
||||
type Flock = struct {
|
||||
Fl_start Off_t
|
||||
Fl_len Off_t
|
||||
Fl_pid Pid_t
|
||||
Fl_type int16
|
||||
Fl_whence int16
|
||||
Fl_sysid int32
|
||||
F__ccgo_pad1 [4]byte
|
||||
} /* fcntl.h:306:1 */
|
||||
|
||||
// Old advisory file segment locking data type,
|
||||
// before adding l_sysid.
|
||||
type X__oflock = struct {
|
||||
Fl_start Off_t
|
||||
Fl_len Off_t
|
||||
Fl_pid Pid_t
|
||||
Fl_type int16
|
||||
Fl_whence int16
|
||||
} /* fcntl.h:320:1 */
|
||||
|
||||
var _ uint8 /* gen.c:2:13: */
|
||||
+770
@@ -0,0 +1,770 @@
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_freebsd_amd64.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
import (
|
||||
"math"
|
||||
"reflect"
|
||||
"sync/atomic"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
var _ = math.Pi
|
||||
var _ reflect.Kind
|
||||
var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
AT_EACCESS = 0x0100 // fcntl.h:217:1:
|
||||
AT_FDCWD = -100 // fcntl.h:212:1:
|
||||
AT_REMOVEDIR = 0x0800 // fcntl.h:221:1:
|
||||
AT_RESOLVE_BENEATH = 0x2000 // fcntl.h:223:1:
|
||||
AT_SYMLINK_FOLLOW = 0x0400 // fcntl.h:220:1:
|
||||
AT_SYMLINK_NOFOLLOW = 0x0200 // fcntl.h:219:1:
|
||||
FAPPEND = 8 // fcntl.h:186:1:
|
||||
FASYNC = 64 // fcntl.h:187:1:
|
||||
FDSYNC = 16777216 // fcntl.h:189:1:
|
||||
FD_CLOEXEC = 1 // fcntl.h:272:1:
|
||||
FD_NONE = -200 // fcntl.h:343:1:
|
||||
FFSYNC = 128 // fcntl.h:188:1:
|
||||
FNDELAY = 4 // fcntl.h:191:1:
|
||||
FNONBLOCK = 4 // fcntl.h:190:1:
|
||||
FRDAHEAD = 512 // fcntl.h:203:1:
|
||||
FREAD = 0x0001 // fcntl.h:89:1:
|
||||
FWRITE = 0x0002 // fcntl.h:90:1:
|
||||
F_ADD_SEALS = 19 // fcntl.h:260:1:
|
||||
F_CANCEL = 5 // fcntl.h:280:1:
|
||||
F_DUP2FD = 10 // fcntl.h:245:1:
|
||||
F_DUP2FD_CLOEXEC = 18 // fcntl.h:259:1:
|
||||
F_DUPFD = 0 // fcntl.h:232:1:
|
||||
F_DUPFD_CLOEXEC = 17 // fcntl.h:256:1:
|
||||
F_GETFD = 1 // fcntl.h:233:1:
|
||||
F_GETFL = 3 // fcntl.h:235:1:
|
||||
F_GETLK = 11 // fcntl.h:247:1:
|
||||
F_GETOWN = 5 // fcntl.h:238:1:
|
||||
F_GET_SEALS = 20 // fcntl.h:261:1:
|
||||
F_ISUNIONSTACK = 21 // fcntl.h:262:1:
|
||||
F_OGETLK = 7 // fcntl.h:242:1:
|
||||
F_OSETLK = 8 // fcntl.h:243:1:
|
||||
F_OSETLKW = 9 // fcntl.h:244:1:
|
||||
F_RDAHEAD = 16 // fcntl.h:253:1:
|
||||
F_RDLCK = 1 // fcntl.h:275:1:
|
||||
F_READAHEAD = 15 // fcntl.h:252:1:
|
||||
F_SEAL_GROW = 0x0004 // fcntl.h:267:1:
|
||||
F_SEAL_SEAL = 0x0001 // fcntl.h:265:1:
|
||||
F_SEAL_SHRINK = 0x0002 // fcntl.h:266:1:
|
||||
F_SEAL_WRITE = 0x0008 // fcntl.h:268:1:
|
||||
F_SETFD = 2 // fcntl.h:234:1:
|
||||
F_SETFL = 4 // fcntl.h:236:1:
|
||||
F_SETLK = 12 // fcntl.h:248:1:
|
||||
F_SETLKW = 13 // fcntl.h:249:1:
|
||||
F_SETLK_REMOTE = 14 // fcntl.h:251:1:
|
||||
F_SETOWN = 6 // fcntl.h:239:1:
|
||||
F_UNLCK = 2 // fcntl.h:276:1:
|
||||
F_UNLCKSYS = 4 // fcntl.h:279:1:
|
||||
F_WRLCK = 3 // fcntl.h:277:1:
|
||||
LOCK_EX = 0x02 // fcntl.h:320:1:
|
||||
LOCK_NB = 0x04 // fcntl.h:321:1:
|
||||
LOCK_SH = 0x01 // fcntl.h:319:1:
|
||||
LOCK_UN = 0x08 // fcntl.h:322:1:
|
||||
O_ACCMODE = 0x0003 // fcntl.h:78:1:
|
||||
O_APPEND = 0x0008 // fcntl.h:93:1:
|
||||
O_ASYNC = 0x0040 // fcntl.h:97:1:
|
||||
O_CLOEXEC = 0x00100000 // fcntl.h:133:1:
|
||||
O_CREAT = 0x0200 // fcntl.h:104:1:
|
||||
O_DIRECT = 0x00010000 // fcntl.h:116:1:
|
||||
O_DIRECTORY = 0x00020000 // fcntl.h:120:1:
|
||||
O_DSYNC = 0x01000000 // fcntl.h:143:1:
|
||||
O_EXCL = 0x0800 // fcntl.h:106:1:
|
||||
O_EXEC = 0x00040000 // fcntl.h:121:1:
|
||||
O_EXLOCK = 0x0020 // fcntl.h:96:1:
|
||||
O_FSYNC = 0x0080 // fcntl.h:98:1:
|
||||
O_NDELAY = 4 // fcntl.h:192:1:
|
||||
O_NOCTTY = 0x8000 // fcntl.h:112:1:
|
||||
O_NOFOLLOW = 0x0100 // fcntl.h:102:1:
|
||||
O_NONBLOCK = 0x0004 // fcntl.h:92:1:
|
||||
O_RDONLY = 0x0000 // fcntl.h:75:1:
|
||||
O_RDWR = 0x0002 // fcntl.h:77:1:
|
||||
O_RESOLVE_BENEATH = 0x00800000 // fcntl.h:139:1:
|
||||
O_SEARCH = 262144 // fcntl.h:122:1:
|
||||
O_SHLOCK = 0x0010 // fcntl.h:95:1:
|
||||
O_SYNC = 0x0080 // fcntl.h:100:1:
|
||||
O_TRUNC = 0x0400 // fcntl.h:105:1:
|
||||
O_TTY_INIT = 0x00080000 // fcntl.h:131:1:
|
||||
O_VERIFY = 0x00200000 // fcntl.h:137:1:
|
||||
O_WRONLY = 0x0001 // fcntl.h:76:1:
|
||||
POSIX_FADV_DONTNEED = 4 // fcntl.h:333:1:
|
||||
POSIX_FADV_NOREUSE = 5 // fcntl.h:334:1:
|
||||
POSIX_FADV_NORMAL = 0 // fcntl.h:329:1:
|
||||
POSIX_FADV_RANDOM = 1 // fcntl.h:330:1:
|
||||
POSIX_FADV_SEQUENTIAL = 2 // fcntl.h:331:1:
|
||||
POSIX_FADV_WILLNEED = 3 // fcntl.h:332:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25: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_MODE_T_DECLARED = 0 // fcntl.h:54:1:
|
||||
X_Nonnull = 0 // cdefs.h:783:1:
|
||||
X_Null_unspecified = 0 // cdefs.h:785:1:
|
||||
X_Nullable = 0 // cdefs.h:784:1:
|
||||
X_OFF_T_DECLARED = 0 // fcntl.h:59:1:
|
||||
X_PID_T_DECLARED = 0 // fcntl.h:64:1:
|
||||
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
|
||||
X_SYS_FCNTL_H_ = 0 // fcntl.h:41:1:
|
||||
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
|
||||
Unix = 1 // <predefined>:337: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) 1983, 1990, 1993
|
||||
// The Regents of the University of California. All rights reserved.
|
||||
// (c) UNIX System Laboratories, Inc.
|
||||
// All or some portions of this file are derived from material licensed
|
||||
// to the University of California by American Telephone and Telegraph
|
||||
// Co. or Unix System Laboratories, Inc. and are reproduced herein with
|
||||
// the permission of UNIX System Laboratories, Inc.
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
// @(#)fcntl.h 8.3 (Berkeley) 1/21/94
|
||||
// $FreeBSD$
|
||||
|
||||
// This file includes the definitions for open and fcntl
|
||||
// described by POSIX for <fcntl.h>; it also includes
|
||||
// related kernel definitions.
|
||||
|
||||
// -
|
||||
// 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, i.e. 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.
|
||||
|
||||
// -
|
||||
// SPDX-License-Identifier: BSD-2-Clause-FreeBSD
|
||||
//
|
||||
// Copyright (c) 2002 Mike Barcroft <[email protected]>
|
||||
// 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 <[email protected]>
|
||||
// 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.
|
||||
|
||||
type Mode_t = X__mode_t /* fcntl.h:53:18 */
|
||||
|
||||
type Off_t = X__off_t /* fcntl.h:58:18 */
|
||||
|
||||
type Pid_t = X__pid_t /* fcntl.h:63:18 */
|
||||
|
||||
// File status flags: these are used by open(2), fcntl(2).
|
||||
// They are also used (indirectly) in the kernel file structure f_flags,
|
||||
// which is a superset of the open/fcntl flags. Open flags and f_flags
|
||||
// are inter-convertible using OFLAGS(fflags) and FFLAGS(oflags).
|
||||
// Open/fcntl flags begin with O_; kernel-internal flags begin with F.
|
||||
// open-only flags
|
||||
|
||||
// Kernel encoding of open mode; separate read and write bits that are
|
||||
// independently testable: 1 greater than the above.
|
||||
//
|
||||
// XXX
|
||||
// FREAD and FWRITE are excluded from the #ifdef _KERNEL so that TIOCFLUSH,
|
||||
// which was documented to use FREAD/FWRITE, continues to work.
|
||||
|
||||
// Defined by POSIX 1003.1; BSD default, but must be distinct from O_RDONLY.
|
||||
|
||||
// Attempt to bypass buffer cache
|
||||
|
||||
// Defined by POSIX 1003.1-2008; BSD default, but reserve for future use.
|
||||
|
||||
/* #define O_UNUSED1 0x00400000 */ // Was O_BENEATH
|
||||
|
||||
// XXX missing O_RSYNC.
|
||||
|
||||
// The O_* flags used to have only F* names, which were used in the kernel
|
||||
// and by fcntl. We retain the F* names for the kernel f_flag field
|
||||
// and for backward compatibility for fcntl. These flags are deprecated.
|
||||
|
||||
// Historically, we ran out of bits in f_flag (which was once a short).
|
||||
// However, the flag bits not set in FMASK are only meaningful in the
|
||||
// initial open syscall. Those bits were thus given a
|
||||
// different meaning for fcntl(2).
|
||||
// Read ahead
|
||||
|
||||
// Magic value that specify the use of the current working directory
|
||||
// to determine the target of relative file paths in the openat() and
|
||||
// similar syscalls.
|
||||
|
||||
// Miscellaneous flags for the *at() syscalls.
|
||||
/* #define AT_UNUSED1 0x1000 */ // Was AT_BENEATH
|
||||
|
||||
// Constants used for fcntl(2)
|
||||
|
||||
// command values
|
||||
|
||||
// Seals (F_ADD_SEALS, F_GET_SEALS).
|
||||
|
||||
// file descriptor flags (F_GETFD, F_SETFD)
|
||||
|
||||
// record locking flags (F_GETLK, F_SETLK, F_SETLKW)
|
||||
|
||||
// Advisory file segment locking data type -
|
||||
// information passed to system by user
|
||||
type Flock = struct {
|
||||
Fl_start Off_t
|
||||
Fl_len Off_t
|
||||
Fl_pid Pid_t
|
||||
Fl_type int16
|
||||
Fl_whence int16
|
||||
Fl_sysid int32
|
||||
F__ccgo_pad1 [4]byte
|
||||
} /* fcntl.h:294:1 */
|
||||
|
||||
// Old advisory file segment locking data type,
|
||||
// before adding l_sysid.
|
||||
type X__oflock = struct {
|
||||
Fl_start Off_t
|
||||
Fl_len Off_t
|
||||
Fl_pid Pid_t
|
||||
Fl_type int16
|
||||
Fl_whence int16
|
||||
} /* fcntl.h:308:1 */
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
||||
+13
-8
@@ -822,7 +822,8 @@ type X__syscall_slong_t = int32 /* types.h:196:33 */
|
||||
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.
|
||||
//
|
||||
// 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 */
|
||||
|
||||
@@ -833,13 +834,15 @@ type X__intptr_t = int32 /* types.h:206:25 */
|
||||
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.
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
// 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 */
|
||||
|
||||
// Get the definitions of O_*, F_*, FD_*: all the
|
||||
@@ -941,8 +944,9 @@ type Flock = struct {
|
||||
// argument).
|
||||
|
||||
// POSIX.1-2001 specifies that these types are defined by <fcntl.h>.
|
||||
// Earlier POSIX standards permitted any type ending in `_t' to be defined
|
||||
// by any POSIX header, so we don't conditionalize the definitions here.
|
||||
//
|
||||
// Earlier POSIX standards permitted any type ending in `_t' to be defined
|
||||
// by any POSIX header, so we don't conditionalize the definitions here.
|
||||
type Mode_t = X__mode_t /* fcntl.h:50:18 */
|
||||
|
||||
type Off_t = X__off64_t /* fcntl.h:58:19 */
|
||||
@@ -1006,7 +1010,8 @@ type Pid_t = X__pid_t /* fcntl.h:69:17 */
|
||||
// values.
|
||||
|
||||
// POSIX.1b structure for a time value. This is like a `struct timeval' but
|
||||
// has nanoseconds instead of microseconds.
|
||||
//
|
||||
// has nanoseconds instead of microseconds.
|
||||
type Timespec = struct {
|
||||
Ftv_sec X__time_t
|
||||
Ftv_nsec X__syscall_slong_t
|
||||
|
||||
+132
-128
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fcntl/fcntl_linux_amd64.go -pkgname fcntl', DO NOT EDIT.
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_linux_amd64.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
@@ -15,127 +15,127 @@ var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
AT_EACCESS = 0x200
|
||||
AT_FDCWD = -100
|
||||
AT_REMOVEDIR = 0x200
|
||||
AT_SYMLINK_FOLLOW = 0x400
|
||||
AT_SYMLINK_NOFOLLOW = 0x100
|
||||
FAPPEND = 1024
|
||||
FASYNC = 8192
|
||||
FD_CLOEXEC = 1
|
||||
FFSYNC = 1052672
|
||||
FNDELAY = 2048
|
||||
FNONBLOCK = 2048
|
||||
F_DUPFD = 0
|
||||
F_DUPFD_CLOEXEC = 1030
|
||||
F_EXLCK = 4
|
||||
F_GETFD = 1
|
||||
F_GETFL = 3
|
||||
F_GETLK = 5
|
||||
F_GETLK64 = 5
|
||||
F_GETOWN = 9
|
||||
F_LOCK = 1
|
||||
F_OK = 0
|
||||
F_RDLCK = 0
|
||||
F_SETFD = 2
|
||||
F_SETFL = 4
|
||||
F_SETLK = 6
|
||||
F_SETLK64 = 6
|
||||
F_SETLKW = 7
|
||||
F_SETLKW64 = 7
|
||||
F_SETOWN = 8
|
||||
F_SHLCK = 8
|
||||
F_TEST = 3
|
||||
F_TLOCK = 2
|
||||
F_ULOCK = 0
|
||||
F_UNLCK = 2
|
||||
F_WRLCK = 1
|
||||
LOCK_EX = 2
|
||||
LOCK_NB = 4
|
||||
LOCK_SH = 1
|
||||
LOCK_UN = 8
|
||||
O_ACCMODE = 0003
|
||||
O_APPEND = 02000
|
||||
O_ASYNC = 020000
|
||||
O_CLOEXEC = 524288
|
||||
O_CREAT = 0100
|
||||
O_DIRECTORY = 65536
|
||||
O_DSYNC = 4096
|
||||
O_EXCL = 0200
|
||||
O_FSYNC = 1052672
|
||||
O_NDELAY = 2048
|
||||
O_NOCTTY = 0400
|
||||
O_NOFOLLOW = 131072
|
||||
O_NONBLOCK = 04000
|
||||
O_RDONLY = 00
|
||||
O_RDWR = 02
|
||||
O_RSYNC = 1052672
|
||||
O_SYNC = 04010000
|
||||
O_TRUNC = 01000
|
||||
O_WRONLY = 01
|
||||
POSIX_FADV_DONTNEED = 4
|
||||
POSIX_FADV_NOREUSE = 5
|
||||
POSIX_FADV_NORMAL = 0
|
||||
POSIX_FADV_RANDOM = 1
|
||||
POSIX_FADV_SEQUENTIAL = 2
|
||||
POSIX_FADV_WILLNEED = 3
|
||||
R_OK = 4
|
||||
SEEK_CUR = 1
|
||||
SEEK_END = 2
|
||||
SEEK_SET = 0
|
||||
S_IFBLK = 24576
|
||||
S_IFCHR = 8192
|
||||
S_IFDIR = 16384
|
||||
S_IFIFO = 4096
|
||||
S_IFLNK = 40960
|
||||
S_IFMT = 61440
|
||||
S_IFREG = 32768
|
||||
S_IFSOCK = 49152
|
||||
S_IRGRP = 32
|
||||
S_IROTH = 4
|
||||
S_IRUSR = 256
|
||||
S_IRWXG = 56
|
||||
S_IRWXO = 7
|
||||
S_IRWXU = 448
|
||||
S_ISGID = 1024
|
||||
S_ISUID = 2048
|
||||
S_ISVTX = 512
|
||||
S_IWGRP = 16
|
||||
S_IWOTH = 2
|
||||
S_IWUSR = 128
|
||||
S_IXGRP = 8
|
||||
S_IXOTH = 1
|
||||
S_IXUSR = 64
|
||||
UTIME_NOW = 1073741823
|
||||
UTIME_OMIT = 1073741822
|
||||
W_OK = 2
|
||||
X_OK = 1
|
||||
X_ATFILE_SOURCE = 1
|
||||
X_BITS_ENDIANNESS_H = 1
|
||||
X_BITS_ENDIAN_H = 1
|
||||
X_BITS_STAT_H = 1
|
||||
X_BITS_TIME64_H = 1
|
||||
X_BITS_TYPESIZES_H = 1
|
||||
X_BITS_TYPES_H = 1
|
||||
X_DEFAULT_SOURCE = 1
|
||||
X_FCNTL_H = 1
|
||||
X_FEATURES_H = 1
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_LP64 = 1
|
||||
X_MKNOD_VER_LINUX = 0
|
||||
X_POSIX_C_SOURCE = 200809
|
||||
X_POSIX_SOURCE = 1
|
||||
X_STATBUF_ST_BLKSIZE = 0
|
||||
X_STATBUF_ST_NSEC = 0
|
||||
X_STATBUF_ST_RDEV = 0
|
||||
X_STAT_VER = 1
|
||||
X_STAT_VER_KERNEL = 0
|
||||
X_STAT_VER_LINUX = 1
|
||||
X_STDC_PREDEF_H = 1
|
||||
X_STRUCT_TIMESPEC = 1
|
||||
X_SYS_CDEFS_H = 1
|
||||
Linux = 1
|
||||
Unix = 1
|
||||
AT_EACCESS = 0x200 // fcntl-linux.h:388:1:
|
||||
AT_FDCWD = -100 // fcntl-linux.h:371:1:
|
||||
AT_REMOVEDIR = 0x200 // fcntl-linux.h:375:1:
|
||||
AT_SYMLINK_FOLLOW = 0x400 // fcntl-linux.h:377:1:
|
||||
AT_SYMLINK_NOFOLLOW = 0x100 // fcntl-linux.h:374:1:
|
||||
FAPPEND = 1024 // fcntl-linux.h:304:1:
|
||||
FASYNC = 8192 // fcntl-linux.h:306:1:
|
||||
FD_CLOEXEC = 1 // fcntl-linux.h:219:1:
|
||||
FFSYNC = 1052672 // fcntl-linux.h:305:1:
|
||||
FNDELAY = 2048 // fcntl-linux.h:308:1:
|
||||
FNONBLOCK = 2048 // fcntl-linux.h:307:1:
|
||||
F_DUPFD = 0 // fcntl-linux.h:167:1:
|
||||
F_DUPFD_CLOEXEC = 1030 // fcntl-linux.h:214:1:
|
||||
F_EXLCK = 4 // fcntl-linux.h:231:1:
|
||||
F_GETFD = 1 // fcntl-linux.h:168:1:
|
||||
F_GETFL = 3 // fcntl-linux.h:170:1:
|
||||
F_GETLK = 5 // fcntl-linux.h:109:1:
|
||||
F_GETLK64 = 5 // fcntl.h:29:1:
|
||||
F_GETOWN = 9 // fcntl-linux.h:180:1:
|
||||
F_LOCK = 1 // fcntl.h:238:1:
|
||||
F_OK = 0 // fcntl.h:131:1:
|
||||
F_RDLCK = 0 // fcntl-linux.h:223:1:
|
||||
F_SETFD = 2 // fcntl-linux.h:169:1:
|
||||
F_SETFL = 4 // fcntl-linux.h:171:1:
|
||||
F_SETLK = 6 // fcntl-linux.h:110:1:
|
||||
F_SETLK64 = 6 // fcntl.h:30:1:
|
||||
F_SETLKW = 7 // fcntl-linux.h:111:1:
|
||||
F_SETLKW64 = 7 // fcntl.h:31:1:
|
||||
F_SETOWN = 8 // fcntl-linux.h:179:1:
|
||||
F_SHLCK = 8 // fcntl-linux.h:232:1:
|
||||
F_TEST = 3 // fcntl.h:240:1:
|
||||
F_TLOCK = 2 // fcntl.h:239:1:
|
||||
F_ULOCK = 0 // fcntl.h:237:1:
|
||||
F_UNLCK = 2 // fcntl-linux.h:225:1:
|
||||
F_WRLCK = 1 // fcntl-linux.h:224:1:
|
||||
LOCK_EX = 2 // fcntl-linux.h:238:1:
|
||||
LOCK_NB = 4 // fcntl-linux.h:239:1:
|
||||
LOCK_SH = 1 // fcntl-linux.h:237:1:
|
||||
LOCK_UN = 8 // fcntl-linux.h:241:1:
|
||||
O_ACCMODE = 0003 // fcntl-linux.h:42:1:
|
||||
O_APPEND = 02000 // fcntl-linux.h:59:1:
|
||||
O_ASYNC = 020000 // fcntl-linux.h:72:1:
|
||||
O_CLOEXEC = 524288 // fcntl-linux.h:144:1:
|
||||
O_CREAT = 0100 // fcntl-linux.h:47:1:
|
||||
O_DIRECTORY = 65536 // fcntl-linux.h:142:1:
|
||||
O_DSYNC = 4096 // fcntl-linux.h:158:1:
|
||||
O_EXCL = 0200 // fcntl-linux.h:50:1:
|
||||
O_FSYNC = 1052672 // fcntl-linux.h:70:1:
|
||||
O_NDELAY = 2048 // fcntl-linux.h:65:1:
|
||||
O_NOCTTY = 0400 // fcntl-linux.h:53:1:
|
||||
O_NOFOLLOW = 131072 // fcntl-linux.h:143:1:
|
||||
O_NONBLOCK = 04000 // fcntl-linux.h:62:1:
|
||||
O_RDONLY = 00 // fcntl-linux.h:43:1:
|
||||
O_RDWR = 02 // fcntl-linux.h:45:1:
|
||||
O_RSYNC = 1052672 // fcntl-linux.h:162:1:
|
||||
O_SYNC = 04010000 // fcntl-linux.h:68:1:
|
||||
O_TRUNC = 01000 // fcntl-linux.h:56:1:
|
||||
O_WRONLY = 01 // fcntl-linux.h:44:1:
|
||||
POSIX_FADV_DONTNEED = 4 // fcntl-linux.h:321:1:
|
||||
POSIX_FADV_NOREUSE = 5 // fcntl-linux.h:322:1:
|
||||
POSIX_FADV_NORMAL = 0 // fcntl-linux.h:317:1:
|
||||
POSIX_FADV_RANDOM = 1 // fcntl-linux.h:318:1:
|
||||
POSIX_FADV_SEQUENTIAL = 2 // fcntl-linux.h:319:1:
|
||||
POSIX_FADV_WILLNEED = 3 // fcntl-linux.h:320:1:
|
||||
R_OK = 4 // fcntl.h:128:1:
|
||||
SEEK_CUR = 1 // fcntl.h:138:1:
|
||||
SEEK_END = 2 // fcntl.h:139:1:
|
||||
SEEK_SET = 0 // fcntl.h:137:1:
|
||||
S_IFBLK = 24576 // fcntl.h:83:1:
|
||||
S_IFCHR = 8192 // fcntl.h:82:1:
|
||||
S_IFDIR = 16384 // fcntl.h:81:1:
|
||||
S_IFIFO = 4096 // fcntl.h:86:1:
|
||||
S_IFLNK = 40960 // fcntl.h:89:1:
|
||||
S_IFMT = 61440 // fcntl.h:80:1:
|
||||
S_IFREG = 32768 // fcntl.h:84:1:
|
||||
S_IFSOCK = 49152 // fcntl.h:92:1:
|
||||
S_IRGRP = 32 // fcntl.h:111:1:
|
||||
S_IROTH = 4 // fcntl.h:117:1:
|
||||
S_IRUSR = 256 // fcntl.h:105:1:
|
||||
S_IRWXG = 56 // fcntl.h:115:1:
|
||||
S_IRWXO = 7 // fcntl.h:121:1:
|
||||
S_IRWXU = 448 // fcntl.h:109:1:
|
||||
S_ISGID = 1024 // fcntl.h:98:1:
|
||||
S_ISUID = 2048 // fcntl.h:97:1:
|
||||
S_ISVTX = 512 // fcntl.h:102:1:
|
||||
S_IWGRP = 16 // fcntl.h:112:1:
|
||||
S_IWOTH = 2 // fcntl.h:118:1:
|
||||
S_IWUSR = 128 // fcntl.h:106:1:
|
||||
S_IXGRP = 8 // fcntl.h:113:1:
|
||||
S_IXOTH = 1 // fcntl.h:119:1:
|
||||
S_IXUSR = 64 // fcntl.h:107:1:
|
||||
UTIME_NOW = 1073741823 // stat.h:206:1:
|
||||
UTIME_OMIT = 1073741822 // stat.h:207:1:
|
||||
W_OK = 2 // fcntl.h:129:1:
|
||||
X_OK = 1 // fcntl.h:130:1:
|
||||
X_ATFILE_SOURCE = 1 // features.h:342:1:
|
||||
X_BITS_ENDIANNESS_H = 1 // endianness.h:2:1:
|
||||
X_BITS_ENDIAN_H = 1 // endian.h:20:1:
|
||||
X_BITS_STAT_H = 1 // stat.h:23: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_DEFAULT_SOURCE = 1 // features.h:227:1:
|
||||
X_FCNTL_H = 1 // fcntl.h:23:1:
|
||||
X_FEATURES_H = 1 // features.h:19:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_LP64 = 1 // <predefined>:284:1:
|
||||
X_MKNOD_VER_LINUX = 0 // stat.h:41:1:
|
||||
X_POSIX_C_SOURCE = 200809 // features.h:281:1:
|
||||
X_POSIX_SOURCE = 1 // features.h:279:1:
|
||||
X_STATBUF_ST_BLKSIZE = 0 // stat.h:172:1:
|
||||
X_STATBUF_ST_NSEC = 0 // stat.h:175:1:
|
||||
X_STATBUF_ST_RDEV = 0 // stat.h:173:1:
|
||||
X_STAT_VER = 1 // stat.h:44:1:
|
||||
X_STAT_VER_KERNEL = 0 // stat.h:37:1:
|
||||
X_STAT_VER_LINUX = 1 // stat.h:38:1:
|
||||
X_STDC_PREDEF_H = 1 // <predefined>:162:1:
|
||||
X_STRUCT_TIMESPEC = 1 // struct_timespec.h:3:1:
|
||||
X_SYS_CDEFS_H = 1 // cdefs.h:19:1:
|
||||
Linux = 1 // <predefined>:231:1:
|
||||
Unix = 1 // <predefined>:177:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
@@ -837,7 +837,8 @@ type X__syscall_slong_t = int64 /* types.h:196:33 */
|
||||
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.
|
||||
//
|
||||
// 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 */
|
||||
|
||||
@@ -848,8 +849,9 @@ type X__intptr_t = int64 /* types.h:206:25 */
|
||||
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.
|
||||
//
|
||||
// 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
|
||||
@@ -959,8 +961,9 @@ type Flock = struct {
|
||||
// argument).
|
||||
|
||||
// POSIX.1-2001 specifies that these types are defined by <fcntl.h>.
|
||||
// Earlier POSIX standards permitted any type ending in `_t' to be defined
|
||||
// by any POSIX header, so we don't conditionalize the definitions here.
|
||||
//
|
||||
// Earlier POSIX standards permitted any type ending in `_t' to be defined
|
||||
// by any POSIX header, so we don't conditionalize the definitions here.
|
||||
type Mode_t = X__mode_t /* fcntl.h:50:18 */
|
||||
|
||||
type Off_t = X__off64_t /* fcntl.h:58:19 */
|
||||
@@ -1024,7 +1027,8 @@ type Pid_t = X__pid_t /* fcntl.h:69:17 */
|
||||
// values.
|
||||
|
||||
// POSIX.1b structure for a time value. This is like a `struct timeval' but
|
||||
// has nanoseconds instead of microseconds.
|
||||
//
|
||||
// has nanoseconds instead of microseconds.
|
||||
type Timespec = struct {
|
||||
Ftv_sec X__time_t
|
||||
Ftv_nsec X__syscall_slong_t
|
||||
|
||||
+13
-8
@@ -881,7 +881,8 @@ type X__syscall_slong_t = int32 /* types.h:196:33 */
|
||||
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.
|
||||
//
|
||||
// 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 */
|
||||
|
||||
@@ -892,13 +893,15 @@ type X__intptr_t = int32 /* types.h:206:25 */
|
||||
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.
|
||||
//
|
||||
// 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.
|
||||
//
|
||||
// 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 */
|
||||
|
||||
// Get the definitions of O_*, F_*, FD_*: all the
|
||||
@@ -1002,8 +1005,9 @@ type Flock = struct {
|
||||
// argument).
|
||||
|
||||
// POSIX.1-2001 specifies that these types are defined by <fcntl.h>.
|
||||
// Earlier POSIX standards permitted any type ending in `_t' to be defined
|
||||
// by any POSIX header, so we don't conditionalize the definitions here.
|
||||
//
|
||||
// Earlier POSIX standards permitted any type ending in `_t' to be defined
|
||||
// by any POSIX header, so we don't conditionalize the definitions here.
|
||||
type Mode_t = X__mode_t /* fcntl.h:50:18 */
|
||||
|
||||
type Off_t = X__off64_t /* fcntl.h:58:19 */
|
||||
@@ -1067,7 +1071,8 @@ type Pid_t = X__pid_t /* fcntl.h:69:17 */
|
||||
// values.
|
||||
|
||||
// POSIX.1b structure for a time value. This is like a `struct timeval' but
|
||||
// has nanoseconds instead of microseconds.
|
||||
//
|
||||
// has nanoseconds instead of microseconds.
|
||||
type Timespec = struct {
|
||||
Ftv_sec X__time_t
|
||||
Ftv_nsec X__syscall_slong_t
|
||||
|
||||
+10
-6
@@ -905,7 +905,8 @@ type X__syscall_slong_t = int64 /* types.h:196:33 */
|
||||
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.
|
||||
//
|
||||
// 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 */
|
||||
|
||||
@@ -916,8 +917,9 @@ type X__intptr_t = int64 /* types.h:206:25 */
|
||||
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.
|
||||
//
|
||||
// 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
|
||||
@@ -1026,8 +1028,9 @@ type Flock = struct {
|
||||
// argument).
|
||||
|
||||
// POSIX.1-2001 specifies that these types are defined by <fcntl.h>.
|
||||
// Earlier POSIX standards permitted any type ending in `_t' to be defined
|
||||
// by any POSIX header, so we don't conditionalize the definitions here.
|
||||
//
|
||||
// Earlier POSIX standards permitted any type ending in `_t' to be defined
|
||||
// by any POSIX header, so we don't conditionalize the definitions here.
|
||||
type Mode_t = X__mode_t /* fcntl.h:50:18 */
|
||||
|
||||
type Off_t = X__off64_t /* fcntl.h:58:19 */
|
||||
@@ -1091,7 +1094,8 @@ type Pid_t = X__pid_t /* fcntl.h:69:17 */
|
||||
// values.
|
||||
|
||||
// POSIX.1b structure for a time value. This is like a `struct timeval' but
|
||||
// has nanoseconds instead of microseconds.
|
||||
//
|
||||
// has nanoseconds instead of microseconds.
|
||||
type Timespec = struct {
|
||||
Ftv_sec X__time_t
|
||||
Ftv_nsec X__syscall_slong_t
|
||||
|
||||
+1107
File diff suppressed because it is too large.
Load diff
Loaded 100 of 787 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user