chore(deps): Update sqlite dependencies
This commit is contained in:
1 parent
080563bd4f
commit
cdec353744
564 files changed
+583632
-1166555
No files matched your search
+1
@@ -16,3 +16,4 @@ Steffen Butzer <steffen(dot)butzer@outlook.com>
|
||||
Tommi Virtanen <tv@eagain.net>
|
||||
Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
||||
Zvi Effron <zeffron@cs.hmc.edu>
|
||||
Lucas Raab <tuftedocelot@fastmail.fm>
|
||||
+14
@@ -61,12 +61,26 @@ test_windows386:
|
||||
build_all_targets:
|
||||
GOOS=darwin GOARCH=amd64 go build -v ./...
|
||||
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))
|
||||
|
||||
+344
-8
@@ -5,27 +5,39 @@ import "encoding/binary"
|
||||
// abiByteOrders contains byte order information for known architectures.
|
||||
var (
|
||||
abiByteOrders = map[string]binary.ByteOrder{
|
||||
"amd64": binary.LittleEndian,
|
||||
"386": binary.LittleEndian,
|
||||
"arm": binary.LittleEndian,
|
||||
"arm64": binary.LittleEndian,
|
||||
"s390x": binary.BigEndian,
|
||||
"386": binary.LittleEndian,
|
||||
"amd64": binary.LittleEndian,
|
||||
"arm": binary.LittleEndian,
|
||||
"arm64": binary.LittleEndian,
|
||||
"ppc64le": binary.LittleEndian,
|
||||
"riscv64": binary.LittleEndian,
|
||||
"s390x": binary.BigEndian,
|
||||
}
|
||||
|
||||
abiSignedChar = map[[2]string]bool{
|
||||
{"linux", "arm"}: false,
|
||||
{"linux", "arm64"}: false,
|
||||
{"linux", "s390x"}: false,
|
||||
{"freebsd", "arm"}: false,
|
||||
{"freebsd", "arm64"}: false,
|
||||
{"linux", "arm"}: false,
|
||||
{"linux", "arm64"}: false,
|
||||
{"linux", "ppc64le"}: false,
|
||||
{"linux", "riscv64"}: false,
|
||||
{"linux", "s390x"}: false,
|
||||
{"netbsd", "arm"}: false,
|
||||
|
||||
{"darwin", "amd64"}: true,
|
||||
{"darwin", "arm64"}: 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,
|
||||
}
|
||||
)
|
||||
|
||||
@@ -210,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},
|
||||
@@ -382,6 +417,103 @@ 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},
|
||||
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: {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},
|
||||
@@ -419,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},
|
||||
@@ -451,4 +645,146 @@ 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},
|
||||
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},
|
||||
},
|
||||
// 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},
|
||||
},
|
||||
}
|
||||
+7
-1
@@ -670,6 +670,7 @@ func (n *AssignmentExpression) Position() (r token.Position) {
|
||||
// AtomicTypeSpecifier:
|
||||
// "_Atomic" '(' TypeName ')'
|
||||
type AtomicTypeSpecifier struct {
|
||||
list []*TypeSpecifier
|
||||
Token Token
|
||||
Token2 Token
|
||||
Token3 Token
|
||||
@@ -1339,6 +1340,7 @@ type Declarator struct {
|
||||
called bool
|
||||
fnDef bool
|
||||
hasInitializer bool
|
||||
implicit bool
|
||||
AttributeSpecifierList *AttributeSpecifierList
|
||||
DirectDeclarator *DirectDeclarator
|
||||
Pointer *Pointer
|
||||
@@ -3525,6 +3527,7 @@ type PointerCase int
|
||||
const (
|
||||
PointerTypeQual PointerCase = iota
|
||||
PointerPtr
|
||||
PointerBlock
|
||||
)
|
||||
|
||||
// String implements fmt.Stringer
|
||||
@@ -3534,6 +3537,8 @@ func (n PointerCase) String() string {
|
||||
return "PointerTypeQual"
|
||||
case PointerPtr:
|
||||
return "PointerPtr"
|
||||
case PointerBlock:
|
||||
return "PointerBlock"
|
||||
default:
|
||||
return fmt.Sprintf("PointerCase(%v)", int(n))
|
||||
}
|
||||
@@ -3544,6 +3549,7 @@ func (n PointerCase) String() string {
|
||||
// Pointer:
|
||||
// '*' TypeQualifiers // Case PointerTypeQual
|
||||
// | '*' TypeQualifiers Pointer // Case PointerPtr
|
||||
// | '^' TypeQualifiers // Case PointerBlock
|
||||
type Pointer struct {
|
||||
typeQualifiers *typeBase
|
||||
Case PointerCase `PrettyPrint:"stringer,zero"`
|
||||
@@ -3562,7 +3568,7 @@ func (n *Pointer) Position() (r token.Position) {
|
||||
}
|
||||
|
||||
switch n.Case {
|
||||
case 0:
|
||||
case 0, 2:
|
||||
if p := n.Token.Position(); p.IsValid() {
|
||||
return p
|
||||
}
|
||||
|
||||
+16
-2
@@ -603,7 +603,11 @@ func (n *BlockItem) Closure() map[StringID]struct{} { return n.closure }
|
||||
// FunctionDefinition returns the nested function (case BlockItemFuncDef).
|
||||
func (n *BlockItem) FunctionDefinition() *FunctionDefinition { return n.fn }
|
||||
|
||||
func (n *Declarator) IsStatic() bool { return n.td != nil && n.td.static() }
|
||||
func (n *Declarator) IsStatic() bool { return n.td != nil && n.td.static() }
|
||||
|
||||
// IsImplicit reports whether n was not declared nor defined, only inferred.
|
||||
func (n *Declarator) IsImplicit() bool { return n.implicit }
|
||||
|
||||
func (n *Declarator) isVisible(at int32) bool { return at == 0 || n.DirectDeclarator.ends() < at }
|
||||
|
||||
func (n *Declarator) setLHS(lhs *Declarator) {
|
||||
@@ -803,7 +807,8 @@ func (n *AndExpression) Promote() Type { return n.promote }
|
||||
|
||||
func (n *InitDeclarator) Value() *InitializerValue { return n.initializer }
|
||||
|
||||
// FirstDesignatorField returns the first field a designator denotes, if any.
|
||||
// FirstDesignatorField returns the first field a designator of an union type
|
||||
// denotes, if any.
|
||||
func (n *Initializer) FirstDesignatorField() Field { return n.field0 }
|
||||
|
||||
// TrailingComma returns the comma token following n, if any.
|
||||
@@ -907,6 +912,15 @@ func (n *EnumSpecifier) LexicalScope() Scope { return n.lexicalScope }
|
||||
// // TypeSpecifierTypedefName was resolved in, if any.
|
||||
// func (n *TypeSpecifier) ResolvedIn() Scope { return n.resolvedIn }
|
||||
|
||||
func (n *TypeSpecifier) list() (r []*TypeSpecifier) {
|
||||
switch n.Case {
|
||||
case TypeSpecifierAtomic:
|
||||
return n.AtomicTypeSpecifier.list
|
||||
default:
|
||||
return []*TypeSpecifier{n}
|
||||
}
|
||||
}
|
||||
|
||||
// // LexicalScope returns the lexical scope of n.
|
||||
// func (n *UnaryExpression) LexicalScope() Scope { return n.lexicalScope }
|
||||
|
||||
|
||||
+87
-6
@@ -509,14 +509,18 @@ type Config struct {
|
||||
|
||||
PragmaHandler func(Pragma, []Token) // Called on pragmas, other than #pragma STDC ..., if non nil
|
||||
|
||||
// SharedFunctionDefinitions collects function definitions having the
|
||||
// same position and definition. This can happen, for example, when a
|
||||
// function is defined in a header file included multiple times. Either
|
||||
// within a single translation unit or across translation units. In the
|
||||
// later case just supply the same SharedFunctionDefinitions in Config
|
||||
// when translating/parsing each translation unit.
|
||||
// SharedFunctionDefinitions collects function definitions having the same
|
||||
// position and definition. This can happen, for example, when a function is
|
||||
// defined in a header file included multiple times. Either within a single
|
||||
// translation unit or across translation units. In the later case just supply
|
||||
// the same SharedFunctionDefinitions in Config when translating/parsing each
|
||||
// translation unit.
|
||||
SharedFunctionDefinitions *SharedFunctionDefinitions
|
||||
|
||||
// IncludeFileHandler, when non nil, is called by the preprocessor for every
|
||||
// successfully included file.
|
||||
IncludeFileHandler func(pos gotoken.Position, includePath string)
|
||||
|
||||
MaxErrors int // 0: default (10), < 0: unlimited, n: n.
|
||||
|
||||
CheckExternInlineFnBodies bool // Translate will consider extern inline function bodies.
|
||||
@@ -524,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
|
||||
@@ -788,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"
|
||||
}
|
||||
@@ -839,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
|
||||
|
||||
+361
-211
File diff suppressed because it is too large.
Load diff
+128
-103
@@ -7,6 +7,7 @@ package cc // import "modernc.org/cc/v3"
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
gotoken "go/token"
|
||||
"math"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@@ -142,6 +143,15 @@ func cppToksStr(toks []cppToken, sep string) string {
|
||||
return b.String()
|
||||
}
|
||||
|
||||
func cppToksStr2(toks [][]cppToken) string {
|
||||
panic(todo(""))
|
||||
var a []string
|
||||
for _, v := range toks {
|
||||
a = append(a, fmt.Sprintf("%q", cppToksStr(v, "|")))
|
||||
}
|
||||
return fmt.Sprint(a)
|
||||
}
|
||||
|
||||
type cppReader struct {
|
||||
buf []cppToken
|
||||
ungetBuf
|
||||
@@ -266,6 +276,10 @@ func (m *Macro) param2(varArgs []cppToken, ap [][]cppToken, nm StringID, out *[]
|
||||
}
|
||||
|
||||
func (m *Macro) param(varArgs []cppToken, ap [][]cppToken, nm StringID, out *[]cppToken) bool {
|
||||
// trc("select (A) varArgs %q, ap %v, nm %q, out %q", cppToksStr(varArgs, "|"), cppToksStr2(ap), nm, cppToksStr(*out, "|"))
|
||||
// defer func() {
|
||||
// trc("select (A) varArgs %q, ap %v, nm %q, out %q", cppToksStr(varArgs, "|"), cppToksStr2(ap), nm, cppToksStr(*out, "|"))
|
||||
// }()
|
||||
return m.param2(varArgs, ap, nm, out, nil)
|
||||
}
|
||||
|
||||
@@ -286,6 +300,7 @@ type cpp struct {
|
||||
macros map[StringID]*Macro
|
||||
out chan *[]token4
|
||||
outBuf *[]token4
|
||||
pragmaOpBuf []token4
|
||||
rq chan struct{}
|
||||
timeMacro Macro
|
||||
ungetBuf
|
||||
@@ -295,6 +310,7 @@ type cpp struct {
|
||||
intmaxChecked bool
|
||||
nonFirstRead bool
|
||||
seenEOF bool
|
||||
inPragmaOp bool
|
||||
}
|
||||
|
||||
func newCPP(ctx *context) *cpp {
|
||||
@@ -407,87 +423,72 @@ func (c *cpp) write(tok cppToken) {
|
||||
|
||||
//dbg("%T.write %q", c, tok)
|
||||
c.last = tok.char
|
||||
*c.outBuf = append(*c.outBuf, tok.token4)
|
||||
if tok.char == '\n' {
|
||||
for i, tok := range *c.outBuf {
|
||||
if tok.char != ' ' {
|
||||
if tok.char == IDENTIFIER && tok.value == idPragmaOp {
|
||||
toks := (*c.outBuf)[i:]
|
||||
b := token4Pool.Get().(*[]token4)
|
||||
*b = (*b)[:0]
|
||||
c.outBuf = b
|
||||
c.pragmaOp(toks)
|
||||
return
|
||||
}
|
||||
|
||||
switch {
|
||||
case c.inPragmaOp:
|
||||
out:
|
||||
switch tok.char {
|
||||
case ')':
|
||||
c.inPragmaOp = false
|
||||
b := c.pragmaOpBuf
|
||||
if len(b) == 0 || b[0].char != '(' {
|
||||
c.err(b[0], "expected (")
|
||||
break
|
||||
}
|
||||
}
|
||||
c.out <- c.outBuf
|
||||
b := token4Pool.Get().(*[]token4)
|
||||
*b = (*b)[:0]
|
||||
c.outBuf = b
|
||||
}
|
||||
}
|
||||
|
||||
func (c *cpp) pragmaOp(toks []token4) {
|
||||
var a []string
|
||||
loop:
|
||||
for {
|
||||
tok := toks[0]
|
||||
toks = toks[1:] // Skip "_Pragma"
|
||||
toks = ltrim4(toks)
|
||||
if len(toks) == 0 || toks[0].char != '(' {
|
||||
c.err(tok, "expected (")
|
||||
break loop
|
||||
}
|
||||
var a []string
|
||||
for _, v := range b[1:] {
|
||||
if v.char != STRINGLITERAL {
|
||||
c.err(v, "expected string literal")
|
||||
break out
|
||||
}
|
||||
|
||||
tok = toks[0]
|
||||
toks = toks[1:] // Skip '('
|
||||
toks = ltrim4(toks)
|
||||
if len(toks) == 0 || (toks[0].char != STRINGLITERAL && toks[0].char != LONGSTRINGLITERAL) {
|
||||
c.err(toks[0], "expected string literal")
|
||||
break loop
|
||||
}
|
||||
a = append(a, v.String())
|
||||
}
|
||||
|
||||
tok = toks[0]
|
||||
a = append(a, tok.String())
|
||||
toks = toks[1:] // Skip string literal
|
||||
toks = ltrim4(toks)
|
||||
if len(toks) == 0 || toks[0].char != ')' {
|
||||
c.err(toks[0], "expected )")
|
||||
break loop
|
||||
}
|
||||
if len(a) == 0 {
|
||||
break
|
||||
}
|
||||
|
||||
toks = toks[1:] // Skip ')'
|
||||
toks = ltrim4(toks)
|
||||
if len(toks) == 0 {
|
||||
break loop
|
||||
}
|
||||
|
||||
switch tok := toks[0]; {
|
||||
case tok.char == '\n':
|
||||
break loop
|
||||
case tok.char == IDENTIFIER && tok.value == idPragmaOp:
|
||||
// ok
|
||||
for i, v := range a {
|
||||
// [0], 6.10.9, 1
|
||||
if v[0] == 'L' {
|
||||
v = v[1:]
|
||||
}
|
||||
v = v[1 : len(v)-1]
|
||||
v = strings.ReplaceAll(v, `\"`, `"`)
|
||||
a[i] = "#pragma " + strings.ReplaceAll(v, `\\`, `\`) + "\n"
|
||||
}
|
||||
src := strings.Join(a, "")
|
||||
s := newScanner0(c.ctx, strings.NewReader(src), tokenNewFile("", len(src)), 4096)
|
||||
if ppf := s.translationPhase3(); ppf != nil {
|
||||
ppf.translationPhase4(c)
|
||||
}
|
||||
default:
|
||||
c.err(tok, "expected new-line")
|
||||
break loop
|
||||
c.pragmaOpBuf = append(c.pragmaOpBuf, tok.token4)
|
||||
}
|
||||
}
|
||||
for i, v := range a {
|
||||
// [0], 6.10.9, 1
|
||||
if v[0] == 'L' {
|
||||
v = v[1:]
|
||||
default:
|
||||
switch {
|
||||
case tok.char == '\n':
|
||||
*c.outBuf = append(*c.outBuf, tok.token4)
|
||||
c.out <- c.outBuf
|
||||
b := token4Pool.Get().(*[]token4)
|
||||
*b = (*b)[:0]
|
||||
c.outBuf = b
|
||||
case tok.char == IDENTIFIER && tok.value == idPragmaOp:
|
||||
if len(*c.outBuf) != 0 {
|
||||
tok.char = '\n'
|
||||
tok.value = 0
|
||||
*c.outBuf = append(*c.outBuf, tok.token4)
|
||||
c.out <- c.outBuf
|
||||
b := token4Pool.Get().(*[]token4)
|
||||
*b = (*b)[:0]
|
||||
c.outBuf = b
|
||||
}
|
||||
c.inPragmaOp = true
|
||||
c.pragmaOpBuf = c.pragmaOpBuf[:0]
|
||||
default:
|
||||
*c.outBuf = append(*c.outBuf, tok.token4)
|
||||
}
|
||||
v = v[1 : len(v)-1]
|
||||
v = strings.ReplaceAll(v, `\"`, `"`)
|
||||
a[i] = "#pragma " + strings.ReplaceAll(v, `\\`, `\`) + "\n"
|
||||
}
|
||||
src := strings.Join(a, "")
|
||||
s := newScanner0(c.ctx, strings.NewReader(src), tokenNewFile("", len(src)), 4096)
|
||||
if ppf := s.translationPhase3(); ppf != nil {
|
||||
ppf.translationPhase4(c)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -530,7 +531,7 @@ func (c *cpp) writes(toks []cppToken) {
|
||||
// return T^HS • expand(TS’);
|
||||
// }
|
||||
func (c *cpp) expand(ts tokenReader, w tokenWriter, expandDefined bool) {
|
||||
// dbg("==== expand enter")
|
||||
// trc("==== expand enter")
|
||||
start:
|
||||
tok, ok := ts.read()
|
||||
tok.file = c.file
|
||||
@@ -538,7 +539,7 @@ start:
|
||||
if !ok {
|
||||
// ---------------------------------------------------------- A
|
||||
// return {};
|
||||
// dbg("---- expand A")
|
||||
// trc("---- expand A")
|
||||
return
|
||||
}
|
||||
|
||||
@@ -558,8 +559,8 @@ start:
|
||||
if tok.has(nm) {
|
||||
// -------------------------------------------------- B
|
||||
// return T^HS • expand(TS’);
|
||||
// dbg("---- expand B")
|
||||
// dbg("expand write %q", tok)
|
||||
// trc("---- expand B")
|
||||
// trc("expand write %q", tok)
|
||||
w.write(tok)
|
||||
goto start
|
||||
}
|
||||
@@ -591,7 +592,7 @@ start:
|
||||
if m != nil {
|
||||
// -------------------------------------------------- C
|
||||
// return expand(subst(ts(T), {}, {}, HS \cup {T}, {}) • TS’ );
|
||||
// dbg("---- expand C")
|
||||
// trc("---- expand C")
|
||||
hs := hideSet{nm: {}}
|
||||
for k, v := range tok.hs {
|
||||
hs[k] = v
|
||||
@@ -622,7 +623,7 @@ start:
|
||||
// -------------------------------------------------- D
|
||||
// check TS’ is actuals • )^HS’ • TS’’ and actuals are "correct for T"
|
||||
// return expand(subst(ts(T), fp(T), actuals,(HS \cap HS’) \cup {T }, {}) • TS’’);
|
||||
// dbg("---- expand D")
|
||||
// trc("---- expand D")
|
||||
hs := tok.hs
|
||||
var skip []cppToken
|
||||
again:
|
||||
@@ -703,8 +704,8 @@ start:
|
||||
// ------------------------------------------------------------------ E
|
||||
// note TS must be T^HS • TS’
|
||||
// return T^HS • expand(TS’);
|
||||
// dbg("---- expand E")
|
||||
// dbg("expand write %q", tok)
|
||||
// trc("---- expand E")
|
||||
// trc("expand write %q", tok)
|
||||
w.write(tok)
|
||||
goto start
|
||||
}
|
||||
@@ -912,28 +913,28 @@ func (c *cpp) actuals(m *Macro, r tokenReader) (varArgs []cppToken, ap [][]cppTo
|
||||
// combinations. After the entire input sequence is finished, the updated hide
|
||||
// set is applied to the output sequence, and that is the result of subst.
|
||||
func (c *cpp) subst(m *Macro, is []cppToken, fp []StringID, varArgs []cppToken, ap [][]cppToken, hs hideSet, os *[]cppToken, expandDefined bool) (r []cppToken) {
|
||||
// var a []string
|
||||
// for _, v := range ap {
|
||||
// a = append(a, fmt.Sprintf("%q", cppToksStr(v, "|")))
|
||||
// }
|
||||
// dbg("==== subst: is %q, fp %v ap %v", cppToksStr(is, "|"), fp, a)
|
||||
var ap0 [][]cppToken
|
||||
for _, v := range ap {
|
||||
ap0 = append(ap0, append([]cppToken(nil), v...))
|
||||
}
|
||||
// trc("==== subst: is %q, fp, %v ap@%p %v", cppToksStr(is, "|"), fp, &ap, cppToksStr2(ap))
|
||||
start:
|
||||
// dbg("start: %q", cppToksStr(is, "|"))
|
||||
// trc("start: is %q, fp %v, ap@%p %v, os %q", cppToksStr(is, "|"), fp, &ap, cppToksStr2(ap), cppToksStr(*os, "|"))
|
||||
if len(is) == 0 {
|
||||
// ---------------------------------------------------------- A
|
||||
// return hsadd(HS, OS);
|
||||
// dbg("---- A")
|
||||
// dbg("subst returns %q", cppToksStr(os, "|"))
|
||||
// trc("---- A")
|
||||
// trc("subst RETURNS %q", cppToksStr(*os, "|"))
|
||||
return c.hsAdd(hs, os)
|
||||
}
|
||||
|
||||
tok := is[0]
|
||||
var arg []cppToken
|
||||
if tok.char == '#' {
|
||||
if len(is) > 1 && is[1].char == IDENTIFIER && m.param(varArgs, ap, is[1].value, &arg) {
|
||||
if len(is) > 1 && is[1].char == IDENTIFIER && m.param(varArgs, ap0, is[1].value, &arg) {
|
||||
// -------------------------------------------------- B
|
||||
// return subst(IS’, FP, AP, HS, OS • stringize(select(i, AP)));
|
||||
// dbg("---- subst B")
|
||||
// trc("---- subst B")
|
||||
*os = append(*os, c.stringize(arg))
|
||||
is = is[2:]
|
||||
goto start
|
||||
@@ -941,14 +942,14 @@ start:
|
||||
}
|
||||
|
||||
if tok.char == PPPASTE {
|
||||
if len(is) > 1 && is[1].char == IDENTIFIER && m.param(varArgs, ap, is[1].value, &arg) {
|
||||
if len(is) > 1 && is[1].char == IDENTIFIER && m.param(varArgs, ap0, is[1].value, &arg) {
|
||||
// -------------------------------------------------- C
|
||||
// dbg("---- subst C")
|
||||
// trc("---- subst C")
|
||||
if len(arg) == 0 {
|
||||
// TODO "only if actuals can be empty"
|
||||
// ------------------------------------------ D
|
||||
// return subst(IS’, FP, AP, HS, OS);
|
||||
// dbg("---- D")
|
||||
// trc("---- D")
|
||||
if c := len(*os); c != 0 && (*os)[c-1].char == ',' {
|
||||
*os = (*os)[:c-1]
|
||||
}
|
||||
@@ -958,7 +959,7 @@ start:
|
||||
|
||||
// -------------------------------------------------- E
|
||||
// return subst(IS’, FP, AP, HS, glue(OS, select(i, AP)));
|
||||
// dbg("---- subst E")
|
||||
// trc("---- subst E, arg %q", cppToksStr(arg, "|"))
|
||||
*os = c.glue(*os, arg)
|
||||
is = is[2:]
|
||||
goto start
|
||||
@@ -967,39 +968,39 @@ start:
|
||||
if len(is) > 1 {
|
||||
// -------------------------------------------------- F
|
||||
// return subst(IS’, FP, AP, HS, glue(OS, T^HS’));
|
||||
// dbg("---- subst F")
|
||||
// trc("---- subst F")
|
||||
*os = c.glue(*os, is[1:2])
|
||||
is = is[2:]
|
||||
goto start
|
||||
}
|
||||
}
|
||||
|
||||
if tok.char == IDENTIFIER && (len(is) > 1 && is[1].char == PPPASTE) && m.param(varArgs, ap, tok.value, &arg) {
|
||||
if tok.char == IDENTIFIER && (len(is) > 1 && is[1].char == PPPASTE) && m.param(varArgs, ap0, tok.value, &arg) {
|
||||
// ---------------------------------------------------------- G
|
||||
// dbg("---- subst G")
|
||||
// trc("---- subst G")
|
||||
if len(arg) == 0 {
|
||||
// TODO "only if actuals can be empty"
|
||||
// -------------------------------------------------- H
|
||||
// dbg("---- subst H")
|
||||
// trc("---- subst H")
|
||||
is = is[2:] // skip T##
|
||||
if len(is) > 0 && is[0].char == IDENTIFIER && m.param(varArgs, ap, is[0].value, &arg) {
|
||||
// -------------------------------------------------- I
|
||||
// return subst(IS’’, FP, AP, HS, OS • select(j, AP));
|
||||
// dbg("---- subst I")
|
||||
// trc("---- subst I")
|
||||
*os = append(*os, arg...)
|
||||
is = is[1:]
|
||||
goto start
|
||||
} else {
|
||||
// -------------------------------------------------- J
|
||||
// return subst(IS’, FP, AP, HS, OS);
|
||||
// dbg("---- subst J")
|
||||
// trc("---- subst J")
|
||||
goto start
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------- K
|
||||
// return subst(##^HS’ • IS’, FP, AP, HS, OS • select(i, AP));
|
||||
// dbg("---- subst K")
|
||||
// trc("---- subst K")
|
||||
*os = append(*os, arg...)
|
||||
is = is[1:]
|
||||
goto start
|
||||
@@ -1009,7 +1010,7 @@ start:
|
||||
if tok.char == IDENTIFIER && m.param2(varArgs, ap, tok.value, &arg, &ax) {
|
||||
// ------------------------------------------ L
|
||||
// return subst(IS’, FP, AP, HS, OS • expand(select(i, AP)));
|
||||
// dbg("---- subst L")
|
||||
// trc("---- subst L")
|
||||
// if toks, ok := cache[tok.value]; ok {
|
||||
// os = append(os, toks...)
|
||||
// is = is[1:]
|
||||
@@ -1018,7 +1019,9 @@ start:
|
||||
|
||||
sel := cppReader{buf: arg}
|
||||
var w cppWriter
|
||||
// trc("---- L(1) ap@%p %v", &ap, cppToksStr2(ap))
|
||||
c.expand(&sel, &w, expandDefined)
|
||||
// trc("---- L(2) ap@%p %v", &ap, cppToksStr2(ap))
|
||||
*os = append(*os, w.toks...)
|
||||
if ax >= 0 {
|
||||
ap[ax] = w.toks
|
||||
@@ -1030,9 +1033,9 @@ start:
|
||||
// ------------------------------------------------------------------ M
|
||||
// note IS must be T^HS’ • IS’
|
||||
// return subst(IS’, FP, AP, HS, OS • T^HS’);
|
||||
// dbg("---- subst M")
|
||||
*os = append(*os, tok)
|
||||
is = is[1:]
|
||||
// trc("---- subst M: is %q, os %q", cppToksStr(is, "|"), cppToksStr(*os, "|"))
|
||||
goto start
|
||||
}
|
||||
|
||||
@@ -1057,7 +1060,18 @@ start:
|
||||
// 43
|
||||
// 0
|
||||
// $
|
||||
//
|
||||
// ----------------------------------------------------------------------------
|
||||
// glue(LS,RS ) /* paste last of left side with first of right side */
|
||||
// {
|
||||
// if LS is L^HS and RS is R^HS’ • RS’ then
|
||||
// return L&R^(HS∩HS’) • RS’; /* undefined if L&R is invalid */
|
||||
|
||||
// // note LS must be L HS • LS’
|
||||
// return L^HS • glue(LS’,RS );
|
||||
// }
|
||||
func (c *cpp) glue(ls, rs []cppToken) (out []cppToken) {
|
||||
// trc("ls %q, rs %q", cppToksStr(ls, "|"), cppToksStr(rs, "|"))
|
||||
if len(rs) == 0 {
|
||||
return ls
|
||||
}
|
||||
@@ -2463,6 +2477,17 @@ func (n *ppIncludeDirective) translationPhase4(c *cpp) {
|
||||
return
|
||||
}
|
||||
|
||||
if h := c.ctx.cfg.IncludeFileHandler; h != nil {
|
||||
var position gotoken.Position
|
||||
if p := toks[0].Pos(); p.IsValid() {
|
||||
position = gotoken.Position(c.file.PositionFor(p, true))
|
||||
}
|
||||
apath, err := filepath.Abs(path)
|
||||
if err != nil {
|
||||
c.err(toks[0], "%s: cannot compute absolute path: %v", path, err)
|
||||
}
|
||||
h(position, apath)
|
||||
}
|
||||
cf, err := cache.getFile(c.ctx, path, sys, false)
|
||||
if err != nil {
|
||||
c.err(toks[0], "%s: %v", path, err)
|
||||
|
||||
+64
-31
@@ -313,6 +313,7 @@ var (
|
||||
dict.sid("__pragma_stdc"): PRAGMASTDC,
|
||||
dict.sid("__restrict"): RESTRICT,
|
||||
dict.sid("__restrict__"): RESTRICT,
|
||||
dict.sid("__signed"): SIGNED,
|
||||
dict.sid("__signed__"): SIGNED,
|
||||
dict.sid("__thread"): THREADLOCAL,
|
||||
dict.sid("__typeof"): TYPEOF,
|
||||
@@ -2263,7 +2264,7 @@ func (p *parser) functionSpecifier(inline *bool) *FunctionSpecifier {
|
||||
// declarator:
|
||||
// pointer_opt direct-declarator attribute-specifier-list_opt
|
||||
func (p *parser) declarator(declare, isTypedefName bool, ptr *Pointer) *Declarator {
|
||||
if ptr == nil && p.rune() == '*' {
|
||||
if ptr == nil && (p.rune() == '*' || p.rune() == '^') {
|
||||
ptr = p.pointer()
|
||||
}
|
||||
r := &Declarator{IsTypedefName: isTypedefName, Pointer: ptr, DirectDeclarator: p.directDeclarator(nil)}
|
||||
@@ -2488,9 +2489,21 @@ func (p *parser) directDeclarator(d *DirectDeclarator) (r *DirectDeclarator) {
|
||||
// pointer:
|
||||
// * type-qualifier-list_opt
|
||||
// * type-qualifier-list_opt pointer
|
||||
// ^ type-qualifier-list_opt
|
||||
func (p *parser) pointer() (r *Pointer) {
|
||||
if p.rune() == '^' {
|
||||
t := p.shift()
|
||||
var list *TypeQualifiers
|
||||
switch p.rune() {
|
||||
case ATTRIBUTE, CONST, RESTRICT, VOLATILE, ATOMIC:
|
||||
list = p.typeQualifierList()
|
||||
}
|
||||
|
||||
return &Pointer{Case: PointerBlock, Token: t, TypeQualifiers: list}
|
||||
}
|
||||
|
||||
if p.rune() != '*' {
|
||||
p.err("expected *")
|
||||
p.err("expected * or ^")
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -2608,7 +2621,8 @@ func (p *parser) parameterDeclaration() *ParameterDeclaration {
|
||||
|
||||
func (p *parser) declaratorOrAbstractDeclarator(isTypedefName bool) (r Node) {
|
||||
var ptr *Pointer
|
||||
if p.rune() == '*' {
|
||||
switch p.rune() {
|
||||
case '*', '^':
|
||||
ptr = p.pointer()
|
||||
}
|
||||
switch p.rune() {
|
||||
@@ -2766,7 +2780,7 @@ func (p *parser) typeName() *TypeName {
|
||||
// pointer
|
||||
// pointer_opt direct-abstract-declarator
|
||||
func (p *parser) abstractDeclarator(ptr *Pointer) *AbstractDeclarator {
|
||||
if ptr == nil && p.rune() == '*' {
|
||||
if ptr == nil && (p.rune() == '*' || p.rune() == '^') {
|
||||
ptr = p.pointer()
|
||||
}
|
||||
switch p.rune() {
|
||||
@@ -3148,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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3206,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
|
||||
@@ -3232,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()
|
||||
@@ -3242,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 {
|
||||
@@ -3257,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
@@ -608,7 +608,8 @@ package cc // import "modernc.org/cc/v3"
|
||||
/*yy:case Expr */ | IDENTIFIER AttributeSpecifierList '=' ConstantExpression
|
||||
|
||||
/* [2], 6.7.2.4 Atomic type specifiers */
|
||||
/*yy:example _Atomic(int) i; */
|
||||
/*yy:field list []*TypeSpecifier */
|
||||
/*yy:example _Atomic(int) i; */
|
||||
AtomicTypeSpecifier:
|
||||
"_Atomic" '(' TypeName ')'
|
||||
|
||||
@@ -647,6 +648,7 @@ package cc // import "modernc.org/cc/v3"
|
||||
/*yy:field called bool */
|
||||
/*yy:field fnDef bool */
|
||||
/*yy:field hasInitializer bool */
|
||||
/*yy:field implicit bool */
|
||||
/*yy:example int *p __attribute__ ((foo)); */
|
||||
Declarator:
|
||||
Pointer DirectDeclarator AttributeSpecifierList %prec BELOW_ATTRIBUTE
|
||||
@@ -686,6 +688,8 @@ package cc // import "modernc.org/cc/v3"
|
||||
'*' TypeQualifiers
|
||||
/*yy:example int **p; */
|
||||
/*yy:case Ptr */ | '*' TypeQualifiers Pointer
|
||||
/*yy:example int atexit_b(void (^ _Nonnull)(void)); */
|
||||
/*yy:case Block */ | '^' TypeQualifiers
|
||||
|
||||
/*yy:field noStorageClass */
|
||||
/*yy:example int * const i; */
|
||||
|
||||
+15
-16
@@ -403,8 +403,8 @@ type Type interface {
|
||||
// Name returns type name, if any.
|
||||
Name() StringID
|
||||
|
||||
// atomic reports whether type has type qualifier "_Atomic".
|
||||
atomic() bool
|
||||
// IsAtomic reports whether type has type qualifier "_Atomic".
|
||||
IsAtomic() bool
|
||||
|
||||
// hasConst reports whether type has type qualifier "const".
|
||||
hasConst() bool
|
||||
@@ -611,7 +611,7 @@ func (t *typeBase) check(ctx *context, td typeDescriptor, defaultInt bool) (r Ty
|
||||
case DeclarationSpecifiersStorage: // StorageClassSpecifier DeclarationSpecifiers
|
||||
// nop
|
||||
case DeclarationSpecifiersTypeSpec: // TypeSpecifier DeclarationSpecifiers
|
||||
typeSpecifiers = append(typeSpecifiers, n.TypeSpecifier)
|
||||
typeSpecifiers = append(typeSpecifiers, n.TypeSpecifier.list()...)
|
||||
case DeclarationSpecifiersTypeQual: // TypeQualifier DeclarationSpecifiers
|
||||
// nop
|
||||
case DeclarationSpecifiersFunc: // FunctionSpecifier DeclarationSpecifiers
|
||||
@@ -628,7 +628,7 @@ func (t *typeBase) check(ctx *context, td typeDescriptor, defaultInt bool) (r Ty
|
||||
for ; n != nil; n = n.SpecifierQualifierList {
|
||||
switch n.Case {
|
||||
case SpecifierQualifierListTypeSpec: // TypeSpecifier SpecifierQualifierList
|
||||
typeSpecifiers = append(typeSpecifiers, n.TypeSpecifier)
|
||||
typeSpecifiers = append(typeSpecifiers, n.TypeSpecifier.list()...)
|
||||
case SpecifierQualifierListTypeQual: // TypeQualifier SpecifierQualifierList
|
||||
// nop
|
||||
case SpecifierQualifierListAlignSpec: // AlignmentSpecifier SpecifierQualifierList
|
||||
@@ -931,8 +931,8 @@ func (t *typeBase) UnionCommon() Kind {
|
||||
panic(internalErrorf("%s: UnionCommon of invalid type", t.Kind()))
|
||||
}
|
||||
|
||||
// atomic implements Type.
|
||||
func (t *typeBase) atomic() bool { return t.flags&fAtomic != 0 }
|
||||
// IsAtomic implements Type.
|
||||
func (t *typeBase) IsAtomic() bool { return t.flags&fAtomic != 0 }
|
||||
|
||||
// Attributes implements Type.
|
||||
func (t *typeBase) Attributes() (a []*AttributeSpecifier) { return nil }
|
||||
@@ -1220,7 +1220,7 @@ func (t *typeBase) Tag() StringID {
|
||||
// string implements Type.
|
||||
func (t *typeBase) string(b *bytes.Buffer) {
|
||||
spc := ""
|
||||
if t.atomic() {
|
||||
if t.IsAtomic() {
|
||||
b.WriteString("atomic")
|
||||
spc = " "
|
||||
}
|
||||
@@ -1944,7 +1944,7 @@ func (t *aliasType) Size() uintptr { return t.d.Type().Size() }
|
||||
// String implements Type.
|
||||
func (t *aliasType) String() string {
|
||||
var a []string
|
||||
if t.typeBase.atomic() {
|
||||
if t.typeBase.IsAtomic() {
|
||||
a = append(a, "atomic")
|
||||
}
|
||||
if t.typeBase.hasConst() {
|
||||
@@ -1972,8 +1972,8 @@ func (t *aliasType) Tag() StringID { return t.d.Type().Tag() }
|
||||
// Name implements Type.
|
||||
func (t *aliasType) Name() StringID { return t.nm }
|
||||
|
||||
// atomic implements Type.
|
||||
func (t *aliasType) atomic() bool { return t.d.Type().atomic() }
|
||||
// IsAtomic implements Type.
|
||||
func (t *aliasType) IsAtomic() bool { return t.d.Type().IsAtomic() }
|
||||
|
||||
// Inline implements Type.
|
||||
func (t *aliasType) Inline() bool { return t.d.Type().Inline() }
|
||||
@@ -2544,12 +2544,11 @@ func (t *taggedType) isAssingmentCompatibleOperand(rhs Operand) (r bool) {
|
||||
|
||||
// IsCompatible implements Type.
|
||||
func (t *taggedType) IsCompatible(u Type) (r bool) {
|
||||
// defer func() {
|
||||
// u0 := u
|
||||
// if !r {
|
||||
// trc("TRACE %v <- %v\n%s", t, u0, debug.Stack()) //TODO-
|
||||
// }
|
||||
// }()
|
||||
defer func() {
|
||||
// if !r {
|
||||
// trc("TRACE %v <- %v: %v (%s)", t, u0, r, origin(2)) //TODO-
|
||||
// }
|
||||
}()
|
||||
if t == nil || u == nil {
|
||||
return false
|
||||
}
|
||||
|
||||
+20
-8
@@ -72,13 +72,24 @@ test_windows_amd64:
|
||||
time /T | tee -a %TEMP%\testlog-windows-amd64
|
||||
|
||||
build_all_targets:
|
||||
GOOS=darwin GOARCH=amd64 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=windows GOARCH=386 go build -v ./...
|
||||
GOOS=windows GOARCH=amd64 go build -v ./...
|
||||
GOOS=darwin GOARCH=amd64 go test -c -o /dev/null
|
||||
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
|
||||
GOOS=linux GOARCH=arm64 go test -c -o /dev/null
|
||||
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
|
||||
@@ -108,7 +119,8 @@ edit:
|
||||
|
||||
editor:
|
||||
gofmt -l -s -w *.go
|
||||
GO111MODULE=off 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:
|
||||
@grep -n $(grep) LATER * || true
|
||||
|
||||
+474
-89
@@ -18,6 +18,7 @@ import (
|
||||
"go/parser"
|
||||
"go/token"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
@@ -210,6 +211,7 @@ double __builtin_huge_val (void);
|
||||
double __builtin_inf (void);
|
||||
double __builtin_nan (const char *str);
|
||||
float __builtin_copysignf ( float x, float y );
|
||||
float __builtin_fabsf(float x);
|
||||
float __builtin_huge_valf (void);
|
||||
float __builtin_inff (void);
|
||||
float __builtin_nanf (const char *str);
|
||||
@@ -219,18 +221,24 @@ int __builtin___vsnprintf_chk (char *s, size_t maxlen, int flag, size_t os, cons
|
||||
int __builtin__snprintf_chk(char * str, size_t maxlen, int flag, size_t strlen, const char * format);
|
||||
int __builtin_abs(int j);
|
||||
int __builtin_add_overflow();
|
||||
int __builtin_clz (unsigned);
|
||||
int __builtin_isunordered(double x, double y);
|
||||
int __builtin_clzl (unsigned long);
|
||||
int __builtin_clzll (unsigned long long);
|
||||
int __builtin_constant_p_impl(int, ...);
|
||||
int __builtin_getentropy(void*, size_t);
|
||||
int __builtin_isnan(double);
|
||||
int __builtin_memcmp(const void *s1, const void *s2, size_t n);
|
||||
int __builtin_mul_overflow();
|
||||
int __builtin_popcount (unsigned int x);
|
||||
int __builtin_popcountl (unsigned long x);
|
||||
int __builtin_printf(const char *format, ...);
|
||||
int __builtin_snprintf(char *str, size_t size, const char *format, ...);
|
||||
int __builtin_sprintf(char *str, const char *format, ...);
|
||||
int __builtin_strcmp(const char *s1, const char *s2);
|
||||
int __builtin_sub_overflow();
|
||||
long __builtin_expect (long exp, long c);
|
||||
long double __builtin_fabsl(long double x);
|
||||
long double __builtin_nanl (const char *str);
|
||||
long long __builtin_llabs(long long j);
|
||||
size_t __builtin_object_size (void * ptr, int type);
|
||||
@@ -244,6 +252,7 @@ void *__builtin_memset(void *s, int c, size_t n);
|
||||
void *__builtin_mmap(void *addr, size_t length, int prot, int flags, int fd, __INTPTR_TYPE__ offset);
|
||||
void *__ccgo_va_arg(__builtin_va_list ap);
|
||||
void __builtin_abort(void);
|
||||
void __builtin_bzero(void *s, size_t n);
|
||||
void __builtin_exit(int status);
|
||||
void __builtin_free(void *ptr);
|
||||
void __builtin_prefetch (const void *addr, ...);
|
||||
@@ -253,13 +262,36 @@ void __ccgo_dmesg(char*, ...);
|
||||
void __ccgo_va_end(__builtin_va_list ap);
|
||||
void __ccgo_va_start(__builtin_va_list ap);
|
||||
|
||||
#define __sync_add_and_fetch(ptr, val) \
|
||||
__builtin_choose_expr( \
|
||||
__builtin_types_compatible_p(typeof(*ptr), unsigned), \
|
||||
__sync_add_and_fetch_uint32(ptr, val), \
|
||||
__TODO__ \
|
||||
)
|
||||
|
||||
#define __sync_fetch_and_add(ptr, val) \
|
||||
__TODO__ \
|
||||
|
||||
#define __sync_sub_and_fetch(ptr, val) \
|
||||
__builtin_choose_expr( \
|
||||
__builtin_types_compatible_p(typeof(*ptr), unsigned), \
|
||||
__sync_sub_and_fetch_uint32(ptr, val), \
|
||||
__TODO__ \
|
||||
)
|
||||
|
||||
unsigned __sync_add_and_fetch_uint32(unsigned*, unsigned);
|
||||
unsigned __sync_sub_and_fetch_uint32(unsigned*, unsigned);
|
||||
|
||||
#ifdef __APPLE__
|
||||
int (*__darwin_check_fd_set_overflow)(int, void *, int);
|
||||
#endif
|
||||
|
||||
`
|
||||
defaultCrt = "modernc.org/libc"
|
||||
)
|
||||
|
||||
func origin(skip int) string {
|
||||
pc, fn, fl, _ := runtime.Caller(skip)
|
||||
fn = filepath.Base(fn)
|
||||
f := runtime.FuncForPC(pc)
|
||||
var fns string
|
||||
if f != nil {
|
||||
@@ -271,42 +303,29 @@ func origin(skip int) string {
|
||||
return fmt.Sprintf("%s:%d:%s", fn, fl, fns)
|
||||
}
|
||||
|
||||
func todo(s string, args ...interface{}) string { //TODO-
|
||||
func todo(s string, args ...interface{}) string {
|
||||
switch {
|
||||
case s == "":
|
||||
s = fmt.Sprintf(strings.Repeat("%v ", len(args)), args...)
|
||||
default:
|
||||
s = fmt.Sprintf(s, args...)
|
||||
}
|
||||
pc, fn, fl, _ := runtime.Caller(1)
|
||||
f := runtime.FuncForPC(pc)
|
||||
var fns string
|
||||
if f != nil {
|
||||
fns = f.Name()
|
||||
if x := strings.LastIndex(fns, "."); x > 0 {
|
||||
fns = fns[x+1:]
|
||||
}
|
||||
}
|
||||
r := fmt.Sprintf("%s:%d:%s: TODOTODO %s", fn, fl, fns, s) //TODOOK
|
||||
if dmesgs {
|
||||
dmesg("%v: %v", origin(1), r)
|
||||
}
|
||||
r := fmt.Sprintf("%s\n\tTODO %s", origin(2), s) //TODOOK
|
||||
fmt.Fprintf(os.Stdout, "%s\n", r)
|
||||
os.Stdout.Sync()
|
||||
return r
|
||||
}
|
||||
|
||||
func trc(s string, args ...interface{}) string { //TODO-
|
||||
func trc(s string, args ...interface{}) string {
|
||||
switch {
|
||||
case s == "":
|
||||
s = fmt.Sprintf(strings.Repeat("%v ", len(args)), args...)
|
||||
default:
|
||||
s = fmt.Sprintf(s, args...)
|
||||
}
|
||||
_, fn, fl, _ := runtime.Caller(1)
|
||||
r := fmt.Sprintf("%s:%d: TRC %s", fn, fl, s)
|
||||
fmt.Fprintf(os.Stdout, "%s\n", r)
|
||||
os.Stdout.Sync()
|
||||
r := fmt.Sprintf("%s: TRC %s", origin(2), s)
|
||||
fmt.Fprintf(os.Stderr, "%s\n", r)
|
||||
os.Stderr.Sync()
|
||||
return r
|
||||
}
|
||||
|
||||
@@ -320,6 +339,8 @@ type Task struct {
|
||||
args []string
|
||||
asts []*cc.AST
|
||||
capif string
|
||||
saveConfig string // -save-config
|
||||
saveConfigErr error
|
||||
cc string // $CC, default "gcc"
|
||||
ccLookPath string // LookPath(cc)
|
||||
cdb string // foo.json, use compile DB
|
||||
@@ -338,9 +359,15 @@ type Task struct {
|
||||
hide map[string]struct{} // -hide
|
||||
hostConfigCmd string // -host-config-cmd
|
||||
hostConfigOpts string // -host-config-opts
|
||||
hostIncludes []string
|
||||
hostPredefined string
|
||||
hostSysIncludes []string
|
||||
ignoredIncludes string // -ignored-includes
|
||||
ignoredObjects map[string]struct{} // -ignore-object
|
||||
imported []*imported
|
||||
includedFiles map[string]struct{}
|
||||
l []string // -l
|
||||
loadConfig string // --load-config
|
||||
o string // -o
|
||||
out io.Writer
|
||||
pkgName string // -pkgname
|
||||
@@ -353,6 +380,7 @@ type Task struct {
|
||||
stderr io.Writer
|
||||
stdout io.Writer
|
||||
symSearchOrder []int // >= 0: asts[i], < 0 : imported[-i-1]
|
||||
verboseCompiledb bool // -verbose-compiledb
|
||||
volatiles map[cc.StringID]struct{} // -volatile
|
||||
|
||||
// Path to a binary that will be called instead of executing
|
||||
@@ -363,34 +391,37 @@ type Task struct {
|
||||
// feature should ever set it.
|
||||
CallOutBinary string
|
||||
|
||||
E bool // -E
|
||||
allErrors bool // -all-errors
|
||||
compiledbValid bool // -compiledb present
|
||||
cover bool // -cover-instrumentation
|
||||
coverC bool // -cover-instrumentation-c
|
||||
defaultUnExport bool // -unexported-by-default
|
||||
errTrace bool // -err-trace
|
||||
exportDefinesValid bool // -export-defines present
|
||||
exportEnumsValid bool // -export-enums present
|
||||
exportExternsValid bool // -export-externs present
|
||||
exportFieldsValid bool // -export-fields present
|
||||
exportStructsValid bool // -export-structs present
|
||||
exportTypedefsValid bool // -export-typedefs present
|
||||
fullPathComments bool // -full-path-comments
|
||||
funcSig bool // -func-sig
|
||||
header bool // -header
|
||||
isScripted bool
|
||||
mingw bool
|
||||
noCapi bool // -nocapi
|
||||
nostdinc bool // -nostdinc
|
||||
nostdlib bool // -nostdlib
|
||||
panicStubs bool // -panic-stubs
|
||||
tracePinning bool // -trace-pinning
|
||||
traceTranslationUnits bool // -trace-translation-units
|
||||
verifyStructs bool // -verify-structs
|
||||
version bool // -version
|
||||
watch bool // -watch-instrumentation
|
||||
windows bool // -windows
|
||||
E bool // -E
|
||||
allErrors bool // -all-errors
|
||||
compiledbValid bool // -compiledb present
|
||||
configSaved bool
|
||||
configured bool // hostPredefined, hostIncludes, hostSysIncludes are valid
|
||||
cover bool // -cover-instrumentation
|
||||
coverC bool // -cover-instrumentation-c
|
||||
defaultUnExport bool // -unexported-by-default
|
||||
errTrace bool // -err-trace
|
||||
exportDefinesValid bool // -export-defines present
|
||||
exportEnumsValid bool // -export-enums present
|
||||
exportExternsValid bool // -export-externs present
|
||||
exportFieldsValid bool // -export-fields present
|
||||
exportStructsValid bool // -export-structs present
|
||||
exportTypedefsValid bool // -export-typedefs present
|
||||
fullPathComments bool // -full-path-comments
|
||||
funcSig bool // -func-sig
|
||||
header bool // -header
|
||||
ignoreUnsupportedAligment bool // -ignore-unsupported-alignment
|
||||
isScripted bool
|
||||
mingw bool
|
||||
noCapi bool // -nocapi
|
||||
nostdinc bool // -nostdinc
|
||||
nostdlib bool // -nostdlib
|
||||
panicStubs bool // -panic-stubs
|
||||
tracePinning bool // -trace-pinning
|
||||
traceTranslationUnits bool // -trace-translation-units
|
||||
verifyStructs bool // -verify-structs
|
||||
version bool // -version
|
||||
watch bool // -watch-instrumentation
|
||||
windows bool // -windows
|
||||
}
|
||||
|
||||
// NewTask returns a newly created Task.
|
||||
@@ -585,11 +616,19 @@ func (t *Task) Main() (err error) {
|
||||
if dmesgs {
|
||||
defer func() {
|
||||
if err != nil {
|
||||
// trc("FAIL %p: %q: %v", t, t.args, err)
|
||||
dmesg("%v: returning from Task.Main: %v", origin(1), err)
|
||||
}
|
||||
}()
|
||||
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if t.saveConfigErr != nil && err == nil {
|
||||
err = t.saveConfigErr
|
||||
}
|
||||
}()
|
||||
|
||||
if !t.isScripted && coverExperiment {
|
||||
defer func() {
|
||||
fmt.Fprintf(os.Stderr, "cover report:\n%s\n", coverReport())
|
||||
@@ -637,24 +676,112 @@ func (t *Task) Main() (err error) {
|
||||
opts.Opt("full-path-comments", func(opt string) error { t.fullPathComments = true; return nil })
|
||||
opts.Opt("func-sig", func(opt string) error { t.funcSig = true; return nil })
|
||||
opts.Opt("header", func(opt string) error { t.header = true; return nil })
|
||||
opts.Opt("ignore-unsupported-alignment", func(opt string) error { t.ignoreUnsupportedAligment = true; return nil })
|
||||
opts.Opt("nocapi", func(opt string) error { t.noCapi = true; return nil })
|
||||
opts.Opt("nostdinc", func(opt string) error { t.nostdinc = true; return nil })
|
||||
opts.Opt("panic-stubs", func(opt string) error { t.panicStubs = true; return nil })
|
||||
opts.Opt("trace-pinning", func(opt string) error { t.tracePinning = true; return nil })
|
||||
opts.Opt("trace-translation-units", func(opt string) error { t.traceTranslationUnits = true; return nil })
|
||||
opts.Opt("unexported-by-default", func(opt string) error { t.defaultUnExport = true; return nil })
|
||||
opts.Opt("verbose-compiledb", func(opt string) error { t.verboseCompiledb = true; return nil })
|
||||
opts.Opt("verify-structs", func(opt string) error { t.verifyStructs = true; return nil })
|
||||
opts.Opt("version", func(opt string) error { t.version = true; return nil })
|
||||
opts.Opt("watch-instrumentation", func(opt string) error { t.watch = true; return nil })
|
||||
opts.Opt("windows", func(opt string) error { t.windows = true; return nil })
|
||||
|
||||
opts.Opt("trace-included-files", func(opt string) error {
|
||||
if t.includedFiles == nil {
|
||||
t.includedFiles = map[string]struct{}{}
|
||||
}
|
||||
prev := t.cfg.IncludeFileHandler
|
||||
t.cfg.IncludeFileHandler = func(pos token.Position, pathName string) {
|
||||
if prev != nil {
|
||||
prev(pos, pathName)
|
||||
}
|
||||
if _, ok := t.includedFiles[pathName]; !ok {
|
||||
t.includedFiles[pathName] = struct{}{}
|
||||
fmt.Fprintf(os.Stderr, "#include %s\n", pathName)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
})
|
||||
opts.Arg("ignore-object", false, func(arg, value string) error {
|
||||
if t.ignoredObjects == nil {
|
||||
t.ignoredObjects = map[string]struct{}{}
|
||||
}
|
||||
t.ignoredObjects[value] = struct{}{}
|
||||
return nil
|
||||
})
|
||||
opts.Arg("save-config", false, func(arg, value string) error {
|
||||
if value == "" {
|
||||
return nil
|
||||
}
|
||||
|
||||
abs, err := filepath.Abs(value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
t.saveConfig = abs
|
||||
if t.includedFiles == nil {
|
||||
t.includedFiles = map[string]struct{}{}
|
||||
}
|
||||
prev := t.cfg.IncludeFileHandler
|
||||
t.cfg.IncludeFileHandler = func(pos token.Position, pathName string) {
|
||||
if prev != nil {
|
||||
prev(pos, pathName)
|
||||
}
|
||||
if _, ok := t.includedFiles[pathName]; !ok {
|
||||
t.includedFiles[pathName] = struct{}{}
|
||||
full := filepath.Join(abs, pathName)
|
||||
switch _, err := os.Stat(full); {
|
||||
case err != nil && os.IsNotExist(err):
|
||||
// ok
|
||||
case err != nil:
|
||||
t.saveConfigErr = err
|
||||
return
|
||||
default:
|
||||
return
|
||||
}
|
||||
|
||||
b, err := ioutil.ReadFile(pathName)
|
||||
if err != nil {
|
||||
t.saveConfigErr = err
|
||||
return
|
||||
}
|
||||
|
||||
dir, _ := filepath.Split(full)
|
||||
if err := os.MkdirAll(dir, 0700); err != nil {
|
||||
t.saveConfigErr = err
|
||||
return
|
||||
}
|
||||
|
||||
if err := ioutil.WriteFile(full, b, 0600); err != nil {
|
||||
t.saveConfigErr = err
|
||||
}
|
||||
}
|
||||
}
|
||||
return nil
|
||||
})
|
||||
opts.Arg("-load-config", false, func(arg, value string) error {
|
||||
if value == "" {
|
||||
return nil
|
||||
}
|
||||
|
||||
abs, err := filepath.Abs(value)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
t.loadConfig = abs
|
||||
return nil
|
||||
})
|
||||
opts.Arg("volatile", false, func(arg, value string) error {
|
||||
for _, v := range strings.Split(strings.TrimSpace(value), ",") {
|
||||
t.volatiles[cc.String(v)] = struct{}{}
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
||||
opts.Opt("nostdlib", func(opt string) error {
|
||||
t.nostdlib = true
|
||||
t.crt = ""
|
||||
@@ -718,6 +845,10 @@ func (t *Task) Main() (err error) {
|
||||
|
||||
return t.createCompileDB(cmd)
|
||||
case t.cdb != "": // foo.json ..., use DB
|
||||
if err := t.configure(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return t.useCompileDB(t.cdb, x)
|
||||
}
|
||||
|
||||
@@ -767,11 +898,16 @@ func (t *Task) Main() (err error) {
|
||||
}
|
||||
t.imported[len(t.imported)-1].used = true // crt is always imported
|
||||
}
|
||||
|
||||
if err := t.configure(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
abi, err := cc.NewABI(t.goos, t.goarch)
|
||||
abi.Types[cc.LongDouble] = abi.Types[cc.Double]
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
abi.Types[cc.LongDouble] = abi.Types[cc.Double]
|
||||
|
||||
var re *regexp.Regexp
|
||||
if t.ignoredIncludes != "" {
|
||||
@@ -786,27 +922,19 @@ func (t *Task) Main() (err error) {
|
||||
t.cfg.ReplaceMacroTclIeeeDoubleRounding = t.replaceTclIeeeDoubleRounding
|
||||
t.cfg.Config3.IgnoreInclude = re
|
||||
t.cfg.Config3.NoFieldAndBitfieldOverlap = true
|
||||
t.cfg.Config3.PreserveWhiteSpace = true
|
||||
t.cfg.Config3.PreserveWhiteSpace = t.saveConfig == ""
|
||||
t.cfg.Config3.UnsignedEnums = true
|
||||
hostConfigOpts := strings.Split(t.hostConfigOpts, ",")
|
||||
if t.hostConfigOpts == "" {
|
||||
hostConfigOpts = nil
|
||||
}
|
||||
hostPredefined, hostIncludes, hostSysIncludes, err := cc.HostConfig(t.hostConfigCmd, hostConfigOpts...)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if t.mingw = detectMingw(hostPredefined); t.mingw {
|
||||
if t.mingw = detectMingw(t.hostPredefined); t.mingw {
|
||||
t.windows = true
|
||||
}
|
||||
if t.nostdinc {
|
||||
hostIncludes = nil
|
||||
hostSysIncludes = nil
|
||||
t.hostIncludes = nil
|
||||
t.hostSysIncludes = nil
|
||||
}
|
||||
var sources []cc.Source
|
||||
if hostPredefined != "" {
|
||||
sources = append(sources, cc.Source{Name: "<predefined>", Value: hostPredefined})
|
||||
if t.hostPredefined != "" {
|
||||
sources = append(sources, cc.Source{Name: "<predefined>", Value: t.hostPredefined})
|
||||
}
|
||||
sources = append(sources, cc.Source{Name: "<builtin>", Value: builtin})
|
||||
if len(t.D) != 0 {
|
||||
@@ -838,12 +966,12 @@ func (t *Task) Main() (err error) {
|
||||
// line, then in directories named in -I options, and last in the usual
|
||||
// places
|
||||
includePaths := append([]string{"@"}, t.I...)
|
||||
includePaths = append(includePaths, hostIncludes...)
|
||||
includePaths = append(includePaths, hostSysIncludes...)
|
||||
includePaths = append(includePaths, t.hostIncludes...)
|
||||
includePaths = append(includePaths, t.hostSysIncludes...)
|
||||
// For headers whose names are enclosed in angle brackets ( "<>" ), the
|
||||
// header shall be searched for only in directories named in -I options
|
||||
// and then in the usual places.
|
||||
sysIncludePaths := append(t.I, hostSysIncludes...)
|
||||
sysIncludePaths := append(t.I, t.hostSysIncludes...)
|
||||
if t.traceTranslationUnits {
|
||||
fmt.Printf("target: %s/%s\n", t.goos, t.goarch)
|
||||
if t.hostConfigCmd != "" {
|
||||
@@ -852,11 +980,17 @@ func (t *Task) Main() (err error) {
|
||||
}
|
||||
for i, v := range t.sources {
|
||||
tuSources := append(sources, v)
|
||||
out := t.stdout
|
||||
if t.saveConfig != "" {
|
||||
out = io.Discard
|
||||
t.E = true
|
||||
}
|
||||
if t.E {
|
||||
t.cfg.PreprocessOnly = true
|
||||
if err := cc.Preprocess(t.cfg, includePaths, sysIncludePaths, tuSources, t.stdout); err != nil {
|
||||
if err := cc.Preprocess(t.cfg, includePaths, sysIncludePaths, tuSources, out); err != nil {
|
||||
return err
|
||||
}
|
||||
memGuard(i, t.isScripted)
|
||||
continue
|
||||
}
|
||||
|
||||
@@ -883,6 +1017,81 @@ func (t *Task) Main() (err error) {
|
||||
return t.link()
|
||||
}
|
||||
|
||||
func (t *Task) configure() (err error) {
|
||||
if t.configured {
|
||||
return nil
|
||||
}
|
||||
|
||||
type jsonConfig struct {
|
||||
Predefined string
|
||||
IncludePaths []string
|
||||
SysIncludePaths []string
|
||||
OS string
|
||||
Arch string
|
||||
}
|
||||
|
||||
t.configured = true
|
||||
if t.loadConfig != "" {
|
||||
path := filepath.Join(t.loadConfig, "config.json")
|
||||
// trc("%p: LOAD_CONFIG(%s)", t, path)
|
||||
b, err := ioutil.ReadFile(path)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
loadConfig := &jsonConfig{}
|
||||
if err := json.Unmarshal(b, loadConfig); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
t.goos = loadConfig.OS
|
||||
t.goarch = loadConfig.Arch
|
||||
for _, v := range loadConfig.IncludePaths {
|
||||
t.hostIncludes = append(t.hostIncludes, filepath.Join(t.loadConfig, v))
|
||||
}
|
||||
for _, v := range loadConfig.SysIncludePaths {
|
||||
t.hostSysIncludes = append(t.hostSysIncludes, filepath.Join(t.loadConfig, v))
|
||||
}
|
||||
t.hostPredefined = loadConfig.Predefined
|
||||
return nil
|
||||
}
|
||||
|
||||
hostConfigOpts := strings.Split(t.hostConfigOpts, ",")
|
||||
if t.hostConfigOpts == "" {
|
||||
hostConfigOpts = nil
|
||||
}
|
||||
if t.hostPredefined, t.hostIncludes, t.hostSysIncludes, err = cc.HostConfig(t.hostConfigCmd, hostConfigOpts...); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if t.saveConfig != "" && !t.configSaved {
|
||||
t.configSaved = true
|
||||
// trc("%p: SAVE_CONFIG(%s)", t, t.saveConfig)
|
||||
cfg := &jsonConfig{
|
||||
Predefined: t.hostPredefined,
|
||||
IncludePaths: t.hostIncludes,
|
||||
SysIncludePaths: t.hostSysIncludes,
|
||||
OS: t.goos,
|
||||
Arch: t.goarch,
|
||||
}
|
||||
b, err := json.Marshal(cfg)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
full := filepath.Join(t.saveConfig, "config.json")
|
||||
if err := os.MkdirAll(t.saveConfig, 0700); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := ioutil.WriteFile(full, b, 0600); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (t *Task) setLookPaths() (err error) {
|
||||
if t.ccLookPath, err = exec.LookPath(t.cc); err != nil {
|
||||
return err
|
||||
@@ -913,6 +1122,9 @@ func (t *Task) link() (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
if out, e := exec.Command("gofmt", "-r", "(x) -> x", "-l", "-s", "-w", t.o).CombinedOutput(); e != nil && err == nil {
|
||||
err = fmt.Errorf(strings.Join([]string{string(out), e.Error()}, ": "))
|
||||
}
|
||||
if out, e := exec.Command("gofmt", "-l", "-s", "-w", t.o).CombinedOutput(); e != nil && err == nil {
|
||||
err = fmt.Errorf(strings.Join([]string{string(out), e.Error()}, ": "))
|
||||
}
|
||||
@@ -977,11 +1189,20 @@ func (t *Task) scriptBuild2(script [][]string) error {
|
||||
fmt.Printf("%s\n", cmd)
|
||||
}
|
||||
t2 := NewTask(append(ccgo, args...), t.stdout, t.stderr)
|
||||
t2.cfg.IncludeFileHandler = t.cfg.IncludeFileHandler
|
||||
t2.cfg.SharedFunctionDefinitions = t.cfg.SharedFunctionDefinitions
|
||||
t2.configSaved = t.configSaved
|
||||
t2.configured = t.configured
|
||||
t2.hostIncludes = t.hostIncludes
|
||||
t2.hostPredefined = t.hostPredefined
|
||||
t2.hostSysIncludes = t.hostSysIncludes
|
||||
t2.includedFiles = t.includedFiles
|
||||
t2.isScripted = true
|
||||
t2.loadConfig = t.loadConfig
|
||||
t2.replaceFdZero = t.replaceFdZero
|
||||
t2.replaceTclDefaultDoubleRounding = t.replaceTclDefaultDoubleRounding
|
||||
t2.replaceTclIeeeDoubleRounding = t.replaceTclIeeeDoubleRounding
|
||||
t2.isScripted = true
|
||||
t2.saveConfig = t.saveConfig
|
||||
if err := inDir(dir, t2.Main); err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -1004,6 +1225,10 @@ func (t *Task) scriptBuild2(script [][]string) error {
|
||||
}
|
||||
t.imported[len(t.imported)-1].used = true // crt is always imported
|
||||
}
|
||||
if t.saveConfig != "" {
|
||||
return nil
|
||||
}
|
||||
|
||||
return t.link()
|
||||
}
|
||||
|
||||
@@ -1012,7 +1237,8 @@ type cdb struct {
|
||||
outputIndex map[string][]*cdbItem
|
||||
}
|
||||
|
||||
func (db *cdb) find(obj map[string]*cdbItem, nm string, ver, seqLimit int, trace bool, path []string, cc, ar string) error {
|
||||
func (db *cdb) find(obj map[string]*cdbItem, nm string, ver, seqLimit int, path []string, cc, ar string, ignored map[string]struct{}) error {
|
||||
// trc("%v: nm %q ver %v seqLimit %v path %q cc %q ar %q", origin(1), nm, ver, seqLimit, path, cc, ar)
|
||||
var item *cdbItem
|
||||
var k string
|
||||
switch {
|
||||
@@ -1071,6 +1297,12 @@ func (db *cdb) find(obj map[string]*cdbItem, nm string, ver, seqLimit int, trace
|
||||
}
|
||||
}
|
||||
if item == nil {
|
||||
for k := range ignored {
|
||||
if k == nm || strings.HasSuffix(nm, k) {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
return fmt.Errorf("not found in compile DB: %s (max seq %d), path %v", k, seqLimit, path)
|
||||
}
|
||||
|
||||
@@ -1081,7 +1313,7 @@ func (db *cdb) find(obj map[string]*cdbItem, nm string, ver, seqLimit int, trace
|
||||
obj[k] = item
|
||||
var errs []string
|
||||
for _, v := range item.sources(cc, ar) {
|
||||
if err := db.find(obj, v, -1, item.seq, trace, append(path, nm), cc, ar); err != nil {
|
||||
if err := db.find(obj, v, -1, item.seq, append(path, nm), cc, ar, ignored); err != nil {
|
||||
errs = append(errs, err.Error())
|
||||
}
|
||||
}
|
||||
@@ -1159,7 +1391,7 @@ func (t *Task) useCompileDB(fn string, args []string) error {
|
||||
notFound := false
|
||||
for _, v := range args {
|
||||
v, ver := suffixNum(v, 0)
|
||||
if err := cdb.find(obj, v, ver, -1, t.traceTranslationUnits, nil, t.ccLookPath, t.arLookPath); err != nil {
|
||||
if err := cdb.find(obj, v, ver, -1, nil, t.ccLookPath, t.arLookPath, t.ignoredObjects); err != nil {
|
||||
notFound = true
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
}
|
||||
@@ -1196,6 +1428,13 @@ func (t *Task) cdbBuild(obj map[string]*cdbItem, list []string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
for _, v := range t.D {
|
||||
args = append(args, "-D"+v)
|
||||
}
|
||||
for _, v := range t.U {
|
||||
args = append(args, "-U"+v)
|
||||
}
|
||||
|
||||
line := append([]string{it.Directory}, args...)
|
||||
script = append(script, line)
|
||||
}
|
||||
@@ -1236,7 +1475,10 @@ func (t *Task) createCompileDB(command []string) (rerr error) {
|
||||
out:
|
||||
switch t.goos {
|
||||
case "darwin", "freebsd", "netbsd":
|
||||
if command[0] != "make" {
|
||||
switch command[0] {
|
||||
case "make", "gmake":
|
||||
// ok
|
||||
default:
|
||||
return fmt.Errorf("usupported build command: %s", command[0])
|
||||
}
|
||||
|
||||
@@ -1248,15 +1490,33 @@ out:
|
||||
command = append([]string{sh, "-c"}, join(" ", command[0], "SHELL='sh -x'", command[1:]))
|
||||
cmd = exec.Command(command[0], command[1:]...)
|
||||
parser = makeXParser
|
||||
case "openbsd":
|
||||
switch command[0] {
|
||||
case "make", "gmake":
|
||||
// ok
|
||||
default:
|
||||
return fmt.Errorf("usupported build command: %s", command[0])
|
||||
}
|
||||
|
||||
sh, err := exec.LookPath("sh")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
command = append([]string{sh, "-c"}, join(" ", command[0], "SHELL='sh -x'", command[1:]))
|
||||
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
|
||||
@@ -1279,7 +1539,12 @@ out:
|
||||
}
|
||||
cmd.Env = append(os.Environ(), "LC_ALL=C")
|
||||
cw := t.newCdbMakeWriter(cwr, cwd, parser)
|
||||
cmd.Stdout = io.MultiWriter(cw, os.Stdout)
|
||||
switch {
|
||||
case t.verboseCompiledb:
|
||||
cmd.Stdout = io.MultiWriter(cw, os.Stdout)
|
||||
default:
|
||||
cmd.Stdout = cw
|
||||
}
|
||||
cmd.Stderr = cmd.Stdout
|
||||
if dmesgs {
|
||||
dmesg("%v: %v", origin(1), cmd.Args)
|
||||
@@ -1333,18 +1598,92 @@ func isCreateArchive(s string) bool {
|
||||
b := []byte(s)
|
||||
sort.Slice(b, func(i, j int) bool { return b[i] < b[j] })
|
||||
switch string(b) {
|
||||
case "cq", "cr", "crs", "cru":
|
||||
case "cq", "cr", "crs", "cru", "r":
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func makeXParser(s string) ([]string, error) {
|
||||
if !strings.HasPrefix(s, "+ ") {
|
||||
func hasPlusPrefix(s string) (n int, r string) {
|
||||
for strings.HasPrefix(s, "+") {
|
||||
n++
|
||||
s = s[1:]
|
||||
}
|
||||
return n, s
|
||||
}
|
||||
|
||||
func makeXParser(s string) (r []string, err error) {
|
||||
switch {
|
||||
case strings.HasPrefix(s, "libtool: link: ar "):
|
||||
s = s[len("libtool: link:"):]
|
||||
case strings.HasPrefix(s, "libtool: compile: "):
|
||||
s = s[len("libtool: compile:"):]
|
||||
for strings.HasPrefix(s, " ") {
|
||||
s = s[1:]
|
||||
}
|
||||
default:
|
||||
var n int
|
||||
if n, s = hasPlusPrefix(s); n == 0 {
|
||||
return nil, nil
|
||||
}
|
||||
}
|
||||
|
||||
if !strings.HasPrefix(s, " ") {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
return shellquote.Split(s[2:])
|
||||
s = s[1:]
|
||||
if dmesgs {
|
||||
dmesg("%v: source line `%s`, caller %v:", origin(1), s, origin(2))
|
||||
}
|
||||
r, err = shellquote.Split(s)
|
||||
if dmesgs {
|
||||
dmesg("%v: shellquote.Split -> %v %[2]q, %v", origin(1), r, err)
|
||||
}
|
||||
if err != nil {
|
||||
if strings.Contains(err.Error(), "Unterminated single-quoted string") {
|
||||
return nil, nil // ignore
|
||||
}
|
||||
}
|
||||
if len(r) != 0 && filepath.Base(r[0]) == "libtool" {
|
||||
r[0] = "libtool"
|
||||
}
|
||||
return r, err
|
||||
}
|
||||
|
||||
func makeXParser2(s string) (r []string, err error) {
|
||||
s = strings.TrimSpace(s)
|
||||
switch {
|
||||
case strings.HasPrefix(s, "libtool: link: ar "):
|
||||
s = s[len("libtool: link:"):]
|
||||
case strings.HasPrefix(s, "libtool: compile: "):
|
||||
s = s[len("libtool: compile:"):]
|
||||
for strings.HasPrefix(s, " ") {
|
||||
s = s[1:]
|
||||
}
|
||||
default:
|
||||
var n int
|
||||
if n, s = hasPlusPrefix(s); n != 0 {
|
||||
return nil, nil
|
||||
}
|
||||
}
|
||||
|
||||
if dmesgs {
|
||||
dmesg("%v: source line `%s`, caller %v:", origin(1), s, origin(2))
|
||||
}
|
||||
r, err = shellquote.Split(s)
|
||||
if dmesgs {
|
||||
dmesg("%v: shellquote.Split -> %v %[2]q, %v", origin(1), r, err)
|
||||
}
|
||||
if err != nil {
|
||||
if strings.Contains(err.Error(), "Unterminated single-quoted string") {
|
||||
return nil, nil // ignore
|
||||
}
|
||||
}
|
||||
if len(r) != 0 && filepath.Base(r[0]) == "libtool" {
|
||||
r[0] = "libtool"
|
||||
}
|
||||
return r, err
|
||||
}
|
||||
|
||||
func straceParser(s string) ([]string, error) {
|
||||
@@ -1415,13 +1754,16 @@ func (it *cdbItem) ccgoArgs(cc string) (r []string, err error) {
|
||||
set.Arg("o", true, func(opt, arg string) error { return nil })
|
||||
set.Arg("std", true, func(opt, arg string) error { return nil })
|
||||
set.Opt("MD", func(opt string) error { return nil })
|
||||
set.Opt("MMD", func(opt string) error { return nil })
|
||||
set.Opt("MP", func(opt string) error { return nil })
|
||||
set.Opt("ansi", func(opt string) error { return nil })
|
||||
set.Opt("c", func(opt string) error { return nil })
|
||||
set.Opt("g", func(opt string) error { return nil })
|
||||
set.Opt("pedantic", func(opt string) error { return nil })
|
||||
set.Opt("pipe", func(opt string) error { return nil })
|
||||
set.Opt("pthread", func(opt string) error { return nil })
|
||||
set.Opt("s", func(opt string) error { return nil })
|
||||
set.Opt("w", func(opt string) error { return nil })
|
||||
if err := set.Parse(it.Arguments[1:], func(arg string) error {
|
||||
switch {
|
||||
case strings.HasSuffix(arg, ".c"):
|
||||
@@ -1433,13 +1775,20 @@ func (it *cdbItem) ccgoArgs(cc string) (r []string, err error) {
|
||||
strings.HasPrefix(arg, "-m"):
|
||||
|
||||
// nop
|
||||
case strings.HasPrefix(arg, ">"):
|
||||
return opt.Skip(nil)
|
||||
default:
|
||||
return fmt.Errorf("unknown/unsupported option: %s", arg)
|
||||
return fmt.Errorf("unknown/unsupported CC option: %s", arg)
|
||||
}
|
||||
|
||||
return nil
|
||||
}); err != nil {
|
||||
return nil, err
|
||||
switch err.(type) {
|
||||
case opt.Skip:
|
||||
// ok
|
||||
default:
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
return r, nil
|
||||
@@ -1493,16 +1842,22 @@ func (it *cdbItem) sources(cc, ar string) (r []string) {
|
||||
return nil
|
||||
}
|
||||
|
||||
switch it.Arguments[0] {
|
||||
switch arg0 := it.Arguments[0]; arg0 {
|
||||
case
|
||||
"libtool",
|
||||
ar,
|
||||
filepath.Base(ar),
|
||||
cc:
|
||||
|
||||
var prev string
|
||||
for _, v := range it.Arguments {
|
||||
if prev != "-o" && strings.HasSuffix(v, ".o") {
|
||||
r = append(r, filepath.Join(it.Directory, v))
|
||||
switch prev {
|
||||
case "-o", "-MT", "-MF":
|
||||
// nop
|
||||
default:
|
||||
if strings.HasSuffix(v, ".o") {
|
||||
r = append(r, filepath.Join(it.Directory, v))
|
||||
}
|
||||
}
|
||||
prev = v
|
||||
}
|
||||
@@ -1513,24 +1868,29 @@ func (it *cdbItem) sources(cc, ar string) (r []string) {
|
||||
}
|
||||
|
||||
type cdbMakeWriter struct {
|
||||
ar string
|
||||
arBase string
|
||||
b bytes.Buffer
|
||||
cc string
|
||||
ar string
|
||||
dir string
|
||||
err error
|
||||
it cdbItem
|
||||
parser func(s string) ([]string, error)
|
||||
prefix string
|
||||
sc *bufio.Scanner
|
||||
t *Task
|
||||
w *cdbWriter
|
||||
}
|
||||
|
||||
func (t *Task) newCdbMakeWriter(w *cdbWriter, dir string, parser func(s string) ([]string, error)) *cdbMakeWriter {
|
||||
const sz = 1 << 16
|
||||
r := &cdbMakeWriter{
|
||||
cc: t.ccLookPath,
|
||||
ar: t.arLookPath,
|
||||
arBase: filepath.Base(t.arLookPath),
|
||||
cc: t.ccLookPath,
|
||||
dir: dir,
|
||||
parser: parser,
|
||||
t: t,
|
||||
w: w,
|
||||
}
|
||||
r.sc = bufio.NewScanner(&r.b)
|
||||
@@ -1540,7 +1900,7 @@ func (t *Task) newCdbMakeWriter(w *cdbWriter, dir string, parser func(s string)
|
||||
|
||||
func (w *cdbMakeWriter) fail(err error) {
|
||||
if w.err == nil {
|
||||
w.err = err
|
||||
w.err = fmt.Errorf("%v (%v)", err, origin(2))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1551,7 +1911,15 @@ func (w *cdbMakeWriter) Write(b []byte) (int, error) {
|
||||
panic(todo("internal error"))
|
||||
}
|
||||
|
||||
s := strings.TrimSpace(w.sc.Text())
|
||||
s := w.sc.Text()
|
||||
if strings.HasSuffix(s, "\\") {
|
||||
w.prefix += s[:len(s)-1]
|
||||
continue
|
||||
}
|
||||
|
||||
s = w.prefix + s
|
||||
w.prefix = ""
|
||||
s = strings.TrimSpace(s)
|
||||
if edx := strings.Index(s, "Entering directory"); edx >= 0 {
|
||||
s = s[edx+len("Entering directory"):]
|
||||
s = strings.TrimSpace(s)
|
||||
@@ -1584,7 +1952,13 @@ func (w *cdbMakeWriter) Write(b []byte) (int, error) {
|
||||
continue
|
||||
}
|
||||
|
||||
if dmesgs {
|
||||
dmesg("%v: source line `%s`", origin(1), s)
|
||||
}
|
||||
args, err := w.parser(s)
|
||||
if dmesgs {
|
||||
dmesg("%v: parser -> %v %[2]q, %v", origin(1), args, err)
|
||||
}
|
||||
if err != nil {
|
||||
w.fail(err)
|
||||
continue
|
||||
@@ -1601,14 +1975,25 @@ func (w *cdbMakeWriter) Write(b []byte) (int, error) {
|
||||
err = nil
|
||||
switch args[0] {
|
||||
case w.cc:
|
||||
if w.t.verboseCompiledb {
|
||||
fmt.Printf("source line: %q\n", s)
|
||||
}
|
||||
fmt.Printf("CCGO CC: %q\n", args)
|
||||
err = w.handleGCC(args)
|
||||
case w.ar:
|
||||
fallthrough
|
||||
case w.arBase:
|
||||
if isCreateArchive(args[1]) {
|
||||
if w.t.verboseCompiledb {
|
||||
fmt.Printf("source line: %q\n", s)
|
||||
}
|
||||
fmt.Printf("CCGO AR: %q\n", args)
|
||||
err = w.handleAR(args)
|
||||
}
|
||||
case "libtool":
|
||||
if w.t.verboseCompiledb {
|
||||
fmt.Printf("source line: %q\n", s)
|
||||
}
|
||||
fmt.Printf("CCGO LIBTOOL: %q\n", args)
|
||||
err = w.handleLibtool(args)
|
||||
}
|
||||
|
||||
+2
-1
@@ -32,7 +32,8 @@ func dmesg(s string, args ...interface{}) {
|
||||
if s == "" {
|
||||
s = strings.Repeat("%v ", len(args))
|
||||
}
|
||||
s = fmt.Sprintf(pid+s, args...)
|
||||
s = fmt.Sprintf(s, args...)
|
||||
s = pid + s
|
||||
switch {
|
||||
case len(s) != 0 && s[len(s)-1] == '\n':
|
||||
fmt.Fprint(logf, s)
|
||||
|
||||
+840
-515
File diff suppressed because it is too large.
Load diff
+106
-117
@@ -59,7 +59,7 @@ func (p *project) initializerInner(tag string, off uintptr, f *function, s []*cc
|
||||
tld.patches = append(tld.patches, initPatch{t, s[0], patchField})
|
||||
p.w(" 0 ")
|
||||
default:
|
||||
p.assignmentExpression(f, s[0].AssignmentExpression, t, exprValue, fOutermost)
|
||||
p.assignmentExpression(f, s[0].AssignmentExpression, t, exprValue, 0)
|
||||
}
|
||||
return
|
||||
}
|
||||
@@ -79,7 +79,7 @@ func (p *project) initializerInner(tag string, off uintptr, f *function, s []*cc
|
||||
case cc.Struct, cc.Union:
|
||||
if compatibleStructOrUnion(t, s[0].AssignmentExpression.Operand.Type()) {
|
||||
p.w("%s%s", tidyComment("", s[0]), tag)
|
||||
p.assignmentExpression(f, s[0].AssignmentExpression, t, exprValue, fOutermost)
|
||||
p.assignmentExpression(f, s[0].AssignmentExpression, t, exprValue, 0)
|
||||
return
|
||||
}
|
||||
}
|
||||
@@ -87,9 +87,6 @@ func (p *project) initializerInner(tag string, off uintptr, f *function, s []*cc
|
||||
|
||||
if k == cc.Array && len(s) == 1 {
|
||||
et := t.Elem()
|
||||
if dmesgs { //TODO-
|
||||
dmesg("%v: %v", s[0].Position(), et)
|
||||
}
|
||||
switch {
|
||||
case isCharType(et):
|
||||
// 14: An array of character type may be initialized by a character string
|
||||
@@ -147,13 +144,13 @@ func (p *project) initializerInner(tag string, off uintptr, f *function, s []*cc
|
||||
case cc.Union:
|
||||
p.initializerUnion(tag, off, f, s, t, sc, tld, lm, tm)
|
||||
default:
|
||||
panic(todo("%v: internal error: %v %v", s[0].Position(), t, len(s)))
|
||||
panic(todo("%v: internal error: %v alias %v %v", s[0].Position(), t, t.Alias(), len(s)))
|
||||
}
|
||||
}
|
||||
|
||||
func (p *project) initializerArray(tag string, off uintptr, f *function, s []*cc.Initializer, t cc.Type, sc cc.StorageClass, tld *tld, lm, tm map[*cc.Initializer][]cc.StringID) {
|
||||
if len(s) == 0 {
|
||||
p.w("%s{}", p.typ(nil, t))
|
||||
p.w("%s%s{}", tag, p.typ(nil, t))
|
||||
return
|
||||
}
|
||||
|
||||
@@ -172,7 +169,7 @@ func (p *project) initializerArray(tag string, off uintptr, f *function, s []*cc
|
||||
for _, parts = range a {
|
||||
var comma *cc.Token
|
||||
comma = parts[len(parts)-1].TrailingComma()
|
||||
elemOff := parts[0].Offset - off
|
||||
elemOff := (parts[0].Offset - off) / esz * esz
|
||||
tag = ""
|
||||
if mustIndex {
|
||||
tag = fmt.Sprintf("%d:", elemOff/esz)
|
||||
@@ -217,7 +214,7 @@ func (p *project) initializerArrayElement(off uintptr, s []*cc.Initializer, elem
|
||||
|
||||
func (p *project) initializerStruct(tag string, off uintptr, f *function, s []*cc.Initializer, t cc.Type, sc cc.StorageClass, tld *tld, lm, tm map[*cc.Initializer][]cc.StringID) {
|
||||
if len(s) == 0 {
|
||||
p.w("%s{}", p.typ(nil, t))
|
||||
p.w("%s%s{}", tag, p.typ(nil, t))
|
||||
return
|
||||
}
|
||||
|
||||
@@ -232,7 +229,7 @@ func (p *project) initializerStruct(tag string, off uintptr, f *function, s []*c
|
||||
var fld cc.Field
|
||||
for len(s) != 0 {
|
||||
var comma *cc.Token
|
||||
s, fld, parts, isZero = p.initializerStructField(off, s, t)
|
||||
s, fld, parts, isZero = p.structInitializerParts(off, s, t)
|
||||
if isZero {
|
||||
continue
|
||||
}
|
||||
@@ -246,6 +243,8 @@ func (p *project) initializerStruct(tag string, off uintptr, f *function, s []*c
|
||||
ft := fld.Type()
|
||||
switch {
|
||||
case fld.IsBitField():
|
||||
bft := p.bitFileType(parts[0], fld.BitFieldBlockWidth())
|
||||
off0 := fld.Offset()
|
||||
first := true
|
||||
for _, v := range parts {
|
||||
if v.AssignmentExpression.Operand.IsZero() {
|
||||
@@ -257,12 +256,11 @@ func (p *project) initializerStruct(tag string, off uintptr, f *function, s []*c
|
||||
}
|
||||
first = false
|
||||
bitFld := v.Field
|
||||
bft := p.bitFileType(bitFld.BitFieldBlockWidth())
|
||||
p.w("%s%s", tidyComment("", v.AssignmentExpression), tag)
|
||||
tag = ""
|
||||
p.assignmentExpression(f, v.AssignmentExpression, bft, exprValue, fOutermost)
|
||||
p.assignmentExpression(f, v.AssignmentExpression, bft, exprValue, 0)
|
||||
p.w("&%#x", uint64(1)<<uint64(bitFld.BitFieldWidth())-1)
|
||||
if o := bitFld.BitFieldOffset(); o != 0 {
|
||||
if o := bitFld.BitFieldOffset() + 8*int((bitFld.Offset()-off0)); o != 0 {
|
||||
p.w("<<%d", o)
|
||||
}
|
||||
}
|
||||
@@ -283,150 +281,141 @@ func (p *project) preCommaSep(comma *cc.Token) {
|
||||
p.w("%s", strings.TrimSpace(comma.Sep.String()))
|
||||
}
|
||||
|
||||
func (p *project) initializerStructField(off uintptr, s []*cc.Initializer, t cc.Type) (r []*cc.Initializer, fld cc.Field, parts []*cc.Initializer, isZero bool) {
|
||||
r = s
|
||||
isZero = true
|
||||
valueOff := s[0].Offset
|
||||
nf := t.NumField()
|
||||
nextOff := off + t.Size()
|
||||
bits := false
|
||||
for i := []int{0}; i[0] < nf; i[0]++ {
|
||||
fld2 := t.FieldByIndex(i)
|
||||
if fld == nil {
|
||||
fld = fld2
|
||||
}
|
||||
if fld2.Offset()+off > valueOff {
|
||||
nextOff = off + fld2.Offset()
|
||||
func (p *project) structInitializerParts(off uintptr, s []*cc.Initializer, t cc.Type) (r []*cc.Initializer, fld cc.Field, parts []*cc.Initializer, isZero bool) {
|
||||
if len(s) == 0 {
|
||||
return nil, nil, nil, true
|
||||
}
|
||||
|
||||
part := s[0]
|
||||
isZero = part.AssignmentExpression.Operand.IsZero()
|
||||
parts = append(parts, part)
|
||||
s = s[1:]
|
||||
fld, _, fNext := p.containingStructField(part, off, t)
|
||||
for len(s) != 0 {
|
||||
part = s[0]
|
||||
vOff := part.Offset
|
||||
if vOff >= fNext {
|
||||
break
|
||||
}
|
||||
|
||||
if !fld2.IsBitField() {
|
||||
fld = fld2
|
||||
isZero = isZero && part.AssignmentExpression.Operand.IsZero()
|
||||
parts = append(parts, part)
|
||||
s = s[1:]
|
||||
}
|
||||
return s, fld, parts, isZero
|
||||
}
|
||||
|
||||
func (p *project) containingStructField(part *cc.Initializer, off uintptr, t cc.Type) (f cc.Field, fOff, fNext uintptr) {
|
||||
nf := t.NumField()
|
||||
vOff := part.Offset
|
||||
for i := []int{0}; i[0] < nf; i[0]++ {
|
||||
f = t.FieldByIndex(i)
|
||||
if f.IsBitField() && f.Name() == 0 { // Anonymous bit fields cannot be initialized.
|
||||
continue
|
||||
}
|
||||
|
||||
fld = fld2.BitFieldBlockFirst()
|
||||
}
|
||||
for len(s) != 0 {
|
||||
if v := s[0]; v.Offset < nextOff || v.Type().Size() == 0 {
|
||||
if v.Field != nil && v.Field.IsBitField() {
|
||||
bits = true
|
||||
}
|
||||
s = s[1:]
|
||||
parts = append(parts, v)
|
||||
if !v.AssignmentExpression.Operand.IsZero() {
|
||||
isZero = false
|
||||
}
|
||||
continue
|
||||
fOff = off + f.Offset()
|
||||
switch {
|
||||
case f.IsBitField():
|
||||
fNext = fOff + uintptr(f.BitFieldBlockWidth())>>3
|
||||
default:
|
||||
fNext = fOff + f.Type().Size()
|
||||
}
|
||||
if vOff >= fOff && vOff < fNext {
|
||||
return f, fOff, fNext
|
||||
}
|
||||
}
|
||||
|
||||
break
|
||||
}
|
||||
if bits && fld.Name() == 0 {
|
||||
for _, v := range parts {
|
||||
if v.Field != nil && v.Field.Name() != 0 {
|
||||
fld = v.Field
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
return r[len(parts):], fld, parts, isZero
|
||||
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) {
|
||||
if len(s) == 0 {
|
||||
p.w("%s{}", p.typ(nil, t))
|
||||
p.w("%s%s{}", tag, p.typ(nil, t))
|
||||
return
|
||||
}
|
||||
|
||||
s0 := s[0]
|
||||
var parts []*cc.Initializer
|
||||
var isZero bool
|
||||
var fld cc.Field
|
||||
s, fld, parts, isZero = p.initializerUnionField(off, s, t)
|
||||
if len(s) != 0 {
|
||||
panic(todo("%v: internal error: %v", s0.Position(), t))
|
||||
if t.HasFlexibleMember() {
|
||||
p.err(s[0], "flexible array members not supported")
|
||||
return
|
||||
}
|
||||
|
||||
if isZero {
|
||||
p.w("%s%s%s{", initComment(s0, lm), tag, p.typ(s0, t))
|
||||
parts, isZero := p.initializerUnionField(off, s, t)
|
||||
if len(parts) == 0 || isZero {
|
||||
p.w("%s%s%s{", initComment(s[0], lm), tag, p.typ(s[0], t))
|
||||
p.w("%s}", initComment(parts[len(parts)-1], tm))
|
||||
return
|
||||
}
|
||||
|
||||
if fld0 := parts[0].FirstDesignatorField(); fld0 != nil && fld0.Index() != 0 {
|
||||
if fld0.IsBitField() || fld.IsBitField() {
|
||||
panic(todo(""))
|
||||
p.w("%sfunc() (r %s) {", tag, p.typ(parts[0], t))
|
||||
for _, part := range parts {
|
||||
var ft cc.Type
|
||||
fld := part.Field
|
||||
if fld != nil && fld.IsBitField() {
|
||||
}
|
||||
|
||||
fld := parts[0].Field
|
||||
if fld.IsBitField() {
|
||||
panic(todo(""))
|
||||
if ft == nil {
|
||||
ft = part.Type()
|
||||
}
|
||||
|
||||
// tag: *(*T)(unsafe.Pointer(&struct{f: ft; pad _[n]byte}{f: expr}))
|
||||
p.w("%s *(*%s)(unsafe.Pointer(&struct{f %s", tag, p.typ(s0, t), p.typ(s0, fld.Type()))
|
||||
if pad := t.Size() - fld.Type().Size(); pad != 0 {
|
||||
p.w("; _ [%v]byte", pad)
|
||||
}
|
||||
p.w("}{")
|
||||
p.initializerInner("f:", off+fld.Offset(), f, parts, fld.Type(), sc, tld, fld, lm, tm)
|
||||
p.w("}))")
|
||||
return
|
||||
}
|
||||
|
||||
p.w("%s%s%s{", initComment(s0, lm), tag, p.typ(s0, t))
|
||||
ft := fld.Type()
|
||||
tag = fmt.Sprintf("%s:", p.fieldName2(parts[0], fld))
|
||||
switch {
|
||||
case fld.IsBitField():
|
||||
first := true
|
||||
for _, v := range parts {
|
||||
if v.AssignmentExpression.Operand.IsZero() {
|
||||
continue
|
||||
if ft.Kind() == cc.Array {
|
||||
et := ft.Elem()
|
||||
switch {
|
||||
case isCharType(et):
|
||||
switch x := part.AssignmentExpression.Operand.Value().(type) {
|
||||
case cc.StringValue:
|
||||
str := cc.StringID(x).String()
|
||||
slen := uintptr(len(str)) + 1
|
||||
alen := ft.Len()
|
||||
switch {
|
||||
case alen < slen-1:
|
||||
p.w("copy(((*[%d]byte)(unsafe.Pointer(uintptr(unsafe.Pointer(&r))+%d)))[:], (*[%d]byte)(unsafe.Pointer(%s))[:])\n", alen, part.Offset-off, alen, p.stringLiteralString(str[:alen]))
|
||||
case alen < slen:
|
||||
p.w("copy(((*[%d]byte)(unsafe.Pointer(uintptr(unsafe.Pointer(&r))+%d)))[:], (*[%d]byte)(unsafe.Pointer(%s))[:])\n", alen, part.Offset-off, alen, p.stringLiteralString(str))
|
||||
default: // alen >= slen
|
||||
p.w("copy(((*[%d]byte)(unsafe.Pointer(uintptr(unsafe.Pointer(&r))+%d)))[:], (*[%d]byte)(unsafe.Pointer(%s))[:])\n", alen, part.Offset-off, alen, p.stringLiteralString(str+strings.Repeat("\x00", int(alen-slen))))
|
||||
}
|
||||
continue
|
||||
default:
|
||||
panic(todo("%v: %v <- %T", p.pos(part), et, x))
|
||||
}
|
||||
case p.isWCharType(et):
|
||||
panic(todo(""))
|
||||
}
|
||||
|
||||
if !first {
|
||||
p.w("|")
|
||||
}
|
||||
first = false
|
||||
bitFld := v.Field
|
||||
bft := p.bitFileType(bitFld.BitFieldBlockWidth())
|
||||
p.w("%s%s", tidyComment("", v.AssignmentExpression), tag)
|
||||
tag = ""
|
||||
p.assignmentExpression(f, v.AssignmentExpression, bft, exprValue, fOutermost)
|
||||
p.w("&%#x", uint64(1)<<uint64(bitFld.BitFieldWidth())-1)
|
||||
if o := bitFld.BitFieldOffset(); o != 0 {
|
||||
ft = et
|
||||
}
|
||||
switch {
|
||||
case fld != nil && fld.IsBitField():
|
||||
bft := p.bitFileType(part, fld.BitFieldBlockWidth())
|
||||
p.w("*(*%s)(unsafe.Pointer(uintptr(unsafe.Pointer(&r))+%d)) |= ", p.typ(part, bft), part.Offset-off)
|
||||
p.assignmentExpression(f, part.AssignmentExpression, bft, exprValue, 0)
|
||||
p.w("&%#x", uint64(1)<<uint64(fld.BitFieldWidth())-1)
|
||||
if o := fld.BitFieldOffset(); o != 0 {
|
||||
p.w("<<%d", o)
|
||||
}
|
||||
default:
|
||||
p.w("*(*%s)(unsafe.Pointer(uintptr(unsafe.Pointer(&r))+%d)) = ", p.typ(part, ft), part.Offset-off)
|
||||
p.assignmentExpression(f, part.AssignmentExpression, ft, exprValue, 0)
|
||||
}
|
||||
default:
|
||||
p.initializerInner(tag, off+fld.Offset(), f, parts, ft, sc, tld, fld, lm, tm)
|
||||
p.w("\n")
|
||||
}
|
||||
comma := parts[len(parts)-1].TrailingComma()
|
||||
p.preCommaSep(comma)
|
||||
p.w(",")
|
||||
p.w("%s}", initComment(parts[len(parts)-1], tm))
|
||||
p.w("return r\n")
|
||||
p.w("}()")
|
||||
}
|
||||
|
||||
func (p *project) initializerUnionField(off uintptr, s []*cc.Initializer, t cc.Type) (r []*cc.Initializer, fld cc.Field, parts []*cc.Initializer, isZero bool) {
|
||||
r = s
|
||||
func (p *project) initializerUnionField(off uintptr, s []*cc.Initializer, t cc.Type) (parts []*cc.Initializer, isZero bool) {
|
||||
isZero = true
|
||||
fld = t.FieldByIndex([]int{0})
|
||||
nextOff := off + t.Size()
|
||||
for len(s) != 0 {
|
||||
if v := s[0]; v.Offset < nextOff {
|
||||
s = s[1:]
|
||||
parts = append(parts, v)
|
||||
if !v.AssignmentExpression.Operand.IsZero() {
|
||||
isZero = false
|
||||
}
|
||||
isZero = isZero && v.AssignmentExpression.Operand.IsZero()
|
||||
continue
|
||||
}
|
||||
|
||||
break
|
||||
}
|
||||
return r[len(parts):], fld, parts, isZero
|
||||
return parts, isZero
|
||||
}
|
||||
|
||||
func compatibleStructOrUnion(t1, t2 cc.Type) bool {
|
||||
@@ -494,7 +483,7 @@ func compatibleType(t1, t2 cc.Type) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (p *project) bitFileType(bits int) cc.Type {
|
||||
func (p *project) bitFileType(n cc.Node, bits int) cc.Type {
|
||||
switch bits {
|
||||
case 8:
|
||||
return p.task.cfg.ABI.Type(cc.UChar)
|
||||
@@ -505,7 +494,7 @@ func (p *project) bitFileType(bits int) cc.Type {
|
||||
case 64:
|
||||
return p.task.cfg.ABI.Type(cc.ULongLong)
|
||||
default:
|
||||
panic(todo("%v: internal error: %v", bits))
|
||||
panic(todo("%v: internal error: %v", n.Position(), bits))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-2
@@ -19,11 +19,12 @@ func _() {
|
||||
_ = x[exprSelect-9]
|
||||
_ = x[exprValue-10]
|
||||
_ = x[exprVoid-11]
|
||||
_ = x[exprGoPtr-12]
|
||||
}
|
||||
|
||||
const _exprMode_name = "exprAddrOfexprBoolexprCondInitexprCondReturnexprDecayexprFuncexprLValueexprPSelectexprSelectexprValueexprVoid"
|
||||
const _exprMode_name = "exprAddrOfexprBoolexprCondInitexprCondReturnexprDecayexprFuncexprLValueexprPSelectexprSelectexprValueexprVoidexprGoPtr"
|
||||
|
||||
var _exprMode_index = [...]uint8{0, 10, 18, 30, 44, 53, 61, 71, 82, 92, 101, 109}
|
||||
var _exprMode_index = [...]uint8{0, 10, 18, 30, 44, 53, 61, 71, 82, 92, 101, 109, 118}
|
||||
|
||||
func (i exprMode) String() string {
|
||||
i -= 1
|
||||
|
||||
+21
-1
@@ -375,7 +375,7 @@ func Shell(cmd string, args ...string) ([]byte, error) {
|
||||
func MustShell(stackTrace bool, cmd string, args ...string) []byte {
|
||||
b, err := Shell(cmd, args...)
|
||||
if err != nil {
|
||||
Fatalf(stackTrace, "%s\n%s", b, err)
|
||||
Fatalf(stackTrace, "%v %s\noutput: %s\nerr: %s", cmd, args, b, err)
|
||||
}
|
||||
|
||||
return b
|
||||
@@ -389,6 +389,26 @@ func MustCompile(stackTrace bool, args ...string) []byte {
|
||||
return MustShell(stackTrace, "ccgo", args...)
|
||||
}
|
||||
|
||||
// Run is like Compile, but executes in-process.
|
||||
func Run(args ...string) ([]byte, error) {
|
||||
var b bytes.Buffer
|
||||
t := NewTask(append([]string{"ccgo"}, args...), &b, &b)
|
||||
err := t.Main()
|
||||
return b.Bytes(), err
|
||||
}
|
||||
|
||||
// MustRun is like Run but if executes Fatal(stackTrace, err) if it fails.
|
||||
func MustRun(stackTrace bool, args ...string) []byte {
|
||||
var b bytes.Buffer
|
||||
args = append([]string{"ccgo"}, args...)
|
||||
t := NewTask(args, &b, &b)
|
||||
if err := t.Main(); err != nil {
|
||||
Fatalf(stackTrace, "%v\noutput: %s\nerr: %s", args, b.Bytes(), err)
|
||||
}
|
||||
|
||||
return b.Bytes()
|
||||
}
|
||||
|
||||
// AbsCwd returns the absolute working directory.
|
||||
func AbsCwd() (string, error) {
|
||||
wd, err := os.Getwd()
|
||||
|
||||
+1
@@ -13,4 +13,5 @@ Dan Peterson <danp@danp.net>
|
||||
Jan Mercl <0xjnml@gmail.com>
|
||||
Jason DeBettencourt <jasond17@gmail.com>
|
||||
Koichi Shiraishi <zchee.io@gmail.com>
|
||||
Marius Orcsik <marius@federated.id>
|
||||
Steffen Butzer <steffen(dot)butzer@outlook.com>
|
||||
+2
@@ -12,4 +12,6 @@ Jaap Aarts <jaap.aarts1@gmail.com>
|
||||
Jan Mercl <0xjnml@gmail.com>
|
||||
Jason DeBettencourt <jasond17@gmail.com>
|
||||
Koichi Shiraishi <zchee.io@gmail.com>
|
||||
Marius Orcsik <marius@federated.id>
|
||||
Steffen Butzer <steffen(dot)butzer@outlook.com>
|
||||
ZHU Zijia <piggynl@outlook.com>
|
||||
+85
-51
@@ -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,90 +21,124 @@ 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=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=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:
|
||||
TARGET_GOOS=darwin TARGET_GOARCH=amd64 go generate
|
||||
GOOS=darwin GOARCH=amd64 go build -v ./...
|
||||
@echo "Should be executed only on darwin/amd64."
|
||||
go generate 2>&1 | tee log-generate
|
||||
go build -v ./...
|
||||
|
||||
darwin_arm64:
|
||||
TARGET_GOOS=darwin TARGET_GOARCH=arm64 go generate
|
||||
GOOS=darwin GOARCH=arm64 go build -v ./...
|
||||
|
||||
# only on netbsd/amd64
|
||||
netbsd_amd64:
|
||||
TARGET_GOOS=netbsd TARGET_GOARCH=amd64 go generate
|
||||
GOOS=netbsd GOARCH=amd64 go build -v ./...
|
||||
@echo "Should be executed only on darwin/arm64."
|
||||
go generate 2>&1 | tee log-generate
|
||||
go build -v ./...
|
||||
|
||||
# only on freebsd/amd64
|
||||
freebsd_amd64:
|
||||
TARGET_GOOS=freebsd TARGET_GOARCH=amd64 go generate
|
||||
GOOS=freebsd GOARCH=amd64 go build -v ./...
|
||||
@echo "Should be executed only on freebsd/amd64."
|
||||
go generate 2>&1 | tee log-generate
|
||||
go build -v ./...
|
||||
|
||||
# only on freebsd/386
|
||||
freebsd_386:
|
||||
@echo "Should be executed only on 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 ./...
|
||||
|
||||
freebsd_arm64:
|
||||
go run addport.go freebsd_amd64 freebsd_arm64
|
||||
go build -v ./...
|
||||
|
||||
# only on netbsd/amd64
|
||||
netbsd_amd64:
|
||||
@echo "Should be executed only on netbsd/amd64."
|
||||
go generate 2>&1 | tee log-generate
|
||||
go build -v ./...
|
||||
|
||||
# only on netbsd/arm
|
||||
netbsd_arm:
|
||||
@echo "Should be executed only on netbsd/arm."
|
||||
go generate 2>&1 | tee log-generate
|
||||
go build -v ./...
|
||||
|
||||
linux_amd64:
|
||||
TARGET_GOOS=linux TARGET_GOARCH=amd64 go generate
|
||||
GOOS=linux GOARCH=amd64 go build -v ./...
|
||||
@echo "Should be executed only on linux/amd64."
|
||||
go generate 2>&1 | tee log-generate
|
||||
go build -v ./...
|
||||
|
||||
linux_386:
|
||||
CCGO_CPP=i686-linux-gnu-cpp TARGET_GOOS=linux TARGET_GOARCH=386 go generate
|
||||
GOOS=linux GOARCH=386 go build -v ./...
|
||||
|
||||
linux_arm:
|
||||
CCGO_CPP=arm-linux-gnueabi-cpp-8 TARGET_GOOS=linux TARGET_GOARCH=arm go generate
|
||||
CCGO_CPP=arm-linux-gnueabi-cpp TARGET_GOOS=linux TARGET_GOARCH=arm go generate
|
||||
GOOS=linux GOARCH=arm go build -v ./...
|
||||
|
||||
linux_arm64:
|
||||
CCGO_CPP=aarch64-linux-gnu-cpp-8 TARGET_GOOS=linux TARGET_GOARCH=arm64 go generate
|
||||
CCGO_CPP=aarch64-linux-gnu-cpp TARGET_GOOS=linux TARGET_GOARCH=arm64 go generate
|
||||
GOOS=linux GOARCH=arm64 go build -v ./...
|
||||
|
||||
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/386
|
||||
openbsd_386:
|
||||
@echo "Should be executed only on openbsd/386."
|
||||
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:
|
||||
CCGO_CPP=x86_64-w64-mingw32-cpp TARGET_GOOS=windows TARGET_GOARCH=amd64 go generate
|
||||
GOOS=windows GOARCH=amd64 go build -v ./...
|
||||
@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
|
||||
GOOS=windows GOARCH=386 go build -v ./...
|
||||
|
||||
all_targets: linux_amd64 linux_386 linux_arm linux_arm64 windows_amd64 windows_386
|
||||
echo done
|
||||
|
||||
build_all_targets:
|
||||
GOOS=darwin GOARCH=amd64 go build -v ./...
|
||||
GOOS=darwin GOARCH=arm64 go build -v ./...
|
||||
GOOS=freebsd GOARCH=amd64 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=s390x go build -v ./...
|
||||
GOOS=netbsd GOARCH=amd64 go build -v ./...
|
||||
GOOS=windows GOARCH=386 go build -v ./...
|
||||
GOOS=windows GOARCH=amd64 go build -v ./...
|
||||
all_targets: linux_amd64 linux_386 linux_arm linux_arm64 linux_s390x # windows_amd64 windows_386
|
||||
echo done
|
||||
|
||||
devbench:
|
||||
|
||||
+533
-425
@@ -3,429 +3,537 @@
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_IO_putc": {},
|
||||
"_NSGetEnviron": {},
|
||||
"___errno_location": {},
|
||||
"__assert_fail": {},
|
||||
"__assert_rtn": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__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_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_in6addr_anyp": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__darwin_fd_clr": {},
|
||||
"__darwin_fd_isset": {},
|
||||
"__darwin_fd_set": {},
|
||||
"__env_rm_add": {},
|
||||
"__errno_location": {},
|
||||
"__error": {},
|
||||
"__floatscan": {},
|
||||
"__fpclassify": {},
|
||||
"__fpclassifyf": {},
|
||||
"__fpclassifyl": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__inline_isnand": {},
|
||||
"__inline_isnanf": {},
|
||||
"__inline_isnanl": {},
|
||||
"__intscan": {},
|
||||
"__isalnum_l": {},
|
||||
"__isalpha_l": {},
|
||||
"__isdigit_l": {},
|
||||
"__islower_l": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isprint_l": {},
|
||||
"__isupper_l": {},
|
||||
"__isxdigit_l": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__putenv": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__stderrp": {},
|
||||
"__stdinp": {},
|
||||
"__stdoutp": {},
|
||||
"__strchrnul": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"_exit": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"bind": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chflags": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copyfile": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"environ": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"flock": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fsctl": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fstatfs": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"futimes": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getattrlist": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrnam": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostname": {},
|
||||
"gethostuuid": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwuid": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isspace": {},
|
||||
"isupper": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"mach_absolute_time": {},
|
||||
"mach_timebase_info": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkstemp": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"modf": {},
|
||||
"munmap": {},
|
||||
"nanf": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"posix_fadvise": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"putenv": {},
|
||||
"puts": {},
|
||||
"pwrite": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"rand_r": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setattrlist": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setlocale": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"srandomdev": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"statfs": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strlcat": {},
|
||||
"strlcpy": {},
|
||||
"strlen": {},
|
||||
"strncat": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtok": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"truncate": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"zero_struct_address": {},
|
||||
"_CurrentRuneLocale": {},
|
||||
"_DefaultRuneLocale": {},
|
||||
"_IO_putc": {},
|
||||
"_NSGetEnviron": {},
|
||||
"___errno_location": {},
|
||||
"__assert_fail": {},
|
||||
"__assert_rtn": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__darwin_check_fd_set_overflow": {},
|
||||
"__darwin_fd_clr": {},
|
||||
"__darwin_fd_isset": {},
|
||||
"__darwin_fd_set": {},
|
||||
"__env_rm_add": {},
|
||||
"__errno_location": {},
|
||||
"__error": {},
|
||||
"__floatscan": {},
|
||||
"__fpclassify": {},
|
||||
"__fpclassifyf": {},
|
||||
"__fpclassifyl": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__inline_isnand": {},
|
||||
"__inline_isnanf": {},
|
||||
"__inline_isnanl": {},
|
||||
"__intscan": {},
|
||||
"__isctype": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__istype": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__maskrune": {},
|
||||
"__mb_cur_max": {},
|
||||
"__putenv": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__sincos_stret": {},
|
||||
"__sincosf_stret": {},
|
||||
"__sincospi_stret": {},
|
||||
"__sincospif_stret": {},
|
||||
"__srget": {},
|
||||
"__stderrp": {},
|
||||
"__stdinp": {},
|
||||
"__stdoutp": {},
|
||||
"__strchrnul": {},
|
||||
"__strncasecmp_l": {},
|
||||
"__svfscanf": {},
|
||||
"__swbuf": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__tolower": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__toupper": {},
|
||||
"__uflow": {},
|
||||
"__wcwidth": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"arc4random_buf": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chflags": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copyfile": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"digittoint": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"flock": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fsctl": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fstatfs": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"futimes": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getattrlist": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostname": {},
|
||||
"gethostuuid": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getprogname": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isblank": {},
|
||||
"iscntrl": {},
|
||||
"isdigit": {},
|
||||
"isgraph": {},
|
||||
"ishexnumber": {},
|
||||
"isideogram": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isnumber": {},
|
||||
"isphonogram": {},
|
||||
"isprint": {},
|
||||
"ispunct": {},
|
||||
"isrune": {},
|
||||
"issetugid": {},
|
||||
"isspace": {},
|
||||
"isspecial": {},
|
||||
"isupper": {},
|
||||
"iswalnum": {},
|
||||
"iswspace": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"mach_absolute_time": {},
|
||||
"mach_timebase_info": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"modf": {},
|
||||
"munmap": {},
|
||||
"nanf": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"posix_fadvise": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"putenv": {},
|
||||
"puts": {},
|
||||
"pwrite": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"rand_r": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setattrlist": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"srandomdev": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"statfs": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlcat": {},
|
||||
"strlcpy": {},
|
||||
"strlen": {},
|
||||
"strncasecmp": {},
|
||||
"strncat": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtok": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"toascii": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"truncate": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_copy": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
||||
+533
-426
@@ -3,430 +3,537 @@
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_IO_putc": {},
|
||||
"_NSGetEnviron": {},
|
||||
"___errno_location": {},
|
||||
"__assert_fail": {},
|
||||
"__assert_rtn": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_isnan": {},
|
||||
"__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_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_in6addr_anyp": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__darwin_fd_clr": {},
|
||||
"__darwin_fd_isset": {},
|
||||
"__darwin_fd_set": {},
|
||||
"__env_rm_add": {},
|
||||
"__errno_location": {},
|
||||
"__error": {},
|
||||
"__floatscan": {},
|
||||
"__fpclassify": {},
|
||||
"__fpclassifyf": {},
|
||||
"__fpclassifyl": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__inline_isnand": {},
|
||||
"__inline_isnanf": {},
|
||||
"__inline_isnanl": {},
|
||||
"__intscan": {},
|
||||
"__isalnum_l": {},
|
||||
"__isalpha_l": {},
|
||||
"__isdigit_l": {},
|
||||
"__islower_l": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isprint_l": {},
|
||||
"__isupper_l": {},
|
||||
"__isxdigit_l": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__putenv": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__stderrp": {},
|
||||
"__stdinp": {},
|
||||
"__stdoutp": {},
|
||||
"__strchrnul": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"_exit": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"bind": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chflags": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copyfile": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"environ": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"flock": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fsctl": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fstatfs": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"futimes": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getattrlist": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrnam": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostname": {},
|
||||
"gethostuuid": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isspace": {},
|
||||
"isupper": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"mach_absolute_time": {},
|
||||
"mach_timebase_info": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkstemp": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"modf": {},
|
||||
"munmap": {},
|
||||
"nanf": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"posix_fadvise": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"putenv": {},
|
||||
"puts": {},
|
||||
"pwrite": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"rand_r": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setattrlist": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setlocale": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"srandomdev": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"statfs": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strlcat": {},
|
||||
"strlcpy": {},
|
||||
"strlen": {},
|
||||
"strncat": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtok": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"truncate": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"zero_struct_address": {},
|
||||
"_CurrentRuneLocale": {},
|
||||
"_DefaultRuneLocale": {},
|
||||
"_IO_putc": {},
|
||||
"_NSGetEnviron": {},
|
||||
"___errno_location": {},
|
||||
"__assert_fail": {},
|
||||
"__assert_rtn": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__darwin_check_fd_set_overflow": {},
|
||||
"__darwin_fd_clr": {},
|
||||
"__darwin_fd_isset": {},
|
||||
"__darwin_fd_set": {},
|
||||
"__env_rm_add": {},
|
||||
"__errno_location": {},
|
||||
"__error": {},
|
||||
"__floatscan": {},
|
||||
"__fpclassify": {},
|
||||
"__fpclassifyf": {},
|
||||
"__fpclassifyl": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__inline_isnand": {},
|
||||
"__inline_isnanf": {},
|
||||
"__inline_isnanl": {},
|
||||
"__intscan": {},
|
||||
"__isctype": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__istype": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__maskrune": {},
|
||||
"__mb_cur_max": {},
|
||||
"__putenv": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__sincos_stret": {},
|
||||
"__sincosf_stret": {},
|
||||
"__sincospi_stret": {},
|
||||
"__sincospif_stret": {},
|
||||
"__srget": {},
|
||||
"__stderrp": {},
|
||||
"__stdinp": {},
|
||||
"__stdoutp": {},
|
||||
"__strchrnul": {},
|
||||
"__strncasecmp_l": {},
|
||||
"__svfscanf": {},
|
||||
"__swbuf": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__tolower": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__toupper": {},
|
||||
"__uflow": {},
|
||||
"__wcwidth": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"arc4random_buf": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chflags": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copyfile": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"digittoint": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"flock": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fsctl": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fstatfs": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"futimes": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getattrlist": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostname": {},
|
||||
"gethostuuid": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getprogname": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isblank": {},
|
||||
"iscntrl": {},
|
||||
"isdigit": {},
|
||||
"isgraph": {},
|
||||
"ishexnumber": {},
|
||||
"isideogram": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isnumber": {},
|
||||
"isphonogram": {},
|
||||
"isprint": {},
|
||||
"ispunct": {},
|
||||
"isrune": {},
|
||||
"issetugid": {},
|
||||
"isspace": {},
|
||||
"isspecial": {},
|
||||
"isupper": {},
|
||||
"iswalnum": {},
|
||||
"iswspace": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"mach_absolute_time": {},
|
||||
"mach_timebase_info": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
"mkstemps64": {},
|
||||
"mktime": {},
|
||||
"mmap": {},
|
||||
"modf": {},
|
||||
"munmap": {},
|
||||
"nanf": {},
|
||||
"nl_langinfo": {},
|
||||
"ntohs": {},
|
||||
"obstack_free": {},
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
"pause": {},
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"posix_fadvise": {},
|
||||
"pow": {},
|
||||
"pread": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"pthread_attr_destroy": {},
|
||||
"pthread_attr_getdetachstate": {},
|
||||
"pthread_attr_init": {},
|
||||
"pthread_attr_setdetachstate": {},
|
||||
"pthread_attr_setscope": {},
|
||||
"pthread_attr_setstacksize": {},
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_timedwait": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_equal": {},
|
||||
"pthread_exit": {},
|
||||
"pthread_getspecific": {},
|
||||
"pthread_join": {},
|
||||
"pthread_key_create": {},
|
||||
"pthread_key_delete": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"pthread_mutexattr_destroy": {},
|
||||
"pthread_mutexattr_init": {},
|
||||
"pthread_mutexattr_settype": {},
|
||||
"pthread_self": {},
|
||||
"pthread_setspecific": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"putenv": {},
|
||||
"puts": {},
|
||||
"pwrite": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"rand_r": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setattrlist": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
"shmdt": {},
|
||||
"shutdown": {},
|
||||
"sigaction": {},
|
||||
"signal": {},
|
||||
"sin": {},
|
||||
"sinf": {},
|
||||
"sinh": {},
|
||||
"sleep": {},
|
||||
"snprintf": {},
|
||||
"socket": {},
|
||||
"sprintf": {},
|
||||
"sqrt": {},
|
||||
"srand48": {},
|
||||
"srandomdev": {},
|
||||
"sscanf": {},
|
||||
"stat": {},
|
||||
"stat64": {},
|
||||
"statfs": {},
|
||||
"stderr": {},
|
||||
"stdin": {},
|
||||
"stdout": {},
|
||||
"strcasecmp": {},
|
||||
"strcat": {},
|
||||
"strchr": {},
|
||||
"strcmp": {},
|
||||
"strcpy": {},
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlcat": {},
|
||||
"strlcpy": {},
|
||||
"strlen": {},
|
||||
"strncasecmp": {},
|
||||
"strncat": {},
|
||||
"strncmp": {},
|
||||
"strncpy": {},
|
||||
"strnlen": {},
|
||||
"strpbrk": {},
|
||||
"strrchr": {},
|
||||
"strspn": {},
|
||||
"strstr": {},
|
||||
"strtod": {},
|
||||
"strtof": {},
|
||||
"strtoimax": {},
|
||||
"strtok": {},
|
||||
"strtol": {},
|
||||
"strtold": {},
|
||||
"strtoll": {},
|
||||
"strtoul": {},
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
"tanh": {},
|
||||
"tcgetattr": {},
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"toascii": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"truncate": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_copy": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
}
|
||||
+498
-420
@@ -3,424 +3,502 @@
|
||||
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_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_isnan": {},
|
||||
"__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_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_in6addr_anyp": {},
|
||||
"__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": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isthreaded": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__mb_sb_limit": {},
|
||||
"__runes_for_locale": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__stderrp": {},
|
||||
"__stdinp": {},
|
||||
"__stdoutp": {},
|
||||
"__swbuf": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__xuname": {},
|
||||
"_exit": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"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": {},
|
||||
"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_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"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": {},
|
||||
"posix_fadvise": {},
|
||||
"pow": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"puts": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"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": {},
|
||||
"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": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
"_CurrentRuneLocale": {},
|
||||
"_DefaultRuneLocale": {},
|
||||
"_IO_putc": {},
|
||||
"_ThreadRuneLocale": {},
|
||||
"___errno_location": {},
|
||||
"___runetype": {},
|
||||
"___tolower": {},
|
||||
"___toupper": {},
|
||||
"__assert": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno_location": {},
|
||||
"__error": {},
|
||||
"__floatscan": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__inet_ntoa": {},
|
||||
"__intscan": {},
|
||||
"__isalnum_l": {},
|
||||
"__isalpha_l": {},
|
||||
"__isdigit_l": {},
|
||||
"__islower_l": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isprint_l": {},
|
||||
"__isspace_l": {},
|
||||
"__isthreaded": {},
|
||||
"__isupper_l": {},
|
||||
"__isxdigit_l": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__mb_sb_limit": {},
|
||||
"__runes_for_locale": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__srget": {},
|
||||
"__stderrp": {},
|
||||
"__stdinp": {},
|
||||
"__stdoutp": {},
|
||||
"__swbuf": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__xuname": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bswap16": {},
|
||||
"bswap32": {},
|
||||
"bswap64": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chflags": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostname": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isspace": {},
|
||||
"isupper": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"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": {},
|
||||
}
|
||||
+61
-1
@@ -23,6 +23,9 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
@@ -31,13 +34,18 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
@@ -51,6 +59,7 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
@@ -98,6 +107,8 @@ var CAPI = map[string]struct{}{
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__strncasecmp_l": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
@@ -106,8 +117,10 @@ var CAPI = map[string]struct{}{
|
||||
"__uflow": {},
|
||||
"__unlockfile": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
@@ -127,6 +140,8 @@ var CAPI = map[string]struct{}{
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
@@ -190,6 +205,7 @@ var CAPI = map[string]struct{}{
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fstatfs": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
@@ -206,6 +222,7 @@ var CAPI = map[string]struct{}{
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
@@ -227,6 +244,7 @@ var CAPI = map[string]struct{}{
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getrandom": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
@@ -245,10 +263,12 @@ var CAPI = map[string]struct{}{
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
@@ -262,10 +282,13 @@ var CAPI = map[string]struct{}{
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
@@ -285,6 +308,7 @@ var CAPI = map[string]struct{}{
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
@@ -315,14 +339,40 @@ var CAPI = map[string]struct{}{
|
||||
"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": {},
|
||||
@@ -335,6 +385,7 @@ var CAPI = map[string]struct{}{
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
@@ -342,6 +393,7 @@ var CAPI = map[string]struct{}{
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
@@ -354,11 +406,13 @@ var CAPI = map[string]struct{}{
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
@@ -389,6 +443,7 @@ var CAPI = map[string]struct{}{
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlcat": {},
|
||||
"strlcpy": {},
|
||||
"strlen": {},
|
||||
@@ -420,6 +475,7 @@ var CAPI = map[string]struct{}{
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
@@ -432,6 +488,10 @@ var CAPI = map[string]struct{}{
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_copy": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vfscanf": {},
|
||||
|
||||
+47
-1
@@ -23,6 +23,9 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
@@ -31,13 +34,18 @@ var CAPI = map[string]struct{}{
|
||||
"__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": {},
|
||||
@@ -51,6 +59,7 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
@@ -98,7 +107,8 @@ var CAPI = map[string]struct{}{
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__strncasecmp_l": {},
|
||||
"__sync_synchronize": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
@@ -107,8 +117,10 @@ var CAPI = map[string]struct{}{
|
||||
"__uflow": {},
|
||||
"__unlockfile": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
@@ -128,6 +140,8 @@ var CAPI = map[string]struct{}{
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
@@ -155,6 +169,7 @@ var CAPI = map[string]struct{}{
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"dup3": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
@@ -163,8 +178,11 @@ var CAPI = map[string]struct{}{
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"faccessat": {},
|
||||
"fchmod": {},
|
||||
"fchmodat": {},
|
||||
"fchown": {},
|
||||
"fchownat": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
@@ -191,6 +209,7 @@ var CAPI = map[string]struct{}{
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fstatfs": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
@@ -207,6 +226,7 @@ var CAPI = map[string]struct{}{
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
@@ -228,6 +248,7 @@ var CAPI = map[string]struct{}{
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getrandom": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
@@ -246,10 +267,12 @@ var CAPI = map[string]struct{}{
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
@@ -258,15 +281,21 @@ var CAPI = map[string]struct{}{
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"isupper": {},
|
||||
"iswalnum": {},
|
||||
"iswspace": {},
|
||||
"isxdigit": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"linkat": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
@@ -284,8 +313,11 @@ var CAPI = map[string]struct{}{
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkdirat": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mknodat": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
@@ -303,6 +335,7 @@ var CAPI = map[string]struct{}{
|
||||
"obstack_vprintf": {},
|
||||
"open": {},
|
||||
"open64": {},
|
||||
"openat": {},
|
||||
"opendir": {},
|
||||
"openpty": {},
|
||||
"pathconf": {},
|
||||
@@ -310,6 +343,7 @@ var CAPI = map[string]struct{}{
|
||||
"pclose": {},
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"pipe2": {},
|
||||
"poll": {},
|
||||
"popen": {},
|
||||
"posix_fadvise": {},
|
||||
@@ -360,15 +394,19 @@ var CAPI = map[string]struct{}{
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readlinkat": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"renameat2": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
@@ -381,11 +419,13 @@ var CAPI = map[string]struct{}{
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
@@ -416,6 +456,7 @@ var CAPI = map[string]struct{}{
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlcat": {},
|
||||
"strlcpy": {},
|
||||
"strlen": {},
|
||||
@@ -439,6 +480,7 @@ var CAPI = map[string]struct{}{
|
||||
"strtoull": {},
|
||||
"strtoumax": {},
|
||||
"symlink": {},
|
||||
"symlinkat": {},
|
||||
"sysconf": {},
|
||||
"system": {},
|
||||
"tan": {},
|
||||
@@ -447,6 +489,7 @@ var CAPI = map[string]struct{}{
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
@@ -455,10 +498,13 @@ var CAPI = map[string]struct{}{
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unlinkat": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimensat": {},
|
||||
"utimes": {},
|
||||
"uuid_copy": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
|
||||
+61
-1
@@ -23,6 +23,9 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
@@ -31,13 +34,18 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
@@ -51,6 +59,7 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
@@ -98,6 +107,8 @@ var CAPI = map[string]struct{}{
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__strncasecmp_l": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
@@ -106,8 +117,10 @@ var CAPI = map[string]struct{}{
|
||||
"__uflow": {},
|
||||
"__unlockfile": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
@@ -127,6 +140,8 @@ var CAPI = map[string]struct{}{
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
@@ -190,6 +205,7 @@ var CAPI = map[string]struct{}{
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fstatfs": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
@@ -206,6 +222,7 @@ var CAPI = map[string]struct{}{
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
@@ -227,6 +244,7 @@ var CAPI = map[string]struct{}{
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getrandom": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
@@ -245,10 +263,12 @@ var CAPI = map[string]struct{}{
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
@@ -262,10 +282,13 @@ var CAPI = map[string]struct{}{
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
@@ -285,6 +308,7 @@ var CAPI = map[string]struct{}{
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
@@ -315,14 +339,40 @@ var CAPI = map[string]struct{}{
|
||||
"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": {},
|
||||
@@ -335,6 +385,7 @@ var CAPI = map[string]struct{}{
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
@@ -342,6 +393,7 @@ var CAPI = map[string]struct{}{
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
@@ -354,11 +406,13 @@ var CAPI = map[string]struct{}{
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
@@ -389,6 +443,7 @@ var CAPI = map[string]struct{}{
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlcat": {},
|
||||
"strlcpy": {},
|
||||
"strlen": {},
|
||||
@@ -420,6 +475,7 @@ var CAPI = map[string]struct{}{
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
@@ -432,6 +488,10 @@ var CAPI = map[string]struct{}{
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_copy": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vfscanf": {},
|
||||
|
||||
+61
-1
@@ -23,6 +23,9 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
@@ -31,13 +34,18 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
@@ -51,6 +59,7 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
@@ -98,6 +107,8 @@ var CAPI = map[string]struct{}{
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__strncasecmp_l": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
@@ -106,8 +117,10 @@ var CAPI = map[string]struct{}{
|
||||
"__uflow": {},
|
||||
"__unlockfile": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
@@ -127,6 +140,8 @@ var CAPI = map[string]struct{}{
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
@@ -190,6 +205,7 @@ var CAPI = map[string]struct{}{
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fstatfs": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
@@ -206,6 +222,7 @@ var CAPI = map[string]struct{}{
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
@@ -227,6 +244,7 @@ var CAPI = map[string]struct{}{
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getrandom": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
@@ -245,10 +263,12 @@ var CAPI = map[string]struct{}{
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
@@ -262,10 +282,13 @@ var CAPI = map[string]struct{}{
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
@@ -285,6 +308,7 @@ var CAPI = map[string]struct{}{
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
@@ -315,14 +339,40 @@ var CAPI = map[string]struct{}{
|
||||
"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": {},
|
||||
@@ -335,6 +385,7 @@ var CAPI = map[string]struct{}{
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
@@ -342,6 +393,7 @@ var CAPI = map[string]struct{}{
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
@@ -354,11 +406,13 @@ var CAPI = map[string]struct{}{
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
@@ -389,6 +443,7 @@ var CAPI = map[string]struct{}{
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlcat": {},
|
||||
"strlcpy": {},
|
||||
"strlen": {},
|
||||
@@ -420,6 +475,7 @@ var CAPI = map[string]struct{}{
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
@@ -432,6 +488,10 @@ var CAPI = map[string]struct{}{
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_copy": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vfscanf": {},
|
||||
|
||||
+56
@@ -23,6 +23,9 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
@@ -31,13 +34,18 @@ var CAPI = map[string]struct{}{
|
||||
"__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": {},
|
||||
@@ -51,6 +59,7 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
@@ -98,6 +107,8 @@ var CAPI = map[string]struct{}{
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__strncasecmp_l": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
@@ -106,8 +117,10 @@ var CAPI = map[string]struct{}{
|
||||
"__uflow": {},
|
||||
"__unlockfile": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
@@ -127,6 +140,8 @@ var CAPI = map[string]struct{}{
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
@@ -190,6 +205,7 @@ var CAPI = map[string]struct{}{
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fstatfs": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
@@ -206,6 +222,7 @@ var CAPI = map[string]struct{}{
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
@@ -227,6 +244,7 @@ var CAPI = map[string]struct{}{
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getrandom": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
@@ -245,10 +263,12 @@ var CAPI = map[string]struct{}{
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
@@ -262,10 +282,13 @@ var CAPI = map[string]struct{}{
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localeconv": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"longjmp": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
@@ -285,6 +308,7 @@ var CAPI = map[string]struct{}{
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"mkostemp": {},
|
||||
"mkstemp": {},
|
||||
"mkstemp64": {},
|
||||
"mkstemps": {},
|
||||
@@ -315,11 +339,36 @@ var CAPI = map[string]struct{}{
|
||||
"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": {},
|
||||
@@ -336,6 +385,7 @@ var CAPI = map[string]struct{}{
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
@@ -343,6 +393,7 @@ var CAPI = map[string]struct{}{
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
@@ -355,11 +406,13 @@ var CAPI = map[string]struct{}{
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"setstate": {},
|
||||
"setvbuf": {},
|
||||
"shmat": {},
|
||||
"shmctl": {},
|
||||
@@ -390,6 +443,7 @@ var CAPI = map[string]struct{}{
|
||||
"strcspn": {},
|
||||
"strdup": {},
|
||||
"strerror": {},
|
||||
"strerror_r": {},
|
||||
"strlcat": {},
|
||||
"strlcpy": {},
|
||||
"strlen": {},
|
||||
@@ -421,6 +475,7 @@ var CAPI = map[string]struct{}{
|
||||
"tcsendbreak": {},
|
||||
"tcsetattr": {},
|
||||
"time": {},
|
||||
"tmpfile": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
@@ -433,6 +488,7 @@ var CAPI = map[string]struct{}{
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"uuid_copy": {},
|
||||
"uuid_generate_random": {},
|
||||
"uuid_parse": {},
|
||||
"uuid_unparse": {},
|
||||
|
||||
+493
-425
@@ -3,429 +3,497 @@
|
||||
package libc // import "modernc.org/libc"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"_C_ctype_tab_": {},
|
||||
"_IO_putc": {},
|
||||
"_ThreadRuneLocale": {},
|
||||
"___errno_location": {},
|
||||
"___runetype": {},
|
||||
"__assert": {},
|
||||
"__assert13": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_isnan": {},
|
||||
"__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_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_in6addr_anyp": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno": {},
|
||||
"__errno_location": {},
|
||||
"__error": {},
|
||||
"__floatscan": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__inet_ntoa": {},
|
||||
"__intscan": {},
|
||||
"__isalnum_l": {},
|
||||
"__isalpha_l": {},
|
||||
"__isdigit_l": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isthreaded": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__mb_sb_limit": {},
|
||||
"__runes_for_locale": {},
|
||||
"__sF": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__stderrp": {},
|
||||
"__stdinp": {},
|
||||
"__stdoutp": {},
|
||||
"__swbuf": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__xuname": {},
|
||||
"_ctype_tab_": {},
|
||||
"_exit": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_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": {},
|
||||
"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": {},
|
||||
"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_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"lrand48": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
"lstat64": {},
|
||||
"malloc": {},
|
||||
"mblen": {},
|
||||
"mbstowcs": {},
|
||||
"mbtowc": {},
|
||||
"memchr": {},
|
||||
"memcmp": {},
|
||||
"memcpy": {},
|
||||
"memmove": {},
|
||||
"memset": {},
|
||||
"mkdir": {},
|
||||
"mkfifo": {},
|
||||
"mknod": {},
|
||||
"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": {},
|
||||
"posix_fadvise": {},
|
||||
"pow": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
"putc": {},
|
||||
"putchar": {},
|
||||
"puts": {},
|
||||
"qsort": {},
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readdir64": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"recvfrom": {},
|
||||
"recvmsg": {},
|
||||
"remove": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"scalbn": {},
|
||||
"scalbnl": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"sendmsg": {},
|
||||
"sendto": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setlocale": {},
|
||||
"setrlimit": {},
|
||||
"setrlimit64": {},
|
||||
"setsid": {},
|
||||
"setsockopt": {},
|
||||
"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": {},
|
||||
"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": {},
|
||||
"tolower": {},
|
||||
"toupper": {},
|
||||
"trunc": {},
|
||||
"tzset": {},
|
||||
"umask": {},
|
||||
"uname": {},
|
||||
"ungetc": {},
|
||||
"unlink": {},
|
||||
"unsetenv": {},
|
||||
"usleep": {},
|
||||
"utime": {},
|
||||
"utimes": {},
|
||||
"vasprintf": {},
|
||||
"vfprintf": {},
|
||||
"vprintf": {},
|
||||
"vsnprintf": {},
|
||||
"vsprintf": {},
|
||||
"waitpid": {},
|
||||
"wcschr": {},
|
||||
"wctomb": {},
|
||||
"wcwidth": {},
|
||||
"write": {},
|
||||
"writev": {},
|
||||
"zero_struct_address": {},
|
||||
"_C_ctype_tab_": {},
|
||||
"_IO_putc": {},
|
||||
"_ThreadRuneLocale": {},
|
||||
"___errno_location": {},
|
||||
"___runetype": {},
|
||||
"__assert": {},
|
||||
"__assert13": {},
|
||||
"__assert_fail": {},
|
||||
"__builtin___memcpy_chk": {},
|
||||
"__builtin___memmove_chk": {},
|
||||
"__builtin___memset_chk": {},
|
||||
"__builtin___snprintf_chk": {},
|
||||
"__builtin___sprintf_chk": {},
|
||||
"__builtin___strcat_chk": {},
|
||||
"__builtin___strcpy_chk": {},
|
||||
"__builtin___strncpy_chk": {},
|
||||
"__builtin___vsnprintf_chk": {},
|
||||
"__builtin_abort": {},
|
||||
"__builtin_abs": {},
|
||||
"__builtin_add_overflowInt64": {},
|
||||
"__builtin_add_overflowUint32": {},
|
||||
"__builtin_add_overflowUint64": {},
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
"__builtin_copysignf": {},
|
||||
"__builtin_copysignl": {},
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
"__builtin_memset": {},
|
||||
"__builtin_mmap": {},
|
||||
"__builtin_mul_overflowInt64": {},
|
||||
"__builtin_mul_overflowUint128": {},
|
||||
"__builtin_mul_overflowUint64": {},
|
||||
"__builtin_nan": {},
|
||||
"__builtin_nanf": {},
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
"__builtin_sprintf": {},
|
||||
"__builtin_strchr": {},
|
||||
"__builtin_strcmp": {},
|
||||
"__builtin_strcpy": {},
|
||||
"__builtin_strlen": {},
|
||||
"__builtin_sub_overflowInt64": {},
|
||||
"__builtin_trap": {},
|
||||
"__builtin_unreachable": {},
|
||||
"__ccgo_dmesg": {},
|
||||
"__ccgo_getMutexType": {},
|
||||
"__ccgo_in6addr_anyp": {},
|
||||
"__ccgo_pthreadAttrGetDetachState": {},
|
||||
"__ccgo_pthreadMutexattrGettype": {},
|
||||
"__ccgo_sqlite3_log": {},
|
||||
"__cmsg_nxthdr": {},
|
||||
"__ctype_get_mb_cur_max": {},
|
||||
"__errno": {},
|
||||
"__errno_location": {},
|
||||
"__error": {},
|
||||
"__floatscan": {},
|
||||
"__h_errno_location": {},
|
||||
"__inet_aton": {},
|
||||
"__inet_ntoa": {},
|
||||
"__intscan": {},
|
||||
"__isalnum_l": {},
|
||||
"__isalpha_l": {},
|
||||
"__isdigit_l": {},
|
||||
"__isnan": {},
|
||||
"__isnanf": {},
|
||||
"__isnanl": {},
|
||||
"__isoc99_sscanf": {},
|
||||
"__isprint_l": {},
|
||||
"__isthreaded": {},
|
||||
"__lookup_ipliteral": {},
|
||||
"__lookup_name": {},
|
||||
"__lookup_serv": {},
|
||||
"__mb_sb_limit": {},
|
||||
"__runes_for_locale": {},
|
||||
"__sF": {},
|
||||
"__shgetc": {},
|
||||
"__shlim": {},
|
||||
"__srget": {},
|
||||
"__stderrp": {},
|
||||
"__stdinp": {},
|
||||
"__stdoutp": {},
|
||||
"__swbuf": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"__syscall1": {},
|
||||
"__syscall3": {},
|
||||
"__syscall4": {},
|
||||
"__toread": {},
|
||||
"__toread_needs_stdio_exit": {},
|
||||
"__uflow": {},
|
||||
"__xuname": {},
|
||||
"_ctype_tab_": {},
|
||||
"_exit": {},
|
||||
"_longjmp": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
"_setjmp": {},
|
||||
"_tolower_tab_": {},
|
||||
"_toupper_tab_": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
"accept": {},
|
||||
"access": {},
|
||||
"acos": {},
|
||||
"acosh": {},
|
||||
"alarm": {},
|
||||
"asin": {},
|
||||
"asinh": {},
|
||||
"atan": {},
|
||||
"atan2": {},
|
||||
"atanh": {},
|
||||
"atexit": {},
|
||||
"atof": {},
|
||||
"atoi": {},
|
||||
"atol": {},
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bswap16": {},
|
||||
"bswap32": {},
|
||||
"bswap64": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
"cfgetospeed": {},
|
||||
"cfsetispeed": {},
|
||||
"cfsetospeed": {},
|
||||
"chdir": {},
|
||||
"chflags": {},
|
||||
"chmod": {},
|
||||
"chown": {},
|
||||
"clock_gettime": {},
|
||||
"close": {},
|
||||
"closedir": {},
|
||||
"confstr": {},
|
||||
"connect": {},
|
||||
"copysign": {},
|
||||
"copysignf": {},
|
||||
"copysignl": {},
|
||||
"cos": {},
|
||||
"cosf": {},
|
||||
"cosh": {},
|
||||
"ctime": {},
|
||||
"ctime_r": {},
|
||||
"dlclose": {},
|
||||
"dlerror": {},
|
||||
"dlopen": {},
|
||||
"dlsym": {},
|
||||
"dup2": {},
|
||||
"endpwent": {},
|
||||
"environ": {},
|
||||
"execvp": {},
|
||||
"exit": {},
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fchown": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
"fcntl64": {},
|
||||
"fdopen": {},
|
||||
"ferror": {},
|
||||
"fflush": {},
|
||||
"fgetc": {},
|
||||
"fgets": {},
|
||||
"fileno": {},
|
||||
"floor": {},
|
||||
"fmod": {},
|
||||
"fmodl": {},
|
||||
"fopen": {},
|
||||
"fopen64": {},
|
||||
"fork": {},
|
||||
"fprintf": {},
|
||||
"fputc": {},
|
||||
"fputs": {},
|
||||
"fread": {},
|
||||
"free": {},
|
||||
"freeaddrinfo": {},
|
||||
"frexp": {},
|
||||
"fscanf": {},
|
||||
"fseek": {},
|
||||
"fstat": {},
|
||||
"fstat64": {},
|
||||
"fsync": {},
|
||||
"ftell": {},
|
||||
"ftruncate": {},
|
||||
"fts64_close": {},
|
||||
"fts64_open": {},
|
||||
"fts64_read": {},
|
||||
"fts_close": {},
|
||||
"fts_open": {},
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"getaddrinfo": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getegid": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"geteuid": {},
|
||||
"getgid": {},
|
||||
"getgrgid": {},
|
||||
"getgrgid_r": {},
|
||||
"getgrnam": {},
|
||||
"getgrnam_r": {},
|
||||
"gethostbyaddr": {},
|
||||
"gethostbyaddr_r": {},
|
||||
"gethostbyname": {},
|
||||
"gethostbyname2": {},
|
||||
"gethostbyname2_r": {},
|
||||
"gethostname": {},
|
||||
"getnameinfo": {},
|
||||
"getpeername": {},
|
||||
"getpid": {},
|
||||
"getpwnam": {},
|
||||
"getpwnam_r": {},
|
||||
"getpwuid": {},
|
||||
"getpwuid_r": {},
|
||||
"getresgid": {},
|
||||
"getresuid": {},
|
||||
"getrlimit": {},
|
||||
"getrlimit64": {},
|
||||
"getrusage": {},
|
||||
"getservbyname": {},
|
||||
"getsockname": {},
|
||||
"getsockopt": {},
|
||||
"gettimeofday": {},
|
||||
"getuid": {},
|
||||
"gmtime_r": {},
|
||||
"h_errno": {},
|
||||
"htonl": {},
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"inet_ntop": {},
|
||||
"inet_pton": {},
|
||||
"initstate": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"isnan": {},
|
||||
"isnanf": {},
|
||||
"isnanl": {},
|
||||
"isprint": {},
|
||||
"kill": {},
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"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": {},
|
||||
}
|
||||
+57
-4
@@ -72,6 +72,7 @@ var CAPI = map[string]struct{}{
|
||||
"GetCommModemStatus": {},
|
||||
"GetCommState": {},
|
||||
"GetCommandLineW": {},
|
||||
"GetComputerNameExW": {},
|
||||
"GetComputerNameW": {},
|
||||
"GetConsoleCP": {},
|
||||
"GetConsoleMode": {},
|
||||
@@ -103,6 +104,7 @@ var CAPI = map[string]struct{}{
|
||||
"GetMessageW": {},
|
||||
"GetModuleFileNameA": {},
|
||||
"GetModuleFileNameW": {},
|
||||
"GetModuleHandleA": {},
|
||||
"GetModuleHandleW": {},
|
||||
"GetNamedSecurityInfoW": {},
|
||||
"GetOverlappedResult": {},
|
||||
@@ -271,6 +273,9 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
@@ -279,13 +284,18 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
@@ -300,6 +310,7 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
@@ -313,12 +324,16 @@ var CAPI = map[string]struct{}{
|
||||
"__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": {},
|
||||
@@ -334,6 +349,7 @@ var CAPI = map[string]struct{}{
|
||||
"__mingw_vfscanf": {},
|
||||
"__mingw_vfwprintf": {},
|
||||
"__mingw_vfwscanf": {},
|
||||
"__mingw_vprintf": {},
|
||||
"__mingw_vsnprintf": {},
|
||||
"__mingw_vsnwprintf": {},
|
||||
"__mingw_vsprintf": {},
|
||||
@@ -347,7 +363,24 @@ var CAPI = map[string]struct{}{
|
||||
"__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": {},
|
||||
@@ -358,6 +391,7 @@ var CAPI = map[string]struct{}{
|
||||
"_chsize": {},
|
||||
"_commit": {},
|
||||
"_controlfp": {},
|
||||
"_copysign": {},
|
||||
"_endthreadex": {},
|
||||
"_errno": {},
|
||||
"_exit": {},
|
||||
@@ -367,15 +401,21 @@ var CAPI = map[string]struct{}{
|
||||
"_findfirst64i32": {},
|
||||
"_findnext32": {},
|
||||
"_findnext64i32": {},
|
||||
"_fstat": {},
|
||||
"_fstat64": {},
|
||||
"_fstati64": {},
|
||||
"_ftime": {},
|
||||
"_ftime64": {},
|
||||
"_gmtime32": {},
|
||||
"_gmtime64": {},
|
||||
"_imp___environ": {},
|
||||
"_iob": {},
|
||||
"_isatty": {},
|
||||
"_localtime32": {},
|
||||
"_localtime64": {},
|
||||
"_longjmp": {},
|
||||
"_mkdir": {},
|
||||
"_mktime64": {},
|
||||
"_msize": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
@@ -383,6 +423,7 @@ var CAPI = map[string]struct{}{
|
||||
"_popen": {},
|
||||
"_putchar": {},
|
||||
"_set_abort_behavior": {},
|
||||
"_setjmp": {},
|
||||
"_setmode": {},
|
||||
"_snprintf": {},
|
||||
"_snwprintf": {},
|
||||
@@ -395,7 +436,10 @@ var CAPI = map[string]struct{}{
|
||||
"_vsnwprintf": {},
|
||||
"_wcsicmp": {},
|
||||
"_wcsnicmp": {},
|
||||
"_wgetenv": {},
|
||||
"_wopen": {},
|
||||
"_wputenv": {},
|
||||
"_wtoi": {},
|
||||
"_wunlink": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
@@ -416,6 +460,8 @@ var CAPI = map[string]struct{}{
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
@@ -445,6 +491,7 @@ var CAPI = map[string]struct{}{
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
@@ -481,9 +528,11 @@ var CAPI = map[string]struct{}{
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"gai_strerrorA": {},
|
||||
"gai_strerrorW": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"gethostname": {},
|
||||
"getpeername": {},
|
||||
@@ -502,11 +551,11 @@ var CAPI = map[string]struct{}{
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"ioctlsocket": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
@@ -520,10 +569,12 @@ var CAPI = map[string]struct{}{
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"longjmp": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
@@ -562,7 +613,6 @@ var CAPI = map[string]struct{}{
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"popen": {},
|
||||
"posix_fadvise": {},
|
||||
"pow": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
@@ -574,23 +624,26 @@ var CAPI = map[string]struct{}{
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setmode": {},
|
||||
"setrlimit": {},
|
||||
|
||||
+41
-4
@@ -72,6 +72,7 @@ var CAPI = map[string]struct{}{
|
||||
"GetCommModemStatus": {},
|
||||
"GetCommState": {},
|
||||
"GetCommandLineW": {},
|
||||
"GetComputerNameExW": {},
|
||||
"GetComputerNameW": {},
|
||||
"GetConsoleCP": {},
|
||||
"GetConsoleMode": {},
|
||||
@@ -103,6 +104,7 @@ var CAPI = map[string]struct{}{
|
||||
"GetMessageW": {},
|
||||
"GetModuleFileNameA": {},
|
||||
"GetModuleFileNameW": {},
|
||||
"GetModuleHandleA": {},
|
||||
"GetModuleHandleW": {},
|
||||
"GetNamedSecurityInfoW": {},
|
||||
"GetOverlappedResult": {},
|
||||
@@ -269,6 +271,9 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_bswap16": {},
|
||||
"__builtin_bswap32": {},
|
||||
"__builtin_bswap64": {},
|
||||
"__builtin_bzero": {},
|
||||
"__builtin_clz": {},
|
||||
"__builtin_clzl": {},
|
||||
"__builtin_clzll": {},
|
||||
"__builtin_constant_p_impl": {},
|
||||
"__builtin_copysign": {},
|
||||
@@ -277,13 +282,18 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_exit": {},
|
||||
"__builtin_expect": {},
|
||||
"__builtin_fabs": {},
|
||||
"__builtin_fabsf": {},
|
||||
"__builtin_fabsl": {},
|
||||
"__builtin_free": {},
|
||||
"__builtin_getentropy": {},
|
||||
"__builtin_huge_val": {},
|
||||
"__builtin_huge_valf": {},
|
||||
"__builtin_inf": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_inff": {},
|
||||
"__builtin_infl": {},
|
||||
"__builtin_isnan": {},
|
||||
"__builtin_isunordered": {},
|
||||
"__builtin_llabs": {},
|
||||
"__builtin_malloc": {},
|
||||
"__builtin_memcmp": {},
|
||||
"__builtin_memcpy": {},
|
||||
@@ -298,6 +308,7 @@ var CAPI = map[string]struct{}{
|
||||
"__builtin_nanl": {},
|
||||
"__builtin_object_size": {},
|
||||
"__builtin_popcount": {},
|
||||
"__builtin_popcountl": {},
|
||||
"__builtin_prefetch": {},
|
||||
"__builtin_printf": {},
|
||||
"__builtin_snprintf": {},
|
||||
@@ -311,12 +322,16 @@ var CAPI = map[string]struct{}{
|
||||
"__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": {},
|
||||
@@ -332,6 +347,7 @@ var CAPI = map[string]struct{}{
|
||||
"__mingw_vfscanf": {},
|
||||
"__mingw_vfwprintf": {},
|
||||
"__mingw_vfwscanf": {},
|
||||
"__mingw_vprintf": {},
|
||||
"__mingw_vsnprintf": {},
|
||||
"__mingw_vsnwprintf": {},
|
||||
"__mingw_vsprintf": {},
|
||||
@@ -346,6 +362,8 @@ var CAPI = map[string]struct{}{
|
||||
"__ms_vwscanf": {},
|
||||
"__putenv": {},
|
||||
"__strchrnul": {},
|
||||
"__sync_add_and_fetch_uint32": {},
|
||||
"__sync_sub_and_fetch_uint32": {},
|
||||
"_access": {},
|
||||
"_assert": {},
|
||||
"_beginthread": {},
|
||||
@@ -356,6 +374,7 @@ var CAPI = map[string]struct{}{
|
||||
"_chsize": {},
|
||||
"_commit": {},
|
||||
"_controlfp": {},
|
||||
"_copysign": {},
|
||||
"_endthreadex": {},
|
||||
"_errno": {},
|
||||
"_exit": {},
|
||||
@@ -368,10 +387,15 @@ var CAPI = map[string]struct{}{
|
||||
"_fstat64": {},
|
||||
"_fstati64": {},
|
||||
"_ftime": {},
|
||||
"_ftime64": {},
|
||||
"_gmtime64": {},
|
||||
"_imp___environ": {},
|
||||
"_iob": {},
|
||||
"_isatty": {},
|
||||
"_localtime64": {},
|
||||
"_longjmp": {},
|
||||
"_mkdir": {},
|
||||
"_mktime64": {},
|
||||
"_msize": {},
|
||||
"_obstack_begin": {},
|
||||
"_obstack_newchunk": {},
|
||||
@@ -379,6 +403,7 @@ var CAPI = map[string]struct{}{
|
||||
"_popen": {},
|
||||
"_putchar": {},
|
||||
"_set_abort_behavior": {},
|
||||
"_setjmp": {},
|
||||
"_setmode": {},
|
||||
"_snprintf": {},
|
||||
"_snwprintf": {},
|
||||
@@ -391,7 +416,10 @@ var CAPI = map[string]struct{}{
|
||||
"_vsnwprintf": {},
|
||||
"_wcsicmp": {},
|
||||
"_wcsnicmp": {},
|
||||
"_wgetenv": {},
|
||||
"_wopen": {},
|
||||
"_wputenv": {},
|
||||
"_wtoi": {},
|
||||
"_wunlink": {},
|
||||
"abort": {},
|
||||
"abs": {},
|
||||
@@ -412,6 +440,8 @@ var CAPI = map[string]struct{}{
|
||||
"backtrace": {},
|
||||
"backtrace_symbols_fd": {},
|
||||
"bind": {},
|
||||
"bsearch": {},
|
||||
"bzero": {},
|
||||
"calloc": {},
|
||||
"ceil": {},
|
||||
"ceilf": {},
|
||||
@@ -441,6 +471,7 @@ var CAPI = map[string]struct{}{
|
||||
"exp": {},
|
||||
"fabs": {},
|
||||
"fabsf": {},
|
||||
"fabsl": {},
|
||||
"fchmod": {},
|
||||
"fclose": {},
|
||||
"fcntl": {},
|
||||
@@ -477,9 +508,11 @@ var CAPI = map[string]struct{}{
|
||||
"fts_read": {},
|
||||
"fwrite": {},
|
||||
"gai_strerror": {},
|
||||
"gai_strerrorA": {},
|
||||
"gai_strerrorW": {},
|
||||
"getc": {},
|
||||
"getcwd": {},
|
||||
"getentropy": {},
|
||||
"getenv": {},
|
||||
"gethostname": {},
|
||||
"getpeername": {},
|
||||
@@ -498,11 +531,11 @@ var CAPI = map[string]struct{}{
|
||||
"htons": {},
|
||||
"hypot": {},
|
||||
"inet_ntoa": {},
|
||||
"initstate_r": {},
|
||||
"ioctl": {},
|
||||
"ioctlsocket": {},
|
||||
"isalnum": {},
|
||||
"isalpha": {},
|
||||
"isascii": {},
|
||||
"isatty": {},
|
||||
"isdigit": {},
|
||||
"islower": {},
|
||||
@@ -516,10 +549,12 @@ var CAPI = map[string]struct{}{
|
||||
"ldexp": {},
|
||||
"link": {},
|
||||
"listen": {},
|
||||
"llabs": {},
|
||||
"localtime": {},
|
||||
"localtime_r": {},
|
||||
"log": {},
|
||||
"log10": {},
|
||||
"longjmp": {},
|
||||
"lseek": {},
|
||||
"lseek64": {},
|
||||
"lstat": {},
|
||||
@@ -558,7 +593,6 @@ var CAPI = map[string]struct{}{
|
||||
"perror": {},
|
||||
"pipe": {},
|
||||
"popen": {},
|
||||
"posix_fadvise": {},
|
||||
"pow": {},
|
||||
"printf": {},
|
||||
"pselect": {},
|
||||
@@ -570,23 +604,26 @@ var CAPI = map[string]struct{}{
|
||||
"raise": {},
|
||||
"rand": {},
|
||||
"random": {},
|
||||
"random_r": {},
|
||||
"read": {},
|
||||
"readdir": {},
|
||||
"readlink": {},
|
||||
"readv": {},
|
||||
"realloc": {},
|
||||
"reallocarray": {},
|
||||
"realpath": {},
|
||||
"recv": {},
|
||||
"rename": {},
|
||||
"rewind": {},
|
||||
"rindex": {},
|
||||
"rint": {},
|
||||
"rmdir": {},
|
||||
"round": {},
|
||||
"sched_yield": {},
|
||||
"select": {},
|
||||
"send": {},
|
||||
"setbuf": {},
|
||||
"setenv": {},
|
||||
"setjmp": {},
|
||||
"setlocale": {},
|
||||
"setmode": {},
|
||||
"setrlimit": {},
|
||||
|
||||
+418
-295
@@ -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,128 +1395,128 @@ 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
|
||||
r = int8(x0) & int8(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostDecBitFieldPtr8Int16(p uintptr, d int16, w, off int, mask uint8) (r int16) {
|
||||
x0 := *(*uint8)(unsafe.Pointer(p))
|
||||
s := 16 - w
|
||||
r = int16(x0) & int16(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostDecBitFieldPtr8Int32(p uintptr, d int32, w, off int, mask uint8) (r int32) {
|
||||
x0 := *(*uint8)(unsafe.Pointer(p))
|
||||
s := 32 - w
|
||||
r = int32(x0) & int32(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostDecBitFieldPtr8Int64(p uintptr, d int64, w, off int, mask uint8) (r int64) {
|
||||
x0 := *(*uint8)(unsafe.Pointer(p))
|
||||
s := 64 - w
|
||||
r = int64(x0) & int64(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostDecBitFieldPtr16Int8(p uintptr, d int8, w, off int, mask uint16) (r int8) {
|
||||
x0 := *(*uint16)(unsafe.Pointer(p))
|
||||
s := 8 - w
|
||||
r = int8(x0) & int8(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostDecBitFieldPtr16Int16(p uintptr, d int16, w, off int, mask uint16) (r int16) {
|
||||
x0 := *(*uint16)(unsafe.Pointer(p))
|
||||
s := 16 - w
|
||||
r = int16(x0) & int16(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostDecBitFieldPtr16Int32(p uintptr, d int32, w, off int, mask uint16) (r int32) {
|
||||
x0 := *(*uint16)(unsafe.Pointer(p))
|
||||
s := 32 - w
|
||||
r = int32(x0) & int32(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostDecBitFieldPtr16Int64(p uintptr, d int64, w, off int, mask uint16) (r int64) {
|
||||
x0 := *(*uint16)(unsafe.Pointer(p))
|
||||
s := 64 - w
|
||||
r = int64(x0) & int64(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostDecBitFieldPtr32Int8(p uintptr, d int8, w, off int, mask uint32) (r int8) {
|
||||
x0 := *(*uint32)(unsafe.Pointer(p))
|
||||
s := 8 - w
|
||||
r = int8(x0) & int8(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostDecBitFieldPtr32Int16(p uintptr, d int16, w, off int, mask uint32) (r int16) {
|
||||
x0 := *(*uint32)(unsafe.Pointer(p))
|
||||
s := 16 - w
|
||||
r = int16(x0) & int16(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostDecBitFieldPtr32Int32(p uintptr, d int32, w, off int, mask uint32) (r int32) {
|
||||
x0 := *(*uint32)(unsafe.Pointer(p))
|
||||
s := 32 - w
|
||||
r = int32(x0) & int32(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostDecBitFieldPtr32Int64(p uintptr, d int64, w, off int, mask uint32) (r int64) {
|
||||
x0 := *(*uint32)(unsafe.Pointer(p))
|
||||
s := 64 - w
|
||||
r = int64(x0) & int64(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostDecBitFieldPtr64Int8(p uintptr, d int8, w, off int, mask uint64) (r int8) {
|
||||
x0 := *(*uint64)(unsafe.Pointer(p))
|
||||
s := 8 - w
|
||||
r = int8(x0) & int8(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostDecBitFieldPtr64Int16(p uintptr, d int16, w, off int, mask uint64) (r int16) {
|
||||
x0 := *(*uint64)(unsafe.Pointer(p))
|
||||
s := 16 - w
|
||||
r = int16(x0) & int16(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostDecBitFieldPtr64Int32(p uintptr, d int32, w, off int, mask uint64) (r int32) {
|
||||
x0 := *(*uint64)(unsafe.Pointer(p))
|
||||
s := 32 - w
|
||||
r = int32(x0) & int32(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostDecBitFieldPtr64Int64(p uintptr, d int64, w, off int, mask uint64) (r int64) {
|
||||
x0 := *(*uint64)(unsafe.Pointer(p))
|
||||
s := 64 - w
|
||||
r = int64(x0) & int64(mask) << s >> s
|
||||
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,128 +1635,128 @@ 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
|
||||
r = int8(x0) & int8(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostIncBitFieldPtr8Int16(p uintptr, d int16, w, off int, mask uint8) (r int16) {
|
||||
x0 := *(*uint8)(unsafe.Pointer(p))
|
||||
s := 16 - w
|
||||
r = int16(x0) & int16(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostIncBitFieldPtr8Int32(p uintptr, d int32, w, off int, mask uint8) (r int32) {
|
||||
x0 := *(*uint8)(unsafe.Pointer(p))
|
||||
s := 32 - w
|
||||
r = int32(x0) & int32(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostIncBitFieldPtr8Int64(p uintptr, d int64, w, off int, mask uint8) (r int64) {
|
||||
x0 := *(*uint8)(unsafe.Pointer(p))
|
||||
s := 64 - w
|
||||
r = int64(x0) & int64(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostIncBitFieldPtr16Int8(p uintptr, d int8, w, off int, mask uint16) (r int8) {
|
||||
x0 := *(*uint16)(unsafe.Pointer(p))
|
||||
s := 8 - w
|
||||
r = int8(x0) & int8(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostIncBitFieldPtr16Int16(p uintptr, d int16, w, off int, mask uint16) (r int16) {
|
||||
x0 := *(*uint16)(unsafe.Pointer(p))
|
||||
s := 16 - w
|
||||
r = int16(x0) & int16(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostIncBitFieldPtr16Int32(p uintptr, d int32, w, off int, mask uint16) (r int32) {
|
||||
x0 := *(*uint16)(unsafe.Pointer(p))
|
||||
s := 32 - w
|
||||
r = int32(x0) & int32(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostIncBitFieldPtr16Int64(p uintptr, d int64, w, off int, mask uint16) (r int64) {
|
||||
x0 := *(*uint16)(unsafe.Pointer(p))
|
||||
s := 64 - w
|
||||
r = int64(x0) & int64(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostIncBitFieldPtr32Int8(p uintptr, d int8, w, off int, mask uint32) (r int8) {
|
||||
x0 := *(*uint32)(unsafe.Pointer(p))
|
||||
s := 8 - w
|
||||
r = int8(x0) & int8(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostIncBitFieldPtr32Int16(p uintptr, d int16, w, off int, mask uint32) (r int16) {
|
||||
x0 := *(*uint32)(unsafe.Pointer(p))
|
||||
s := 16 - w
|
||||
r = int16(x0) & int16(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostIncBitFieldPtr32Int32(p uintptr, d int32, w, off int, mask uint32) (r int32) {
|
||||
x0 := *(*uint32)(unsafe.Pointer(p))
|
||||
s := 32 - w
|
||||
r = int32(x0) & int32(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostIncBitFieldPtr32Int64(p uintptr, d int64, w, off int, mask uint32) (r int64) {
|
||||
x0 := *(*uint32)(unsafe.Pointer(p))
|
||||
s := 64 - w
|
||||
r = int64(x0) & int64(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostIncBitFieldPtr64Int8(p uintptr, d int8, w, off int, mask uint64) (r int8) {
|
||||
x0 := *(*uint64)(unsafe.Pointer(p))
|
||||
s := 8 - w
|
||||
r = int8(x0) & int8(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostIncBitFieldPtr64Int16(p uintptr, d int16, w, off int, mask uint64) (r int16) {
|
||||
x0 := *(*uint64)(unsafe.Pointer(p))
|
||||
s := 16 - w
|
||||
r = int16(x0) & int16(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostIncBitFieldPtr64Int32(p uintptr, d int32, w, off int, mask uint64) (r int32) {
|
||||
x0 := *(*uint64)(unsafe.Pointer(p))
|
||||
s := 32 - w
|
||||
r = int32(x0) & int32(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
func PostIncBitFieldPtr64Int64(p uintptr, d int64, w, off int, mask uint64) (r int64) {
|
||||
x0 := *(*uint64)(unsafe.Pointer(p))
|
||||
s := 64 - w
|
||||
r = int64(x0) & int64(mask) << s >> s
|
||||
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
|
||||
}
|
||||
|
||||
+4
-2
@@ -1,5 +1,7 @@
|
||||
// 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_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_darwin_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
||||
var CAPI = map[string]struct{}{
|
||||
"__darwin_check_fd_set_overflow": {},
|
||||
}
|
||||
+4
-2
@@ -1,5 +1,7 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -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
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
||||
var CAPI = map[string]struct{}{
|
||||
"__darwin_check_fd_set_overflow": {},
|
||||
}
|
||||
+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
|
||||
|
||||
|
||||
+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
|
||||
|
||||
|
||||
+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
|
||||
|
||||
|
||||
+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_windows_386.go -pkgname errno', DO NOT EDIT.
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_windows_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_windows_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 -o errno\errno_windows_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
|
||||
+129
-120
@@ -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_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_darwin_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
@@ -15,125 +15,125 @@ 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_UNIX_CONFORMANCE = 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:745:1:
|
||||
X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:771:1:
|
||||
X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:779: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:243:1:
|
||||
X_Null_unspecified = 0 // cdefs.h:246:1:
|
||||
X_Nullable = 0 // cdefs.h:240:1:
|
||||
X_SYS_ERRNO_H_ = 0 // errno.h:70:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
@@ -154,6 +154,8 @@ type X__uint128_t = struct {
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
|
||||
|
||||
// Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
|
||||
//
|
||||
// @APPLE_LICENSE_HEADER_START@
|
||||
@@ -312,6 +314,13 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// in between its arguments. __CONCAT can also concatenate double-quoted
|
||||
// strings produced by the __STRING macro, but this only works with ANSI C.
|
||||
|
||||
// In non-ANSI C environments, new programs will want ANSI-only C keywords
|
||||
// deleted from the program and old programs will want them left alone.
|
||||
// When using a compiler other than gcc, programs using the ANSI C keywords
|
||||
// const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
|
||||
// When using "gcc -traditional", we assume that this is the intent; if
|
||||
// __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
|
||||
|
||||
// __unused denotes variables and functions that may not be used, preventing
|
||||
// the compiler from warning about it if not used.
|
||||
|
||||
|
||||
+151
-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 "" -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 */
|
||||
@@ -156,6 +156,8 @@ type X__uint128_t = struct {
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
|
||||
|
||||
// Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
|
||||
//
|
||||
// @APPLE_LICENSE_HEADER_START@
|
||||
@@ -314,6 +316,19 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// in between its arguments. __CONCAT can also concatenate double-quoted
|
||||
// strings produced by the __STRING macro, but this only works with ANSI C.
|
||||
|
||||
// In non-ANSI C environments, new programs will want ANSI-only C keywords
|
||||
// deleted from the program and old programs will want them left alone.
|
||||
// When using a compiler other than gcc, programs using the ANSI C keywords
|
||||
// const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
|
||||
// When using "gcc -traditional", we assume that this is the intent; if
|
||||
// __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
|
||||
|
||||
// __pure2 can be used for functions that are only a function of their scalar
|
||||
// arguments (meaning they can't dereference pointers).
|
||||
//
|
||||
// __stateful_pure can be used for functions that have no side effects,
|
||||
// but depend on the state of the memory.
|
||||
|
||||
// __unused denotes variables and functions that may not be used, preventing
|
||||
// the compiler from warning about it if not used.
|
||||
|
||||
@@ -590,6 +605,20 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// __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
|
||||
|
||||
+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: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>:340:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
|
||||
+1
@@ -157,6 +157,7 @@ const (
|
||||
X_ERRNO_H = 1
|
||||
X_FEATURES_H = 1
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_ILP32 = 1
|
||||
X_POSIX_C_SOURCE = 200809
|
||||
X_POSIX_SOURCE = 1
|
||||
X_STDC_PREDEF_H = 1
|
||||
|
||||
+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 */
|
||||
|
||||
+1
-1
@@ -174,4 +174,4 @@ type Wchar_t = uint32 /* <builtin>:15:24 */
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
||||
var _ uint8 /* gen.c:2:13: */
|
||||
+1
-1
@@ -184,4 +184,4 @@ type X__uint128_t = struct {
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
||||
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 */
|
||||
|
||||
+196
-182
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o errno/errno_windows_386.go -pkgname errno', DO NOT EDIT.
|
||||
// Code generated by 'ccgo errno/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o errno/errno_windows_386.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
@@ -15,167 +15,168 @@ 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_DDRAW_VERSION = 7
|
||||
MINGW_HAS_DDK_H = 1
|
||||
MINGW_HAS_DDRAW_H = 1
|
||||
MINGW_HAS_SECURE_API = 1
|
||||
MINGW_SDK_INIT = 0
|
||||
STRUNCATE = 80
|
||||
UNALIGNED = 0
|
||||
USE___UUIDOF = 0
|
||||
WIN32 = 1
|
||||
WINNT = 1
|
||||
X_AGLOBAL = 0
|
||||
X_ANONYMOUS_STRUCT = 0
|
||||
X_ANONYMOUS_UNION = 0
|
||||
X_ARGMAX = 100
|
||||
X_CONST_RETURN = 0
|
||||
X_CRTNOALIAS = 0
|
||||
X_CRTRESTRICT = 0
|
||||
X_CRT_ALTERNATIVE_IMPORTED = 0
|
||||
X_CRT_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_DLL = 0
|
||||
X_ERRCODE_DEFINED = 0
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
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_INTEGRAL_MAX_BITS = 64
|
||||
X_INTPTR_T_DEFINED = 0
|
||||
X_MT = 0
|
||||
X_M_IX86 = 600
|
||||
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_UINTPTR_T_DEFINED = 0
|
||||
X_USE_32BIT_TIME_T = 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 = 0x502
|
||||
X_WINT_T = 0
|
||||
X_X86_ = 1
|
||||
I386 = 1
|
||||
DUMMYSTRUCTNAME = 0 // _mingw.h:519:1:
|
||||
DUMMYSTRUCTNAME1 = 0 // _mingw.h:520:1:
|
||||
DUMMYSTRUCTNAME2 = 0 // _mingw.h:521:1:
|
||||
DUMMYSTRUCTNAME3 = 0 // _mingw.h:522:1:
|
||||
DUMMYSTRUCTNAME4 = 0 // _mingw.h:523:1:
|
||||
DUMMYSTRUCTNAME5 = 0 // _mingw.h:524:1:
|
||||
DUMMYUNIONNAME = 0 // _mingw.h:497:1:
|
||||
DUMMYUNIONNAME1 = 0 // _mingw.h:498:1:
|
||||
DUMMYUNIONNAME2 = 0 // _mingw.h:499:1:
|
||||
DUMMYUNIONNAME3 = 0 // _mingw.h:500:1:
|
||||
DUMMYUNIONNAME4 = 0 // _mingw.h:501:1:
|
||||
DUMMYUNIONNAME5 = 0 // _mingw.h:502:1:
|
||||
DUMMYUNIONNAME6 = 0 // _mingw.h:503:1:
|
||||
DUMMYUNIONNAME7 = 0 // _mingw.h:504:1:
|
||||
DUMMYUNIONNAME8 = 0 // _mingw.h:505:1:
|
||||
DUMMYUNIONNAME9 = 0 // _mingw.h:506:1:
|
||||
E2BIG = 7 // errno.h:31:1:
|
||||
EACCES = 13 // errno.h:37:1:
|
||||
EADDRINUSE = 100 // errno.h:86:1:
|
||||
EADDRNOTAVAIL = 101 // errno.h:90:1:
|
||||
EAFNOSUPPORT = 102 // errno.h:82:1:
|
||||
EAGAIN = 11 // errno.h:35:1:
|
||||
EALREADY = 103 // errno.h:106:1:
|
||||
EBADF = 9 // errno.h:33:1:
|
||||
EBADMSG = 104 // errno.h:182:1:
|
||||
EBUSY = 16 // errno.h:39:1:
|
||||
ECANCELED = 105 // errno.h:154:1:
|
||||
ECHILD = 10 // errno.h:34:1:
|
||||
ECONNABORTED = 106 // errno.h:102:1:
|
||||
ECONNREFUSED = 107 // errno.h:110:1:
|
||||
ECONNRESET = 108 // errno.h:114:1:
|
||||
EDEADLK = 36 // errno.h:55:1:
|
||||
EDEADLOCK = 36 // errno.h:71:1:
|
||||
EDESTADDRREQ = 109 // errno.h:118:1:
|
||||
EDOM = 33 // errno.h:54:1:
|
||||
EEXIST = 17 // errno.h:40:1:
|
||||
EFAULT = 14 // errno.h:38:1:
|
||||
EFBIG = 27 // errno.h:48:1:
|
||||
EHOSTUNREACH = 110 // errno.h:122:1:
|
||||
EIDRM = 111 // errno.h:186:1:
|
||||
EILSEQ = 42 // errno.h:66:1:
|
||||
EINPROGRESS = 112 // errno.h:158:1:
|
||||
EINTR = 4 // errno.h:28:1:
|
||||
EINVAL = 22 // errno.h:64:1:
|
||||
EIO = 5 // errno.h:29:1:
|
||||
EISCONN = 113 // errno.h:94:1:
|
||||
EISDIR = 21 // errno.h:44:1:
|
||||
ELOOP = 114 // errno.h:227:1:
|
||||
EMFILE = 24 // errno.h:46:1:
|
||||
EMLINK = 31 // errno.h:52:1:
|
||||
EMSGSIZE = 115 // errno.h:126:1:
|
||||
ENAMETOOLONG = 38 // errno.h:56:1:
|
||||
ENETDOWN = 116 // errno.h:130:1:
|
||||
ENETRESET = 117 // errno.h:134:1:
|
||||
ENETUNREACH = 118 // errno.h:138:1:
|
||||
ENFILE = 23 // errno.h:45:1:
|
||||
ENOBUFS = 119 // errno.h:98:1:
|
||||
ENODATA = 120 // errno.h:190:1:
|
||||
ENODEV = 19 // errno.h:42:1:
|
||||
ENOENT = 2 // errno.h:25:1:
|
||||
ENOEXEC = 8 // errno.h:32:1:
|
||||
ENOFILE = 2 // errno.h:26:1:
|
||||
ENOLCK = 39 // errno.h:57:1:
|
||||
ENOLINK = 121 // errno.h:194:1:
|
||||
ENOMEM = 12 // errno.h:36:1:
|
||||
ENOMSG = 122 // errno.h:198:1:
|
||||
ENOPROTOOPT = 123 // errno.h:142:1:
|
||||
ENOSPC = 28 // errno.h:49:1:
|
||||
ENOSR = 124 // errno.h:202:1:
|
||||
ENOSTR = 125 // errno.h:206:1:
|
||||
ENOSYS = 40 // errno.h:58:1:
|
||||
ENOTCONN = 126 // errno.h:150:1:
|
||||
ENOTDIR = 20 // errno.h:43:1:
|
||||
ENOTEMPTY = 41 // errno.h:59:1:
|
||||
ENOTRECOVERABLE = 127 // errno.h:210:1:
|
||||
ENOTSOCK = 128 // errno.h:146:1:
|
||||
ENOTSUP = 129 // errno.h:76:1:
|
||||
ENOTTY = 25 // errno.h:47:1:
|
||||
ENXIO = 6 // errno.h:30:1:
|
||||
EOPNOTSUPP = 130 // errno.h:162:1:
|
||||
EOVERFLOW = 132 // errno.h:235:1:
|
||||
EOWNERDEAD = 133 // errno.h:170:1:
|
||||
EPERM = 1 // errno.h:24:1:
|
||||
EPIPE = 32 // errno.h:53:1:
|
||||
EPROTO = 134 // errno.h:174:1:
|
||||
EPROTONOSUPPORT = 135 // errno.h:178:1:
|
||||
EPROTOTYPE = 136 // errno.h:231:1:
|
||||
ERANGE = 34 // errno.h:65:1:
|
||||
EROFS = 30 // errno.h:51:1:
|
||||
ESPIPE = 29 // errno.h:50:1:
|
||||
ESRCH = 3 // errno.h:27:1:
|
||||
ETIME = 137 // errno.h:214:1:
|
||||
ETIMEDOUT = 138 // errno.h:223:1:
|
||||
ETXTBSY = 139 // errno.h:218:1:
|
||||
EWOULDBLOCK = 140 // errno.h:166:1:
|
||||
EXDEV = 18 // errno.h:41:1:
|
||||
MINGW_DDK_H = 0 // _mingw_ddk.h:2:1:
|
||||
MINGW_HAS_DDK_H = 1 // _mingw_ddk.h:4:1:
|
||||
MINGW_HAS_SECURE_API = 1 // _mingw.h:602:1:
|
||||
MINGW_SDK_INIT = 0 // _mingw.h:598:1:
|
||||
STRUNCATE = 80 // errno.h:67:1:
|
||||
UNALIGNED = 0 // _mingw.h:384:1:
|
||||
USE___UUIDOF = 0 // _mingw.h:77:1:
|
||||
WIN32 = 1 // <predefined>:258:1:
|
||||
WINNT = 1 // <predefined>:306:1:
|
||||
X_AGLOBAL = 0 // _mingw.h:346:1:
|
||||
X_ANONYMOUS_STRUCT = 0 // _mingw.h:474:1:
|
||||
X_ANONYMOUS_UNION = 0 // _mingw.h:473:1:
|
||||
X_ARGMAX = 100 // _mingw.h:402:1:
|
||||
X_CONST_RETURN = 0 // _mingw.h:377:1:
|
||||
X_CRTNOALIAS = 0 // corecrt.h:29:1:
|
||||
X_CRTRESTRICT = 0 // corecrt.h:33:1:
|
||||
X_CRT_ALTERNATIVE_IMPORTED = 0 // _mingw.h:313:1:
|
||||
X_CRT_ERRNO_DEFINED = 0 // errno.h:16:1:
|
||||
X_CRT_MANAGED_HEAP_DEPRECATE = 0 // _mingw.h:361:1:
|
||||
X_CRT_PACKING = 8 // corecrt.h:14:1:
|
||||
X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES = 0 // _mingw_secapi.h:34:1:
|
||||
X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY = 0 // _mingw_secapi.h:35:1:
|
||||
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0 // _mingw_secapi.h:36:1:
|
||||
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0 // _mingw_secapi.h:37:1:
|
||||
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0 // _mingw_secapi.h:38:1:
|
||||
X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0 // corecrt.h:501:1:
|
||||
X_DLL = 0 // _mingw.h:326:1:
|
||||
X_ERRCODE_DEFINED = 0 // corecrt.h:117:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_ILP32 = 1 // <predefined>:211:1:
|
||||
X_INC_CORECRT = 0 // corecrt.h:8:1:
|
||||
X_INC_CRTDEFS = 0 // crtdefs.h:8:1:
|
||||
X_INC_CRTDEFS_MACRO = 0 // _mingw_mac.h:8:1:
|
||||
X_INC_ERRNO = 0 // errno.h:7:1:
|
||||
X_INC_MINGW_SECAPI = 0 // _mingw_secapi.h:8:1:
|
||||
X_INC_VADEFS = 0 // vadefs.h:7:1:
|
||||
X_INC__MINGW_H = 0 // _mingw.h:8:1:
|
||||
X_INT128_DEFINED = 0 // _mingw.h:237:1:
|
||||
X_INTEGRAL_MAX_BITS = 64 // <predefined>:320:1:
|
||||
X_INTPTR_T_DEFINED = 0 // corecrt.h:62:1:
|
||||
X_MT = 0 // _mingw.h:330:1:
|
||||
X_M_IX86 = 600 // _mingw_mac.h:54:1:
|
||||
X_PGLOBAL = 0 // _mingw.h:342:1:
|
||||
X_PTRDIFF_T_ = 0 // corecrt.h:90:1:
|
||||
X_PTRDIFF_T_DEFINED = 0 // corecrt.h:88:1:
|
||||
X_RSIZE_T_DEFINED = 0 // corecrt.h:58:1:
|
||||
X_SECURECRT_ERRCODE_VALUES_DEFINED = 0 // errno.h:63:1:
|
||||
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD // _mingw.h:349:1:
|
||||
X_SIZE_T_DEFINED = 0 // corecrt.h:37:1:
|
||||
X_SSIZE_T_DEFINED = 0 // corecrt.h:47:1:
|
||||
X_TAGLC_ID_DEFINED = 0 // corecrt.h:447:1:
|
||||
X_THREADLOCALEINFO = 0 // corecrt.h:456:1:
|
||||
X_TIME32_T_DEFINED = 0 // corecrt.h:122:1:
|
||||
X_TIME64_T_DEFINED = 0 // corecrt.h:127:1:
|
||||
X_TIME_T_DEFINED = 0 // corecrt.h:139:1:
|
||||
X_UINTPTR_T_DEFINED = 0 // corecrt.h:75:1:
|
||||
X_USE_32BIT_TIME_T = 0 // _mingw.h:372:1:
|
||||
X_VA_LIST_DEFINED = 0 // <builtin>:55:1:
|
||||
X_W64 = 0 // _mingw.h:296:1:
|
||||
X_WCHAR_T_DEFINED = 0 // corecrt.h:101:1:
|
||||
X_WCTYPE_T_DEFINED = 0 // corecrt.h:108:1:
|
||||
X_WIN32 = 1 // <predefined>:164:1:
|
||||
X_WIN32_WINNT = 0x502 // _mingw.h:233:1:
|
||||
X_WINT_T = 0 // corecrt.h:110:1:
|
||||
X_X86_ = 1 // <predefined>:169:1:
|
||||
I386 = 1 // <predefined>:171:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int32 /* <builtin>:3:26 */
|
||||
@@ -209,6 +210,11 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
|
||||
// This file is part of the mingw-w64 runtime package.
|
||||
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
||||
|
||||
// *
|
||||
// This file has no copyright assigned and is placed in the Public Domain.
|
||||
// This file is part of the mingw-w64 runtime package.
|
||||
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
||||
|
||||
// This macro holds an monotonic increasing value, which indicates
|
||||
// a specific fix/patch is present on trunk. This value isn't related to
|
||||
// minor/major version-macros. It is increased on demand, if a big
|
||||
@@ -229,6 +235,12 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
|
||||
// MinGW-w64 has some additional C99 printf/scanf feature support.
|
||||
// So we add some helper macros to ease recognition of them.
|
||||
|
||||
// If _FORTIFY_SOURCE is enabled, some inline functions may use
|
||||
// __builtin_va_arg_pack(). GCC may report an error if the address
|
||||
// of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
|
||||
|
||||
// Enable workaround for ABI incompatibility on affected platforms
|
||||
|
||||
// *
|
||||
// This file has no copyright assigned and is placed in the Public Domain.
|
||||
// This file is part of the mingw-w64 runtime package.
|
||||
@@ -269,26 +281,28 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
|
||||
// This file is part of the mingw-w64 runtime package.
|
||||
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
||||
|
||||
// for backward compatibility
|
||||
|
||||
type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
|
||||
|
||||
type Ssize_t = int32 /* crtdefs.h:47:13 */
|
||||
type Ssize_t = int32 /* corecrt.h:52:13 */
|
||||
|
||||
type Rsize_t = Size_t /* crtdefs.h:52:16 */
|
||||
type Rsize_t = Size_t /* corecrt.h:57:16 */
|
||||
|
||||
type Intptr_t = int32 /* crtdefs.h:64:13 */
|
||||
type Intptr_t = int32 /* corecrt.h:69:13 */
|
||||
|
||||
type Uintptr_t = uint32 /* crtdefs.h:77:22 */
|
||||
type Uintptr_t = uint32 /* corecrt.h:82:22 */
|
||||
|
||||
type Wint_t = uint16 /* crtdefs.h:106:24 */
|
||||
type Wctype_t = uint16 /* crtdefs.h:107:24 */
|
||||
type Wint_t = uint16 /* corecrt.h:111:24 */
|
||||
type Wctype_t = uint16 /* corecrt.h:112:24 */
|
||||
|
||||
type Errno_t = int32 /* crtdefs.h:113:13 */
|
||||
type Errno_t = int32 /* corecrt.h:118:13 */
|
||||
|
||||
type X__time32_t = int32 /* crtdefs.h:118:14 */
|
||||
type X__time32_t = int32 /* corecrt.h:123:14 */
|
||||
|
||||
type X__time64_t = int64 /* crtdefs.h:123:35 */
|
||||
type X__time64_t = int64 /* corecrt.h:128:35 */
|
||||
|
||||
type Time_t = X__time32_t /* crtdefs.h:136:20 */
|
||||
type Time_t = X__time32_t /* corecrt.h:141:20 */
|
||||
|
||||
type Threadlocaleinfostruct = struct {
|
||||
Frefcount int32
|
||||
@@ -314,29 +328,29 @@ type Threadlocaleinfostruct = struct {
|
||||
Fpclmap uintptr
|
||||
Fpcumap uintptr
|
||||
Flc_time_curr uintptr
|
||||
} /* crtdefs.h:422:1 */
|
||||
} /* corecrt.h:435:1 */
|
||||
|
||||
type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
|
||||
type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
|
||||
type Pthreadlocinfo = uintptr /* corecrt.h:437:39 */
|
||||
type Pthreadmbcinfo = uintptr /* corecrt.h:438:36 */
|
||||
|
||||
type Localeinfo_struct = struct {
|
||||
Flocinfo Pthreadlocinfo
|
||||
Fmbcinfo Pthreadmbcinfo
|
||||
} /* crtdefs.h:428:9 */
|
||||
} /* corecrt.h:441:9 */
|
||||
|
||||
type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
|
||||
type X_locale_t = uintptr /* crtdefs.h:431:19 */
|
||||
type X_locale_tstruct = Localeinfo_struct /* corecrt.h:444:3 */
|
||||
type X_locale_t = uintptr /* corecrt.h:444:19 */
|
||||
|
||||
type TagLC_ID = struct {
|
||||
FwLanguage uint16
|
||||
FwCountry uint16
|
||||
FwCodePage uint16
|
||||
} /* crtdefs.h:422:1 */
|
||||
} /* corecrt.h:435:1 */
|
||||
|
||||
type LC_ID = TagLC_ID /* crtdefs.h:439:3 */
|
||||
type LPLC_ID = uintptr /* crtdefs.h:439:9 */
|
||||
type LC_ID = TagLC_ID /* corecrt.h:452:3 */
|
||||
type LPLC_ID = uintptr /* corecrt.h:452:9 */
|
||||
|
||||
type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
|
||||
type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
|
||||
|
||||
// Posix thread extensions.
|
||||
|
||||
|
||||
+2
-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_windows_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 -o errno\errno_windows_amd64.go -pkgname errno', DO NOT EDIT.
|
||||
|
||||
package errno
|
||||
|
||||
@@ -157,6 +157,7 @@ const (
|
||||
X_PGLOBAL = 0
|
||||
X_PTRDIFF_T_ = 0
|
||||
X_PTRDIFF_T_DEFINED = 0
|
||||
X_REENTRANT = 1
|
||||
X_RSIZE_T_DEFINED = 0
|
||||
X_SECURECRT_ERRCODE_VALUES_DEFINED = 0
|
||||
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
|
||||
|
||||
+4
-2
@@ -212,6 +212,8 @@ func (t *TLS) Close() {
|
||||
|
||||
atomic.AddInt32(&tlsBalance, -1)
|
||||
}
|
||||
t.pthreadData.close(t)
|
||||
*t = TLS{}
|
||||
}
|
||||
|
||||
// Alloc allocates n bytes of thread-local storage. It must be paired with a
|
||||
@@ -307,7 +309,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 +824,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(""))
|
||||
|
||||
+4
-2
@@ -1,5 +1,7 @@
|
||||
// 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_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_darwin_amd64.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
||||
var CAPI = map[string]struct{}{
|
||||
"__darwin_check_fd_set_overflow": {},
|
||||
}
|
||||
+4
-2
@@ -1,5 +1,7 @@
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -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
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
||||
var CAPI = map[string]struct{}{
|
||||
"__darwin_check_fd_set_overflow": {},
|
||||
}
|
||||
+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
|
||||
|
||||
|
||||
+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
|
||||
|
||||
|
||||
+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
|
||||
|
||||
|
||||
+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_windows_386.go -pkgname fcntl', DO NOT EDIT.
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_windows_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_windows_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 -o fcntl\fcntl_windows_amd64.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
|
||||
+189
-180
@@ -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_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_darwin_amd64.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
@@ -15,177 +15,177 @@ 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 = 0x0001
|
||||
FWRITE = 0x0002
|
||||
F_ADDFILESIGS = 61
|
||||
F_ADDFILESIGS_FOR_DYLD_SIM = 83
|
||||
F_ADDFILESIGS_RETURN = 97
|
||||
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_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
|
||||
LOCK_EX = 0x02
|
||||
LOCK_NB = 0x04
|
||||
LOCK_SH = 0x01
|
||||
LOCK_UN = 0x08
|
||||
O_ACCMODE = 0x0003
|
||||
O_ALERT = 0x20000000
|
||||
O_APPEND = 0x0008
|
||||
O_ASYNC = 0x0040
|
||||
O_CLOEXEC = 0x1000000
|
||||
O_CREAT = 0x0200
|
||||
O_DIRECTORY = 0x100000
|
||||
O_DP_GETRAWENCRYPTED = 0x0001
|
||||
O_DP_GETRAWUNENCRYPTED = 0x0002
|
||||
O_DSYNC = 0x400000
|
||||
O_EVTONLY = 0x8000
|
||||
O_EXCL = 0x0800
|
||||
O_EXLOCK = 0x0020
|
||||
O_FSYNC = 128
|
||||
O_NDELAY = 4
|
||||
O_NOCTTY = 0x20000
|
||||
O_NOFOLLOW = 0x0100
|
||||
O_NONBLOCK = 0x0004
|
||||
O_POPUP = 0x80000000
|
||||
O_RDONLY = 0x0000
|
||||
O_RDWR = 0x0002
|
||||
O_SHLOCK = 0x0010
|
||||
O_SYMLINK = 0x200000
|
||||
O_SYNC = 0x0080
|
||||
O_TRUNC = 0x0400
|
||||
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
|
||||
X_BSD_I386__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_UNIX_CONFORMANCE = 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:138:1:
|
||||
AT_FDCWD = -2 // fcntl.h:133:1:
|
||||
AT_FDONLY = 0x0400 // fcntl.h:144:1:
|
||||
AT_REALDEV = 0x0200 // fcntl.h:143:1:
|
||||
AT_REMOVEDIR = 0x0080 // fcntl.h:141:1:
|
||||
AT_SYMLINK_FOLLOW = 0x0040 // fcntl.h:140:1:
|
||||
AT_SYMLINK_NOFOLLOW = 0x0020 // fcntl.h:139:1:
|
||||
CPF_IGNORE_MODE = 0x0002 // fcntl.h:201:1:
|
||||
CPF_MASK = 3 // fcntl.h:202:1:
|
||||
CPF_OVERWRITE = 0x0001 // fcntl.h:200:1:
|
||||
FAPPEND = 8 // fcntl.h:186:1:
|
||||
FASYNC = 64 // fcntl.h:187:1:
|
||||
FCNTL_FS_SPECIFIC_BASE = 0x00010000 // fcntl.h:297:1:
|
||||
FD_CLOEXEC = 1 // fcntl.h:306:1:
|
||||
FFDSYNC = 4194304 // fcntl.h:189:1:
|
||||
FFSYNC = 128 // fcntl.h:188:1:
|
||||
FNDELAY = 4 // fcntl.h:191:1:
|
||||
FNONBLOCK = 4 // fcntl.h:190:1:
|
||||
FREAD = 0x0001 // fcntl.h:110:1:
|
||||
FWRITE = 0x0002 // fcntl.h:111:1:
|
||||
F_ADDFILESIGS = 61 // fcntl.h:246:1:
|
||||
F_ADDFILESIGS_FOR_DYLD_SIM = 83 // fcntl.h:279:1:
|
||||
F_ADDFILESIGS_RETURN = 97 // fcntl.h:285:1:
|
||||
F_ADDSIGS = 59 // fcntl.h:243:1:
|
||||
F_ALLOCATEALL = 0x00000004 // fcntl.h:330:1:
|
||||
F_ALLOCATECONTIG = 0x00000002 // fcntl.h:329:1:
|
||||
F_BARRIERFSYNC = 85 // fcntl.h:282:1:
|
||||
F_CHECK_LV = 98 // fcntl.h:286:1:
|
||||
F_CHKCLEAN = 41 // fcntl.h:225:1:
|
||||
F_DUPFD = 0 // fcntl.h:210:1:
|
||||
F_DUPFD_CLOEXEC = 67 // fcntl.h:302:1:
|
||||
F_FINDSIGS = 78 // fcntl.h:276:1:
|
||||
F_FLUSH_DATA = 40 // fcntl.h:224:1:
|
||||
F_FREEZE_FS = 53 // fcntl.h:238:1:
|
||||
F_FULLFSYNC = 51 // fcntl.h:236:1:
|
||||
F_GETCODEDIR = 72 // fcntl.h:264:1:
|
||||
F_GETFD = 1 // fcntl.h:211:1:
|
||||
F_GETFL = 3 // fcntl.h:213:1:
|
||||
F_GETLK = 7 // fcntl.h:217:1:
|
||||
F_GETLKPID = 66 // fcntl.h:256:1:
|
||||
F_GETNOSIGPIPE = 74 // fcntl.h:267:1:
|
||||
F_GETOWN = 5 // fcntl.h:215:1:
|
||||
F_GETPATH = 50 // fcntl.h:235:1:
|
||||
F_GETPATH_MTMINFO = 71 // fcntl.h:262:1:
|
||||
F_GETPATH_NOFIRMLINK = 102 // fcntl.h:294:1:
|
||||
F_GETPROTECTIONCLASS = 63 // fcntl.h:251:1:
|
||||
F_GETPROTECTIONLEVEL = 77 // fcntl.h:274:1:
|
||||
F_GLOBAL_NOCACHE = 55 // fcntl.h:240:1:
|
||||
F_LOG2PHYS = 49 // fcntl.h:234:1:
|
||||
F_LOG2PHYS_EXT = 65 // fcntl.h:254:1:
|
||||
F_NOCACHE = 48 // fcntl.h:233:1:
|
||||
F_NODIRECT = 62 // fcntl.h:248:1:
|
||||
F_PATHPKG_CHECK = 52 // fcntl.h:237:1:
|
||||
F_PEOFPOSMODE = 3 // fcntl.h:334:1:
|
||||
F_PREALLOCATE = 42 // fcntl.h:226:1:
|
||||
F_PUNCHHOLE = 99 // fcntl.h:288:1:
|
||||
F_RDADVISE = 44 // fcntl.h:228:1:
|
||||
F_RDAHEAD = 45 // fcntl.h:229:1:
|
||||
F_RDLCK = 1 // fcntl.h:309:1:
|
||||
F_SETBACKINGSTORE = 70 // fcntl.h:261:1:
|
||||
F_SETFD = 2 // fcntl.h:212:1:
|
||||
F_SETFL = 4 // fcntl.h:214:1:
|
||||
F_SETLK = 8 // fcntl.h:218:1:
|
||||
F_SETLKW = 9 // fcntl.h:219:1:
|
||||
F_SETLKWTIMEOUT = 10 // fcntl.h:221:1:
|
||||
F_SETNOSIGPIPE = 73 // fcntl.h:266:1:
|
||||
F_SETOWN = 6 // fcntl.h:216:1:
|
||||
F_SETPROTECTIONCLASS = 64 // fcntl.h:252:1:
|
||||
F_SETSIZE = 43 // fcntl.h:227:1:
|
||||
F_SINGLE_WRITER = 76 // fcntl.h:271:1:
|
||||
F_SPECULATIVE_READ = 101 // fcntl.h:292:1:
|
||||
F_THAW_FS = 54 // fcntl.h:239:1:
|
||||
F_TRANSCODEKEY = 75 // fcntl.h:269:1:
|
||||
F_TRIM_ACTIVE_FILE = 100 // fcntl.h:290:1:
|
||||
F_UNLCK = 2 // fcntl.h:310:1:
|
||||
F_VOLPOSMODE = 4 // fcntl.h:336:1:
|
||||
F_WRLCK = 3 // fcntl.h:311:1:
|
||||
LOCK_EX = 0x02 // fcntl.h:421:1:
|
||||
LOCK_NB = 0x04 // fcntl.h:422:1:
|
||||
LOCK_SH = 0x01 // fcntl.h:420:1:
|
||||
LOCK_UN = 0x08 // fcntl.h:423:1:
|
||||
O_ACCMODE = 0x0003 // fcntl.h:99:1:
|
||||
O_ALERT = 0x20000000 // fcntl.h:502:1:
|
||||
O_APPEND = 0x0008 // fcntl.h:114:1:
|
||||
O_ASYNC = 0x0040 // fcntl.h:121:1:
|
||||
O_CLOEXEC = 0x1000000 // fcntl.h:165:1:
|
||||
O_CREAT = 0x0200 // fcntl.h:125:1:
|
||||
O_DIRECTORY = 0x100000 // fcntl.h:157:1:
|
||||
O_DP_GETRAWENCRYPTED = 0x0001 // fcntl.h:174:1:
|
||||
O_DP_GETRAWUNENCRYPTED = 0x0002 // fcntl.h:175:1:
|
||||
O_DSYNC = 0x400000 // _o_dsync.h:29:1:
|
||||
O_EVTONLY = 0x8000 // fcntl.h:149:1:
|
||||
O_EXCL = 0x0800 // fcntl.h:127:1:
|
||||
O_EXLOCK = 0x0020 // fcntl.h:120:1:
|
||||
O_FSYNC = 128 // fcntl.h:122:1:
|
||||
O_NDELAY = 4 // fcntl.h:192:1:
|
||||
O_NOCTTY = 0x20000 // fcntl.h:153:1:
|
||||
O_NOFOLLOW = 0x0100 // fcntl.h:123:1:
|
||||
O_NONBLOCK = 0x0004 // fcntl.h:113:1:
|
||||
O_POPUP = 0x80000000 // fcntl.h:501:1:
|
||||
O_RDONLY = 0x0000 // fcntl.h:96:1:
|
||||
O_RDWR = 0x0002 // fcntl.h:98:1:
|
||||
O_SHLOCK = 0x0010 // fcntl.h:119:1:
|
||||
O_SYMLINK = 0x200000 // fcntl.h:158:1:
|
||||
O_SYNC = 0x0080 // _o_sync.h:29:1:
|
||||
O_TRUNC = 0x0400 // 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:
|
||||
X_BSD_I386__TYPES_H_ = 0 // _types.h:29: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:745:1:
|
||||
X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:771:1:
|
||||
X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:779: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:67:1:
|
||||
X_MODE_T = 0 // _mode_t.h:29:1:
|
||||
X_Nonnull = 0 // cdefs.h:243:1:
|
||||
X_Null_unspecified = 0 // cdefs.h:246:1:
|
||||
X_Nullable = 0 // cdefs.h:240: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:512:1: */
|
||||
@@ -219,6 +219,8 @@ type X__uint128_t = struct {
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
|
||||
|
||||
// Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
|
||||
//
|
||||
// @APPLE_LICENSE_HEADER_START@
|
||||
@@ -407,6 +409,13 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// in between its arguments. __CONCAT can also concatenate double-quoted
|
||||
// strings produced by the __STRING macro, but this only works with ANSI C.
|
||||
|
||||
// In non-ANSI C environments, new programs will want ANSI-only C keywords
|
||||
// deleted from the program and old programs will want them left alone.
|
||||
// When using a compiler other than gcc, programs using the ANSI C keywords
|
||||
// const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
|
||||
// When using "gcc -traditional", we assume that this is the intent; if
|
||||
// __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
|
||||
|
||||
// __unused denotes variables and functions that may not be used, preventing
|
||||
// the compiler from warning about it if not used.
|
||||
|
||||
@@ -774,8 +783,8 @@ type X__darwin_ct_rune_t = int32 /* _types.h:70:33 */ // ct_rune_t
|
||||
// mbstate_t is an opaque object to keep conversion state, during multibyte
|
||||
// stream conversions. The content must not be referenced by user programs.
|
||||
type X__mbstate_t = struct {
|
||||
_ [0]uint64
|
||||
F__mbstate8 [128]int8
|
||||
F__ccgo_pad1 [0]uint64
|
||||
F__mbstate8 [128]int8
|
||||
} /* _types.h:79:3 */
|
||||
|
||||
type X__darwin_mbstate_t = X__mbstate_t /* _types.h:81:33 */ // mbstate_t
|
||||
@@ -1901,12 +1910,12 @@ type Flocktimeout = struct {
|
||||
// information passed by user to system
|
||||
|
||||
type Radvisory = struct {
|
||||
Fra_offset Off_t
|
||||
Fra_count int32
|
||||
_ [4]byte
|
||||
Fra_offset Off_t
|
||||
Fra_count int32
|
||||
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
|
||||
@@ -1917,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 -
|
||||
@@ -2043,7 +2052,7 @@ type Fbootstraptransfer_t = Fbootstraptransfer /* fcntl.h:463:3 */
|
||||
|
||||
type Log2phys = struct {
|
||||
Fl2p_flags uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fl2p_contigbytes Off_t
|
||||
Fl2p_devoffset Off_t
|
||||
} /* fcntl.h:489:1 */
|
||||
|
||||
+311
-277
@@ -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 "" -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,221 +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_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_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:536:1: */
|
||||
const ( /* fcntl.h:547:1: */
|
||||
FILESEC_OWNER = 1
|
||||
FILESEC_GROUP = 2
|
||||
FILESEC_UUID = 3
|
||||
@@ -260,6 +264,8 @@ type X__uint128_t = struct {
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
|
||||
|
||||
// Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
|
||||
//
|
||||
// @APPLE_LICENSE_HEADER_START@
|
||||
@@ -448,6 +454,19 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// in between its arguments. __CONCAT can also concatenate double-quoted
|
||||
// strings produced by the __STRING macro, but this only works with ANSI C.
|
||||
|
||||
// In non-ANSI C environments, new programs will want ANSI-only C keywords
|
||||
// deleted from the program and old programs will want them left alone.
|
||||
// When using a compiler other than gcc, programs using the ANSI C keywords
|
||||
// const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
|
||||
// When using "gcc -traditional", we assume that this is the intent; if
|
||||
// __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
|
||||
|
||||
// __pure2 can be used for functions that are only a function of their scalar
|
||||
// arguments (meaning they can't dereference pointers).
|
||||
//
|
||||
// __stateful_pure can be used for functions that have no side effects,
|
||||
// but depend on the state of the memory.
|
||||
|
||||
// __unused denotes variables and functions that may not be used, preventing
|
||||
// the compiler from warning about it if not used.
|
||||
|
||||
@@ -724,6 +743,20 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// __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
|
||||
@@ -762,17 +795,17 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// This header file contains integer types. It's intended to also contain
|
||||
// flotaing point and other arithmetic types, as needed, later.
|
||||
|
||||
type X__int8_t = int8 /* _types.h:13:33 */
|
||||
type X__uint8_t = uint8 /* _types.h:17:33 */
|
||||
type X__int16_t = int16 /* _types.h:18:33 */
|
||||
type X__uint16_t = uint16 /* _types.h:19:33 */
|
||||
type X__int32_t = int32 /* _types.h:20:33 */
|
||||
type X__uint32_t = uint32 /* _types.h:21:33 */
|
||||
type X__int64_t = int64 /* _types.h:22:33 */
|
||||
type X__uint64_t = uint64 /* _types.h:23:33 */
|
||||
type X__int8_t = int8 /* _types.h:15:33 */
|
||||
type X__uint8_t = uint8 /* _types.h:19:33 */
|
||||
type X__int16_t = int16 /* _types.h:20:33 */
|
||||
type X__uint16_t = uint16 /* _types.h:21:33 */
|
||||
type X__int32_t = int32 /* _types.h:22:33 */
|
||||
type X__uint32_t = uint32 /* _types.h:23:33 */
|
||||
type X__int64_t = int64 /* _types.h:24:33 */
|
||||
type X__uint64_t = uint64 /* _types.h:25:33 */
|
||||
|
||||
type X__darwin_intptr_t = int64 /* _types.h:25:33 */
|
||||
type X__darwin_natural_t = uint32 /* _types.h:26:33 */
|
||||
type X__darwin_intptr_t = int64 /* _types.h:27:33 */
|
||||
type X__darwin_natural_t = uint32 /* _types.h:28:33 */
|
||||
|
||||
// The rune type below is declared to be an ``int'' instead of the more natural
|
||||
// ``unsigned long'' or ``long''. Two things are happening here. It is not
|
||||
@@ -790,33 +823,33 @@ type X__darwin_natural_t = uint32 /* _types.h:26:33 */
|
||||
// wchar_t, and should also be able to hold all members of the largest
|
||||
// character set plus one extra value (WEOF). wint_t must be at least 16 bits.
|
||||
|
||||
type X__darwin_ct_rune_t = int32 /* _types.h:46:33 */ // ct_rune_t
|
||||
type X__darwin_ct_rune_t = int32 /* _types.h:48:33 */ // ct_rune_t
|
||||
|
||||
// mbstate_t is an opaque object to keep conversion state, during multibyte
|
||||
// stream conversions. The content must not be referenced by user programs.
|
||||
type X__mbstate_t = struct {
|
||||
_ [0]uint64
|
||||
F__mbstate8 [128]int8
|
||||
} /* _types.h:55:3 */
|
||||
F__ccgo_pad1 [0]uint64
|
||||
F__mbstate8 [128]int8
|
||||
} /* _types.h:57:3 */
|
||||
|
||||
type X__darwin_mbstate_t = X__mbstate_t /* _types.h:57:33 */ // mbstate_t
|
||||
type X__darwin_mbstate_t = X__mbstate_t /* _types.h:59:33 */ // mbstate_t
|
||||
|
||||
type X__darwin_ptrdiff_t = int64 /* _types.h:60:33 */ // ptr1 - ptr2
|
||||
type X__darwin_ptrdiff_t = int64 /* _types.h:62:33 */ // ptr1 - ptr2
|
||||
|
||||
type X__darwin_size_t = uint64 /* _types.h:68:33 */ // sizeof()
|
||||
type X__darwin_size_t = uint64 /* _types.h:70:33 */ // sizeof()
|
||||
|
||||
type X__darwin_va_list = X__builtin_va_list /* _types.h:74:33 */ // va_list
|
||||
type X__darwin_va_list = X__builtin_va_list /* _types.h:76:33 */ // va_list
|
||||
|
||||
type X__darwin_wchar_t = int32 /* _types.h:80:33 */ // wchar_t
|
||||
type X__darwin_wchar_t = int32 /* _types.h:82:33 */ // wchar_t
|
||||
|
||||
type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:85:33 */ // rune_t
|
||||
type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:87:33 */ // rune_t
|
||||
|
||||
type X__darwin_wint_t = int32 /* _types.h:88:33 */ // wint_t
|
||||
type X__darwin_wint_t = int32 /* _types.h:90:33 */ // wint_t
|
||||
|
||||
type X__darwin_clock_t = uint64 /* _types.h:93:33 */ // clock()
|
||||
type X__darwin_socklen_t = X__uint32_t /* _types.h:94:33 */ // socklen_t (duh)
|
||||
type X__darwin_ssize_t = int64 /* _types.h:95:33 */ // byte count or error
|
||||
type X__darwin_time_t = int64 /* _types.h:96:33 */ // time()
|
||||
type X__darwin_clock_t = uint64 /* _types.h:95:33 */ // clock()
|
||||
type X__darwin_socklen_t = X__uint32_t /* _types.h:96:33 */ // socklen_t (duh)
|
||||
type X__darwin_ssize_t = int64 /* _types.h:97:33 */ // byte count or error
|
||||
type X__darwin_time_t = int64 /* _types.h:98:33 */ // time()
|
||||
|
||||
// Type definitions; takes common type definitions that must be used
|
||||
// in multiple header files due to [XSI], removes them from the system
|
||||
@@ -1391,7 +1424,7 @@ type Flock = struct {
|
||||
Fl_pid Pid_t
|
||||
Fl_type int16
|
||||
Fl_whence int16
|
||||
} /* fcntl.h:350:1 */
|
||||
} /* fcntl.h:361:1 */
|
||||
|
||||
// Copyright (c) 2003-2012 Apple Inc. All rights reserved.
|
||||
//
|
||||
@@ -1756,7 +1789,7 @@ type U_int32_t = uint32 /* _u_int32_t.h:30:33 */
|
||||
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
||||
type U_int64_t = uint64 /* _u_int64_t.h:30:33 */
|
||||
|
||||
type Register_t = Int64_t /* types.h:63:33 */
|
||||
type Register_t = Int64_t /* types.h:66:33 */
|
||||
|
||||
// Copyright (c) 2003-2012 Apple Inc. All rights reserved.
|
||||
//
|
||||
@@ -1836,19 +1869,20 @@ type Intptr_t = X__darwin_intptr_t /* _intptr_t.h:32:33 */
|
||||
// limitations under the License.
|
||||
//
|
||||
// @APPLE_OSREFERENCE_LICENSE_HEADER_END@
|
||||
type Uintptr_t = uint64 /* _uintptr_t.h:30:33 */
|
||||
|
||||
type Uintptr_t = uint64 /* _uintptr_t.h:34:33 */
|
||||
|
||||
// These types are used for reserving the largest possible size.
|
||||
type User_addr_t = U_int64_t /* types.h:74:33 */
|
||||
type User_size_t = U_int64_t /* types.h:75:33 */
|
||||
type User_ssize_t = Int64_t /* types.h:76:33 */
|
||||
type User_long_t = Int64_t /* types.h:77:33 */
|
||||
type User_ulong_t = U_int64_t /* types.h:78:33 */
|
||||
type User_time_t = Int64_t /* types.h:79:33 */
|
||||
type User_off_t = Int64_t /* types.h:80:33 */
|
||||
type User_addr_t = U_int64_t /* types.h:77:33 */
|
||||
type User_size_t = U_int64_t /* types.h:78:33 */
|
||||
type User_ssize_t = Int64_t /* types.h:79:33 */
|
||||
type User_long_t = Int64_t /* types.h:80:33 */
|
||||
type User_ulong_t = U_int64_t /* types.h:81:33 */
|
||||
type User_time_t = Int64_t /* types.h:82:33 */
|
||||
type User_off_t = Int64_t /* types.h:83:33 */
|
||||
|
||||
// This defines the size of syscall arguments after copying into the kernel:
|
||||
type Syscall_arg_t = U_int64_t /* types.h:101:33 */
|
||||
type Syscall_arg_t = U_int64_t /* types.h:104:33 */
|
||||
|
||||
type Timespec = struct {
|
||||
Ftv_sec X__darwin_time_t
|
||||
@@ -1869,16 +1903,16 @@ type Flocktimeout = struct {
|
||||
Ftv_sec X__darwin_time_t
|
||||
Ftv_nsec int64
|
||||
}
|
||||
} /* fcntl.h:365:1 */
|
||||
} /* fcntl.h:376:1 */
|
||||
|
||||
// advisory file read data type -
|
||||
// information passed by user to system
|
||||
|
||||
type Radvisory = struct {
|
||||
Fra_offset Off_t
|
||||
Fra_count int32
|
||||
_ [4]byte
|
||||
} /* fcntl.h:378:1 */
|
||||
Fra_offset Off_t
|
||||
Fra_count int32
|
||||
F__ccgo_pad1 [4]byte
|
||||
} /* fcntl.h:389:1 */
|
||||
|
||||
// detached code signatures data type -
|
||||
// information passed by user to system used by F_ADDSIGS and F_ADDFILESIGS.
|
||||
@@ -1891,23 +1925,23 @@ type Fsignatures = struct {
|
||||
Ffs_fsignatures_size Size_t
|
||||
Ffs_cdhash [20]int8
|
||||
Ffs_hash_type int32
|
||||
} /* fcntl.h:391: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:401:3 */
|
||||
type Fsignatures_t = Fsignatures /* fcntl.h:412:3 */
|
||||
|
||||
type Fsupplement = struct {
|
||||
Ffs_file_start Off_t
|
||||
Ffs_blob_start Off_t
|
||||
Ffs_blob_size Size_t
|
||||
Ffs_orig_fd int32
|
||||
_ [4]byte
|
||||
} /* fcntl.h:403:9 */
|
||||
F__ccgo_pad1 [4]byte
|
||||
} /* fcntl.h:414:9 */
|
||||
|
||||
type Fsupplement_t = Fsupplement /* fcntl.h:408: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
|
||||
@@ -1921,7 +1955,7 @@ type Fchecklv = struct {
|
||||
Flv_file_start Off_t
|
||||
Flv_error_message_size Size_t
|
||||
Flv_error_message uintptr
|
||||
} /* fcntl.h:422: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
|
||||
@@ -1931,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:426: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
|
||||
@@ -1942,14 +1976,14 @@ type Fgetsigsinfo = struct {
|
||||
Ffg_file_start Off_t
|
||||
Ffg_info_request int32
|
||||
Ffg_sig_is_platform int32
|
||||
} /* fcntl.h:436: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:440:3 */
|
||||
type Fgetsigsinfo_t = Fgetsigsinfo /* fcntl.h:451:3 */
|
||||
|
||||
// lock operations for flock(2)
|
||||
|
||||
@@ -1961,13 +1995,13 @@ type Fstore = struct {
|
||||
Ffst_offset Off_t
|
||||
Ffst_length Off_t
|
||||
Ffst_bytesalloc Off_t
|
||||
} /* fcntl.h:451:9 */
|
||||
} /* fcntl.h:462:9 */
|
||||
|
||||
// lock operations for flock(2)
|
||||
|
||||
// fstore_t type used by F_PREALLOCATE command
|
||||
|
||||
type Fstore_t = Fstore /* fcntl.h:457:3 */
|
||||
type Fstore_t = Fstore /* fcntl.h:468:3 */
|
||||
|
||||
// fpunchhole_t used by F_PUNCHHOLE
|
||||
type Fpunchhole = struct {
|
||||
@@ -1975,19 +2009,19 @@ type Fpunchhole = struct {
|
||||
Freserved uint32
|
||||
Ffp_offset Off_t
|
||||
Ffp_length Off_t
|
||||
} /* fcntl.h:460:9 */
|
||||
} /* fcntl.h:471:9 */
|
||||
|
||||
// fpunchhole_t used by F_PUNCHHOLE
|
||||
type Fpunchhole_t = Fpunchhole /* fcntl.h:465: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:468:9 */
|
||||
} /* fcntl.h:479:9 */
|
||||
|
||||
// factive_file_trim_t used by F_TRIM_ACTIVE_FILE
|
||||
type Ftrimactivefile_t = Ftrimactivefile /* fcntl.h:471:3 */
|
||||
type Ftrimactivefile_t = Ftrimactivefile /* fcntl.h:482:3 */
|
||||
|
||||
// fspecread_t used by F_SPECULATIVE_READ
|
||||
type Fspecread = struct {
|
||||
@@ -1995,10 +2029,10 @@ type Fspecread = struct {
|
||||
Freserved uint32
|
||||
Ffsr_offset Off_t
|
||||
Ffsr_length Off_t
|
||||
} /* fcntl.h:474:9 */
|
||||
} /* fcntl.h:485:9 */
|
||||
|
||||
// fspecread_t used by F_SPECULATIVE_READ
|
||||
type Fspecread_t = Fspecread /* fcntl.h:479:3 */
|
||||
type Fspecread_t = Fspecread /* fcntl.h:490:3 */
|
||||
|
||||
// fbootstraptransfer_t used by F_READBOOTSTRAP and F_WRITEBOOTSTRAP commands
|
||||
|
||||
@@ -2006,11 +2040,11 @@ type Fbootstraptransfer = struct {
|
||||
Ffbt_offset Off_t
|
||||
Ffbt_length Size_t
|
||||
Ffbt_buffer uintptr
|
||||
} /* fcntl.h:483:9 */
|
||||
} /* fcntl.h:494:9 */
|
||||
|
||||
// fbootstraptransfer_t used by F_READBOOTSTRAP and F_WRITEBOOTSTRAP commands
|
||||
|
||||
type Fbootstraptransfer_t = Fbootstraptransfer /* fcntl.h:487: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
|
||||
@@ -2034,13 +2068,13 @@ type Fbootstraptransfer_t = Fbootstraptransfer /* fcntl.h:487:3 */
|
||||
|
||||
type Log2phys = struct {
|
||||
Fl2p_flags uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fl2p_contigbytes Off_t
|
||||
Fl2p_devoffset Off_t
|
||||
} /* fcntl.h:513:1 */
|
||||
} /* fcntl.h:524:1 */
|
||||
|
||||
type Filesec_t = uintptr /* _filesec_t.h:31:25 */
|
||||
|
||||
type Filesec_property_t = uint32 /* fcntl.h:547:3 */
|
||||
type Filesec_property_t = uint32 /* fcntl.h:558:3 */
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
||||
+120
-115
@@ -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,108 @@ 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: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_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: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>:340:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
@@ -391,12 +395,15 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// Function should not be analyzed.
|
||||
|
||||
// Function or variable should not be sanitized, i.e. by AddressSanitizer.
|
||||
// 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
|
||||
//
|
||||
@@ -639,8 +646,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
|
||||
@@ -673,8 +680,8 @@ 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 {
|
||||
_ [0]uint64
|
||||
F__mbstate8 [128]int8
|
||||
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 */
|
||||
@@ -714,8 +721,6 @@ type Pid_t = X__pid_t /* fcntl.h:63:18 */
|
||||
|
||||
// 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
|
||||
@@ -748,14 +753,14 @@ type Pid_t = X__pid_t /* fcntl.h:63:18 */
|
||||
// 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
|
||||
_ [4]byte
|
||||
} /* fcntl.h:294:1 */
|
||||
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.
|
||||
@@ -765,6 +770,6 @@ type X__oflock = struct {
|
||||
Fl_pid Pid_t
|
||||
Fl_type int16
|
||||
Fl_whence int16
|
||||
} /* fcntl.h:308:1 */
|
||||
} /* fcntl.h:320:1 */
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
||||
+256
-147
@@ -111,13 +111,17 @@ const (
|
||||
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_ILP32 = 1
|
||||
X_MKNOD_VER = 1
|
||||
X_MKNOD_VER_LINUX = 1
|
||||
X_MKNOD_VER_SVR4 = 2
|
||||
@@ -148,7 +152,7 @@ type Wchar_t = int32 /* <builtin>:15:24 */
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -163,11 +167,11 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// POSIX Standard: 6.5 File Control Operations <fcntl.h>
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -182,7 +186,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// These are defined by the user (or the compiler)
|
||||
// to specify the desired environment:
|
||||
@@ -190,6 +194,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// __STRICT_ANSI__ ISO Standard C.
|
||||
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
|
||||
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
|
||||
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
|
||||
// __STDC_WANT_LIB_EXT2__
|
||||
// Extensions to ISO C99 from TR 27431-2:2010.
|
||||
// __STDC_WANT_IEC_60559_BFP_EXT__
|
||||
@@ -310,6 +315,8 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
|
||||
// define _DEFAULT_SOURCE.
|
||||
|
||||
// This is to enable the ISO C2X extension.
|
||||
|
||||
// This is to enable the ISO C11 extension.
|
||||
|
||||
// This is to enable the ISO C99 extension.
|
||||
@@ -332,9 +339,22 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// compatibility with various implementations of <cstdio>, this test
|
||||
// must consider only the value of __cplusplus when compiling C++.
|
||||
|
||||
// GNU formerly extended the scanf functions with modified format
|
||||
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
|
||||
// input using malloc. This extension conflicts with ISO C99, which
|
||||
// defines %a as a standalone format specifier that reads a floating-
|
||||
// point number; moreover, POSIX.1-2008 provides the same feature
|
||||
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
|
||||
//
|
||||
// We now follow C99 unless GNU extensions are active and the compiler
|
||||
// is specifically in C89 or C++98 mode (strict or not). For
|
||||
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
|
||||
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
|
||||
// old extension.
|
||||
|
||||
// Get definitions of __STDC_* predefined macros, if the compiler has
|
||||
// not preincluded this header automatically.
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -349,7 +369,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// This macro indicates that the installed library is the GNU C Library.
|
||||
// For historic reasons the value now is 6 and this will stay from now
|
||||
@@ -362,7 +382,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// these macros to test for features in specific releases.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// Copyright (C) 1992-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -377,7 +397,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// We are almost always included from features.h.
|
||||
|
||||
@@ -492,7 +512,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// semantics.
|
||||
//
|
||||
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
|
||||
// semantics, that can be checked fot by using the __GNUC_STDC_INLINE_ and
|
||||
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
|
||||
// __GNUC_GNU_INLINE__ macro definitions.
|
||||
|
||||
// GCC 4.3 and above allow passing all anonymous arguments of an
|
||||
@@ -513,10 +533,14 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// argument to strncpy and strncat, as the char array is not necessarily
|
||||
// a NUL-terminated string.
|
||||
|
||||
// Undefine (also defined in libc-symbols.h).
|
||||
// Copies attributes from the declaration or type referenced by
|
||||
// the argument.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// Properties of long double type. ldbl-96 version.
|
||||
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -531,7 +555,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// long double is distinct from double, so there is nothing to
|
||||
// define here.
|
||||
@@ -572,7 +596,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// Get __mode_t, __dev_t and __off_t .
|
||||
// bits/types.h -- definitions of __*_t types underlying *_t types.
|
||||
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -587,11 +611,11 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Never include this file directly; use <sys/types.h> instead.
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -606,43 +630,63 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// Bit size of the time_t type at glibc build time, x86-64 and x32 case.
|
||||
// Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// For others, time size is word size.
|
||||
|
||||
// Convenience types.
|
||||
type X__u_char = uint8 /* types.h:30:23 */
|
||||
type X__u_short = uint16 /* types.h:31:28 */
|
||||
type X__u_int = uint32 /* types.h:32:22 */
|
||||
type X__u_long = uint32 /* types.h:33:27 */
|
||||
type X__u_char = uint8 /* types.h:31:23 */
|
||||
type X__u_short = uint16 /* types.h:32:28 */
|
||||
type X__u_int = uint32 /* types.h:33:22 */
|
||||
type X__u_long = uint32 /* types.h:34:27 */
|
||||
|
||||
// Fixed-size types, underlying types depend on word size and compiler.
|
||||
type X__int8_t = int8 /* types.h:36:21 */
|
||||
type X__uint8_t = uint8 /* types.h:37:23 */
|
||||
type X__int16_t = int16 /* types.h:38:26 */
|
||||
type X__uint16_t = uint16 /* types.h:39:28 */
|
||||
type X__int32_t = int32 /* types.h:40:20 */
|
||||
type X__uint32_t = uint32 /* types.h:41:22 */
|
||||
type X__int64_t = int64 /* types.h:46:44 */
|
||||
type X__uint64_t = uint64 /* types.h:47:46 */
|
||||
type X__int8_t = int8 /* types.h:37:21 */
|
||||
type X__uint8_t = uint8 /* types.h:38:23 */
|
||||
type X__int16_t = int16 /* types.h:39:26 */
|
||||
type X__uint16_t = uint16 /* types.h:40:28 */
|
||||
type X__int32_t = int32 /* types.h:41:20 */
|
||||
type X__uint32_t = uint32 /* types.h:42:22 */
|
||||
type X__int64_t = int64 /* types.h:47:44 */
|
||||
type X__uint64_t = uint64 /* types.h:48:46 */
|
||||
|
||||
// Smallest types with at least a given width.
|
||||
type X__int_least8_t = X__int8_t /* types.h:51:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:52:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:53:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:54:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:55:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:56:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:57:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:58:20 */
|
||||
type X__int_least8_t = X__int8_t /* types.h:52:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:54:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:56:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:58:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
|
||||
|
||||
// quad_t is also 64 bits.
|
||||
type X__quad_t = int64 /* types.h:65:37 */
|
||||
type X__u_quad_t = uint64 /* types.h:66:46 */
|
||||
type X__quad_t = int64 /* types.h:66:37 */
|
||||
type X__u_quad_t = uint64 /* types.h:67:46 */
|
||||
|
||||
// Largest integral types.
|
||||
type X__intmax_t = int64 /* types.h:74:37 */
|
||||
type X__uintmax_t = uint64 /* types.h:75:46 */
|
||||
type X__intmax_t = int64 /* types.h:75:37 */
|
||||
type X__uintmax_t = uint64 /* types.h:76:46 */
|
||||
|
||||
// The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
|
||||
// macros for each of the OS types we define below. The definitions
|
||||
@@ -654,7 +698,7 @@ type X__uintmax_t = uint64 /* types.h:75:46 */
|
||||
// 32 -- "natural" 32-bit type (always int)
|
||||
// 64 -- "natural" 64-bit type (long or long long)
|
||||
// LONG32 -- 32-bit type, traditionally long
|
||||
// QUAD -- 64-bit type, always long long
|
||||
// QUAD -- 64-bit type, traditionally long long
|
||||
// WORD -- natural type of __WORDSIZE bits (int or long)
|
||||
// LONGWORD -- type of __WORDSIZE bits, traditionally long
|
||||
//
|
||||
@@ -676,7 +720,7 @@ type X__uintmax_t = uint64 /* types.h:75:46 */
|
||||
// We want __extension__ before typedef's that use nonstandard base types
|
||||
// such as `long long' in C89 mode.
|
||||
// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version.
|
||||
// Copyright (C) 2012-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -691,7 +735,7 @@ type X__uintmax_t = uint64 /* types.h:75:46 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// See <bits/types.h> for the meaning of these macros. This file exists so
|
||||
// that <bits/types.h> need not vary across different GNU platforms.
|
||||
@@ -700,81 +744,8 @@ type X__uintmax_t = uint64 /* types.h:75:46 */
|
||||
|
||||
// Number of descriptors that can fit in an `fd_set'.
|
||||
|
||||
type X__dev_t = X__u_quad_t /* types.h:143:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:144:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:145:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint32 /* types.h:146:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = X__u_quad_t /* types.h:147:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:148:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint32 /* types.h:149:27 */ // Type of file link counts.
|
||||
type X__off_t = int32 /* types.h:150:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = X__quad_t /* types.h:151:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:152:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:153:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int32 /* types.h:154:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint32 /* types.h:155:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = X__u_quad_t /* types.h:156:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:157:24 */ // General type for IDs.
|
||||
type X__time_t = int32 /* types.h:158:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:159:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int32 /* types.h:160:31 */ // Signed count of microseconds.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:162:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:163:25 */ // Type of an IPC key.
|
||||
|
||||
// Clock ID used in clock and timer functions.
|
||||
type X__clockid_t = int32 /* types.h:166:29 */
|
||||
|
||||
// Timer ID returned by `timer_create'.
|
||||
type X__timer_t = uintptr /* types.h:169:12 */
|
||||
|
||||
// Type to represent block size.
|
||||
type X__blksize_t = int32 /* types.h:172:29 */
|
||||
|
||||
// Types from the Large File Support interface.
|
||||
|
||||
// Type to count number of disk blocks.
|
||||
type X__blkcnt_t = int32 /* types.h:177:28 */
|
||||
type X__blkcnt64_t = X__quad_t /* types.h:178:30 */
|
||||
|
||||
// Type to count file system blocks.
|
||||
type X__fsblkcnt_t = uint32 /* types.h:181:30 */
|
||||
type X__fsblkcnt64_t = X__u_quad_t /* types.h:182:32 */
|
||||
|
||||
// Type to count file system nodes.
|
||||
type X__fsfilcnt_t = uint32 /* types.h:185:30 */
|
||||
type X__fsfilcnt64_t = X__u_quad_t /* types.h:186:32 */
|
||||
|
||||
// Type of miscellaneous file system fields.
|
||||
type X__fsword_t = int32 /* types.h:189:28 */
|
||||
|
||||
type X__ssize_t = int32 /* types.h:191:27 */ // Type of a byte count, or error.
|
||||
|
||||
// Signed long type used in system calls.
|
||||
type X__syscall_slong_t = int32 /* types.h:194:33 */
|
||||
// Unsigned long type used in system calls.
|
||||
type X__syscall_ulong_t = uint32 /* types.h:196:33 */
|
||||
|
||||
// These few don't really vary by system, they always correspond
|
||||
// to one of the other defined types.
|
||||
type X__loff_t = X__off64_t /* types.h:200:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:201:14 */
|
||||
|
||||
// Duplicates info from stdint.h but this is used in unistd.h.
|
||||
type X__intptr_t = int32 /* types.h:204:25 */
|
||||
|
||||
// Duplicate info from sys/socket.h.
|
||||
type X__socklen_t = uint32 /* types.h:207:23 */
|
||||
|
||||
// C99: An integer type that can be accessed as an atomic entity,
|
||||
// even in the presence of asynchronous interrupts.
|
||||
// It is not currently necessary for this to be machine-specific.
|
||||
type X__sig_atomic_t = int32 /* types.h:212:13 */
|
||||
|
||||
// Get the definitions of O_*, F_*, FD_*: all the
|
||||
// numbers and flag bits for `open', `fcntl', et al.
|
||||
// O_*, F_*, FD_* bit values for Linux/x86.
|
||||
// Copyright (C) 2001-2018 Free Software Foundation, Inc.
|
||||
// bits/time64.h -- underlying types for __time64_t. Generic version.
|
||||
// Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -789,7 +760,110 @@ type X__sig_atomic_t = int32 /* types.h:212:13 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Define __TIME64_T_TYPE so that it is always a 64-bit type.
|
||||
|
||||
// Define a 64-bit time type alongsize the 32-bit one.
|
||||
|
||||
type X__dev_t = X__uint64_t /* types.h:145:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint32 /* types.h:148:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = X__uint64_t /* types.h:149:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts.
|
||||
type X__off_t = int32 /* types.h:152:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = X__int64_t /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int32 /* types.h:156:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint32 /* types.h:157:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = X__uint64_t /* types.h:158:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
|
||||
type X__time_t = int32 /* types.h:160:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int32 /* types.h:162:31 */ // Signed count of microseconds.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
|
||||
|
||||
// Clock ID used in clock and timer functions.
|
||||
type X__clockid_t = int32 /* types.h:168:29 */
|
||||
|
||||
// Timer ID returned by `timer_create'.
|
||||
type X__timer_t = uintptr /* types.h:171:12 */
|
||||
|
||||
// Type to represent block size.
|
||||
type X__blksize_t = int32 /* types.h:174:29 */
|
||||
|
||||
// Types from the Large File Support interface.
|
||||
|
||||
// Type to count number of disk blocks.
|
||||
type X__blkcnt_t = int32 /* types.h:179:28 */
|
||||
type X__blkcnt64_t = X__int64_t /* types.h:180:30 */
|
||||
|
||||
// Type to count file system blocks.
|
||||
type X__fsblkcnt_t = uint32 /* types.h:183:30 */
|
||||
type X__fsblkcnt64_t = X__uint64_t /* types.h:184:32 */
|
||||
|
||||
// Type to count file system nodes.
|
||||
type X__fsfilcnt_t = uint32 /* types.h:187:30 */
|
||||
type X__fsfilcnt64_t = X__uint64_t /* types.h:188:32 */
|
||||
|
||||
// Type of miscellaneous file system fields.
|
||||
type X__fsword_t = int32 /* types.h:191:28 */
|
||||
|
||||
type X__ssize_t = int32 /* types.h:193:27 */ // Type of a byte count, or error.
|
||||
|
||||
// Signed long type used in system calls.
|
||||
type X__syscall_slong_t = int32 /* types.h:196:33 */
|
||||
// Unsigned long type used in system calls.
|
||||
type X__syscall_ulong_t = uint32 /* types.h:198:33 */
|
||||
|
||||
// These few don't really vary by system, they always correspond
|
||||
//
|
||||
// to one of the other defined types.
|
||||
type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:203:14 */
|
||||
|
||||
// Duplicates info from stdint.h but this is used in unistd.h.
|
||||
type X__intptr_t = int32 /* types.h:206:25 */
|
||||
|
||||
// Duplicate info from sys/socket.h.
|
||||
type X__socklen_t = uint32 /* types.h:209:23 */
|
||||
|
||||
// C99: An integer type that can be accessed as an atomic entity,
|
||||
//
|
||||
// even in the presence of asynchronous interrupts.
|
||||
// It is not currently necessary for this to be machine-specific.
|
||||
type X__sig_atomic_t = int32 /* types.h:214:13 */
|
||||
|
||||
// Seconds since the Epoch, visible to user code when time_t is too
|
||||
//
|
||||
// narrow only for consistency with the old way of widening too-narrow
|
||||
// types. User code should never use __time64_t.
|
||||
type X__time64_t = X__int64_t /* types.h:222:28 */
|
||||
|
||||
// Get the definitions of O_*, F_*, FD_*: all the
|
||||
// numbers and flag bits for `open', `fcntl', et al.
|
||||
// O_*, F_*, FD_* bit values for Linux/x86.
|
||||
// Copyright (C) 2001-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
type Flock = struct {
|
||||
Fl_type int16
|
||||
@@ -801,7 +875,7 @@ type Flock = struct {
|
||||
|
||||
// Include generic Linux declarations.
|
||||
// O_*, F_*, FD_* bit values for Linux.
|
||||
// Copyright (C) 2001-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2001-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -816,7 +890,7 @@ type Flock = struct {
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// This file contains shared definitions between Linux architectures
|
||||
// and is included by <bits/fcntl.h> to declare them. The various
|
||||
@@ -870,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 */
|
||||
@@ -882,7 +957,7 @@ type Pid_t = X__pid_t /* fcntl.h:69:17 */
|
||||
// NB: Include guard matches what <linux/time.h> uses.
|
||||
|
||||
// bits/types.h -- definitions of __*_t types underlying *_t types.
|
||||
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -897,18 +972,12 @@ type Pid_t = X__pid_t /* fcntl.h:69:17 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Never include this file directly; use <sys/types.h> instead.
|
||||
|
||||
// POSIX.1b structure for a time value. This is like a `struct timeval' but
|
||||
// has nanoseconds instead of microseconds.
|
||||
type Timespec = struct {
|
||||
Ftv_sec X__time_t
|
||||
Ftv_nsec X__syscall_slong_t
|
||||
} /* struct_timespec.h:9:1 */
|
||||
|
||||
// Copyright (C) 1999-2018 Free Software Foundation, Inc.
|
||||
// Endian macros for string.h functions
|
||||
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -925,26 +994,66 @@ type Timespec = struct {
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// Definitions for byte order, according to significance of bytes,
|
||||
// from low addresses to high addresses. The value is what you get by
|
||||
// putting '4' in the most significant byte, '3' in the second most
|
||||
// significant byte, '2' in the second least significant byte, and '1'
|
||||
// in the least significant byte, and then writing down one digit for
|
||||
// each byte, starting with the byte at the lowest address at the left,
|
||||
// and proceeding to the byte with the highest address at the right.
|
||||
|
||||
// This file defines `__BYTE_ORDER' for the particular machine.
|
||||
|
||||
// i386/x86_64 are little-endian.
|
||||
|
||||
// Some machines may need to use a different endianness for floating point
|
||||
// values.
|
||||
|
||||
// POSIX.1b structure for a time value. This is like a `struct timeval' but
|
||||
//
|
||||
// has nanoseconds instead of microseconds.
|
||||
type Timespec = struct {
|
||||
Ftv_sec X__time_t
|
||||
Ftv_nsec X__syscall_slong_t
|
||||
} /* struct_timespec.h:10:1 */
|
||||
|
||||
// Copyright (C) 1999-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Versions of the `struct stat' data structure.
|
||||
|
||||
// i386 versions of the `xmknod' interface.
|
||||
|
||||
type Stat = struct {
|
||||
Fst_dev X__dev_t
|
||||
F__pad1 uint16
|
||||
_ [2]byte
|
||||
F__st_ino X__ino_t
|
||||
Fst_mode X__mode_t
|
||||
Fst_nlink X__nlink_t
|
||||
Fst_uid X__uid_t
|
||||
Fst_gid X__gid_t
|
||||
Fst_rdev X__dev_t
|
||||
F__pad2 uint16
|
||||
_ [2]byte
|
||||
Fst_size X__off64_t
|
||||
Fst_blksize X__blksize_t
|
||||
Fst_blocks X__blkcnt64_t
|
||||
Fst_atim struct {
|
||||
Fst_dev X__dev_t
|
||||
F__pad1 uint16
|
||||
F__ccgo_pad1 [2]byte
|
||||
F__st_ino X__ino_t
|
||||
Fst_mode X__mode_t
|
||||
Fst_nlink X__nlink_t
|
||||
Fst_uid X__uid_t
|
||||
Fst_gid X__gid_t
|
||||
Fst_rdev X__dev_t
|
||||
F__pad2 uint16
|
||||
F__ccgo_pad2 [2]byte
|
||||
Fst_size X__off64_t
|
||||
Fst_blksize X__blksize_t
|
||||
Fst_blocks X__blkcnt64_t
|
||||
Fst_atim struct {
|
||||
Ftv_sec X__time_t
|
||||
Ftv_nsec X__syscall_slong_t
|
||||
}
|
||||
|
||||
+332
-225
@@ -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,124 +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_STAT_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 */
|
||||
@@ -153,7 +156,7 @@ type X__uint128_t = struct {
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -168,11 +171,11 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// POSIX Standard: 6.5 File Control Operations <fcntl.h>
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -187,7 +190,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// These are defined by the user (or the compiler)
|
||||
// to specify the desired environment:
|
||||
@@ -195,6 +198,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// __STRICT_ANSI__ ISO Standard C.
|
||||
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
|
||||
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
|
||||
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
|
||||
// __STDC_WANT_LIB_EXT2__
|
||||
// Extensions to ISO C99 from TR 27431-2:2010.
|
||||
// __STDC_WANT_IEC_60559_BFP_EXT__
|
||||
@@ -315,6 +319,8 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
|
||||
// define _DEFAULT_SOURCE.
|
||||
|
||||
// This is to enable the ISO C2X extension.
|
||||
|
||||
// This is to enable the ISO C11 extension.
|
||||
|
||||
// This is to enable the ISO C99 extension.
|
||||
@@ -337,9 +343,22 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// compatibility with various implementations of <cstdio>, this test
|
||||
// must consider only the value of __cplusplus when compiling C++.
|
||||
|
||||
// GNU formerly extended the scanf functions with modified format
|
||||
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
|
||||
// input using malloc. This extension conflicts with ISO C99, which
|
||||
// defines %a as a standalone format specifier that reads a floating-
|
||||
// point number; moreover, POSIX.1-2008 provides the same feature
|
||||
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
|
||||
//
|
||||
// We now follow C99 unless GNU extensions are active and the compiler
|
||||
// is specifically in C89 or C++98 mode (strict or not). For
|
||||
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
|
||||
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
|
||||
// old extension.
|
||||
|
||||
// Get definitions of __STDC_* predefined macros, if the compiler has
|
||||
// not preincluded this header automatically.
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -354,7 +373,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// This macro indicates that the installed library is the GNU C Library.
|
||||
// For historic reasons the value now is 6 and this will stay from now
|
||||
@@ -367,7 +386,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// these macros to test for features in specific releases.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// Copyright (C) 1992-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -382,7 +401,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// We are almost always included from features.h.
|
||||
|
||||
@@ -497,7 +516,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// semantics.
|
||||
//
|
||||
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
|
||||
// semantics, that can be checked fot by using the __GNUC_STDC_INLINE_ and
|
||||
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
|
||||
// __GNUC_GNU_INLINE__ macro definitions.
|
||||
|
||||
// GCC 4.3 and above allow passing all anonymous arguments of an
|
||||
@@ -518,11 +537,15 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// argument to strncpy and strncat, as the char array is not necessarily
|
||||
// a NUL-terminated string.
|
||||
|
||||
// Undefine (also defined in libc-symbols.h).
|
||||
// Copies attributes from the declaration or type referenced by
|
||||
// the argument.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// Both x86-64 and x32 use the 64-bit system call interface.
|
||||
// Properties of long double type. ldbl-96 version.
|
||||
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -537,7 +560,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// long double is distinct from double, so there is nothing to
|
||||
// define here.
|
||||
@@ -578,7 +601,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// Get __mode_t, __dev_t and __off_t .
|
||||
// bits/types.h -- definitions of __*_t types underlying *_t types.
|
||||
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -593,11 +616,11 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Never include this file directly; use <sys/types.h> instead.
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -612,45 +635,64 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// Both x86-64 and x32 use the 64-bit system call interface.
|
||||
// Bit size of the time_t type at glibc build time, x86-64 and x32 case.
|
||||
// Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// For others, time size is word size.
|
||||
|
||||
// Convenience types.
|
||||
type X__u_char = uint8 /* types.h:30:23 */
|
||||
type X__u_short = uint16 /* types.h:31:28 */
|
||||
type X__u_int = uint32 /* types.h:32:22 */
|
||||
type X__u_long = uint64 /* types.h:33:27 */
|
||||
type X__u_char = uint8 /* types.h:31:23 */
|
||||
type X__u_short = uint16 /* types.h:32:28 */
|
||||
type X__u_int = uint32 /* types.h:33:22 */
|
||||
type X__u_long = uint64 /* types.h:34:27 */
|
||||
|
||||
// Fixed-size types, underlying types depend on word size and compiler.
|
||||
type X__int8_t = int8 /* types.h:36:21 */
|
||||
type X__uint8_t = uint8 /* types.h:37:23 */
|
||||
type X__int16_t = int16 /* types.h:38:26 */
|
||||
type X__uint16_t = uint16 /* types.h:39:28 */
|
||||
type X__int32_t = int32 /* types.h:40:20 */
|
||||
type X__uint32_t = uint32 /* types.h:41:22 */
|
||||
type X__int64_t = int64 /* types.h:43:25 */
|
||||
type X__uint64_t = uint64 /* types.h:44:27 */
|
||||
type X__int8_t = int8 /* types.h:37:21 */
|
||||
type X__uint8_t = uint8 /* types.h:38:23 */
|
||||
type X__int16_t = int16 /* types.h:39:26 */
|
||||
type X__uint16_t = uint16 /* types.h:40:28 */
|
||||
type X__int32_t = int32 /* types.h:41:20 */
|
||||
type X__uint32_t = uint32 /* types.h:42:22 */
|
||||
type X__int64_t = int64 /* types.h:44:25 */
|
||||
type X__uint64_t = uint64 /* types.h:45:27 */
|
||||
|
||||
// Smallest types with at least a given width.
|
||||
type X__int_least8_t = X__int8_t /* types.h:51:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:52:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:53:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:54:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:55:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:56:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:57:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:58:20 */
|
||||
type X__int_least8_t = X__int8_t /* types.h:52:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:54:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:56:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:58:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
|
||||
|
||||
// quad_t is also 64 bits.
|
||||
type X__quad_t = int64 /* types.h:62:18 */
|
||||
type X__u_quad_t = uint64 /* types.h:63:27 */
|
||||
type X__quad_t = int64 /* types.h:63:18 */
|
||||
type X__u_quad_t = uint64 /* types.h:64:27 */
|
||||
|
||||
// Largest integral types.
|
||||
type X__intmax_t = int64 /* types.h:71:18 */
|
||||
type X__uintmax_t = uint64 /* types.h:72:27 */
|
||||
type X__intmax_t = int64 /* types.h:72:18 */
|
||||
type X__uintmax_t = uint64 /* types.h:73:27 */
|
||||
|
||||
// The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
|
||||
// macros for each of the OS types we define below. The definitions
|
||||
@@ -662,7 +704,7 @@ type X__uintmax_t = uint64 /* types.h:72:27 */
|
||||
// 32 -- "natural" 32-bit type (always int)
|
||||
// 64 -- "natural" 64-bit type (long or long long)
|
||||
// LONG32 -- 32-bit type, traditionally long
|
||||
// QUAD -- 64-bit type, always long long
|
||||
// QUAD -- 64-bit type, traditionally long long
|
||||
// WORD -- natural type of __WORDSIZE bits (int or long)
|
||||
// LONGWORD -- type of __WORDSIZE bits, traditionally long
|
||||
//
|
||||
@@ -683,7 +725,7 @@ type X__uintmax_t = uint64 /* types.h:72:27 */
|
||||
|
||||
// No need to mark the typedef with __extension__.
|
||||
// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version.
|
||||
// Copyright (C) 2012-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -698,7 +740,7 @@ type X__uintmax_t = uint64 /* types.h:72:27 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// See <bits/types.h> for the meaning of these macros. This file exists so
|
||||
// that <bits/types.h> need not vary across different GNU platforms.
|
||||
@@ -713,83 +755,113 @@ type X__uintmax_t = uint64 /* types.h:72:27 */
|
||||
|
||||
// And for __rlim_t and __rlim64_t.
|
||||
|
||||
// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
|
||||
|
||||
// Number of descriptors that can fit in an `fd_set'.
|
||||
|
||||
type X__dev_t = uint64 /* types.h:143:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:144:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:145:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint64 /* types.h:146:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = uint64 /* types.h:147:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:148:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint64 /* types.h:149:27 */ // Type of file link counts.
|
||||
type X__off_t = int64 /* types.h:150:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = int64 /* types.h:151:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:152:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:153:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int64 /* types.h:154:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint64 /* types.h:155:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = uint64 /* types.h:156:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:157:24 */ // General type for IDs.
|
||||
type X__time_t = int64 /* types.h:158:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:159:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int64 /* types.h:160:31 */ // Signed count of microseconds.
|
||||
// bits/time64.h -- underlying types for __time64_t. Generic version.
|
||||
// Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:162:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:163:25 */ // Type of an IPC key.
|
||||
// Define __TIME64_T_TYPE so that it is always a 64-bit type.
|
||||
|
||||
// If we already have 64-bit time type then use it.
|
||||
|
||||
type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts.
|
||||
type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
|
||||
type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
|
||||
|
||||
// Clock ID used in clock and timer functions.
|
||||
type X__clockid_t = int32 /* types.h:166:29 */
|
||||
type X__clockid_t = int32 /* types.h:168:29 */
|
||||
|
||||
// Timer ID returned by `timer_create'.
|
||||
type X__timer_t = uintptr /* types.h:169:12 */
|
||||
type X__timer_t = uintptr /* types.h:171:12 */
|
||||
|
||||
// Type to represent block size.
|
||||
type X__blksize_t = int64 /* types.h:172:29 */
|
||||
type X__blksize_t = int64 /* types.h:174:29 */
|
||||
|
||||
// Types from the Large File Support interface.
|
||||
|
||||
// Type to count number of disk blocks.
|
||||
type X__blkcnt_t = int64 /* types.h:177:28 */
|
||||
type X__blkcnt64_t = int64 /* types.h:178:30 */
|
||||
type X__blkcnt_t = int64 /* types.h:179:28 */
|
||||
type X__blkcnt64_t = int64 /* types.h:180:30 */
|
||||
|
||||
// Type to count file system blocks.
|
||||
type X__fsblkcnt_t = uint64 /* types.h:181:30 */
|
||||
type X__fsblkcnt64_t = uint64 /* types.h:182:32 */
|
||||
type X__fsblkcnt_t = uint64 /* types.h:183:30 */
|
||||
type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
|
||||
|
||||
// Type to count file system nodes.
|
||||
type X__fsfilcnt_t = uint64 /* types.h:185:30 */
|
||||
type X__fsfilcnt64_t = uint64 /* types.h:186:32 */
|
||||
type X__fsfilcnt_t = uint64 /* types.h:187:30 */
|
||||
type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
|
||||
|
||||
// Type of miscellaneous file system fields.
|
||||
type X__fsword_t = int64 /* types.h:189:28 */
|
||||
type X__fsword_t = int64 /* types.h:191:28 */
|
||||
|
||||
type X__ssize_t = int64 /* types.h:191:27 */ // Type of a byte count, or error.
|
||||
type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
|
||||
|
||||
// Signed long type used in system calls.
|
||||
type X__syscall_slong_t = int64 /* types.h:194:33 */
|
||||
type X__syscall_slong_t = int64 /* types.h:196:33 */
|
||||
// Unsigned long type used in system calls.
|
||||
type X__syscall_ulong_t = uint64 /* types.h: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.
|
||||
type X__loff_t = X__off64_t /* types.h:200:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:201:14 */
|
||||
//
|
||||
// to one of the other defined types.
|
||||
type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:203:14 */
|
||||
|
||||
// Duplicates info from stdint.h but this is used in unistd.h.
|
||||
type X__intptr_t = int64 /* types.h:204:25 */
|
||||
type X__intptr_t = int64 /* types.h:206:25 */
|
||||
|
||||
// Duplicate info from sys/socket.h.
|
||||
type X__socklen_t = uint32 /* types.h:207:23 */
|
||||
type X__socklen_t = uint32 /* types.h:209:23 */
|
||||
|
||||
// C99: An integer type that can be accessed as an atomic entity,
|
||||
// even in the presence of asynchronous interrupts.
|
||||
// It is not currently necessary for this to be machine-specific.
|
||||
type X__sig_atomic_t = int32 /* types.h:212:13 */
|
||||
//
|
||||
// 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.
|
||||
|
||||
// Get the definitions of O_*, F_*, FD_*: all the
|
||||
// numbers and flag bits for `open', `fcntl', et al.
|
||||
// O_*, F_*, FD_* bit values for Linux/x86.
|
||||
// Copyright (C) 2001-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2001-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -804,23 +876,23 @@ type X__sig_atomic_t = int32 /* types.h:212:13 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Not necessary, we always have 64-bit offsets.
|
||||
|
||||
type Flock = struct {
|
||||
Fl_type int16
|
||||
Fl_whence int16
|
||||
_ [4]byte
|
||||
Fl_start X__off64_t
|
||||
Fl_len X__off64_t
|
||||
Fl_pid X__pid_t
|
||||
_ [4]byte
|
||||
Fl_type int16
|
||||
Fl_whence int16
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fl_start X__off64_t
|
||||
Fl_len X__off64_t
|
||||
Fl_pid X__pid_t
|
||||
F__ccgo_pad2 [4]byte
|
||||
} /* fcntl.h:35:1 */
|
||||
|
||||
// Include generic Linux declarations.
|
||||
// O_*, F_*, FD_* bit values for Linux.
|
||||
// Copyright (C) 2001-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2001-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -835,7 +907,7 @@ type Flock = struct {
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// This file contains shared definitions between Linux architectures
|
||||
// and is included by <bits/fcntl.h> to declare them. The various
|
||||
@@ -889,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 */
|
||||
@@ -901,7 +974,7 @@ type Pid_t = X__pid_t /* fcntl.h:69:17 */
|
||||
// NB: Include guard matches what <linux/time.h> uses.
|
||||
|
||||
// bits/types.h -- definitions of __*_t types underlying *_t types.
|
||||
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -916,18 +989,12 @@ type Pid_t = X__pid_t /* fcntl.h:69:17 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Never include this file directly; use <sys/types.h> instead.
|
||||
|
||||
// POSIX.1b structure for a time value. This is like a `struct timeval' but
|
||||
// has nanoseconds instead of microseconds.
|
||||
type Timespec = struct {
|
||||
Ftv_sec X__time_t
|
||||
Ftv_nsec X__syscall_slong_t
|
||||
} /* struct_timespec.h:9:1 */
|
||||
|
||||
// Copyright (C) 1999-2018 Free Software Foundation, Inc.
|
||||
// Endian macros for string.h functions
|
||||
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -944,6 +1011,46 @@ type Timespec = struct {
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// Definitions for byte order, according to significance of bytes,
|
||||
// from low addresses to high addresses. The value is what you get by
|
||||
// putting '4' in the most significant byte, '3' in the second most
|
||||
// significant byte, '2' in the second least significant byte, and '1'
|
||||
// in the least significant byte, and then writing down one digit for
|
||||
// each byte, starting with the byte at the lowest address at the left,
|
||||
// and proceeding to the byte with the highest address at the right.
|
||||
|
||||
// This file defines `__BYTE_ORDER' for the particular machine.
|
||||
|
||||
// i386/x86_64 are little-endian.
|
||||
|
||||
// Some machines may need to use a different endianness for floating point
|
||||
// values.
|
||||
|
||||
// POSIX.1b structure for a time value. This is like a `struct timeval' but
|
||||
//
|
||||
// has nanoseconds instead of microseconds.
|
||||
type Timespec = struct {
|
||||
Ftv_sec X__time_t
|
||||
Ftv_nsec X__syscall_slong_t
|
||||
} /* struct_timespec.h:10:1 */
|
||||
|
||||
// Copyright (C) 1999-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Versions of the `struct stat' data structure.
|
||||
|
||||
// x86-64 versions of the `xmknod' interface.
|
||||
|
||||
+252
-127
@@ -111,7 +111,10 @@ const (
|
||||
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
|
||||
@@ -147,7 +150,7 @@ type Wchar_t = uint32 /* <builtin>:15:24 */
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -162,11 +165,11 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// POSIX Standard: 6.5 File Control Operations <fcntl.h>
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -181,7 +184,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// These are defined by the user (or the compiler)
|
||||
// to specify the desired environment:
|
||||
@@ -189,6 +192,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// __STRICT_ANSI__ ISO Standard C.
|
||||
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
|
||||
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
|
||||
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
|
||||
// __STDC_WANT_LIB_EXT2__
|
||||
// Extensions to ISO C99 from TR 27431-2:2010.
|
||||
// __STDC_WANT_IEC_60559_BFP_EXT__
|
||||
@@ -309,6 +313,8 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
|
||||
// define _DEFAULT_SOURCE.
|
||||
|
||||
// This is to enable the ISO C2X extension.
|
||||
|
||||
// This is to enable the ISO C11 extension.
|
||||
|
||||
// This is to enable the ISO C99 extension.
|
||||
@@ -331,9 +337,22 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// compatibility with various implementations of <cstdio>, this test
|
||||
// must consider only the value of __cplusplus when compiling C++.
|
||||
|
||||
// GNU formerly extended the scanf functions with modified format
|
||||
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
|
||||
// input using malloc. This extension conflicts with ISO C99, which
|
||||
// defines %a as a standalone format specifier that reads a floating-
|
||||
// point number; moreover, POSIX.1-2008 provides the same feature
|
||||
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
|
||||
//
|
||||
// We now follow C99 unless GNU extensions are active and the compiler
|
||||
// is specifically in C89 or C++98 mode (strict or not). For
|
||||
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
|
||||
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
|
||||
// old extension.
|
||||
|
||||
// Get definitions of __STDC_* predefined macros, if the compiler has
|
||||
// not preincluded this header automatically.
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -348,7 +367,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// This macro indicates that the installed library is the GNU C Library.
|
||||
// For historic reasons the value now is 6 and this will stay from now
|
||||
@@ -361,7 +380,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// these macros to test for features in specific releases.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// Copyright (C) 1992-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -376,7 +395,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// We are almost always included from features.h.
|
||||
|
||||
@@ -491,7 +510,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// semantics.
|
||||
//
|
||||
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
|
||||
// semantics, that can be checked fot by using the __GNUC_STDC_INLINE_ and
|
||||
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
|
||||
// __GNUC_GNU_INLINE__ macro definitions.
|
||||
|
||||
// GCC 4.3 and above allow passing all anonymous arguments of an
|
||||
@@ -512,7 +531,11 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// argument to strncpy and strncat, as the char array is not necessarily
|
||||
// a NUL-terminated string.
|
||||
|
||||
// Copyright (C) 1999-2018 Free Software Foundation, Inc.
|
||||
// Undefine (also defined in libc-symbols.h).
|
||||
// Copies attributes from the declaration or type referenced by
|
||||
// the argument.
|
||||
|
||||
// Copyright (C) 1999-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -527,10 +550,10 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Properties of long double type.
|
||||
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -545,7 +568,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// This header is included by <sys/cdefs.h>.
|
||||
//
|
||||
@@ -602,7 +625,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// Get __mode_t, __dev_t and __off_t .
|
||||
// bits/types.h -- definitions of __*_t types underlying *_t types.
|
||||
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -617,11 +640,11 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Never include this file directly; use <sys/types.h> instead.
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -636,9 +659,9 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Copyright (C) 1999-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1999-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -653,41 +676,78 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Bit size of the time_t type at glibc build time, general case.
|
||||
// Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Copyright (C) 1999-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Size in bits of the 'time_t' type of the default ABI.
|
||||
|
||||
// Convenience types.
|
||||
type X__u_char = uint8 /* types.h:30:23 */
|
||||
type X__u_short = uint16 /* types.h:31:28 */
|
||||
type X__u_int = uint32 /* types.h:32:22 */
|
||||
type X__u_long = uint32 /* types.h:33:27 */
|
||||
type X__u_char = uint8 /* types.h:31:23 */
|
||||
type X__u_short = uint16 /* types.h:32:28 */
|
||||
type X__u_int = uint32 /* types.h:33:22 */
|
||||
type X__u_long = uint32 /* types.h:34:27 */
|
||||
|
||||
// Fixed-size types, underlying types depend on word size and compiler.
|
||||
type X__int8_t = int8 /* types.h:36:21 */
|
||||
type X__uint8_t = uint8 /* types.h:37:23 */
|
||||
type X__int16_t = int16 /* types.h:38:26 */
|
||||
type X__uint16_t = uint16 /* types.h:39:28 */
|
||||
type X__int32_t = int32 /* types.h:40:20 */
|
||||
type X__uint32_t = uint32 /* types.h:41:22 */
|
||||
type X__int64_t = int64 /* types.h:46:44 */
|
||||
type X__uint64_t = uint64 /* types.h:47:46 */
|
||||
type X__int8_t = int8 /* types.h:37:21 */
|
||||
type X__uint8_t = uint8 /* types.h:38:23 */
|
||||
type X__int16_t = int16 /* types.h:39:26 */
|
||||
type X__uint16_t = uint16 /* types.h:40:28 */
|
||||
type X__int32_t = int32 /* types.h:41:20 */
|
||||
type X__uint32_t = uint32 /* types.h:42:22 */
|
||||
type X__int64_t = int64 /* types.h:47:44 */
|
||||
type X__uint64_t = uint64 /* types.h:48:46 */
|
||||
|
||||
// Smallest types with at least a given width.
|
||||
type X__int_least8_t = X__int8_t /* types.h:51:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:52:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:53:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:54:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:55:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:56:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:57:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:58:20 */
|
||||
type X__int_least8_t = X__int8_t /* types.h:52:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:54:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:56:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:58:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
|
||||
|
||||
// quad_t is also 64 bits.
|
||||
type X__quad_t = int64 /* types.h:65:37 */
|
||||
type X__u_quad_t = uint64 /* types.h:66:46 */
|
||||
type X__quad_t = int64 /* types.h:66:37 */
|
||||
type X__u_quad_t = uint64 /* types.h:67:46 */
|
||||
|
||||
// Largest integral types.
|
||||
type X__intmax_t = int64 /* types.h:74:37 */
|
||||
type X__uintmax_t = uint64 /* types.h:75:46 */
|
||||
type X__intmax_t = int64 /* types.h:75:37 */
|
||||
type X__uintmax_t = uint64 /* types.h:76:46 */
|
||||
|
||||
// The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
|
||||
// macros for each of the OS types we define below. The definitions
|
||||
@@ -699,7 +759,7 @@ type X__uintmax_t = uint64 /* types.h:75:46 */
|
||||
// 32 -- "natural" 32-bit type (always int)
|
||||
// 64 -- "natural" 64-bit type (long or long long)
|
||||
// LONG32 -- 32-bit type, traditionally long
|
||||
// QUAD -- 64-bit type, always long long
|
||||
// QUAD -- 64-bit type, traditionally long long
|
||||
// WORD -- natural type of __WORDSIZE bits (int or long)
|
||||
// LONGWORD -- type of __WORDSIZE bits, traditionally long
|
||||
//
|
||||
@@ -721,7 +781,7 @@ type X__uintmax_t = uint64 /* types.h:75:46 */
|
||||
// We want __extension__ before typedef's that use nonstandard base types
|
||||
// such as `long long' in C89 mode.
|
||||
// bits/typesizes.h -- underlying types for *_t. Generic version.
|
||||
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -736,88 +796,118 @@ type X__uintmax_t = uint64 /* types.h:75:46 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// See <bits/types.h> for the meaning of these macros. This file exists so
|
||||
// that <bits/types.h> need not vary across different GNU platforms.
|
||||
|
||||
// Number of descriptors that can fit in an `fd_set'.
|
||||
|
||||
type X__dev_t = X__u_quad_t /* types.h:143:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:144:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:145:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint32 /* types.h:146:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = X__u_quad_t /* types.h:147:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:148:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint32 /* types.h:149:27 */ // Type of file link counts.
|
||||
type X__off_t = int32 /* types.h:150:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = X__quad_t /* types.h:151:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:152:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:153:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int32 /* types.h:154:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint32 /* types.h:155:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = X__u_quad_t /* types.h:156:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:157:24 */ // General type for IDs.
|
||||
type X__time_t = int32 /* types.h:158:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:159:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int32 /* types.h:160:31 */ // Signed count of microseconds.
|
||||
// bits/time64.h -- underlying types for __time64_t. Generic version.
|
||||
// Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:162:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:163:25 */ // Type of an IPC key.
|
||||
// Define __TIME64_T_TYPE so that it is always a 64-bit type.
|
||||
|
||||
// Define a 64-bit time type alongsize the 32-bit one.
|
||||
|
||||
type X__dev_t = X__uint64_t /* types.h:145:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint32 /* types.h:148:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = X__uint64_t /* types.h:149:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts.
|
||||
type X__off_t = int32 /* types.h:152:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = X__int64_t /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int32 /* types.h:156:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint32 /* types.h:157:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = X__uint64_t /* types.h:158:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
|
||||
type X__time_t = int32 /* types.h:160:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int32 /* types.h:162:31 */ // Signed count of microseconds.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
|
||||
|
||||
// Clock ID used in clock and timer functions.
|
||||
type X__clockid_t = int32 /* types.h:166:29 */
|
||||
type X__clockid_t = int32 /* types.h:168:29 */
|
||||
|
||||
// Timer ID returned by `timer_create'.
|
||||
type X__timer_t = uintptr /* types.h:169:12 */
|
||||
type X__timer_t = uintptr /* types.h:171:12 */
|
||||
|
||||
// Type to represent block size.
|
||||
type X__blksize_t = int32 /* types.h:172:29 */
|
||||
type X__blksize_t = int32 /* types.h:174:29 */
|
||||
|
||||
// Types from the Large File Support interface.
|
||||
|
||||
// Type to count number of disk blocks.
|
||||
type X__blkcnt_t = int32 /* types.h:177:28 */
|
||||
type X__blkcnt64_t = X__quad_t /* types.h:178:30 */
|
||||
type X__blkcnt_t = int32 /* types.h:179:28 */
|
||||
type X__blkcnt64_t = X__int64_t /* types.h:180:30 */
|
||||
|
||||
// Type to count file system blocks.
|
||||
type X__fsblkcnt_t = uint32 /* types.h:181:30 */
|
||||
type X__fsblkcnt64_t = X__u_quad_t /* types.h:182:32 */
|
||||
type X__fsblkcnt_t = uint32 /* types.h:183:30 */
|
||||
type X__fsblkcnt64_t = X__uint64_t /* types.h:184:32 */
|
||||
|
||||
// Type to count file system nodes.
|
||||
type X__fsfilcnt_t = uint32 /* types.h:185:30 */
|
||||
type X__fsfilcnt64_t = X__u_quad_t /* types.h:186:32 */
|
||||
type X__fsfilcnt_t = uint32 /* types.h:187:30 */
|
||||
type X__fsfilcnt64_t = X__uint64_t /* types.h:188:32 */
|
||||
|
||||
// Type of miscellaneous file system fields.
|
||||
type X__fsword_t = int32 /* types.h:189:28 */
|
||||
type X__fsword_t = int32 /* types.h:191:28 */
|
||||
|
||||
type X__ssize_t = int32 /* types.h:191:27 */ // Type of a byte count, or error.
|
||||
type X__ssize_t = int32 /* types.h:193:27 */ // Type of a byte count, or error.
|
||||
|
||||
// Signed long type used in system calls.
|
||||
type X__syscall_slong_t = int32 /* types.h:194:33 */
|
||||
type X__syscall_slong_t = int32 /* types.h:196:33 */
|
||||
// Unsigned long type used in system calls.
|
||||
type X__syscall_ulong_t = uint32 /* types.h: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.
|
||||
type X__loff_t = X__off64_t /* types.h:200:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:201:14 */
|
||||
//
|
||||
// to one of the other defined types.
|
||||
type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:203:14 */
|
||||
|
||||
// Duplicates info from stdint.h but this is used in unistd.h.
|
||||
type X__intptr_t = int32 /* types.h:204:25 */
|
||||
type X__intptr_t = int32 /* types.h:206:25 */
|
||||
|
||||
// Duplicate info from sys/socket.h.
|
||||
type X__socklen_t = uint32 /* types.h:207:23 */
|
||||
type X__socklen_t = uint32 /* types.h:209:23 */
|
||||
|
||||
// C99: An integer type that can be accessed as an atomic entity,
|
||||
// even in the presence of asynchronous interrupts.
|
||||
// It is not currently necessary for this to be machine-specific.
|
||||
type X__sig_atomic_t = int32 /* types.h:212:13 */
|
||||
//
|
||||
// even in the presence of asynchronous interrupts.
|
||||
// It is not currently necessary for this to be machine-specific.
|
||||
type X__sig_atomic_t = int32 /* types.h:214:13 */
|
||||
|
||||
// Seconds since the Epoch, visible to user code when time_t is too
|
||||
//
|
||||
// narrow only for consistency with the old way of widening too-narrow
|
||||
// types. User code should never use __time64_t.
|
||||
type X__time64_t = X__int64_t /* types.h:222:28 */
|
||||
|
||||
// Get the definitions of O_*, F_*, FD_*: all the
|
||||
// numbers and flag bits for `open', `fcntl', et al.
|
||||
// O_*, F_*, FD_* bit values for Linux.
|
||||
// Copyright (C) 1995-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1995-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -832,21 +922,21 @@ type X__sig_atomic_t = int32 /* types.h:212:13 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library. If not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
type Flock = struct {
|
||||
Fl_type int16
|
||||
Fl_whence int16
|
||||
_ [4]byte
|
||||
Fl_start X__off64_t
|
||||
Fl_len X__off64_t
|
||||
Fl_pid X__pid_t
|
||||
_ [4]byte
|
||||
Fl_type int16
|
||||
Fl_whence int16
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fl_start X__off64_t
|
||||
Fl_len X__off64_t
|
||||
Fl_pid X__pid_t
|
||||
F__ccgo_pad2 [4]byte
|
||||
} /* fcntl.h:28:1 */
|
||||
|
||||
// Include generic Linux declarations.
|
||||
// O_*, F_*, FD_* bit values for Linux.
|
||||
// Copyright (C) 2001-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2001-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -861,7 +951,7 @@ type Flock = struct {
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// This file contains shared definitions between Linux architectures
|
||||
// and is included by <bits/fcntl.h> to declare them. The various
|
||||
@@ -915,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 */
|
||||
@@ -927,7 +1018,7 @@ type Pid_t = X__pid_t /* fcntl.h:69:17 */
|
||||
// NB: Include guard matches what <linux/time.h> uses.
|
||||
|
||||
// bits/types.h -- definitions of __*_t types underlying *_t types.
|
||||
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -942,18 +1033,12 @@ type Pid_t = X__pid_t /* fcntl.h:69:17 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Never include this file directly; use <sys/types.h> instead.
|
||||
|
||||
// POSIX.1b structure for a time value. This is like a `struct timeval' but
|
||||
// has nanoseconds instead of microseconds.
|
||||
type Timespec = struct {
|
||||
Ftv_sec X__time_t
|
||||
Ftv_nsec X__syscall_slong_t
|
||||
} /* struct_timespec.h:9:1 */
|
||||
|
||||
// Copyright (C) 1992-2018 Free Software Foundation, Inc.
|
||||
// Endian macros for string.h functions
|
||||
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -970,27 +1055,67 @@ type Timespec = struct {
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// Definitions for byte order, according to significance of bytes,
|
||||
// from low addresses to high addresses. The value is what you get by
|
||||
// putting '4' in the most significant byte, '3' in the second most
|
||||
// significant byte, '2' in the second least significant byte, and '1'
|
||||
// in the least significant byte, and then writing down one digit for
|
||||
// each byte, starting with the byte at the lowest address at the left,
|
||||
// and proceeding to the byte with the highest address at the right.
|
||||
|
||||
// This file defines `__BYTE_ORDER' for the particular machine.
|
||||
|
||||
// ARM has selectable endianness.
|
||||
|
||||
// Some machines may need to use a different endianness for floating point
|
||||
// values.
|
||||
|
||||
// POSIX.1b structure for a time value. This is like a `struct timeval' but
|
||||
//
|
||||
// has nanoseconds instead of microseconds.
|
||||
type Timespec = struct {
|
||||
Ftv_sec X__time_t
|
||||
Ftv_nsec X__syscall_slong_t
|
||||
} /* struct_timespec.h:10:1 */
|
||||
|
||||
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Versions of the `struct stat' data structure.
|
||||
|
||||
// Versions of the `xmknod' interface.
|
||||
|
||||
type Stat = struct {
|
||||
Fst_dev X__dev_t
|
||||
F__pad1 uint16
|
||||
_ [2]byte
|
||||
F__st_ino X__ino_t
|
||||
Fst_mode X__mode_t
|
||||
Fst_nlink X__nlink_t
|
||||
Fst_uid X__uid_t
|
||||
Fst_gid X__gid_t
|
||||
Fst_rdev X__dev_t
|
||||
F__pad2 uint16
|
||||
_ [6]byte
|
||||
Fst_size X__off64_t
|
||||
Fst_blksize X__blksize_t
|
||||
_ [4]byte
|
||||
Fst_blocks X__blkcnt64_t
|
||||
Fst_atim struct {
|
||||
Fst_dev X__dev_t
|
||||
F__pad1 uint16
|
||||
F__ccgo_pad1 [2]byte
|
||||
F__st_ino X__ino_t
|
||||
Fst_mode X__mode_t
|
||||
Fst_nlink X__nlink_t
|
||||
Fst_uid X__uid_t
|
||||
Fst_gid X__gid_t
|
||||
Fst_rdev X__dev_t
|
||||
F__pad2 uint16
|
||||
F__ccgo_pad2 [6]byte
|
||||
Fst_size X__off64_t
|
||||
Fst_blksize X__blksize_t
|
||||
F__ccgo_pad3 [4]byte
|
||||
Fst_blocks X__blkcnt64_t
|
||||
Fst_atim struct {
|
||||
Ftv_sec X__time_t
|
||||
Ftv_nsec X__syscall_slong_t
|
||||
}
|
||||
@@ -1007,4 +1132,4 @@ type Stat = struct {
|
||||
|
||||
// Define some inlines helping to catch common problems.
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
||||
var _ uint8 /* gen.c:2:13: */
|
||||
+396
-241
@@ -15,131 +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
|
||||
BIG_ENDIAN = 4321
|
||||
BYTE_ORDER = 1234
|
||||
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
|
||||
LITTLE_ENDIAN = 1234
|
||||
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 = 16384
|
||||
O_DSYNC = 4096
|
||||
O_EXCL = 0200
|
||||
O_FSYNC = 1052672
|
||||
O_NDELAY = 2048
|
||||
O_NOCTTY = 0400
|
||||
O_NOFOLLOW = 32768
|
||||
O_NONBLOCK = 04000
|
||||
O_RDONLY = 00
|
||||
O_RDWR = 02
|
||||
O_RSYNC = 1052672
|
||||
O_SYNC = 04010000
|
||||
O_TRUNC = 01000
|
||||
O_WRONLY = 01
|
||||
PDP_ENDIAN = 3412
|
||||
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_BYTESWAP_H = 1
|
||||
X_BITS_STAT_H = 1
|
||||
X_BITS_TYPESIZES_H = 1
|
||||
X_BITS_TYPES_H = 1
|
||||
X_BITS_UINTN_IDENTITY_H = 1
|
||||
X_DEFAULT_SOURCE = 1
|
||||
X_ENDIAN_H = 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 = 0
|
||||
X_STAT_VER_KERNEL = 0
|
||||
X_STAT_VER_LINUX = 0
|
||||
X_STDC_PREDEF_H = 1
|
||||
X_STRUCT_TIMESPEC = 1
|
||||
X_SYS_CDEFS_H = 1
|
||||
Linux = 1
|
||||
Unix = 1
|
||||
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 = 16384
|
||||
O_DSYNC = 4096
|
||||
O_EXCL = 0200
|
||||
O_FSYNC = 1052672
|
||||
O_NDELAY = 2048
|
||||
O_NOCTTY = 0400
|
||||
O_NOFOLLOW = 32768
|
||||
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 = 0
|
||||
X_STAT_VER_KERNEL = 0
|
||||
X_STAT_VER_LINUX = 0
|
||||
X_STDC_PREDEF_H = 1
|
||||
X_STRUCT_TIMESPEC = 1
|
||||
X_SYS_CDEFS_H = 1
|
||||
Linux = 1
|
||||
Unix = 1
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
@@ -160,7 +156,7 @@ type X__uint128_t = struct {
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -175,11 +171,11 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// POSIX Standard: 6.5 File Control Operations <fcntl.h>
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -194,7 +190,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// These are defined by the user (or the compiler)
|
||||
// to specify the desired environment:
|
||||
@@ -202,6 +198,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// __STRICT_ANSI__ ISO Standard C.
|
||||
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
|
||||
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
|
||||
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
|
||||
// __STDC_WANT_LIB_EXT2__
|
||||
// Extensions to ISO C99 from TR 27431-2:2010.
|
||||
// __STDC_WANT_IEC_60559_BFP_EXT__
|
||||
@@ -322,6 +319,8 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
|
||||
// define _DEFAULT_SOURCE.
|
||||
|
||||
// This is to enable the ISO C2X extension.
|
||||
|
||||
// This is to enable the ISO C11 extension.
|
||||
|
||||
// This is to enable the ISO C99 extension.
|
||||
@@ -344,9 +343,22 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// compatibility with various implementations of <cstdio>, this test
|
||||
// must consider only the value of __cplusplus when compiling C++.
|
||||
|
||||
// GNU formerly extended the scanf functions with modified format
|
||||
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
|
||||
// input using malloc. This extension conflicts with ISO C99, which
|
||||
// defines %a as a standalone format specifier that reads a floating-
|
||||
// point number; moreover, POSIX.1-2008 provides the same feature
|
||||
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
|
||||
//
|
||||
// We now follow C99 unless GNU extensions are active and the compiler
|
||||
// is specifically in C89 or C++98 mode (strict or not). For
|
||||
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
|
||||
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
|
||||
// old extension.
|
||||
|
||||
// Get definitions of __STDC_* predefined macros, if the compiler has
|
||||
// not preincluded this header automatically.
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -361,7 +373,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// This macro indicates that the installed library is the GNU C Library.
|
||||
// For historic reasons the value now is 6 and this will stay from now
|
||||
@@ -374,7 +386,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// these macros to test for features in specific releases.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// Copyright (C) 1992-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -389,7 +401,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// We are almost always included from features.h.
|
||||
|
||||
@@ -504,7 +516,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// semantics.
|
||||
//
|
||||
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
|
||||
// semantics, that can be checked fot by using the __GNUC_STDC_INLINE_ and
|
||||
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
|
||||
// __GNUC_GNU_INLINE__ macro definitions.
|
||||
|
||||
// GCC 4.3 and above allow passing all anonymous arguments of an
|
||||
@@ -525,9 +537,13 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// argument to strncpy and strncat, as the char array is not necessarily
|
||||
// a NUL-terminated string.
|
||||
|
||||
// Undefine (also defined in libc-symbols.h).
|
||||
// Copies attributes from the declaration or type referenced by
|
||||
// the argument.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
//
|
||||
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -542,10 +558,10 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Properties of long double type. ldbl-128 version.
|
||||
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -560,7 +576,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// long double is distinct from double, so there is nothing to
|
||||
// define here.
|
||||
@@ -594,7 +610,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
//
|
||||
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -609,7 +625,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// This file is automatically generated.
|
||||
// It defines a symbol `__stub_FUNCTION' for each function
|
||||
@@ -620,7 +636,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// Get __mode_t, __dev_t and __off_t .
|
||||
// bits/types.h -- definitions of __*_t types underlying *_t types.
|
||||
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -635,11 +651,11 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Never include this file directly; use <sys/types.h> instead.
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -654,11 +670,11 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
//
|
||||
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -673,41 +689,80 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Bit size of the time_t type at glibc build time, general case.
|
||||
// Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
//
|
||||
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Size in bits of the 'time_t' type of the default ABI.
|
||||
|
||||
// Convenience types.
|
||||
type X__u_char = uint8 /* types.h:30:23 */
|
||||
type X__u_short = uint16 /* types.h:31:28 */
|
||||
type X__u_int = uint32 /* types.h:32:22 */
|
||||
type X__u_long = uint64 /* types.h:33:27 */
|
||||
type X__u_char = uint8 /* types.h:31:23 */
|
||||
type X__u_short = uint16 /* types.h:32:28 */
|
||||
type X__u_int = uint32 /* types.h:33:22 */
|
||||
type X__u_long = uint64 /* types.h:34:27 */
|
||||
|
||||
// Fixed-size types, underlying types depend on word size and compiler.
|
||||
type X__int8_t = int8 /* types.h:36:21 */
|
||||
type X__uint8_t = uint8 /* types.h:37:23 */
|
||||
type X__int16_t = int16 /* types.h:38:26 */
|
||||
type X__uint16_t = uint16 /* types.h:39:28 */
|
||||
type X__int32_t = int32 /* types.h:40:20 */
|
||||
type X__uint32_t = uint32 /* types.h:41:22 */
|
||||
type X__int64_t = int64 /* types.h:43:25 */
|
||||
type X__uint64_t = uint64 /* types.h:44:27 */
|
||||
type X__int8_t = int8 /* types.h:37:21 */
|
||||
type X__uint8_t = uint8 /* types.h:38:23 */
|
||||
type X__int16_t = int16 /* types.h:39:26 */
|
||||
type X__uint16_t = uint16 /* types.h:40:28 */
|
||||
type X__int32_t = int32 /* types.h:41:20 */
|
||||
type X__uint32_t = uint32 /* types.h:42:22 */
|
||||
type X__int64_t = int64 /* types.h:44:25 */
|
||||
type X__uint64_t = uint64 /* types.h:45:27 */
|
||||
|
||||
// Smallest types with at least a given width.
|
||||
type X__int_least8_t = X__int8_t /* types.h:51:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:52:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:53:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:54:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:55:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:56:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:57:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:58:20 */
|
||||
type X__int_least8_t = X__int8_t /* types.h:52:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:54:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:56:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:58:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
|
||||
|
||||
// quad_t is also 64 bits.
|
||||
type X__quad_t = int64 /* types.h:62:18 */
|
||||
type X__u_quad_t = uint64 /* types.h:63:27 */
|
||||
type X__quad_t = int64 /* types.h:63:18 */
|
||||
type X__u_quad_t = uint64 /* types.h:64:27 */
|
||||
|
||||
// Largest integral types.
|
||||
type X__intmax_t = int64 /* types.h:71:18 */
|
||||
type X__uintmax_t = uint64 /* types.h:72:27 */
|
||||
type X__intmax_t = int64 /* types.h:72:18 */
|
||||
type X__uintmax_t = uint64 /* types.h:73:27 */
|
||||
|
||||
// The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
|
||||
// macros for each of the OS types we define below. The definitions
|
||||
@@ -719,7 +774,7 @@ type X__uintmax_t = uint64 /* types.h:72:27 */
|
||||
// 32 -- "natural" 32-bit type (always int)
|
||||
// 64 -- "natural" 64-bit type (long or long long)
|
||||
// LONG32 -- 32-bit type, traditionally long
|
||||
// QUAD -- 64-bit type, always long long
|
||||
// QUAD -- 64-bit type, traditionally long long
|
||||
// WORD -- natural type of __WORDSIZE bits (int or long)
|
||||
// LONGWORD -- type of __WORDSIZE bits, traditionally long
|
||||
//
|
||||
@@ -740,7 +795,7 @@ type X__uintmax_t = uint64 /* types.h:72:27 */
|
||||
|
||||
// No need to mark the typedef with __extension__.
|
||||
// bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI.
|
||||
// Copyright (C) 2011-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2011-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
// Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
|
||||
//
|
||||
@@ -756,7 +811,7 @@ type X__uintmax_t = uint64 /* types.h:72:27 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library. If not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// See <bits/types.h> for the meaning of these macros. This file exists so
|
||||
// that <bits/types.h> need not vary across different GNU platforms.
|
||||
@@ -769,83 +824,112 @@ type X__uintmax_t = uint64 /* types.h:72:27 */
|
||||
|
||||
// And for __rlim_t and __rlim64_t.
|
||||
|
||||
// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
|
||||
// Number of descriptors that can fit in an `fd_set'.
|
||||
|
||||
type X__dev_t = uint64 /* types.h:143:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:144:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:145:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint64 /* types.h:146:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = uint64 /* types.h:147:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:148:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint32 /* types.h:149:27 */ // Type of file link counts.
|
||||
type X__off_t = int64 /* types.h:150:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = int64 /* types.h:151:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:152:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:153:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int64 /* types.h:154:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint64 /* types.h:155:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = uint64 /* types.h:156:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:157:24 */ // General type for IDs.
|
||||
type X__time_t = int64 /* types.h:158:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:159:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int64 /* types.h:160:31 */ // Signed count of microseconds.
|
||||
// bits/time64.h -- underlying types for __time64_t. Generic version.
|
||||
// Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:162:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:163:25 */ // Type of an IPC key.
|
||||
// Define __TIME64_T_TYPE so that it is always a 64-bit type.
|
||||
|
||||
// If we already have 64-bit time type then use it.
|
||||
|
||||
type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts.
|
||||
type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
|
||||
type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
|
||||
|
||||
// Clock ID used in clock and timer functions.
|
||||
type X__clockid_t = int32 /* types.h:166:29 */
|
||||
type X__clockid_t = int32 /* types.h:168:29 */
|
||||
|
||||
// Timer ID returned by `timer_create'.
|
||||
type X__timer_t = uintptr /* types.h:169:12 */
|
||||
type X__timer_t = uintptr /* types.h:171:12 */
|
||||
|
||||
// Type to represent block size.
|
||||
type X__blksize_t = int32 /* types.h:172:29 */
|
||||
type X__blksize_t = int32 /* types.h:174:29 */
|
||||
|
||||
// Types from the Large File Support interface.
|
||||
|
||||
// Type to count number of disk blocks.
|
||||
type X__blkcnt_t = int64 /* types.h:177:28 */
|
||||
type X__blkcnt64_t = int64 /* types.h:178:30 */
|
||||
type X__blkcnt_t = int64 /* types.h:179:28 */
|
||||
type X__blkcnt64_t = int64 /* types.h:180:30 */
|
||||
|
||||
// Type to count file system blocks.
|
||||
type X__fsblkcnt_t = uint64 /* types.h:181:30 */
|
||||
type X__fsblkcnt64_t = uint64 /* types.h:182:32 */
|
||||
type X__fsblkcnt_t = uint64 /* types.h:183:30 */
|
||||
type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
|
||||
|
||||
// Type to count file system nodes.
|
||||
type X__fsfilcnt_t = uint64 /* types.h:185:30 */
|
||||
type X__fsfilcnt64_t = uint64 /* types.h:186:32 */
|
||||
type X__fsfilcnt_t = uint64 /* types.h:187:30 */
|
||||
type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
|
||||
|
||||
// Type of miscellaneous file system fields.
|
||||
type X__fsword_t = int64 /* types.h:189:28 */
|
||||
type X__fsword_t = int64 /* types.h:191:28 */
|
||||
|
||||
type X__ssize_t = int64 /* types.h:191:27 */ // Type of a byte count, or error.
|
||||
type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
|
||||
|
||||
// Signed long type used in system calls.
|
||||
type X__syscall_slong_t = int64 /* types.h:194:33 */
|
||||
type X__syscall_slong_t = int64 /* types.h:196:33 */
|
||||
// Unsigned long type used in system calls.
|
||||
type X__syscall_ulong_t = uint64 /* types.h: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.
|
||||
type X__loff_t = X__off64_t /* types.h:200:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:201:14 */
|
||||
//
|
||||
// to one of the other defined types.
|
||||
type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:203:14 */
|
||||
|
||||
// Duplicates info from stdint.h but this is used in unistd.h.
|
||||
type X__intptr_t = int64 /* types.h:204:25 */
|
||||
type X__intptr_t = int64 /* types.h:206:25 */
|
||||
|
||||
// Duplicate info from sys/socket.h.
|
||||
type X__socklen_t = uint32 /* types.h:207:23 */
|
||||
type X__socklen_t = uint32 /* types.h:209:23 */
|
||||
|
||||
// C99: An integer type that can be accessed as an atomic entity,
|
||||
// even in the presence of asynchronous interrupts.
|
||||
// It is not currently necessary for this to be machine-specific.
|
||||
type X__sig_atomic_t = int32 /* types.h:212:13 */
|
||||
//
|
||||
// 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.
|
||||
|
||||
// Get the definitions of O_*, F_*, FD_*: all the
|
||||
// numbers and flag bits for `open', `fcntl', et al.
|
||||
// O_*, F_*, FD_* bit values for the AArch64 Linux ABI.
|
||||
// Copyright (C) 2011-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2011-2020 Free Software Foundation, Inc.
|
||||
//
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
@@ -861,21 +945,21 @@ type X__sig_atomic_t = int32 /* types.h:212:13 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library. If not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
type Flock = struct {
|
||||
Fl_type int16
|
||||
Fl_whence int16
|
||||
_ [4]byte
|
||||
Fl_start X__off_t
|
||||
Fl_len X__off_t
|
||||
Fl_pid X__pid_t
|
||||
_ [4]byte
|
||||
Fl_type int16
|
||||
Fl_whence int16
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fl_start X__off_t
|
||||
Fl_len X__off_t
|
||||
Fl_pid X__pid_t
|
||||
F__ccgo_pad2 [4]byte
|
||||
} /* fcntl.h:40:1 */
|
||||
|
||||
// Include generic Linux declarations.
|
||||
// O_*, F_*, FD_* bit values for Linux.
|
||||
// Copyright (C) 2001-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2001-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -890,7 +974,7 @@ type Flock = struct {
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// This file contains shared definitions between Linux architectures
|
||||
// and is included by <bits/fcntl.h> to declare them. The various
|
||||
@@ -944,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 */
|
||||
@@ -956,7 +1041,7 @@ type Pid_t = X__pid_t /* fcntl.h:69:17 */
|
||||
// NB: Include guard matches what <linux/time.h> uses.
|
||||
|
||||
// bits/types.h -- definitions of __*_t types underlying *_t types.
|
||||
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -971,20 +1056,12 @@ type Pid_t = X__pid_t /* fcntl.h:69:17 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Never include this file directly; use <sys/types.h> instead.
|
||||
|
||||
// POSIX.1b structure for a time value. This is like a `struct timeval' but
|
||||
// has nanoseconds instead of microseconds.
|
||||
type Timespec = struct {
|
||||
Ftv_sec X__time_t
|
||||
Ftv_nsec X__syscall_slong_t
|
||||
} /* struct_timespec.h:9:1 */
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
//
|
||||
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
|
||||
// Endian macros for string.h functions
|
||||
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -1001,6 +1078,84 @@ type Timespec = struct {
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// Definitions for byte order, according to significance of bytes,
|
||||
// from low addresses to high addresses. The value is what you get by
|
||||
// putting '4' in the most significant byte, '3' in the second most
|
||||
// significant byte, '2' in the second least significant byte, and '1'
|
||||
// in the least significant byte, and then writing down one digit for
|
||||
// each byte, starting with the byte at the lowest address at the left,
|
||||
// and proceeding to the byte with the highest address at the right.
|
||||
|
||||
// This file defines `__BYTE_ORDER' for the particular machine.
|
||||
|
||||
// AArch64 has selectable endianness.
|
||||
|
||||
// Some machines may need to use a different endianness for floating point
|
||||
// values.
|
||||
|
||||
// POSIX.1b structure for a time value. This is like a `struct timeval' but
|
||||
//
|
||||
// has nanoseconds instead of microseconds.
|
||||
type Timespec = struct {
|
||||
Ftv_sec X__time_t
|
||||
Ftv_nsec X__syscall_slong_t
|
||||
} /* struct_timespec.h:10:1 */
|
||||
|
||||
// Copyright (C) 2011-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
// Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library. If not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Endian macros for string.h functions
|
||||
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
//
|
||||
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// 64-bit libc uses the kernel's 'struct stat', accessed via the
|
||||
// stat() syscall; 32-bit libc uses the kernel's 'struct stat64'
|
||||
// and accesses it via the stat64() syscall. All the various
|
||||
@@ -1037,8 +1192,8 @@ type Stat = struct {
|
||||
Ftv_nsec X__syscall_slong_t
|
||||
}
|
||||
F__glibc_reserved [2]int32
|
||||
} /* stat.h:55:1 */
|
||||
} /* stat.h:58:1 */
|
||||
|
||||
// Define some inlines helping to catch common problems.
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
||||
var _ uint8 /* gen.c:2:13: */
|
||||
+25
-13
@@ -533,7 +533,13 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// array_name[restrict]
|
||||
// GCC 3.1 supports this.
|
||||
|
||||
// Describes a char array whose address can safely be passed as the first
|
||||
// argument to strncpy and strncat, as the char array is not necessarily
|
||||
// a NUL-terminated string.
|
||||
|
||||
// Undefine (also defined in libc-symbols.h).
|
||||
// Copies attributes from the declaration or type referenced by
|
||||
// the argument.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
@@ -830,7 +836,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 */
|
||||
|
||||
@@ -841,8 +848,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
|
||||
@@ -876,13 +884,13 @@ type X__sig_atomic_t = int32 /* types.h:214:13 */
|
||||
// Not necessary, we always have 64-bit offsets.
|
||||
|
||||
type Flock = struct {
|
||||
Fl_type int16
|
||||
Fl_whence int16
|
||||
_ [4]byte
|
||||
Fl_start X__off_t
|
||||
Fl_len X__off_t
|
||||
Fl_pid X__pid_t
|
||||
_ [4]byte
|
||||
Fl_type int16
|
||||
Fl_whence int16
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fl_start X__off_t
|
||||
Fl_len X__off_t
|
||||
Fl_pid X__pid_t
|
||||
F__ccgo_pad2 [4]byte
|
||||
} /* fcntl.h:37:1 */
|
||||
|
||||
// Include generic Linux declarations.
|
||||
@@ -950,12 +958,15 @@ type Flock = struct {
|
||||
|
||||
// Advise to `posix_fadvise'.
|
||||
|
||||
// Values for `*at' functions.
|
||||
|
||||
// Detect if open needs mode as a third argument (or for openat as a fourth
|
||||
// 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 */
|
||||
@@ -1019,7 +1030,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
|
||||
|
||||
+273
-284
@@ -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
|
||||
|
||||
@@ -15,199 +15,197 @@ var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
AT_EACCESS = 0x100
|
||||
AT_FDCWD = -100
|
||||
AT_REMOVEDIR = 0x800
|
||||
AT_SYMLINK_FOLLOW = 0x400
|
||||
AT_SYMLINK_NOFOLLOW = 0x200
|
||||
BIG_ENDIAN = 4321
|
||||
BYTE_ORDER = 1234
|
||||
FAPPEND = 8
|
||||
FASYNC = 64
|
||||
FD_CLOEXEC = 1
|
||||
FD_SETSIZE = 256
|
||||
FNDELAY = 4
|
||||
FREAD = 0x00000001
|
||||
FWRITE = 0x00000002
|
||||
F_CLOSEM = 10
|
||||
F_DUPFD = 0
|
||||
F_DUPFD_CLOEXEC = 12
|
||||
F_GETFD = 1
|
||||
F_GETFL = 3
|
||||
F_GETLK = 7
|
||||
F_GETNOSIGPIPE = 13
|
||||
F_GETOWN = 5
|
||||
F_MAXFD = 11
|
||||
F_PARAM_MASK = 0xfff
|
||||
F_PARAM_MAX = 4095
|
||||
F_RDLCK = 1
|
||||
F_SETFD = 2
|
||||
F_SETFL = 4
|
||||
F_SETLK = 8
|
||||
F_SETLKW = 9
|
||||
F_SETNOSIGPIPE = 14
|
||||
F_SETOWN = 6
|
||||
F_UNLCK = 2
|
||||
F_WRLCK = 3
|
||||
INT16_MAX = 32767
|
||||
INT16_MIN = -32768
|
||||
INT32_MAX = 2147483647
|
||||
INT32_MIN = -2147483648
|
||||
INT64_MAX = 9223372036854775807
|
||||
INT64_MIN = -9223372036854775808
|
||||
INT8_MAX = 127
|
||||
INT8_MIN = -128
|
||||
INTMAX_MAX = 9223372036854775807
|
||||
INTMAX_MIN = -9223372036854775808
|
||||
INTPTR_MAX = 9223372036854775807
|
||||
INTPTR_MIN = -9223372036854775808
|
||||
INT_FAST16_MAX = 2147483647
|
||||
INT_FAST16_MIN = -2147483648
|
||||
INT_FAST32_MAX = 2147483647
|
||||
INT_FAST32_MIN = -2147483648
|
||||
INT_FAST64_MAX = 9223372036854775807
|
||||
INT_FAST64_MIN = -9223372036854775808
|
||||
INT_FAST8_MAX = 2147483647
|
||||
INT_FAST8_MIN = -2147483648
|
||||
INT_LEAST16_MAX = 32767
|
||||
INT_LEAST16_MIN = -32768
|
||||
INT_LEAST32_MAX = 2147483647
|
||||
INT_LEAST32_MIN = -2147483648
|
||||
INT_LEAST64_MAX = 9223372036854775807
|
||||
INT_LEAST64_MIN = -9223372036854775808
|
||||
INT_LEAST8_MAX = 127
|
||||
INT_LEAST8_MIN = -128
|
||||
LITTLE_ENDIAN = 1234
|
||||
LOCK_EX = 0x02
|
||||
LOCK_NB = 0x04
|
||||
LOCK_SH = 0x01
|
||||
LOCK_UN = 0x08
|
||||
NBBY = 8
|
||||
NFDBITS = 32
|
||||
NODEVMAJOR = -1
|
||||
O_ACCMODE = 0x00000003
|
||||
O_ALT_IO = 0x00040000
|
||||
O_APPEND = 0x00000008
|
||||
O_ASYNC = 0x00000040
|
||||
O_CLOEXEC = 0x00400000
|
||||
O_CREAT = 0x00000200
|
||||
O_DIRECT = 0x00080000
|
||||
O_DIRECTORY = 0x00200000
|
||||
O_DSYNC = 0x00010000
|
||||
O_EXCL = 0x00000800
|
||||
O_EXLOCK = 0x00000020
|
||||
O_FSYNC = 128
|
||||
O_NDELAY = 4
|
||||
O_NOCTTY = 0x00008000
|
||||
O_NOFOLLOW = 0x00000100
|
||||
O_NONBLOCK = 0x00000004
|
||||
O_NOSIGPIPE = 0x01000000
|
||||
O_RDONLY = 0x00000000
|
||||
O_RDWR = 0x00000002
|
||||
O_REGULAR = 0x02000000
|
||||
O_RSYNC = 0x00020000
|
||||
O_SEARCH = 0x00800000
|
||||
O_SHLOCK = 0x00000010
|
||||
O_SYNC = 0x00000080
|
||||
O_TRUNC = 0x00000400
|
||||
O_WRONLY = 0x00000001
|
||||
PDP_ENDIAN = 3412
|
||||
POSIX_FADV_DONTNEED = 4
|
||||
POSIX_FADV_NOREUSE = 5
|
||||
POSIX_FADV_NORMAL = 0
|
||||
POSIX_FADV_RANDOM = 1
|
||||
POSIX_FADV_SEQUENTIAL = 2
|
||||
POSIX_FADV_WILLNEED = 3
|
||||
PTRDIFF_MAX = 9223372036854775807
|
||||
PTRDIFF_MIN = -9223372036854775808
|
||||
SEEK_CUR = 1
|
||||
SEEK_END = 2
|
||||
SEEK_SET = 0
|
||||
SIG_ATOMIC_MAX = 2147483647
|
||||
SIG_ATOMIC_MIN = -2147483648
|
||||
SIZE_MAX = 18446744073709551615
|
||||
UINT16_MAX = 65535
|
||||
UINT32_MAX = 4294967295
|
||||
UINT64_MAX = 18446744073709551615
|
||||
UINT8_MAX = 255
|
||||
UINTMAX_MAX = 18446744073709551615
|
||||
UINTPTR_MAX = 18446744073709551615
|
||||
UINT_FAST16_MAX = 4294967295
|
||||
UINT_FAST32_MAX = 4294967295
|
||||
UINT_FAST64_MAX = 18446744073709551615
|
||||
UINT_FAST8_MAX = 4294967295
|
||||
UINT_LEAST16_MAX = 65535
|
||||
UINT_LEAST32_MAX = 4294967295
|
||||
UINT_LEAST64_MAX = 18446744073709551615
|
||||
UINT_LEAST8_MAX = 255
|
||||
WCHAR_MAX = 0x7fffffff
|
||||
WCHAR_MIN = -2147483648
|
||||
WINT_MAX = 0x7fffffff
|
||||
WINT_MIN = -2147483648
|
||||
X_AMD64_BYTE_SWAP_H_ = 0
|
||||
X_AMD64_INT_CONST_H_ = 0
|
||||
X_AMD64_INT_LIMITS_H_ = 0
|
||||
X_AMD64_INT_MWGWTYPES_H_ = 0
|
||||
X_AMD64_INT_TYPES_H_ = 0
|
||||
X_AMD64_WCHAR_LIMITS_H_ = 0
|
||||
X_BIG_ENDIAN = 4321
|
||||
X_BSD_INT16_T_ = 0
|
||||
X_BSD_INT32_T_ = 0
|
||||
X_BSD_INT64_T_ = 0
|
||||
X_BSD_INT8_T_ = 0
|
||||
X_BSD_INTPTR_T_ = 0
|
||||
X_BSD_UINT16_T_ = 0
|
||||
X_BSD_UINT32_T_ = 0
|
||||
X_BSD_UINT64_T_ = 0
|
||||
X_BSD_UINT8_T_ = 0
|
||||
X_BSD_UINTPTR_T_ = 0
|
||||
X_BYTE_ORDER = 1234
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_GCC_PTRDIFF_T = 0
|
||||
X_GCC_SIZE_T = 0
|
||||
X_LIB_PTHREAD_TYPES_H = 0
|
||||
X_LITTLE_ENDIAN = 1234
|
||||
X_LP64 = 1
|
||||
X_NETBSD_SOURCE = 1
|
||||
X_PDP_ENDIAN = 3412
|
||||
X_PT_BARRIERATTR_DEAD = 0xDEAD0808
|
||||
X_PT_BARRIERATTR_MAGIC = 0x88880808
|
||||
X_PT_BARRIER_DEAD = 0xDEAD0008
|
||||
X_PT_BARRIER_MAGIC = 0x88880008
|
||||
X_PT_CONDATTR_DEAD = 0xDEAD0006
|
||||
X_PT_CONDATTR_MAGIC = 0x66660006
|
||||
X_PT_COND_DEAD = 0xDEAD0005
|
||||
X_PT_COND_MAGIC = 0x55550005
|
||||
X_PT_MUTEXATTR_DEAD = 0xDEAD0004
|
||||
X_PT_MUTEXATTR_MAGIC = 0x44440004
|
||||
X_PT_MUTEX_DEAD = 0xDEAD0003
|
||||
X_PT_MUTEX_MAGIC = 0x33330003
|
||||
X_PT_RWLOCKATTR_DEAD = 0xDEAD0909
|
||||
X_PT_RWLOCKATTR_MAGIC = 0x99990909
|
||||
X_PT_RWLOCK_DEAD = 0xDEAD0009
|
||||
X_PT_RWLOCK_MAGIC = 0x99990009
|
||||
X_PT_SPINLOCK_DEAD = 0xDEAD0007
|
||||
X_PT_SPINLOCK_MAGIC = 0x77770007
|
||||
X_PT_SPINLOCK_PSHARED = 0x00000001
|
||||
X_QUAD_HIGHWORD = 1
|
||||
X_QUAD_LOWWORD = 0
|
||||
X_SIZE_T = 0
|
||||
X_SYS_ANSI_H_ = 0
|
||||
X_SYS_BSWAP_H_ = 0
|
||||
X_SYS_CDEFS_ELF_H_ = 0
|
||||
X_SYS_CDEFS_H_ = 0
|
||||
X_SYS_COMMON_ANSI_H_ = 0
|
||||
X_SYS_COMMON_INT_LIMITS_H_ = 0
|
||||
X_SYS_COMMON_INT_MWGWTYPES_H_ = 0
|
||||
X_SYS_COMMON_INT_TYPES_H_ = 0
|
||||
X_SYS_ENDIAN_H_ = 0
|
||||
X_SYS_FCNTL_H_ = 0
|
||||
X_SYS_FD_SET_H_ = 0
|
||||
X_SYS_STDINT_H_ = 0
|
||||
X_SYS_TYPES_H_ = 0
|
||||
X_X86_64_BSWAP_H_ = 0
|
||||
X_X86_64_CDEFS_H_ = 0
|
||||
X_X86_64_TYPES_H_ = 0
|
||||
AT_EACCESS = 0x100 // fcntl.h:297:1:
|
||||
AT_FDCWD = -100 // fcntl.h:296:1:
|
||||
AT_REMOVEDIR = 0x800 // fcntl.h:300:1:
|
||||
AT_SYMLINK_FOLLOW = 0x400 // fcntl.h:299:1:
|
||||
AT_SYMLINK_NOFOLLOW = 0x200 // fcntl.h:298:1:
|
||||
BIG_ENDIAN = 4321 // endian.h:101:1:
|
||||
BYTE_ORDER = 1234 // endian.h:103:1:
|
||||
FAPPEND = 8 // fcntl.h:156:1:
|
||||
FASYNC = 64 // fcntl.h:157:1:
|
||||
FD_CLOEXEC = 1 // fcntl.h:199:1:
|
||||
FD_SETSIZE = 256 // fd_set.h:59:1:
|
||||
FNDELAY = 4 // fcntl.h:159:1:
|
||||
FREAD = 0x00000001 // fcntl.h:78:1:
|
||||
FWRITE = 0x00000002 // fcntl.h:79:1:
|
||||
F_CLOSEM = 10 // fcntl.h:191:1:
|
||||
F_DUPFD = 0 // fcntl.h:177:1:
|
||||
F_DUPFD_CLOEXEC = 12 // fcntl.h:193:1:
|
||||
F_GETFD = 1 // fcntl.h:178:1:
|
||||
F_GETFL = 3 // fcntl.h:180:1:
|
||||
F_GETLK = 7 // fcntl.h:187:1:
|
||||
F_GETNOSIGPIPE = 13 // fcntl.h:194:1:
|
||||
F_GETOWN = 5 // fcntl.h:184:1:
|
||||
F_MAXFD = 11 // fcntl.h:192:1:
|
||||
F_PARAM_MASK = 0xfff // fcntl.h:213:1:
|
||||
F_PARAM_MAX = 4095 // fcntl.h:215:1:
|
||||
F_RDLCK = 1 // fcntl.h:202:1:
|
||||
F_SETFD = 2 // fcntl.h:179:1:
|
||||
F_SETFL = 4 // fcntl.h:181:1:
|
||||
F_SETLK = 8 // fcntl.h:188:1:
|
||||
F_SETLKW = 9 // fcntl.h:189:1:
|
||||
F_SETNOSIGPIPE = 14 // fcntl.h:195:1:
|
||||
F_SETOWN = 6 // fcntl.h:185:1:
|
||||
F_UNLCK = 2 // fcntl.h:203:1:
|
||||
F_WRLCK = 3 // fcntl.h:204:1:
|
||||
INT16_MAX = 32767 // common_int_limits.h:53:1:
|
||||
INT16_MIN = -32768 // common_int_limits.h:47:1:
|
||||
INT32_MAX = 2147483647 // common_int_limits.h:54:1:
|
||||
INT32_MIN = -2147483648 // common_int_limits.h:48:1:
|
||||
INT64_MAX = 9223372036854775807 // common_int_limits.h:55:1:
|
||||
INT64_MIN = -9223372036854775808 // common_int_limits.h:49:1:
|
||||
INT8_MAX = 127 // common_int_limits.h:52:1:
|
||||
INT8_MIN = -128 // common_int_limits.h:46:1:
|
||||
INTMAX_MAX = 9223372036854775807 // common_int_limits.h:111:1:
|
||||
INTMAX_MIN = -9223372036854775808 // common_int_limits.h:110:1:
|
||||
INTPTR_MAX = 9223372036854775807 // common_int_limits.h:105:1:
|
||||
INTPTR_MIN = -9223372036854775808 // common_int_limits.h:104:1:
|
||||
INT_FAST16_MAX = 2147483647 // common_int_limits.h:93:1:
|
||||
INT_FAST16_MIN = -2147483648 // common_int_limits.h:87:1:
|
||||
INT_FAST32_MAX = 2147483647 // common_int_limits.h:94:1:
|
||||
INT_FAST32_MIN = -2147483648 // common_int_limits.h:88:1:
|
||||
INT_FAST64_MAX = 9223372036854775807 // common_int_limits.h:95:1:
|
||||
INT_FAST64_MIN = -9223372036854775808 // common_int_limits.h:89:1:
|
||||
INT_FAST8_MAX = 2147483647 // common_int_limits.h:92:1:
|
||||
INT_FAST8_MIN = -2147483648 // common_int_limits.h:86:1:
|
||||
INT_LEAST16_MAX = 32767 // common_int_limits.h:73:1:
|
||||
INT_LEAST16_MIN = -32768 // common_int_limits.h:67:1:
|
||||
INT_LEAST32_MAX = 2147483647 // common_int_limits.h:74:1:
|
||||
INT_LEAST32_MIN = -2147483648 // common_int_limits.h:68:1:
|
||||
INT_LEAST64_MAX = 9223372036854775807 // common_int_limits.h:75:1:
|
||||
INT_LEAST64_MIN = -9223372036854775808 // common_int_limits.h:69:1:
|
||||
INT_LEAST8_MAX = 127 // common_int_limits.h:72:1:
|
||||
INT_LEAST8_MIN = -128 // common_int_limits.h:66:1:
|
||||
LITTLE_ENDIAN = 1234 // endian.h:100:1:
|
||||
LOCK_EX = 0x02 // fcntl.h:264:1:
|
||||
LOCK_NB = 0x04 // fcntl.h:265:1:
|
||||
LOCK_SH = 0x01 // fcntl.h:263:1:
|
||||
LOCK_UN = 0x08 // fcntl.h:266:1:
|
||||
NBBY = 8 // types.h:316:1:
|
||||
NFDBITS = 32 // fd_set.h:93:1:
|
||||
NODEVMAJOR = -1 // types.h:258:1:
|
||||
O_ACCMODE = 0x00000003 // fcntl.h:67:1:
|
||||
O_ALT_IO = 0x00040000 // fcntl.h:111:1:
|
||||
O_APPEND = 0x00000008 // fcntl.h:82:1:
|
||||
O_ASYNC = 0x00000040 // fcntl.h:86:1:
|
||||
O_CLOEXEC = 0x00400000 // fcntl.h:116:1:
|
||||
O_CREAT = 0x00000200 // fcntl.h:97:1:
|
||||
O_DIRECT = 0x00080000 // fcntl.h:112:1:
|
||||
O_DIRECTORY = 0x00200000 // fcntl.h:115:1:
|
||||
O_DSYNC = 0x00010000 // fcntl.h:106:1:
|
||||
O_EXCL = 0x00000800 // fcntl.h:99:1:
|
||||
O_EXLOCK = 0x00000020 // fcntl.h:85:1:
|
||||
O_FSYNC = 128 // fcntl.h:158:1:
|
||||
O_NDELAY = 4 // fcntl.h:160:1:
|
||||
O_NOCTTY = 0x00008000 // fcntl.h:102:1:
|
||||
O_NOFOLLOW = 0x00000100 // fcntl.h:94:1:
|
||||
O_NONBLOCK = 0x00000004 // fcntl.h:81:1:
|
||||
O_NOSIGPIPE = 0x01000000 // fcntl.h:122:1:
|
||||
O_RDONLY = 0x00000000 // fcntl.h:64:1:
|
||||
O_RDWR = 0x00000002 // fcntl.h:66:1:
|
||||
O_REGULAR = 0x02000000 // fcntl.h:123:1:
|
||||
O_RSYNC = 0x00020000 // fcntl.h:107:1:
|
||||
O_SEARCH = 0x00800000 // fcntl.h:119:1:
|
||||
O_SHLOCK = 0x00000010 // fcntl.h:84:1:
|
||||
O_SYNC = 0x00000080 // fcntl.h:91:1:
|
||||
O_TRUNC = 0x00000400 // fcntl.h:98:1:
|
||||
O_WRONLY = 0x00000001 // fcntl.h:65:1:
|
||||
PDP_ENDIAN = 3412 // endian.h:102:1:
|
||||
POSIX_FADV_DONTNEED = 4 // fcntl.h:288:1:
|
||||
POSIX_FADV_NOREUSE = 5 // fcntl.h:289:1:
|
||||
POSIX_FADV_NORMAL = 0 // fcntl.h:284:1:
|
||||
POSIX_FADV_RANDOM = 1 // fcntl.h:285:1:
|
||||
POSIX_FADV_SEQUENTIAL = 2 // fcntl.h:286:1:
|
||||
POSIX_FADV_WILLNEED = 3 // fcntl.h:287:1:
|
||||
PTRDIFF_MAX = 9223372036854775807 // common_int_limits.h:121:1:
|
||||
PTRDIFF_MIN = -9223372036854775808 // common_int_limits.h:120:1:
|
||||
SEEK_CUR = 1 // fcntl.h:274:1:
|
||||
SEEK_END = 2 // fcntl.h:277:1:
|
||||
SEEK_SET = 0 // fcntl.h:271:1:
|
||||
SIG_ATOMIC_MAX = 2147483647 // common_int_limits.h:125:1:
|
||||
SIG_ATOMIC_MIN = -2147483648 // common_int_limits.h:124:1:
|
||||
SIZE_MAX = 18446744073709551615 // common_int_limits.h:128:1:
|
||||
UINT16_MAX = 65535 // common_int_limits.h:59:1:
|
||||
UINT32_MAX = 4294967295 // common_int_limits.h:60:1:
|
||||
UINT64_MAX = 18446744073709551615 // common_int_limits.h:61:1:
|
||||
UINT8_MAX = 255 // common_int_limits.h:58:1:
|
||||
UINTMAX_MAX = 18446744073709551615 // common_int_limits.h:112:1:
|
||||
UINTPTR_MAX = 18446744073709551615 // common_int_limits.h:106:1:
|
||||
UINT_FAST16_MAX = 4294967295 // common_int_limits.h:99:1:
|
||||
UINT_FAST32_MAX = 4294967295 // common_int_limits.h:100:1:
|
||||
UINT_FAST64_MAX = 18446744073709551615 // common_int_limits.h:101:1:
|
||||
UINT_FAST8_MAX = 4294967295 // common_int_limits.h:98:1:
|
||||
UINT_LEAST16_MAX = 65535 // common_int_limits.h:79:1:
|
||||
UINT_LEAST32_MAX = 4294967295 // common_int_limits.h:80:1:
|
||||
UINT_LEAST64_MAX = 18446744073709551615 // common_int_limits.h:81:1:
|
||||
UINT_LEAST8_MAX = 255 // common_int_limits.h:78:1:
|
||||
WCHAR_MAX = 0x7fffffff // wchar_limits.h:41:1:
|
||||
WCHAR_MIN = -2147483648 // wchar_limits.h:40:1:
|
||||
WINT_MAX = 0x7fffffff // wchar_limits.h:45:1:
|
||||
WINT_MIN = -2147483648 // wchar_limits.h:44:1:
|
||||
X_AMD64_BYTE_SWAP_H_ = 0 // byte_swap.h:37:1:
|
||||
X_AMD64_INT_CONST_H_ = 0 // int_const.h:33:1:
|
||||
X_AMD64_INT_LIMITS_H_ = 0 // int_limits.h:33:1:
|
||||
X_AMD64_INT_MWGWTYPES_H_ = 0 // int_mwgwtypes.h:33:1:
|
||||
X_AMD64_INT_TYPES_H_ = 0 // int_types.h:35:1:
|
||||
X_AMD64_WCHAR_LIMITS_H_ = 0 // wchar_limits.h:33:1:
|
||||
X_BIG_ENDIAN = 4321 // endian.h:44:1:
|
||||
X_BSD_INT16_T_ = 0 // types.h:65:1:
|
||||
X_BSD_INT32_T_ = 0 // types.h:75:1:
|
||||
X_BSD_INT64_T_ = 0 // types.h:85:1:
|
||||
X_BSD_INT8_T_ = 0 // types.h:55:1:
|
||||
X_BSD_INTPTR_T_ = 0 // stdint.h:80:1:
|
||||
X_BSD_UINT16_T_ = 0 // types.h:70:1:
|
||||
X_BSD_UINT32_T_ = 0 // types.h:80:1:
|
||||
X_BSD_UINT64_T_ = 0 // types.h:90:1:
|
||||
X_BSD_UINT8_T_ = 0 // types.h:60:1:
|
||||
X_BSD_UINTPTR_T_ = 0 // stdint.h:85:1:
|
||||
X_BYTE_ORDER = 1234 // endian_machdep.h:3:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_LIB_PTHREAD_TYPES_H = 0 // pthread_types.h:33:1:
|
||||
X_LITTLE_ENDIAN = 1234 // endian.h:43:1:
|
||||
X_LP64 = 1 // <predefined>:268:1:
|
||||
X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
|
||||
X_PDP_ENDIAN = 3412 // endian.h:45:1:
|
||||
X_PT_BARRIERATTR_DEAD = 0xDEAD0808 // pthread_types.h:278:1:
|
||||
X_PT_BARRIERATTR_MAGIC = 0x88880808 // pthread_types.h:277:1:
|
||||
X_PT_BARRIER_DEAD = 0xDEAD0008 // pthread_types.h:270:1:
|
||||
X_PT_BARRIER_MAGIC = 0x88880008 // pthread_types.h:269:1:
|
||||
X_PT_CONDATTR_DEAD = 0xDEAD0006 // pthread_types.h:197:1:
|
||||
X_PT_CONDATTR_MAGIC = 0x66660006 // pthread_types.h:196:1:
|
||||
X_PT_COND_DEAD = 0xDEAD0005 // pthread_types.h:182:1:
|
||||
X_PT_COND_MAGIC = 0x55550005 // pthread_types.h:181:1:
|
||||
X_PT_MUTEXATTR_DEAD = 0xDEAD0004 // pthread_types.h:167:1:
|
||||
X_PT_MUTEXATTR_MAGIC = 0x44440004 // pthread_types.h:166:1:
|
||||
X_PT_MUTEX_DEAD = 0xDEAD0003 // pthread_types.h:139:1:
|
||||
X_PT_MUTEX_MAGIC = 0x33330003 // pthread_types.h:138:1:
|
||||
X_PT_RWLOCKATTR_DEAD = 0xDEAD0909 // pthread_types.h:253:1:
|
||||
X_PT_RWLOCKATTR_MAGIC = 0x99990909 // pthread_types.h:252:1:
|
||||
X_PT_RWLOCK_DEAD = 0xDEAD0009 // pthread_types.h:236:1:
|
||||
X_PT_RWLOCK_MAGIC = 0x99990009 // pthread_types.h:235:1:
|
||||
X_PT_SPINLOCK_DEAD = 0xDEAD0007 // pthread_types.h:213:1:
|
||||
X_PT_SPINLOCK_MAGIC = 0x77770007 // pthread_types.h:212:1:
|
||||
X_PT_SPINLOCK_PSHARED = 0x00000001 // pthread_types.h:214:1:
|
||||
X_QUAD_HIGHWORD = 1 // endian.h:84:1:
|
||||
X_QUAD_LOWWORD = 0 // endian.h:85:1:
|
||||
X_SIZE_T = 0 // types.h:279:1:
|
||||
X_SYS_ANSI_H_ = 0 // ansi.h:33:1:
|
||||
X_SYS_BSWAP_H_ = 0 // bswap.h:6:1:
|
||||
X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
|
||||
X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
|
||||
X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1:
|
||||
X_SYS_COMMON_INT_LIMITS_H_ = 0 // common_int_limits.h:33:1:
|
||||
X_SYS_COMMON_INT_MWGWTYPES_H_ = 0 // common_int_mwgwtypes.h:33:1:
|
||||
X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1:
|
||||
X_SYS_ENDIAN_H_ = 0 // endian.h:35:1:
|
||||
X_SYS_FCNTL_H_ = 0 // fcntl.h:40:1:
|
||||
X_SYS_FD_SET_H_ = 0 // fd_set.h:35:1:
|
||||
X_SYS_STDINT_H_ = 0 // stdint.h:33:1:
|
||||
X_SYS_TYPES_H_ = 0 // types.h:40:1:
|
||||
X_X86_64_BSWAP_H_ = 0 // bswap.h:6:1:
|
||||
X_X86_64_CDEFS_H_ = 0 // cdefs.h:4:1:
|
||||
X_X86_64_TYPES_H_ = 0 // types.h:35:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
@@ -594,32 +592,32 @@ type X__wctype_t = uintptr /* ansi.h:54:31 */
|
||||
// mbstate_t is an opaque object to keep conversion state, during multibyte
|
||||
// stream conversions. The content must not be referenced by user programs.
|
||||
type X__mbstate_t = struct {
|
||||
F__mbstateL X__int64_t
|
||||
_ [120]byte
|
||||
F__mbstateL X__int64_t
|
||||
F__ccgo_pad1 [120]byte
|
||||
} /* ansi.h:63:3 */
|
||||
|
||||
type X__va_list = X__builtin_va_list /* ansi.h:72:27 */
|
||||
|
||||
type Int8_t = X__int8_t /* types.h:63:18 */
|
||||
type Int8_t = X__int8_t /* types.h:54:18 */
|
||||
|
||||
type Uint8_t = X__uint8_t /* types.h:68:19 */
|
||||
type Uint8_t = X__uint8_t /* types.h:59:19 */
|
||||
|
||||
type Int16_t = X__int16_t /* types.h:73:19 */
|
||||
type Int16_t = X__int16_t /* types.h:64:19 */
|
||||
|
||||
type Uint16_t = X__uint16_t /* types.h:78:20 */
|
||||
type Uint16_t = X__uint16_t /* types.h:69:20 */
|
||||
|
||||
type Int32_t = X__int32_t /* types.h:83:19 */
|
||||
type Int32_t = X__int32_t /* types.h:74:19 */
|
||||
|
||||
type Uint32_t = X__uint32_t /* types.h:88:20 */
|
||||
type Uint32_t = X__uint32_t /* types.h:79:20 */
|
||||
|
||||
type Int64_t = X__int64_t /* types.h:93:19 */
|
||||
type Int64_t = X__int64_t /* types.h:84:19 */
|
||||
|
||||
type Uint64_t = X__uint64_t /* types.h:98:20 */
|
||||
type Uint64_t = X__uint64_t /* types.h:89:20 */
|
||||
|
||||
type U_int8_t = Uint8_t /* types.h:102:18 */
|
||||
type U_int16_t = Uint16_t /* types.h:103:18 */
|
||||
type U_int32_t = Uint32_t /* types.h:104:18 */
|
||||
type U_int64_t = Uint64_t /* types.h:105:18 */
|
||||
type U_int8_t = Uint8_t /* types.h:93:18 */
|
||||
type U_int16_t = Uint16_t /* types.h:94:18 */
|
||||
type U_int32_t = Uint32_t /* types.h:95:18 */
|
||||
type U_int64_t = Uint64_t /* types.h:96:18 */
|
||||
|
||||
// $NetBSD: endian.h,v 1.1 2003/04/26 18:39:40 fvdl Exp $
|
||||
|
||||
@@ -782,15 +780,6 @@ type U_int64_t = Uint64_t /* types.h:105:18 */
|
||||
//
|
||||
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
|
||||
|
||||
// DO NOT EDIT THIS FILE.
|
||||
//
|
||||
// It has been auto-edited by fixincludes from:
|
||||
//
|
||||
// "/usr/include/sys/types.h"
|
||||
//
|
||||
// This had to be done to correct non-standard usages in the
|
||||
// original, manufacturer supplied header file.
|
||||
|
||||
// $NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
|
||||
|
||||
// -
|
||||
@@ -1024,19 +1013,19 @@ type Uint_fast64_t = uint64 /* common_int_mwgwtypes.h:62:32 */
|
||||
type Intmax_t = int64 /* common_int_mwgwtypes.h:66:33 */
|
||||
type Uintmax_t = uint64 /* common_int_mwgwtypes.h:67:32 */
|
||||
|
||||
type U_char = uint8 /* types.h:110:23 */
|
||||
type U_short = uint16 /* types.h:111:24 */
|
||||
type U_int = uint32 /* types.h:112:22 */
|
||||
type U_long = uint64 /* types.h:113:23 */
|
||||
type U_char = uint8 /* types.h:101:23 */
|
||||
type U_short = uint16 /* types.h:102:24 */
|
||||
type U_int = uint32 /* types.h:103:22 */
|
||||
type U_long = uint64 /* types.h:104:23 */
|
||||
|
||||
type Unchar = uint8 /* types.h:115:23 */ // Sys V compatibility
|
||||
type Ushort = uint16 /* types.h:116:24 */ // Sys V compatibility
|
||||
type Uint = uint32 /* types.h:117:22 */ // Sys V compatibility
|
||||
type Ulong = uint64 /* types.h:118:23 */ // Sys V compatibility
|
||||
type Unchar = uint8 /* types.h:106:23 */ // Sys V compatibility
|
||||
type Ushort = uint16 /* types.h:107:24 */ // Sys V compatibility
|
||||
type Uint = uint32 /* types.h:108:22 */ // Sys V compatibility
|
||||
type Ulong = uint64 /* types.h:109:23 */ // Sys V compatibility
|
||||
|
||||
type U_quad_t = Uint64_t /* types.h:121:18 */ // quads
|
||||
type Quad_t = Int64_t /* types.h:122:18 */
|
||||
type Qaddr_t = uintptr /* types.h:123:16 */
|
||||
type U_quad_t = Uint64_t /* types.h:112:18 */ // quads
|
||||
type Quad_t = Int64_t /* types.h:113:18 */
|
||||
type Qaddr_t = uintptr /* types.h:114:16 */
|
||||
|
||||
// The types longlong_t and u_longlong_t exist for use with the
|
||||
// Sun-derived XDR routines involving these types, and their usage
|
||||
@@ -1046,69 +1035,69 @@ type Qaddr_t = uintptr /* types.h:123:16 */
|
||||
// respectively. Portable programs that need 64-bit types should use
|
||||
// the C99 types int64_t and uint64_t instead.
|
||||
|
||||
type Longlong_t = Int64_t /* types.h:135:18 */ // for XDR
|
||||
type U_longlong_t = Uint64_t /* types.h:136:18 */ // for XDR
|
||||
type Longlong_t = Int64_t /* types.h:126:18 */ // for XDR
|
||||
type U_longlong_t = Uint64_t /* types.h:127:18 */ // for XDR
|
||||
|
||||
type Blkcnt_t = Int64_t /* types.h:138:18 */ // fs block count
|
||||
type Blksize_t = Int32_t /* types.h:139:18 */ // fs optimal block size
|
||||
type Blkcnt_t = Int64_t /* types.h:129:18 */ // fs block count
|
||||
type Blksize_t = Int32_t /* types.h:130:18 */ // fs optimal block size
|
||||
|
||||
type Fsblkcnt_t = X__fsblkcnt_t /* types.h:142:22 */ // fs block count (statvfs)
|
||||
type Fsblkcnt_t = X__fsblkcnt_t /* types.h:133:22 */ // fs block count (statvfs)
|
||||
|
||||
type Fsfilcnt_t = X__fsfilcnt_t /* types.h:147:22 */ // fs file count
|
||||
type Fsfilcnt_t = X__fsfilcnt_t /* types.h:138:22 */ // fs file count
|
||||
|
||||
// We don't and shouldn't use caddr_t in the kernel anymore
|
||||
type Caddr_t = X__caddr_t /* types.h:154:19 */ // core address
|
||||
type Caddr_t = X__caddr_t /* types.h:145:19 */ // core address
|
||||
|
||||
type Daddr_t = Int64_t /* types.h:163:18 */ // disk address
|
||||
type Daddr_t = Int64_t /* types.h:154:18 */ // disk address
|
||||
|
||||
type Dev_t = Uint64_t /* types.h:166:18 */ // device number
|
||||
type Fixpt_t = Uint32_t /* types.h:167:18 */ // fixed point number
|
||||
type Dev_t = Uint64_t /* types.h:157:18 */ // device number
|
||||
type Fixpt_t = Uint32_t /* types.h:158:18 */ // fixed point number
|
||||
|
||||
type Gid_t = X__gid_t /* types.h:170:18 */ // group id
|
||||
type Gid_t = X__gid_t /* types.h:161:18 */ // group id
|
||||
|
||||
type Id_t = Uint32_t /* types.h:174:18 */ // group id, process id or user id
|
||||
type Ino_t = Uint64_t /* types.h:175:18 */ // inode number
|
||||
type Key_t = int64 /* types.h:176:15 */ // IPC key (for Sys V IPC)
|
||||
type Id_t = Uint32_t /* types.h:165:18 */ // group id, process id or user id
|
||||
type Ino_t = Uint64_t /* types.h:166:18 */ // inode number
|
||||
type Key_t = int64 /* types.h:167:15 */ // IPC key (for Sys V IPC)
|
||||
|
||||
type Mode_t = X__mode_t /* types.h:179:18 */ // permissions
|
||||
type Mode_t = X__mode_t /* types.h:170:18 */ // permissions
|
||||
|
||||
type Nlink_t = Uint32_t /* types.h:183:18 */ // link count
|
||||
type Nlink_t = Uint32_t /* types.h:174:18 */ // link count
|
||||
|
||||
type Off_t = X__off_t /* types.h:186:18 */ // file offset
|
||||
type Off_t = X__off_t /* types.h:177:18 */ // file offset
|
||||
|
||||
type Pid_t = X__pid_t /* types.h:191:18 */ // process id
|
||||
type Lwpid_t = Int32_t /* types.h:194:18 */ // LWP id
|
||||
type Rlim_t = Uint64_t /* types.h:195:18 */ // resource limit
|
||||
type Segsz_t = Int32_t /* types.h:196:18 */ // segment size
|
||||
type Swblk_t = Int32_t /* types.h:197:18 */ // swap offset
|
||||
type Pid_t = X__pid_t /* types.h:182:18 */ // process id
|
||||
type Lwpid_t = Int32_t /* types.h:185:18 */ // LWP id
|
||||
type Rlim_t = Uint64_t /* types.h:186:18 */ // resource limit
|
||||
type Segsz_t = Int32_t /* types.h:187:18 */ // segment size
|
||||
type Swblk_t = Int32_t /* types.h:188:18 */ // swap offset
|
||||
|
||||
type Uid_t = X__uid_t /* types.h:200:18 */ // user id
|
||||
type Uid_t = X__uid_t /* types.h:191:18 */ // user id
|
||||
|
||||
type Mqd_t = int32 /* types.h:204:14 */
|
||||
type Mqd_t = int32 /* types.h:195:14 */
|
||||
|
||||
type Cpuid_t = uint64 /* types.h:206:23 */
|
||||
type Cpuid_t = uint64 /* types.h:197:23 */
|
||||
|
||||
type Psetid_t = int32 /* types.h:208:14 */
|
||||
type Psetid_t = int32 /* types.h:199:14 */
|
||||
|
||||
type X__cpu_simple_lock_t = X__cpu_simple_lock_nv_t /* types.h:210:41 */
|
||||
type X__cpu_simple_lock_t = X__cpu_simple_lock_nv_t /* types.h:201:41 */
|
||||
|
||||
// Major, minor numbers, dev_t's.
|
||||
type X__devmajor_t = Int32_t /* types.h:264:17 */
|
||||
type X__devminor_t = Int32_t /* types.h:264:31 */
|
||||
type X__devmajor_t = Int32_t /* types.h:255:17 */
|
||||
type X__devminor_t = Int32_t /* types.h:255:31 */
|
||||
|
||||
type Clock_t = uint32 /* types.h:277:24 */
|
||||
type Clock_t = uint32 /* types.h:268:24 */
|
||||
|
||||
type Ssize_t = int64 /* types.h:301:24 */
|
||||
type Ssize_t = int64 /* types.h:284:24 */
|
||||
|
||||
type Time_t = X__int64_t /* types.h:306:23 */
|
||||
type Time_t = X__int64_t /* types.h:289:23 */
|
||||
|
||||
type Clockid_t = int32 /* types.h:311:26 */
|
||||
type Clockid_t = int32 /* types.h:294:26 */
|
||||
|
||||
type Timer_t = int32 /* types.h:316:24 */
|
||||
type Timer_t = int32 /* types.h:299:24 */
|
||||
|
||||
type Suseconds_t = int32 /* types.h:321:27 */
|
||||
type Suseconds_t = int32 /* types.h:304:27 */
|
||||
|
||||
type Useconds_t = uint32 /* types.h:326:26 */
|
||||
type Useconds_t = uint32 /* types.h:309:26 */
|
||||
|
||||
// $NetBSD: fd_set.h,v 1.7 2018/06/24 12:05:40 kamil Exp $
|
||||
|
||||
@@ -1288,9 +1277,9 @@ type Fd_set = Fd_set1 /* fd_set.h:68:3 */
|
||||
|
||||
// Expose our internals if we are not required to hide them.
|
||||
|
||||
type Kauth_cred_t = uintptr /* types.h:335:27 */
|
||||
type Kauth_cred_t = uintptr /* types.h:318:27 */
|
||||
|
||||
type Pri_t = int32 /* types.h:337:13 */
|
||||
type Pri_t = int32 /* types.h:320:13 */
|
||||
|
||||
// $NetBSD: pthread_types.h,v 1.23 2017/09/09 23:21:45 kamil Exp $
|
||||
|
||||
@@ -1351,24 +1340,24 @@ type X__pthread_mutex_st = struct {
|
||||
Fptm_pad1 [3]Uint8_t
|
||||
F__8 struct{ Fptm_ceiling uint8 }
|
||||
Fptm_pad2 [3]Uint8_t
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fptm_owner Pthread_t
|
||||
Fptm_waiters uintptr
|
||||
Fptm_recursed uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad2 [4]byte
|
||||
Fptm_spare2 uintptr
|
||||
} /* pthread_types.h:66:1 */
|
||||
|
||||
type X__pthread_mutexattr_st = struct {
|
||||
Fptma_magic uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fptma_private uintptr
|
||||
} /* pthread_types.h:67:1 */
|
||||
|
||||
type X__pthread_cond_st = struct {
|
||||
Fptc_magic uint32
|
||||
Fptc_lock X__pthread_spin_t
|
||||
_ [3]byte
|
||||
F__ccgo_pad1 [3]byte
|
||||
Fptc_waiters Pthread_queue_t
|
||||
Fptc_mutex uintptr
|
||||
Fptc_private uintptr
|
||||
@@ -1376,43 +1365,43 @@ type X__pthread_cond_st = struct {
|
||||
|
||||
type X__pthread_condattr_st = struct {
|
||||
Fptca_magic uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fptca_private uintptr
|
||||
} /* pthread_types.h:69:1 */
|
||||
|
||||
type X__pthread_rwlock_st = struct {
|
||||
Fptr_magic uint32
|
||||
Fptr_interlock X__pthread_spin_t
|
||||
_ [3]byte
|
||||
F__ccgo_pad1 [3]byte
|
||||
Fptr_rblocked Pthread_queue_t
|
||||
Fptr_wblocked Pthread_queue_t
|
||||
Fptr_nreaders uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad2 [4]byte
|
||||
Fptr_owner Pthread_t
|
||||
Fptr_private uintptr
|
||||
} /* pthread_types.h:71:1 */
|
||||
|
||||
type X__pthread_rwlockattr_st = struct {
|
||||
Fptra_magic uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fptra_private uintptr
|
||||
} /* pthread_types.h:72:1 */
|
||||
|
||||
type X__pthread_barrier_st = struct {
|
||||
Fptb_magic uint32
|
||||
Fptb_lock Pthread_spin_t
|
||||
_ [3]byte
|
||||
F__ccgo_pad1 [3]byte
|
||||
Fptb_waiters Pthread_queue_t
|
||||
Fptb_initcount uint32
|
||||
Fptb_curcount uint32
|
||||
Fptb_generation uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad2 [4]byte
|
||||
Fptb_private uintptr
|
||||
} /* pthread_types.h:73:1 */
|
||||
|
||||
type X__pthread_barrierattr_st = struct {
|
||||
Fptba_magic uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fptba_private uintptr
|
||||
} /* pthread_types.h:74:1 */
|
||||
|
||||
@@ -1423,17 +1412,17 @@ type Pthread_mutexattr_t = X__pthread_mutexattr_st /* pthread_types.h:79:39 */
|
||||
type Pthread_cond_t = X__pthread_cond_st /* pthread_types.h:80:34 */
|
||||
type Pthread_condattr_t = X__pthread_condattr_st /* pthread_types.h:81:38 */
|
||||
type X__pthread_once_st = struct {
|
||||
Fpto_mutex Pthread_mutex_t
|
||||
Fpto_done int32
|
||||
_ [4]byte
|
||||
Fpto_mutex Pthread_mutex_t
|
||||
Fpto_done int32
|
||||
F__ccgo_pad1 [4]byte
|
||||
} /* pthread_types.h:82:9 */
|
||||
|
||||
type Pthread_once_t = X__pthread_once_st /* pthread_types.h:82:34 */
|
||||
type X__pthread_spinlock_st = struct {
|
||||
Fpts_magic uint32
|
||||
Fpts_spin X__pthread_spin_t
|
||||
_ [3]byte
|
||||
Fpts_flags int32
|
||||
Fpts_magic uint32
|
||||
Fpts_spin X__pthread_spin_t
|
||||
F__ccgo_pad1 [3]byte
|
||||
Fpts_flags int32
|
||||
} /* pthread_types.h:83:9 */
|
||||
|
||||
type Pthread_spinlock_t = X__pthread_spinlock_st /* pthread_types.h:83:38 */
|
||||
|
||||
+183
-169
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fcntl/fcntl_windows_386.go -pkgname fcntl', DO NOT EDIT.
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -ignore-unsupported-alignment -o fcntl/fcntl_windows_386.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
@@ -15,147 +15,148 @@ 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
|
||||
F_OK = 0
|
||||
MINGW_DDK_H = 0
|
||||
MINGW_DDRAW_VERSION = 7
|
||||
MINGW_HAS_DDK_H = 1
|
||||
MINGW_HAS_DDRAW_H = 1
|
||||
MINGW_HAS_SECURE_API = 1
|
||||
MINGW_SDK_INIT = 0
|
||||
O_ACCMODE = 3
|
||||
O_APPEND = 8
|
||||
O_BINARY = 32768
|
||||
O_CREAT = 256
|
||||
O_EXCL = 1024
|
||||
O_NOINHERIT = 128
|
||||
O_RANDOM = 16
|
||||
O_RAW = 32768
|
||||
O_RDONLY = 0
|
||||
O_RDWR = 2
|
||||
O_SEQUENTIAL = 32
|
||||
O_TEMPORARY = 64
|
||||
O_TEXT = 16384
|
||||
O_TRUNC = 512
|
||||
O_WRONLY = 1
|
||||
R_OK = 4
|
||||
UNALIGNED = 0
|
||||
USE___UUIDOF = 0
|
||||
WIN32 = 1
|
||||
WINNT = 1
|
||||
W_OK = 2
|
||||
X_OK = 1
|
||||
X_AGLOBAL = 0
|
||||
X_ANONYMOUS_STRUCT = 0
|
||||
X_ANONYMOUS_UNION = 0
|
||||
X_ARGMAX = 100
|
||||
X_A_ARCH = 0x20
|
||||
X_A_HIDDEN = 0x02
|
||||
X_A_NORMAL = 0x00
|
||||
X_A_RDONLY = 0x01
|
||||
X_A_SUBDIR = 0x10
|
||||
X_A_SYSTEM = 0x04
|
||||
X_CONST_RETURN = 0
|
||||
X_CRTNOALIAS = 0
|
||||
X_CRTRESTRICT = 0
|
||||
X_CRT_ALTERNATIVE_IMPORTED = 0
|
||||
X_CRT_DIRECTORY_DEFINED = 0
|
||||
X_CRT_MANAGED_HEAP_DEPRECATE = 0
|
||||
X_CRT_MEMORY_DEFINED = 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_DLL = 0
|
||||
X_ERRCODE_DEFINED = 0
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_FILE_OFFSET_BITS_SET_LSEEK = 0
|
||||
X_FILE_OFFSET_BITS_SET_OFFT = 0
|
||||
X_FINDDATA_T_DEFINED = 0
|
||||
X_FSIZE_T_DEFINED = 0
|
||||
X_INC_CRTDEFS = 0
|
||||
X_INC_CRTDEFS_MACRO = 0
|
||||
X_INC_FCNTL = 0
|
||||
X_INC_MINGW_SECAPI = 0
|
||||
X_INC_STRING = 0
|
||||
X_INC_STRING_S = 0
|
||||
X_INC_VADEFS = 0
|
||||
X_INC__MINGW_H = 0
|
||||
X_INT128_DEFINED = 0
|
||||
X_INTEGRAL_MAX_BITS = 64
|
||||
X_INTPTR_T_DEFINED = 0
|
||||
X_IO_H_ = 0
|
||||
X_MT = 0
|
||||
X_M_IX86 = 600
|
||||
X_NLSCMPERROR = 2147483647
|
||||
X_NLSCMP_DEFINED = 0
|
||||
X_OFF64_T_DEFINED = 0
|
||||
X_OFF_T_ = 0
|
||||
X_OFF_T_DEFINED = 0
|
||||
X_O_ACCMODE = 3
|
||||
X_O_APPEND = 0x0008
|
||||
X_O_BINARY = 0x8000
|
||||
X_O_CREAT = 0x0100
|
||||
X_O_EXCL = 0x0400
|
||||
X_O_NOINHERIT = 0x0080
|
||||
X_O_RANDOM = 0x0010
|
||||
X_O_RAW = 32768
|
||||
X_O_RDONLY = 0x0000
|
||||
X_O_RDWR = 0x0002
|
||||
X_O_SEQUENTIAL = 0x0020
|
||||
X_O_SHORT_LIVED = 0x1000
|
||||
X_O_TEMPORARY = 0x0040
|
||||
X_O_TEXT = 0x4000
|
||||
X_O_TRUNC = 0x0200
|
||||
X_O_U16TEXT = 0x20000
|
||||
X_O_U8TEXT = 0x40000
|
||||
X_O_WRONLY = 0x0001
|
||||
X_O_WTEXT = 0x10000
|
||||
X_PGLOBAL = 0
|
||||
X_PTRDIFF_T_ = 0
|
||||
X_PTRDIFF_T_DEFINED = 0
|
||||
X_RSIZE_T_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_UINTPTR_T_DEFINED = 0
|
||||
X_USE_32BIT_TIME_T = 0
|
||||
X_VA_LIST_DEFINED = 0
|
||||
X_W64 = 0
|
||||
X_WCHAR_T_DEFINED = 0
|
||||
X_WCTYPE_T_DEFINED = 0
|
||||
X_WConst_return = 0
|
||||
X_WFINDDATA_T_DEFINED = 0
|
||||
X_WIN32 = 1
|
||||
X_WIN32_WINNT = 0x502
|
||||
X_WINT_T = 0
|
||||
X_WIO_DEFINED = 0
|
||||
X_WSTRING_DEFINED = 0
|
||||
X_WSTRING_S_DEFINED = 0
|
||||
X_X86_ = 1
|
||||
I386 = 1
|
||||
DUMMYSTRUCTNAME = 0 // _mingw.h:519:1:
|
||||
DUMMYSTRUCTNAME1 = 0 // _mingw.h:520:1:
|
||||
DUMMYSTRUCTNAME2 = 0 // _mingw.h:521:1:
|
||||
DUMMYSTRUCTNAME3 = 0 // _mingw.h:522:1:
|
||||
DUMMYSTRUCTNAME4 = 0 // _mingw.h:523:1:
|
||||
DUMMYSTRUCTNAME5 = 0 // _mingw.h:524:1:
|
||||
DUMMYUNIONNAME = 0 // _mingw.h:497:1:
|
||||
DUMMYUNIONNAME1 = 0 // _mingw.h:498:1:
|
||||
DUMMYUNIONNAME2 = 0 // _mingw.h:499:1:
|
||||
DUMMYUNIONNAME3 = 0 // _mingw.h:500:1:
|
||||
DUMMYUNIONNAME4 = 0 // _mingw.h:501:1:
|
||||
DUMMYUNIONNAME5 = 0 // _mingw.h:502:1:
|
||||
DUMMYUNIONNAME6 = 0 // _mingw.h:503:1:
|
||||
DUMMYUNIONNAME7 = 0 // _mingw.h:504:1:
|
||||
DUMMYUNIONNAME8 = 0 // _mingw.h:505:1:
|
||||
DUMMYUNIONNAME9 = 0 // _mingw.h:506:1:
|
||||
F_OK = 0 // io.h:182:1:
|
||||
MINGW_DDK_H = 0 // _mingw_ddk.h:2:1:
|
||||
MINGW_HAS_DDK_H = 1 // _mingw_ddk.h:4:1:
|
||||
MINGW_HAS_SECURE_API = 1 // _mingw.h:602:1:
|
||||
MINGW_SDK_INIT = 0 // _mingw.h:598:1:
|
||||
O_ACCMODE = 3 // fcntl.h:50:1:
|
||||
O_APPEND = 8 // fcntl.h:39:1:
|
||||
O_BINARY = 32768 // fcntl.h:44:1:
|
||||
O_CREAT = 256 // fcntl.h:40:1:
|
||||
O_EXCL = 1024 // fcntl.h:42:1:
|
||||
O_NOINHERIT = 128 // fcntl.h:47:1:
|
||||
O_RANDOM = 16 // fcntl.h:49:1:
|
||||
O_RAW = 32768 // fcntl.h:45:1:
|
||||
O_RDONLY = 0 // fcntl.h:36:1:
|
||||
O_RDWR = 2 // fcntl.h:38:1:
|
||||
O_SEQUENTIAL = 32 // fcntl.h:48:1:
|
||||
O_TEMPORARY = 64 // fcntl.h:46:1:
|
||||
O_TEXT = 16384 // fcntl.h:43:1:
|
||||
O_TRUNC = 512 // fcntl.h:41:1:
|
||||
O_WRONLY = 1 // fcntl.h:37:1:
|
||||
R_OK = 4 // io.h:185:1:
|
||||
UNALIGNED = 0 // _mingw.h:384:1:
|
||||
USE___UUIDOF = 0 // _mingw.h:77:1:
|
||||
WIN32 = 1 // <predefined>:258:1:
|
||||
WINNT = 1 // <predefined>:306:1:
|
||||
W_OK = 2 // io.h:184:1:
|
||||
X_OK = 1 // io.h:183:1:
|
||||
X_AGLOBAL = 0 // _mingw.h:346:1:
|
||||
X_ANONYMOUS_STRUCT = 0 // _mingw.h:474:1:
|
||||
X_ANONYMOUS_UNION = 0 // _mingw.h:473:1:
|
||||
X_ARGMAX = 100 // _mingw.h:402:1:
|
||||
X_A_ARCH = 0x20 // io.h:156:1:
|
||||
X_A_HIDDEN = 0x02 // io.h:153:1:
|
||||
X_A_NORMAL = 0x00 // io.h:151:1:
|
||||
X_A_RDONLY = 0x01 // io.h:152:1:
|
||||
X_A_SUBDIR = 0x10 // io.h:155:1:
|
||||
X_A_SYSTEM = 0x04 // io.h:154:1:
|
||||
X_CONST_RETURN = 0 // _mingw.h:377:1:
|
||||
X_CRTNOALIAS = 0 // corecrt.h:29:1:
|
||||
X_CRTRESTRICT = 0 // corecrt.h:33:1:
|
||||
X_CRT_ALTERNATIVE_IMPORTED = 0 // _mingw.h:313:1:
|
||||
X_CRT_DIRECTORY_DEFINED = 0 // io.h:214:1:
|
||||
X_CRT_MANAGED_HEAP_DEPRECATE = 0 // _mingw.h:361:1:
|
||||
X_CRT_MEMORY_DEFINED = 0 // string.h:44:1:
|
||||
X_CRT_PACKING = 8 // corecrt.h:14:1:
|
||||
X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES = 0 // _mingw_secapi.h:34:1:
|
||||
X_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY = 0 // _mingw_secapi.h:35:1:
|
||||
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES = 0 // _mingw_secapi.h:36:1:
|
||||
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT = 0 // _mingw_secapi.h:37:1:
|
||||
X_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY = 0 // _mingw_secapi.h:38:1:
|
||||
X_CRT_USE_WINAPI_FAMILY_DESKTOP_APP = 0 // corecrt.h:501:1:
|
||||
X_DLL = 0 // _mingw.h:326:1:
|
||||
X_ERRCODE_DEFINED = 0 // corecrt.h:117:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_FILE_OFFSET_BITS_SET_LSEEK = 0 // io.h:350:1:
|
||||
X_FILE_OFFSET_BITS_SET_OFFT = 0 // _mingw_off_t.h:21:1:
|
||||
X_FINDDATA_T_DEFINED = 0 // io.h:89:1:
|
||||
X_FSIZE_T_DEFINED = 0 // io.h:30:1:
|
||||
X_ILP32 = 1 // <predefined>:211:1:
|
||||
X_INC_CORECRT = 0 // corecrt.h:8:1:
|
||||
X_INC_CRTDEFS = 0 // crtdefs.h:8:1:
|
||||
X_INC_CRTDEFS_MACRO = 0 // _mingw_mac.h:8:1:
|
||||
X_INC_FCNTL = 0 // fcntl.h:11:1:
|
||||
X_INC_MINGW_SECAPI = 0 // _mingw_secapi.h:8:1:
|
||||
X_INC_STRING = 0 // string.h:7:1:
|
||||
X_INC_STRING_S = 0 // string_s.h:7:1:
|
||||
X_INC_VADEFS = 0 // vadefs.h:7:1:
|
||||
X_INC__MINGW_H = 0 // _mingw.h:8:1:
|
||||
X_INT128_DEFINED = 0 // _mingw.h:237:1:
|
||||
X_INTEGRAL_MAX_BITS = 64 // <predefined>:320:1:
|
||||
X_INTPTR_T_DEFINED = 0 // corecrt.h:62:1:
|
||||
X_IO_H_ = 0 // io.h:7:1:
|
||||
X_MT = 0 // _mingw.h:330:1:
|
||||
X_M_IX86 = 600 // _mingw_mac.h:54:1:
|
||||
X_NLSCMPERROR = 2147483647 // string.h:26:1:
|
||||
X_NLSCMP_DEFINED = 0 // string.h:25:1:
|
||||
X_OFF64_T_DEFINED = 0 // _mingw_off_t.h:12:1:
|
||||
X_OFF_T_ = 0 // _mingw_off_t.h:4:1:
|
||||
X_OFF_T_DEFINED = 0 // _mingw_off_t.h:2:1:
|
||||
X_O_ACCMODE = 3 // fcntl.h:25:1:
|
||||
X_O_APPEND = 0x0008 // fcntl.h:16:1:
|
||||
X_O_BINARY = 0x8000 // fcntl.h:21:1:
|
||||
X_O_CREAT = 0x0100 // fcntl.h:17:1:
|
||||
X_O_EXCL = 0x0400 // fcntl.h:19:1:
|
||||
X_O_NOINHERIT = 0x0080 // fcntl.h:28:1:
|
||||
X_O_RANDOM = 0x0010 // fcntl.h:33:1:
|
||||
X_O_RAW = 32768 // fcntl.h:27:1:
|
||||
X_O_RDONLY = 0x0000 // fcntl.h:13:1:
|
||||
X_O_RDWR = 0x0002 // fcntl.h:15:1:
|
||||
X_O_SEQUENTIAL = 0x0020 // fcntl.h:32:1:
|
||||
X_O_SHORT_LIVED = 0x1000 // fcntl.h:30:1:
|
||||
X_O_TEMPORARY = 0x0040 // fcntl.h:29:1:
|
||||
X_O_TEXT = 0x4000 // fcntl.h:20:1:
|
||||
X_O_TRUNC = 0x0200 // fcntl.h:18:1:
|
||||
X_O_U16TEXT = 0x20000 // fcntl.h:23:1:
|
||||
X_O_U8TEXT = 0x40000 // fcntl.h:24:1:
|
||||
X_O_WRONLY = 0x0001 // fcntl.h:14:1:
|
||||
X_O_WTEXT = 0x10000 // fcntl.h:22:1:
|
||||
X_PGLOBAL = 0 // _mingw.h:342:1:
|
||||
X_PTRDIFF_T_ = 0 // corecrt.h:90:1:
|
||||
X_PTRDIFF_T_DEFINED = 0 // corecrt.h:88:1:
|
||||
X_RSIZE_T_DEFINED = 0 // corecrt.h:58:1:
|
||||
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD // _mingw.h:349:1:
|
||||
X_SIZE_T_DEFINED = 0 // corecrt.h:37:1:
|
||||
X_SSIZE_T_DEFINED = 0 // corecrt.h:47:1:
|
||||
X_TAGLC_ID_DEFINED = 0 // corecrt.h:447:1:
|
||||
X_THREADLOCALEINFO = 0 // corecrt.h:456:1:
|
||||
X_TIME32_T_DEFINED = 0 // corecrt.h:122:1:
|
||||
X_TIME64_T_DEFINED = 0 // corecrt.h:127:1:
|
||||
X_TIME_T_DEFINED = 0 // corecrt.h:139:1:
|
||||
X_UINTPTR_T_DEFINED = 0 // corecrt.h:75:1:
|
||||
X_USE_32BIT_TIME_T = 0 // _mingw.h:372:1:
|
||||
X_VA_LIST_DEFINED = 0 // <builtin>:55:1:
|
||||
X_W64 = 0 // _mingw.h:296:1:
|
||||
X_WCHAR_T_DEFINED = 0 // corecrt.h:101:1:
|
||||
X_WCTYPE_T_DEFINED = 0 // corecrt.h:108:1:
|
||||
X_WConst_return = 0 // string.h:41:1:
|
||||
X_WFINDDATA_T_DEFINED = 0 // io.h:148:1:
|
||||
X_WIN32 = 1 // <predefined>:164:1:
|
||||
X_WIN32_WINNT = 0x502 // _mingw.h:233:1:
|
||||
X_WINT_T = 0 // corecrt.h:110:1:
|
||||
X_WIO_DEFINED = 0 // io.h:295:1:
|
||||
X_WSTRING_DEFINED = 0 // string.h:129:1:
|
||||
X_WSTRING_S_DEFINED = 0 // string_s.h:48:1:
|
||||
X_X86_ = 1 // <predefined>:169:1:
|
||||
I386 = 1 // <predefined>:171:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int32 /* <builtin>:3:26 */
|
||||
@@ -188,6 +189,11 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
|
||||
// This file is part of the mingw-w64 runtime package.
|
||||
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
||||
|
||||
// *
|
||||
// This file has no copyright assigned and is placed in the Public Domain.
|
||||
// This file is part of the mingw-w64 runtime package.
|
||||
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
||||
|
||||
// This macro holds an monotonic increasing value, which indicates
|
||||
// a specific fix/patch is present on trunk. This value isn't related to
|
||||
// minor/major version-macros. It is increased on demand, if a big
|
||||
@@ -208,6 +214,12 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
|
||||
// MinGW-w64 has some additional C99 printf/scanf feature support.
|
||||
// So we add some helper macros to ease recognition of them.
|
||||
|
||||
// If _FORTIFY_SOURCE is enabled, some inline functions may use
|
||||
// __builtin_va_arg_pack(). GCC may report an error if the address
|
||||
// of such a function is used. Set _FORTIFY_VA_ARG=0 in this case.
|
||||
|
||||
// Enable workaround for ABI incompatibility on affected platforms
|
||||
|
||||
// *
|
||||
// This file has no copyright assigned and is placed in the Public Domain.
|
||||
// This file is part of the mingw-w64 runtime package.
|
||||
@@ -248,26 +260,28 @@ type Va_list = X__builtin_va_list /* <builtin>:50:27 */
|
||||
// This file is part of the mingw-w64 runtime package.
|
||||
// No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
||||
|
||||
// for backward compatibility
|
||||
|
||||
type X__gnuc_va_list = X__builtin_va_list /* vadefs.h:24:29 */
|
||||
|
||||
type Ssize_t = int32 /* crtdefs.h:47:13 */
|
||||
type Ssize_t = int32 /* corecrt.h:52:13 */
|
||||
|
||||
type Rsize_t = Size_t /* crtdefs.h:52:16 */
|
||||
type Rsize_t = Size_t /* corecrt.h:57:16 */
|
||||
|
||||
type Intptr_t = int32 /* crtdefs.h:64:13 */
|
||||
type Intptr_t = int32 /* corecrt.h:69:13 */
|
||||
|
||||
type Uintptr_t = uint32 /* crtdefs.h:77:22 */
|
||||
type Uintptr_t = uint32 /* corecrt.h:82:22 */
|
||||
|
||||
type Wint_t = uint16 /* crtdefs.h:106:24 */
|
||||
type Wctype_t = uint16 /* crtdefs.h:107:24 */
|
||||
type Wint_t = uint16 /* corecrt.h:111:24 */
|
||||
type Wctype_t = uint16 /* corecrt.h:112:24 */
|
||||
|
||||
type Errno_t = int32 /* crtdefs.h:113:13 */
|
||||
type Errno_t = int32 /* corecrt.h:118:13 */
|
||||
|
||||
type X__time32_t = int32 /* crtdefs.h:118:14 */
|
||||
type X__time32_t = int32 /* corecrt.h:123:14 */
|
||||
|
||||
type X__time64_t = int64 /* crtdefs.h:123:35 */
|
||||
type X__time64_t = int64 /* corecrt.h:128:35 */
|
||||
|
||||
type Time_t = X__time32_t /* crtdefs.h:136:20 */
|
||||
type Time_t = X__time32_t /* corecrt.h:141:20 */
|
||||
|
||||
type Threadlocaleinfostruct = struct {
|
||||
Frefcount int32
|
||||
@@ -293,29 +307,29 @@ type Threadlocaleinfostruct = struct {
|
||||
Fpclmap uintptr
|
||||
Fpcumap uintptr
|
||||
Flc_time_curr uintptr
|
||||
} /* crtdefs.h:422:1 */
|
||||
} /* corecrt.h:435:1 */
|
||||
|
||||
type Pthreadlocinfo = uintptr /* crtdefs.h:424:39 */
|
||||
type Pthreadmbcinfo = uintptr /* crtdefs.h:425:36 */
|
||||
type Pthreadlocinfo = uintptr /* corecrt.h:437:39 */
|
||||
type Pthreadmbcinfo = uintptr /* corecrt.h:438:36 */
|
||||
|
||||
type Localeinfo_struct = struct {
|
||||
Flocinfo Pthreadlocinfo
|
||||
Fmbcinfo Pthreadmbcinfo
|
||||
} /* crtdefs.h:428:9 */
|
||||
} /* corecrt.h:441:9 */
|
||||
|
||||
type X_locale_tstruct = Localeinfo_struct /* crtdefs.h:431:3 */
|
||||
type X_locale_t = uintptr /* crtdefs.h:431:19 */
|
||||
type X_locale_tstruct = Localeinfo_struct /* corecrt.h:444:3 */
|
||||
type X_locale_t = uintptr /* corecrt.h:444:19 */
|
||||
|
||||
type TagLC_ID = struct {
|
||||
FwLanguage uint16
|
||||
FwCountry uint16
|
||||
FwCodePage uint16
|
||||
} /* crtdefs.h:422:1 */
|
||||
} /* corecrt.h:435:1 */
|
||||
|
||||
type LC_ID = TagLC_ID /* crtdefs.h:439:3 */
|
||||
type LPLC_ID = uintptr /* crtdefs.h:439:9 */
|
||||
type LC_ID = TagLC_ID /* corecrt.h:452:3 */
|
||||
type LPLC_ID = uintptr /* corecrt.h:452:9 */
|
||||
|
||||
type Threadlocinfo = Threadlocaleinfostruct /* crtdefs.h:468:3 */
|
||||
type Threadlocinfo = Threadlocaleinfostruct /* corecrt.h:487:3 */
|
||||
type X_fsize_t = uint32 /* io.h:29:25 */
|
||||
|
||||
type X_finddata32_t = struct {
|
||||
@@ -334,12 +348,12 @@ type X_finddata32i64_t = struct {
|
||||
Ftime_write X__time32_t
|
||||
Fsize int64
|
||||
Fname [260]int8
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
} /* io.h:44:3 */
|
||||
|
||||
type X_finddata64i32_t = struct {
|
||||
Fattrib uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Ftime_create X__time64_t
|
||||
Ftime_access X__time64_t
|
||||
Ftime_write X__time64_t
|
||||
@@ -349,13 +363,13 @@ type X_finddata64i32_t = struct {
|
||||
|
||||
type X__finddata64_t = struct {
|
||||
Fattrib uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Ftime_create X__time64_t
|
||||
Ftime_access X__time64_t
|
||||
Ftime_write X__time64_t
|
||||
Fsize int64
|
||||
Fname [260]int8
|
||||
_ [4]byte
|
||||
F__ccgo_pad2 [4]byte
|
||||
} /* io.h:62:3 */
|
||||
|
||||
type X_wfinddata32_t = struct {
|
||||
@@ -378,18 +392,18 @@ type X_wfinddata32i64_t = struct {
|
||||
|
||||
type X_wfinddata64i32_t = struct {
|
||||
Fattrib uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Ftime_create X__time64_t
|
||||
Ftime_access X__time64_t
|
||||
Ftime_write X__time64_t
|
||||
Fsize X_fsize_t
|
||||
Fname [260]Wchar_t
|
||||
_ [4]byte
|
||||
F__ccgo_pad2 [4]byte
|
||||
} /* io.h:112:3 */
|
||||
|
||||
type X_wfinddata64_t = struct {
|
||||
Fattrib uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Ftime_create X__time64_t
|
||||
Ftime_access X__time64_t
|
||||
Ftime_write X__time64_t
|
||||
|
||||
+9
-8
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo fcntl/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -header -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fcntl/fcntl_windows_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 -o fcntl\fcntl_windows_amd64.go -pkgname fcntl', DO NOT EDIT.
|
||||
|
||||
package fcntl
|
||||
|
||||
@@ -133,6 +133,7 @@ const (
|
||||
X_PGLOBAL = 0
|
||||
X_PTRDIFF_T_ = 0
|
||||
X_PTRDIFF_T_DEFINED = 0
|
||||
X_REENTRANT = 1
|
||||
X_RSIZE_T_DEFINED = 0
|
||||
X_SECURECRT_FILL_BUFFER_PATTERN = 0xFD
|
||||
X_SIZE_T_DEFINED = 0
|
||||
@@ -346,12 +347,12 @@ type X_finddata32i64_t = struct {
|
||||
Ftime_write X__time32_t
|
||||
Fsize int64
|
||||
Fname [260]int8
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
} /* io.h:44:3 */
|
||||
|
||||
type X_finddata64i32_t = struct {
|
||||
Fattrib uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Ftime_create X__time64_t
|
||||
Ftime_access X__time64_t
|
||||
Ftime_write X__time64_t
|
||||
@@ -361,13 +362,13 @@ type X_finddata64i32_t = struct {
|
||||
|
||||
type X__finddata64_t = struct {
|
||||
Fattrib uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Ftime_create X__time64_t
|
||||
Ftime_access X__time64_t
|
||||
Ftime_write X__time64_t
|
||||
Fsize int64
|
||||
Fname [260]int8
|
||||
_ [4]byte
|
||||
F__ccgo_pad2 [4]byte
|
||||
} /* io.h:62:3 */
|
||||
|
||||
type X_wfinddata32_t = struct {
|
||||
@@ -390,18 +391,18 @@ type X_wfinddata32i64_t = struct {
|
||||
|
||||
type X_wfinddata64i32_t = struct {
|
||||
Fattrib uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Ftime_create X__time64_t
|
||||
Ftime_access X__time64_t
|
||||
Ftime_write X__time64_t
|
||||
Fsize X_fsize_t
|
||||
Fname [260]Wchar_t
|
||||
_ [4]byte
|
||||
F__ccgo_pad2 [4]byte
|
||||
} /* io.h:112:3 */
|
||||
|
||||
type X_wfinddata64_t = struct {
|
||||
Fattrib uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Ftime_create X__time64_t
|
||||
Ftime_access X__time64_t
|
||||
Ftime_write X__time64_t
|
||||
|
||||
+8
-2
@@ -1,5 +1,11 @@
|
||||
// Code generated by 'ccgo fts/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 fts/fts_darwin_amd64.go -pkgname fts', DO NOT EDIT.
|
||||
// Code generated by 'ccgo fts/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 fts/fts_darwin_amd64.go -pkgname fts', DO NOT EDIT.
|
||||
|
||||
package fts
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
||||
var CAPI = map[string]struct{}{
|
||||
"__darwin_check_fd_set": {},
|
||||
"__darwin_check_fd_set_overflow": {},
|
||||
"__darwin_fd_clr": {},
|
||||
"__darwin_fd_isset": {},
|
||||
"__darwin_fd_set": {},
|
||||
}
|
||||
+8
-2
@@ -1,5 +1,11 @@
|
||||
// Code generated by 'ccgo fts/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o fts/fts_darwin_arm64.go -pkgname fts', DO NOT EDIT.
|
||||
// Code generated by 'ccgo fts/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 fts/fts_darwin_arm64.go -pkgname fts', DO NOT EDIT.
|
||||
|
||||
package fts
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
||||
var CAPI = map[string]struct{}{
|
||||
"__darwin_check_fd_set": {},
|
||||
"__darwin_check_fd_set_overflow": {},
|
||||
"__darwin_fd_clr": {},
|
||||
"__darwin_fd_isset": {},
|
||||
"__darwin_fd_set": {},
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo fts/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 fts/fts_freebsd_amd64.go -pkgname fts', DO NOT EDIT.
|
||||
// Code generated by 'ccgo fts/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 fts/fts_freebsd_amd64.go -pkgname fts', DO NOT EDIT.
|
||||
|
||||
package fts
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo fts/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 fts/fts_linux_amd64.go -pkgname fts', DO NOT EDIT.
|
||||
// Code generated by 'ccgo fts/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 fts/fts_linux_amd64.go -pkgname fts', DO NOT EDIT.
|
||||
|
||||
package fts
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo fts/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 fts/fts_netbsd_amd64.go -pkgname fts', DO NOT EDIT.
|
||||
// Code generated by 'ccgo fts/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 fts/fts_netbsd_amd64.go -pkgname fts', DO NOT EDIT.
|
||||
|
||||
package fts
|
||||
|
||||
|
||||
+3922
-705
File diff suppressed because it is too large.
Load diff
+4051
-750
File diff suppressed because it is too large.
Load diff
+1819
-94
File diff suppressed because it is too large.
Load diff
+743
-276
File diff suppressed because it is too large.
Load diff
+552
-347
File diff suppressed because it is too large.
Load diff
+823
-295
File diff suppressed because it is too large.
Load diff
+827
-285
File diff suppressed because it is too large.
Load diff
+42
-32
@@ -533,7 +533,13 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// array_name[restrict]
|
||||
// GCC 3.1 supports this.
|
||||
|
||||
// Describes a char array whose address can safely be passed as the first
|
||||
// argument to strncpy and strncat, as the char array is not necessarily
|
||||
// a NUL-terminated string.
|
||||
|
||||
// Undefine (also defined in libc-symbols.h).
|
||||
// Copies attributes from the declaration or type referenced by
|
||||
// the argument.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
@@ -827,7 +833,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 */
|
||||
|
||||
@@ -838,8 +845,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
|
||||
@@ -980,11 +988,6 @@ type Timer_t = X__timer_t /* timer_t.h:7:19 */
|
||||
// Define this type if we are doing the whole job,
|
||||
// or if we want this type in particular.
|
||||
|
||||
// In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
|
||||
// are already defined.
|
||||
// BSD/OS 3.1 and FreeBSD [23].x require the MACHINE_ANSI_H check here.
|
||||
// NetBSD 5 requires the I386_ANSI_H and X86_64_ANSI_H checks here.
|
||||
|
||||
// A null pointer constant.
|
||||
|
||||
// Old compatibility names for C types.
|
||||
@@ -1155,7 +1158,8 @@ type Sigset_t = X__sigset_t /* sigset_t.h:7:20 */
|
||||
// Never include this file directly; use <sys/types.h> instead.
|
||||
|
||||
// A time value that is accurate to the nearest
|
||||
// microsecond but also has a range of years.
|
||||
//
|
||||
// microsecond but also has a range of years.
|
||||
type Timeval = struct {
|
||||
Ftv_sec X__time_t
|
||||
Ftv_usec X__suseconds_t
|
||||
@@ -1202,7 +1206,8 @@ type Timeval = struct {
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
|
||||
// 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
|
||||
@@ -1497,7 +1502,7 @@ type X__pthread_rwlock_arch_t = struct {
|
||||
F__pad1 uint64
|
||||
F__pad2 uint64
|
||||
F__flags uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
} /* struct_rwlock.h:23:1 */
|
||||
|
||||
// Common definition of pthread_cond_t.
|
||||
@@ -1513,21 +1518,24 @@ type X__pthread_cond_s = struct {
|
||||
} /* thread-shared-types.h:92:1 */
|
||||
|
||||
// Thread identifiers. The structure of the attribute type is not
|
||||
// exposed on purpose.
|
||||
//
|
||||
// exposed on purpose.
|
||||
type Pthread_t = uint64 /* pthreadtypes.h:27:27 */
|
||||
|
||||
// Data structures for mutex handling. The structure of the attribute
|
||||
// type is not exposed on purpose.
|
||||
//
|
||||
// type is not exposed on purpose.
|
||||
type Pthread_mutexattr_t = struct {
|
||||
_ [0]uint32
|
||||
F__size [4]uint8
|
||||
F__ccgo_pad1 [0]uint32
|
||||
F__size [4]uint8
|
||||
} /* pthreadtypes.h:36:3 */
|
||||
|
||||
// Data structure for condition variable handling. The structure of
|
||||
// the attribute type is not exposed on purpose.
|
||||
//
|
||||
// the attribute type is not exposed on purpose.
|
||||
type Pthread_condattr_t = struct {
|
||||
_ [0]uint32
|
||||
F__size [4]uint8
|
||||
F__ccgo_pad1 [0]uint32
|
||||
F__size [4]uint8
|
||||
} /* pthreadtypes.h:45:3 */
|
||||
|
||||
// Keys for thread-specific data
|
||||
@@ -1537,8 +1545,8 @@ type Pthread_key_t = uint32 /* pthreadtypes.h:49:22 */
|
||||
type Pthread_once_t = int32 /* pthreadtypes.h:53:30 */
|
||||
|
||||
type Pthread_attr_t1 = struct {
|
||||
_ [0]uint64
|
||||
F__size [56]uint8
|
||||
F__ccgo_pad1 [0]uint64
|
||||
F__size [56]uint8
|
||||
} /* pthreadtypes.h:56:1 */
|
||||
|
||||
type Pthread_attr_t = Pthread_attr_t1 /* pthreadtypes.h:62:30 */
|
||||
@@ -1548,27 +1556,29 @@ type Pthread_mutex_t = struct{ F__data X__pthread_mutex_s } /* pthreadtypes.h:72
|
||||
type Pthread_cond_t = struct{ F__data X__pthread_cond_s } /* pthreadtypes.h:80:3 */
|
||||
|
||||
// Data structure for reader-writer lock variable handling. The
|
||||
// structure of the attribute type is deliberately not exposed.
|
||||
//
|
||||
// structure of the attribute type is deliberately not exposed.
|
||||
type Pthread_rwlock_t = struct{ F__data X__pthread_rwlock_arch_t } /* pthreadtypes.h:91:3 */
|
||||
|
||||
type Pthread_rwlockattr_t = struct {
|
||||
_ [0]uint64
|
||||
F__size [8]uint8
|
||||
F__ccgo_pad1 [0]uint64
|
||||
F__size [8]uint8
|
||||
} /* pthreadtypes.h:97:3 */
|
||||
|
||||
// POSIX spinlock data type.
|
||||
type Pthread_spinlock_t = int32 /* pthreadtypes.h:103:22 */
|
||||
|
||||
// POSIX barriers data type. The structure of the type is
|
||||
// deliberately not exposed.
|
||||
//
|
||||
// deliberately not exposed.
|
||||
type Pthread_barrier_t = struct {
|
||||
_ [0]uint64
|
||||
F__size [32]uint8
|
||||
F__ccgo_pad1 [0]uint64
|
||||
F__size [32]uint8
|
||||
} /* pthreadtypes.h:112:3 */
|
||||
|
||||
type Pthread_barrierattr_t = struct {
|
||||
_ [0]uint32
|
||||
F__size [4]uint8
|
||||
F__ccgo_pad1 [0]uint32
|
||||
F__size [4]uint8
|
||||
} /* pthreadtypes.h:118:3 */
|
||||
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
@@ -1777,7 +1787,7 @@ type X_ftsent = struct {
|
||||
Ffts_symfd int32
|
||||
Ffts_pathlen uint16
|
||||
Ffts_namelen uint16
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Ffts_ino Ino_t
|
||||
Ffts_dev Dev_t
|
||||
Ffts_nlink Nlink_t
|
||||
@@ -1787,7 +1797,7 @@ type X_ftsent = struct {
|
||||
Ffts_instr uint16
|
||||
Ffts_statp uintptr
|
||||
Ffts_name [1]uint8
|
||||
_ [7]byte
|
||||
F__ccgo_pad2 [7]byte
|
||||
} /* fts.h:58:2 */
|
||||
|
||||
// File tree traversal functions declarations.
|
||||
@@ -1882,10 +1892,10 @@ type FTS = struct {
|
||||
Ffts_rfd int32
|
||||
Ffts_pathlen int32
|
||||
Ffts_nitems int32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Ffts_compar uintptr
|
||||
Ffts_options int32
|
||||
_ [4]byte
|
||||
F__ccgo_pad2 [4]byte
|
||||
} /* fts.h:81:3 */
|
||||
|
||||
type FTSENT = X_ftsent /* fts.h:147:3 */
|
||||
|
||||
+366
-394
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo fts/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 fts/fts_netbsd_amd64.go -pkgname fts', DO NOT EDIT.
|
||||
// Code generated by 'ccgo fts/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 fts/fts_netbsd_amd64.go -pkgname fts', DO NOT EDIT.
|
||||
|
||||
package fts
|
||||
|
||||
@@ -15,245 +15,243 @@ var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
ACCESSPERMS = 511
|
||||
ALLPERMS = 4095
|
||||
BIG_ENDIAN = 4321
|
||||
BYTE_ORDER = 1234
|
||||
CLOCKS_PER_SEC = 100
|
||||
CLOCK_MONOTONIC = 3
|
||||
CLOCK_PROCESS_CPUTIME_ID = 0x40000000
|
||||
CLOCK_PROF = 2
|
||||
CLOCK_REALTIME = 0
|
||||
CLOCK_THREAD_CPUTIME_ID = 0x20000000
|
||||
CLOCK_VIRTUAL = 1
|
||||
DEFFILEMODE = 438
|
||||
FD_SETSIZE = 256
|
||||
FTS_AGAIN = 1
|
||||
FTS_COMFOLLOW = 0x001
|
||||
FTS_D = 1
|
||||
FTS_DC = 2
|
||||
FTS_DEFAULT = 3
|
||||
FTS_DNR = 4
|
||||
FTS_DONTCHDIR = 0x01
|
||||
FTS_DOT = 5
|
||||
FTS_DP = 6
|
||||
FTS_ERR = 7
|
||||
FTS_F = 8
|
||||
FTS_FOLLOW = 2
|
||||
FTS_INIT = 9
|
||||
FTS_ISW = 0x04
|
||||
FTS_LOGICAL = 0x002
|
||||
FTS_NAMEONLY = 0x100
|
||||
FTS_NOCHDIR = 0x004
|
||||
FTS_NOINSTR = 3
|
||||
FTS_NOSTAT = 0x008
|
||||
FTS_NS = 10
|
||||
FTS_NSOK = 11
|
||||
FTS_OPTIONMASK = 0x0ff
|
||||
FTS_PHYSICAL = 0x010
|
||||
FTS_ROOTLEVEL = 0
|
||||
FTS_ROOTPARENTLEVEL = -1
|
||||
FTS_SEEDOT = 0x020
|
||||
FTS_SKIP = 4
|
||||
FTS_SL = 12
|
||||
FTS_SLNONE = 13
|
||||
FTS_STOP = 0x200
|
||||
FTS_SYMFOLLOW = 0x02
|
||||
FTS_W = 14
|
||||
FTS_WHITEOUT = 0x080
|
||||
FTS_XDEV = 0x040
|
||||
INT16_MAX = 32767
|
||||
INT16_MIN = -32768
|
||||
INT32_MAX = 2147483647
|
||||
INT32_MIN = -2147483648
|
||||
INT64_MAX = 9223372036854775807
|
||||
INT64_MIN = -9223372036854775808
|
||||
INT8_MAX = 127
|
||||
INT8_MIN = -128
|
||||
INTMAX_MAX = 9223372036854775807
|
||||
INTMAX_MIN = -9223372036854775808
|
||||
INTPTR_MAX = 9223372036854775807
|
||||
INTPTR_MIN = -9223372036854775808
|
||||
INT_FAST16_MAX = 2147483647
|
||||
INT_FAST16_MIN = -2147483648
|
||||
INT_FAST32_MAX = 2147483647
|
||||
INT_FAST32_MIN = -2147483648
|
||||
INT_FAST64_MAX = 9223372036854775807
|
||||
INT_FAST64_MIN = -9223372036854775808
|
||||
INT_FAST8_MAX = 2147483647
|
||||
INT_FAST8_MIN = -2147483648
|
||||
INT_LEAST16_MAX = 32767
|
||||
INT_LEAST16_MIN = -32768
|
||||
INT_LEAST32_MAX = 2147483647
|
||||
INT_LEAST32_MIN = -2147483648
|
||||
INT_LEAST64_MAX = 9223372036854775807
|
||||
INT_LEAST64_MIN = -9223372036854775808
|
||||
INT_LEAST8_MAX = 127
|
||||
INT_LEAST8_MIN = -128
|
||||
ITIMER_MONOTONIC = 3
|
||||
ITIMER_PROF = 2
|
||||
ITIMER_REAL = 0
|
||||
ITIMER_VIRTUAL = 1
|
||||
LITTLE_ENDIAN = 1234
|
||||
NBBY = 8
|
||||
NFDBITS = 32
|
||||
NODEVMAJOR = -1
|
||||
PDP_ENDIAN = 3412
|
||||
PTRDIFF_MAX = 9223372036854775807
|
||||
PTRDIFF_MIN = -9223372036854775808
|
||||
SF_APPEND = 0x00040000
|
||||
SF_ARCHIVED = 0x00010000
|
||||
SF_IMMUTABLE = 0x00020000
|
||||
SF_LOG = 0x00400000
|
||||
SF_SETTABLE = 0xffff0000
|
||||
SF_SNAPINVAL = 0x00800000
|
||||
SF_SNAPSHOT = 0x00200000
|
||||
SIG_ATOMIC_MAX = 2147483647
|
||||
SIG_ATOMIC_MIN = -2147483648
|
||||
SIZE_MAX = 18446744073709551615
|
||||
S_ARCH1 = 65536
|
||||
S_ARCH2 = 131072
|
||||
S_BLKSIZE = 512
|
||||
S_IEXEC = 64
|
||||
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_IFWHT = 57344
|
||||
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 = 0001000
|
||||
S_ISUID = 0004000
|
||||
S_ISVTX = 512
|
||||
S_IWGRP = 0000020
|
||||
S_IWOTH = 0000002
|
||||
S_IWRITE = 128
|
||||
S_IWUSR = 0000200
|
||||
S_IXGRP = 0000010
|
||||
S_IXOTH = 0000001
|
||||
S_IXUSR = 0000100
|
||||
TIMER_ABSTIME = 0x1
|
||||
TIMER_RELTIME = 0x0
|
||||
TIME_UTC = 1
|
||||
UF_APPEND = 0x00000004
|
||||
UF_IMMUTABLE = 0x00000002
|
||||
UF_NODUMP = 0x00000001
|
||||
UF_OPAQUE = 0x00000008
|
||||
UF_SETTABLE = 0x0000ffff
|
||||
UINT16_MAX = 65535
|
||||
UINT32_MAX = 4294967295
|
||||
UINT64_MAX = 18446744073709551615
|
||||
UINT8_MAX = 255
|
||||
UINTMAX_MAX = 18446744073709551615
|
||||
UINTPTR_MAX = 18446744073709551615
|
||||
UINT_FAST16_MAX = 4294967295
|
||||
UINT_FAST32_MAX = 4294967295
|
||||
UINT_FAST64_MAX = 18446744073709551615
|
||||
UINT_FAST8_MAX = 4294967295
|
||||
UINT_LEAST16_MAX = 65535
|
||||
UINT_LEAST32_MAX = 4294967295
|
||||
UINT_LEAST64_MAX = 18446744073709551615
|
||||
UINT_LEAST8_MAX = 255
|
||||
UTIME_NOW = 1073741823
|
||||
UTIME_OMIT = 1073741822
|
||||
WCHAR_MAX = 0x7fffffff
|
||||
WCHAR_MIN = -2147483648
|
||||
WINT_MAX = 0x7fffffff
|
||||
WINT_MIN = -2147483648
|
||||
X_AMD64_BYTE_SWAP_H_ = 0
|
||||
X_AMD64_INT_CONST_H_ = 0
|
||||
X_AMD64_INT_LIMITS_H_ = 0
|
||||
X_AMD64_INT_MWGWTYPES_H_ = 0
|
||||
X_AMD64_INT_TYPES_H_ = 0
|
||||
X_AMD64_WCHAR_LIMITS_H_ = 0
|
||||
X_BIG_ENDIAN = 4321
|
||||
X_BSD_INT16_T_ = 0
|
||||
X_BSD_INT32_T_ = 0
|
||||
X_BSD_INT64_T_ = 0
|
||||
X_BSD_INT8_T_ = 0
|
||||
X_BSD_INTPTR_T_ = 0
|
||||
X_BSD_UINT16_T_ = 0
|
||||
X_BSD_UINT32_T_ = 0
|
||||
X_BSD_UINT64_T_ = 0
|
||||
X_BSD_UINT8_T_ = 0
|
||||
X_BSD_UINTPTR_T_ = 0
|
||||
X_BYTE_ORDER = 1234
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_FTS_H_ = 0
|
||||
X_GCC_PTRDIFF_T = 0
|
||||
X_GCC_SIZE_T = 0
|
||||
X_LIB_PTHREAD_TYPES_H = 0
|
||||
X_LITTLE_ENDIAN = 1234
|
||||
X_LP64 = 1
|
||||
X_NETBSD_SOURCE = 1
|
||||
X_PDP_ENDIAN = 3412
|
||||
X_PT_BARRIERATTR_DEAD = 0xDEAD0808
|
||||
X_PT_BARRIERATTR_MAGIC = 0x88880808
|
||||
X_PT_BARRIER_DEAD = 0xDEAD0008
|
||||
X_PT_BARRIER_MAGIC = 0x88880008
|
||||
X_PT_CONDATTR_DEAD = 0xDEAD0006
|
||||
X_PT_CONDATTR_MAGIC = 0x66660006
|
||||
X_PT_COND_DEAD = 0xDEAD0005
|
||||
X_PT_COND_MAGIC = 0x55550005
|
||||
X_PT_MUTEXATTR_DEAD = 0xDEAD0004
|
||||
X_PT_MUTEXATTR_MAGIC = 0x44440004
|
||||
X_PT_MUTEX_DEAD = 0xDEAD0003
|
||||
X_PT_MUTEX_MAGIC = 0x33330003
|
||||
X_PT_RWLOCKATTR_DEAD = 0xDEAD0909
|
||||
X_PT_RWLOCKATTR_MAGIC = 0x99990909
|
||||
X_PT_RWLOCK_DEAD = 0xDEAD0009
|
||||
X_PT_RWLOCK_MAGIC = 0x99990009
|
||||
X_PT_SPINLOCK_DEAD = 0xDEAD0007
|
||||
X_PT_SPINLOCK_MAGIC = 0x77770007
|
||||
X_PT_SPINLOCK_PSHARED = 0x00000001
|
||||
X_QUAD_HIGHWORD = 1
|
||||
X_QUAD_LOWWORD = 0
|
||||
X_SIZE_T = 0
|
||||
X_SYS_ANSI_H_ = 0
|
||||
X_SYS_BSWAP_H_ = 0
|
||||
X_SYS_CDEFS_ELF_H_ = 0
|
||||
X_SYS_CDEFS_H_ = 0
|
||||
X_SYS_COMMON_ANSI_H_ = 0
|
||||
X_SYS_COMMON_INT_LIMITS_H_ = 0
|
||||
X_SYS_COMMON_INT_MWGWTYPES_H_ = 0
|
||||
X_SYS_COMMON_INT_TYPES_H_ = 0
|
||||
X_SYS_ENDIAN_H_ = 0
|
||||
X_SYS_FD_SET_H_ = 0
|
||||
X_SYS_IDTYPE_H_ = 0
|
||||
X_SYS_NULL_H_ = 0
|
||||
X_SYS_SELECT_H_ = 0
|
||||
X_SYS_SIGTYPES_H_ = 0
|
||||
X_SYS_STAT_H_ = 0
|
||||
X_SYS_STDINT_H_ = 0
|
||||
X_SYS_TIMESPEC_H_ = 0
|
||||
X_SYS_TIME_H_ = 0
|
||||
X_SYS_TYPES_H_ = 0
|
||||
X_S_ARCH1 = 0200000
|
||||
X_S_ARCH2 = 0400000
|
||||
X_S_IFBLK = 0060000
|
||||
X_S_IFCHR = 0020000
|
||||
X_S_IFDIR = 0040000
|
||||
X_S_IFIFO = 0010000
|
||||
X_S_IFLNK = 0120000
|
||||
X_S_IFMT = 0170000
|
||||
X_S_IFREG = 0100000
|
||||
X_S_IFSOCK = 0140000
|
||||
X_S_IFWHT = 0160000
|
||||
X_S_ISVTX = 0001000
|
||||
X_TIME_H_ = 0
|
||||
X_X86_64_BSWAP_H_ = 0
|
||||
X_X86_64_CDEFS_H_ = 0
|
||||
X_X86_64_TYPES_H_ = 0
|
||||
ACCESSPERMS = 511 // stat.h:189:1:
|
||||
ALLPERMS = 4095 // stat.h:191:1:
|
||||
BIG_ENDIAN = 4321 // endian.h:101:1:
|
||||
BYTE_ORDER = 1234 // endian.h:103:1:
|
||||
CLOCKS_PER_SEC = 100 // time.h:73:1:
|
||||
CLOCK_MONOTONIC = 3 // time.h:297:1:
|
||||
CLOCK_PROCESS_CPUTIME_ID = 0x40000000 // time.h:299:1:
|
||||
CLOCK_PROF = 2 // time.h:296:1:
|
||||
CLOCK_REALTIME = 0 // time.h:294:1:
|
||||
CLOCK_THREAD_CPUTIME_ID = 0x20000000 // time.h:298:1:
|
||||
CLOCK_VIRTUAL = 1 // time.h:295:1:
|
||||
DEFFILEMODE = 438 // stat.h:193:1:
|
||||
FD_SETSIZE = 256 // fd_set.h:59:1:
|
||||
FTS_AGAIN = 1 // fts.h:128:1:
|
||||
FTS_COMFOLLOW = 0x001 // fts.h:71:1:
|
||||
FTS_D = 1 // fts.h:107:1:
|
||||
FTS_DC = 2 // fts.h:108:1:
|
||||
FTS_DEFAULT = 3 // fts.h:109:1:
|
||||
FTS_DNR = 4 // fts.h:110:1:
|
||||
FTS_DONTCHDIR = 0x01 // fts.h:123:1:
|
||||
FTS_DOT = 5 // fts.h:111:1:
|
||||
FTS_DP = 6 // fts.h:112:1:
|
||||
FTS_ERR = 7 // fts.h:113:1:
|
||||
FTS_F = 8 // fts.h:114:1:
|
||||
FTS_FOLLOW = 2 // fts.h:129:1:
|
||||
FTS_INIT = 9 // fts.h:115:1:
|
||||
FTS_ISW = 0x04 // fts.h:125:1:
|
||||
FTS_LOGICAL = 0x002 // fts.h:72:1:
|
||||
FTS_NAMEONLY = 0x100 // fts.h:81:1:
|
||||
FTS_NOCHDIR = 0x004 // fts.h:73:1:
|
||||
FTS_NOINSTR = 3 // fts.h:130:1:
|
||||
FTS_NOSTAT = 0x008 // fts.h:74:1:
|
||||
FTS_NS = 10 // fts.h:116:1:
|
||||
FTS_NSOK = 11 // fts.h:117:1:
|
||||
FTS_OPTIONMASK = 0x0ff // fts.h:79:1:
|
||||
FTS_PHYSICAL = 0x010 // fts.h:75:1:
|
||||
FTS_ROOTLEVEL = 0 // fts.h:104:1:
|
||||
FTS_ROOTPARENTLEVEL = -1 // fts.h:103:1:
|
||||
FTS_SEEDOT = 0x020 // fts.h:76:1:
|
||||
FTS_SKIP = 4 // fts.h:131:1:
|
||||
FTS_SL = 12 // fts.h:118:1:
|
||||
FTS_SLNONE = 13 // fts.h:119:1:
|
||||
FTS_STOP = 0x200 // fts.h:82:1:
|
||||
FTS_SYMFOLLOW = 0x02 // fts.h:124:1:
|
||||
FTS_W = 14 // fts.h:120:1:
|
||||
FTS_WHITEOUT = 0x080 // fts.h:78:1:
|
||||
FTS_XDEV = 0x040 // fts.h:77:1:
|
||||
INT16_MAX = 32767 // common_int_limits.h:53:1:
|
||||
INT16_MIN = -32768 // common_int_limits.h:47:1:
|
||||
INT32_MAX = 2147483647 // common_int_limits.h:54:1:
|
||||
INT32_MIN = -2147483648 // common_int_limits.h:48:1:
|
||||
INT64_MAX = 9223372036854775807 // common_int_limits.h:55:1:
|
||||
INT64_MIN = -9223372036854775808 // common_int_limits.h:49:1:
|
||||
INT8_MAX = 127 // common_int_limits.h:52:1:
|
||||
INT8_MIN = -128 // common_int_limits.h:46:1:
|
||||
INTMAX_MAX = 9223372036854775807 // common_int_limits.h:111:1:
|
||||
INTMAX_MIN = -9223372036854775808 // common_int_limits.h:110:1:
|
||||
INTPTR_MAX = 9223372036854775807 // common_int_limits.h:105:1:
|
||||
INTPTR_MIN = -9223372036854775808 // common_int_limits.h:104:1:
|
||||
INT_FAST16_MAX = 2147483647 // common_int_limits.h:93:1:
|
||||
INT_FAST16_MIN = -2147483648 // common_int_limits.h:87:1:
|
||||
INT_FAST32_MAX = 2147483647 // common_int_limits.h:94:1:
|
||||
INT_FAST32_MIN = -2147483648 // common_int_limits.h:88:1:
|
||||
INT_FAST64_MAX = 9223372036854775807 // common_int_limits.h:95:1:
|
||||
INT_FAST64_MIN = -9223372036854775808 // common_int_limits.h:89:1:
|
||||
INT_FAST8_MAX = 2147483647 // common_int_limits.h:92:1:
|
||||
INT_FAST8_MIN = -2147483648 // common_int_limits.h:86:1:
|
||||
INT_LEAST16_MAX = 32767 // common_int_limits.h:73:1:
|
||||
INT_LEAST16_MIN = -32768 // common_int_limits.h:67:1:
|
||||
INT_LEAST32_MAX = 2147483647 // common_int_limits.h:74:1:
|
||||
INT_LEAST32_MIN = -2147483648 // common_int_limits.h:68:1:
|
||||
INT_LEAST64_MAX = 9223372036854775807 // common_int_limits.h:75:1:
|
||||
INT_LEAST64_MIN = -9223372036854775808 // common_int_limits.h:69:1:
|
||||
INT_LEAST8_MAX = 127 // common_int_limits.h:72:1:
|
||||
INT_LEAST8_MIN = -128 // common_int_limits.h:66:1:
|
||||
ITIMER_MONOTONIC = 3 // time.h:278:1:
|
||||
ITIMER_PROF = 2 // time.h:277:1:
|
||||
ITIMER_REAL = 0 // time.h:275:1:
|
||||
ITIMER_VIRTUAL = 1 // time.h:276:1:
|
||||
LITTLE_ENDIAN = 1234 // endian.h:100:1:
|
||||
NBBY = 8 // types.h:316:1:
|
||||
NFDBITS = 32 // fd_set.h:93:1:
|
||||
NODEVMAJOR = -1 // types.h:258:1:
|
||||
PDP_ENDIAN = 3412 // endian.h:102:1:
|
||||
PTRDIFF_MAX = 9223372036854775807 // common_int_limits.h:121:1:
|
||||
PTRDIFF_MIN = -9223372036854775808 // common_int_limits.h:120:1:
|
||||
SF_APPEND = 0x00040000 // stat.h:214:1:
|
||||
SF_ARCHIVED = 0x00010000 // stat.h:212:1:
|
||||
SF_IMMUTABLE = 0x00020000 // stat.h:213:1:
|
||||
SF_LOG = 0x00400000 // stat.h:217:1:
|
||||
SF_SETTABLE = 0xffff0000 // stat.h:211:1:
|
||||
SF_SNAPINVAL = 0x00800000 // stat.h:218:1:
|
||||
SF_SNAPSHOT = 0x00200000 // stat.h:216:1:
|
||||
SIG_ATOMIC_MAX = 2147483647 // common_int_limits.h:125:1:
|
||||
SIG_ATOMIC_MIN = -2147483648 // common_int_limits.h:124:1:
|
||||
SIZE_MAX = 18446744073709551615 // common_int_limits.h:128:1:
|
||||
S_ARCH1 = 65536 // stat.h:167:1:
|
||||
S_ARCH2 = 131072 // stat.h:168:1:
|
||||
S_BLKSIZE = 512 // stat.h:195:1:
|
||||
S_IEXEC = 64 // stat.h:125:1:
|
||||
S_IFBLK = 24576 // stat.h:156:1:
|
||||
S_IFCHR = 8192 // stat.h:154:1:
|
||||
S_IFDIR = 16384 // stat.h:155:1:
|
||||
S_IFIFO = 4096 // stat.h:153:1:
|
||||
S_IFLNK = 40960 // stat.h:158:1:
|
||||
S_IFMT = 61440 // stat.h:152:1:
|
||||
S_IFREG = 32768 // stat.h:157:1:
|
||||
S_IFSOCK = 49152 // stat.h:162:1:
|
||||
S_IFWHT = 57344 // stat.h:165:1:
|
||||
S_IREAD = 256 // stat.h:123:1:
|
||||
S_IRGRP = 0000040 // stat.h:129:1:
|
||||
S_IROTH = 0000004 // stat.h:134:1:
|
||||
S_IRUSR = 0000400 // stat.h:118:1:
|
||||
S_IRWXG = 0000070 // stat.h:128:1:
|
||||
S_IRWXO = 0000007 // stat.h:133:1:
|
||||
S_IRWXU = 0000700 // stat.h:117:1:
|
||||
S_ISGID = 0002000 // stat.h:112:1:
|
||||
S_ISTXT = 0001000 // stat.h:114:1:
|
||||
S_ISUID = 0004000 // stat.h:111:1:
|
||||
S_ISVTX = 512 // stat.h:159:1:
|
||||
S_IWGRP = 0000020 // stat.h:130:1:
|
||||
S_IWOTH = 0000002 // stat.h:135:1:
|
||||
S_IWRITE = 128 // stat.h:124:1:
|
||||
S_IWUSR = 0000200 // stat.h:119:1:
|
||||
S_IXGRP = 0000010 // stat.h:131:1:
|
||||
S_IXOTH = 0000001 // stat.h:136:1:
|
||||
S_IXUSR = 0000100 // stat.h:120:1:
|
||||
TIMER_ABSTIME = 0x1 // time.h:304:1:
|
||||
TIMER_RELTIME = 0x0 // time.h:302:1:
|
||||
TIME_UTC = 1 // time.h:238:1:
|
||||
UF_APPEND = 0x00000004 // stat.h:205:1:
|
||||
UF_IMMUTABLE = 0x00000002 // stat.h:204:1:
|
||||
UF_NODUMP = 0x00000001 // stat.h:203:1:
|
||||
UF_OPAQUE = 0x00000008 // stat.h:206:1:
|
||||
UF_SETTABLE = 0x0000ffff // stat.h:202:1:
|
||||
UINT16_MAX = 65535 // common_int_limits.h:59:1:
|
||||
UINT32_MAX = 4294967295 // common_int_limits.h:60:1:
|
||||
UINT64_MAX = 18446744073709551615 // common_int_limits.h:61:1:
|
||||
UINT8_MAX = 255 // common_int_limits.h:58:1:
|
||||
UINTMAX_MAX = 18446744073709551615 // common_int_limits.h:112:1:
|
||||
UINTPTR_MAX = 18446744073709551615 // common_int_limits.h:106:1:
|
||||
UINT_FAST16_MAX = 4294967295 // common_int_limits.h:99:1:
|
||||
UINT_FAST32_MAX = 4294967295 // common_int_limits.h:100:1:
|
||||
UINT_FAST64_MAX = 18446744073709551615 // common_int_limits.h:101:1:
|
||||
UINT_FAST8_MAX = 4294967295 // common_int_limits.h:98:1:
|
||||
UINT_LEAST16_MAX = 65535 // common_int_limits.h:79:1:
|
||||
UINT_LEAST32_MAX = 4294967295 // common_int_limits.h:80:1:
|
||||
UINT_LEAST64_MAX = 18446744073709551615 // common_int_limits.h:81:1:
|
||||
UINT_LEAST8_MAX = 255 // common_int_limits.h:78:1:
|
||||
UTIME_NOW = 1073741823 // stat.h:235:1:
|
||||
UTIME_OMIT = 1073741822 // stat.h:236:1:
|
||||
WCHAR_MAX = 0x7fffffff // wchar_limits.h:41:1:
|
||||
WCHAR_MIN = -2147483648 // wchar_limits.h:40:1:
|
||||
WINT_MAX = 0x7fffffff // wchar_limits.h:45:1:
|
||||
WINT_MIN = -2147483648 // wchar_limits.h:44:1:
|
||||
X_AMD64_BYTE_SWAP_H_ = 0 // byte_swap.h:37:1:
|
||||
X_AMD64_INT_CONST_H_ = 0 // int_const.h:33:1:
|
||||
X_AMD64_INT_LIMITS_H_ = 0 // int_limits.h:33:1:
|
||||
X_AMD64_INT_MWGWTYPES_H_ = 0 // int_mwgwtypes.h:33:1:
|
||||
X_AMD64_INT_TYPES_H_ = 0 // int_types.h:35:1:
|
||||
X_AMD64_WCHAR_LIMITS_H_ = 0 // wchar_limits.h:33:1:
|
||||
X_BIG_ENDIAN = 4321 // endian.h:44:1:
|
||||
X_BSD_INT16_T_ = 0 // types.h:65:1:
|
||||
X_BSD_INT32_T_ = 0 // types.h:75:1:
|
||||
X_BSD_INT64_T_ = 0 // types.h:85:1:
|
||||
X_BSD_INT8_T_ = 0 // types.h:55:1:
|
||||
X_BSD_INTPTR_T_ = 0 // stdint.h:80:1:
|
||||
X_BSD_UINT16_T_ = 0 // types.h:70:1:
|
||||
X_BSD_UINT32_T_ = 0 // types.h:80:1:
|
||||
X_BSD_UINT64_T_ = 0 // types.h:90:1:
|
||||
X_BSD_UINT8_T_ = 0 // types.h:60:1:
|
||||
X_BSD_UINTPTR_T_ = 0 // stdint.h:85:1:
|
||||
X_BYTE_ORDER = 1234 // endian_machdep.h:3:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_FTS_H_ = 0 // fts.h:35:1:
|
||||
X_LIB_PTHREAD_TYPES_H = 0 // pthread_types.h:33:1:
|
||||
X_LITTLE_ENDIAN = 1234 // endian.h:43:1:
|
||||
X_LP64 = 1 // <predefined>:268:1:
|
||||
X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
|
||||
X_PDP_ENDIAN = 3412 // endian.h:45:1:
|
||||
X_PT_BARRIERATTR_DEAD = 0xDEAD0808 // pthread_types.h:278:1:
|
||||
X_PT_BARRIERATTR_MAGIC = 0x88880808 // pthread_types.h:277:1:
|
||||
X_PT_BARRIER_DEAD = 0xDEAD0008 // pthread_types.h:270:1:
|
||||
X_PT_BARRIER_MAGIC = 0x88880008 // pthread_types.h:269:1:
|
||||
X_PT_CONDATTR_DEAD = 0xDEAD0006 // pthread_types.h:197:1:
|
||||
X_PT_CONDATTR_MAGIC = 0x66660006 // pthread_types.h:196:1:
|
||||
X_PT_COND_DEAD = 0xDEAD0005 // pthread_types.h:182:1:
|
||||
X_PT_COND_MAGIC = 0x55550005 // pthread_types.h:181:1:
|
||||
X_PT_MUTEXATTR_DEAD = 0xDEAD0004 // pthread_types.h:167:1:
|
||||
X_PT_MUTEXATTR_MAGIC = 0x44440004 // pthread_types.h:166:1:
|
||||
X_PT_MUTEX_DEAD = 0xDEAD0003 // pthread_types.h:139:1:
|
||||
X_PT_MUTEX_MAGIC = 0x33330003 // pthread_types.h:138:1:
|
||||
X_PT_RWLOCKATTR_DEAD = 0xDEAD0909 // pthread_types.h:253:1:
|
||||
X_PT_RWLOCKATTR_MAGIC = 0x99990909 // pthread_types.h:252:1:
|
||||
X_PT_RWLOCK_DEAD = 0xDEAD0009 // pthread_types.h:236:1:
|
||||
X_PT_RWLOCK_MAGIC = 0x99990009 // pthread_types.h:235:1:
|
||||
X_PT_SPINLOCK_DEAD = 0xDEAD0007 // pthread_types.h:213:1:
|
||||
X_PT_SPINLOCK_MAGIC = 0x77770007 // pthread_types.h:212:1:
|
||||
X_PT_SPINLOCK_PSHARED = 0x00000001 // pthread_types.h:214:1:
|
||||
X_QUAD_HIGHWORD = 1 // endian.h:84:1:
|
||||
X_QUAD_LOWWORD = 0 // endian.h:85:1:
|
||||
X_SIZE_T = 0 // types.h:279:1:
|
||||
X_SYS_ANSI_H_ = 0 // ansi.h:33:1:
|
||||
X_SYS_BSWAP_H_ = 0 // bswap.h:6:1:
|
||||
X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
|
||||
X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
|
||||
X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1:
|
||||
X_SYS_COMMON_INT_LIMITS_H_ = 0 // common_int_limits.h:33:1:
|
||||
X_SYS_COMMON_INT_MWGWTYPES_H_ = 0 // common_int_mwgwtypes.h:33:1:
|
||||
X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1:
|
||||
X_SYS_ENDIAN_H_ = 0 // endian.h:35:1:
|
||||
X_SYS_FD_SET_H_ = 0 // fd_set.h:35:1:
|
||||
X_SYS_IDTYPE_H_ = 0 // idtype.h:32:1:
|
||||
X_SYS_NULL_H_ = 0 // null.h:9:1:
|
||||
X_SYS_SELECT_H_ = 0 // select.h:35:1:
|
||||
X_SYS_SIGTYPES_H_ = 0 // sigtypes.h:40:1:
|
||||
X_SYS_STAT_H_ = 0 // stat.h:40:1:
|
||||
X_SYS_STDINT_H_ = 0 // stdint.h:33:1:
|
||||
X_SYS_TIMESPEC_H_ = 0 // timespec.h:38:1:
|
||||
X_SYS_TIME_H_ = 0 // time.h:35:1:
|
||||
X_SYS_TYPES_H_ = 0 // types.h:40:1:
|
||||
X_S_ARCH1 = 0200000 // stat.h:148:1:
|
||||
X_S_ARCH2 = 0400000 // stat.h:149:1:
|
||||
X_S_IFBLK = 0060000 // stat.h:142:1:
|
||||
X_S_IFCHR = 0020000 // stat.h:140:1:
|
||||
X_S_IFDIR = 0040000 // stat.h:141:1:
|
||||
X_S_IFIFO = 0010000 // stat.h:139:1:
|
||||
X_S_IFLNK = 0120000 // stat.h:144:1:
|
||||
X_S_IFMT = 0170000 // stat.h:138:1:
|
||||
X_S_IFREG = 0100000 // stat.h:143:1:
|
||||
X_S_IFSOCK = 0140000 // stat.h:146:1:
|
||||
X_S_IFWHT = 0160000 // stat.h:147:1:
|
||||
X_S_ISVTX = 0001000 // stat.h:145:1:
|
||||
X_TIME_H_ = 0 // time.h:40:1:
|
||||
X_X86_64_BSWAP_H_ = 0 // bswap.h:6:1:
|
||||
X_X86_64_CDEFS_H_ = 0 // cdefs.h:4:1:
|
||||
X_X86_64_TYPES_H_ = 0 // types.h:35:1:
|
||||
)
|
||||
|
||||
// $NetBSD: idtype.h,v 1.5 2016/04/09 17:02:51 riastradh Exp $
|
||||
@@ -696,32 +694,32 @@ type X__wctype_t = uintptr /* ansi.h:54:31 */
|
||||
// mbstate_t is an opaque object to keep conversion state, during multibyte
|
||||
// stream conversions. The content must not be referenced by user programs.
|
||||
type X__mbstate_t = struct {
|
||||
F__mbstateL X__int64_t
|
||||
_ [120]byte
|
||||
F__mbstateL X__int64_t
|
||||
F__ccgo_pad1 [120]byte
|
||||
} /* ansi.h:63:3 */
|
||||
|
||||
type X__va_list = X__builtin_va_list /* ansi.h:72:27 */
|
||||
|
||||
type Int8_t = X__int8_t /* types.h:63:18 */
|
||||
type Int8_t = X__int8_t /* types.h:54:18 */
|
||||
|
||||
type Uint8_t = X__uint8_t /* types.h:68:19 */
|
||||
type Uint8_t = X__uint8_t /* types.h:59:19 */
|
||||
|
||||
type Int16_t = X__int16_t /* types.h:73:19 */
|
||||
type Int16_t = X__int16_t /* types.h:64:19 */
|
||||
|
||||
type Uint16_t = X__uint16_t /* types.h:78:20 */
|
||||
type Uint16_t = X__uint16_t /* types.h:69:20 */
|
||||
|
||||
type Int32_t = X__int32_t /* types.h:83:19 */
|
||||
type Int32_t = X__int32_t /* types.h:74:19 */
|
||||
|
||||
type Uint32_t = X__uint32_t /* types.h:88:20 */
|
||||
type Uint32_t = X__uint32_t /* types.h:79:20 */
|
||||
|
||||
type Int64_t = X__int64_t /* types.h:93:19 */
|
||||
type Int64_t = X__int64_t /* types.h:84:19 */
|
||||
|
||||
type Uint64_t = X__uint64_t /* types.h:98:20 */
|
||||
type Uint64_t = X__uint64_t /* types.h:89:20 */
|
||||
|
||||
type U_int8_t = Uint8_t /* types.h:102:18 */
|
||||
type U_int16_t = Uint16_t /* types.h:103:18 */
|
||||
type U_int32_t = Uint32_t /* types.h:104:18 */
|
||||
type U_int64_t = Uint64_t /* types.h:105:18 */
|
||||
type U_int8_t = Uint8_t /* types.h:93:18 */
|
||||
type U_int16_t = Uint16_t /* types.h:94:18 */
|
||||
type U_int32_t = Uint32_t /* types.h:95:18 */
|
||||
type U_int64_t = Uint64_t /* types.h:96:18 */
|
||||
|
||||
// $NetBSD: endian.h,v 1.1 2003/04/26 18:39:40 fvdl Exp $
|
||||
|
||||
@@ -884,15 +882,6 @@ type U_int64_t = Uint64_t /* types.h:105:18 */
|
||||
//
|
||||
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
|
||||
|
||||
// DO NOT EDIT THIS FILE.
|
||||
//
|
||||
// It has been auto-edited by fixincludes from:
|
||||
//
|
||||
// "/usr/include/sys/types.h"
|
||||
//
|
||||
// This had to be done to correct non-standard usages in the
|
||||
// original, manufacturer supplied header file.
|
||||
|
||||
// $NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
|
||||
|
||||
// -
|
||||
@@ -1126,19 +1115,19 @@ type Uint_fast64_t = uint64 /* common_int_mwgwtypes.h:62:32 */
|
||||
type Intmax_t = int64 /* common_int_mwgwtypes.h:66:33 */
|
||||
type Uintmax_t = uint64 /* common_int_mwgwtypes.h:67:32 */
|
||||
|
||||
type U_char = uint8 /* types.h:110:23 */
|
||||
type U_short = uint16 /* types.h:111:24 */
|
||||
type U_int = uint32 /* types.h:112:22 */
|
||||
type U_long = uint64 /* types.h:113:23 */
|
||||
type U_char = uint8 /* types.h:101:23 */
|
||||
type U_short = uint16 /* types.h:102:24 */
|
||||
type U_int = uint32 /* types.h:103:22 */
|
||||
type U_long = uint64 /* types.h:104:23 */
|
||||
|
||||
type Unchar = uint8 /* types.h:115:23 */ // Sys V compatibility
|
||||
type Ushort = uint16 /* types.h:116:24 */ // Sys V compatibility
|
||||
type Uint = uint32 /* types.h:117:22 */ // Sys V compatibility
|
||||
type Ulong = uint64 /* types.h:118:23 */ // Sys V compatibility
|
||||
type Unchar = uint8 /* types.h:106:23 */ // Sys V compatibility
|
||||
type Ushort = uint16 /* types.h:107:24 */ // Sys V compatibility
|
||||
type Uint = uint32 /* types.h:108:22 */ // Sys V compatibility
|
||||
type Ulong = uint64 /* types.h:109:23 */ // Sys V compatibility
|
||||
|
||||
type U_quad_t = Uint64_t /* types.h:121:18 */ // quads
|
||||
type Quad_t = Int64_t /* types.h:122:18 */
|
||||
type Qaddr_t = uintptr /* types.h:123:16 */
|
||||
type U_quad_t = Uint64_t /* types.h:112:18 */ // quads
|
||||
type Quad_t = Int64_t /* types.h:113:18 */
|
||||
type Qaddr_t = uintptr /* types.h:114:16 */
|
||||
|
||||
// The types longlong_t and u_longlong_t exist for use with the
|
||||
// Sun-derived XDR routines involving these types, and their usage
|
||||
@@ -1148,69 +1137,69 @@ type Qaddr_t = uintptr /* types.h:123:16 */
|
||||
// respectively. Portable programs that need 64-bit types should use
|
||||
// the C99 types int64_t and uint64_t instead.
|
||||
|
||||
type Longlong_t = Int64_t /* types.h:135:18 */ // for XDR
|
||||
type U_longlong_t = Uint64_t /* types.h:136:18 */ // for XDR
|
||||
type Longlong_t = Int64_t /* types.h:126:18 */ // for XDR
|
||||
type U_longlong_t = Uint64_t /* types.h:127:18 */ // for XDR
|
||||
|
||||
type Blkcnt_t = Int64_t /* types.h:138:18 */ // fs block count
|
||||
type Blksize_t = Int32_t /* types.h:139:18 */ // fs optimal block size
|
||||
type Blkcnt_t = Int64_t /* types.h:129:18 */ // fs block count
|
||||
type Blksize_t = Int32_t /* types.h:130:18 */ // fs optimal block size
|
||||
|
||||
type Fsblkcnt_t = X__fsblkcnt_t /* types.h:142:22 */ // fs block count (statvfs)
|
||||
type Fsblkcnt_t = X__fsblkcnt_t /* types.h:133:22 */ // fs block count (statvfs)
|
||||
|
||||
type Fsfilcnt_t = X__fsfilcnt_t /* types.h:147:22 */ // fs file count
|
||||
type Fsfilcnt_t = X__fsfilcnt_t /* types.h:138:22 */ // fs file count
|
||||
|
||||
// We don't and shouldn't use caddr_t in the kernel anymore
|
||||
type Caddr_t = X__caddr_t /* types.h:154:19 */ // core address
|
||||
type Caddr_t = X__caddr_t /* types.h:145:19 */ // core address
|
||||
|
||||
type Daddr_t = Int64_t /* types.h:163:18 */ // disk address
|
||||
type Daddr_t = Int64_t /* types.h:154:18 */ // disk address
|
||||
|
||||
type Dev_t = Uint64_t /* types.h:166:18 */ // device number
|
||||
type Fixpt_t = Uint32_t /* types.h:167:18 */ // fixed point number
|
||||
type Dev_t = Uint64_t /* types.h:157:18 */ // device number
|
||||
type Fixpt_t = Uint32_t /* types.h:158:18 */ // fixed point number
|
||||
|
||||
type Gid_t = X__gid_t /* types.h:170:18 */ // group id
|
||||
type Gid_t = X__gid_t /* types.h:161:18 */ // group id
|
||||
|
||||
type Id_t = Uint32_t /* types.h:174:18 */ // group id, process id or user id
|
||||
type Ino_t = Uint64_t /* types.h:175:18 */ // inode number
|
||||
type Key_t = int64 /* types.h:176:15 */ // IPC key (for Sys V IPC)
|
||||
type Id_t = Uint32_t /* types.h:165:18 */ // group id, process id or user id
|
||||
type Ino_t = Uint64_t /* types.h:166:18 */ // inode number
|
||||
type Key_t = int64 /* types.h:167:15 */ // IPC key (for Sys V IPC)
|
||||
|
||||
type Mode_t = X__mode_t /* types.h:179:18 */ // permissions
|
||||
type Mode_t = X__mode_t /* types.h:170:18 */ // permissions
|
||||
|
||||
type Nlink_t = Uint32_t /* types.h:183:18 */ // link count
|
||||
type Nlink_t = Uint32_t /* types.h:174:18 */ // link count
|
||||
|
||||
type Off_t = X__off_t /* types.h:186:18 */ // file offset
|
||||
type Off_t = X__off_t /* types.h:177:18 */ // file offset
|
||||
|
||||
type Pid_t = X__pid_t /* types.h:191:18 */ // process id
|
||||
type Lwpid_t = Int32_t /* types.h:194:18 */ // LWP id
|
||||
type Rlim_t = Uint64_t /* types.h:195:18 */ // resource limit
|
||||
type Segsz_t = Int32_t /* types.h:196:18 */ // segment size
|
||||
type Swblk_t = Int32_t /* types.h:197:18 */ // swap offset
|
||||
type Pid_t = X__pid_t /* types.h:182:18 */ // process id
|
||||
type Lwpid_t = Int32_t /* types.h:185:18 */ // LWP id
|
||||
type Rlim_t = Uint64_t /* types.h:186:18 */ // resource limit
|
||||
type Segsz_t = Int32_t /* types.h:187:18 */ // segment size
|
||||
type Swblk_t = Int32_t /* types.h:188:18 */ // swap offset
|
||||
|
||||
type Uid_t = X__uid_t /* types.h:200:18 */ // user id
|
||||
type Uid_t = X__uid_t /* types.h:191:18 */ // user id
|
||||
|
||||
type Mqd_t = int32 /* types.h:204:14 */
|
||||
type Mqd_t = int32 /* types.h:195:14 */
|
||||
|
||||
type Cpuid_t = uint64 /* types.h:206:23 */
|
||||
type Cpuid_t = uint64 /* types.h:197:23 */
|
||||
|
||||
type Psetid_t = int32 /* types.h:208:14 */
|
||||
type Psetid_t = int32 /* types.h:199:14 */
|
||||
|
||||
type X__cpu_simple_lock_t = X__cpu_simple_lock_nv_t /* types.h:210:41 */
|
||||
type X__cpu_simple_lock_t = X__cpu_simple_lock_nv_t /* types.h:201:41 */
|
||||
|
||||
// Major, minor numbers, dev_t's.
|
||||
type X__devmajor_t = Int32_t /* types.h:264:17 */
|
||||
type X__devminor_t = Int32_t /* types.h:264:31 */
|
||||
type X__devmajor_t = Int32_t /* types.h:255:17 */
|
||||
type X__devminor_t = Int32_t /* types.h:255:31 */
|
||||
|
||||
type Clock_t = uint32 /* types.h:277:24 */
|
||||
type Clock_t = uint32 /* types.h:268:24 */
|
||||
|
||||
type Ssize_t = int64 /* types.h:301:24 */
|
||||
type Ssize_t = int64 /* types.h:284:24 */
|
||||
|
||||
type Time_t = X__int64_t /* types.h:306:23 */
|
||||
type Time_t = X__int64_t /* types.h:289:23 */
|
||||
|
||||
type Clockid_t = int32 /* types.h:311:26 */
|
||||
type Clockid_t = int32 /* types.h:294:26 */
|
||||
|
||||
type Timer_t = int32 /* types.h:316:24 */
|
||||
type Timer_t = int32 /* types.h:299:24 */
|
||||
|
||||
type Suseconds_t = int32 /* types.h:321:27 */
|
||||
type Suseconds_t = int32 /* types.h:304:27 */
|
||||
|
||||
type Useconds_t = uint32 /* types.h:326:26 */
|
||||
type Useconds_t = uint32 /* types.h:309:26 */
|
||||
|
||||
// $NetBSD: fd_set.h,v 1.7 2018/06/24 12:05:40 kamil Exp $
|
||||
|
||||
@@ -1390,9 +1379,9 @@ type Fd_set = Fd_set1 /* fd_set.h:68:3 */
|
||||
|
||||
// Expose our internals if we are not required to hide them.
|
||||
|
||||
type Kauth_cred_t = uintptr /* types.h:335:27 */
|
||||
type Kauth_cred_t = uintptr /* types.h:318:27 */
|
||||
|
||||
type Pri_t = int32 /* types.h:337:13 */
|
||||
type Pri_t = int32 /* types.h:320:13 */
|
||||
|
||||
// $NetBSD: pthread_types.h,v 1.23 2017/09/09 23:21:45 kamil Exp $
|
||||
|
||||
@@ -1453,24 +1442,24 @@ type X__pthread_mutex_st = struct {
|
||||
Fptm_pad1 [3]Uint8_t
|
||||
F__8 struct{ Fptm_ceiling uint8 }
|
||||
Fptm_pad2 [3]Uint8_t
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fptm_owner Pthread_t
|
||||
Fptm_waiters uintptr
|
||||
Fptm_recursed uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad2 [4]byte
|
||||
Fptm_spare2 uintptr
|
||||
} /* pthread_types.h:66:1 */
|
||||
|
||||
type X__pthread_mutexattr_st = struct {
|
||||
Fptma_magic uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fptma_private uintptr
|
||||
} /* pthread_types.h:67:1 */
|
||||
|
||||
type X__pthread_cond_st = struct {
|
||||
Fptc_magic uint32
|
||||
Fptc_lock X__pthread_spin_t
|
||||
_ [3]byte
|
||||
F__ccgo_pad1 [3]byte
|
||||
Fptc_waiters Pthread_queue_t
|
||||
Fptc_mutex uintptr
|
||||
Fptc_private uintptr
|
||||
@@ -1478,43 +1467,43 @@ type X__pthread_cond_st = struct {
|
||||
|
||||
type X__pthread_condattr_st = struct {
|
||||
Fptca_magic uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fptca_private uintptr
|
||||
} /* pthread_types.h:69:1 */
|
||||
|
||||
type X__pthread_rwlock_st = struct {
|
||||
Fptr_magic uint32
|
||||
Fptr_interlock X__pthread_spin_t
|
||||
_ [3]byte
|
||||
F__ccgo_pad1 [3]byte
|
||||
Fptr_rblocked Pthread_queue_t
|
||||
Fptr_wblocked Pthread_queue_t
|
||||
Fptr_nreaders uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad2 [4]byte
|
||||
Fptr_owner Pthread_t
|
||||
Fptr_private uintptr
|
||||
} /* pthread_types.h:71:1 */
|
||||
|
||||
type X__pthread_rwlockattr_st = struct {
|
||||
Fptra_magic uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fptra_private uintptr
|
||||
} /* pthread_types.h:72:1 */
|
||||
|
||||
type X__pthread_barrier_st = struct {
|
||||
Fptb_magic uint32
|
||||
Fptb_lock Pthread_spin_t
|
||||
_ [3]byte
|
||||
F__ccgo_pad1 [3]byte
|
||||
Fptb_waiters Pthread_queue_t
|
||||
Fptb_initcount uint32
|
||||
Fptb_curcount uint32
|
||||
Fptb_generation uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad2 [4]byte
|
||||
Fptb_private uintptr
|
||||
} /* pthread_types.h:73:1 */
|
||||
|
||||
type X__pthread_barrierattr_st = struct {
|
||||
Fptba_magic uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fptba_private uintptr
|
||||
} /* pthread_types.h:74:1 */
|
||||
|
||||
@@ -1525,17 +1514,17 @@ type Pthread_mutexattr_t = X__pthread_mutexattr_st /* pthread_types.h:79:39 */
|
||||
type Pthread_cond_t = X__pthread_cond_st /* pthread_types.h:80:34 */
|
||||
type Pthread_condattr_t = X__pthread_condattr_st /* pthread_types.h:81:38 */
|
||||
type X__pthread_once_st = struct {
|
||||
Fpto_mutex Pthread_mutex_t
|
||||
Fpto_done int32
|
||||
_ [4]byte
|
||||
Fpto_mutex Pthread_mutex_t
|
||||
Fpto_done int32
|
||||
F__ccgo_pad1 [4]byte
|
||||
} /* pthread_types.h:82:9 */
|
||||
|
||||
type Pthread_once_t = X__pthread_once_st /* pthread_types.h:82:34 */
|
||||
type X__pthread_spinlock_st = struct {
|
||||
Fpts_magic uint32
|
||||
Fpts_spin X__pthread_spin_t
|
||||
_ [3]byte
|
||||
Fpts_flags int32
|
||||
Fpts_magic uint32
|
||||
Fpts_spin X__pthread_spin_t
|
||||
F__ccgo_pad1 [3]byte
|
||||
Fpts_flags int32
|
||||
} /* pthread_types.h:83:9 */
|
||||
|
||||
type Pthread_spinlock_t = X__pthread_spinlock_st /* pthread_types.h:83:38 */
|
||||
@@ -1641,15 +1630,6 @@ type Pthread_key_t = int32 /* pthread_types.h:88:13
|
||||
// _LARGEFILE_SOURCE Large File Support
|
||||
// <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
|
||||
|
||||
// DO NOT EDIT THIS FILE.
|
||||
//
|
||||
// It has been auto-edited by fixincludes from:
|
||||
//
|
||||
// "/usr/include/sys/types.h"
|
||||
//
|
||||
// This had to be done to correct non-standard usages in the
|
||||
// original, manufacturer supplied header file.
|
||||
|
||||
// $NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
|
||||
|
||||
// -
|
||||
@@ -1784,15 +1764,6 @@ type Pthread_key_t = int32 /* pthread_types.h:88:13
|
||||
// _LARGEFILE_SOURCE Large File Support
|
||||
// <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
|
||||
|
||||
// DO NOT EDIT THIS FILE.
|
||||
//
|
||||
// It has been auto-edited by fixincludes from:
|
||||
//
|
||||
// "/usr/include/sys/types.h"
|
||||
//
|
||||
// This had to be done to correct non-standard usages in the
|
||||
// original, manufacturer supplied header file.
|
||||
|
||||
// $NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
|
||||
|
||||
// -
|
||||
@@ -1833,9 +1804,9 @@ type Pthread_key_t = int32 /* pthread_types.h:88:13
|
||||
// Structure returned by gettimeofday(2) system call,
|
||||
// and used in other calls.
|
||||
type Timeval = struct {
|
||||
Ftv_sec Time_t
|
||||
Ftv_usec Suseconds_t
|
||||
_ [4]byte
|
||||
Ftv_sec Time_t
|
||||
Ftv_usec Suseconds_t
|
||||
F__ccgo_pad1 [4]byte
|
||||
} /* time.h:44:1 */
|
||||
|
||||
// $NetBSD: timespec.h,v 1.1 2015/07/31 12:51:32 kamil Exp $
|
||||
@@ -1918,6 +1889,7 @@ type Timezone = struct {
|
||||
|
||||
// hide bintime for _STANDALONE because this header is used for hpcboot.exe,
|
||||
// which is built with compilers which don't recognize LL suffix.
|
||||
//
|
||||
// http://mail-index.NetBSD.org/tech-userlevel/2008/02/27/msg000181.html
|
||||
type Bintime = struct {
|
||||
Fsec Time_t
|
||||
@@ -1932,14 +1904,14 @@ type Bintime = struct {
|
||||
|
||||
type Itimerval = struct {
|
||||
Fit_interval struct {
|
||||
Ftv_sec Time_t
|
||||
Ftv_usec Suseconds_t
|
||||
_ [4]byte
|
||||
Ftv_sec Time_t
|
||||
Ftv_usec Suseconds_t
|
||||
F__ccgo_pad1 [4]byte
|
||||
}
|
||||
Fit_value struct {
|
||||
Ftv_sec Time_t
|
||||
Ftv_usec Suseconds_t
|
||||
_ [4]byte
|
||||
Ftv_sec Time_t
|
||||
Ftv_usec Suseconds_t
|
||||
F__ccgo_pad1 [4]byte
|
||||
}
|
||||
} /* time.h:280:1 */
|
||||
|
||||
@@ -2281,10 +2253,10 @@ type Sigset_t = struct{ F__bits [4]X__uint32_t } /* sigtypes.h:62:3 */
|
||||
// Macro for manipulating signal masks.
|
||||
|
||||
type Sigaltstack = struct {
|
||||
Fss_sp uintptr
|
||||
Fss_size Size_t
|
||||
Fss_flags int32
|
||||
_ [4]byte
|
||||
Fss_sp uintptr
|
||||
Fss_size Size_t
|
||||
Fss_flags int32
|
||||
F__ccgo_pad1 [4]byte
|
||||
} /* sigtypes.h:108:9 */
|
||||
|
||||
// Macro for manipulating signal masks.
|
||||
@@ -2458,18 +2430,18 @@ type Stack_t = Sigaltstack /* sigtypes.h:116:3 */
|
||||
// Public domain.
|
||||
|
||||
type Tm = struct {
|
||||
Ftm_sec int32
|
||||
Ftm_min int32
|
||||
Ftm_hour int32
|
||||
Ftm_mday int32
|
||||
Ftm_mon int32
|
||||
Ftm_year int32
|
||||
Ftm_wday int32
|
||||
Ftm_yday int32
|
||||
Ftm_isdst int32
|
||||
_ [4]byte
|
||||
Ftm_gmtoff int64
|
||||
Ftm_zone uintptr
|
||||
Ftm_sec int32
|
||||
Ftm_min int32
|
||||
Ftm_hour int32
|
||||
Ftm_mday int32
|
||||
Ftm_mon int32
|
||||
Ftm_year int32
|
||||
Ftm_wday int32
|
||||
Ftm_yday int32
|
||||
Ftm_isdst int32
|
||||
F__ccgo_pad1 [4]byte
|
||||
Ftm_gmtoff int64
|
||||
Ftm_zone uintptr
|
||||
} /* time.h:75:1 */
|
||||
|
||||
// $NetBSD: idtype.h,v 1.5 2016/04/09 17:02:51 riastradh Exp $
|
||||
@@ -2514,16 +2486,16 @@ type Locale_t = uintptr /* time.h:188:25 */
|
||||
type Timezone_t = uintptr /* time.h:198:24 */
|
||||
|
||||
type Stat = struct {
|
||||
Fst_dev Dev_t
|
||||
Fst_mode X__mode_t
|
||||
_ [4]byte
|
||||
Fst_ino Ino_t
|
||||
Fst_nlink Nlink_t
|
||||
Fst_uid X__uid_t
|
||||
Fst_gid X__gid_t
|
||||
_ [4]byte
|
||||
Fst_rdev Dev_t
|
||||
Fst_atim struct {
|
||||
Fst_dev Dev_t
|
||||
Fst_mode X__mode_t
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fst_ino Ino_t
|
||||
Fst_nlink Nlink_t
|
||||
Fst_uid X__uid_t
|
||||
Fst_gid X__gid_t
|
||||
F__ccgo_pad2 [4]byte
|
||||
Fst_rdev Dev_t
|
||||
Fst_atim struct {
|
||||
Ftv_sec Time_t
|
||||
Ftv_nsec int64
|
||||
}
|
||||
@@ -2539,13 +2511,13 @@ type Stat = struct {
|
||||
Ftv_sec Time_t
|
||||
Ftv_nsec int64
|
||||
}
|
||||
Fst_size X__off_t
|
||||
Fst_blocks Blkcnt_t
|
||||
Fst_blksize Blksize_t
|
||||
Fst_flags Uint32_t
|
||||
Fst_gen Uint32_t
|
||||
Fst_spare [2]Uint32_t
|
||||
_ [4]byte
|
||||
Fst_size X__off_t
|
||||
Fst_blocks Blkcnt_t
|
||||
Fst_blksize Blksize_t
|
||||
Fst_flags Uint32_t
|
||||
Fst_gen Uint32_t
|
||||
Fst_spare [2]Uint32_t
|
||||
F__ccgo_pad3 [4]byte
|
||||
} /* stat.h:59:1 */
|
||||
|
||||
// $NetBSD: fts.h,v 1.19 2009/08/16 19:33:38 christos Exp $
|
||||
@@ -2598,10 +2570,10 @@ type X_ftsent = struct {
|
||||
Ffts_info uint16
|
||||
Ffts_flags uint16
|
||||
Ffts_instr uint16
|
||||
_ [2]byte
|
||||
F__ccgo_pad1 [2]byte
|
||||
Ffts_statp uintptr
|
||||
Ffts_name [1]int8
|
||||
_ [7]byte
|
||||
F__ccgo_pad2 [7]byte
|
||||
} /* fts.h:60:2 */
|
||||
|
||||
// $NetBSD: fts.h,v 1.19 2009/08/16 19:33:38 christos Exp $
|
||||
@@ -2644,10 +2616,10 @@ type FTS = struct {
|
||||
Ffts_rfd int32
|
||||
Ffts_pathlen uint32
|
||||
Ffts_nitems uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Ffts_compar uintptr
|
||||
Ffts_options int32
|
||||
_ [4]byte
|
||||
F__ccgo_pad2 [4]byte
|
||||
} /* fts.h:84:3 */
|
||||
|
||||
type FTSENT = X_ftsent /* fts.h:136:3 */
|
||||
|
||||
+4
-2
@@ -1,5 +1,7 @@
|
||||
// Code generated by 'ccgo grp/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 grp/grp_darwin_amd64.go -pkgname grp', DO NOT EDIT.
|
||||
// Code generated by 'ccgo grp/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 grp/grp_darwin_amd64.go -pkgname grp', DO NOT EDIT.
|
||||
|
||||
package grp
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
||||
var CAPI = map[string]struct{}{
|
||||
"__darwin_check_fd_set_overflow": {},
|
||||
}
|
||||
+4
-2
@@ -1,5 +1,7 @@
|
||||
// Code generated by 'ccgo grp/gen.c -crt-import-path -export-defines -export-enums -export-externs X -export-fields F -export-structs -export-typedefs -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o grp/grp_darwin_arm64.go -pkgname grp', DO NOT EDIT.
|
||||
// Code generated by 'ccgo grp/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 grp/grp_darwin_arm64.go -pkgname grp', DO NOT EDIT.
|
||||
|
||||
package grp
|
||||
|
||||
var CAPI = map[string]struct{}{}
|
||||
var CAPI = map[string]struct{}{
|
||||
"__darwin_check_fd_set_overflow": {},
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo grp/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 grp/grp_freebsd_amd64.go -pkgname grp', DO NOT EDIT.
|
||||
// Code generated by 'ccgo grp/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 grp/grp_freebsd_amd64.go -pkgname grp', DO NOT EDIT.
|
||||
|
||||
package grp
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo grp/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 grp/grp_linux_amd64.go -pkgname grp', DO NOT EDIT.
|
||||
// Code generated by 'ccgo grp/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 grp/grp_linux_amd64.go -pkgname grp', DO NOT EDIT.
|
||||
|
||||
package grp
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo grp/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 grp/grp_netbsd_amd64.go -pkgname grp', DO NOT EDIT.
|
||||
// Code generated by 'ccgo grp/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 grp/grp_netbsd_amd64.go -pkgname grp', DO NOT EDIT.
|
||||
|
||||
package grp
|
||||
|
||||
|
||||
+38
-29
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo grp/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 grp/grp_darwin_amd64.go -pkgname grp', DO NOT EDIT.
|
||||
// Code generated by 'ccgo grp/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 grp/grp_darwin_amd64.go -pkgname grp', DO NOT EDIT.
|
||||
|
||||
package grp
|
||||
|
||||
@@ -15,27 +15,27 @@ var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
X_BSD_I386__TYPES_H_ = 0
|
||||
X_BSD_MACHINE__TYPES_H_ = 0
|
||||
X_CDEFS_H_ = 0
|
||||
X_DARWIN_FEATURE_64_BIT_INODE = 1
|
||||
X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1
|
||||
X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_FORTIFY_SOURCE = 2
|
||||
X_GID_T = 0
|
||||
X_GRP_H_ = 0
|
||||
X_LP64 = 1
|
||||
X_Nonnull = 0
|
||||
X_Null_unspecified = 0
|
||||
X_Nullable = 0
|
||||
X_PATH_GROUP = "/etc/group"
|
||||
X_SIZE_T = 0
|
||||
X_SYS__PTHREAD_TYPES_H_ = 0
|
||||
X_SYS__TYPES_H_ = 0
|
||||
X_UUID_STRING_T = 0
|
||||
X_UUID_T = 0
|
||||
X_UUID_UUID_H = 0
|
||||
X_BSD_I386__TYPES_H_ = 0 // _types.h:29: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:745:1:
|
||||
X_DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE = 1 // cdefs.h:771:1:
|
||||
X_DARWIN_FEATURE_UNIX_CONFORMANCE = 3 // cdefs.h:779:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_FORTIFY_SOURCE = 2 // _types.h:65:1:
|
||||
X_GID_T = 0 // _gid_t.h:29:1:
|
||||
X_GRP_H_ = 0 // grp.h:43:1:
|
||||
X_LP64 = 1 // <predefined>:1:1:
|
||||
X_Nonnull = 0 // cdefs.h:243:1:
|
||||
X_Null_unspecified = 0 // cdefs.h:246:1:
|
||||
X_Nullable = 0 // cdefs.h:240:1:
|
||||
X_PATH_GROUP = "/etc/group" // grp.h:50:1:
|
||||
X_SIZE_T = 0 // _size_t.h:29:1:
|
||||
X_SYS__PTHREAD_TYPES_H_ = 0 // _pthread_types.h:30:1:
|
||||
X_SYS__TYPES_H_ = 0 // _types.h:30:1:
|
||||
X_UUID_STRING_T = 0 // uuid.h:42:1:
|
||||
X_UUID_T = 0 // _uuid_t.h:29:1:
|
||||
X_UUID_UUID_H = 0 // uuid.h:36:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
@@ -56,6 +56,8 @@ type X__uint128_t = struct {
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
|
||||
|
||||
// -
|
||||
// Copyright (c) 1989, 1993
|
||||
// The Regents of the University of California. All rights reserved.
|
||||
@@ -217,6 +219,13 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// in between its arguments. __CONCAT can also concatenate double-quoted
|
||||
// strings produced by the __STRING macro, but this only works with ANSI C.
|
||||
|
||||
// In non-ANSI C environments, new programs will want ANSI-only C keywords
|
||||
// deleted from the program and old programs will want them left alone.
|
||||
// When using a compiler other than gcc, programs using the ANSI C keywords
|
||||
// const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
|
||||
// When using "gcc -traditional", we assume that this is the intent; if
|
||||
// __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
|
||||
|
||||
// __unused denotes variables and functions that may not be used, preventing
|
||||
// the compiler from warning about it if not used.
|
||||
|
||||
@@ -584,8 +593,8 @@ type X__darwin_ct_rune_t = int32 /* _types.h:70:33 */ // ct_rune_t
|
||||
// mbstate_t is an opaque object to keep conversion state, during multibyte
|
||||
// stream conversions. The content must not be referenced by user programs.
|
||||
type X__mbstate_t = struct {
|
||||
_ [0]uint64
|
||||
F__mbstate8 [128]int8
|
||||
F__ccgo_pad1 [0]uint64
|
||||
F__mbstate8 [128]int8
|
||||
} /* _types.h:79:3 */
|
||||
|
||||
type X__darwin_mbstate_t = X__mbstate_t /* _types.h:81:33 */ // mbstate_t
|
||||
@@ -869,11 +878,11 @@ type X__darwin_wctype_t = X__uint32_t /* _types.h:43:20 */
|
||||
type Gid_t = X__darwin_gid_t /* _gid_t.h:31:25 */
|
||||
|
||||
type Group = struct {
|
||||
Fgr_name uintptr
|
||||
Fgr_passwd uintptr
|
||||
Fgr_gid Gid_t
|
||||
_ [4]byte
|
||||
Fgr_mem uintptr
|
||||
Fgr_name uintptr
|
||||
Fgr_passwd uintptr
|
||||
Fgr_gid Gid_t
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fgr_mem uintptr
|
||||
} /* grp.h:53:1 */
|
||||
|
||||
// Public include file for the UUID library
|
||||
|
||||
+83
-56
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo grp/gen.c -crt-import-path "" -export-defines "" -export-enums "" -export-externs X -export-fields F -export-structs "" -export-typedefs "" -hide _OSSwapInt16,_OSSwapInt32,_OSSwapInt64 -o grp/grp_darwin_arm64.go -pkgname grp', DO NOT EDIT.
|
||||
// Code generated by 'ccgo grp/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 grp/grp_darwin_arm64.go -pkgname grp', DO NOT EDIT.
|
||||
|
||||
package grp
|
||||
|
||||
@@ -15,29 +15,29 @@ var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
X_BSD_ARM__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_FILE_OFFSET_BITS = 64
|
||||
X_FORTIFY_SOURCE = 2
|
||||
X_GID_T = 0
|
||||
X_GRP_H_ = 0
|
||||
X_LP64 = 1
|
||||
X_Nonnull = 0
|
||||
X_Null_unspecified = 0
|
||||
X_Nullable = 0
|
||||
X_PATH_GROUP = "/etc/group"
|
||||
X_SIZE_T = 0
|
||||
X_SYS__PTHREAD_TYPES_H_ = 0
|
||||
X_SYS__TYPES_H_ = 0
|
||||
X_UUID_STRING_T = 0
|
||||
X_UUID_T = 0
|
||||
X_UUID_UUID_H = 0
|
||||
X_BSD_ARM__TYPES_H_ = 0 // _types.h:5: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_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_FORTIFY_SOURCE = 2 // _types.h:65:1:
|
||||
X_GID_T = 0 // _gid_t.h:29:1:
|
||||
X_GRP_H_ = 0 // grp.h:43: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_PATH_GROUP = "/etc/group" // grp.h:50:1:
|
||||
X_SIZE_T = 0 // _size_t.h:29:1:
|
||||
X_SYS__PTHREAD_TYPES_H_ = 0 // _pthread_types.h:30:1:
|
||||
X_SYS__TYPES_H_ = 0 // _types.h:30:1:
|
||||
X_UUID_STRING_T = 0 // uuid.h:42:1:
|
||||
X_UUID_T = 0 // _uuid_t.h:29:1:
|
||||
X_UUID_UUID_H = 0 // uuid.h:36:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
@@ -58,6 +58,8 @@ type X__uint128_t = struct {
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
var X__darwin_check_fd_set_overflow uintptr /* <builtin>:146:5: */
|
||||
|
||||
// -
|
||||
// Copyright (c) 1989, 1993
|
||||
// The Regents of the University of California. All rights reserved.
|
||||
@@ -219,6 +221,19 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// in between its arguments. __CONCAT can also concatenate double-quoted
|
||||
// strings produced by the __STRING macro, but this only works with ANSI C.
|
||||
|
||||
// In non-ANSI C environments, new programs will want ANSI-only C keywords
|
||||
// deleted from the program and old programs will want them left alone.
|
||||
// When using a compiler other than gcc, programs using the ANSI C keywords
|
||||
// const, inline etc. as normal identifiers should define -DNO_ANSI_KEYWORDS.
|
||||
// When using "gcc -traditional", we assume that this is the intent; if
|
||||
// __GNUC__ is defined but __STDC__ is not, we leave the new keywords alone.
|
||||
|
||||
// __pure2 can be used for functions that are only a function of their scalar
|
||||
// arguments (meaning they can't dereference pointers).
|
||||
//
|
||||
// __stateful_pure can be used for functions that have no side effects,
|
||||
// but depend on the state of the memory.
|
||||
|
||||
// __unused denotes variables and functions that may not be used, preventing
|
||||
// the compiler from warning about it if not used.
|
||||
|
||||
@@ -495,6 +510,20 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// __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
|
||||
@@ -533,17 +562,17 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// This header file contains integer types. It's intended to also contain
|
||||
// flotaing point and other arithmetic types, as needed, later.
|
||||
|
||||
type X__int8_t = int8 /* _types.h:13:33 */
|
||||
type X__uint8_t = uint8 /* _types.h:17:33 */
|
||||
type X__int16_t = int16 /* _types.h:18:33 */
|
||||
type X__uint16_t = uint16 /* _types.h:19:33 */
|
||||
type X__int32_t = int32 /* _types.h:20:33 */
|
||||
type X__uint32_t = uint32 /* _types.h:21:33 */
|
||||
type X__int64_t = int64 /* _types.h:22:33 */
|
||||
type X__uint64_t = uint64 /* _types.h:23:33 */
|
||||
type X__int8_t = int8 /* _types.h:15:33 */
|
||||
type X__uint8_t = uint8 /* _types.h:19:33 */
|
||||
type X__int16_t = int16 /* _types.h:20:33 */
|
||||
type X__uint16_t = uint16 /* _types.h:21:33 */
|
||||
type X__int32_t = int32 /* _types.h:22:33 */
|
||||
type X__uint32_t = uint32 /* _types.h:23:33 */
|
||||
type X__int64_t = int64 /* _types.h:24:33 */
|
||||
type X__uint64_t = uint64 /* _types.h:25:33 */
|
||||
|
||||
type X__darwin_intptr_t = int64 /* _types.h:25:33 */
|
||||
type X__darwin_natural_t = uint32 /* _types.h:26:33 */
|
||||
type X__darwin_intptr_t = int64 /* _types.h:27:33 */
|
||||
type X__darwin_natural_t = uint32 /* _types.h:28:33 */
|
||||
|
||||
// The rune type below is declared to be an ``int'' instead of the more natural
|
||||
// ``unsigned long'' or ``long''. Two things are happening here. It is not
|
||||
@@ -561,33 +590,33 @@ type X__darwin_natural_t = uint32 /* _types.h:26:33 */
|
||||
// wchar_t, and should also be able to hold all members of the largest
|
||||
// character set plus one extra value (WEOF). wint_t must be at least 16 bits.
|
||||
|
||||
type X__darwin_ct_rune_t = int32 /* _types.h:46:33 */ // ct_rune_t
|
||||
type X__darwin_ct_rune_t = int32 /* _types.h:48:33 */ // ct_rune_t
|
||||
|
||||
// mbstate_t is an opaque object to keep conversion state, during multibyte
|
||||
// stream conversions. The content must not be referenced by user programs.
|
||||
type X__mbstate_t = struct {
|
||||
_ [0]uint64
|
||||
F__mbstate8 [128]int8
|
||||
} /* _types.h:55:3 */
|
||||
F__ccgo_pad1 [0]uint64
|
||||
F__mbstate8 [128]int8
|
||||
} /* _types.h:57:3 */
|
||||
|
||||
type X__darwin_mbstate_t = X__mbstate_t /* _types.h:57:33 */ // mbstate_t
|
||||
type X__darwin_mbstate_t = X__mbstate_t /* _types.h:59:33 */ // mbstate_t
|
||||
|
||||
type X__darwin_ptrdiff_t = int64 /* _types.h:60:33 */ // ptr1 - ptr2
|
||||
type X__darwin_ptrdiff_t = int64 /* _types.h:62:33 */ // ptr1 - ptr2
|
||||
|
||||
type X__darwin_size_t = uint64 /* _types.h:68:33 */ // sizeof()
|
||||
type X__darwin_size_t = uint64 /* _types.h:70:33 */ // sizeof()
|
||||
|
||||
type X__darwin_va_list = X__builtin_va_list /* _types.h:74:33 */ // va_list
|
||||
type X__darwin_va_list = X__builtin_va_list /* _types.h:76:33 */ // va_list
|
||||
|
||||
type X__darwin_wchar_t = int32 /* _types.h:80:33 */ // wchar_t
|
||||
type X__darwin_wchar_t = int32 /* _types.h:82:33 */ // wchar_t
|
||||
|
||||
type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:85:33 */ // rune_t
|
||||
type X__darwin_rune_t = X__darwin_wchar_t /* _types.h:87:33 */ // rune_t
|
||||
|
||||
type X__darwin_wint_t = int32 /* _types.h:88:33 */ // wint_t
|
||||
type X__darwin_wint_t = int32 /* _types.h:90:33 */ // wint_t
|
||||
|
||||
type X__darwin_clock_t = uint64 /* _types.h:93:33 */ // clock()
|
||||
type X__darwin_socklen_t = X__uint32_t /* _types.h:94:33 */ // socklen_t (duh)
|
||||
type X__darwin_ssize_t = int64 /* _types.h:95:33 */ // byte count or error
|
||||
type X__darwin_time_t = int64 /* _types.h:96:33 */ // time()
|
||||
type X__darwin_clock_t = uint64 /* _types.h:95:33 */ // clock()
|
||||
type X__darwin_socklen_t = X__uint32_t /* _types.h:96:33 */ // socklen_t (duh)
|
||||
type X__darwin_ssize_t = int64 /* _types.h:97:33 */ // byte count or error
|
||||
type X__darwin_time_t = int64 /* _types.h:98:33 */ // time()
|
||||
|
||||
// Type definitions; takes common type definitions that must be used
|
||||
// in multiple header files due to [XSI], removes them from the system
|
||||
@@ -851,11 +880,11 @@ type X__darwin_wctype_t = X__uint32_t /* _types.h:43:20 */
|
||||
type Gid_t = X__darwin_gid_t /* _gid_t.h:31:25 */
|
||||
|
||||
type Group = struct {
|
||||
Fgr_name uintptr
|
||||
Fgr_passwd uintptr
|
||||
Fgr_gid Gid_t
|
||||
_ [4]byte
|
||||
Fgr_mem uintptr
|
||||
Fgr_name uintptr
|
||||
Fgr_passwd uintptr
|
||||
Fgr_gid Gid_t
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fgr_mem uintptr
|
||||
} /* grp.h:53:1 */
|
||||
|
||||
// Public include file for the UUID library
|
||||
@@ -971,6 +1000,4 @@ type Uuid_t = X__darwin_uuid_t /* _uuid_t.h:31:25 */
|
||||
|
||||
type Uuid_string_t = X__darwin_uuid_string_t /* uuid.h:43:33 */
|
||||
|
||||
var sUUID_NULL = Uuid_t{uint8(0), uint8(0), uint8(0), uint8(0), uint8(0), uint8(0), uint8(0), uint8(0), uint8(0), uint8(0), uint8(0), uint8(0), uint8(0), uint8(0), uint8(0), uint8(0)} /* uuid.h:49:1 */
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
||||
+28
-25
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo grp/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 grp/grp_freebsd_amd64.go -pkgname grp', DO NOT EDIT.
|
||||
// Code generated by 'ccgo grp/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 grp/grp_freebsd_amd64.go -pkgname grp', DO NOT EDIT.
|
||||
|
||||
package grp
|
||||
|
||||
@@ -15,20 +15,20 @@ var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_GID_T_DECLARED = 0
|
||||
X_GRP_H_ = 0
|
||||
X_LP64 = 1
|
||||
X_MACHINE__LIMITS_H_ = 0
|
||||
X_MACHINE__TYPES_H_ = 0
|
||||
X_Nonnull = 0
|
||||
X_Null_unspecified = 0
|
||||
X_Nullable = 0
|
||||
X_PATH_GROUP = "/etc/group"
|
||||
X_SIZE_T_DECLARED = 0
|
||||
X_SYS_CDEFS_H_ = 0
|
||||
X_SYS__TYPES_H_ = 0
|
||||
Unix = 1
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_GID_T_DECLARED = 0 // grp.h:50:1:
|
||||
X_GRP_H_ = 0 // grp.h:41:1:
|
||||
X_LP64 = 1 // <predefined>:1:1:
|
||||
X_MACHINE__LIMITS_H_ = 0 // _limits.h:36:1:
|
||||
X_MACHINE__TYPES_H_ = 0 // _types.h:42:1:
|
||||
X_Nonnull = 0 // cdefs.h:790:1:
|
||||
X_Null_unspecified = 0 // cdefs.h:792:1:
|
||||
X_Nullable = 0 // cdefs.h:791:1:
|
||||
X_PATH_GROUP = "/etc/group" // grp.h:46:1:
|
||||
X_SIZE_T_DECLARED = 0 // grp.h:55:1:
|
||||
X_SYS_CDEFS_H_ = 0 // cdefs.h:39:1:
|
||||
X_SYS__TYPES_H_ = 0 // _types.h:32:1:
|
||||
Unix = 1 // <predefined>:340:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
@@ -303,12 +303,15 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// Function should not be analyzed.
|
||||
|
||||
// Function or variable should not be sanitized, i.e. by AddressSanitizer.
|
||||
// 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
|
||||
//
|
||||
@@ -551,8 +554,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
|
||||
@@ -585,8 +588,8 @@ 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 {
|
||||
_ [0]uint64
|
||||
F__mbstate8 [128]int8
|
||||
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 */
|
||||
@@ -603,11 +606,11 @@ type X__gnuc_va_list = X__va_list /* _types.h:140:20 */ // compatibility w/GN
|
||||
type Gid_t = X__gid_t /* grp.h:49:18 */
|
||||
|
||||
type Group = struct {
|
||||
Fgr_name uintptr
|
||||
Fgr_passwd uintptr
|
||||
Fgr_gid Gid_t
|
||||
_ [4]byte
|
||||
Fgr_mem uintptr
|
||||
Fgr_name uintptr
|
||||
Fgr_passwd uintptr
|
||||
Fgr_gid Gid_t
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fgr_mem uintptr
|
||||
} /* grp.h:58:1 */
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
||||
+155
-88
@@ -17,6 +17,7 @@ var _ unsafe.Pointer
|
||||
const (
|
||||
NSS_BUFLEN_GROUP = 1024
|
||||
X_ATFILE_SOURCE = 1
|
||||
X_BITS_TIME64_H = 1
|
||||
X_BITS_TYPESIZES_H = 1
|
||||
X_BITS_TYPES_H = 1
|
||||
X_BSD_SIZE_T_ = 0
|
||||
@@ -26,6 +27,7 @@ const (
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_GCC_SIZE_T = 0
|
||||
X_GRP_H = 1
|
||||
X_ILP32 = 1
|
||||
X_POSIX_C_SOURCE = 200809
|
||||
X_POSIX_SOURCE = 1
|
||||
X_SIZET_ = 0
|
||||
@@ -53,7 +55,7 @@ type Wchar_t = int32 /* <builtin>:15:24 */
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -68,11 +70,11 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// POSIX Standard: 9.2.1 Group Database Access <grp.h>
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -87,7 +89,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// These are defined by the user (or the compiler)
|
||||
// to specify the desired environment:
|
||||
@@ -95,6 +97,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// __STRICT_ANSI__ ISO Standard C.
|
||||
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
|
||||
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
|
||||
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
|
||||
// __STDC_WANT_LIB_EXT2__
|
||||
// Extensions to ISO C99 from TR 27431-2:2010.
|
||||
// __STDC_WANT_IEC_60559_BFP_EXT__
|
||||
@@ -215,6 +218,8 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
|
||||
// define _DEFAULT_SOURCE.
|
||||
|
||||
// This is to enable the ISO C2X extension.
|
||||
|
||||
// This is to enable the ISO C11 extension.
|
||||
|
||||
// This is to enable the ISO C99 extension.
|
||||
@@ -237,9 +242,22 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// compatibility with various implementations of <cstdio>, this test
|
||||
// must consider only the value of __cplusplus when compiling C++.
|
||||
|
||||
// GNU formerly extended the scanf functions with modified format
|
||||
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
|
||||
// input using malloc. This extension conflicts with ISO C99, which
|
||||
// defines %a as a standalone format specifier that reads a floating-
|
||||
// point number; moreover, POSIX.1-2008 provides the same feature
|
||||
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
|
||||
//
|
||||
// We now follow C99 unless GNU extensions are active and the compiler
|
||||
// is specifically in C89 or C++98 mode (strict or not). For
|
||||
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
|
||||
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
|
||||
// old extension.
|
||||
|
||||
// Get definitions of __STDC_* predefined macros, if the compiler has
|
||||
// not preincluded this header automatically.
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -254,7 +272,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// This macro indicates that the installed library is the GNU C Library.
|
||||
// For historic reasons the value now is 6 and this will stay from now
|
||||
@@ -267,7 +285,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// these macros to test for features in specific releases.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// Copyright (C) 1992-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -282,7 +300,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// We are almost always included from features.h.
|
||||
|
||||
@@ -397,7 +415,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// semantics.
|
||||
//
|
||||
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
|
||||
// semantics, that can be checked fot by using the __GNUC_STDC_INLINE_ and
|
||||
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
|
||||
// __GNUC_GNU_INLINE__ macro definitions.
|
||||
|
||||
// GCC 4.3 and above allow passing all anonymous arguments of an
|
||||
@@ -418,10 +436,14 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// argument to strncpy and strncat, as the char array is not necessarily
|
||||
// a NUL-terminated string.
|
||||
|
||||
// Undefine (also defined in libc-symbols.h).
|
||||
// Copies attributes from the declaration or type referenced by
|
||||
// the argument.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// Properties of long double type. ldbl-96 version.
|
||||
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -436,7 +458,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// long double is distinct from double, so there is nothing to
|
||||
// define here.
|
||||
@@ -474,7 +496,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// every time called, usually setting errno to ENOSYS.
|
||||
|
||||
// bits/types.h -- definitions of __*_t types underlying *_t types.
|
||||
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -489,11 +511,11 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Never include this file directly; use <sys/types.h> instead.
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -508,43 +530,63 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// Bit size of the time_t type at glibc build time, x86-64 and x32 case.
|
||||
// Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// For others, time size is word size.
|
||||
|
||||
// Convenience types.
|
||||
type X__u_char = uint8 /* types.h:30:23 */
|
||||
type X__u_short = uint16 /* types.h:31:28 */
|
||||
type X__u_int = uint32 /* types.h:32:22 */
|
||||
type X__u_long = uint32 /* types.h:33:27 */
|
||||
type X__u_char = uint8 /* types.h:31:23 */
|
||||
type X__u_short = uint16 /* types.h:32:28 */
|
||||
type X__u_int = uint32 /* types.h:33:22 */
|
||||
type X__u_long = uint32 /* types.h:34:27 */
|
||||
|
||||
// Fixed-size types, underlying types depend on word size and compiler.
|
||||
type X__int8_t = int8 /* types.h:36:21 */
|
||||
type X__uint8_t = uint8 /* types.h:37:23 */
|
||||
type X__int16_t = int16 /* types.h:38:26 */
|
||||
type X__uint16_t = uint16 /* types.h:39:28 */
|
||||
type X__int32_t = int32 /* types.h:40:20 */
|
||||
type X__uint32_t = uint32 /* types.h:41:22 */
|
||||
type X__int64_t = int64 /* types.h:46:44 */
|
||||
type X__uint64_t = uint64 /* types.h:47:46 */
|
||||
type X__int8_t = int8 /* types.h:37:21 */
|
||||
type X__uint8_t = uint8 /* types.h:38:23 */
|
||||
type X__int16_t = int16 /* types.h:39:26 */
|
||||
type X__uint16_t = uint16 /* types.h:40:28 */
|
||||
type X__int32_t = int32 /* types.h:41:20 */
|
||||
type X__uint32_t = uint32 /* types.h:42:22 */
|
||||
type X__int64_t = int64 /* types.h:47:44 */
|
||||
type X__uint64_t = uint64 /* types.h:48:46 */
|
||||
|
||||
// Smallest types with at least a given width.
|
||||
type X__int_least8_t = X__int8_t /* types.h:51:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:52:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:53:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:54:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:55:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:56:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:57:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:58:20 */
|
||||
type X__int_least8_t = X__int8_t /* types.h:52:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:54:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:56:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:58:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
|
||||
|
||||
// quad_t is also 64 bits.
|
||||
type X__quad_t = int64 /* types.h:65:37 */
|
||||
type X__u_quad_t = uint64 /* types.h:66:46 */
|
||||
type X__quad_t = int64 /* types.h:66:37 */
|
||||
type X__u_quad_t = uint64 /* types.h:67:46 */
|
||||
|
||||
// Largest integral types.
|
||||
type X__intmax_t = int64 /* types.h:74:37 */
|
||||
type X__uintmax_t = uint64 /* types.h:75:46 */
|
||||
type X__intmax_t = int64 /* types.h:75:37 */
|
||||
type X__uintmax_t = uint64 /* types.h:76:46 */
|
||||
|
||||
// The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
|
||||
// macros for each of the OS types we define below. The definitions
|
||||
@@ -556,7 +598,7 @@ type X__uintmax_t = uint64 /* types.h:75:46 */
|
||||
// 32 -- "natural" 32-bit type (always int)
|
||||
// 64 -- "natural" 64-bit type (long or long long)
|
||||
// LONG32 -- 32-bit type, traditionally long
|
||||
// QUAD -- 64-bit type, always long long
|
||||
// QUAD -- 64-bit type, traditionally long long
|
||||
// WORD -- natural type of __WORDSIZE bits (int or long)
|
||||
// LONGWORD -- type of __WORDSIZE bits, traditionally long
|
||||
//
|
||||
@@ -578,7 +620,7 @@ type X__uintmax_t = uint64 /* types.h:75:46 */
|
||||
// We want __extension__ before typedef's that use nonstandard base types
|
||||
// such as `long long' in C89 mode.
|
||||
// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version.
|
||||
// Copyright (C) 2012-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -593,7 +635,7 @@ type X__uintmax_t = uint64 /* types.h:75:46 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// See <bits/types.h> for the meaning of these macros. This file exists so
|
||||
// that <bits/types.h> need not vary across different GNU platforms.
|
||||
@@ -602,76 +644,106 @@ type X__uintmax_t = uint64 /* types.h:75:46 */
|
||||
|
||||
// Number of descriptors that can fit in an `fd_set'.
|
||||
|
||||
type X__dev_t = X__u_quad_t /* types.h:143:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:144:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:145:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint32 /* types.h:146:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = X__u_quad_t /* types.h:147:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:148:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint32 /* types.h:149:27 */ // Type of file link counts.
|
||||
type X__off_t = int32 /* types.h:150:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = X__quad_t /* types.h:151:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:152:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:153:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int32 /* types.h:154:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint32 /* types.h:155:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = X__u_quad_t /* types.h:156:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:157:24 */ // General type for IDs.
|
||||
type X__time_t = int32 /* types.h:158:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:159:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int32 /* types.h:160:31 */ // Signed count of microseconds.
|
||||
// bits/time64.h -- underlying types for __time64_t. Generic version.
|
||||
// Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:162:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:163:25 */ // Type of an IPC key.
|
||||
// Define __TIME64_T_TYPE so that it is always a 64-bit type.
|
||||
|
||||
// Define a 64-bit time type alongsize the 32-bit one.
|
||||
|
||||
type X__dev_t = X__uint64_t /* types.h:145:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint32 /* types.h:148:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = X__uint64_t /* types.h:149:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts.
|
||||
type X__off_t = int32 /* types.h:152:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = X__int64_t /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int32 /* types.h:156:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint32 /* types.h:157:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = X__uint64_t /* types.h:158:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
|
||||
type X__time_t = int32 /* types.h:160:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int32 /* types.h:162:31 */ // Signed count of microseconds.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
|
||||
|
||||
// Clock ID used in clock and timer functions.
|
||||
type X__clockid_t = int32 /* types.h:166:29 */
|
||||
type X__clockid_t = int32 /* types.h:168:29 */
|
||||
|
||||
// Timer ID returned by `timer_create'.
|
||||
type X__timer_t = uintptr /* types.h:169:12 */
|
||||
type X__timer_t = uintptr /* types.h:171:12 */
|
||||
|
||||
// Type to represent block size.
|
||||
type X__blksize_t = int32 /* types.h:172:29 */
|
||||
type X__blksize_t = int32 /* types.h:174:29 */
|
||||
|
||||
// Types from the Large File Support interface.
|
||||
|
||||
// Type to count number of disk blocks.
|
||||
type X__blkcnt_t = int32 /* types.h:177:28 */
|
||||
type X__blkcnt64_t = X__quad_t /* types.h:178:30 */
|
||||
type X__blkcnt_t = int32 /* types.h:179:28 */
|
||||
type X__blkcnt64_t = X__int64_t /* types.h:180:30 */
|
||||
|
||||
// Type to count file system blocks.
|
||||
type X__fsblkcnt_t = uint32 /* types.h:181:30 */
|
||||
type X__fsblkcnt64_t = X__u_quad_t /* types.h:182:32 */
|
||||
type X__fsblkcnt_t = uint32 /* types.h:183:30 */
|
||||
type X__fsblkcnt64_t = X__uint64_t /* types.h:184:32 */
|
||||
|
||||
// Type to count file system nodes.
|
||||
type X__fsfilcnt_t = uint32 /* types.h:185:30 */
|
||||
type X__fsfilcnt64_t = X__u_quad_t /* types.h:186:32 */
|
||||
type X__fsfilcnt_t = uint32 /* types.h:187:30 */
|
||||
type X__fsfilcnt64_t = X__uint64_t /* types.h:188:32 */
|
||||
|
||||
// Type of miscellaneous file system fields.
|
||||
type X__fsword_t = int32 /* types.h:189:28 */
|
||||
type X__fsword_t = int32 /* types.h:191:28 */
|
||||
|
||||
type X__ssize_t = int32 /* types.h:191:27 */ // Type of a byte count, or error.
|
||||
type X__ssize_t = int32 /* types.h:193:27 */ // Type of a byte count, or error.
|
||||
|
||||
// Signed long type used in system calls.
|
||||
type X__syscall_slong_t = int32 /* types.h:194:33 */
|
||||
type X__syscall_slong_t = int32 /* types.h:196:33 */
|
||||
// Unsigned long type used in system calls.
|
||||
type X__syscall_ulong_t = uint32 /* types.h: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.
|
||||
type X__loff_t = X__off64_t /* types.h:200:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:201:14 */
|
||||
//
|
||||
// to one of the other defined types.
|
||||
type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:203:14 */
|
||||
|
||||
// Duplicates info from stdint.h but this is used in unistd.h.
|
||||
type X__intptr_t = int32 /* types.h:204:25 */
|
||||
type X__intptr_t = int32 /* types.h:206:25 */
|
||||
|
||||
// Duplicate info from sys/socket.h.
|
||||
type X__socklen_t = uint32 /* types.h:207:23 */
|
||||
type X__socklen_t = uint32 /* types.h:209:23 */
|
||||
|
||||
// C99: An integer type that can be accessed as an atomic entity,
|
||||
// even in the presence of asynchronous interrupts.
|
||||
// It is not currently necessary for this to be machine-specific.
|
||||
type X__sig_atomic_t = int32 /* types.h:212:13 */
|
||||
//
|
||||
// even in the presence of asynchronous interrupts.
|
||||
// It is not currently necessary for this to be machine-specific.
|
||||
type X__sig_atomic_t = int32 /* types.h:214:13 */
|
||||
|
||||
// Seconds since the Epoch, visible to user code when time_t is too
|
||||
//
|
||||
// narrow only for consistency with the old way of widening too-narrow
|
||||
// types. User code should never use __time64_t.
|
||||
type X__time64_t = X__int64_t /* types.h:222:28 */
|
||||
|
||||
// Wide character type.
|
||||
// Locale-writers should change this as necessary to
|
||||
@@ -681,11 +753,6 @@ type X__sig_atomic_t = int32 /* types.h:212:13 */
|
||||
// Define this type if we are doing the whole job,
|
||||
// or if we want this type in particular.
|
||||
|
||||
// In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
|
||||
// are already defined.
|
||||
// BSD/OS 3.1 and FreeBSD [23].x require the MACHINE_ANSI_H check here.
|
||||
// NetBSD 5 requires the I386_ANSI_H and X86_64_ANSI_H checks here.
|
||||
|
||||
// A null pointer constant.
|
||||
|
||||
// For the Single Unix specification we must define this type here.
|
||||
|
||||
+182
-121
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo grp/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 grp/grp_linux_amd64.go -pkgname grp', DO NOT EDIT.
|
||||
// Code generated by 'ccgo grp/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 grp/grp_linux_amd64.go -pkgname grp', DO NOT EDIT.
|
||||
|
||||
package grp
|
||||
|
||||
@@ -15,33 +15,34 @@ var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
NSS_BUFLEN_GROUP = 1024
|
||||
X_ATFILE_SOURCE = 1
|
||||
X_BITS_TYPESIZES_H = 1
|
||||
X_BITS_TYPES_H = 1
|
||||
X_BSD_SIZE_T_ = 0
|
||||
X_BSD_SIZE_T_DEFINED_ = 0
|
||||
X_DEFAULT_SOURCE = 1
|
||||
X_FEATURES_H = 1
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_GCC_SIZE_T = 0
|
||||
X_GRP_H = 1
|
||||
X_LP64 = 1
|
||||
X_POSIX_C_SOURCE = 200809
|
||||
X_POSIX_SOURCE = 1
|
||||
X_SIZET_ = 0
|
||||
X_SIZE_T = 0
|
||||
X_SIZE_T_ = 0
|
||||
X_SIZE_T_DECLARED = 0
|
||||
X_SIZE_T_DEFINED = 0
|
||||
X_SIZE_T_DEFINED_ = 0
|
||||
X_STDC_PREDEF_H = 1
|
||||
X_SYS_CDEFS_H = 1
|
||||
X_SYS_SIZE_T_H = 0
|
||||
X_T_SIZE = 0
|
||||
X_T_SIZE_ = 0
|
||||
Linux = 1
|
||||
Unix = 1
|
||||
NSS_BUFLEN_GROUP = 1024 // grp.h:114:1:
|
||||
X_ATFILE_SOURCE = 1 // features.h:342:1:
|
||||
X_BITS_TIME64_H = 1 // time64.h:24:1:
|
||||
X_BITS_TYPESIZES_H = 1 // typesizes.h:24:1:
|
||||
X_BITS_TYPES_H = 1 // types.h:24:1:
|
||||
X_BSD_SIZE_T_ = 0 // stddef.h:189:1:
|
||||
X_BSD_SIZE_T_DEFINED_ = 0 // stddef.h:192:1:
|
||||
X_DEFAULT_SOURCE = 1 // features.h:227:1:
|
||||
X_FEATURES_H = 1 // features.h:19:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_GCC_SIZE_T = 0 // stddef.h:195:1:
|
||||
X_GRP_H = 1 // grp.h:23: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_SIZET_ = 0 // stddef.h:196:1:
|
||||
X_SIZE_T = 0 // stddef.h:183:1:
|
||||
X_SIZE_T_ = 0 // stddef.h:188:1:
|
||||
X_SIZE_T_DECLARED = 0 // stddef.h:193:1:
|
||||
X_SIZE_T_DEFINED = 0 // stddef.h:191:1:
|
||||
X_SIZE_T_DEFINED_ = 0 // stddef.h:190:1:
|
||||
X_STDC_PREDEF_H = 1 // <predefined>:162:1:
|
||||
X_SYS_CDEFS_H = 1 // cdefs.h:19:1:
|
||||
X_SYS_SIZE_T_H = 0 // stddef.h:184:1:
|
||||
X_T_SIZE = 0 // stddef.h:186:1:
|
||||
X_T_SIZE_ = 0 // stddef.h:185:1:
|
||||
Linux = 1 // <predefined>:231:1:
|
||||
Unix = 1 // <predefined>:177:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
@@ -62,7 +63,7 @@ type X__uint128_t = struct {
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -77,11 +78,11 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// POSIX Standard: 9.2.1 Group Database Access <grp.h>
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -96,7 +97,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// These are defined by the user (or the compiler)
|
||||
// to specify the desired environment:
|
||||
@@ -104,6 +105,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// __STRICT_ANSI__ ISO Standard C.
|
||||
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
|
||||
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
|
||||
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
|
||||
// __STDC_WANT_LIB_EXT2__
|
||||
// Extensions to ISO C99 from TR 27431-2:2010.
|
||||
// __STDC_WANT_IEC_60559_BFP_EXT__
|
||||
@@ -224,6 +226,8 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
|
||||
// define _DEFAULT_SOURCE.
|
||||
|
||||
// This is to enable the ISO C2X extension.
|
||||
|
||||
// This is to enable the ISO C11 extension.
|
||||
|
||||
// This is to enable the ISO C99 extension.
|
||||
@@ -246,9 +250,22 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// compatibility with various implementations of <cstdio>, this test
|
||||
// must consider only the value of __cplusplus when compiling C++.
|
||||
|
||||
// GNU formerly extended the scanf functions with modified format
|
||||
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
|
||||
// input using malloc. This extension conflicts with ISO C99, which
|
||||
// defines %a as a standalone format specifier that reads a floating-
|
||||
// point number; moreover, POSIX.1-2008 provides the same feature
|
||||
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
|
||||
//
|
||||
// We now follow C99 unless GNU extensions are active and the compiler
|
||||
// is specifically in C89 or C++98 mode (strict or not). For
|
||||
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
|
||||
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
|
||||
// old extension.
|
||||
|
||||
// Get definitions of __STDC_* predefined macros, if the compiler has
|
||||
// not preincluded this header automatically.
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -263,7 +280,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// This macro indicates that the installed library is the GNU C Library.
|
||||
// For historic reasons the value now is 6 and this will stay from now
|
||||
@@ -276,7 +293,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// these macros to test for features in specific releases.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// Copyright (C) 1992-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -291,7 +308,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// We are almost always included from features.h.
|
||||
|
||||
@@ -406,7 +423,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// semantics.
|
||||
//
|
||||
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
|
||||
// semantics, that can be checked fot by using the __GNUC_STDC_INLINE_ and
|
||||
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
|
||||
// __GNUC_GNU_INLINE__ macro definitions.
|
||||
|
||||
// GCC 4.3 and above allow passing all anonymous arguments of an
|
||||
@@ -427,11 +444,15 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// argument to strncpy and strncat, as the char array is not necessarily
|
||||
// a NUL-terminated string.
|
||||
|
||||
// Undefine (also defined in libc-symbols.h).
|
||||
// Copies attributes from the declaration or type referenced by
|
||||
// the argument.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// Both x86-64 and x32 use the 64-bit system call interface.
|
||||
// Properties of long double type. ldbl-96 version.
|
||||
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -446,7 +467,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// long double is distinct from double, so there is nothing to
|
||||
// define here.
|
||||
@@ -484,7 +505,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// every time called, usually setting errno to ENOSYS.
|
||||
|
||||
// bits/types.h -- definitions of __*_t types underlying *_t types.
|
||||
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -499,11 +520,11 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Never include this file directly; use <sys/types.h> instead.
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -518,45 +539,64 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
// Both x86-64 and x32 use the 64-bit system call interface.
|
||||
// Bit size of the time_t type at glibc build time, x86-64 and x32 case.
|
||||
// Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// For others, time size is word size.
|
||||
|
||||
// Convenience types.
|
||||
type X__u_char = uint8 /* types.h:30:23 */
|
||||
type X__u_short = uint16 /* types.h:31:28 */
|
||||
type X__u_int = uint32 /* types.h:32:22 */
|
||||
type X__u_long = uint64 /* types.h:33:27 */
|
||||
type X__u_char = uint8 /* types.h:31:23 */
|
||||
type X__u_short = uint16 /* types.h:32:28 */
|
||||
type X__u_int = uint32 /* types.h:33:22 */
|
||||
type X__u_long = uint64 /* types.h:34:27 */
|
||||
|
||||
// Fixed-size types, underlying types depend on word size and compiler.
|
||||
type X__int8_t = int8 /* types.h:36:21 */
|
||||
type X__uint8_t = uint8 /* types.h:37:23 */
|
||||
type X__int16_t = int16 /* types.h:38:26 */
|
||||
type X__uint16_t = uint16 /* types.h:39:28 */
|
||||
type X__int32_t = int32 /* types.h:40:20 */
|
||||
type X__uint32_t = uint32 /* types.h:41:22 */
|
||||
type X__int64_t = int64 /* types.h:43:25 */
|
||||
type X__uint64_t = uint64 /* types.h:44:27 */
|
||||
type X__int8_t = int8 /* types.h:37:21 */
|
||||
type X__uint8_t = uint8 /* types.h:38:23 */
|
||||
type X__int16_t = int16 /* types.h:39:26 */
|
||||
type X__uint16_t = uint16 /* types.h:40:28 */
|
||||
type X__int32_t = int32 /* types.h:41:20 */
|
||||
type X__uint32_t = uint32 /* types.h:42:22 */
|
||||
type X__int64_t = int64 /* types.h:44:25 */
|
||||
type X__uint64_t = uint64 /* types.h:45:27 */
|
||||
|
||||
// Smallest types with at least a given width.
|
||||
type X__int_least8_t = X__int8_t /* types.h:51:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:52:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:53:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:54:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:55:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:56:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:57:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:58:20 */
|
||||
type X__int_least8_t = X__int8_t /* types.h:52:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:54:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:56:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:58:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
|
||||
|
||||
// quad_t is also 64 bits.
|
||||
type X__quad_t = int64 /* types.h:62:18 */
|
||||
type X__u_quad_t = uint64 /* types.h:63:27 */
|
||||
type X__quad_t = int64 /* types.h:63:18 */
|
||||
type X__u_quad_t = uint64 /* types.h:64:27 */
|
||||
|
||||
// Largest integral types.
|
||||
type X__intmax_t = int64 /* types.h:71:18 */
|
||||
type X__uintmax_t = uint64 /* types.h:72:27 */
|
||||
type X__intmax_t = int64 /* types.h:72:18 */
|
||||
type X__uintmax_t = uint64 /* types.h:73:27 */
|
||||
|
||||
// The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
|
||||
// macros for each of the OS types we define below. The definitions
|
||||
@@ -568,7 +608,7 @@ type X__uintmax_t = uint64 /* types.h:72:27 */
|
||||
// 32 -- "natural" 32-bit type (always int)
|
||||
// 64 -- "natural" 64-bit type (long or long long)
|
||||
// LONG32 -- 32-bit type, traditionally long
|
||||
// QUAD -- 64-bit type, always long long
|
||||
// QUAD -- 64-bit type, traditionally long long
|
||||
// WORD -- natural type of __WORDSIZE bits (int or long)
|
||||
// LONGWORD -- type of __WORDSIZE bits, traditionally long
|
||||
//
|
||||
@@ -589,7 +629,7 @@ type X__uintmax_t = uint64 /* types.h:72:27 */
|
||||
|
||||
// No need to mark the typedef with __extension__.
|
||||
// bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version.
|
||||
// Copyright (C) 2012-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2012-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -604,7 +644,7 @@ type X__uintmax_t = uint64 /* types.h:72:27 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// See <bits/types.h> for the meaning of these macros. This file exists so
|
||||
// that <bits/types.h> need not vary across different GNU platforms.
|
||||
@@ -619,78 +659,104 @@ type X__uintmax_t = uint64 /* types.h:72:27 */
|
||||
|
||||
// And for __rlim_t and __rlim64_t.
|
||||
|
||||
// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
|
||||
|
||||
// Number of descriptors that can fit in an `fd_set'.
|
||||
|
||||
type X__dev_t = uint64 /* types.h:143:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:144:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:145:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint64 /* types.h:146:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = uint64 /* types.h:147:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:148:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint64 /* types.h:149:27 */ // Type of file link counts.
|
||||
type X__off_t = int64 /* types.h:150:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = int64 /* types.h:151:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:152:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:153:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int64 /* types.h:154:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint64 /* types.h:155:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = uint64 /* types.h:156:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:157:24 */ // General type for IDs.
|
||||
type X__time_t = int64 /* types.h:158:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:159:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int64 /* types.h:160:31 */ // Signed count of microseconds.
|
||||
// bits/time64.h -- underlying types for __time64_t. Generic version.
|
||||
// Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:162:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:163:25 */ // Type of an IPC key.
|
||||
// Define __TIME64_T_TYPE so that it is always a 64-bit type.
|
||||
|
||||
// If we already have 64-bit time type then use it.
|
||||
|
||||
type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint64 /* types.h:151:27 */ // Type of file link counts.
|
||||
type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
|
||||
type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
|
||||
|
||||
// Clock ID used in clock and timer functions.
|
||||
type X__clockid_t = int32 /* types.h:166:29 */
|
||||
type X__clockid_t = int32 /* types.h:168:29 */
|
||||
|
||||
// Timer ID returned by `timer_create'.
|
||||
type X__timer_t = uintptr /* types.h:169:12 */
|
||||
type X__timer_t = uintptr /* types.h:171:12 */
|
||||
|
||||
// Type to represent block size.
|
||||
type X__blksize_t = int64 /* types.h:172:29 */
|
||||
type X__blksize_t = int64 /* types.h:174:29 */
|
||||
|
||||
// Types from the Large File Support interface.
|
||||
|
||||
// Type to count number of disk blocks.
|
||||
type X__blkcnt_t = int64 /* types.h:177:28 */
|
||||
type X__blkcnt64_t = int64 /* types.h:178:30 */
|
||||
type X__blkcnt_t = int64 /* types.h:179:28 */
|
||||
type X__blkcnt64_t = int64 /* types.h:180:30 */
|
||||
|
||||
// Type to count file system blocks.
|
||||
type X__fsblkcnt_t = uint64 /* types.h:181:30 */
|
||||
type X__fsblkcnt64_t = uint64 /* types.h:182:32 */
|
||||
type X__fsblkcnt_t = uint64 /* types.h:183:30 */
|
||||
type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
|
||||
|
||||
// Type to count file system nodes.
|
||||
type X__fsfilcnt_t = uint64 /* types.h:185:30 */
|
||||
type X__fsfilcnt64_t = uint64 /* types.h:186:32 */
|
||||
type X__fsfilcnt_t = uint64 /* types.h:187:30 */
|
||||
type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
|
||||
|
||||
// Type of miscellaneous file system fields.
|
||||
type X__fsword_t = int64 /* types.h:189:28 */
|
||||
type X__fsword_t = int64 /* types.h:191:28 */
|
||||
|
||||
type X__ssize_t = int64 /* types.h:191:27 */ // Type of a byte count, or error.
|
||||
type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
|
||||
|
||||
// Signed long type used in system calls.
|
||||
type X__syscall_slong_t = int64 /* types.h:194:33 */
|
||||
type X__syscall_slong_t = int64 /* types.h:196:33 */
|
||||
// Unsigned long type used in system calls.
|
||||
type X__syscall_ulong_t = uint64 /* types.h: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.
|
||||
type X__loff_t = X__off64_t /* types.h:200:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:201:14 */
|
||||
//
|
||||
// to one of the other defined types.
|
||||
type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:203:14 */
|
||||
|
||||
// Duplicates info from stdint.h but this is used in unistd.h.
|
||||
type X__intptr_t = int64 /* types.h:204:25 */
|
||||
type X__intptr_t = int64 /* types.h:206:25 */
|
||||
|
||||
// Duplicate info from sys/socket.h.
|
||||
type X__socklen_t = uint32 /* types.h:207:23 */
|
||||
type X__socklen_t = uint32 /* types.h:209:23 */
|
||||
|
||||
// C99: An integer type that can be accessed as an atomic entity,
|
||||
// even in the presence of asynchronous interrupts.
|
||||
// It is not currently necessary for this to be machine-specific.
|
||||
type X__sig_atomic_t = int32 /* types.h:212:13 */
|
||||
//
|
||||
// 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 */
|
||||
|
||||
// Wide character type.
|
||||
// Locale-writers should change this as necessary to
|
||||
@@ -700,11 +766,6 @@ type X__sig_atomic_t = int32 /* types.h:212:13 */
|
||||
// Define this type if we are doing the whole job,
|
||||
// or if we want this type in particular.
|
||||
|
||||
// In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
|
||||
// are already defined.
|
||||
// BSD/OS 3.1 and FreeBSD [23].x require the MACHINE_ANSI_H check here.
|
||||
// NetBSD 5 requires the I386_ANSI_H and X86_64_ANSI_H checks here.
|
||||
|
||||
// A null pointer constant.
|
||||
|
||||
// For the Single Unix specification we must define this type here.
|
||||
@@ -712,11 +773,11 @@ type Gid_t = X__gid_t /* grp.h:37:17 */
|
||||
|
||||
// The group structure.
|
||||
type Group = struct {
|
||||
Fgr_name uintptr
|
||||
Fgr_passwd uintptr
|
||||
Fgr_gid X__gid_t
|
||||
_ [4]byte
|
||||
Fgr_mem uintptr
|
||||
Fgr_name uintptr
|
||||
Fgr_passwd uintptr
|
||||
Fgr_gid X__gid_t
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fgr_mem uintptr
|
||||
} /* grp.h:42:1 */
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
||||
+176
-93
@@ -17,6 +17,7 @@ var _ unsafe.Pointer
|
||||
const (
|
||||
NSS_BUFLEN_GROUP = 1024
|
||||
X_ATFILE_SOURCE = 1
|
||||
X_BITS_TIME64_H = 1
|
||||
X_BITS_TYPESIZES_H = 1
|
||||
X_BITS_TYPES_H = 1
|
||||
X_BSD_SIZE_T_ = 0
|
||||
@@ -52,7 +53,7 @@ type Wchar_t = uint32 /* <builtin>:15:24 */
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -67,11 +68,11 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// POSIX Standard: 9.2.1 Group Database Access <grp.h>
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -86,7 +87,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// These are defined by the user (or the compiler)
|
||||
// to specify the desired environment:
|
||||
@@ -94,6 +95,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// __STRICT_ANSI__ ISO Standard C.
|
||||
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
|
||||
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
|
||||
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
|
||||
// __STDC_WANT_LIB_EXT2__
|
||||
// Extensions to ISO C99 from TR 27431-2:2010.
|
||||
// __STDC_WANT_IEC_60559_BFP_EXT__
|
||||
@@ -214,6 +216,8 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
|
||||
// define _DEFAULT_SOURCE.
|
||||
|
||||
// This is to enable the ISO C2X extension.
|
||||
|
||||
// This is to enable the ISO C11 extension.
|
||||
|
||||
// This is to enable the ISO C99 extension.
|
||||
@@ -236,9 +240,22 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// compatibility with various implementations of <cstdio>, this test
|
||||
// must consider only the value of __cplusplus when compiling C++.
|
||||
|
||||
// GNU formerly extended the scanf functions with modified format
|
||||
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
|
||||
// input using malloc. This extension conflicts with ISO C99, which
|
||||
// defines %a as a standalone format specifier that reads a floating-
|
||||
// point number; moreover, POSIX.1-2008 provides the same feature
|
||||
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
|
||||
//
|
||||
// We now follow C99 unless GNU extensions are active and the compiler
|
||||
// is specifically in C89 or C++98 mode (strict or not). For
|
||||
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
|
||||
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
|
||||
// old extension.
|
||||
|
||||
// Get definitions of __STDC_* predefined macros, if the compiler has
|
||||
// not preincluded this header automatically.
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -253,7 +270,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// This macro indicates that the installed library is the GNU C Library.
|
||||
// For historic reasons the value now is 6 and this will stay from now
|
||||
@@ -266,7 +283,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// these macros to test for features in specific releases.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// Copyright (C) 1992-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -281,7 +298,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// We are almost always included from features.h.
|
||||
|
||||
@@ -396,7 +413,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// semantics.
|
||||
//
|
||||
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
|
||||
// semantics, that can be checked fot by using the __GNUC_STDC_INLINE_ and
|
||||
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
|
||||
// __GNUC_GNU_INLINE__ macro definitions.
|
||||
|
||||
// GCC 4.3 and above allow passing all anonymous arguments of an
|
||||
@@ -417,7 +434,11 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// argument to strncpy and strncat, as the char array is not necessarily
|
||||
// a NUL-terminated string.
|
||||
|
||||
// Copyright (C) 1999-2018 Free Software Foundation, Inc.
|
||||
// Undefine (also defined in libc-symbols.h).
|
||||
// Copies attributes from the declaration or type referenced by
|
||||
// the argument.
|
||||
|
||||
// Copyright (C) 1999-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -432,10 +453,10 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Properties of long double type.
|
||||
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -450,7 +471,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// This header is included by <sys/cdefs.h>.
|
||||
//
|
||||
@@ -504,7 +525,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// every time called, usually setting errno to ENOSYS.
|
||||
|
||||
// bits/types.h -- definitions of __*_t types underlying *_t types.
|
||||
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -519,11 +540,11 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Never include this file directly; use <sys/types.h> instead.
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -538,9 +559,9 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Copyright (C) 1999-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1999-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -555,41 +576,78 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Bit size of the time_t type at glibc build time, general case.
|
||||
// Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Copyright (C) 1999-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Size in bits of the 'time_t' type of the default ABI.
|
||||
|
||||
// Convenience types.
|
||||
type X__u_char = uint8 /* types.h:30:23 */
|
||||
type X__u_short = uint16 /* types.h:31:28 */
|
||||
type X__u_int = uint32 /* types.h:32:22 */
|
||||
type X__u_long = uint32 /* types.h:33:27 */
|
||||
type X__u_char = uint8 /* types.h:31:23 */
|
||||
type X__u_short = uint16 /* types.h:32:28 */
|
||||
type X__u_int = uint32 /* types.h:33:22 */
|
||||
type X__u_long = uint32 /* types.h:34:27 */
|
||||
|
||||
// Fixed-size types, underlying types depend on word size and compiler.
|
||||
type X__int8_t = int8 /* types.h:36:21 */
|
||||
type X__uint8_t = uint8 /* types.h:37:23 */
|
||||
type X__int16_t = int16 /* types.h:38:26 */
|
||||
type X__uint16_t = uint16 /* types.h:39:28 */
|
||||
type X__int32_t = int32 /* types.h:40:20 */
|
||||
type X__uint32_t = uint32 /* types.h:41:22 */
|
||||
type X__int64_t = int64 /* types.h:46:44 */
|
||||
type X__uint64_t = uint64 /* types.h:47:46 */
|
||||
type X__int8_t = int8 /* types.h:37:21 */
|
||||
type X__uint8_t = uint8 /* types.h:38:23 */
|
||||
type X__int16_t = int16 /* types.h:39:26 */
|
||||
type X__uint16_t = uint16 /* types.h:40:28 */
|
||||
type X__int32_t = int32 /* types.h:41:20 */
|
||||
type X__uint32_t = uint32 /* types.h:42:22 */
|
||||
type X__int64_t = int64 /* types.h:47:44 */
|
||||
type X__uint64_t = uint64 /* types.h:48:46 */
|
||||
|
||||
// Smallest types with at least a given width.
|
||||
type X__int_least8_t = X__int8_t /* types.h:51:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:52:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:53:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:54:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:55:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:56:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:57:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:58:20 */
|
||||
type X__int_least8_t = X__int8_t /* types.h:52:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:54:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:56:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:58:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
|
||||
|
||||
// quad_t is also 64 bits.
|
||||
type X__quad_t = int64 /* types.h:65:37 */
|
||||
type X__u_quad_t = uint64 /* types.h:66:46 */
|
||||
type X__quad_t = int64 /* types.h:66:37 */
|
||||
type X__u_quad_t = uint64 /* types.h:67:46 */
|
||||
|
||||
// Largest integral types.
|
||||
type X__intmax_t = int64 /* types.h:74:37 */
|
||||
type X__uintmax_t = uint64 /* types.h:75:46 */
|
||||
type X__intmax_t = int64 /* types.h:75:37 */
|
||||
type X__uintmax_t = uint64 /* types.h:76:46 */
|
||||
|
||||
// The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
|
||||
// macros for each of the OS types we define below. The definitions
|
||||
@@ -601,7 +659,7 @@ type X__uintmax_t = uint64 /* types.h:75:46 */
|
||||
// 32 -- "natural" 32-bit type (always int)
|
||||
// 64 -- "natural" 64-bit type (long or long long)
|
||||
// LONG32 -- 32-bit type, traditionally long
|
||||
// QUAD -- 64-bit type, always long long
|
||||
// QUAD -- 64-bit type, traditionally long long
|
||||
// WORD -- natural type of __WORDSIZE bits (int or long)
|
||||
// LONGWORD -- type of __WORDSIZE bits, traditionally long
|
||||
//
|
||||
@@ -623,7 +681,7 @@ type X__uintmax_t = uint64 /* types.h:75:46 */
|
||||
// We want __extension__ before typedef's that use nonstandard base types
|
||||
// such as `long long' in C89 mode.
|
||||
// bits/typesizes.h -- underlying types for *_t. Generic version.
|
||||
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -638,83 +696,113 @@ type X__uintmax_t = uint64 /* types.h:75:46 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// See <bits/types.h> for the meaning of these macros. This file exists so
|
||||
// that <bits/types.h> need not vary across different GNU platforms.
|
||||
|
||||
// Number of descriptors that can fit in an `fd_set'.
|
||||
|
||||
type X__dev_t = X__u_quad_t /* types.h:143:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:144:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:145:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint32 /* types.h:146:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = X__u_quad_t /* types.h:147:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:148:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint32 /* types.h:149:27 */ // Type of file link counts.
|
||||
type X__off_t = int32 /* types.h:150:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = X__quad_t /* types.h:151:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:152:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:153:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int32 /* types.h:154:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint32 /* types.h:155:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = X__u_quad_t /* types.h:156:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:157:24 */ // General type for IDs.
|
||||
type X__time_t = int32 /* types.h:158:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:159:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int32 /* types.h:160:31 */ // Signed count of microseconds.
|
||||
// bits/time64.h -- underlying types for __time64_t. Generic version.
|
||||
// Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:162:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:163:25 */ // Type of an IPC key.
|
||||
// Define __TIME64_T_TYPE so that it is always a 64-bit type.
|
||||
|
||||
// Define a 64-bit time type alongsize the 32-bit one.
|
||||
|
||||
type X__dev_t = X__uint64_t /* types.h:145:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint32 /* types.h:148:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = X__uint64_t /* types.h:149:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts.
|
||||
type X__off_t = int32 /* types.h:152:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = X__int64_t /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int32 /* types.h:156:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint32 /* types.h:157:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = X__uint64_t /* types.h:158:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
|
||||
type X__time_t = int32 /* types.h:160:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int32 /* types.h:162:31 */ // Signed count of microseconds.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
|
||||
|
||||
// Clock ID used in clock and timer functions.
|
||||
type X__clockid_t = int32 /* types.h:166:29 */
|
||||
type X__clockid_t = int32 /* types.h:168:29 */
|
||||
|
||||
// Timer ID returned by `timer_create'.
|
||||
type X__timer_t = uintptr /* types.h:169:12 */
|
||||
type X__timer_t = uintptr /* types.h:171:12 */
|
||||
|
||||
// Type to represent block size.
|
||||
type X__blksize_t = int32 /* types.h:172:29 */
|
||||
type X__blksize_t = int32 /* types.h:174:29 */
|
||||
|
||||
// Types from the Large File Support interface.
|
||||
|
||||
// Type to count number of disk blocks.
|
||||
type X__blkcnt_t = int32 /* types.h:177:28 */
|
||||
type X__blkcnt64_t = X__quad_t /* types.h:178:30 */
|
||||
type X__blkcnt_t = int32 /* types.h:179:28 */
|
||||
type X__blkcnt64_t = X__int64_t /* types.h:180:30 */
|
||||
|
||||
// Type to count file system blocks.
|
||||
type X__fsblkcnt_t = uint32 /* types.h:181:30 */
|
||||
type X__fsblkcnt64_t = X__u_quad_t /* types.h:182:32 */
|
||||
type X__fsblkcnt_t = uint32 /* types.h:183:30 */
|
||||
type X__fsblkcnt64_t = X__uint64_t /* types.h:184:32 */
|
||||
|
||||
// Type to count file system nodes.
|
||||
type X__fsfilcnt_t = uint32 /* types.h:185:30 */
|
||||
type X__fsfilcnt64_t = X__u_quad_t /* types.h:186:32 */
|
||||
type X__fsfilcnt_t = uint32 /* types.h:187:30 */
|
||||
type X__fsfilcnt64_t = X__uint64_t /* types.h:188:32 */
|
||||
|
||||
// Type of miscellaneous file system fields.
|
||||
type X__fsword_t = int32 /* types.h:189:28 */
|
||||
type X__fsword_t = int32 /* types.h:191:28 */
|
||||
|
||||
type X__ssize_t = int32 /* types.h:191:27 */ // Type of a byte count, or error.
|
||||
type X__ssize_t = int32 /* types.h:193:27 */ // Type of a byte count, or error.
|
||||
|
||||
// Signed long type used in system calls.
|
||||
type X__syscall_slong_t = int32 /* types.h:194:33 */
|
||||
type X__syscall_slong_t = int32 /* types.h:196:33 */
|
||||
// Unsigned long type used in system calls.
|
||||
type X__syscall_ulong_t = uint32 /* types.h: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.
|
||||
type X__loff_t = X__off64_t /* types.h:200:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:201:14 */
|
||||
//
|
||||
// to one of the other defined types.
|
||||
type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:203:14 */
|
||||
|
||||
// Duplicates info from stdint.h but this is used in unistd.h.
|
||||
type X__intptr_t = int32 /* types.h:204:25 */
|
||||
type X__intptr_t = int32 /* types.h:206:25 */
|
||||
|
||||
// Duplicate info from sys/socket.h.
|
||||
type X__socklen_t = uint32 /* types.h:207:23 */
|
||||
type X__socklen_t = uint32 /* types.h:209:23 */
|
||||
|
||||
// C99: An integer type that can be accessed as an atomic entity,
|
||||
// even in the presence of asynchronous interrupts.
|
||||
// It is not currently necessary for this to be machine-specific.
|
||||
type X__sig_atomic_t = int32 /* types.h:212:13 */
|
||||
//
|
||||
// even in the presence of asynchronous interrupts.
|
||||
// It is not currently necessary for this to be machine-specific.
|
||||
type X__sig_atomic_t = int32 /* types.h:214:13 */
|
||||
|
||||
// Seconds since the Epoch, visible to user code when time_t is too
|
||||
//
|
||||
// narrow only for consistency with the old way of widening too-narrow
|
||||
// types. User code should never use __time64_t.
|
||||
type X__time64_t = X__int64_t /* types.h:222:28 */
|
||||
|
||||
// Wide character type.
|
||||
// Locale-writers should change this as necessary to
|
||||
@@ -724,11 +812,6 @@ type X__sig_atomic_t = int32 /* types.h:212:13 */
|
||||
// Define this type if we are doing the whole job,
|
||||
// or if we want this type in particular.
|
||||
|
||||
// In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
|
||||
// are already defined.
|
||||
// BSD/OS 3.1 and FreeBSD [23].x require the MACHINE_ANSI_H check here.
|
||||
// NetBSD 5 requires the I386_ANSI_H and X86_64_ANSI_H checks here.
|
||||
|
||||
// A null pointer constant.
|
||||
|
||||
// For the Single Unix specification we must define this type here.
|
||||
@@ -742,4 +825,4 @@ type Group = struct {
|
||||
Fgr_mem uintptr
|
||||
} /* grp.h:42:1 */
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
||||
var _ uint8 /* gen.c:2:13: */
|
||||
+180
-100
@@ -17,6 +17,7 @@ var _ unsafe.Pointer
|
||||
const (
|
||||
NSS_BUFLEN_GROUP = 1024
|
||||
X_ATFILE_SOURCE = 1
|
||||
X_BITS_TIME64_H = 1
|
||||
X_BITS_TYPESIZES_H = 1
|
||||
X_BITS_TYPES_H = 1
|
||||
X_BSD_SIZE_T_ = 0
|
||||
@@ -62,7 +63,7 @@ type X__uint128_t = struct {
|
||||
type X__builtin_va_list = uintptr /* <builtin>:46:14 */
|
||||
type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -77,11 +78,11 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// POSIX Standard: 9.2.1 Group Database Access <grp.h>
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -96,7 +97,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// These are defined by the user (or the compiler)
|
||||
// to specify the desired environment:
|
||||
@@ -104,6 +105,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// __STRICT_ANSI__ ISO Standard C.
|
||||
// _ISOC99_SOURCE Extensions to ISO C89 from ISO C99.
|
||||
// _ISOC11_SOURCE Extensions to ISO C99 from ISO C11.
|
||||
// _ISOC2X_SOURCE Extensions to ISO C99 from ISO C2X.
|
||||
// __STDC_WANT_LIB_EXT2__
|
||||
// Extensions to ISO C99 from TR 27431-2:2010.
|
||||
// __STDC_WANT_IEC_60559_BFP_EXT__
|
||||
@@ -224,6 +226,8 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined,
|
||||
// define _DEFAULT_SOURCE.
|
||||
|
||||
// This is to enable the ISO C2X extension.
|
||||
|
||||
// This is to enable the ISO C11 extension.
|
||||
|
||||
// This is to enable the ISO C99 extension.
|
||||
@@ -246,9 +250,22 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// compatibility with various implementations of <cstdio>, this test
|
||||
// must consider only the value of __cplusplus when compiling C++.
|
||||
|
||||
// GNU formerly extended the scanf functions with modified format
|
||||
// specifiers %as, %aS, and %a[...] that allocate a buffer for the
|
||||
// input using malloc. This extension conflicts with ISO C99, which
|
||||
// defines %a as a standalone format specifier that reads a floating-
|
||||
// point number; moreover, POSIX.1-2008 provides the same feature
|
||||
// using the modifier letter 'm' instead (%ms, %mS, %m[...]).
|
||||
//
|
||||
// We now follow C99 unless GNU extensions are active and the compiler
|
||||
// is specifically in C89 or C++98 mode (strict or not). For
|
||||
// instance, with GCC, -std=gnu11 will have C99-compliant scanf with
|
||||
// or without -D_GNU_SOURCE, but -std=c89 -D_GNU_SOURCE will have the
|
||||
// old extension.
|
||||
|
||||
// Get definitions of __STDC_* predefined macros, if the compiler has
|
||||
// not preincluded this header automatically.
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -263,7 +280,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// This macro indicates that the installed library is the GNU C Library.
|
||||
// For historic reasons the value now is 6 and this will stay from now
|
||||
@@ -276,7 +293,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// these macros to test for features in specific releases.
|
||||
|
||||
// This is here only because every header file already includes this one.
|
||||
// Copyright (C) 1992-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1992-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -291,7 +308,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// We are almost always included from features.h.
|
||||
|
||||
@@ -406,7 +423,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// semantics.
|
||||
//
|
||||
// clang++ identifies itself as gcc-4.2, but has support for GNU inlining
|
||||
// semantics, that can be checked fot by using the __GNUC_STDC_INLINE_ and
|
||||
// semantics, that can be checked for by using the __GNUC_STDC_INLINE_ and
|
||||
// __GNUC_GNU_INLINE__ macro definitions.
|
||||
|
||||
// GCC 4.3 and above allow passing all anonymous arguments of an
|
||||
@@ -427,9 +444,13 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// argument to strncpy and strncat, as the char array is not necessarily
|
||||
// a NUL-terminated string.
|
||||
|
||||
// Undefine (also defined in libc-symbols.h).
|
||||
// Copies attributes from the declaration or type referenced by
|
||||
// the argument.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
//
|
||||
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -444,10 +465,10 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Properties of long double type. ldbl-128 version.
|
||||
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -462,7 +483,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// long double is distinct from double, so there is nothing to
|
||||
// define here.
|
||||
@@ -496,7 +517,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
//
|
||||
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -511,7 +532,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// This file is automatically generated.
|
||||
// It defines a symbol `__stub_FUNCTION' for each function
|
||||
@@ -519,7 +540,7 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// every time called, usually setting errno to ENOSYS.
|
||||
|
||||
// bits/types.h -- definitions of __*_t types underlying *_t types.
|
||||
// Copyright (C) 2002-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -534,11 +555,11 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Never include this file directly; use <sys/types.h> instead.
|
||||
|
||||
// Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 1991-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -553,11 +574,11 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
//
|
||||
// Copyright (C) 2016-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
@@ -572,41 +593,80 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Bit size of the time_t type at glibc build time, general case.
|
||||
// Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
//
|
||||
// Copyright (C) 2016-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// Size in bits of the 'time_t' type of the default ABI.
|
||||
|
||||
// Convenience types.
|
||||
type X__u_char = uint8 /* types.h:30:23 */
|
||||
type X__u_short = uint16 /* types.h:31:28 */
|
||||
type X__u_int = uint32 /* types.h:32:22 */
|
||||
type X__u_long = uint64 /* types.h:33:27 */
|
||||
type X__u_char = uint8 /* types.h:31:23 */
|
||||
type X__u_short = uint16 /* types.h:32:28 */
|
||||
type X__u_int = uint32 /* types.h:33:22 */
|
||||
type X__u_long = uint64 /* types.h:34:27 */
|
||||
|
||||
// Fixed-size types, underlying types depend on word size and compiler.
|
||||
type X__int8_t = int8 /* types.h:36:21 */
|
||||
type X__uint8_t = uint8 /* types.h:37:23 */
|
||||
type X__int16_t = int16 /* types.h:38:26 */
|
||||
type X__uint16_t = uint16 /* types.h:39:28 */
|
||||
type X__int32_t = int32 /* types.h:40:20 */
|
||||
type X__uint32_t = uint32 /* types.h:41:22 */
|
||||
type X__int64_t = int64 /* types.h:43:25 */
|
||||
type X__uint64_t = uint64 /* types.h:44:27 */
|
||||
type X__int8_t = int8 /* types.h:37:21 */
|
||||
type X__uint8_t = uint8 /* types.h:38:23 */
|
||||
type X__int16_t = int16 /* types.h:39:26 */
|
||||
type X__uint16_t = uint16 /* types.h:40:28 */
|
||||
type X__int32_t = int32 /* types.h:41:20 */
|
||||
type X__uint32_t = uint32 /* types.h:42:22 */
|
||||
type X__int64_t = int64 /* types.h:44:25 */
|
||||
type X__uint64_t = uint64 /* types.h:45:27 */
|
||||
|
||||
// Smallest types with at least a given width.
|
||||
type X__int_least8_t = X__int8_t /* types.h:51:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:52:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:53:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:54:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:55:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:56:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:57:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:58:20 */
|
||||
type X__int_least8_t = X__int8_t /* types.h:52:18 */
|
||||
type X__uint_least8_t = X__uint8_t /* types.h:53:19 */
|
||||
type X__int_least16_t = X__int16_t /* types.h:54:19 */
|
||||
type X__uint_least16_t = X__uint16_t /* types.h:55:20 */
|
||||
type X__int_least32_t = X__int32_t /* types.h:56:19 */
|
||||
type X__uint_least32_t = X__uint32_t /* types.h:57:20 */
|
||||
type X__int_least64_t = X__int64_t /* types.h:58:19 */
|
||||
type X__uint_least64_t = X__uint64_t /* types.h:59:20 */
|
||||
|
||||
// quad_t is also 64 bits.
|
||||
type X__quad_t = int64 /* types.h:62:18 */
|
||||
type X__u_quad_t = uint64 /* types.h:63:27 */
|
||||
type X__quad_t = int64 /* types.h:63:18 */
|
||||
type X__u_quad_t = uint64 /* types.h:64:27 */
|
||||
|
||||
// Largest integral types.
|
||||
type X__intmax_t = int64 /* types.h:71:18 */
|
||||
type X__uintmax_t = uint64 /* types.h:72:27 */
|
||||
type X__intmax_t = int64 /* types.h:72:18 */
|
||||
type X__uintmax_t = uint64 /* types.h:73:27 */
|
||||
|
||||
// The machine-dependent file <bits/typesizes.h> defines __*_T_TYPE
|
||||
// macros for each of the OS types we define below. The definitions
|
||||
@@ -618,7 +678,7 @@ type X__uintmax_t = uint64 /* types.h:72:27 */
|
||||
// 32 -- "natural" 32-bit type (always int)
|
||||
// 64 -- "natural" 64-bit type (long or long long)
|
||||
// LONG32 -- 32-bit type, traditionally long
|
||||
// QUAD -- 64-bit type, always long long
|
||||
// QUAD -- 64-bit type, traditionally long long
|
||||
// WORD -- natural type of __WORDSIZE bits (int or long)
|
||||
// LONGWORD -- type of __WORDSIZE bits, traditionally long
|
||||
//
|
||||
@@ -639,7 +699,7 @@ type X__uintmax_t = uint64 /* types.h:72:27 */
|
||||
|
||||
// No need to mark the typedef with __extension__.
|
||||
// bits/typesizes.h -- underlying types for *_t. For the generic Linux ABI.
|
||||
// Copyright (C) 2011-2018 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2011-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
// Contributed by Chris Metcalf <cmetcalf@tilera.com>, 2011.
|
||||
//
|
||||
@@ -655,7 +715,7 @@ type X__uintmax_t = uint64 /* types.h:72:27 */
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library. If not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
// See <bits/types.h> for the meaning of these macros. This file exists so
|
||||
// that <bits/types.h> need not vary across different GNU platforms.
|
||||
@@ -668,78 +728,103 @@ type X__uintmax_t = uint64 /* types.h:72:27 */
|
||||
|
||||
// And for __rlim_t and __rlim64_t.
|
||||
|
||||
// And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t.
|
||||
// Number of descriptors that can fit in an `fd_set'.
|
||||
|
||||
type X__dev_t = uint64 /* types.h:143:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:144:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:145:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint64 /* types.h:146:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = uint64 /* types.h:147:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:148:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint32 /* types.h:149:27 */ // Type of file link counts.
|
||||
type X__off_t = int64 /* types.h:150:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = int64 /* types.h:151:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:152:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:153:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int64 /* types.h:154:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint64 /* types.h:155:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = uint64 /* types.h:156:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:157:24 */ // General type for IDs.
|
||||
type X__time_t = int64 /* types.h:158:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:159:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int64 /* types.h:160:31 */ // Signed count of microseconds.
|
||||
// bits/time64.h -- underlying types for __time64_t. Generic version.
|
||||
// Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
// This file is part of the GNU C Library.
|
||||
//
|
||||
// The GNU C Library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// The GNU C Library is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with the GNU C Library; if not, see
|
||||
// <https://www.gnu.org/licenses/>.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:162:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:163:25 */ // Type of an IPC key.
|
||||
// Define __TIME64_T_TYPE so that it is always a 64-bit type.
|
||||
|
||||
// If we already have 64-bit time type then use it.
|
||||
|
||||
type X__dev_t = uint64 /* types.h:145:25 */ // Type of device numbers.
|
||||
type X__uid_t = uint32 /* types.h:146:25 */ // Type of user identifications.
|
||||
type X__gid_t = uint32 /* types.h:147:25 */ // Type of group identifications.
|
||||
type X__ino_t = uint64 /* types.h:148:25 */ // Type of file serial numbers.
|
||||
type X__ino64_t = uint64 /* types.h:149:27 */ // Type of file serial numbers (LFS).
|
||||
type X__mode_t = uint32 /* types.h:150:26 */ // Type of file attribute bitmasks.
|
||||
type X__nlink_t = uint32 /* types.h:151:27 */ // Type of file link counts.
|
||||
type X__off_t = int64 /* types.h:152:25 */ // Type of file sizes and offsets.
|
||||
type X__off64_t = int64 /* types.h:153:27 */ // Type of file sizes and offsets (LFS).
|
||||
type X__pid_t = int32 /* types.h:154:25 */ // Type of process identifications.
|
||||
type X__fsid_t = struct{ F__val [2]int32 } /* types.h:155:26 */ // Type of file system IDs.
|
||||
type X__clock_t = int64 /* types.h:156:27 */ // Type of CPU usage counts.
|
||||
type X__rlim_t = uint64 /* types.h:157:26 */ // Type for resource measurement.
|
||||
type X__rlim64_t = uint64 /* types.h:158:28 */ // Type for resource measurement (LFS).
|
||||
type X__id_t = uint32 /* types.h:159:24 */ // General type for IDs.
|
||||
type X__time_t = int64 /* types.h:160:26 */ // Seconds since the Epoch.
|
||||
type X__useconds_t = uint32 /* types.h:161:30 */ // Count of microseconds.
|
||||
type X__suseconds_t = int64 /* types.h:162:31 */ // Signed count of microseconds.
|
||||
|
||||
type X__daddr_t = int32 /* types.h:164:27 */ // The type of a disk address.
|
||||
type X__key_t = int32 /* types.h:165:25 */ // Type of an IPC key.
|
||||
|
||||
// Clock ID used in clock and timer functions.
|
||||
type X__clockid_t = int32 /* types.h:166:29 */
|
||||
type X__clockid_t = int32 /* types.h:168:29 */
|
||||
|
||||
// Timer ID returned by `timer_create'.
|
||||
type X__timer_t = uintptr /* types.h:169:12 */
|
||||
type X__timer_t = uintptr /* types.h:171:12 */
|
||||
|
||||
// Type to represent block size.
|
||||
type X__blksize_t = int32 /* types.h:172:29 */
|
||||
type X__blksize_t = int32 /* types.h:174:29 */
|
||||
|
||||
// Types from the Large File Support interface.
|
||||
|
||||
// Type to count number of disk blocks.
|
||||
type X__blkcnt_t = int64 /* types.h:177:28 */
|
||||
type X__blkcnt64_t = int64 /* types.h:178:30 */
|
||||
type X__blkcnt_t = int64 /* types.h:179:28 */
|
||||
type X__blkcnt64_t = int64 /* types.h:180:30 */
|
||||
|
||||
// Type to count file system blocks.
|
||||
type X__fsblkcnt_t = uint64 /* types.h:181:30 */
|
||||
type X__fsblkcnt64_t = uint64 /* types.h:182:32 */
|
||||
type X__fsblkcnt_t = uint64 /* types.h:183:30 */
|
||||
type X__fsblkcnt64_t = uint64 /* types.h:184:32 */
|
||||
|
||||
// Type to count file system nodes.
|
||||
type X__fsfilcnt_t = uint64 /* types.h:185:30 */
|
||||
type X__fsfilcnt64_t = uint64 /* types.h:186:32 */
|
||||
type X__fsfilcnt_t = uint64 /* types.h:187:30 */
|
||||
type X__fsfilcnt64_t = uint64 /* types.h:188:32 */
|
||||
|
||||
// Type of miscellaneous file system fields.
|
||||
type X__fsword_t = int64 /* types.h:189:28 */
|
||||
type X__fsword_t = int64 /* types.h:191:28 */
|
||||
|
||||
type X__ssize_t = int64 /* types.h:191:27 */ // Type of a byte count, or error.
|
||||
type X__ssize_t = int64 /* types.h:193:27 */ // Type of a byte count, or error.
|
||||
|
||||
// Signed long type used in system calls.
|
||||
type X__syscall_slong_t = int64 /* types.h:194:33 */
|
||||
type X__syscall_slong_t = int64 /* types.h:196:33 */
|
||||
// Unsigned long type used in system calls.
|
||||
type X__syscall_ulong_t = uint64 /* types.h: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.
|
||||
type X__loff_t = X__off64_t /* types.h:200:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:201:14 */
|
||||
//
|
||||
// to one of the other defined types.
|
||||
type X__loff_t = X__off64_t /* types.h:202:19 */ // Type of file sizes and offsets (LFS).
|
||||
type X__caddr_t = uintptr /* types.h:203:14 */
|
||||
|
||||
// Duplicates info from stdint.h but this is used in unistd.h.
|
||||
type X__intptr_t = int64 /* types.h:204:25 */
|
||||
type X__intptr_t = int64 /* types.h:206:25 */
|
||||
|
||||
// Duplicate info from sys/socket.h.
|
||||
type X__socklen_t = uint32 /* types.h:207:23 */
|
||||
type X__socklen_t = uint32 /* types.h:209:23 */
|
||||
|
||||
// C99: An integer type that can be accessed as an atomic entity,
|
||||
// even in the presence of asynchronous interrupts.
|
||||
// It is not currently necessary for this to be machine-specific.
|
||||
type X__sig_atomic_t = int32 /* types.h:212:13 */
|
||||
//
|
||||
// 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 */
|
||||
|
||||
// Wide character type.
|
||||
// Locale-writers should change this as necessary to
|
||||
@@ -749,11 +834,6 @@ type X__sig_atomic_t = int32 /* types.h:212:13 */
|
||||
// Define this type if we are doing the whole job,
|
||||
// or if we want this type in particular.
|
||||
|
||||
// In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
|
||||
// are already defined.
|
||||
// BSD/OS 3.1 and FreeBSD [23].x require the MACHINE_ANSI_H check here.
|
||||
// NetBSD 5 requires the I386_ANSI_H and X86_64_ANSI_H checks here.
|
||||
|
||||
// A null pointer constant.
|
||||
|
||||
// For the Single Unix specification we must define this type here.
|
||||
@@ -761,11 +841,11 @@ type Gid_t = X__gid_t /* grp.h:37:17 */
|
||||
|
||||
// The group structure.
|
||||
type Group = struct {
|
||||
Fgr_name uintptr
|
||||
Fgr_passwd uintptr
|
||||
Fgr_gid X__gid_t
|
||||
_ [4]byte
|
||||
Fgr_mem uintptr
|
||||
Fgr_name uintptr
|
||||
Fgr_passwd uintptr
|
||||
Fgr_gid X__gid_t
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fgr_mem uintptr
|
||||
} /* grp.h:42:1 */
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
||||
var _ uint8 /* gen.c:2:13: */
|
||||
+16
-13
@@ -440,7 +440,13 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// array_name[restrict]
|
||||
// GCC 3.1 supports this.
|
||||
|
||||
// Describes a char array whose address can safely be passed as the first
|
||||
// argument to strncpy and strncat, as the char array is not necessarily
|
||||
// a NUL-terminated string.
|
||||
|
||||
// Undefine (also defined in libc-symbols.h).
|
||||
// Copies attributes from the declaration or type referenced by
|
||||
// the argument.
|
||||
|
||||
// Determine the wordsize from the preprocessor defines.
|
||||
|
||||
@@ -734,7 +740,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 */
|
||||
|
||||
@@ -745,8 +752,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 */
|
||||
|
||||
// Wide character type.
|
||||
@@ -757,11 +765,6 @@ type X__sig_atomic_t = int32 /* types.h:214:13 */
|
||||
// Define this type if we are doing the whole job,
|
||||
// or if we want this type in particular.
|
||||
|
||||
// In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
|
||||
// are already defined.
|
||||
// BSD/OS 3.1 and FreeBSD [23].x require the MACHINE_ANSI_H check here.
|
||||
// NetBSD 5 requires the I386_ANSI_H and X86_64_ANSI_H checks here.
|
||||
|
||||
// A null pointer constant.
|
||||
|
||||
// For the Single Unix specification we must define this type here.
|
||||
@@ -769,11 +772,11 @@ type Gid_t = X__gid_t /* grp.h:37:17 */
|
||||
|
||||
// The group structure.
|
||||
type Group = struct {
|
||||
Fgr_name uintptr
|
||||
Fgr_passwd uintptr
|
||||
Fgr_gid X__gid_t
|
||||
_ [4]byte
|
||||
Fgr_mem uintptr
|
||||
Fgr_name uintptr
|
||||
Fgr_passwd uintptr
|
||||
Fgr_gid X__gid_t
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fgr_mem uintptr
|
||||
} /* grp.h:42:1 */
|
||||
|
||||
var _ uint8 /* gen.c:2:13: */
|
||||
+209
-229
@@ -1,4 +1,4 @@
|
||||
// Code generated by 'ccgo grp/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 grp/grp_netbsd_amd64.go -pkgname grp', DO NOT EDIT.
|
||||
// Code generated by 'ccgo grp/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 grp/grp_netbsd_amd64.go -pkgname grp', DO NOT EDIT.
|
||||
|
||||
package grp
|
||||
|
||||
@@ -15,130 +15,128 @@ var _ atomic.Value
|
||||
var _ unsafe.Pointer
|
||||
|
||||
const (
|
||||
BIG_ENDIAN = 4321
|
||||
BYTE_ORDER = 1234
|
||||
FD_SETSIZE = 256
|
||||
INT16_MAX = 32767
|
||||
INT16_MIN = -32768
|
||||
INT32_MAX = 2147483647
|
||||
INT32_MIN = -2147483648
|
||||
INT64_MAX = 9223372036854775807
|
||||
INT64_MIN = -9223372036854775808
|
||||
INT8_MAX = 127
|
||||
INT8_MIN = -128
|
||||
INTMAX_MAX = 9223372036854775807
|
||||
INTMAX_MIN = -9223372036854775808
|
||||
INTPTR_MAX = 9223372036854775807
|
||||
INTPTR_MIN = -9223372036854775808
|
||||
INT_FAST16_MAX = 2147483647
|
||||
INT_FAST16_MIN = -2147483648
|
||||
INT_FAST32_MAX = 2147483647
|
||||
INT_FAST32_MIN = -2147483648
|
||||
INT_FAST64_MAX = 9223372036854775807
|
||||
INT_FAST64_MIN = -9223372036854775808
|
||||
INT_FAST8_MAX = 2147483647
|
||||
INT_FAST8_MIN = -2147483648
|
||||
INT_LEAST16_MAX = 32767
|
||||
INT_LEAST16_MIN = -32768
|
||||
INT_LEAST32_MAX = 2147483647
|
||||
INT_LEAST32_MIN = -2147483648
|
||||
INT_LEAST64_MAX = 9223372036854775807
|
||||
INT_LEAST64_MIN = -9223372036854775808
|
||||
INT_LEAST8_MAX = 127
|
||||
INT_LEAST8_MIN = -128
|
||||
LITTLE_ENDIAN = 1234
|
||||
NBBY = 8
|
||||
NFDBITS = 32
|
||||
NODEVMAJOR = -1
|
||||
PDP_ENDIAN = 3412
|
||||
PTRDIFF_MAX = 9223372036854775807
|
||||
PTRDIFF_MIN = -9223372036854775808
|
||||
SIG_ATOMIC_MAX = 2147483647
|
||||
SIG_ATOMIC_MIN = -2147483648
|
||||
SIZE_MAX = 18446744073709551615
|
||||
UINT16_MAX = 65535
|
||||
UINT32_MAX = 4294967295
|
||||
UINT64_MAX = 18446744073709551615
|
||||
UINT8_MAX = 255
|
||||
UINTMAX_MAX = 18446744073709551615
|
||||
UINTPTR_MAX = 18446744073709551615
|
||||
UINT_FAST16_MAX = 4294967295
|
||||
UINT_FAST32_MAX = 4294967295
|
||||
UINT_FAST64_MAX = 18446744073709551615
|
||||
UINT_FAST8_MAX = 4294967295
|
||||
UINT_LEAST16_MAX = 65535
|
||||
UINT_LEAST32_MAX = 4294967295
|
||||
UINT_LEAST64_MAX = 18446744073709551615
|
||||
UINT_LEAST8_MAX = 255
|
||||
WCHAR_MAX = 0x7fffffff
|
||||
WCHAR_MIN = -2147483648
|
||||
WINT_MAX = 0x7fffffff
|
||||
WINT_MIN = -2147483648
|
||||
X_AMD64_BYTE_SWAP_H_ = 0
|
||||
X_AMD64_INT_CONST_H_ = 0
|
||||
X_AMD64_INT_LIMITS_H_ = 0
|
||||
X_AMD64_INT_MWGWTYPES_H_ = 0
|
||||
X_AMD64_INT_TYPES_H_ = 0
|
||||
X_AMD64_WCHAR_LIMITS_H_ = 0
|
||||
X_BIG_ENDIAN = 4321
|
||||
X_BSD_INT16_T_ = 0
|
||||
X_BSD_INT32_T_ = 0
|
||||
X_BSD_INT64_T_ = 0
|
||||
X_BSD_INT8_T_ = 0
|
||||
X_BSD_INTPTR_T_ = 0
|
||||
X_BSD_UINT16_T_ = 0
|
||||
X_BSD_UINT32_T_ = 0
|
||||
X_BSD_UINT64_T_ = 0
|
||||
X_BSD_UINT8_T_ = 0
|
||||
X_BSD_UINTPTR_T_ = 0
|
||||
X_BYTE_ORDER = 1234
|
||||
X_FILE_OFFSET_BITS = 64
|
||||
X_GCC_PTRDIFF_T = 0
|
||||
X_GCC_SIZE_T = 0
|
||||
X_GRP_H_ = 0
|
||||
X_LIB_PTHREAD_TYPES_H = 0
|
||||
X_LITTLE_ENDIAN = 1234
|
||||
X_LP64 = 1
|
||||
X_NETBSD_SOURCE = 1
|
||||
X_PATH_GROUP = "/etc/group"
|
||||
X_PDP_ENDIAN = 3412
|
||||
X_PT_BARRIERATTR_DEAD = 0xDEAD0808
|
||||
X_PT_BARRIERATTR_MAGIC = 0x88880808
|
||||
X_PT_BARRIER_DEAD = 0xDEAD0008
|
||||
X_PT_BARRIER_MAGIC = 0x88880008
|
||||
X_PT_CONDATTR_DEAD = 0xDEAD0006
|
||||
X_PT_CONDATTR_MAGIC = 0x66660006
|
||||
X_PT_COND_DEAD = 0xDEAD0005
|
||||
X_PT_COND_MAGIC = 0x55550005
|
||||
X_PT_MUTEXATTR_DEAD = 0xDEAD0004
|
||||
X_PT_MUTEXATTR_MAGIC = 0x44440004
|
||||
X_PT_MUTEX_DEAD = 0xDEAD0003
|
||||
X_PT_MUTEX_MAGIC = 0x33330003
|
||||
X_PT_RWLOCKATTR_DEAD = 0xDEAD0909
|
||||
X_PT_RWLOCKATTR_MAGIC = 0x99990909
|
||||
X_PT_RWLOCK_DEAD = 0xDEAD0009
|
||||
X_PT_RWLOCK_MAGIC = 0x99990009
|
||||
X_PT_SPINLOCK_DEAD = 0xDEAD0007
|
||||
X_PT_SPINLOCK_MAGIC = 0x77770007
|
||||
X_PT_SPINLOCK_PSHARED = 0x00000001
|
||||
X_QUAD_HIGHWORD = 1
|
||||
X_QUAD_LOWWORD = 0
|
||||
X_SIZE_T = 0
|
||||
X_SYS_ANSI_H_ = 0
|
||||
X_SYS_BSWAP_H_ = 0
|
||||
X_SYS_CDEFS_ELF_H_ = 0
|
||||
X_SYS_CDEFS_H_ = 0
|
||||
X_SYS_COMMON_ANSI_H_ = 0
|
||||
X_SYS_COMMON_INT_LIMITS_H_ = 0
|
||||
X_SYS_COMMON_INT_MWGWTYPES_H_ = 0
|
||||
X_SYS_COMMON_INT_TYPES_H_ = 0
|
||||
X_SYS_ENDIAN_H_ = 0
|
||||
X_SYS_FD_SET_H_ = 0
|
||||
X_SYS_STDINT_H_ = 0
|
||||
X_SYS_TYPES_H_ = 0
|
||||
X_X86_64_BSWAP_H_ = 0
|
||||
X_X86_64_CDEFS_H_ = 0
|
||||
X_X86_64_TYPES_H_ = 0
|
||||
BIG_ENDIAN = 4321 // endian.h:101:1:
|
||||
BYTE_ORDER = 1234 // endian.h:103:1:
|
||||
FD_SETSIZE = 256 // fd_set.h:59:1:
|
||||
INT16_MAX = 32767 // common_int_limits.h:53:1:
|
||||
INT16_MIN = -32768 // common_int_limits.h:47:1:
|
||||
INT32_MAX = 2147483647 // common_int_limits.h:54:1:
|
||||
INT32_MIN = -2147483648 // common_int_limits.h:48:1:
|
||||
INT64_MAX = 9223372036854775807 // common_int_limits.h:55:1:
|
||||
INT64_MIN = -9223372036854775808 // common_int_limits.h:49:1:
|
||||
INT8_MAX = 127 // common_int_limits.h:52:1:
|
||||
INT8_MIN = -128 // common_int_limits.h:46:1:
|
||||
INTMAX_MAX = 9223372036854775807 // common_int_limits.h:111:1:
|
||||
INTMAX_MIN = -9223372036854775808 // common_int_limits.h:110:1:
|
||||
INTPTR_MAX = 9223372036854775807 // common_int_limits.h:105:1:
|
||||
INTPTR_MIN = -9223372036854775808 // common_int_limits.h:104:1:
|
||||
INT_FAST16_MAX = 2147483647 // common_int_limits.h:93:1:
|
||||
INT_FAST16_MIN = -2147483648 // common_int_limits.h:87:1:
|
||||
INT_FAST32_MAX = 2147483647 // common_int_limits.h:94:1:
|
||||
INT_FAST32_MIN = -2147483648 // common_int_limits.h:88:1:
|
||||
INT_FAST64_MAX = 9223372036854775807 // common_int_limits.h:95:1:
|
||||
INT_FAST64_MIN = -9223372036854775808 // common_int_limits.h:89:1:
|
||||
INT_FAST8_MAX = 2147483647 // common_int_limits.h:92:1:
|
||||
INT_FAST8_MIN = -2147483648 // common_int_limits.h:86:1:
|
||||
INT_LEAST16_MAX = 32767 // common_int_limits.h:73:1:
|
||||
INT_LEAST16_MIN = -32768 // common_int_limits.h:67:1:
|
||||
INT_LEAST32_MAX = 2147483647 // common_int_limits.h:74:1:
|
||||
INT_LEAST32_MIN = -2147483648 // common_int_limits.h:68:1:
|
||||
INT_LEAST64_MAX = 9223372036854775807 // common_int_limits.h:75:1:
|
||||
INT_LEAST64_MIN = -9223372036854775808 // common_int_limits.h:69:1:
|
||||
INT_LEAST8_MAX = 127 // common_int_limits.h:72:1:
|
||||
INT_LEAST8_MIN = -128 // common_int_limits.h:66:1:
|
||||
LITTLE_ENDIAN = 1234 // endian.h:100:1:
|
||||
NBBY = 8 // types.h:316:1:
|
||||
NFDBITS = 32 // fd_set.h:93:1:
|
||||
NODEVMAJOR = -1 // types.h:258:1:
|
||||
PDP_ENDIAN = 3412 // endian.h:102:1:
|
||||
PTRDIFF_MAX = 9223372036854775807 // common_int_limits.h:121:1:
|
||||
PTRDIFF_MIN = -9223372036854775808 // common_int_limits.h:120:1:
|
||||
SIG_ATOMIC_MAX = 2147483647 // common_int_limits.h:125:1:
|
||||
SIG_ATOMIC_MIN = -2147483648 // common_int_limits.h:124:1:
|
||||
SIZE_MAX = 18446744073709551615 // common_int_limits.h:128:1:
|
||||
UINT16_MAX = 65535 // common_int_limits.h:59:1:
|
||||
UINT32_MAX = 4294967295 // common_int_limits.h:60:1:
|
||||
UINT64_MAX = 18446744073709551615 // common_int_limits.h:61:1:
|
||||
UINT8_MAX = 255 // common_int_limits.h:58:1:
|
||||
UINTMAX_MAX = 18446744073709551615 // common_int_limits.h:112:1:
|
||||
UINTPTR_MAX = 18446744073709551615 // common_int_limits.h:106:1:
|
||||
UINT_FAST16_MAX = 4294967295 // common_int_limits.h:99:1:
|
||||
UINT_FAST32_MAX = 4294967295 // common_int_limits.h:100:1:
|
||||
UINT_FAST64_MAX = 18446744073709551615 // common_int_limits.h:101:1:
|
||||
UINT_FAST8_MAX = 4294967295 // common_int_limits.h:98:1:
|
||||
UINT_LEAST16_MAX = 65535 // common_int_limits.h:79:1:
|
||||
UINT_LEAST32_MAX = 4294967295 // common_int_limits.h:80:1:
|
||||
UINT_LEAST64_MAX = 18446744073709551615 // common_int_limits.h:81:1:
|
||||
UINT_LEAST8_MAX = 255 // common_int_limits.h:78:1:
|
||||
WCHAR_MAX = 0x7fffffff // wchar_limits.h:41:1:
|
||||
WCHAR_MIN = -2147483648 // wchar_limits.h:40:1:
|
||||
WINT_MAX = 0x7fffffff // wchar_limits.h:45:1:
|
||||
WINT_MIN = -2147483648 // wchar_limits.h:44:1:
|
||||
X_AMD64_BYTE_SWAP_H_ = 0 // byte_swap.h:37:1:
|
||||
X_AMD64_INT_CONST_H_ = 0 // int_const.h:33:1:
|
||||
X_AMD64_INT_LIMITS_H_ = 0 // int_limits.h:33:1:
|
||||
X_AMD64_INT_MWGWTYPES_H_ = 0 // int_mwgwtypes.h:33:1:
|
||||
X_AMD64_INT_TYPES_H_ = 0 // int_types.h:35:1:
|
||||
X_AMD64_WCHAR_LIMITS_H_ = 0 // wchar_limits.h:33:1:
|
||||
X_BIG_ENDIAN = 4321 // endian.h:44:1:
|
||||
X_BSD_INT16_T_ = 0 // types.h:65:1:
|
||||
X_BSD_INT32_T_ = 0 // types.h:75:1:
|
||||
X_BSD_INT64_T_ = 0 // types.h:85:1:
|
||||
X_BSD_INT8_T_ = 0 // types.h:55:1:
|
||||
X_BSD_INTPTR_T_ = 0 // stdint.h:80:1:
|
||||
X_BSD_UINT16_T_ = 0 // types.h:70:1:
|
||||
X_BSD_UINT32_T_ = 0 // types.h:80:1:
|
||||
X_BSD_UINT64_T_ = 0 // types.h:90:1:
|
||||
X_BSD_UINT8_T_ = 0 // types.h:60:1:
|
||||
X_BSD_UINTPTR_T_ = 0 // stdint.h:85:1:
|
||||
X_BYTE_ORDER = 1234 // endian_machdep.h:3:1:
|
||||
X_FILE_OFFSET_BITS = 64 // <builtin>:25:1:
|
||||
X_GRP_H_ = 0 // grp.h:40:1:
|
||||
X_LIB_PTHREAD_TYPES_H = 0 // pthread_types.h:33:1:
|
||||
X_LITTLE_ENDIAN = 1234 // endian.h:43:1:
|
||||
X_LP64 = 1 // <predefined>:268:1:
|
||||
X_NETBSD_SOURCE = 1 // featuretest.h:70:1:
|
||||
X_PATH_GROUP = "/etc/group" // grp.h:47:1:
|
||||
X_PDP_ENDIAN = 3412 // endian.h:45:1:
|
||||
X_PT_BARRIERATTR_DEAD = 0xDEAD0808 // pthread_types.h:278:1:
|
||||
X_PT_BARRIERATTR_MAGIC = 0x88880808 // pthread_types.h:277:1:
|
||||
X_PT_BARRIER_DEAD = 0xDEAD0008 // pthread_types.h:270:1:
|
||||
X_PT_BARRIER_MAGIC = 0x88880008 // pthread_types.h:269:1:
|
||||
X_PT_CONDATTR_DEAD = 0xDEAD0006 // pthread_types.h:197:1:
|
||||
X_PT_CONDATTR_MAGIC = 0x66660006 // pthread_types.h:196:1:
|
||||
X_PT_COND_DEAD = 0xDEAD0005 // pthread_types.h:182:1:
|
||||
X_PT_COND_MAGIC = 0x55550005 // pthread_types.h:181:1:
|
||||
X_PT_MUTEXATTR_DEAD = 0xDEAD0004 // pthread_types.h:167:1:
|
||||
X_PT_MUTEXATTR_MAGIC = 0x44440004 // pthread_types.h:166:1:
|
||||
X_PT_MUTEX_DEAD = 0xDEAD0003 // pthread_types.h:139:1:
|
||||
X_PT_MUTEX_MAGIC = 0x33330003 // pthread_types.h:138:1:
|
||||
X_PT_RWLOCKATTR_DEAD = 0xDEAD0909 // pthread_types.h:253:1:
|
||||
X_PT_RWLOCKATTR_MAGIC = 0x99990909 // pthread_types.h:252:1:
|
||||
X_PT_RWLOCK_DEAD = 0xDEAD0009 // pthread_types.h:236:1:
|
||||
X_PT_RWLOCK_MAGIC = 0x99990009 // pthread_types.h:235:1:
|
||||
X_PT_SPINLOCK_DEAD = 0xDEAD0007 // pthread_types.h:213:1:
|
||||
X_PT_SPINLOCK_MAGIC = 0x77770007 // pthread_types.h:212:1:
|
||||
X_PT_SPINLOCK_PSHARED = 0x00000001 // pthread_types.h:214:1:
|
||||
X_QUAD_HIGHWORD = 1 // endian.h:84:1:
|
||||
X_QUAD_LOWWORD = 0 // endian.h:85:1:
|
||||
X_SIZE_T = 0 // types.h:279:1:
|
||||
X_SYS_ANSI_H_ = 0 // ansi.h:33:1:
|
||||
X_SYS_BSWAP_H_ = 0 // bswap.h:6:1:
|
||||
X_SYS_CDEFS_ELF_H_ = 0 // cdefs_elf.h:31:1:
|
||||
X_SYS_CDEFS_H_ = 0 // cdefs.h:37:1:
|
||||
X_SYS_COMMON_ANSI_H_ = 0 // common_ansi.h:33:1:
|
||||
X_SYS_COMMON_INT_LIMITS_H_ = 0 // common_int_limits.h:33:1:
|
||||
X_SYS_COMMON_INT_MWGWTYPES_H_ = 0 // common_int_mwgwtypes.h:33:1:
|
||||
X_SYS_COMMON_INT_TYPES_H_ = 0 // common_int_types.h:33:1:
|
||||
X_SYS_ENDIAN_H_ = 0 // endian.h:35:1:
|
||||
X_SYS_FD_SET_H_ = 0 // fd_set.h:35:1:
|
||||
X_SYS_STDINT_H_ = 0 // stdint.h:33:1:
|
||||
X_SYS_TYPES_H_ = 0 // types.h:40:1:
|
||||
X_X86_64_BSWAP_H_ = 0 // bswap.h:6:1:
|
||||
X_X86_64_CDEFS_H_ = 0 // cdefs.h:4:1:
|
||||
X_X86_64_TYPES_H_ = 0 // types.h:35:1:
|
||||
)
|
||||
|
||||
type Ptrdiff_t = int64 /* <builtin>:3:26 */
|
||||
@@ -220,15 +218,6 @@ type X__float128 = float64 /* <builtin>:47:21 */
|
||||
// _LARGEFILE_SOURCE Large File Support
|
||||
// <http://ftp.sas.com/standards/large.file/x_open.20Mar96.html>
|
||||
|
||||
// DO NOT EDIT THIS FILE.
|
||||
//
|
||||
// It has been auto-edited by fixincludes from:
|
||||
//
|
||||
// "/usr/include/sys/types.h"
|
||||
//
|
||||
// This had to be done to correct non-standard usages in the
|
||||
// original, manufacturer supplied header file.
|
||||
|
||||
// $NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
|
||||
|
||||
// -
|
||||
@@ -756,32 +745,32 @@ type X__wctype_t = uintptr /* ansi.h:54:31 */
|
||||
// mbstate_t is an opaque object to keep conversion state, during multibyte
|
||||
// stream conversions. The content must not be referenced by user programs.
|
||||
type X__mbstate_t = struct {
|
||||
F__mbstateL X__int64_t
|
||||
_ [120]byte
|
||||
F__mbstateL X__int64_t
|
||||
F__ccgo_pad1 [120]byte
|
||||
} /* ansi.h:63:3 */
|
||||
|
||||
type X__va_list = X__builtin_va_list /* ansi.h:72:27 */
|
||||
|
||||
type Int8_t = X__int8_t /* types.h:63:18 */
|
||||
type Int8_t = X__int8_t /* types.h:54:18 */
|
||||
|
||||
type Uint8_t = X__uint8_t /* types.h:68:19 */
|
||||
type Uint8_t = X__uint8_t /* types.h:59:19 */
|
||||
|
||||
type Int16_t = X__int16_t /* types.h:73:19 */
|
||||
type Int16_t = X__int16_t /* types.h:64:19 */
|
||||
|
||||
type Uint16_t = X__uint16_t /* types.h:78:20 */
|
||||
type Uint16_t = X__uint16_t /* types.h:69:20 */
|
||||
|
||||
type Int32_t = X__int32_t /* types.h:83:19 */
|
||||
type Int32_t = X__int32_t /* types.h:74:19 */
|
||||
|
||||
type Uint32_t = X__uint32_t /* types.h:88:20 */
|
||||
type Uint32_t = X__uint32_t /* types.h:79:20 */
|
||||
|
||||
type Int64_t = X__int64_t /* types.h:93:19 */
|
||||
type Int64_t = X__int64_t /* types.h:84:19 */
|
||||
|
||||
type Uint64_t = X__uint64_t /* types.h:98:20 */
|
||||
type Uint64_t = X__uint64_t /* types.h:89:20 */
|
||||
|
||||
type U_int8_t = Uint8_t /* types.h:102:18 */
|
||||
type U_int16_t = Uint16_t /* types.h:103:18 */
|
||||
type U_int32_t = Uint32_t /* types.h:104:18 */
|
||||
type U_int64_t = Uint64_t /* types.h:105:18 */
|
||||
type U_int8_t = Uint8_t /* types.h:93:18 */
|
||||
type U_int16_t = Uint16_t /* types.h:94:18 */
|
||||
type U_int32_t = Uint32_t /* types.h:95:18 */
|
||||
type U_int64_t = Uint64_t /* types.h:96:18 */
|
||||
|
||||
// $NetBSD: endian.h,v 1.1 2003/04/26 18:39:40 fvdl Exp $
|
||||
|
||||
@@ -944,15 +933,6 @@ type U_int64_t = Uint64_t /* types.h:105:18 */
|
||||
//
|
||||
// @(#)cdefs.h 8.8 (Berkeley) 1/9/95
|
||||
|
||||
// DO NOT EDIT THIS FILE.
|
||||
//
|
||||
// It has been auto-edited by fixincludes from:
|
||||
//
|
||||
// "/usr/include/sys/types.h"
|
||||
//
|
||||
// This had to be done to correct non-standard usages in the
|
||||
// original, manufacturer supplied header file.
|
||||
|
||||
// $NetBSD: types.h,v 1.102 2018/11/06 16:26:44 maya Exp $
|
||||
|
||||
// -
|
||||
@@ -1186,19 +1166,19 @@ type Uint_fast64_t = uint64 /* common_int_mwgwtypes.h:62:32 */
|
||||
type Intmax_t = int64 /* common_int_mwgwtypes.h:66:33 */
|
||||
type Uintmax_t = uint64 /* common_int_mwgwtypes.h:67:32 */
|
||||
|
||||
type U_char = uint8 /* types.h:110:23 */
|
||||
type U_short = uint16 /* types.h:111:24 */
|
||||
type U_int = uint32 /* types.h:112:22 */
|
||||
type U_long = uint64 /* types.h:113:23 */
|
||||
type U_char = uint8 /* types.h:101:23 */
|
||||
type U_short = uint16 /* types.h:102:24 */
|
||||
type U_int = uint32 /* types.h:103:22 */
|
||||
type U_long = uint64 /* types.h:104:23 */
|
||||
|
||||
type Unchar = uint8 /* types.h:115:23 */ // Sys V compatibility
|
||||
type Ushort = uint16 /* types.h:116:24 */ // Sys V compatibility
|
||||
type Uint = uint32 /* types.h:117:22 */ // Sys V compatibility
|
||||
type Ulong = uint64 /* types.h:118:23 */ // Sys V compatibility
|
||||
type Unchar = uint8 /* types.h:106:23 */ // Sys V compatibility
|
||||
type Ushort = uint16 /* types.h:107:24 */ // Sys V compatibility
|
||||
type Uint = uint32 /* types.h:108:22 */ // Sys V compatibility
|
||||
type Ulong = uint64 /* types.h:109:23 */ // Sys V compatibility
|
||||
|
||||
type U_quad_t = Uint64_t /* types.h:121:18 */ // quads
|
||||
type Quad_t = Int64_t /* types.h:122:18 */
|
||||
type Qaddr_t = uintptr /* types.h:123:16 */
|
||||
type U_quad_t = Uint64_t /* types.h:112:18 */ // quads
|
||||
type Quad_t = Int64_t /* types.h:113:18 */
|
||||
type Qaddr_t = uintptr /* types.h:114:16 */
|
||||
|
||||
// The types longlong_t and u_longlong_t exist for use with the
|
||||
// Sun-derived XDR routines involving these types, and their usage
|
||||
@@ -1208,69 +1188,69 @@ type Qaddr_t = uintptr /* types.h:123:16 */
|
||||
// respectively. Portable programs that need 64-bit types should use
|
||||
// the C99 types int64_t and uint64_t instead.
|
||||
|
||||
type Longlong_t = Int64_t /* types.h:135:18 */ // for XDR
|
||||
type U_longlong_t = Uint64_t /* types.h:136:18 */ // for XDR
|
||||
type Longlong_t = Int64_t /* types.h:126:18 */ // for XDR
|
||||
type U_longlong_t = Uint64_t /* types.h:127:18 */ // for XDR
|
||||
|
||||
type Blkcnt_t = Int64_t /* types.h:138:18 */ // fs block count
|
||||
type Blksize_t = Int32_t /* types.h:139:18 */ // fs optimal block size
|
||||
type Blkcnt_t = Int64_t /* types.h:129:18 */ // fs block count
|
||||
type Blksize_t = Int32_t /* types.h:130:18 */ // fs optimal block size
|
||||
|
||||
type Fsblkcnt_t = X__fsblkcnt_t /* types.h:142:22 */ // fs block count (statvfs)
|
||||
type Fsblkcnt_t = X__fsblkcnt_t /* types.h:133:22 */ // fs block count (statvfs)
|
||||
|
||||
type Fsfilcnt_t = X__fsfilcnt_t /* types.h:147:22 */ // fs file count
|
||||
type Fsfilcnt_t = X__fsfilcnt_t /* types.h:138:22 */ // fs file count
|
||||
|
||||
// We don't and shouldn't use caddr_t in the kernel anymore
|
||||
type Caddr_t = X__caddr_t /* types.h:154:19 */ // core address
|
||||
type Caddr_t = X__caddr_t /* types.h:145:19 */ // core address
|
||||
|
||||
type Daddr_t = Int64_t /* types.h:163:18 */ // disk address
|
||||
type Daddr_t = Int64_t /* types.h:154:18 */ // disk address
|
||||
|
||||
type Dev_t = Uint64_t /* types.h:166:18 */ // device number
|
||||
type Fixpt_t = Uint32_t /* types.h:167:18 */ // fixed point number
|
||||
type Dev_t = Uint64_t /* types.h:157:18 */ // device number
|
||||
type Fixpt_t = Uint32_t /* types.h:158:18 */ // fixed point number
|
||||
|
||||
type Gid_t = X__gid_t /* types.h:170:18 */ // group id
|
||||
type Gid_t = X__gid_t /* types.h:161:18 */ // group id
|
||||
|
||||
type Id_t = Uint32_t /* types.h:174:18 */ // group id, process id or user id
|
||||
type Ino_t = Uint64_t /* types.h:175:18 */ // inode number
|
||||
type Key_t = int64 /* types.h:176:15 */ // IPC key (for Sys V IPC)
|
||||
type Id_t = Uint32_t /* types.h:165:18 */ // group id, process id or user id
|
||||
type Ino_t = Uint64_t /* types.h:166:18 */ // inode number
|
||||
type Key_t = int64 /* types.h:167:15 */ // IPC key (for Sys V IPC)
|
||||
|
||||
type Mode_t = X__mode_t /* types.h:179:18 */ // permissions
|
||||
type Mode_t = X__mode_t /* types.h:170:18 */ // permissions
|
||||
|
||||
type Nlink_t = Uint32_t /* types.h:183:18 */ // link count
|
||||
type Nlink_t = Uint32_t /* types.h:174:18 */ // link count
|
||||
|
||||
type Off_t = X__off_t /* types.h:186:18 */ // file offset
|
||||
type Off_t = X__off_t /* types.h:177:18 */ // file offset
|
||||
|
||||
type Pid_t = X__pid_t /* types.h:191:18 */ // process id
|
||||
type Lwpid_t = Int32_t /* types.h:194:18 */ // LWP id
|
||||
type Rlim_t = Uint64_t /* types.h:195:18 */ // resource limit
|
||||
type Segsz_t = Int32_t /* types.h:196:18 */ // segment size
|
||||
type Swblk_t = Int32_t /* types.h:197:18 */ // swap offset
|
||||
type Pid_t = X__pid_t /* types.h:182:18 */ // process id
|
||||
type Lwpid_t = Int32_t /* types.h:185:18 */ // LWP id
|
||||
type Rlim_t = Uint64_t /* types.h:186:18 */ // resource limit
|
||||
type Segsz_t = Int32_t /* types.h:187:18 */ // segment size
|
||||
type Swblk_t = Int32_t /* types.h:188:18 */ // swap offset
|
||||
|
||||
type Uid_t = X__uid_t /* types.h:200:18 */ // user id
|
||||
type Uid_t = X__uid_t /* types.h:191:18 */ // user id
|
||||
|
||||
type Mqd_t = int32 /* types.h:204:14 */
|
||||
type Mqd_t = int32 /* types.h:195:14 */
|
||||
|
||||
type Cpuid_t = uint64 /* types.h:206:23 */
|
||||
type Cpuid_t = uint64 /* types.h:197:23 */
|
||||
|
||||
type Psetid_t = int32 /* types.h:208:14 */
|
||||
type Psetid_t = int32 /* types.h:199:14 */
|
||||
|
||||
type X__cpu_simple_lock_t = X__cpu_simple_lock_nv_t /* types.h:210:41 */
|
||||
type X__cpu_simple_lock_t = X__cpu_simple_lock_nv_t /* types.h:201:41 */
|
||||
|
||||
// Major, minor numbers, dev_t's.
|
||||
type X__devmajor_t = Int32_t /* types.h:264:17 */
|
||||
type X__devminor_t = Int32_t /* types.h:264:31 */
|
||||
type X__devmajor_t = Int32_t /* types.h:255:17 */
|
||||
type X__devminor_t = Int32_t /* types.h:255:31 */
|
||||
|
||||
type Clock_t = uint32 /* types.h:277:24 */
|
||||
type Clock_t = uint32 /* types.h:268:24 */
|
||||
|
||||
type Ssize_t = int64 /* types.h:301:24 */
|
||||
type Ssize_t = int64 /* types.h:284:24 */
|
||||
|
||||
type Time_t = X__int64_t /* types.h:306:23 */
|
||||
type Time_t = X__int64_t /* types.h:289:23 */
|
||||
|
||||
type Clockid_t = int32 /* types.h:311:26 */
|
||||
type Clockid_t = int32 /* types.h:294:26 */
|
||||
|
||||
type Timer_t = int32 /* types.h:316:24 */
|
||||
type Timer_t = int32 /* types.h:299:24 */
|
||||
|
||||
type Suseconds_t = int32 /* types.h:321:27 */
|
||||
type Suseconds_t = int32 /* types.h:304:27 */
|
||||
|
||||
type Useconds_t = uint32 /* types.h:326:26 */
|
||||
type Useconds_t = uint32 /* types.h:309:26 */
|
||||
|
||||
// $NetBSD: fd_set.h,v 1.7 2018/06/24 12:05:40 kamil Exp $
|
||||
|
||||
@@ -1450,9 +1430,9 @@ type Fd_set = Fd_set1 /* fd_set.h:68:3 */
|
||||
|
||||
// Expose our internals if we are not required to hide them.
|
||||
|
||||
type Kauth_cred_t = uintptr /* types.h:335:27 */
|
||||
type Kauth_cred_t = uintptr /* types.h:318:27 */
|
||||
|
||||
type Pri_t = int32 /* types.h:337:13 */
|
||||
type Pri_t = int32 /* types.h:320:13 */
|
||||
|
||||
// $NetBSD: pthread_types.h,v 1.23 2017/09/09 23:21:45 kamil Exp $
|
||||
|
||||
@@ -1513,24 +1493,24 @@ type X__pthread_mutex_st = struct {
|
||||
Fptm_pad1 [3]Uint8_t
|
||||
F__8 struct{ Fptm_ceiling uint8 }
|
||||
Fptm_pad2 [3]Uint8_t
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fptm_owner Pthread_t
|
||||
Fptm_waiters uintptr
|
||||
Fptm_recursed uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad2 [4]byte
|
||||
Fptm_spare2 uintptr
|
||||
} /* pthread_types.h:66:1 */
|
||||
|
||||
type X__pthread_mutexattr_st = struct {
|
||||
Fptma_magic uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fptma_private uintptr
|
||||
} /* pthread_types.h:67:1 */
|
||||
|
||||
type X__pthread_cond_st = struct {
|
||||
Fptc_magic uint32
|
||||
Fptc_lock X__pthread_spin_t
|
||||
_ [3]byte
|
||||
F__ccgo_pad1 [3]byte
|
||||
Fptc_waiters Pthread_queue_t
|
||||
Fptc_mutex uintptr
|
||||
Fptc_private uintptr
|
||||
@@ -1538,43 +1518,43 @@ type X__pthread_cond_st = struct {
|
||||
|
||||
type X__pthread_condattr_st = struct {
|
||||
Fptca_magic uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fptca_private uintptr
|
||||
} /* pthread_types.h:69:1 */
|
||||
|
||||
type X__pthread_rwlock_st = struct {
|
||||
Fptr_magic uint32
|
||||
Fptr_interlock X__pthread_spin_t
|
||||
_ [3]byte
|
||||
F__ccgo_pad1 [3]byte
|
||||
Fptr_rblocked Pthread_queue_t
|
||||
Fptr_wblocked Pthread_queue_t
|
||||
Fptr_nreaders uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad2 [4]byte
|
||||
Fptr_owner Pthread_t
|
||||
Fptr_private uintptr
|
||||
} /* pthread_types.h:71:1 */
|
||||
|
||||
type X__pthread_rwlockattr_st = struct {
|
||||
Fptra_magic uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fptra_private uintptr
|
||||
} /* pthread_types.h:72:1 */
|
||||
|
||||
type X__pthread_barrier_st = struct {
|
||||
Fptb_magic uint32
|
||||
Fptb_lock Pthread_spin_t
|
||||
_ [3]byte
|
||||
F__ccgo_pad1 [3]byte
|
||||
Fptb_waiters Pthread_queue_t
|
||||
Fptb_initcount uint32
|
||||
Fptb_curcount uint32
|
||||
Fptb_generation uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad2 [4]byte
|
||||
Fptb_private uintptr
|
||||
} /* pthread_types.h:73:1 */
|
||||
|
||||
type X__pthread_barrierattr_st = struct {
|
||||
Fptba_magic uint32
|
||||
_ [4]byte
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fptba_private uintptr
|
||||
} /* pthread_types.h:74:1 */
|
||||
|
||||
@@ -1585,17 +1565,17 @@ type Pthread_mutexattr_t = X__pthread_mutexattr_st /* pthread_types.h:79:39 */
|
||||
type Pthread_cond_t = X__pthread_cond_st /* pthread_types.h:80:34 */
|
||||
type Pthread_condattr_t = X__pthread_condattr_st /* pthread_types.h:81:38 */
|
||||
type X__pthread_once_st = struct {
|
||||
Fpto_mutex Pthread_mutex_t
|
||||
Fpto_done int32
|
||||
_ [4]byte
|
||||
Fpto_mutex Pthread_mutex_t
|
||||
Fpto_done int32
|
||||
F__ccgo_pad1 [4]byte
|
||||
} /* pthread_types.h:82:9 */
|
||||
|
||||
type Pthread_once_t = X__pthread_once_st /* pthread_types.h:82:34 */
|
||||
type X__pthread_spinlock_st = struct {
|
||||
Fpts_magic uint32
|
||||
Fpts_spin X__pthread_spin_t
|
||||
_ [3]byte
|
||||
Fpts_flags int32
|
||||
Fpts_magic uint32
|
||||
Fpts_spin X__pthread_spin_t
|
||||
F__ccgo_pad1 [3]byte
|
||||
Fpts_flags int32
|
||||
} /* pthread_types.h:83:9 */
|
||||
|
||||
type Pthread_spinlock_t = X__pthread_spinlock_st /* pthread_types.h:83:38 */
|
||||
@@ -1606,11 +1586,11 @@ type Pthread_barrierattr_t = X__pthread_barrierattr_st /* pthread_types.h:87:41
|
||||
type Pthread_key_t = int32 /* pthread_types.h:88:13 */
|
||||
|
||||
type Group = struct {
|
||||
Fgr_name uintptr
|
||||
Fgr_passwd uintptr
|
||||
Fgr_gid X__gid_t
|
||||
_ [4]byte
|
||||
Fgr_mem uintptr
|
||||
Fgr_name uintptr
|
||||
Fgr_passwd uintptr
|
||||
Fgr_gid X__gid_t
|
||||
F__ccgo_pad1 [4]byte
|
||||
Fgr_mem uintptr
|
||||
} /* grp.h:50:1 */
|
||||
|
||||
var _ int8 /* gen.c:2:13: */
|
||||
+13
-2
@@ -713,7 +713,10 @@ func init() {
|
||||
|
||||
num, err := strconv.ParseInt(fields[1], 10, 32)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
// If we find lines that don't match the expected format we skip over them.
|
||||
// The expected format is <protocol> <number> <aliases> ...
|
||||
// As we're using strings.Fields for splitting the line, failures can happen if the protocol field contains white spaces.
|
||||
continue
|
||||
}
|
||||
|
||||
protoent := &Protoent{
|
||||
@@ -744,11 +747,19 @@ func init() {
|
||||
continue
|
||||
}
|
||||
|
||||
// https://gitlab.com/cznic/libc/-/issues/25
|
||||
if strings.Index(fields[1], "/") < 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
name := fields[0]
|
||||
portproto := strings.SplitN(fields[1], "/", 2)
|
||||
port, err := strconv.ParseInt(portproto[0], 10, 32)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
// If we find lines that don't match the expected format we skip over them.
|
||||
// The expected format is <service-name> <port>/<protocol> [aliases ...]
|
||||
// As we're using strings.Fields for splitting the line, failures can happen if the service name field contains white spaces.
|
||||
continue
|
||||
}
|
||||
|
||||
proto := portproto[1]
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ func nextRandom(x uintptr) {
|
||||
copy((*RawMem)(unsafe.Pointer(x))[:6:6], fmt.Sprintf("%06d", int(1e9+r%1e9)%1e6))
|
||||
}
|
||||
|
||||
func tempFile(s, x uintptr) (fd int, err error) {
|
||||
func tempFile(s, x uintptr, _ int32) (fd int, err error) {
|
||||
const maxTry = 10000
|
||||
nconflict := 0
|
||||
for i := 0; i < maxTry; i++ {
|
||||
|
||||
Loaded 100 of 564 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user