mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
@@ -33,8 +33,8 @@ If you are interested in contributing to NATS, read about our...
|
|||||||
[Fossa-Image]: https://app.fossa.io/api/projects/git%2Bgithub.com%2Fnats-io%2Fgnatsd.svg?type=shield
|
[Fossa-Image]: https://app.fossa.io/api/projects/git%2Bgithub.com%2Fnats-io%2Fgnatsd.svg?type=shield
|
||||||
[Build-Status-Url]: https://travis-ci.com/github/nats-io/nats-server
|
[Build-Status-Url]: https://travis-ci.com/github/nats-io/nats-server
|
||||||
[Build-Status-Image]: https://travis-ci.com/nats-io/nats-server.svg?branch=master
|
[Build-Status-Image]: https://travis-ci.com/nats-io/nats-server.svg?branch=master
|
||||||
[Release-Url]: https://github.com/nats-io/nats-server/releases/tag/v2.3.0
|
[Release-Url]: https://github.com/nats-io/nats-server/releases/tag/v2.3.1
|
||||||
[Release-image]: https://img.shields.io/badge/release-v2.3.0-1eb0fc.svg
|
[Release-image]: https://img.shields.io/badge/release-v2.3.1-1eb0fc.svg
|
||||||
[Coverage-Url]: https://coveralls.io/r/nats-io/nats-server?branch=master
|
[Coverage-Url]: https://coveralls.io/r/nats-io/nats-server?branch=master
|
||||||
[Coverage-image]: https://coveralls.io/repos/github/nats-io/nats-server/badge.svg?branch=master
|
[Coverage-image]: https://coveralls.io/repos/github/nats-io/nats-server/badge.svg?branch=master
|
||||||
[ReportCard-Url]: https://goreportcard.com/report/nats-io/nats-server
|
[ReportCard-Url]: https://goreportcard.com/report/nats-io/nats-server
|
||||||
|
|||||||
5
go.sum
5
go.sum
@@ -16,8 +16,6 @@ github.com/nats-io/jwt v1.2.2 h1:w3GMTO969dFg+UOKTmmyuu7IGdusK+7Ytlt//OYH/uU=
|
|||||||
github.com/nats-io/jwt v1.2.2/go.mod h1:/xX356yQA6LuXI9xWW7mZNpxgF2mBmGecH+Fj34sP5Q=
|
github.com/nats-io/jwt v1.2.2/go.mod h1:/xX356yQA6LuXI9xWW7mZNpxgF2mBmGecH+Fj34sP5Q=
|
||||||
github.com/nats-io/jwt/v2 v2.0.2 h1:ejVCLO8gu6/4bOKIHQpmB5UhhUJfAQw55yvLWpfmKjI=
|
github.com/nats-io/jwt/v2 v2.0.2 h1:ejVCLO8gu6/4bOKIHQpmB5UhhUJfAQw55yvLWpfmKjI=
|
||||||
github.com/nats-io/jwt/v2 v2.0.2/go.mod h1:VRP+deawSXyhNjXmxPCHskrR6Mq50BqpEI5SEcNiGlY=
|
github.com/nats-io/jwt/v2 v2.0.2/go.mod h1:VRP+deawSXyhNjXmxPCHskrR6Mq50BqpEI5SEcNiGlY=
|
||||||
github.com/nats-io/nats.go v1.11.0 h1:L263PZkrmkRJRJT2YHU8GwWWvEvmr9/LUKuJTXsF32k=
|
|
||||||
github.com/nats-io/nats.go v1.11.0/go.mod h1:BPko4oXsySz4aSWeFgOHLZs3G4Jq4ZAyE6/zMCxRT6w=
|
|
||||||
github.com/nats-io/nats.go v1.11.1-0.20210623165838-4b75fc59ae30 h1:9GqilBhZaR3xYis0JgMlJjNw933WIobdjKhilXm+Vls=
|
github.com/nats-io/nats.go v1.11.1-0.20210623165838-4b75fc59ae30 h1:9GqilBhZaR3xYis0JgMlJjNw933WIobdjKhilXm+Vls=
|
||||||
github.com/nats-io/nats.go v1.11.1-0.20210623165838-4b75fc59ae30/go.mod h1:BPko4oXsySz4aSWeFgOHLZs3G4Jq4ZAyE6/zMCxRT6w=
|
github.com/nats-io/nats.go v1.11.1-0.20210623165838-4b75fc59ae30/go.mod h1:BPko4oXsySz4aSWeFgOHLZs3G4Jq4ZAyE6/zMCxRT6w=
|
||||||
github.com/nats-io/nkeys v0.2.0/go.mod h1:XdZpAbhgyyODYqjTawOnIOI7VlbKSarI9Gfy1tqEu/s=
|
github.com/nats-io/nkeys v0.2.0/go.mod h1:XdZpAbhgyyODYqjTawOnIOI7VlbKSarI9Gfy1tqEu/s=
|
||||||
@@ -28,8 +26,6 @@ github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OS
|
|||||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
golang.org/x/crypto v0.0.0-20200323165209-0ec3e9974c59/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
golang.org/x/crypto v0.0.0-20200323165209-0ec3e9974c59/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||||
golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
|
golang.org/x/crypto v0.0.0-20210314154223-e6e6c4f2bb5b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
|
||||||
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a h1:kr2P4QFmQr29mSLA43kwrOcgcReGTfbE9N577tCTuBc=
|
|
||||||
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8=
|
|
||||||
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e h1:gsTQYXdTw2Gq7RBsWvlQ91b+aEQ6bXFUngBGuR8sPpI=
|
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e h1:gsTQYXdTw2Gq7RBsWvlQ91b+aEQ6bXFUngBGuR8sPpI=
|
||||||
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||||
@@ -37,7 +33,6 @@ golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v
|
|||||||
golang.org/x/sys v0.0.0-20190130150945-aca44879d564/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20190130150945-aca44879d564/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 h1:nxC68pudNYkKU6jWhgrqdreuFiOQWj1Fs7T3VrH4Pjw=
|
|
||||||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 h1:SrN+KX8Art/Sf4HNj6Zcz06G7VEz+7w9tdXTPOZ7+l4=
|
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1 h1:SrN+KX8Art/Sf4HNj6Zcz06G7VEz+7w9tdXTPOZ7+l4=
|
||||||
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ var (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
// VERSION is the current version for the server.
|
// VERSION is the current version for the server.
|
||||||
VERSION = "2.3.1-RC.1"
|
VERSION = "2.3.1"
|
||||||
|
|
||||||
// PROTO is the currently supported protocol.
|
// PROTO is the currently supported protocol.
|
||||||
// 0 was the original
|
// 0 was the original
|
||||||
|
|||||||
29
vendor/golang.org/x/sys/unix/asm_bsd_386.s
generated
vendored
Normal file
29
vendor/golang.org/x/sys/unix/asm_bsd_386.s
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
// Copyright 2021 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build (freebsd || netbsd || openbsd) && gc
|
||||||
|
// +build freebsd netbsd openbsd
|
||||||
|
// +build gc
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
// System call support for 386 BSD
|
||||||
|
|
||||||
|
// Just jump to package syscall's implementation for all these functions.
|
||||||
|
// The runtime may know about them.
|
||||||
|
|
||||||
|
TEXT ·Syscall(SB),NOSPLIT,$0-28
|
||||||
|
JMP syscall·Syscall(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall6(SB),NOSPLIT,$0-40
|
||||||
|
JMP syscall·Syscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall9(SB),NOSPLIT,$0-52
|
||||||
|
JMP syscall·Syscall9(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall(SB),NOSPLIT,$0-28
|
||||||
|
JMP syscall·RawSyscall(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
|
||||||
|
JMP syscall·RawSyscall6(SB)
|
||||||
29
vendor/golang.org/x/sys/unix/asm_bsd_amd64.s
generated
vendored
Normal file
29
vendor/golang.org/x/sys/unix/asm_bsd_amd64.s
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
// Copyright 2021 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build (darwin || dragonfly || freebsd || netbsd || openbsd) && gc
|
||||||
|
// +build darwin dragonfly freebsd netbsd openbsd
|
||||||
|
// +build gc
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
// System call support for AMD64 BSD
|
||||||
|
|
||||||
|
// Just jump to package syscall's implementation for all these functions.
|
||||||
|
// The runtime may know about them.
|
||||||
|
|
||||||
|
TEXT ·Syscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·Syscall(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·Syscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall9(SB),NOSPLIT,$0-104
|
||||||
|
JMP syscall·Syscall9(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·RawSyscall(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·RawSyscall6(SB)
|
||||||
29
vendor/golang.org/x/sys/unix/asm_bsd_arm.s
generated
vendored
Normal file
29
vendor/golang.org/x/sys/unix/asm_bsd_arm.s
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
// Copyright 2021 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build (freebsd || netbsd || openbsd) && gc
|
||||||
|
// +build freebsd netbsd openbsd
|
||||||
|
// +build gc
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
// System call support for ARM BSD
|
||||||
|
|
||||||
|
// Just jump to package syscall's implementation for all these functions.
|
||||||
|
// The runtime may know about them.
|
||||||
|
|
||||||
|
TEXT ·Syscall(SB),NOSPLIT,$0-28
|
||||||
|
B syscall·Syscall(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall6(SB),NOSPLIT,$0-40
|
||||||
|
B syscall·Syscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall9(SB),NOSPLIT,$0-52
|
||||||
|
B syscall·Syscall9(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall(SB),NOSPLIT,$0-28
|
||||||
|
B syscall·RawSyscall(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
|
||||||
|
B syscall·RawSyscall6(SB)
|
||||||
29
vendor/golang.org/x/sys/unix/asm_bsd_arm64.s
generated
vendored
Normal file
29
vendor/golang.org/x/sys/unix/asm_bsd_arm64.s
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
// Copyright 2021 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build (darwin || freebsd || netbsd || openbsd) && gc
|
||||||
|
// +build darwin freebsd netbsd openbsd
|
||||||
|
// +build gc
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
// System call support for ARM64 BSD
|
||||||
|
|
||||||
|
// Just jump to package syscall's implementation for all these functions.
|
||||||
|
// The runtime may know about them.
|
||||||
|
|
||||||
|
TEXT ·Syscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·Syscall(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·Syscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall9(SB),NOSPLIT,$0-104
|
||||||
|
JMP syscall·Syscall9(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
|
||||||
|
JMP syscall·RawSyscall(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
|
||||||
|
JMP syscall·RawSyscall6(SB)
|
||||||
426
vendor/golang.org/x/sys/unix/asm_zos_s390x.s
generated
vendored
Normal file
426
vendor/golang.org/x/sys/unix/asm_zos_s390x.s
generated
vendored
Normal file
@@ -0,0 +1,426 @@
|
|||||||
|
// Copyright 2020 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build zos && s390x && gc
|
||||||
|
// +build zos
|
||||||
|
// +build s390x
|
||||||
|
// +build gc
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
#define PSALAA 1208(R0)
|
||||||
|
#define GTAB64(x) 80(x)
|
||||||
|
#define LCA64(x) 88(x)
|
||||||
|
#define CAA(x) 8(x)
|
||||||
|
#define EDCHPXV(x) 1016(x) // in the CAA
|
||||||
|
#define SAVSTACK_ASYNC(x) 336(x) // in the LCA
|
||||||
|
|
||||||
|
// SS_*, where x=SAVSTACK_ASYNC
|
||||||
|
#define SS_LE(x) 0(x)
|
||||||
|
#define SS_GO(x) 8(x)
|
||||||
|
#define SS_ERRNO(x) 16(x)
|
||||||
|
#define SS_ERRNOJR(x) 20(x)
|
||||||
|
|
||||||
|
#define LE_CALL BYTE $0x0D; BYTE $0x76; // BL R7, R6
|
||||||
|
|
||||||
|
TEXT ·clearErrno(SB),NOSPLIT,$0-0
|
||||||
|
BL addrerrno<>(SB)
|
||||||
|
MOVD $0, 0(R3)
|
||||||
|
RET
|
||||||
|
|
||||||
|
// Returns the address of errno in R3.
|
||||||
|
TEXT addrerrno<>(SB),NOSPLIT|NOFRAME,$0-0
|
||||||
|
// Get library control area (LCA).
|
||||||
|
MOVW PSALAA, R8
|
||||||
|
MOVD LCA64(R8), R8
|
||||||
|
|
||||||
|
// Get __errno FuncDesc.
|
||||||
|
MOVD CAA(R8), R9
|
||||||
|
MOVD EDCHPXV(R9), R9
|
||||||
|
ADD $(0x156*16), R9
|
||||||
|
LMG 0(R9), R5, R6
|
||||||
|
|
||||||
|
// Switch to saved LE stack.
|
||||||
|
MOVD SAVSTACK_ASYNC(R8), R9
|
||||||
|
MOVD 0(R9), R4
|
||||||
|
MOVD $0, 0(R9)
|
||||||
|
|
||||||
|
// Call __errno function.
|
||||||
|
LE_CALL
|
||||||
|
NOPH
|
||||||
|
|
||||||
|
// Switch back to Go stack.
|
||||||
|
XOR R0, R0 // Restore R0 to $0.
|
||||||
|
MOVD R4, 0(R9) // Save stack pointer.
|
||||||
|
RET
|
||||||
|
|
||||||
|
TEXT ·syscall_syscall(SB),NOSPLIT,$0-56
|
||||||
|
BL runtime·entersyscall(SB)
|
||||||
|
MOVD a1+8(FP), R1
|
||||||
|
MOVD a2+16(FP), R2
|
||||||
|
MOVD a3+24(FP), R3
|
||||||
|
|
||||||
|
// Get library control area (LCA).
|
||||||
|
MOVW PSALAA, R8
|
||||||
|
MOVD LCA64(R8), R8
|
||||||
|
|
||||||
|
// Get function.
|
||||||
|
MOVD CAA(R8), R9
|
||||||
|
MOVD EDCHPXV(R9), R9
|
||||||
|
MOVD trap+0(FP), R5
|
||||||
|
SLD $4, R5
|
||||||
|
ADD R5, R9
|
||||||
|
LMG 0(R9), R5, R6
|
||||||
|
|
||||||
|
// Restore LE stack.
|
||||||
|
MOVD SAVSTACK_ASYNC(R8), R9
|
||||||
|
MOVD 0(R9), R4
|
||||||
|
MOVD $0, 0(R9)
|
||||||
|
|
||||||
|
// Call function.
|
||||||
|
LE_CALL
|
||||||
|
NOPH
|
||||||
|
XOR R0, R0 // Restore R0 to $0.
|
||||||
|
MOVD R4, 0(R9) // Save stack pointer.
|
||||||
|
|
||||||
|
MOVD R3, r1+32(FP)
|
||||||
|
MOVD R0, r2+40(FP)
|
||||||
|
MOVD R0, err+48(FP)
|
||||||
|
MOVW R3, R4
|
||||||
|
CMP R4, $-1
|
||||||
|
BNE done
|
||||||
|
BL addrerrno<>(SB)
|
||||||
|
MOVWZ 0(R3), R3
|
||||||
|
MOVD R3, err+48(FP)
|
||||||
|
done:
|
||||||
|
BL runtime·exitsyscall(SB)
|
||||||
|
RET
|
||||||
|
|
||||||
|
TEXT ·syscall_rawsyscall(SB),NOSPLIT,$0-56
|
||||||
|
MOVD a1+8(FP), R1
|
||||||
|
MOVD a2+16(FP), R2
|
||||||
|
MOVD a3+24(FP), R3
|
||||||
|
|
||||||
|
// Get library control area (LCA).
|
||||||
|
MOVW PSALAA, R8
|
||||||
|
MOVD LCA64(R8), R8
|
||||||
|
|
||||||
|
// Get function.
|
||||||
|
MOVD CAA(R8), R9
|
||||||
|
MOVD EDCHPXV(R9), R9
|
||||||
|
MOVD trap+0(FP), R5
|
||||||
|
SLD $4, R5
|
||||||
|
ADD R5, R9
|
||||||
|
LMG 0(R9), R5, R6
|
||||||
|
|
||||||
|
// Restore LE stack.
|
||||||
|
MOVD SAVSTACK_ASYNC(R8), R9
|
||||||
|
MOVD 0(R9), R4
|
||||||
|
MOVD $0, 0(R9)
|
||||||
|
|
||||||
|
// Call function.
|
||||||
|
LE_CALL
|
||||||
|
NOPH
|
||||||
|
XOR R0, R0 // Restore R0 to $0.
|
||||||
|
MOVD R4, 0(R9) // Save stack pointer.
|
||||||
|
|
||||||
|
MOVD R3, r1+32(FP)
|
||||||
|
MOVD R0, r2+40(FP)
|
||||||
|
MOVD R0, err+48(FP)
|
||||||
|
MOVW R3, R4
|
||||||
|
CMP R4, $-1
|
||||||
|
BNE done
|
||||||
|
BL addrerrno<>(SB)
|
||||||
|
MOVWZ 0(R3), R3
|
||||||
|
MOVD R3, err+48(FP)
|
||||||
|
done:
|
||||||
|
RET
|
||||||
|
|
||||||
|
TEXT ·syscall_syscall6(SB),NOSPLIT,$0-80
|
||||||
|
BL runtime·entersyscall(SB)
|
||||||
|
MOVD a1+8(FP), R1
|
||||||
|
MOVD a2+16(FP), R2
|
||||||
|
MOVD a3+24(FP), R3
|
||||||
|
|
||||||
|
// Get library control area (LCA).
|
||||||
|
MOVW PSALAA, R8
|
||||||
|
MOVD LCA64(R8), R8
|
||||||
|
|
||||||
|
// Get function.
|
||||||
|
MOVD CAA(R8), R9
|
||||||
|
MOVD EDCHPXV(R9), R9
|
||||||
|
MOVD trap+0(FP), R5
|
||||||
|
SLD $4, R5
|
||||||
|
ADD R5, R9
|
||||||
|
LMG 0(R9), R5, R6
|
||||||
|
|
||||||
|
// Restore LE stack.
|
||||||
|
MOVD SAVSTACK_ASYNC(R8), R9
|
||||||
|
MOVD 0(R9), R4
|
||||||
|
MOVD $0, 0(R9)
|
||||||
|
|
||||||
|
// Fill in parameter list.
|
||||||
|
MOVD a4+32(FP), R12
|
||||||
|
MOVD R12, (2176+24)(R4)
|
||||||
|
MOVD a5+40(FP), R12
|
||||||
|
MOVD R12, (2176+32)(R4)
|
||||||
|
MOVD a6+48(FP), R12
|
||||||
|
MOVD R12, (2176+40)(R4)
|
||||||
|
|
||||||
|
// Call function.
|
||||||
|
LE_CALL
|
||||||
|
NOPH
|
||||||
|
XOR R0, R0 // Restore R0 to $0.
|
||||||
|
MOVD R4, 0(R9) // Save stack pointer.
|
||||||
|
|
||||||
|
MOVD R3, r1+56(FP)
|
||||||
|
MOVD R0, r2+64(FP)
|
||||||
|
MOVD R0, err+72(FP)
|
||||||
|
MOVW R3, R4
|
||||||
|
CMP R4, $-1
|
||||||
|
BNE done
|
||||||
|
BL addrerrno<>(SB)
|
||||||
|
MOVWZ 0(R3), R3
|
||||||
|
MOVD R3, err+72(FP)
|
||||||
|
done:
|
||||||
|
BL runtime·exitsyscall(SB)
|
||||||
|
RET
|
||||||
|
|
||||||
|
TEXT ·syscall_rawsyscall6(SB),NOSPLIT,$0-80
|
||||||
|
MOVD a1+8(FP), R1
|
||||||
|
MOVD a2+16(FP), R2
|
||||||
|
MOVD a3+24(FP), R3
|
||||||
|
|
||||||
|
// Get library control area (LCA).
|
||||||
|
MOVW PSALAA, R8
|
||||||
|
MOVD LCA64(R8), R8
|
||||||
|
|
||||||
|
// Get function.
|
||||||
|
MOVD CAA(R8), R9
|
||||||
|
MOVD EDCHPXV(R9), R9
|
||||||
|
MOVD trap+0(FP), R5
|
||||||
|
SLD $4, R5
|
||||||
|
ADD R5, R9
|
||||||
|
LMG 0(R9), R5, R6
|
||||||
|
|
||||||
|
// Restore LE stack.
|
||||||
|
MOVD SAVSTACK_ASYNC(R8), R9
|
||||||
|
MOVD 0(R9), R4
|
||||||
|
MOVD $0, 0(R9)
|
||||||
|
|
||||||
|
// Fill in parameter list.
|
||||||
|
MOVD a4+32(FP), R12
|
||||||
|
MOVD R12, (2176+24)(R4)
|
||||||
|
MOVD a5+40(FP), R12
|
||||||
|
MOVD R12, (2176+32)(R4)
|
||||||
|
MOVD a6+48(FP), R12
|
||||||
|
MOVD R12, (2176+40)(R4)
|
||||||
|
|
||||||
|
// Call function.
|
||||||
|
LE_CALL
|
||||||
|
NOPH
|
||||||
|
XOR R0, R0 // Restore R0 to $0.
|
||||||
|
MOVD R4, 0(R9) // Save stack pointer.
|
||||||
|
|
||||||
|
MOVD R3, r1+56(FP)
|
||||||
|
MOVD R0, r2+64(FP)
|
||||||
|
MOVD R0, err+72(FP)
|
||||||
|
MOVW R3, R4
|
||||||
|
CMP R4, $-1
|
||||||
|
BNE done
|
||||||
|
BL ·rrno<>(SB)
|
||||||
|
MOVWZ 0(R3), R3
|
||||||
|
MOVD R3, err+72(FP)
|
||||||
|
done:
|
||||||
|
RET
|
||||||
|
|
||||||
|
TEXT ·syscall_syscall9(SB),NOSPLIT,$0
|
||||||
|
BL runtime·entersyscall(SB)
|
||||||
|
MOVD a1+8(FP), R1
|
||||||
|
MOVD a2+16(FP), R2
|
||||||
|
MOVD a3+24(FP), R3
|
||||||
|
|
||||||
|
// Get library control area (LCA).
|
||||||
|
MOVW PSALAA, R8
|
||||||
|
MOVD LCA64(R8), R8
|
||||||
|
|
||||||
|
// Get function.
|
||||||
|
MOVD CAA(R8), R9
|
||||||
|
MOVD EDCHPXV(R9), R9
|
||||||
|
MOVD trap+0(FP), R5
|
||||||
|
SLD $4, R5
|
||||||
|
ADD R5, R9
|
||||||
|
LMG 0(R9), R5, R6
|
||||||
|
|
||||||
|
// Restore LE stack.
|
||||||
|
MOVD SAVSTACK_ASYNC(R8), R9
|
||||||
|
MOVD 0(R9), R4
|
||||||
|
MOVD $0, 0(R9)
|
||||||
|
|
||||||
|
// Fill in parameter list.
|
||||||
|
MOVD a4+32(FP), R12
|
||||||
|
MOVD R12, (2176+24)(R4)
|
||||||
|
MOVD a5+40(FP), R12
|
||||||
|
MOVD R12, (2176+32)(R4)
|
||||||
|
MOVD a6+48(FP), R12
|
||||||
|
MOVD R12, (2176+40)(R4)
|
||||||
|
MOVD a7+56(FP), R12
|
||||||
|
MOVD R12, (2176+48)(R4)
|
||||||
|
MOVD a8+64(FP), R12
|
||||||
|
MOVD R12, (2176+56)(R4)
|
||||||
|
MOVD a9+72(FP), R12
|
||||||
|
MOVD R12, (2176+64)(R4)
|
||||||
|
|
||||||
|
// Call function.
|
||||||
|
LE_CALL
|
||||||
|
NOPH
|
||||||
|
XOR R0, R0 // Restore R0 to $0.
|
||||||
|
MOVD R4, 0(R9) // Save stack pointer.
|
||||||
|
|
||||||
|
MOVD R3, r1+80(FP)
|
||||||
|
MOVD R0, r2+88(FP)
|
||||||
|
MOVD R0, err+96(FP)
|
||||||
|
MOVW R3, R4
|
||||||
|
CMP R4, $-1
|
||||||
|
BNE done
|
||||||
|
BL addrerrno<>(SB)
|
||||||
|
MOVWZ 0(R3), R3
|
||||||
|
MOVD R3, err+96(FP)
|
||||||
|
done:
|
||||||
|
BL runtime·exitsyscall(SB)
|
||||||
|
RET
|
||||||
|
|
||||||
|
TEXT ·syscall_rawsyscall9(SB),NOSPLIT,$0
|
||||||
|
MOVD a1+8(FP), R1
|
||||||
|
MOVD a2+16(FP), R2
|
||||||
|
MOVD a3+24(FP), R3
|
||||||
|
|
||||||
|
// Get library control area (LCA).
|
||||||
|
MOVW PSALAA, R8
|
||||||
|
MOVD LCA64(R8), R8
|
||||||
|
|
||||||
|
// Get function.
|
||||||
|
MOVD CAA(R8), R9
|
||||||
|
MOVD EDCHPXV(R9), R9
|
||||||
|
MOVD trap+0(FP), R5
|
||||||
|
SLD $4, R5
|
||||||
|
ADD R5, R9
|
||||||
|
LMG 0(R9), R5, R6
|
||||||
|
|
||||||
|
// Restore LE stack.
|
||||||
|
MOVD SAVSTACK_ASYNC(R8), R9
|
||||||
|
MOVD 0(R9), R4
|
||||||
|
MOVD $0, 0(R9)
|
||||||
|
|
||||||
|
// Fill in parameter list.
|
||||||
|
MOVD a4+32(FP), R12
|
||||||
|
MOVD R12, (2176+24)(R4)
|
||||||
|
MOVD a5+40(FP), R12
|
||||||
|
MOVD R12, (2176+32)(R4)
|
||||||
|
MOVD a6+48(FP), R12
|
||||||
|
MOVD R12, (2176+40)(R4)
|
||||||
|
MOVD a7+56(FP), R12
|
||||||
|
MOVD R12, (2176+48)(R4)
|
||||||
|
MOVD a8+64(FP), R12
|
||||||
|
MOVD R12, (2176+56)(R4)
|
||||||
|
MOVD a9+72(FP), R12
|
||||||
|
MOVD R12, (2176+64)(R4)
|
||||||
|
|
||||||
|
// Call function.
|
||||||
|
LE_CALL
|
||||||
|
NOPH
|
||||||
|
XOR R0, R0 // Restore R0 to $0.
|
||||||
|
MOVD R4, 0(R9) // Save stack pointer.
|
||||||
|
|
||||||
|
MOVD R3, r1+80(FP)
|
||||||
|
MOVD R0, r2+88(FP)
|
||||||
|
MOVD R0, err+96(FP)
|
||||||
|
MOVW R3, R4
|
||||||
|
CMP R4, $-1
|
||||||
|
BNE done
|
||||||
|
BL addrerrno<>(SB)
|
||||||
|
MOVWZ 0(R3), R3
|
||||||
|
MOVD R3, err+96(FP)
|
||||||
|
done:
|
||||||
|
RET
|
||||||
|
|
||||||
|
// func svcCall(fnptr unsafe.Pointer, argv *unsafe.Pointer, dsa *uint64)
|
||||||
|
TEXT ·svcCall(SB),NOSPLIT,$0
|
||||||
|
BL runtime·save_g(SB) // Save g and stack pointer
|
||||||
|
MOVW PSALAA, R8
|
||||||
|
MOVD LCA64(R8), R8
|
||||||
|
MOVD SAVSTACK_ASYNC(R8), R9
|
||||||
|
MOVD R15, 0(R9)
|
||||||
|
|
||||||
|
MOVD argv+8(FP), R1 // Move function arguments into registers
|
||||||
|
MOVD dsa+16(FP), g
|
||||||
|
MOVD fnptr+0(FP), R15
|
||||||
|
|
||||||
|
BYTE $0x0D // Branch to function
|
||||||
|
BYTE $0xEF
|
||||||
|
|
||||||
|
BL runtime·load_g(SB) // Restore g and stack pointer
|
||||||
|
MOVW PSALAA, R8
|
||||||
|
MOVD LCA64(R8), R8
|
||||||
|
MOVD SAVSTACK_ASYNC(R8), R9
|
||||||
|
MOVD 0(R9), R15
|
||||||
|
|
||||||
|
RET
|
||||||
|
|
||||||
|
// func svcLoad(name *byte) unsafe.Pointer
|
||||||
|
TEXT ·svcLoad(SB),NOSPLIT,$0
|
||||||
|
MOVD R15, R2 // Save go stack pointer
|
||||||
|
MOVD name+0(FP), R0 // Move SVC args into registers
|
||||||
|
MOVD $0x80000000, R1
|
||||||
|
MOVD $0, R15
|
||||||
|
BYTE $0x0A // SVC 08 LOAD
|
||||||
|
BYTE $0x08
|
||||||
|
MOVW R15, R3 // Save return code from SVC
|
||||||
|
MOVD R2, R15 // Restore go stack pointer
|
||||||
|
CMP R3, $0 // Check SVC return code
|
||||||
|
BNE error
|
||||||
|
|
||||||
|
MOVD $-2, R3 // Reset last bit of entry point to zero
|
||||||
|
AND R0, R3
|
||||||
|
MOVD R3, addr+8(FP) // Return entry point returned by SVC
|
||||||
|
CMP R0, R3 // Check if last bit of entry point was set
|
||||||
|
BNE done
|
||||||
|
|
||||||
|
MOVD R15, R2 // Save go stack pointer
|
||||||
|
MOVD $0, R15 // Move SVC args into registers (entry point still in r0 from SVC 08)
|
||||||
|
BYTE $0x0A // SVC 09 DELETE
|
||||||
|
BYTE $0x09
|
||||||
|
MOVD R2, R15 // Restore go stack pointer
|
||||||
|
|
||||||
|
error:
|
||||||
|
MOVD $0, addr+8(FP) // Return 0 on failure
|
||||||
|
done:
|
||||||
|
XOR R0, R0 // Reset r0 to 0
|
||||||
|
RET
|
||||||
|
|
||||||
|
// func svcUnload(name *byte, fnptr unsafe.Pointer) int64
|
||||||
|
TEXT ·svcUnload(SB),NOSPLIT,$0
|
||||||
|
MOVD R15, R2 // Save go stack pointer
|
||||||
|
MOVD name+0(FP), R0 // Move SVC args into registers
|
||||||
|
MOVD addr+8(FP), R15
|
||||||
|
BYTE $0x0A // SVC 09
|
||||||
|
BYTE $0x09
|
||||||
|
XOR R0, R0 // Reset r0 to 0
|
||||||
|
MOVD R15, R1 // Save SVC return code
|
||||||
|
MOVD R2, R15 // Restore go stack pointer
|
||||||
|
MOVD R1, rc+0(FP) // Return SVC return code
|
||||||
|
RET
|
||||||
|
|
||||||
|
// func gettid() uint64
|
||||||
|
TEXT ·gettid(SB), NOSPLIT, $0
|
||||||
|
// Get library control area (LCA).
|
||||||
|
MOVW PSALAA, R8
|
||||||
|
MOVD LCA64(R8), R8
|
||||||
|
|
||||||
|
// Get CEECAATHDID
|
||||||
|
MOVD CAA(R8), R9
|
||||||
|
MOVD 0x3D0(R9), R9
|
||||||
|
MOVD R9, ret+0(FP)
|
||||||
|
|
||||||
|
RET
|
||||||
29
vendor/golang.org/x/sys/unix/dev_zos.go
generated
vendored
Normal file
29
vendor/golang.org/x/sys/unix/dev_zos.go
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
// Copyright 2020 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build zos && s390x
|
||||||
|
// +build zos,s390x
|
||||||
|
|
||||||
|
// Functions to access/create device major and minor numbers matching the
|
||||||
|
// encoding used by z/OS.
|
||||||
|
//
|
||||||
|
// The information below is extracted and adapted from <sys/stat.h> macros.
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
// Major returns the major component of a z/OS device number.
|
||||||
|
func Major(dev uint64) uint32 {
|
||||||
|
return uint32((dev >> 16) & 0x0000FFFF)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Minor returns the minor component of a z/OS device number.
|
||||||
|
func Minor(dev uint64) uint32 {
|
||||||
|
return uint32(dev & 0x0000FFFF)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mkdev returns a z/OS device number generated from the given major and minor
|
||||||
|
// components.
|
||||||
|
func Mkdev(major, minor uint32) uint64 {
|
||||||
|
return (uint64(major) << 16) | uint64(minor)
|
||||||
|
}
|
||||||
221
vendor/golang.org/x/sys/unix/epoll_zos.go
generated
vendored
Normal file
221
vendor/golang.org/x/sys/unix/epoll_zos.go
generated
vendored
Normal file
@@ -0,0 +1,221 @@
|
|||||||
|
// Copyright 2020 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build zos && s390x
|
||||||
|
// +build zos,s390x
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
// This file simulates epoll on z/OS using poll.
|
||||||
|
|
||||||
|
// Analogous to epoll_event on Linux.
|
||||||
|
// TODO(neeilan): Pad is because the Linux kernel expects a 96-bit struct. We never pass this to the kernel; remove?
|
||||||
|
type EpollEvent struct {
|
||||||
|
Events uint32
|
||||||
|
Fd int32
|
||||||
|
Pad int32
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
EPOLLERR = 0x8
|
||||||
|
EPOLLHUP = 0x10
|
||||||
|
EPOLLIN = 0x1
|
||||||
|
EPOLLMSG = 0x400
|
||||||
|
EPOLLOUT = 0x4
|
||||||
|
EPOLLPRI = 0x2
|
||||||
|
EPOLLRDBAND = 0x80
|
||||||
|
EPOLLRDNORM = 0x40
|
||||||
|
EPOLLWRBAND = 0x200
|
||||||
|
EPOLLWRNORM = 0x100
|
||||||
|
EPOLL_CTL_ADD = 0x1
|
||||||
|
EPOLL_CTL_DEL = 0x2
|
||||||
|
EPOLL_CTL_MOD = 0x3
|
||||||
|
// The following constants are part of the epoll API, but represent
|
||||||
|
// currently unsupported functionality on z/OS.
|
||||||
|
// EPOLL_CLOEXEC = 0x80000
|
||||||
|
// EPOLLET = 0x80000000
|
||||||
|
// EPOLLONESHOT = 0x40000000
|
||||||
|
// EPOLLRDHUP = 0x2000 // Typically used with edge-triggered notis
|
||||||
|
// EPOLLEXCLUSIVE = 0x10000000 // Exclusive wake-up mode
|
||||||
|
// EPOLLWAKEUP = 0x20000000 // Relies on Linux's BLOCK_SUSPEND capability
|
||||||
|
)
|
||||||
|
|
||||||
|
// TODO(neeilan): We can eliminate these epToPoll / pToEpoll calls by using identical mask values for POLL/EPOLL
|
||||||
|
// constants where possible The lower 16 bits of epoll events (uint32) can fit any system poll event (int16).
|
||||||
|
|
||||||
|
// epToPollEvt converts epoll event field to poll equivalent.
|
||||||
|
// In epoll, Events is a 32-bit field, while poll uses 16 bits.
|
||||||
|
func epToPollEvt(events uint32) int16 {
|
||||||
|
var ep2p = map[uint32]int16{
|
||||||
|
EPOLLIN: POLLIN,
|
||||||
|
EPOLLOUT: POLLOUT,
|
||||||
|
EPOLLHUP: POLLHUP,
|
||||||
|
EPOLLPRI: POLLPRI,
|
||||||
|
EPOLLERR: POLLERR,
|
||||||
|
}
|
||||||
|
|
||||||
|
var pollEvts int16 = 0
|
||||||
|
for epEvt, pEvt := range ep2p {
|
||||||
|
if (events & epEvt) != 0 {
|
||||||
|
pollEvts |= pEvt
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return pollEvts
|
||||||
|
}
|
||||||
|
|
||||||
|
// pToEpollEvt converts 16 bit poll event bitfields to 32-bit epoll event fields.
|
||||||
|
func pToEpollEvt(revents int16) uint32 {
|
||||||
|
var p2ep = map[int16]uint32{
|
||||||
|
POLLIN: EPOLLIN,
|
||||||
|
POLLOUT: EPOLLOUT,
|
||||||
|
POLLHUP: EPOLLHUP,
|
||||||
|
POLLPRI: EPOLLPRI,
|
||||||
|
POLLERR: EPOLLERR,
|
||||||
|
}
|
||||||
|
|
||||||
|
var epollEvts uint32 = 0
|
||||||
|
for pEvt, epEvt := range p2ep {
|
||||||
|
if (revents & pEvt) != 0 {
|
||||||
|
epollEvts |= epEvt
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return epollEvts
|
||||||
|
}
|
||||||
|
|
||||||
|
// Per-process epoll implementation.
|
||||||
|
type epollImpl struct {
|
||||||
|
mu sync.Mutex
|
||||||
|
epfd2ep map[int]*eventPoll
|
||||||
|
nextEpfd int
|
||||||
|
}
|
||||||
|
|
||||||
|
// eventPoll holds a set of file descriptors being watched by the process. A process can have multiple epoll instances.
|
||||||
|
// On Linux, this is an in-kernel data structure accessed through a fd.
|
||||||
|
type eventPoll struct {
|
||||||
|
mu sync.Mutex
|
||||||
|
fds map[int]*EpollEvent
|
||||||
|
}
|
||||||
|
|
||||||
|
// epoll impl for this process.
|
||||||
|
var impl epollImpl = epollImpl{
|
||||||
|
epfd2ep: make(map[int]*eventPoll),
|
||||||
|
nextEpfd: 0,
|
||||||
|
}
|
||||||
|
|
||||||
|
func (e *epollImpl) epollcreate(size int) (epfd int, err error) {
|
||||||
|
e.mu.Lock()
|
||||||
|
defer e.mu.Unlock()
|
||||||
|
epfd = e.nextEpfd
|
||||||
|
e.nextEpfd++
|
||||||
|
|
||||||
|
e.epfd2ep[epfd] = &eventPoll{
|
||||||
|
fds: make(map[int]*EpollEvent),
|
||||||
|
}
|
||||||
|
return epfd, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (e *epollImpl) epollcreate1(flag int) (fd int, err error) {
|
||||||
|
return e.epollcreate(4)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (e *epollImpl) epollctl(epfd int, op int, fd int, event *EpollEvent) (err error) {
|
||||||
|
e.mu.Lock()
|
||||||
|
defer e.mu.Unlock()
|
||||||
|
|
||||||
|
ep, ok := e.epfd2ep[epfd]
|
||||||
|
if !ok {
|
||||||
|
|
||||||
|
return EBADF
|
||||||
|
}
|
||||||
|
|
||||||
|
switch op {
|
||||||
|
case EPOLL_CTL_ADD:
|
||||||
|
// TODO(neeilan): When we make epfds and fds disjoint, detect epoll
|
||||||
|
// loops here (instances watching each other) and return ELOOP.
|
||||||
|
if _, ok := ep.fds[fd]; ok {
|
||||||
|
return EEXIST
|
||||||
|
}
|
||||||
|
ep.fds[fd] = event
|
||||||
|
case EPOLL_CTL_MOD:
|
||||||
|
if _, ok := ep.fds[fd]; !ok {
|
||||||
|
return ENOENT
|
||||||
|
}
|
||||||
|
ep.fds[fd] = event
|
||||||
|
case EPOLL_CTL_DEL:
|
||||||
|
if _, ok := ep.fds[fd]; !ok {
|
||||||
|
return ENOENT
|
||||||
|
}
|
||||||
|
delete(ep.fds, fd)
|
||||||
|
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Must be called while holding ep.mu
|
||||||
|
func (ep *eventPoll) getFds() []int {
|
||||||
|
fds := make([]int, len(ep.fds))
|
||||||
|
for fd := range ep.fds {
|
||||||
|
fds = append(fds, fd)
|
||||||
|
}
|
||||||
|
return fds
|
||||||
|
}
|
||||||
|
|
||||||
|
func (e *epollImpl) epollwait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||||
|
e.mu.Lock() // in [rare] case of concurrent epollcreate + epollwait
|
||||||
|
ep, ok := e.epfd2ep[epfd]
|
||||||
|
|
||||||
|
if !ok {
|
||||||
|
e.mu.Unlock()
|
||||||
|
return 0, EBADF
|
||||||
|
}
|
||||||
|
|
||||||
|
pollfds := make([]PollFd, 4)
|
||||||
|
for fd, epollevt := range ep.fds {
|
||||||
|
pollfds = append(pollfds, PollFd{Fd: int32(fd), Events: epToPollEvt(epollevt.Events)})
|
||||||
|
}
|
||||||
|
e.mu.Unlock()
|
||||||
|
|
||||||
|
n, err = Poll(pollfds, msec)
|
||||||
|
if err != nil {
|
||||||
|
return n, err
|
||||||
|
}
|
||||||
|
|
||||||
|
i := 0
|
||||||
|
for _, pFd := range pollfds {
|
||||||
|
if pFd.Revents != 0 {
|
||||||
|
events[i] = EpollEvent{Fd: pFd.Fd, Events: pToEpollEvt(pFd.Revents)}
|
||||||
|
i++
|
||||||
|
}
|
||||||
|
|
||||||
|
if i == n {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return n, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func EpollCreate(size int) (fd int, err error) {
|
||||||
|
return impl.epollcreate(size)
|
||||||
|
}
|
||||||
|
|
||||||
|
func EpollCreate1(flag int) (fd int, err error) {
|
||||||
|
return impl.epollcreate1(flag)
|
||||||
|
}
|
||||||
|
|
||||||
|
func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) {
|
||||||
|
return impl.epollctl(epfd, op, fd, event)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Because EpollWait mutates events, the caller is expected to coordinate
|
||||||
|
// concurrent access if calling with the same epfd from multiple goroutines.
|
||||||
|
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||||
|
return impl.epollwait(epfd, events, msec)
|
||||||
|
}
|
||||||
164
vendor/golang.org/x/sys/unix/fstatfs_zos.go
generated
vendored
Normal file
164
vendor/golang.org/x/sys/unix/fstatfs_zos.go
generated
vendored
Normal file
@@ -0,0 +1,164 @@
|
|||||||
|
// Copyright 2020 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build zos && s390x
|
||||||
|
// +build zos,s390x
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
// This file simulates fstatfs on z/OS using fstatvfs and w_getmntent.
|
||||||
|
|
||||||
|
func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
||||||
|
var stat_v Statvfs_t
|
||||||
|
err = Fstatvfs(fd, &stat_v)
|
||||||
|
if err == nil {
|
||||||
|
// populate stat
|
||||||
|
stat.Type = 0
|
||||||
|
stat.Bsize = stat_v.Bsize
|
||||||
|
stat.Blocks = stat_v.Blocks
|
||||||
|
stat.Bfree = stat_v.Bfree
|
||||||
|
stat.Bavail = stat_v.Bavail
|
||||||
|
stat.Files = stat_v.Files
|
||||||
|
stat.Ffree = stat_v.Ffree
|
||||||
|
stat.Fsid = stat_v.Fsid
|
||||||
|
stat.Namelen = stat_v.Namemax
|
||||||
|
stat.Frsize = stat_v.Frsize
|
||||||
|
stat.Flags = stat_v.Flag
|
||||||
|
for passn := 0; passn < 5; passn++ {
|
||||||
|
switch passn {
|
||||||
|
case 0:
|
||||||
|
err = tryGetmntent64(stat)
|
||||||
|
break
|
||||||
|
case 1:
|
||||||
|
err = tryGetmntent128(stat)
|
||||||
|
break
|
||||||
|
case 2:
|
||||||
|
err = tryGetmntent256(stat)
|
||||||
|
break
|
||||||
|
case 3:
|
||||||
|
err = tryGetmntent512(stat)
|
||||||
|
break
|
||||||
|
case 4:
|
||||||
|
err = tryGetmntent1024(stat)
|
||||||
|
break
|
||||||
|
default:
|
||||||
|
break
|
||||||
|
}
|
||||||
|
//proceed to return if: err is nil (found), err is nonnil but not ERANGE (another error occurred)
|
||||||
|
if err == nil || err != nil && err != ERANGE {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
func tryGetmntent64(stat *Statfs_t) (err error) {
|
||||||
|
var mnt_ent_buffer struct {
|
||||||
|
header W_Mnth
|
||||||
|
filesys_info [64]W_Mntent
|
||||||
|
}
|
||||||
|
var buffer_size int = int(unsafe.Sizeof(mnt_ent_buffer))
|
||||||
|
fs_count, err := W_Getmntent((*byte)(unsafe.Pointer(&mnt_ent_buffer)), buffer_size)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
err = ERANGE //return ERANGE if no match is found in this batch
|
||||||
|
for i := 0; i < fs_count; i++ {
|
||||||
|
if stat.Fsid == uint64(mnt_ent_buffer.filesys_info[i].Dev) {
|
||||||
|
stat.Type = uint32(mnt_ent_buffer.filesys_info[i].Fstname[0])
|
||||||
|
err = nil
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
func tryGetmntent128(stat *Statfs_t) (err error) {
|
||||||
|
var mnt_ent_buffer struct {
|
||||||
|
header W_Mnth
|
||||||
|
filesys_info [128]W_Mntent
|
||||||
|
}
|
||||||
|
var buffer_size int = int(unsafe.Sizeof(mnt_ent_buffer))
|
||||||
|
fs_count, err := W_Getmntent((*byte)(unsafe.Pointer(&mnt_ent_buffer)), buffer_size)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
err = ERANGE //return ERANGE if no match is found in this batch
|
||||||
|
for i := 0; i < fs_count; i++ {
|
||||||
|
if stat.Fsid == uint64(mnt_ent_buffer.filesys_info[i].Dev) {
|
||||||
|
stat.Type = uint32(mnt_ent_buffer.filesys_info[i].Fstname[0])
|
||||||
|
err = nil
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
func tryGetmntent256(stat *Statfs_t) (err error) {
|
||||||
|
var mnt_ent_buffer struct {
|
||||||
|
header W_Mnth
|
||||||
|
filesys_info [256]W_Mntent
|
||||||
|
}
|
||||||
|
var buffer_size int = int(unsafe.Sizeof(mnt_ent_buffer))
|
||||||
|
fs_count, err := W_Getmntent((*byte)(unsafe.Pointer(&mnt_ent_buffer)), buffer_size)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
err = ERANGE //return ERANGE if no match is found in this batch
|
||||||
|
for i := 0; i < fs_count; i++ {
|
||||||
|
if stat.Fsid == uint64(mnt_ent_buffer.filesys_info[i].Dev) {
|
||||||
|
stat.Type = uint32(mnt_ent_buffer.filesys_info[i].Fstname[0])
|
||||||
|
err = nil
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
func tryGetmntent512(stat *Statfs_t) (err error) {
|
||||||
|
var mnt_ent_buffer struct {
|
||||||
|
header W_Mnth
|
||||||
|
filesys_info [512]W_Mntent
|
||||||
|
}
|
||||||
|
var buffer_size int = int(unsafe.Sizeof(mnt_ent_buffer))
|
||||||
|
fs_count, err := W_Getmntent((*byte)(unsafe.Pointer(&mnt_ent_buffer)), buffer_size)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
err = ERANGE //return ERANGE if no match is found in this batch
|
||||||
|
for i := 0; i < fs_count; i++ {
|
||||||
|
if stat.Fsid == uint64(mnt_ent_buffer.filesys_info[i].Dev) {
|
||||||
|
stat.Type = uint32(mnt_ent_buffer.filesys_info[i].Fstname[0])
|
||||||
|
err = nil
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
func tryGetmntent1024(stat *Statfs_t) (err error) {
|
||||||
|
var mnt_ent_buffer struct {
|
||||||
|
header W_Mnth
|
||||||
|
filesys_info [1024]W_Mntent
|
||||||
|
}
|
||||||
|
var buffer_size int = int(unsafe.Sizeof(mnt_ent_buffer))
|
||||||
|
fs_count, err := W_Getmntent((*byte)(unsafe.Pointer(&mnt_ent_buffer)), buffer_size)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
err = ERANGE //return ERANGE if no match is found in this batch
|
||||||
|
for i := 0; i < fs_count; i++ {
|
||||||
|
if stat.Fsid == uint64(mnt_ent_buffer.filesys_info[i].Dev) {
|
||||||
|
stat.Type = uint32(mnt_ent_buffer.filesys_info[i].Fstname[0])
|
||||||
|
err = nil
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return err
|
||||||
|
}
|
||||||
196
vendor/golang.org/x/sys/unix/ioctl_linux.go
generated
vendored
Normal file
196
vendor/golang.org/x/sys/unix/ioctl_linux.go
generated
vendored
Normal file
@@ -0,0 +1,196 @@
|
|||||||
|
// Copyright 2021 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"runtime"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
// IoctlRetInt performs an ioctl operation specified by req on a device
|
||||||
|
// associated with opened file descriptor fd, and returns a non-negative
|
||||||
|
// integer that is returned by the ioctl syscall.
|
||||||
|
func IoctlRetInt(fd int, req uint) (int, error) {
|
||||||
|
ret, _, err := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), 0)
|
||||||
|
if err != 0 {
|
||||||
|
return 0, err
|
||||||
|
}
|
||||||
|
return int(ret), nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlGetUint32(fd int, req uint) (uint32, error) {
|
||||||
|
var value uint32
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlGetRTCTime(fd int) (*RTCTime, error) {
|
||||||
|
var value RTCTime
|
||||||
|
err := ioctl(fd, RTC_RD_TIME, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlSetRTCTime(fd int, value *RTCTime) error {
|
||||||
|
err := ioctl(fd, RTC_SET_TIME, uintptr(unsafe.Pointer(value)))
|
||||||
|
runtime.KeepAlive(value)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlGetRTCWkAlrm(fd int) (*RTCWkAlrm, error) {
|
||||||
|
var value RTCWkAlrm
|
||||||
|
err := ioctl(fd, RTC_WKALM_RD, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlSetRTCWkAlrm(fd int, value *RTCWkAlrm) error {
|
||||||
|
err := ioctl(fd, RTC_WKALM_SET, uintptr(unsafe.Pointer(value)))
|
||||||
|
runtime.KeepAlive(value)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
type ifreqEthtool struct {
|
||||||
|
name [IFNAMSIZ]byte
|
||||||
|
data unsafe.Pointer
|
||||||
|
}
|
||||||
|
|
||||||
|
// IoctlGetEthtoolDrvinfo fetches ethtool driver information for the network
|
||||||
|
// device specified by ifname.
|
||||||
|
func IoctlGetEthtoolDrvinfo(fd int, ifname string) (*EthtoolDrvinfo, error) {
|
||||||
|
// Leave room for terminating NULL byte.
|
||||||
|
if len(ifname) >= IFNAMSIZ {
|
||||||
|
return nil, EINVAL
|
||||||
|
}
|
||||||
|
|
||||||
|
value := EthtoolDrvinfo{
|
||||||
|
Cmd: ETHTOOL_GDRVINFO,
|
||||||
|
}
|
||||||
|
ifreq := ifreqEthtool{
|
||||||
|
data: unsafe.Pointer(&value),
|
||||||
|
}
|
||||||
|
copy(ifreq.name[:], ifname)
|
||||||
|
err := ioctl(fd, SIOCETHTOOL, uintptr(unsafe.Pointer(&ifreq)))
|
||||||
|
runtime.KeepAlive(ifreq)
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// IoctlGetWatchdogInfo fetches information about a watchdog device from the
|
||||||
|
// Linux watchdog API. For more information, see:
|
||||||
|
// https://www.kernel.org/doc/html/latest/watchdog/watchdog-api.html.
|
||||||
|
func IoctlGetWatchdogInfo(fd int) (*WatchdogInfo, error) {
|
||||||
|
var value WatchdogInfo
|
||||||
|
err := ioctl(fd, WDIOC_GETSUPPORT, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// IoctlWatchdogKeepalive issues a keepalive ioctl to a watchdog device. For
|
||||||
|
// more information, see:
|
||||||
|
// https://www.kernel.org/doc/html/latest/watchdog/watchdog-api.html.
|
||||||
|
func IoctlWatchdogKeepalive(fd int) error {
|
||||||
|
return ioctl(fd, WDIOC_KEEPALIVE, 0)
|
||||||
|
}
|
||||||
|
|
||||||
|
// IoctlFileCloneRange performs an FICLONERANGE ioctl operation to clone the
|
||||||
|
// range of data conveyed in value to the file associated with the file
|
||||||
|
// descriptor destFd. See the ioctl_ficlonerange(2) man page for details.
|
||||||
|
func IoctlFileCloneRange(destFd int, value *FileCloneRange) error {
|
||||||
|
err := ioctl(destFd, FICLONERANGE, uintptr(unsafe.Pointer(value)))
|
||||||
|
runtime.KeepAlive(value)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
// IoctlFileClone performs an FICLONE ioctl operation to clone the entire file
|
||||||
|
// associated with the file description srcFd to the file associated with the
|
||||||
|
// file descriptor destFd. See the ioctl_ficlone(2) man page for details.
|
||||||
|
func IoctlFileClone(destFd, srcFd int) error {
|
||||||
|
return ioctl(destFd, FICLONE, uintptr(srcFd))
|
||||||
|
}
|
||||||
|
|
||||||
|
type FileDedupeRange struct {
|
||||||
|
Src_offset uint64
|
||||||
|
Src_length uint64
|
||||||
|
Reserved1 uint16
|
||||||
|
Reserved2 uint32
|
||||||
|
Info []FileDedupeRangeInfo
|
||||||
|
}
|
||||||
|
|
||||||
|
type FileDedupeRangeInfo struct {
|
||||||
|
Dest_fd int64
|
||||||
|
Dest_offset uint64
|
||||||
|
Bytes_deduped uint64
|
||||||
|
Status int32
|
||||||
|
Reserved uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
// IoctlFileDedupeRange performs an FIDEDUPERANGE ioctl operation to share the
|
||||||
|
// range of data conveyed in value from the file associated with the file
|
||||||
|
// descriptor srcFd to the value.Info destinations. See the
|
||||||
|
// ioctl_fideduperange(2) man page for details.
|
||||||
|
func IoctlFileDedupeRange(srcFd int, value *FileDedupeRange) error {
|
||||||
|
buf := make([]byte, SizeofRawFileDedupeRange+
|
||||||
|
len(value.Info)*SizeofRawFileDedupeRangeInfo)
|
||||||
|
rawrange := (*RawFileDedupeRange)(unsafe.Pointer(&buf[0]))
|
||||||
|
rawrange.Src_offset = value.Src_offset
|
||||||
|
rawrange.Src_length = value.Src_length
|
||||||
|
rawrange.Dest_count = uint16(len(value.Info))
|
||||||
|
rawrange.Reserved1 = value.Reserved1
|
||||||
|
rawrange.Reserved2 = value.Reserved2
|
||||||
|
|
||||||
|
for i := range value.Info {
|
||||||
|
rawinfo := (*RawFileDedupeRangeInfo)(unsafe.Pointer(
|
||||||
|
uintptr(unsafe.Pointer(&buf[0])) + uintptr(SizeofRawFileDedupeRange) +
|
||||||
|
uintptr(i*SizeofRawFileDedupeRangeInfo)))
|
||||||
|
rawinfo.Dest_fd = value.Info[i].Dest_fd
|
||||||
|
rawinfo.Dest_offset = value.Info[i].Dest_offset
|
||||||
|
rawinfo.Bytes_deduped = value.Info[i].Bytes_deduped
|
||||||
|
rawinfo.Status = value.Info[i].Status
|
||||||
|
rawinfo.Reserved = value.Info[i].Reserved
|
||||||
|
}
|
||||||
|
|
||||||
|
err := ioctl(srcFd, FIDEDUPERANGE, uintptr(unsafe.Pointer(&buf[0])))
|
||||||
|
|
||||||
|
// Output
|
||||||
|
for i := range value.Info {
|
||||||
|
rawinfo := (*RawFileDedupeRangeInfo)(unsafe.Pointer(
|
||||||
|
uintptr(unsafe.Pointer(&buf[0])) + uintptr(SizeofRawFileDedupeRange) +
|
||||||
|
uintptr(i*SizeofRawFileDedupeRangeInfo)))
|
||||||
|
value.Info[i].Dest_fd = rawinfo.Dest_fd
|
||||||
|
value.Info[i].Dest_offset = rawinfo.Dest_offset
|
||||||
|
value.Info[i].Bytes_deduped = rawinfo.Bytes_deduped
|
||||||
|
value.Info[i].Status = rawinfo.Status
|
||||||
|
value.Info[i].Reserved = rawinfo.Reserved
|
||||||
|
}
|
||||||
|
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlHIDGetDesc(fd int, value *HIDRawReportDescriptor) error {
|
||||||
|
err := ioctl(fd, HIDIOCGRDESC, uintptr(unsafe.Pointer(value)))
|
||||||
|
runtime.KeepAlive(value)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlHIDGetRawInfo(fd int) (*HIDRawDevInfo, error) {
|
||||||
|
var value HIDRawDevInfo
|
||||||
|
err := ioctl(fd, HIDIOCGRAWINFO, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlHIDGetRawName(fd int) (string, error) {
|
||||||
|
var value [_HIDIOCGRAWNAME_LEN]byte
|
||||||
|
err := ioctl(fd, _HIDIOCGRAWNAME, uintptr(unsafe.Pointer(&value[0])))
|
||||||
|
return ByteSliceToString(value[:]), err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlHIDGetRawPhys(fd int) (string, error) {
|
||||||
|
var value [_HIDIOCGRAWPHYS_LEN]byte
|
||||||
|
err := ioctl(fd, _HIDIOCGRAWPHYS, uintptr(unsafe.Pointer(&value[0])))
|
||||||
|
return ByteSliceToString(value[:]), err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlHIDGetRawUniq(fd int) (string, error) {
|
||||||
|
var value [_HIDIOCGRAWUNIQ_LEN]byte
|
||||||
|
err := ioctl(fd, _HIDIOCGRAWUNIQ, uintptr(unsafe.Pointer(&value[0])))
|
||||||
|
return ByteSliceToString(value[:]), err
|
||||||
|
}
|
||||||
74
vendor/golang.org/x/sys/unix/ioctl_zos.go
generated
vendored
Normal file
74
vendor/golang.org/x/sys/unix/ioctl_zos.go
generated
vendored
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
// Copyright 2020 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build zos && s390x
|
||||||
|
// +build zos,s390x
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"runtime"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
// ioctl itself should not be exposed directly, but additional get/set
|
||||||
|
// functions for specific types are permissible.
|
||||||
|
|
||||||
|
// IoctlSetInt performs an ioctl operation which sets an integer value
|
||||||
|
// on fd, using the specified request number.
|
||||||
|
func IoctlSetInt(fd int, req uint, value int) error {
|
||||||
|
return ioctl(fd, req, uintptr(value))
|
||||||
|
}
|
||||||
|
|
||||||
|
// IoctlSetWinsize performs an ioctl on fd with a *Winsize argument.
|
||||||
|
//
|
||||||
|
// To change fd's window size, the req argument should be TIOCSWINSZ.
|
||||||
|
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||||
|
// TODO: if we get the chance, remove the req parameter and
|
||||||
|
// hardcode TIOCSWINSZ.
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
|
runtime.KeepAlive(value)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
// IoctlSetTermios performs an ioctl on fd with a *Termios.
|
||||||
|
//
|
||||||
|
// The req value is expected to be TCSETS, TCSETSW, or TCSETSF
|
||||||
|
func IoctlSetTermios(fd int, req uint, value *Termios) error {
|
||||||
|
if (req != TCSETS) && (req != TCSETSW) && (req != TCSETSF) {
|
||||||
|
return ENOSYS
|
||||||
|
}
|
||||||
|
err := Tcsetattr(fd, int(req), value)
|
||||||
|
runtime.KeepAlive(value)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
// IoctlGetInt performs an ioctl operation which gets an integer value
|
||||||
|
// from fd, using the specified request number.
|
||||||
|
//
|
||||||
|
// A few ioctl requests use the return value as an output parameter;
|
||||||
|
// for those, IoctlRetInt should be used instead of this function.
|
||||||
|
func IoctlGetInt(fd int, req uint) (int, error) {
|
||||||
|
var value int
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
||||||
|
var value Winsize
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// IoctlGetTermios performs an ioctl on fd with a *Termios.
|
||||||
|
//
|
||||||
|
// The req value is expected to be TCGETS
|
||||||
|
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||||
|
var value Termios
|
||||||
|
if req != TCGETS {
|
||||||
|
return &value, ENOSYS
|
||||||
|
}
|
||||||
|
err := Tcgetattr(fd, &value)
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
12
vendor/golang.org/x/sys/unix/ptrace_darwin.go
generated
vendored
Normal file
12
vendor/golang.org/x/sys/unix/ptrace_darwin.go
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
// Copyright 2020 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build darwin && !ios
|
||||||
|
// +build darwin,!ios
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
func ptrace(request int, pid int, addr uintptr, data uintptr) error {
|
||||||
|
return ptrace1(request, pid, addr, data)
|
||||||
|
}
|
||||||
12
vendor/golang.org/x/sys/unix/ptrace_ios.go
generated
vendored
Normal file
12
vendor/golang.org/x/sys/unix/ptrace_ios.go
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
// Copyright 2020 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build ios
|
||||||
|
// +build ios
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||||
|
return ENOTSUP
|
||||||
|
}
|
||||||
276
vendor/golang.org/x/sys/unix/syscall_linux_ppc.go
generated
vendored
Normal file
276
vendor/golang.org/x/sys/unix/syscall_linux_ppc.go
generated
vendored
Normal file
@@ -0,0 +1,276 @@
|
|||||||
|
// Copyright 2021 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build linux && ppc
|
||||||
|
// +build linux
|
||||||
|
// +build ppc
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"syscall"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
//sys dup2(oldfd int, newfd int) (err error)
|
||||||
|
//sysnb EpollCreate(size int) (fd int, err error)
|
||||||
|
//sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error)
|
||||||
|
//sys Fchown(fd int, uid int, gid int) (err error)
|
||||||
|
//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
|
||||||
|
//sys Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_FSTATAT64
|
||||||
|
//sys Ftruncate(fd int, length int64) (err error) = SYS_FTRUNCATE64
|
||||||
|
//sysnb Getegid() (egid int)
|
||||||
|
//sysnb Geteuid() (euid int)
|
||||||
|
//sysnb Getgid() (gid int)
|
||||||
|
//sysnb Getuid() (uid int)
|
||||||
|
//sysnb InotifyInit() (fd int, err error)
|
||||||
|
//sys Ioperm(from int, num int, on int) (err error)
|
||||||
|
//sys Iopl(level int) (err error)
|
||||||
|
//sys Lchown(path string, uid int, gid int) (err error)
|
||||||
|
//sys Listen(s int, n int) (err error)
|
||||||
|
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
||||||
|
//sys Pause() (err error)
|
||||||
|
//sys Pread(fd int, p []byte, offset int64) (n int, err error) = SYS_PREAD64
|
||||||
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error) = SYS_PWRITE64
|
||||||
|
//sys Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error)
|
||||||
|
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) = SYS__NEWSELECT
|
||||||
|
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) = SYS_SENDFILE64
|
||||||
|
//sys setfsgid(gid int) (prev int, err error)
|
||||||
|
//sys setfsuid(uid int) (prev int, err error)
|
||||||
|
//sysnb Setregid(rgid int, egid int) (err error)
|
||||||
|
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
||||||
|
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
||||||
|
//sysnb Setreuid(ruid int, euid int) (err error)
|
||||||
|
//sys Shutdown(fd int, how int) (err error)
|
||||||
|
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
||||||
|
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
||||||
|
//sys Truncate(path string, length int64) (err error) = SYS_TRUNCATE64
|
||||||
|
//sys Ustat(dev int, ubuf *Ustat_t) (err error)
|
||||||
|
//sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error)
|
||||||
|
//sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error)
|
||||||
|
//sys bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
|
||||||
|
//sys connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error)
|
||||||
|
//sysnb getgroups(n int, list *_Gid_t) (nn int, err error)
|
||||||
|
//sysnb setgroups(n int, list *_Gid_t) (err error)
|
||||||
|
//sys getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error)
|
||||||
|
//sys setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error)
|
||||||
|
//sysnb socket(domain int, typ int, proto int) (fd int, err error)
|
||||||
|
//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error)
|
||||||
|
//sysnb getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
|
||||||
|
//sysnb getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error)
|
||||||
|
//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error)
|
||||||
|
//sys sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error)
|
||||||
|
//sys recvmsg(s int, msg *Msghdr, flags int) (n int, err error)
|
||||||
|
//sys sendmsg(s int, msg *Msghdr, flags int) (n int, err error)
|
||||||
|
|
||||||
|
//sys futimesat(dirfd int, path string, times *[2]Timeval) (err error)
|
||||||
|
//sysnb Gettimeofday(tv *Timeval) (err error)
|
||||||
|
//sysnb Time(t *Time_t) (tt Time_t, err error)
|
||||||
|
//sys Utime(path string, buf *Utimbuf) (err error)
|
||||||
|
//sys utimes(path string, times *[2]Timeval) (err error)
|
||||||
|
|
||||||
|
func Fadvise(fd int, offset int64, length int64, advice int) (err error) {
|
||||||
|
_, _, e1 := Syscall6(SYS_FADVISE64_64, uintptr(fd), uintptr(advice), uintptr(offset>>32), uintptr(offset), uintptr(length>>32), uintptr(length))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func seek(fd int, offset int64, whence int) (int64, syscall.Errno) {
|
||||||
|
var newoffset int64
|
||||||
|
offsetLow := uint32(offset & 0xffffffff)
|
||||||
|
offsetHigh := uint32((offset >> 32) & 0xffffffff)
|
||||||
|
_, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0)
|
||||||
|
return newoffset, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
||||||
|
newoffset, errno := seek(fd, offset, whence)
|
||||||
|
if errno != 0 {
|
||||||
|
return 0, errno
|
||||||
|
}
|
||||||
|
return newoffset, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Fstatfs(fd int, buf *Statfs_t) (err error) {
|
||||||
|
_, _, e := Syscall(SYS_FSTATFS64, uintptr(fd), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf)))
|
||||||
|
if e != 0 {
|
||||||
|
err = e
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Statfs(path string, buf *Statfs_t) (err error) {
|
||||||
|
pathp, err := BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
_, _, e := Syscall(SYS_STATFS64, uintptr(unsafe.Pointer(pathp)), unsafe.Sizeof(*buf), uintptr(unsafe.Pointer(buf)))
|
||||||
|
if e != 0 {
|
||||||
|
err = e
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error)
|
||||||
|
|
||||||
|
func mmap(addr uintptr, length uintptr, prot int, flags int, fd int, offset int64) (xaddr uintptr, err error) {
|
||||||
|
page := uintptr(offset / 4096)
|
||||||
|
if offset != int64(page)*4096 {
|
||||||
|
return 0, EINVAL
|
||||||
|
}
|
||||||
|
return mmap2(addr, length, prot, flags, fd, page)
|
||||||
|
}
|
||||||
|
|
||||||
|
func setTimespec(sec, nsec int64) Timespec {
|
||||||
|
return Timespec{Sec: int32(sec), Nsec: int32(nsec)}
|
||||||
|
}
|
||||||
|
|
||||||
|
func setTimeval(sec, usec int64) Timeval {
|
||||||
|
return Timeval{Sec: int32(sec), Usec: int32(usec)}
|
||||||
|
}
|
||||||
|
|
||||||
|
type rlimit32 struct {
|
||||||
|
Cur uint32
|
||||||
|
Max uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
//sysnb getrlimit(resource int, rlim *rlimit32) (err error) = SYS_UGETRLIMIT
|
||||||
|
|
||||||
|
const rlimInf32 = ^uint32(0)
|
||||||
|
const rlimInf64 = ^uint64(0)
|
||||||
|
|
||||||
|
func Getrlimit(resource int, rlim *Rlimit) (err error) {
|
||||||
|
err = prlimit(0, resource, nil, rlim)
|
||||||
|
if err != ENOSYS {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
rl := rlimit32{}
|
||||||
|
err = getrlimit(resource, &rl)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if rl.Cur == rlimInf32 {
|
||||||
|
rlim.Cur = rlimInf64
|
||||||
|
} else {
|
||||||
|
rlim.Cur = uint64(rl.Cur)
|
||||||
|
}
|
||||||
|
|
||||||
|
if rl.Max == rlimInf32 {
|
||||||
|
rlim.Max = rlimInf64
|
||||||
|
} else {
|
||||||
|
rlim.Max = uint64(rl.Max)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT
|
||||||
|
|
||||||
|
func Setrlimit(resource int, rlim *Rlimit) (err error) {
|
||||||
|
err = prlimit(0, resource, rlim, nil)
|
||||||
|
if err != ENOSYS {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
rl := rlimit32{}
|
||||||
|
if rlim.Cur == rlimInf64 {
|
||||||
|
rl.Cur = rlimInf32
|
||||||
|
} else if rlim.Cur < uint64(rlimInf32) {
|
||||||
|
rl.Cur = uint32(rlim.Cur)
|
||||||
|
} else {
|
||||||
|
return EINVAL
|
||||||
|
}
|
||||||
|
if rlim.Max == rlimInf64 {
|
||||||
|
rl.Max = rlimInf32
|
||||||
|
} else if rlim.Max < uint64(rlimInf32) {
|
||||||
|
rl.Max = uint32(rlim.Max)
|
||||||
|
} else {
|
||||||
|
return EINVAL
|
||||||
|
}
|
||||||
|
|
||||||
|
return setrlimit(resource, &rl)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r *PtraceRegs) PC() uint32 { return r.Nip }
|
||||||
|
|
||||||
|
func (r *PtraceRegs) SetPC(pc uint32) { r.Nip = pc }
|
||||||
|
|
||||||
|
func (iov *Iovec) SetLen(length int) {
|
||||||
|
iov.Len = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
|
msghdr.Controllen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetIovlen(length int) {
|
||||||
|
msghdr.Iovlen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
cmsg.Len = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rsa *RawSockaddrNFCLLCP) SetServiceNameLen(length int) {
|
||||||
|
rsa.Service_name_len = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sysnb pipe(p *[2]_C_int) (err error)
|
||||||
|
|
||||||
|
func Pipe(p []int) (err error) {
|
||||||
|
if len(p) != 2 {
|
||||||
|
return EINVAL
|
||||||
|
}
|
||||||
|
var pp [2]_C_int
|
||||||
|
err = pipe(&pp)
|
||||||
|
p[0] = int(pp[0])
|
||||||
|
p[1] = int(pp[1])
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
//sysnb pipe2(p *[2]_C_int, flags int) (err error)
|
||||||
|
|
||||||
|
func Pipe2(p []int, flags int) (err error) {
|
||||||
|
if len(p) != 2 {
|
||||||
|
return EINVAL
|
||||||
|
}
|
||||||
|
var pp [2]_C_int
|
||||||
|
err = pipe2(&pp, flags)
|
||||||
|
p[0] = int(pp[0])
|
||||||
|
p[1] = int(pp[1])
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys poll(fds *PollFd, nfds int, timeout int) (n int, err error)
|
||||||
|
|
||||||
|
func Poll(fds []PollFd, timeout int) (n int, err error) {
|
||||||
|
if len(fds) == 0 {
|
||||||
|
return poll(nil, 0, timeout)
|
||||||
|
}
|
||||||
|
return poll(&fds[0], len(fds), timeout)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys syncFileRange2(fd int, flags int, off int64, n int64) (err error) = SYS_SYNC_FILE_RANGE2
|
||||||
|
|
||||||
|
func SyncFileRange(fd int, off int64, n int64, flags int) error {
|
||||||
|
// The sync_file_range and sync_file_range2 syscalls differ only in the
|
||||||
|
// order of their arguments.
|
||||||
|
return syncFileRange2(fd, flags, off, n)
|
||||||
|
}
|
||||||
|
|
||||||
|
//sys kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error)
|
||||||
|
|
||||||
|
func KexecFileLoad(kernelFd int, initrdFd int, cmdline string, flags int) error {
|
||||||
|
cmdlineLen := len(cmdline)
|
||||||
|
if cmdlineLen > 0 {
|
||||||
|
// Account for the additional NULL byte added by
|
||||||
|
// BytePtrFromString in kexecFileLoad. The kexec_file_load
|
||||||
|
// syscall expects a NULL-terminated string.
|
||||||
|
cmdlineLen++
|
||||||
|
}
|
||||||
|
return kexecFileLoad(kernelFd, initrdFd, cmdlineLen, cmdline, flags)
|
||||||
|
}
|
||||||
1829
vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
generated
vendored
Normal file
1829
vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
879
vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go
generated
vendored
Normal file
879
vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go
generated
vendored
Normal file
@@ -0,0 +1,879 @@
|
|||||||
|
// mkerrors.sh -Wall -Werror -static -I/tmp/include
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
//go:build ppc && linux
|
||||||
|
// +build ppc,linux
|
||||||
|
|
||||||
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/_const.go
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import "syscall"
|
||||||
|
|
||||||
|
const (
|
||||||
|
B1000000 = 0x17
|
||||||
|
B115200 = 0x11
|
||||||
|
B1152000 = 0x18
|
||||||
|
B1500000 = 0x19
|
||||||
|
B2000000 = 0x1a
|
||||||
|
B230400 = 0x12
|
||||||
|
B2500000 = 0x1b
|
||||||
|
B3000000 = 0x1c
|
||||||
|
B3500000 = 0x1d
|
||||||
|
B4000000 = 0x1e
|
||||||
|
B460800 = 0x13
|
||||||
|
B500000 = 0x14
|
||||||
|
B57600 = 0x10
|
||||||
|
B576000 = 0x15
|
||||||
|
B921600 = 0x16
|
||||||
|
BLKBSZGET = 0x40041270
|
||||||
|
BLKBSZSET = 0x80041271
|
||||||
|
BLKFLSBUF = 0x20001261
|
||||||
|
BLKFRAGET = 0x20001265
|
||||||
|
BLKFRASET = 0x20001264
|
||||||
|
BLKGETSIZE = 0x20001260
|
||||||
|
BLKGETSIZE64 = 0x40041272
|
||||||
|
BLKPBSZGET = 0x2000127b
|
||||||
|
BLKRAGET = 0x20001263
|
||||||
|
BLKRASET = 0x20001262
|
||||||
|
BLKROGET = 0x2000125e
|
||||||
|
BLKROSET = 0x2000125d
|
||||||
|
BLKRRPART = 0x2000125f
|
||||||
|
BLKSECTGET = 0x20001267
|
||||||
|
BLKSECTSET = 0x20001266
|
||||||
|
BLKSSZGET = 0x20001268
|
||||||
|
BOTHER = 0x1f
|
||||||
|
BS1 = 0x8000
|
||||||
|
BSDLY = 0x8000
|
||||||
|
CBAUD = 0xff
|
||||||
|
CBAUDEX = 0x0
|
||||||
|
CIBAUD = 0xff0000
|
||||||
|
CLOCAL = 0x8000
|
||||||
|
CR1 = 0x1000
|
||||||
|
CR2 = 0x2000
|
||||||
|
CR3 = 0x3000
|
||||||
|
CRDLY = 0x3000
|
||||||
|
CREAD = 0x800
|
||||||
|
CS6 = 0x100
|
||||||
|
CS7 = 0x200
|
||||||
|
CS8 = 0x300
|
||||||
|
CSIZE = 0x300
|
||||||
|
CSTOPB = 0x400
|
||||||
|
ECCGETLAYOUT = 0x41484d11
|
||||||
|
ECCGETSTATS = 0x40104d12
|
||||||
|
ECHOCTL = 0x40
|
||||||
|
ECHOE = 0x2
|
||||||
|
ECHOK = 0x4
|
||||||
|
ECHOKE = 0x1
|
||||||
|
ECHONL = 0x10
|
||||||
|
ECHOPRT = 0x20
|
||||||
|
EFD_CLOEXEC = 0x80000
|
||||||
|
EFD_NONBLOCK = 0x800
|
||||||
|
EPOLL_CLOEXEC = 0x80000
|
||||||
|
EXTPROC = 0x10000000
|
||||||
|
FF1 = 0x4000
|
||||||
|
FFDLY = 0x4000
|
||||||
|
FICLONE = 0x80049409
|
||||||
|
FICLONERANGE = 0x8020940d
|
||||||
|
FLUSHO = 0x800000
|
||||||
|
FS_IOC_ENABLE_VERITY = 0x80806685
|
||||||
|
FS_IOC_GETFLAGS = 0x40046601
|
||||||
|
FS_IOC_GET_ENCRYPTION_NONCE = 0x4010661b
|
||||||
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
||||||
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
||||||
|
FS_IOC_SETFLAGS = 0x80046602
|
||||||
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
||||||
|
F_GETLK = 0xc
|
||||||
|
F_GETLK64 = 0xc
|
||||||
|
F_GETOWN = 0x9
|
||||||
|
F_RDLCK = 0x0
|
||||||
|
F_SETLK = 0xd
|
||||||
|
F_SETLK64 = 0xd
|
||||||
|
F_SETLKW = 0xe
|
||||||
|
F_SETLKW64 = 0xe
|
||||||
|
F_SETOWN = 0x8
|
||||||
|
F_UNLCK = 0x2
|
||||||
|
F_WRLCK = 0x1
|
||||||
|
HIDIOCGRAWINFO = 0x40084803
|
||||||
|
HIDIOCGRDESC = 0x50044802
|
||||||
|
HIDIOCGRDESCSIZE = 0x40044801
|
||||||
|
HUPCL = 0x4000
|
||||||
|
ICANON = 0x100
|
||||||
|
IEXTEN = 0x400
|
||||||
|
IN_CLOEXEC = 0x80000
|
||||||
|
IN_NONBLOCK = 0x800
|
||||||
|
IOCTL_VM_SOCKETS_GET_LOCAL_CID = 0x200007b9
|
||||||
|
ISIG = 0x80
|
||||||
|
IUCLC = 0x1000
|
||||||
|
IXOFF = 0x400
|
||||||
|
IXON = 0x200
|
||||||
|
MAP_ANON = 0x20
|
||||||
|
MAP_ANONYMOUS = 0x20
|
||||||
|
MAP_DENYWRITE = 0x800
|
||||||
|
MAP_EXECUTABLE = 0x1000
|
||||||
|
MAP_GROWSDOWN = 0x100
|
||||||
|
MAP_HUGETLB = 0x40000
|
||||||
|
MAP_LOCKED = 0x80
|
||||||
|
MAP_NONBLOCK = 0x10000
|
||||||
|
MAP_NORESERVE = 0x40
|
||||||
|
MAP_POPULATE = 0x8000
|
||||||
|
MAP_STACK = 0x20000
|
||||||
|
MAP_SYNC = 0x80000
|
||||||
|
MCL_CURRENT = 0x2000
|
||||||
|
MCL_FUTURE = 0x4000
|
||||||
|
MCL_ONFAULT = 0x8000
|
||||||
|
MEMERASE = 0x80084d02
|
||||||
|
MEMERASE64 = 0x80104d14
|
||||||
|
MEMGETBADBLOCK = 0x80084d0b
|
||||||
|
MEMGETINFO = 0x40204d01
|
||||||
|
MEMGETOOBSEL = 0x40c84d0a
|
||||||
|
MEMGETREGIONCOUNT = 0x40044d07
|
||||||
|
MEMISLOCKED = 0x40084d17
|
||||||
|
MEMLOCK = 0x80084d05
|
||||||
|
MEMREADOOB = 0xc00c4d04
|
||||||
|
MEMSETBADBLOCK = 0x80084d0c
|
||||||
|
MEMUNLOCK = 0x80084d06
|
||||||
|
MEMWRITEOOB = 0xc00c4d03
|
||||||
|
MTDFILEMODE = 0x20004d13
|
||||||
|
NFDBITS = 0x20
|
||||||
|
NL2 = 0x200
|
||||||
|
NL3 = 0x300
|
||||||
|
NLDLY = 0x300
|
||||||
|
NOFLSH = 0x80000000
|
||||||
|
NS_GET_NSTYPE = 0x2000b703
|
||||||
|
NS_GET_OWNER_UID = 0x2000b704
|
||||||
|
NS_GET_PARENT = 0x2000b702
|
||||||
|
NS_GET_USERNS = 0x2000b701
|
||||||
|
OLCUC = 0x4
|
||||||
|
ONLCR = 0x2
|
||||||
|
OTPGETREGIONCOUNT = 0x80044d0e
|
||||||
|
OTPGETREGIONINFO = 0x800c4d0f
|
||||||
|
OTPLOCK = 0x400c4d10
|
||||||
|
OTPSELECT = 0x40044d0d
|
||||||
|
O_APPEND = 0x400
|
||||||
|
O_ASYNC = 0x2000
|
||||||
|
O_CLOEXEC = 0x80000
|
||||||
|
O_CREAT = 0x40
|
||||||
|
O_DIRECT = 0x20000
|
||||||
|
O_DIRECTORY = 0x4000
|
||||||
|
O_DSYNC = 0x1000
|
||||||
|
O_EXCL = 0x80
|
||||||
|
O_FSYNC = 0x101000
|
||||||
|
O_LARGEFILE = 0x10000
|
||||||
|
O_NDELAY = 0x800
|
||||||
|
O_NOATIME = 0x40000
|
||||||
|
O_NOCTTY = 0x100
|
||||||
|
O_NOFOLLOW = 0x8000
|
||||||
|
O_NONBLOCK = 0x800
|
||||||
|
O_PATH = 0x200000
|
||||||
|
O_RSYNC = 0x101000
|
||||||
|
O_SYNC = 0x101000
|
||||||
|
O_TMPFILE = 0x404000
|
||||||
|
O_TRUNC = 0x200
|
||||||
|
PARENB = 0x1000
|
||||||
|
PARODD = 0x2000
|
||||||
|
PENDIN = 0x20000000
|
||||||
|
PERF_EVENT_IOC_DISABLE = 0x20002401
|
||||||
|
PERF_EVENT_IOC_ENABLE = 0x20002400
|
||||||
|
PERF_EVENT_IOC_ID = 0x40042407
|
||||||
|
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8004240b
|
||||||
|
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
|
||||||
|
PERF_EVENT_IOC_PERIOD = 0x80082404
|
||||||
|
PERF_EVENT_IOC_QUERY_BPF = 0xc004240a
|
||||||
|
PERF_EVENT_IOC_REFRESH = 0x20002402
|
||||||
|
PERF_EVENT_IOC_RESET = 0x20002403
|
||||||
|
PERF_EVENT_IOC_SET_BPF = 0x80042408
|
||||||
|
PERF_EVENT_IOC_SET_FILTER = 0x80042406
|
||||||
|
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||||
|
PPPIOCATTACH = 0x8004743d
|
||||||
|
PPPIOCATTCHAN = 0x80047438
|
||||||
|
PPPIOCBRIDGECHAN = 0x80047435
|
||||||
|
PPPIOCCONNECT = 0x8004743a
|
||||||
|
PPPIOCDETACH = 0x8004743c
|
||||||
|
PPPIOCDISCONN = 0x20007439
|
||||||
|
PPPIOCGASYNCMAP = 0x40047458
|
||||||
|
PPPIOCGCHAN = 0x40047437
|
||||||
|
PPPIOCGDEBUG = 0x40047441
|
||||||
|
PPPIOCGFLAGS = 0x4004745a
|
||||||
|
PPPIOCGIDLE = 0x4008743f
|
||||||
|
PPPIOCGIDLE32 = 0x4008743f
|
||||||
|
PPPIOCGIDLE64 = 0x4010743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x40487436
|
||||||
|
PPPIOCGMRU = 0x40047453
|
||||||
|
PPPIOCGRASYNCMAP = 0x40047455
|
||||||
|
PPPIOCGUNIT = 0x40047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x40207450
|
||||||
|
PPPIOCSACTIVE = 0x80087446
|
||||||
|
PPPIOCSASYNCMAP = 0x80047457
|
||||||
|
PPPIOCSCOMPRESS = 0x800c744d
|
||||||
|
PPPIOCSDEBUG = 0x80047440
|
||||||
|
PPPIOCSFLAGS = 0x80047459
|
||||||
|
PPPIOCSMAXCID = 0x80047451
|
||||||
|
PPPIOCSMRRU = 0x8004743b
|
||||||
|
PPPIOCSMRU = 0x80047452
|
||||||
|
PPPIOCSNPMODE = 0x8008744b
|
||||||
|
PPPIOCSPASS = 0x80087447
|
||||||
|
PPPIOCSRASYNCMAP = 0x80047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x8020744f
|
||||||
|
PPPIOCUNBRIDGECHAN = 0x20007434
|
||||||
|
PPPIOCXFERUNIT = 0x2000744e
|
||||||
|
PROT_SAO = 0x10
|
||||||
|
PR_SET_PTRACER_ANY = 0xffffffff
|
||||||
|
PTRACE_GETEVRREGS = 0x14
|
||||||
|
PTRACE_GETFPREGS = 0xe
|
||||||
|
PTRACE_GETREGS64 = 0x16
|
||||||
|
PTRACE_GETVRREGS = 0x12
|
||||||
|
PTRACE_GETVSRREGS = 0x1b
|
||||||
|
PTRACE_GET_DEBUGREG = 0x19
|
||||||
|
PTRACE_SETEVRREGS = 0x15
|
||||||
|
PTRACE_SETFPREGS = 0xf
|
||||||
|
PTRACE_SETREGS64 = 0x17
|
||||||
|
PTRACE_SETVRREGS = 0x13
|
||||||
|
PTRACE_SETVSRREGS = 0x1c
|
||||||
|
PTRACE_SET_DEBUGREG = 0x1a
|
||||||
|
PTRACE_SINGLEBLOCK = 0x100
|
||||||
|
PTRACE_SYSEMU = 0x1d
|
||||||
|
PTRACE_SYSEMU_SINGLESTEP = 0x1e
|
||||||
|
PT_CCR = 0x26
|
||||||
|
PT_CTR = 0x23
|
||||||
|
PT_DAR = 0x29
|
||||||
|
PT_DSCR = 0x2c
|
||||||
|
PT_DSISR = 0x2a
|
||||||
|
PT_FPR0 = 0x30
|
||||||
|
PT_FPR31 = 0x6e
|
||||||
|
PT_FPSCR = 0x71
|
||||||
|
PT_LNK = 0x24
|
||||||
|
PT_MQ = 0x27
|
||||||
|
PT_MSR = 0x21
|
||||||
|
PT_NIP = 0x20
|
||||||
|
PT_ORIG_R3 = 0x22
|
||||||
|
PT_R0 = 0x0
|
||||||
|
PT_R1 = 0x1
|
||||||
|
PT_R10 = 0xa
|
||||||
|
PT_R11 = 0xb
|
||||||
|
PT_R12 = 0xc
|
||||||
|
PT_R13 = 0xd
|
||||||
|
PT_R14 = 0xe
|
||||||
|
PT_R15 = 0xf
|
||||||
|
PT_R16 = 0x10
|
||||||
|
PT_R17 = 0x11
|
||||||
|
PT_R18 = 0x12
|
||||||
|
PT_R19 = 0x13
|
||||||
|
PT_R2 = 0x2
|
||||||
|
PT_R20 = 0x14
|
||||||
|
PT_R21 = 0x15
|
||||||
|
PT_R22 = 0x16
|
||||||
|
PT_R23 = 0x17
|
||||||
|
PT_R24 = 0x18
|
||||||
|
PT_R25 = 0x19
|
||||||
|
PT_R26 = 0x1a
|
||||||
|
PT_R27 = 0x1b
|
||||||
|
PT_R28 = 0x1c
|
||||||
|
PT_R29 = 0x1d
|
||||||
|
PT_R3 = 0x3
|
||||||
|
PT_R30 = 0x1e
|
||||||
|
PT_R31 = 0x1f
|
||||||
|
PT_R4 = 0x4
|
||||||
|
PT_R5 = 0x5
|
||||||
|
PT_R6 = 0x6
|
||||||
|
PT_R7 = 0x7
|
||||||
|
PT_R8 = 0x8
|
||||||
|
PT_R9 = 0x9
|
||||||
|
PT_REGS_COUNT = 0x2c
|
||||||
|
PT_RESULT = 0x2b
|
||||||
|
PT_TRAP = 0x28
|
||||||
|
PT_XER = 0x25
|
||||||
|
RLIMIT_AS = 0x9
|
||||||
|
RLIMIT_MEMLOCK = 0x8
|
||||||
|
RLIMIT_NOFILE = 0x7
|
||||||
|
RLIMIT_NPROC = 0x6
|
||||||
|
RLIMIT_RSS = 0x5
|
||||||
|
RNDADDENTROPY = 0x80085203
|
||||||
|
RNDADDTOENTCNT = 0x80045201
|
||||||
|
RNDCLEARPOOL = 0x20005206
|
||||||
|
RNDGETENTCNT = 0x40045200
|
||||||
|
RNDGETPOOL = 0x40085202
|
||||||
|
RNDRESEEDCRNG = 0x20005207
|
||||||
|
RNDZAPENTCNT = 0x20005204
|
||||||
|
RTC_AIE_OFF = 0x20007002
|
||||||
|
RTC_AIE_ON = 0x20007001
|
||||||
|
RTC_ALM_READ = 0x40247008
|
||||||
|
RTC_ALM_SET = 0x80247007
|
||||||
|
RTC_EPOCH_READ = 0x4004700d
|
||||||
|
RTC_EPOCH_SET = 0x8004700e
|
||||||
|
RTC_IRQP_READ = 0x4004700b
|
||||||
|
RTC_IRQP_SET = 0x8004700c
|
||||||
|
RTC_PIE_OFF = 0x20007006
|
||||||
|
RTC_PIE_ON = 0x20007005
|
||||||
|
RTC_PLL_GET = 0x401c7011
|
||||||
|
RTC_PLL_SET = 0x801c7012
|
||||||
|
RTC_RD_TIME = 0x40247009
|
||||||
|
RTC_SET_TIME = 0x8024700a
|
||||||
|
RTC_UIE_OFF = 0x20007004
|
||||||
|
RTC_UIE_ON = 0x20007003
|
||||||
|
RTC_VL_CLR = 0x20007014
|
||||||
|
RTC_VL_READ = 0x40047013
|
||||||
|
RTC_WIE_OFF = 0x20007010
|
||||||
|
RTC_WIE_ON = 0x2000700f
|
||||||
|
RTC_WKALM_RD = 0x40287010
|
||||||
|
RTC_WKALM_SET = 0x8028700f
|
||||||
|
SCM_TIMESTAMPING = 0x25
|
||||||
|
SCM_TIMESTAMPING_OPT_STATS = 0x36
|
||||||
|
SCM_TIMESTAMPING_PKTINFO = 0x3a
|
||||||
|
SCM_TIMESTAMPNS = 0x23
|
||||||
|
SCM_TXTIME = 0x3d
|
||||||
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SFD_CLOEXEC = 0x80000
|
||||||
|
SFD_NONBLOCK = 0x800
|
||||||
|
SIOCATMARK = 0x8905
|
||||||
|
SIOCGPGRP = 0x8904
|
||||||
|
SIOCGSTAMPNS_NEW = 0x40108907
|
||||||
|
SIOCGSTAMP_NEW = 0x40108906
|
||||||
|
SIOCINQ = 0x4004667f
|
||||||
|
SIOCOUTQ = 0x40047473
|
||||||
|
SIOCSPGRP = 0x8902
|
||||||
|
SOCK_CLOEXEC = 0x80000
|
||||||
|
SOCK_DGRAM = 0x2
|
||||||
|
SOCK_NONBLOCK = 0x800
|
||||||
|
SOCK_STREAM = 0x1
|
||||||
|
SOL_SOCKET = 0x1
|
||||||
|
SO_ACCEPTCONN = 0x1e
|
||||||
|
SO_ATTACH_BPF = 0x32
|
||||||
|
SO_ATTACH_REUSEPORT_CBPF = 0x33
|
||||||
|
SO_ATTACH_REUSEPORT_EBPF = 0x34
|
||||||
|
SO_BINDTODEVICE = 0x19
|
||||||
|
SO_BINDTOIFINDEX = 0x3e
|
||||||
|
SO_BPF_EXTENSIONS = 0x30
|
||||||
|
SO_BROADCAST = 0x6
|
||||||
|
SO_BSDCOMPAT = 0xe
|
||||||
|
SO_BUSY_POLL = 0x2e
|
||||||
|
SO_BUSY_POLL_BUDGET = 0x46
|
||||||
|
SO_CNX_ADVICE = 0x35
|
||||||
|
SO_COOKIE = 0x39
|
||||||
|
SO_DETACH_REUSEPORT_BPF = 0x44
|
||||||
|
SO_DOMAIN = 0x27
|
||||||
|
SO_DONTROUTE = 0x5
|
||||||
|
SO_ERROR = 0x4
|
||||||
|
SO_INCOMING_CPU = 0x31
|
||||||
|
SO_INCOMING_NAPI_ID = 0x38
|
||||||
|
SO_KEEPALIVE = 0x9
|
||||||
|
SO_LINGER = 0xd
|
||||||
|
SO_LOCK_FILTER = 0x2c
|
||||||
|
SO_MARK = 0x24
|
||||||
|
SO_MAX_PACING_RATE = 0x2f
|
||||||
|
SO_MEMINFO = 0x37
|
||||||
|
SO_NOFCS = 0x2b
|
||||||
|
SO_OOBINLINE = 0xa
|
||||||
|
SO_PASSCRED = 0x14
|
||||||
|
SO_PASSSEC = 0x22
|
||||||
|
SO_PEEK_OFF = 0x2a
|
||||||
|
SO_PEERCRED = 0x15
|
||||||
|
SO_PEERGROUPS = 0x3b
|
||||||
|
SO_PEERSEC = 0x1f
|
||||||
|
SO_PREFER_BUSY_POLL = 0x45
|
||||||
|
SO_PROTOCOL = 0x26
|
||||||
|
SO_RCVBUF = 0x8
|
||||||
|
SO_RCVBUFFORCE = 0x21
|
||||||
|
SO_RCVLOWAT = 0x10
|
||||||
|
SO_RCVTIMEO = 0x12
|
||||||
|
SO_RCVTIMEO_NEW = 0x42
|
||||||
|
SO_RCVTIMEO_OLD = 0x12
|
||||||
|
SO_REUSEADDR = 0x2
|
||||||
|
SO_REUSEPORT = 0xf
|
||||||
|
SO_RXQ_OVFL = 0x28
|
||||||
|
SO_SECURITY_AUTHENTICATION = 0x16
|
||||||
|
SO_SECURITY_ENCRYPTION_NETWORK = 0x18
|
||||||
|
SO_SECURITY_ENCRYPTION_TRANSPORT = 0x17
|
||||||
|
SO_SELECT_ERR_QUEUE = 0x2d
|
||||||
|
SO_SNDBUF = 0x7
|
||||||
|
SO_SNDBUFFORCE = 0x20
|
||||||
|
SO_SNDLOWAT = 0x11
|
||||||
|
SO_SNDTIMEO = 0x13
|
||||||
|
SO_SNDTIMEO_NEW = 0x43
|
||||||
|
SO_SNDTIMEO_OLD = 0x13
|
||||||
|
SO_TIMESTAMPING = 0x25
|
||||||
|
SO_TIMESTAMPING_NEW = 0x41
|
||||||
|
SO_TIMESTAMPING_OLD = 0x25
|
||||||
|
SO_TIMESTAMPNS = 0x23
|
||||||
|
SO_TIMESTAMPNS_NEW = 0x40
|
||||||
|
SO_TIMESTAMPNS_OLD = 0x23
|
||||||
|
SO_TIMESTAMP_NEW = 0x3f
|
||||||
|
SO_TXTIME = 0x3d
|
||||||
|
SO_TYPE = 0x3
|
||||||
|
SO_WIFI_STATUS = 0x29
|
||||||
|
SO_ZEROCOPY = 0x3c
|
||||||
|
TAB1 = 0x400
|
||||||
|
TAB2 = 0x800
|
||||||
|
TAB3 = 0xc00
|
||||||
|
TABDLY = 0xc00
|
||||||
|
TCFLSH = 0x2000741f
|
||||||
|
TCGETA = 0x40147417
|
||||||
|
TCGETS = 0x402c7413
|
||||||
|
TCSAFLUSH = 0x2
|
||||||
|
TCSBRK = 0x2000741d
|
||||||
|
TCSBRKP = 0x5425
|
||||||
|
TCSETA = 0x80147418
|
||||||
|
TCSETAF = 0x8014741c
|
||||||
|
TCSETAW = 0x80147419
|
||||||
|
TCSETS = 0x802c7414
|
||||||
|
TCSETSF = 0x802c7416
|
||||||
|
TCSETSW = 0x802c7415
|
||||||
|
TCXONC = 0x2000741e
|
||||||
|
TFD_CLOEXEC = 0x80000
|
||||||
|
TFD_NONBLOCK = 0x800
|
||||||
|
TIOCCBRK = 0x5428
|
||||||
|
TIOCCONS = 0x541d
|
||||||
|
TIOCEXCL = 0x540c
|
||||||
|
TIOCGDEV = 0x40045432
|
||||||
|
TIOCGETC = 0x40067412
|
||||||
|
TIOCGETD = 0x5424
|
||||||
|
TIOCGETP = 0x40067408
|
||||||
|
TIOCGEXCL = 0x40045440
|
||||||
|
TIOCGICOUNT = 0x545d
|
||||||
|
TIOCGISO7816 = 0x40285442
|
||||||
|
TIOCGLCKTRMIOS = 0x5456
|
||||||
|
TIOCGLTC = 0x40067474
|
||||||
|
TIOCGPGRP = 0x40047477
|
||||||
|
TIOCGPKT = 0x40045438
|
||||||
|
TIOCGPTLCK = 0x40045439
|
||||||
|
TIOCGPTN = 0x40045430
|
||||||
|
TIOCGPTPEER = 0x20005441
|
||||||
|
TIOCGRS485 = 0x542e
|
||||||
|
TIOCGSERIAL = 0x541e
|
||||||
|
TIOCGSID = 0x5429
|
||||||
|
TIOCGSOFTCAR = 0x5419
|
||||||
|
TIOCGWINSZ = 0x40087468
|
||||||
|
TIOCINQ = 0x4004667f
|
||||||
|
TIOCLINUX = 0x541c
|
||||||
|
TIOCMBIC = 0x5417
|
||||||
|
TIOCMBIS = 0x5416
|
||||||
|
TIOCMGET = 0x5415
|
||||||
|
TIOCMIWAIT = 0x545c
|
||||||
|
TIOCMSET = 0x5418
|
||||||
|
TIOCM_CAR = 0x40
|
||||||
|
TIOCM_CD = 0x40
|
||||||
|
TIOCM_CTS = 0x20
|
||||||
|
TIOCM_DSR = 0x100
|
||||||
|
TIOCM_LOOP = 0x8000
|
||||||
|
TIOCM_OUT1 = 0x2000
|
||||||
|
TIOCM_OUT2 = 0x4000
|
||||||
|
TIOCM_RI = 0x80
|
||||||
|
TIOCM_RNG = 0x80
|
||||||
|
TIOCM_SR = 0x10
|
||||||
|
TIOCM_ST = 0x8
|
||||||
|
TIOCNOTTY = 0x5422
|
||||||
|
TIOCNXCL = 0x540d
|
||||||
|
TIOCOUTQ = 0x40047473
|
||||||
|
TIOCPKT = 0x5420
|
||||||
|
TIOCSBRK = 0x5427
|
||||||
|
TIOCSCTTY = 0x540e
|
||||||
|
TIOCSERCONFIG = 0x5453
|
||||||
|
TIOCSERGETLSR = 0x5459
|
||||||
|
TIOCSERGETMULTI = 0x545a
|
||||||
|
TIOCSERGSTRUCT = 0x5458
|
||||||
|
TIOCSERGWILD = 0x5454
|
||||||
|
TIOCSERSETMULTI = 0x545b
|
||||||
|
TIOCSERSWILD = 0x5455
|
||||||
|
TIOCSER_TEMT = 0x1
|
||||||
|
TIOCSETC = 0x80067411
|
||||||
|
TIOCSETD = 0x5423
|
||||||
|
TIOCSETN = 0x8006740a
|
||||||
|
TIOCSETP = 0x80067409
|
||||||
|
TIOCSIG = 0x80045436
|
||||||
|
TIOCSISO7816 = 0xc0285443
|
||||||
|
TIOCSLCKTRMIOS = 0x5457
|
||||||
|
TIOCSLTC = 0x80067475
|
||||||
|
TIOCSPGRP = 0x80047476
|
||||||
|
TIOCSPTLCK = 0x80045431
|
||||||
|
TIOCSRS485 = 0x542f
|
||||||
|
TIOCSSERIAL = 0x541f
|
||||||
|
TIOCSSOFTCAR = 0x541a
|
||||||
|
TIOCSTART = 0x2000746e
|
||||||
|
TIOCSTI = 0x5412
|
||||||
|
TIOCSTOP = 0x2000746f
|
||||||
|
TIOCSWINSZ = 0x80087467
|
||||||
|
TIOCVHANGUP = 0x5437
|
||||||
|
TOSTOP = 0x400000
|
||||||
|
TUNATTACHFILTER = 0x800854d5
|
||||||
|
TUNDETACHFILTER = 0x800854d6
|
||||||
|
TUNGETDEVNETNS = 0x200054e3
|
||||||
|
TUNGETFEATURES = 0x400454cf
|
||||||
|
TUNGETFILTER = 0x400854db
|
||||||
|
TUNGETIFF = 0x400454d2
|
||||||
|
TUNGETSNDBUF = 0x400454d3
|
||||||
|
TUNGETVNETBE = 0x400454df
|
||||||
|
TUNGETVNETHDRSZ = 0x400454d7
|
||||||
|
TUNGETVNETLE = 0x400454dd
|
||||||
|
TUNSETCARRIER = 0x800454e2
|
||||||
|
TUNSETDEBUG = 0x800454c9
|
||||||
|
TUNSETFILTEREBPF = 0x400454e1
|
||||||
|
TUNSETGROUP = 0x800454ce
|
||||||
|
TUNSETIFF = 0x800454ca
|
||||||
|
TUNSETIFINDEX = 0x800454da
|
||||||
|
TUNSETLINK = 0x800454cd
|
||||||
|
TUNSETNOCSUM = 0x800454c8
|
||||||
|
TUNSETOFFLOAD = 0x800454d0
|
||||||
|
TUNSETOWNER = 0x800454cc
|
||||||
|
TUNSETPERSIST = 0x800454cb
|
||||||
|
TUNSETQUEUE = 0x800454d9
|
||||||
|
TUNSETSNDBUF = 0x800454d4
|
||||||
|
TUNSETSTEERINGEBPF = 0x400454e0
|
||||||
|
TUNSETTXFILTER = 0x800454d1
|
||||||
|
TUNSETVNETBE = 0x800454de
|
||||||
|
TUNSETVNETHDRSZ = 0x800454d8
|
||||||
|
TUNSETVNETLE = 0x800454dc
|
||||||
|
UBI_IOCATT = 0x80186f40
|
||||||
|
UBI_IOCDET = 0x80046f41
|
||||||
|
UBI_IOCEBCH = 0x80044f02
|
||||||
|
UBI_IOCEBER = 0x80044f01
|
||||||
|
UBI_IOCEBISMAP = 0x40044f05
|
||||||
|
UBI_IOCEBMAP = 0x80084f03
|
||||||
|
UBI_IOCEBUNMAP = 0x80044f04
|
||||||
|
UBI_IOCMKVOL = 0x80986f00
|
||||||
|
UBI_IOCRMVOL = 0x80046f01
|
||||||
|
UBI_IOCRNVOL = 0x91106f03
|
||||||
|
UBI_IOCRPEB = 0x80046f04
|
||||||
|
UBI_IOCRSVOL = 0x800c6f02
|
||||||
|
UBI_IOCSETVOLPROP = 0x80104f06
|
||||||
|
UBI_IOCSPEB = 0x80046f05
|
||||||
|
UBI_IOCVOLCRBLK = 0x80804f07
|
||||||
|
UBI_IOCVOLRMBLK = 0x20004f08
|
||||||
|
UBI_IOCVOLUP = 0x80084f00
|
||||||
|
VDISCARD = 0x10
|
||||||
|
VEOF = 0x4
|
||||||
|
VEOL = 0x6
|
||||||
|
VEOL2 = 0x8
|
||||||
|
VMIN = 0x5
|
||||||
|
VREPRINT = 0xb
|
||||||
|
VSTART = 0xd
|
||||||
|
VSTOP = 0xe
|
||||||
|
VSUSP = 0xc
|
||||||
|
VSWTC = 0x9
|
||||||
|
VT1 = 0x10000
|
||||||
|
VTDLY = 0x10000
|
||||||
|
VTIME = 0x7
|
||||||
|
VWERASE = 0xa
|
||||||
|
WDIOC_GETBOOTSTATUS = 0x40045702
|
||||||
|
WDIOC_GETPRETIMEOUT = 0x40045709
|
||||||
|
WDIOC_GETSTATUS = 0x40045701
|
||||||
|
WDIOC_GETSUPPORT = 0x40285700
|
||||||
|
WDIOC_GETTEMP = 0x40045703
|
||||||
|
WDIOC_GETTIMELEFT = 0x4004570a
|
||||||
|
WDIOC_GETTIMEOUT = 0x40045707
|
||||||
|
WDIOC_KEEPALIVE = 0x40045705
|
||||||
|
WDIOC_SETOPTIONS = 0x40045704
|
||||||
|
WORDSIZE = 0x20
|
||||||
|
XCASE = 0x4000
|
||||||
|
XTABS = 0xc00
|
||||||
|
_HIDIOCGRAWNAME = 0x40804804
|
||||||
|
_HIDIOCGRAWPHYS = 0x40404805
|
||||||
|
_HIDIOCGRAWUNIQ = 0x40404808
|
||||||
|
)
|
||||||
|
|
||||||
|
// Errors
|
||||||
|
const (
|
||||||
|
EADDRINUSE = syscall.Errno(0x62)
|
||||||
|
EADDRNOTAVAIL = syscall.Errno(0x63)
|
||||||
|
EADV = syscall.Errno(0x44)
|
||||||
|
EAFNOSUPPORT = syscall.Errno(0x61)
|
||||||
|
EALREADY = syscall.Errno(0x72)
|
||||||
|
EBADE = syscall.Errno(0x34)
|
||||||
|
EBADFD = syscall.Errno(0x4d)
|
||||||
|
EBADMSG = syscall.Errno(0x4a)
|
||||||
|
EBADR = syscall.Errno(0x35)
|
||||||
|
EBADRQC = syscall.Errno(0x38)
|
||||||
|
EBADSLT = syscall.Errno(0x39)
|
||||||
|
EBFONT = syscall.Errno(0x3b)
|
||||||
|
ECANCELED = syscall.Errno(0x7d)
|
||||||
|
ECHRNG = syscall.Errno(0x2c)
|
||||||
|
ECOMM = syscall.Errno(0x46)
|
||||||
|
ECONNABORTED = syscall.Errno(0x67)
|
||||||
|
ECONNREFUSED = syscall.Errno(0x6f)
|
||||||
|
ECONNRESET = syscall.Errno(0x68)
|
||||||
|
EDEADLK = syscall.Errno(0x23)
|
||||||
|
EDEADLOCK = syscall.Errno(0x3a)
|
||||||
|
EDESTADDRREQ = syscall.Errno(0x59)
|
||||||
|
EDOTDOT = syscall.Errno(0x49)
|
||||||
|
EDQUOT = syscall.Errno(0x7a)
|
||||||
|
EHOSTDOWN = syscall.Errno(0x70)
|
||||||
|
EHOSTUNREACH = syscall.Errno(0x71)
|
||||||
|
EHWPOISON = syscall.Errno(0x85)
|
||||||
|
EIDRM = syscall.Errno(0x2b)
|
||||||
|
EILSEQ = syscall.Errno(0x54)
|
||||||
|
EINPROGRESS = syscall.Errno(0x73)
|
||||||
|
EISCONN = syscall.Errno(0x6a)
|
||||||
|
EISNAM = syscall.Errno(0x78)
|
||||||
|
EKEYEXPIRED = syscall.Errno(0x7f)
|
||||||
|
EKEYREJECTED = syscall.Errno(0x81)
|
||||||
|
EKEYREVOKED = syscall.Errno(0x80)
|
||||||
|
EL2HLT = syscall.Errno(0x33)
|
||||||
|
EL2NSYNC = syscall.Errno(0x2d)
|
||||||
|
EL3HLT = syscall.Errno(0x2e)
|
||||||
|
EL3RST = syscall.Errno(0x2f)
|
||||||
|
ELIBACC = syscall.Errno(0x4f)
|
||||||
|
ELIBBAD = syscall.Errno(0x50)
|
||||||
|
ELIBEXEC = syscall.Errno(0x53)
|
||||||
|
ELIBMAX = syscall.Errno(0x52)
|
||||||
|
ELIBSCN = syscall.Errno(0x51)
|
||||||
|
ELNRNG = syscall.Errno(0x30)
|
||||||
|
ELOOP = syscall.Errno(0x28)
|
||||||
|
EMEDIUMTYPE = syscall.Errno(0x7c)
|
||||||
|
EMSGSIZE = syscall.Errno(0x5a)
|
||||||
|
EMULTIHOP = syscall.Errno(0x48)
|
||||||
|
ENAMETOOLONG = syscall.Errno(0x24)
|
||||||
|
ENAVAIL = syscall.Errno(0x77)
|
||||||
|
ENETDOWN = syscall.Errno(0x64)
|
||||||
|
ENETRESET = syscall.Errno(0x66)
|
||||||
|
ENETUNREACH = syscall.Errno(0x65)
|
||||||
|
ENOANO = syscall.Errno(0x37)
|
||||||
|
ENOBUFS = syscall.Errno(0x69)
|
||||||
|
ENOCSI = syscall.Errno(0x32)
|
||||||
|
ENODATA = syscall.Errno(0x3d)
|
||||||
|
ENOKEY = syscall.Errno(0x7e)
|
||||||
|
ENOLCK = syscall.Errno(0x25)
|
||||||
|
ENOLINK = syscall.Errno(0x43)
|
||||||
|
ENOMEDIUM = syscall.Errno(0x7b)
|
||||||
|
ENOMSG = syscall.Errno(0x2a)
|
||||||
|
ENONET = syscall.Errno(0x40)
|
||||||
|
ENOPKG = syscall.Errno(0x41)
|
||||||
|
ENOPROTOOPT = syscall.Errno(0x5c)
|
||||||
|
ENOSR = syscall.Errno(0x3f)
|
||||||
|
ENOSTR = syscall.Errno(0x3c)
|
||||||
|
ENOSYS = syscall.Errno(0x26)
|
||||||
|
ENOTCONN = syscall.Errno(0x6b)
|
||||||
|
ENOTEMPTY = syscall.Errno(0x27)
|
||||||
|
ENOTNAM = syscall.Errno(0x76)
|
||||||
|
ENOTRECOVERABLE = syscall.Errno(0x83)
|
||||||
|
ENOTSOCK = syscall.Errno(0x58)
|
||||||
|
ENOTSUP = syscall.Errno(0x5f)
|
||||||
|
ENOTUNIQ = syscall.Errno(0x4c)
|
||||||
|
EOPNOTSUPP = syscall.Errno(0x5f)
|
||||||
|
EOVERFLOW = syscall.Errno(0x4b)
|
||||||
|
EOWNERDEAD = syscall.Errno(0x82)
|
||||||
|
EPFNOSUPPORT = syscall.Errno(0x60)
|
||||||
|
EPROTO = syscall.Errno(0x47)
|
||||||
|
EPROTONOSUPPORT = syscall.Errno(0x5d)
|
||||||
|
EPROTOTYPE = syscall.Errno(0x5b)
|
||||||
|
EREMCHG = syscall.Errno(0x4e)
|
||||||
|
EREMOTE = syscall.Errno(0x42)
|
||||||
|
EREMOTEIO = syscall.Errno(0x79)
|
||||||
|
ERESTART = syscall.Errno(0x55)
|
||||||
|
ERFKILL = syscall.Errno(0x84)
|
||||||
|
ESHUTDOWN = syscall.Errno(0x6c)
|
||||||
|
ESOCKTNOSUPPORT = syscall.Errno(0x5e)
|
||||||
|
ESRMNT = syscall.Errno(0x45)
|
||||||
|
ESTALE = syscall.Errno(0x74)
|
||||||
|
ESTRPIPE = syscall.Errno(0x56)
|
||||||
|
ETIME = syscall.Errno(0x3e)
|
||||||
|
ETIMEDOUT = syscall.Errno(0x6e)
|
||||||
|
ETOOMANYREFS = syscall.Errno(0x6d)
|
||||||
|
EUCLEAN = syscall.Errno(0x75)
|
||||||
|
EUNATCH = syscall.Errno(0x31)
|
||||||
|
EUSERS = syscall.Errno(0x57)
|
||||||
|
EXFULL = syscall.Errno(0x36)
|
||||||
|
)
|
||||||
|
|
||||||
|
// Signals
|
||||||
|
const (
|
||||||
|
SIGBUS = syscall.Signal(0x7)
|
||||||
|
SIGCHLD = syscall.Signal(0x11)
|
||||||
|
SIGCLD = syscall.Signal(0x11)
|
||||||
|
SIGCONT = syscall.Signal(0x12)
|
||||||
|
SIGIO = syscall.Signal(0x1d)
|
||||||
|
SIGPOLL = syscall.Signal(0x1d)
|
||||||
|
SIGPROF = syscall.Signal(0x1b)
|
||||||
|
SIGPWR = syscall.Signal(0x1e)
|
||||||
|
SIGSTKFLT = syscall.Signal(0x10)
|
||||||
|
SIGSTOP = syscall.Signal(0x13)
|
||||||
|
SIGSYS = syscall.Signal(0x1f)
|
||||||
|
SIGTSTP = syscall.Signal(0x14)
|
||||||
|
SIGTTIN = syscall.Signal(0x15)
|
||||||
|
SIGTTOU = syscall.Signal(0x16)
|
||||||
|
SIGURG = syscall.Signal(0x17)
|
||||||
|
SIGUSR1 = syscall.Signal(0xa)
|
||||||
|
SIGUSR2 = syscall.Signal(0xc)
|
||||||
|
SIGVTALRM = syscall.Signal(0x1a)
|
||||||
|
SIGWINCH = syscall.Signal(0x1c)
|
||||||
|
SIGXCPU = syscall.Signal(0x18)
|
||||||
|
SIGXFSZ = syscall.Signal(0x19)
|
||||||
|
)
|
||||||
|
|
||||||
|
// Error table
|
||||||
|
var errorList = [...]struct {
|
||||||
|
num syscall.Errno
|
||||||
|
name string
|
||||||
|
desc string
|
||||||
|
}{
|
||||||
|
{1, "EPERM", "operation not permitted"},
|
||||||
|
{2, "ENOENT", "no such file or directory"},
|
||||||
|
{3, "ESRCH", "no such process"},
|
||||||
|
{4, "EINTR", "interrupted system call"},
|
||||||
|
{5, "EIO", "input/output error"},
|
||||||
|
{6, "ENXIO", "no such device or address"},
|
||||||
|
{7, "E2BIG", "argument list too long"},
|
||||||
|
{8, "ENOEXEC", "exec format error"},
|
||||||
|
{9, "EBADF", "bad file descriptor"},
|
||||||
|
{10, "ECHILD", "no child processes"},
|
||||||
|
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||||
|
{12, "ENOMEM", "cannot allocate memory"},
|
||||||
|
{13, "EACCES", "permission denied"},
|
||||||
|
{14, "EFAULT", "bad address"},
|
||||||
|
{15, "ENOTBLK", "block device required"},
|
||||||
|
{16, "EBUSY", "device or resource busy"},
|
||||||
|
{17, "EEXIST", "file exists"},
|
||||||
|
{18, "EXDEV", "invalid cross-device link"},
|
||||||
|
{19, "ENODEV", "no such device"},
|
||||||
|
{20, "ENOTDIR", "not a directory"},
|
||||||
|
{21, "EISDIR", "is a directory"},
|
||||||
|
{22, "EINVAL", "invalid argument"},
|
||||||
|
{23, "ENFILE", "too many open files in system"},
|
||||||
|
{24, "EMFILE", "too many open files"},
|
||||||
|
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||||
|
{26, "ETXTBSY", "text file busy"},
|
||||||
|
{27, "EFBIG", "file too large"},
|
||||||
|
{28, "ENOSPC", "no space left on device"},
|
||||||
|
{29, "ESPIPE", "illegal seek"},
|
||||||
|
{30, "EROFS", "read-only file system"},
|
||||||
|
{31, "EMLINK", "too many links"},
|
||||||
|
{32, "EPIPE", "broken pipe"},
|
||||||
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
|
{34, "ERANGE", "numerical result out of range"},
|
||||||
|
{35, "EDEADLK", "resource deadlock avoided"},
|
||||||
|
{36, "ENAMETOOLONG", "file name too long"},
|
||||||
|
{37, "ENOLCK", "no locks available"},
|
||||||
|
{38, "ENOSYS", "function not implemented"},
|
||||||
|
{39, "ENOTEMPTY", "directory not empty"},
|
||||||
|
{40, "ELOOP", "too many levels of symbolic links"},
|
||||||
|
{42, "ENOMSG", "no message of desired type"},
|
||||||
|
{43, "EIDRM", "identifier removed"},
|
||||||
|
{44, "ECHRNG", "channel number out of range"},
|
||||||
|
{45, "EL2NSYNC", "level 2 not synchronized"},
|
||||||
|
{46, "EL3HLT", "level 3 halted"},
|
||||||
|
{47, "EL3RST", "level 3 reset"},
|
||||||
|
{48, "ELNRNG", "link number out of range"},
|
||||||
|
{49, "EUNATCH", "protocol driver not attached"},
|
||||||
|
{50, "ENOCSI", "no CSI structure available"},
|
||||||
|
{51, "EL2HLT", "level 2 halted"},
|
||||||
|
{52, "EBADE", "invalid exchange"},
|
||||||
|
{53, "EBADR", "invalid request descriptor"},
|
||||||
|
{54, "EXFULL", "exchange full"},
|
||||||
|
{55, "ENOANO", "no anode"},
|
||||||
|
{56, "EBADRQC", "invalid request code"},
|
||||||
|
{57, "EBADSLT", "invalid slot"},
|
||||||
|
{58, "EDEADLOCK", "file locking deadlock error"},
|
||||||
|
{59, "EBFONT", "bad font file format"},
|
||||||
|
{60, "ENOSTR", "device not a stream"},
|
||||||
|
{61, "ENODATA", "no data available"},
|
||||||
|
{62, "ETIME", "timer expired"},
|
||||||
|
{63, "ENOSR", "out of streams resources"},
|
||||||
|
{64, "ENONET", "machine is not on the network"},
|
||||||
|
{65, "ENOPKG", "package not installed"},
|
||||||
|
{66, "EREMOTE", "object is remote"},
|
||||||
|
{67, "ENOLINK", "link has been severed"},
|
||||||
|
{68, "EADV", "advertise error"},
|
||||||
|
{69, "ESRMNT", "srmount error"},
|
||||||
|
{70, "ECOMM", "communication error on send"},
|
||||||
|
{71, "EPROTO", "protocol error"},
|
||||||
|
{72, "EMULTIHOP", "multihop attempted"},
|
||||||
|
{73, "EDOTDOT", "RFS specific error"},
|
||||||
|
{74, "EBADMSG", "bad message"},
|
||||||
|
{75, "EOVERFLOW", "value too large for defined data type"},
|
||||||
|
{76, "ENOTUNIQ", "name not unique on network"},
|
||||||
|
{77, "EBADFD", "file descriptor in bad state"},
|
||||||
|
{78, "EREMCHG", "remote address changed"},
|
||||||
|
{79, "ELIBACC", "can not access a needed shared library"},
|
||||||
|
{80, "ELIBBAD", "accessing a corrupted shared library"},
|
||||||
|
{81, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||||
|
{82, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||||
|
{83, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||||
|
{84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||||
|
{85, "ERESTART", "interrupted system call should be restarted"},
|
||||||
|
{86, "ESTRPIPE", "streams pipe error"},
|
||||||
|
{87, "EUSERS", "too many users"},
|
||||||
|
{88, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
|
{89, "EDESTADDRREQ", "destination address required"},
|
||||||
|
{90, "EMSGSIZE", "message too long"},
|
||||||
|
{91, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||||
|
{92, "ENOPROTOOPT", "protocol not available"},
|
||||||
|
{93, "EPROTONOSUPPORT", "protocol not supported"},
|
||||||
|
{94, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||||
|
{95, "ENOTSUP", "operation not supported"},
|
||||||
|
{96, "EPFNOSUPPORT", "protocol family not supported"},
|
||||||
|
{97, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||||
|
{98, "EADDRINUSE", "address already in use"},
|
||||||
|
{99, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||||
|
{100, "ENETDOWN", "network is down"},
|
||||||
|
{101, "ENETUNREACH", "network is unreachable"},
|
||||||
|
{102, "ENETRESET", "network dropped connection on reset"},
|
||||||
|
{103, "ECONNABORTED", "software caused connection abort"},
|
||||||
|
{104, "ECONNRESET", "connection reset by peer"},
|
||||||
|
{105, "ENOBUFS", "no buffer space available"},
|
||||||
|
{106, "EISCONN", "transport endpoint is already connected"},
|
||||||
|
{107, "ENOTCONN", "transport endpoint is not connected"},
|
||||||
|
{108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||||
|
{109, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||||
|
{110, "ETIMEDOUT", "connection timed out"},
|
||||||
|
{111, "ECONNREFUSED", "connection refused"},
|
||||||
|
{112, "EHOSTDOWN", "host is down"},
|
||||||
|
{113, "EHOSTUNREACH", "no route to host"},
|
||||||
|
{114, "EALREADY", "operation already in progress"},
|
||||||
|
{115, "EINPROGRESS", "operation now in progress"},
|
||||||
|
{116, "ESTALE", "stale file handle"},
|
||||||
|
{117, "EUCLEAN", "structure needs cleaning"},
|
||||||
|
{118, "ENOTNAM", "not a XENIX named type file"},
|
||||||
|
{119, "ENAVAIL", "no XENIX semaphores available"},
|
||||||
|
{120, "EISNAM", "is a named type file"},
|
||||||
|
{121, "EREMOTEIO", "remote I/O error"},
|
||||||
|
{122, "EDQUOT", "disk quota exceeded"},
|
||||||
|
{123, "ENOMEDIUM", "no medium found"},
|
||||||
|
{124, "EMEDIUMTYPE", "wrong medium type"},
|
||||||
|
{125, "ECANCELED", "operation canceled"},
|
||||||
|
{126, "ENOKEY", "required key not available"},
|
||||||
|
{127, "EKEYEXPIRED", "key has expired"},
|
||||||
|
{128, "EKEYREVOKED", "key has been revoked"},
|
||||||
|
{129, "EKEYREJECTED", "key was rejected by service"},
|
||||||
|
{130, "EOWNERDEAD", "owner died"},
|
||||||
|
{131, "ENOTRECOVERABLE", "state not recoverable"},
|
||||||
|
{132, "ERFKILL", "operation not possible due to RF-kill"},
|
||||||
|
{133, "EHWPOISON", "memory page has hardware error"},
|
||||||
|
}
|
||||||
|
|
||||||
|
// Signal table
|
||||||
|
var signalList = [...]struct {
|
||||||
|
num syscall.Signal
|
||||||
|
name string
|
||||||
|
desc string
|
||||||
|
}{
|
||||||
|
{1, "SIGHUP", "hangup"},
|
||||||
|
{2, "SIGINT", "interrupt"},
|
||||||
|
{3, "SIGQUIT", "quit"},
|
||||||
|
{4, "SIGILL", "illegal instruction"},
|
||||||
|
{5, "SIGTRAP", "trace/breakpoint trap"},
|
||||||
|
{6, "SIGABRT", "aborted"},
|
||||||
|
{7, "SIGBUS", "bus error"},
|
||||||
|
{8, "SIGFPE", "floating point exception"},
|
||||||
|
{9, "SIGKILL", "killed"},
|
||||||
|
{10, "SIGUSR1", "user defined signal 1"},
|
||||||
|
{11, "SIGSEGV", "segmentation fault"},
|
||||||
|
{12, "SIGUSR2", "user defined signal 2"},
|
||||||
|
{13, "SIGPIPE", "broken pipe"},
|
||||||
|
{14, "SIGALRM", "alarm clock"},
|
||||||
|
{15, "SIGTERM", "terminated"},
|
||||||
|
{16, "SIGSTKFLT", "stack fault"},
|
||||||
|
{17, "SIGCHLD", "child exited"},
|
||||||
|
{18, "SIGCONT", "continued"},
|
||||||
|
{19, "SIGSTOP", "stopped (signal)"},
|
||||||
|
{20, "SIGTSTP", "stopped"},
|
||||||
|
{21, "SIGTTIN", "stopped (tty input)"},
|
||||||
|
{22, "SIGTTOU", "stopped (tty output)"},
|
||||||
|
{23, "SIGURG", "urgent I/O condition"},
|
||||||
|
{24, "SIGXCPU", "CPU time limit exceeded"},
|
||||||
|
{25, "SIGXFSZ", "file size limit exceeded"},
|
||||||
|
{26, "SIGVTALRM", "virtual timer expired"},
|
||||||
|
{27, "SIGPROF", "profiling timer expired"},
|
||||||
|
{28, "SIGWINCH", "window changed"},
|
||||||
|
{29, "SIGIO", "I/O possible"},
|
||||||
|
{30, "SIGPWR", "power failure"},
|
||||||
|
{31, "SIGSYS", "bad system call"},
|
||||||
|
}
|
||||||
860
vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go
generated
vendored
Normal file
860
vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go
generated
vendored
Normal file
@@ -0,0 +1,860 @@
|
|||||||
|
// Copyright 2020 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build zos && s390x
|
||||||
|
// +build zos,s390x
|
||||||
|
|
||||||
|
// Hand edited based on zerrors_linux_s390x.go
|
||||||
|
// TODO: auto-generate.
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
const (
|
||||||
|
BRKINT = 0x0001
|
||||||
|
CLOCK_MONOTONIC = 0x1
|
||||||
|
CLOCK_PROCESS_CPUTIME_ID = 0x2
|
||||||
|
CLOCK_REALTIME = 0x0
|
||||||
|
CLOCK_THREAD_CPUTIME_ID = 0x3
|
||||||
|
CS8 = 0x0030
|
||||||
|
CSIZE = 0x0030
|
||||||
|
ECHO = 0x00000008
|
||||||
|
ECHONL = 0x00000001
|
||||||
|
FD_CLOEXEC = 0x01
|
||||||
|
FD_CLOFORK = 0x02
|
||||||
|
FNDELAY = 0x04
|
||||||
|
F_CLOSFD = 9
|
||||||
|
F_CONTROL_CVT = 13
|
||||||
|
F_DUPFD = 0
|
||||||
|
F_DUPFD2 = 8
|
||||||
|
F_GETFD = 1
|
||||||
|
F_GETFL = 259
|
||||||
|
F_GETLK = 5
|
||||||
|
F_GETOWN = 10
|
||||||
|
F_OK = 0x0
|
||||||
|
F_RDLCK = 1
|
||||||
|
F_SETFD = 2
|
||||||
|
F_SETFL = 4
|
||||||
|
F_SETLK = 6
|
||||||
|
F_SETLKW = 7
|
||||||
|
F_SETOWN = 11
|
||||||
|
F_SETTAG = 12
|
||||||
|
F_UNLCK = 3
|
||||||
|
F_WRLCK = 2
|
||||||
|
FSTYPE_ZFS = 0xe9 //"Z"
|
||||||
|
FSTYPE_HFS = 0xc8 //"H"
|
||||||
|
FSTYPE_NFS = 0xd5 //"N"
|
||||||
|
FSTYPE_TFS = 0xe3 //"T"
|
||||||
|
FSTYPE_AUTOMOUNT = 0xc1 //"A"
|
||||||
|
IP6F_MORE_FRAG = 0x0001
|
||||||
|
IP6F_OFF_MASK = 0xfff8
|
||||||
|
IP6F_RESERVED_MASK = 0x0006
|
||||||
|
IP6OPT_JUMBO = 0xc2
|
||||||
|
IP6OPT_JUMBO_LEN = 6
|
||||||
|
IP6OPT_MUTABLE = 0x20
|
||||||
|
IP6OPT_NSAP_ADDR = 0xc3
|
||||||
|
IP6OPT_PAD1 = 0x00
|
||||||
|
IP6OPT_PADN = 0x01
|
||||||
|
IP6OPT_ROUTER_ALERT = 0x05
|
||||||
|
IP6OPT_TUNNEL_LIMIT = 0x04
|
||||||
|
IP6OPT_TYPE_DISCARD = 0x40
|
||||||
|
IP6OPT_TYPE_FORCEICMP = 0x80
|
||||||
|
IP6OPT_TYPE_ICMP = 0xc0
|
||||||
|
IP6OPT_TYPE_SKIP = 0x00
|
||||||
|
IP6_ALERT_AN = 0x0002
|
||||||
|
IP6_ALERT_MLD = 0x0000
|
||||||
|
IP6_ALERT_RSVP = 0x0001
|
||||||
|
IPPORT_RESERVED = 1024
|
||||||
|
IPPORT_USERRESERVED = 5000
|
||||||
|
IPPROTO_AH = 51
|
||||||
|
SOL_AH = 51
|
||||||
|
IPPROTO_DSTOPTS = 60
|
||||||
|
SOL_DSTOPTS = 60
|
||||||
|
IPPROTO_EGP = 8
|
||||||
|
SOL_EGP = 8
|
||||||
|
IPPROTO_ESP = 50
|
||||||
|
SOL_ESP = 50
|
||||||
|
IPPROTO_FRAGMENT = 44
|
||||||
|
SOL_FRAGMENT = 44
|
||||||
|
IPPROTO_GGP = 2
|
||||||
|
SOL_GGP = 2
|
||||||
|
IPPROTO_HOPOPTS = 0
|
||||||
|
SOL_HOPOPTS = 0
|
||||||
|
IPPROTO_ICMP = 1
|
||||||
|
SOL_ICMP = 1
|
||||||
|
IPPROTO_ICMPV6 = 58
|
||||||
|
SOL_ICMPV6 = 58
|
||||||
|
IPPROTO_IDP = 22
|
||||||
|
SOL_IDP = 22
|
||||||
|
IPPROTO_IP = 0
|
||||||
|
SOL_IP = 0
|
||||||
|
IPPROTO_IPV6 = 41
|
||||||
|
SOL_IPV6 = 41
|
||||||
|
IPPROTO_MAX = 256
|
||||||
|
SOL_MAX = 256
|
||||||
|
IPPROTO_NONE = 59
|
||||||
|
SOL_NONE = 59
|
||||||
|
IPPROTO_PUP = 12
|
||||||
|
SOL_PUP = 12
|
||||||
|
IPPROTO_RAW = 255
|
||||||
|
SOL_RAW = 255
|
||||||
|
IPPROTO_ROUTING = 43
|
||||||
|
SOL_ROUTING = 43
|
||||||
|
IPPROTO_TCP = 6
|
||||||
|
SOL_TCP = 6
|
||||||
|
IPPROTO_UDP = 17
|
||||||
|
SOL_UDP = 17
|
||||||
|
IPV6_ADDR_PREFERENCES = 32
|
||||||
|
IPV6_CHECKSUM = 19
|
||||||
|
IPV6_DONTFRAG = 29
|
||||||
|
IPV6_DSTOPTS = 23
|
||||||
|
IPV6_HOPLIMIT = 11
|
||||||
|
IPV6_HOPOPTS = 22
|
||||||
|
IPV6_JOIN_GROUP = 5
|
||||||
|
IPV6_LEAVE_GROUP = 6
|
||||||
|
IPV6_MULTICAST_HOPS = 9
|
||||||
|
IPV6_MULTICAST_IF = 7
|
||||||
|
IPV6_MULTICAST_LOOP = 4
|
||||||
|
IPV6_NEXTHOP = 20
|
||||||
|
IPV6_PATHMTU = 12
|
||||||
|
IPV6_PKTINFO = 13
|
||||||
|
IPV6_PREFER_SRC_CGA = 0x10
|
||||||
|
IPV6_PREFER_SRC_COA = 0x02
|
||||||
|
IPV6_PREFER_SRC_HOME = 0x01
|
||||||
|
IPV6_PREFER_SRC_NONCGA = 0x20
|
||||||
|
IPV6_PREFER_SRC_PUBLIC = 0x08
|
||||||
|
IPV6_PREFER_SRC_TMP = 0x04
|
||||||
|
IPV6_RECVDSTOPTS = 28
|
||||||
|
IPV6_RECVHOPLIMIT = 14
|
||||||
|
IPV6_RECVHOPOPTS = 26
|
||||||
|
IPV6_RECVPATHMTU = 16
|
||||||
|
IPV6_RECVPKTINFO = 15
|
||||||
|
IPV6_RECVRTHDR = 25
|
||||||
|
IPV6_RECVTCLASS = 31
|
||||||
|
IPV6_RTHDR = 21
|
||||||
|
IPV6_RTHDRDSTOPTS = 24
|
||||||
|
IPV6_RTHDR_TYPE_0 = 0
|
||||||
|
IPV6_TCLASS = 30
|
||||||
|
IPV6_UNICAST_HOPS = 3
|
||||||
|
IPV6_USE_MIN_MTU = 18
|
||||||
|
IPV6_V6ONLY = 10
|
||||||
|
IP_ADD_MEMBERSHIP = 5
|
||||||
|
IP_ADD_SOURCE_MEMBERSHIP = 12
|
||||||
|
IP_BLOCK_SOURCE = 10
|
||||||
|
IP_DEFAULT_MULTICAST_LOOP = 1
|
||||||
|
IP_DEFAULT_MULTICAST_TTL = 1
|
||||||
|
IP_DROP_MEMBERSHIP = 6
|
||||||
|
IP_DROP_SOURCE_MEMBERSHIP = 13
|
||||||
|
IP_MAX_MEMBERSHIPS = 20
|
||||||
|
IP_MULTICAST_IF = 7
|
||||||
|
IP_MULTICAST_LOOP = 4
|
||||||
|
IP_MULTICAST_TTL = 3
|
||||||
|
IP_OPTIONS = 1
|
||||||
|
IP_PKTINFO = 101
|
||||||
|
IP_RECVPKTINFO = 102
|
||||||
|
IP_TOS = 2
|
||||||
|
IP_TTL = 3
|
||||||
|
IP_UNBLOCK_SOURCE = 11
|
||||||
|
ICANON = 0x0010
|
||||||
|
ICMP6_FILTER = 0x26
|
||||||
|
ICRNL = 0x0002
|
||||||
|
IEXTEN = 0x0020
|
||||||
|
IGNBRK = 0x0004
|
||||||
|
IGNCR = 0x0008
|
||||||
|
INLCR = 0x0020
|
||||||
|
ISIG = 0x0040
|
||||||
|
ISTRIP = 0x0080
|
||||||
|
IXON = 0x0200
|
||||||
|
IXOFF = 0x0100
|
||||||
|
LOCK_SH = 0x1 // Not exist on zOS
|
||||||
|
LOCK_EX = 0x2 // Not exist on zOS
|
||||||
|
LOCK_NB = 0x4 // Not exist on zOS
|
||||||
|
LOCK_UN = 0x8 // Not exist on zOS
|
||||||
|
POLLIN = 0x0003
|
||||||
|
POLLOUT = 0x0004
|
||||||
|
POLLPRI = 0x0010
|
||||||
|
POLLERR = 0x0020
|
||||||
|
POLLHUP = 0x0040
|
||||||
|
POLLNVAL = 0x0080
|
||||||
|
PROT_READ = 0x1 // mmap - page can be read
|
||||||
|
PROT_WRITE = 0x2 // page can be written
|
||||||
|
PROT_NONE = 0x4 // can't be accessed
|
||||||
|
PROT_EXEC = 0x8 // can be executed
|
||||||
|
MAP_PRIVATE = 0x1 // changes are private
|
||||||
|
MAP_SHARED = 0x2 // changes are shared
|
||||||
|
MAP_FIXED = 0x4 // place exactly
|
||||||
|
MCAST_JOIN_GROUP = 40
|
||||||
|
MCAST_LEAVE_GROUP = 41
|
||||||
|
MCAST_JOIN_SOURCE_GROUP = 42
|
||||||
|
MCAST_LEAVE_SOURCE_GROUP = 43
|
||||||
|
MCAST_BLOCK_SOURCE = 44
|
||||||
|
MCAST_UNBLOCK_SOURCE = 45
|
||||||
|
MS_SYNC = 0x1 // msync - synchronous writes
|
||||||
|
MS_ASYNC = 0x2 // asynchronous writes
|
||||||
|
MS_INVALIDATE = 0x4 // invalidate mappings
|
||||||
|
MTM_RDONLY = 0x80000000
|
||||||
|
MTM_RDWR = 0x40000000
|
||||||
|
MTM_UMOUNT = 0x10000000
|
||||||
|
MTM_IMMED = 0x08000000
|
||||||
|
MTM_FORCE = 0x04000000
|
||||||
|
MTM_DRAIN = 0x02000000
|
||||||
|
MTM_RESET = 0x01000000
|
||||||
|
MTM_SAMEMODE = 0x00100000
|
||||||
|
MTM_UNQSEFORCE = 0x00040000
|
||||||
|
MTM_NOSUID = 0x00000400
|
||||||
|
MTM_SYNCHONLY = 0x00000200
|
||||||
|
MTM_REMOUNT = 0x00000100
|
||||||
|
MTM_NOSECURITY = 0x00000080
|
||||||
|
NFDBITS = 0x20
|
||||||
|
O_ACCMODE = 0x03
|
||||||
|
O_APPEND = 0x08
|
||||||
|
O_ASYNCSIG = 0x0200
|
||||||
|
O_CREAT = 0x80
|
||||||
|
O_EXCL = 0x40
|
||||||
|
O_GETFL = 0x0F
|
||||||
|
O_LARGEFILE = 0x0400
|
||||||
|
O_NONBLOCK = 0x04
|
||||||
|
O_RDONLY = 0x02
|
||||||
|
O_RDWR = 0x03
|
||||||
|
O_SYNC = 0x0100
|
||||||
|
O_TRUNC = 0x10
|
||||||
|
O_WRONLY = 0x01
|
||||||
|
O_NOCTTY = 0x20
|
||||||
|
OPOST = 0x0001
|
||||||
|
ONLCR = 0x0004
|
||||||
|
PARENB = 0x0200
|
||||||
|
PARMRK = 0x0400
|
||||||
|
QUERYCVT = 3
|
||||||
|
RUSAGE_CHILDREN = -0x1
|
||||||
|
RUSAGE_SELF = 0x0 // RUSAGE_THREAD unsupported on z/OS
|
||||||
|
SEEK_CUR = 1
|
||||||
|
SEEK_END = 2
|
||||||
|
SEEK_SET = 0
|
||||||
|
SETAUTOCVTALL = 5
|
||||||
|
SETAUTOCVTON = 2
|
||||||
|
SETCVTALL = 4
|
||||||
|
SETCVTOFF = 0
|
||||||
|
SETCVTON = 1
|
||||||
|
AF_APPLETALK = 16
|
||||||
|
AF_CCITT = 10
|
||||||
|
AF_CHAOS = 5
|
||||||
|
AF_DATAKIT = 9
|
||||||
|
AF_DLI = 13
|
||||||
|
AF_ECMA = 8
|
||||||
|
AF_HYLINK = 15
|
||||||
|
AF_IMPLINK = 3
|
||||||
|
AF_INET = 2
|
||||||
|
AF_INET6 = 19
|
||||||
|
AF_INTF = 20
|
||||||
|
AF_IUCV = 17
|
||||||
|
AF_LAT = 14
|
||||||
|
AF_LINK = 18
|
||||||
|
AF_MAX = 30
|
||||||
|
AF_NBS = 7
|
||||||
|
AF_NDD = 23
|
||||||
|
AF_NETWARE = 22
|
||||||
|
AF_NS = 6
|
||||||
|
AF_PUP = 4
|
||||||
|
AF_RIF = 21
|
||||||
|
AF_ROUTE = 20
|
||||||
|
AF_SNA = 11
|
||||||
|
AF_UNIX = 1
|
||||||
|
AF_UNSPEC = 0
|
||||||
|
IBMTCP_IMAGE = 1
|
||||||
|
MSG_ACK_EXPECTED = 0x10
|
||||||
|
MSG_ACK_GEN = 0x40
|
||||||
|
MSG_ACK_TIMEOUT = 0x20
|
||||||
|
MSG_CONNTERM = 0x80
|
||||||
|
MSG_CTRUNC = 0x20
|
||||||
|
MSG_DONTROUTE = 0x4
|
||||||
|
MSG_EOF = 0x8000
|
||||||
|
MSG_EOR = 0x8
|
||||||
|
MSG_MAXIOVLEN = 16
|
||||||
|
MSG_NONBLOCK = 0x4000
|
||||||
|
MSG_OOB = 0x1
|
||||||
|
MSG_PEEK = 0x2
|
||||||
|
MSG_TRUNC = 0x10
|
||||||
|
MSG_WAITALL = 0x40
|
||||||
|
PRIO_PROCESS = 1
|
||||||
|
PRIO_PGRP = 2
|
||||||
|
PRIO_USER = 3
|
||||||
|
RLIMIT_CPU = 0
|
||||||
|
RLIMIT_FSIZE = 1
|
||||||
|
RLIMIT_DATA = 2
|
||||||
|
RLIMIT_STACK = 3
|
||||||
|
RLIMIT_CORE = 4
|
||||||
|
RLIMIT_AS = 5
|
||||||
|
RLIMIT_NOFILE = 6
|
||||||
|
RLIMIT_MEMLIMIT = 7
|
||||||
|
RLIM_INFINITY = 2147483647
|
||||||
|
SCM_RIGHTS = 0x01
|
||||||
|
SF_CLOSE = 0x00000002
|
||||||
|
SF_REUSE = 0x00000001
|
||||||
|
SHUT_RD = 0
|
||||||
|
SHUT_RDWR = 2
|
||||||
|
SHUT_WR = 1
|
||||||
|
SOCK_CONN_DGRAM = 6
|
||||||
|
SOCK_DGRAM = 2
|
||||||
|
SOCK_RAW = 3
|
||||||
|
SOCK_RDM = 4
|
||||||
|
SOCK_SEQPACKET = 5
|
||||||
|
SOCK_STREAM = 1
|
||||||
|
SOL_SOCKET = 0xffff
|
||||||
|
SOMAXCONN = 10
|
||||||
|
SO_ACCEPTCONN = 0x0002
|
||||||
|
SO_ACCEPTECONNABORTED = 0x0006
|
||||||
|
SO_ACKNOW = 0x7700
|
||||||
|
SO_BROADCAST = 0x0020
|
||||||
|
SO_BULKMODE = 0x8000
|
||||||
|
SO_CKSUMRECV = 0x0800
|
||||||
|
SO_CLOSE = 0x01
|
||||||
|
SO_CLUSTERCONNTYPE = 0x00004001
|
||||||
|
SO_CLUSTERCONNTYPE_INTERNAL = 8
|
||||||
|
SO_CLUSTERCONNTYPE_NOCONN = 0
|
||||||
|
SO_CLUSTERCONNTYPE_NONE = 1
|
||||||
|
SO_CLUSTERCONNTYPE_SAME_CLUSTER = 2
|
||||||
|
SO_CLUSTERCONNTYPE_SAME_IMAGE = 4
|
||||||
|
SO_DEBUG = 0x0001
|
||||||
|
SO_DONTROUTE = 0x0010
|
||||||
|
SO_ERROR = 0x1007
|
||||||
|
SO_IGNOREINCOMINGPUSH = 0x1
|
||||||
|
SO_IGNORESOURCEVIPA = 0x0002
|
||||||
|
SO_KEEPALIVE = 0x0008
|
||||||
|
SO_LINGER = 0x0080
|
||||||
|
SO_NONBLOCKLOCAL = 0x8001
|
||||||
|
SO_NOREUSEADDR = 0x1000
|
||||||
|
SO_OOBINLINE = 0x0100
|
||||||
|
SO_OPTACK = 0x8004
|
||||||
|
SO_OPTMSS = 0x8003
|
||||||
|
SO_RCVBUF = 0x1002
|
||||||
|
SO_RCVLOWAT = 0x1004
|
||||||
|
SO_RCVTIMEO = 0x1006
|
||||||
|
SO_REUSEADDR = 0x0004
|
||||||
|
SO_REUSEPORT = 0x0200
|
||||||
|
SO_SECINFO = 0x00004002
|
||||||
|
SO_SET = 0x0200
|
||||||
|
SO_SNDBUF = 0x1001
|
||||||
|
SO_SNDLOWAT = 0x1003
|
||||||
|
SO_SNDTIMEO = 0x1005
|
||||||
|
SO_TYPE = 0x1008
|
||||||
|
SO_UNSET = 0x0400
|
||||||
|
SO_USELOOPBACK = 0x0040
|
||||||
|
SO_USE_IFBUFS = 0x0400
|
||||||
|
S_ISUID = 0x0800
|
||||||
|
S_ISGID = 0x0400
|
||||||
|
S_ISVTX = 0x0200
|
||||||
|
S_IRUSR = 0x0100
|
||||||
|
S_IWUSR = 0x0080
|
||||||
|
S_IXUSR = 0x0040
|
||||||
|
S_IRWXU = 0x01C0
|
||||||
|
S_IRGRP = 0x0020
|
||||||
|
S_IWGRP = 0x0010
|
||||||
|
S_IXGRP = 0x0008
|
||||||
|
S_IRWXG = 0x0038
|
||||||
|
S_IROTH = 0x0004
|
||||||
|
S_IWOTH = 0x0002
|
||||||
|
S_IXOTH = 0x0001
|
||||||
|
S_IRWXO = 0x0007
|
||||||
|
S_IREAD = S_IRUSR
|
||||||
|
S_IWRITE = S_IWUSR
|
||||||
|
S_IEXEC = S_IXUSR
|
||||||
|
S_IFDIR = 0x01000000
|
||||||
|
S_IFCHR = 0x02000000
|
||||||
|
S_IFREG = 0x03000000
|
||||||
|
S_IFFIFO = 0x04000000
|
||||||
|
S_IFIFO = 0x04000000
|
||||||
|
S_IFLNK = 0x05000000
|
||||||
|
S_IFBLK = 0x06000000
|
||||||
|
S_IFSOCK = 0x07000000
|
||||||
|
S_IFVMEXTL = 0xFE000000
|
||||||
|
S_IFVMEXTL_EXEC = 0x00010000
|
||||||
|
S_IFVMEXTL_DATA = 0x00020000
|
||||||
|
S_IFVMEXTL_MEL = 0x00030000
|
||||||
|
S_IFEXTL = 0x00000001
|
||||||
|
S_IFPROGCTL = 0x00000002
|
||||||
|
S_IFAPFCTL = 0x00000004
|
||||||
|
S_IFNOSHARE = 0x00000008
|
||||||
|
S_IFSHARELIB = 0x00000010
|
||||||
|
S_IFMT = 0xFF000000
|
||||||
|
S_IFMST = 0x00FF0000
|
||||||
|
TCP_KEEPALIVE = 0x8
|
||||||
|
TCP_NODELAY = 0x1
|
||||||
|
TCP_INFO = 0xb
|
||||||
|
TCP_USER_TIMEOUT = 0x1
|
||||||
|
TIOCGWINSZ = 0x4008a368
|
||||||
|
TIOCSWINSZ = 0x8008a367
|
||||||
|
TIOCSBRK = 0x2000a77b
|
||||||
|
TIOCCBRK = 0x2000a77a
|
||||||
|
TIOCSTI = 0x8001a772
|
||||||
|
TIOCGPGRP = 0x4004a777 // _IOR(167, 119, int)
|
||||||
|
TCSANOW = 0
|
||||||
|
TCSETS = 0 // equivalent to TCSANOW for tcsetattr
|
||||||
|
TCSADRAIN = 1
|
||||||
|
TCSETSW = 1 // equivalent to TCSADRAIN for tcsetattr
|
||||||
|
TCSAFLUSH = 2
|
||||||
|
TCSETSF = 2 // equivalent to TCSAFLUSH for tcsetattr
|
||||||
|
TCGETS = 3 // not defined in ioctl.h -- zos golang only
|
||||||
|
TCIFLUSH = 0
|
||||||
|
TCOFLUSH = 1
|
||||||
|
TCIOFLUSH = 2
|
||||||
|
TCOOFF = 0
|
||||||
|
TCOON = 1
|
||||||
|
TCIOFF = 2
|
||||||
|
TCION = 3
|
||||||
|
TIOCSPGRP = 0x8004a776
|
||||||
|
TIOCNOTTY = 0x2000a771
|
||||||
|
TIOCEXCL = 0x2000a70d
|
||||||
|
TIOCNXCL = 0x2000a70e
|
||||||
|
TIOCGETD = 0x4004a700
|
||||||
|
TIOCSETD = 0x8004a701
|
||||||
|
TIOCPKT = 0x8004a770
|
||||||
|
TIOCSTOP = 0x2000a76f
|
||||||
|
TIOCSTART = 0x2000a76e
|
||||||
|
TIOCUCNTL = 0x8004a766
|
||||||
|
TIOCREMOTE = 0x8004a769
|
||||||
|
TIOCMGET = 0x4004a76a
|
||||||
|
TIOCMSET = 0x8004a76d
|
||||||
|
TIOCMBIC = 0x8004a76b
|
||||||
|
TIOCMBIS = 0x8004a76c
|
||||||
|
VINTR = 0
|
||||||
|
VQUIT = 1
|
||||||
|
VERASE = 2
|
||||||
|
VKILL = 3
|
||||||
|
VEOF = 4
|
||||||
|
VEOL = 5
|
||||||
|
VMIN = 6
|
||||||
|
VSTART = 7
|
||||||
|
VSTOP = 8
|
||||||
|
VSUSP = 9
|
||||||
|
VTIME = 10
|
||||||
|
WCONTINUED = 0x4
|
||||||
|
WNOHANG = 0x1
|
||||||
|
WUNTRACED = 0x2
|
||||||
|
_BPX_SWAP = 1
|
||||||
|
_BPX_NONSWAP = 2
|
||||||
|
MCL_CURRENT = 1 // for Linux compatibility -- no zos semantics
|
||||||
|
MCL_FUTURE = 2 // for Linux compatibility -- no zos semantics
|
||||||
|
MCL_ONFAULT = 3 // for Linux compatibility -- no zos semantics
|
||||||
|
MADV_NORMAL = 0 // for Linux compatibility -- no zos semantics
|
||||||
|
MADV_RANDOM = 1 // for Linux compatibility -- no zos semantics
|
||||||
|
MADV_SEQUENTIAL = 2 // for Linux compatibility -- no zos semantics
|
||||||
|
MADV_WILLNEED = 3 // for Linux compatibility -- no zos semantics
|
||||||
|
MADV_REMOVE = 4 // for Linux compatibility -- no zos semantics
|
||||||
|
MADV_DONTFORK = 5 // for Linux compatibility -- no zos semantics
|
||||||
|
MADV_DOFORK = 6 // for Linux compatibility -- no zos semantics
|
||||||
|
MADV_HWPOISON = 7 // for Linux compatibility -- no zos semantics
|
||||||
|
MADV_MERGEABLE = 8 // for Linux compatibility -- no zos semantics
|
||||||
|
MADV_UNMERGEABLE = 9 // for Linux compatibility -- no zos semantics
|
||||||
|
MADV_SOFT_OFFLINE = 10 // for Linux compatibility -- no zos semantics
|
||||||
|
MADV_HUGEPAGE = 11 // for Linux compatibility -- no zos semantics
|
||||||
|
MADV_NOHUGEPAGE = 12 // for Linux compatibility -- no zos semantics
|
||||||
|
MADV_DONTDUMP = 13 // for Linux compatibility -- no zos semantics
|
||||||
|
MADV_DODUMP = 14 // for Linux compatibility -- no zos semantics
|
||||||
|
MADV_FREE = 15 // for Linux compatibility -- no zos semantics
|
||||||
|
MADV_WIPEONFORK = 16 // for Linux compatibility -- no zos semantics
|
||||||
|
MADV_KEEPONFORK = 17 // for Linux compatibility -- no zos semantics
|
||||||
|
AT_SYMLINK_NOFOLLOW = 1 // for Unix compatibility -- no zos semantics
|
||||||
|
AT_FDCWD = 2 // for Unix compatibility -- no zos semantics
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
EDOM = Errno(1)
|
||||||
|
ERANGE = Errno(2)
|
||||||
|
EACCES = Errno(111)
|
||||||
|
EAGAIN = Errno(112)
|
||||||
|
EBADF = Errno(113)
|
||||||
|
EBUSY = Errno(114)
|
||||||
|
ECHILD = Errno(115)
|
||||||
|
EDEADLK = Errno(116)
|
||||||
|
EEXIST = Errno(117)
|
||||||
|
EFAULT = Errno(118)
|
||||||
|
EFBIG = Errno(119)
|
||||||
|
EINTR = Errno(120)
|
||||||
|
EINVAL = Errno(121)
|
||||||
|
EIO = Errno(122)
|
||||||
|
EISDIR = Errno(123)
|
||||||
|
EMFILE = Errno(124)
|
||||||
|
EMLINK = Errno(125)
|
||||||
|
ENAMETOOLONG = Errno(126)
|
||||||
|
ENFILE = Errno(127)
|
||||||
|
ENODEV = Errno(128)
|
||||||
|
ENOENT = Errno(129)
|
||||||
|
ENOEXEC = Errno(130)
|
||||||
|
ENOLCK = Errno(131)
|
||||||
|
ENOMEM = Errno(132)
|
||||||
|
ENOSPC = Errno(133)
|
||||||
|
ENOSYS = Errno(134)
|
||||||
|
ENOTDIR = Errno(135)
|
||||||
|
ENOTEMPTY = Errno(136)
|
||||||
|
ENOTTY = Errno(137)
|
||||||
|
ENXIO = Errno(138)
|
||||||
|
EPERM = Errno(139)
|
||||||
|
EPIPE = Errno(140)
|
||||||
|
EROFS = Errno(141)
|
||||||
|
ESPIPE = Errno(142)
|
||||||
|
ESRCH = Errno(143)
|
||||||
|
EXDEV = Errno(144)
|
||||||
|
E2BIG = Errno(145)
|
||||||
|
ELOOP = Errno(146)
|
||||||
|
EILSEQ = Errno(147)
|
||||||
|
ENODATA = Errno(148)
|
||||||
|
EOVERFLOW = Errno(149)
|
||||||
|
EMVSNOTUP = Errno(150)
|
||||||
|
ECMSSTORAGE = Errno(151)
|
||||||
|
EMVSDYNALC = Errno(151)
|
||||||
|
EMVSCVAF = Errno(152)
|
||||||
|
EMVSCATLG = Errno(153)
|
||||||
|
ECMSINITIAL = Errno(156)
|
||||||
|
EMVSINITIAL = Errno(156)
|
||||||
|
ECMSERR = Errno(157)
|
||||||
|
EMVSERR = Errno(157)
|
||||||
|
EMVSPARM = Errno(158)
|
||||||
|
ECMSPFSFILE = Errno(159)
|
||||||
|
EMVSPFSFILE = Errno(159)
|
||||||
|
EMVSBADCHAR = Errno(160)
|
||||||
|
ECMSPFSPERM = Errno(162)
|
||||||
|
EMVSPFSPERM = Errno(162)
|
||||||
|
EMVSSAFEXTRERR = Errno(163)
|
||||||
|
EMVSSAF2ERR = Errno(164)
|
||||||
|
EMVSTODNOTSET = Errno(165)
|
||||||
|
EMVSPATHOPTS = Errno(166)
|
||||||
|
EMVSNORTL = Errno(167)
|
||||||
|
EMVSEXPIRE = Errno(168)
|
||||||
|
EMVSPASSWORD = Errno(169)
|
||||||
|
EMVSWLMERROR = Errno(170)
|
||||||
|
EMVSCPLERROR = Errno(171)
|
||||||
|
EMVSARMERROR = Errno(172)
|
||||||
|
ELENOFORK = Errno(200)
|
||||||
|
ELEMSGERR = Errno(201)
|
||||||
|
EFPMASKINV = Errno(202)
|
||||||
|
EFPMODEINV = Errno(203)
|
||||||
|
EBUFLEN = Errno(227)
|
||||||
|
EEXTLINK = Errno(228)
|
||||||
|
ENODD = Errno(229)
|
||||||
|
ECMSESMERR = Errno(230)
|
||||||
|
ECPERR = Errno(231)
|
||||||
|
ELEMULTITHREAD = Errno(232)
|
||||||
|
ELEFENCE = Errno(244)
|
||||||
|
EBADDATA = Errno(245)
|
||||||
|
EUNKNOWN = Errno(246)
|
||||||
|
ENOTSUP = Errno(247)
|
||||||
|
EBADNAME = Errno(248)
|
||||||
|
ENOTSAFE = Errno(249)
|
||||||
|
ELEMULTITHREADFORK = Errno(257)
|
||||||
|
ECUNNOENV = Errno(258)
|
||||||
|
ECUNNOCONV = Errno(259)
|
||||||
|
ECUNNOTALIGNED = Errno(260)
|
||||||
|
ECUNERR = Errno(262)
|
||||||
|
EIBMBADCALL = Errno(1000)
|
||||||
|
EIBMBADPARM = Errno(1001)
|
||||||
|
EIBMSOCKOUTOFRANGE = Errno(1002)
|
||||||
|
EIBMSOCKINUSE = Errno(1003)
|
||||||
|
EIBMIUCVERR = Errno(1004)
|
||||||
|
EOFFLOADboxERROR = Errno(1005)
|
||||||
|
EOFFLOADboxRESTART = Errno(1006)
|
||||||
|
EOFFLOADboxDOWN = Errno(1007)
|
||||||
|
EIBMCONFLICT = Errno(1008)
|
||||||
|
EIBMCANCELLED = Errno(1009)
|
||||||
|
EIBMBADTCPNAME = Errno(1011)
|
||||||
|
ENOTBLK = Errno(1100)
|
||||||
|
ETXTBSY = Errno(1101)
|
||||||
|
EWOULDBLOCK = Errno(1102)
|
||||||
|
EINPROGRESS = Errno(1103)
|
||||||
|
EALREADY = Errno(1104)
|
||||||
|
ENOTSOCK = Errno(1105)
|
||||||
|
EDESTADDRREQ = Errno(1106)
|
||||||
|
EMSGSIZE = Errno(1107)
|
||||||
|
EPROTOTYPE = Errno(1108)
|
||||||
|
ENOPROTOOPT = Errno(1109)
|
||||||
|
EPROTONOSUPPORT = Errno(1110)
|
||||||
|
ESOCKTNOSUPPORT = Errno(1111)
|
||||||
|
EOPNOTSUPP = Errno(1112)
|
||||||
|
EPFNOSUPPORT = Errno(1113)
|
||||||
|
EAFNOSUPPORT = Errno(1114)
|
||||||
|
EADDRINUSE = Errno(1115)
|
||||||
|
EADDRNOTAVAIL = Errno(1116)
|
||||||
|
ENETDOWN = Errno(1117)
|
||||||
|
ENETUNREACH = Errno(1118)
|
||||||
|
ENETRESET = Errno(1119)
|
||||||
|
ECONNABORTED = Errno(1120)
|
||||||
|
ECONNRESET = Errno(1121)
|
||||||
|
ENOBUFS = Errno(1122)
|
||||||
|
EISCONN = Errno(1123)
|
||||||
|
ENOTCONN = Errno(1124)
|
||||||
|
ESHUTDOWN = Errno(1125)
|
||||||
|
ETOOMANYREFS = Errno(1126)
|
||||||
|
ETIMEDOUT = Errno(1127)
|
||||||
|
ECONNREFUSED = Errno(1128)
|
||||||
|
EHOSTDOWN = Errno(1129)
|
||||||
|
EHOSTUNREACH = Errno(1130)
|
||||||
|
EPROCLIM = Errno(1131)
|
||||||
|
EUSERS = Errno(1132)
|
||||||
|
EDQUOT = Errno(1133)
|
||||||
|
ESTALE = Errno(1134)
|
||||||
|
EREMOTE = Errno(1135)
|
||||||
|
ENOSTR = Errno(1136)
|
||||||
|
ETIME = Errno(1137)
|
||||||
|
ENOSR = Errno(1138)
|
||||||
|
ENOMSG = Errno(1139)
|
||||||
|
EBADMSG = Errno(1140)
|
||||||
|
EIDRM = Errno(1141)
|
||||||
|
ENONET = Errno(1142)
|
||||||
|
ERREMOTE = Errno(1143)
|
||||||
|
ENOLINK = Errno(1144)
|
||||||
|
EADV = Errno(1145)
|
||||||
|
ESRMNT = Errno(1146)
|
||||||
|
ECOMM = Errno(1147)
|
||||||
|
EPROTO = Errno(1148)
|
||||||
|
EMULTIHOP = Errno(1149)
|
||||||
|
EDOTDOT = Errno(1150)
|
||||||
|
EREMCHG = Errno(1151)
|
||||||
|
ECANCELED = Errno(1152)
|
||||||
|
EINTRNODATA = Errno(1159)
|
||||||
|
ENOREUSE = Errno(1160)
|
||||||
|
ENOMOVE = Errno(1161)
|
||||||
|
)
|
||||||
|
|
||||||
|
// Signals
|
||||||
|
const (
|
||||||
|
SIGHUP = Signal(1)
|
||||||
|
SIGINT = Signal(2)
|
||||||
|
SIGABRT = Signal(3)
|
||||||
|
SIGILL = Signal(4)
|
||||||
|
SIGPOLL = Signal(5)
|
||||||
|
SIGURG = Signal(6)
|
||||||
|
SIGSTOP = Signal(7)
|
||||||
|
SIGFPE = Signal(8)
|
||||||
|
SIGKILL = Signal(9)
|
||||||
|
SIGBUS = Signal(10)
|
||||||
|
SIGSEGV = Signal(11)
|
||||||
|
SIGSYS = Signal(12)
|
||||||
|
SIGPIPE = Signal(13)
|
||||||
|
SIGALRM = Signal(14)
|
||||||
|
SIGTERM = Signal(15)
|
||||||
|
SIGUSR1 = Signal(16)
|
||||||
|
SIGUSR2 = Signal(17)
|
||||||
|
SIGABND = Signal(18)
|
||||||
|
SIGCONT = Signal(19)
|
||||||
|
SIGCHLD = Signal(20)
|
||||||
|
SIGTTIN = Signal(21)
|
||||||
|
SIGTTOU = Signal(22)
|
||||||
|
SIGIO = Signal(23)
|
||||||
|
SIGQUIT = Signal(24)
|
||||||
|
SIGTSTP = Signal(25)
|
||||||
|
SIGTRAP = Signal(26)
|
||||||
|
SIGIOERR = Signal(27)
|
||||||
|
SIGWINCH = Signal(28)
|
||||||
|
SIGXCPU = Signal(29)
|
||||||
|
SIGXFSZ = Signal(30)
|
||||||
|
SIGVTALRM = Signal(31)
|
||||||
|
SIGPROF = Signal(32)
|
||||||
|
SIGDANGER = Signal(33)
|
||||||
|
SIGTHSTOP = Signal(34)
|
||||||
|
SIGTHCONT = Signal(35)
|
||||||
|
SIGTRACE = Signal(37)
|
||||||
|
SIGDCE = Signal(38)
|
||||||
|
SIGDUMP = Signal(39)
|
||||||
|
)
|
||||||
|
|
||||||
|
// Error table
|
||||||
|
var errorList = [...]struct {
|
||||||
|
num Errno
|
||||||
|
name string
|
||||||
|
desc string
|
||||||
|
}{
|
||||||
|
{1, "EDC5001I", "A domain error occurred."},
|
||||||
|
{2, "EDC5002I", "A range error occurred."},
|
||||||
|
{111, "EDC5111I", "Permission denied."},
|
||||||
|
{112, "EDC5112I", "Resource temporarily unavailable."},
|
||||||
|
{113, "EDC5113I", "Bad file descriptor."},
|
||||||
|
{114, "EDC5114I", "Resource busy."},
|
||||||
|
{115, "EDC5115I", "No child processes."},
|
||||||
|
{116, "EDC5116I", "Resource deadlock avoided."},
|
||||||
|
{117, "EDC5117I", "File exists."},
|
||||||
|
{118, "EDC5118I", "Incorrect address."},
|
||||||
|
{119, "EDC5119I", "File too large."},
|
||||||
|
{120, "EDC5120I", "Interrupted function call."},
|
||||||
|
{121, "EDC5121I", "Invalid argument."},
|
||||||
|
{122, "EDC5122I", "Input/output error."},
|
||||||
|
{123, "EDC5123I", "Is a directory."},
|
||||||
|
{124, "EDC5124I", "Too many open files."},
|
||||||
|
{125, "EDC5125I", "Too many links."},
|
||||||
|
{126, "EDC5126I", "Filename too long."},
|
||||||
|
{127, "EDC5127I", "Too many open files in system."},
|
||||||
|
{128, "EDC5128I", "No such device."},
|
||||||
|
{129, "EDC5129I", "No such file or directory."},
|
||||||
|
{130, "EDC5130I", "Exec format error."},
|
||||||
|
{131, "EDC5131I", "No locks available."},
|
||||||
|
{132, "EDC5132I", "Not enough memory."},
|
||||||
|
{133, "EDC5133I", "No space left on device."},
|
||||||
|
{134, "EDC5134I", "Function not implemented."},
|
||||||
|
{135, "EDC5135I", "Not a directory."},
|
||||||
|
{136, "EDC5136I", "Directory not empty."},
|
||||||
|
{137, "EDC5137I", "Inappropriate I/O control operation."},
|
||||||
|
{138, "EDC5138I", "No such device or address."},
|
||||||
|
{139, "EDC5139I", "Operation not permitted."},
|
||||||
|
{140, "EDC5140I", "Broken pipe."},
|
||||||
|
{141, "EDC5141I", "Read-only file system."},
|
||||||
|
{142, "EDC5142I", "Invalid seek."},
|
||||||
|
{143, "EDC5143I", "No such process."},
|
||||||
|
{144, "EDC5144I", "Improper link."},
|
||||||
|
{145, "EDC5145I", "The parameter list is too long, or the message to receive was too large for the buffer."},
|
||||||
|
{146, "EDC5146I", "Too many levels of symbolic links."},
|
||||||
|
{147, "EDC5147I", "Illegal byte sequence."},
|
||||||
|
{148, "", ""},
|
||||||
|
{149, "EDC5149I", "Value Overflow Error."},
|
||||||
|
{150, "EDC5150I", "UNIX System Services is not active."},
|
||||||
|
{151, "EDC5151I", "Dynamic allocation error."},
|
||||||
|
{152, "EDC5152I", "Common VTOC access facility (CVAF) error."},
|
||||||
|
{153, "EDC5153I", "Catalog obtain error."},
|
||||||
|
{156, "EDC5156I", "Process initialization error."},
|
||||||
|
{157, "EDC5157I", "An internal error has occurred."},
|
||||||
|
{158, "EDC5158I", "Bad parameters were passed to the service."},
|
||||||
|
{159, "EDC5159I", "The Physical File System encountered a permanent file error."},
|
||||||
|
{160, "EDC5160I", "Bad character in environment variable name."},
|
||||||
|
{162, "EDC5162I", "The Physical File System encountered a system error."},
|
||||||
|
{163, "EDC5163I", "SAF/RACF extract error."},
|
||||||
|
{164, "EDC5164I", "SAF/RACF error."},
|
||||||
|
{165, "EDC5165I", "System TOD clock not set."},
|
||||||
|
{166, "EDC5166I", "Access mode argument on function call conflicts with PATHOPTS parameter on JCL DD statement."},
|
||||||
|
{167, "EDC5167I", "Access to the UNIX System Services version of the C RTL is denied."},
|
||||||
|
{168, "EDC5168I", "Password has expired."},
|
||||||
|
{169, "EDC5169I", "Password is invalid."},
|
||||||
|
{170, "EDC5170I", "An error was encountered with WLM."},
|
||||||
|
{171, "EDC5171I", "An error was encountered with CPL."},
|
||||||
|
{172, "EDC5172I", "An error was encountered with Application Response Measurement (ARM) component."},
|
||||||
|
{200, "EDC5200I", "The application contains a Language Environment member language that cannot tolerate a fork()."},
|
||||||
|
{201, "EDC5201I", "The Language Environment message file was not found in the hierarchical file system."},
|
||||||
|
{202, "EDC5202E", "DLL facilities are not supported under SPC environment."},
|
||||||
|
{203, "EDC5203E", "DLL facilities are not supported under POSIX environment."},
|
||||||
|
{227, "EDC5227I", "Buffer is not long enough to contain a path definition"},
|
||||||
|
{228, "EDC5228I", "The file referred to is an external link"},
|
||||||
|
{229, "EDC5229I", "No path definition for ddname in effect"},
|
||||||
|
{230, "EDC5230I", "ESM error."},
|
||||||
|
{231, "EDC5231I", "CP or the external security manager had an error"},
|
||||||
|
{232, "EDC5232I", "The function failed because it was invoked from a multithread environment."},
|
||||||
|
{244, "EDC5244I", "The program, module or DLL is not supported in this environment."},
|
||||||
|
{245, "EDC5245I", "Data is not valid."},
|
||||||
|
{246, "EDC5246I", "Unknown system state."},
|
||||||
|
{247, "EDC5247I", "Operation not supported."},
|
||||||
|
{248, "EDC5248I", "The object name specified is not correct."},
|
||||||
|
{249, "EDC5249I", "The function is not allowed."},
|
||||||
|
{257, "EDC5257I", "Function cannot be called in the child process of a fork() from a multithreaded process until exec() is called."},
|
||||||
|
{258, "EDC5258I", "A CUN_RS_NO_UNI_ENV error was issued by Unicode Services."},
|
||||||
|
{259, "EDC5259I", "A CUN_RS_NO_CONVERSION error was issued by Unicode Services."},
|
||||||
|
{260, "EDC5260I", "A CUN_RS_TABLE_NOT_ALIGNED error was issued by Unicode Services."},
|
||||||
|
{262, "EDC5262I", "An iconv() function encountered an unexpected error while using Unicode Services."},
|
||||||
|
{1000, "EDC8000I", "A bad socket-call constant was found in the IUCV header."},
|
||||||
|
{1001, "EDC8001I", "An error was found in the IUCV header."},
|
||||||
|
{1002, "EDC8002I", "A socket descriptor is out of range."},
|
||||||
|
{1003, "EDC8003I", "A socket descriptor is in use."},
|
||||||
|
{1004, "EDC8004I", "Request failed because of an IUCV error."},
|
||||||
|
{1005, "EDC8005I", "Offload box error."},
|
||||||
|
{1006, "EDC8006I", "Offload box restarted."},
|
||||||
|
{1007, "EDC8007I", "Offload box down."},
|
||||||
|
{1008, "EDC8008I", "Already a conflicting call outstanding on socket."},
|
||||||
|
{1009, "EDC8009I", "Request cancelled using a SOCKcallCANCEL request."},
|
||||||
|
{1011, "EDC8011I", "A name of a PFS was specified that either is not configured or is not a Sockets PFS."},
|
||||||
|
{1100, "EDC8100I", "Block device required."},
|
||||||
|
{1101, "EDC8101I", "Text file busy."},
|
||||||
|
{1102, "EDC8102I", "Operation would block."},
|
||||||
|
{1103, "EDC8103I", "Operation now in progress."},
|
||||||
|
{1104, "EDC8104I", "Connection already in progress."},
|
||||||
|
{1105, "EDC8105I", "Socket operation on non-socket."},
|
||||||
|
{1106, "EDC8106I", "Destination address required."},
|
||||||
|
{1107, "EDC8107I", "Message too long."},
|
||||||
|
{1108, "EDC8108I", "Protocol wrong type for socket."},
|
||||||
|
{1109, "EDC8109I", "Protocol not available."},
|
||||||
|
{1110, "EDC8110I", "Protocol not supported."},
|
||||||
|
{1111, "EDC8111I", "Socket type not supported."},
|
||||||
|
{1112, "EDC8112I", "Operation not supported on socket."},
|
||||||
|
{1113, "EDC8113I", "Protocol family not supported."},
|
||||||
|
{1114, "EDC8114I", "Address family not supported."},
|
||||||
|
{1115, "EDC8115I", "Address already in use."},
|
||||||
|
{1116, "EDC8116I", "Address not available."},
|
||||||
|
{1117, "EDC8117I", "Network is down."},
|
||||||
|
{1118, "EDC8118I", "Network is unreachable."},
|
||||||
|
{1119, "EDC8119I", "Network dropped connection on reset."},
|
||||||
|
{1120, "EDC8120I", "Connection ended abnormally."},
|
||||||
|
{1121, "EDC8121I", "Connection reset."},
|
||||||
|
{1122, "EDC8122I", "No buffer space available."},
|
||||||
|
{1123, "EDC8123I", "Socket already connected."},
|
||||||
|
{1124, "EDC8124I", "Socket not connected."},
|
||||||
|
{1125, "EDC8125I", "Can't send after socket shutdown."},
|
||||||
|
{1126, "EDC8126I", "Too many references; can't splice."},
|
||||||
|
{1127, "EDC8127I", "Connection timed out."},
|
||||||
|
{1128, "EDC8128I", "Connection refused."},
|
||||||
|
{1129, "EDC8129I", "Host is not available."},
|
||||||
|
{1130, "EDC8130I", "Host cannot be reached."},
|
||||||
|
{1131, "EDC8131I", "Too many processes."},
|
||||||
|
{1132, "EDC8132I", "Too many users."},
|
||||||
|
{1133, "EDC8133I", "Disk quota exceeded."},
|
||||||
|
{1134, "EDC8134I", "Stale file handle."},
|
||||||
|
{1135, "", ""},
|
||||||
|
{1136, "EDC8136I", "File is not a STREAM."},
|
||||||
|
{1137, "EDC8137I", "STREAMS ioctl() timeout."},
|
||||||
|
{1138, "EDC8138I", "No STREAMS resources."},
|
||||||
|
{1139, "EDC8139I", "The message identified by set_id and msg_id is not in the message catalog."},
|
||||||
|
{1140, "EDC8140I", "Bad message."},
|
||||||
|
{1141, "EDC8141I", "Identifier removed."},
|
||||||
|
{1142, "", ""},
|
||||||
|
{1143, "", ""},
|
||||||
|
{1144, "EDC8144I", "The link has been severed."},
|
||||||
|
{1145, "", ""},
|
||||||
|
{1146, "", ""},
|
||||||
|
{1147, "", ""},
|
||||||
|
{1148, "EDC8148I", "Protocol error."},
|
||||||
|
{1149, "EDC8149I", "Multihop not allowed."},
|
||||||
|
{1150, "", ""},
|
||||||
|
{1151, "", ""},
|
||||||
|
{1152, "EDC8152I", "The asynchronous I/O request has been canceled."},
|
||||||
|
{1159, "EDC8159I", "Function call was interrupted before any data was received."},
|
||||||
|
{1160, "EDC8160I", "Socket reuse is not supported."},
|
||||||
|
{1161, "EDC8161I", "The file system cannot currently be moved."},
|
||||||
|
}
|
||||||
|
|
||||||
|
// Signal table
|
||||||
|
var signalList = [...]struct {
|
||||||
|
num Signal
|
||||||
|
name string
|
||||||
|
desc string
|
||||||
|
}{
|
||||||
|
{1, "SIGHUP", "hangup"},
|
||||||
|
{2, "SIGINT", "interrupt"},
|
||||||
|
{3, "SIGABT", "aborted"},
|
||||||
|
{4, "SIGILL", "illegal instruction"},
|
||||||
|
{5, "SIGPOLL", "pollable event"},
|
||||||
|
{6, "SIGURG", "urgent I/O condition"},
|
||||||
|
{7, "SIGSTOP", "stop process"},
|
||||||
|
{8, "SIGFPE", "floating point exception"},
|
||||||
|
{9, "SIGKILL", "killed"},
|
||||||
|
{10, "SIGBUS", "bus error"},
|
||||||
|
{11, "SIGSEGV", "segmentation fault"},
|
||||||
|
{12, "SIGSYS", "bad argument to routine"},
|
||||||
|
{13, "SIGPIPE", "broken pipe"},
|
||||||
|
{14, "SIGALRM", "alarm clock"},
|
||||||
|
{15, "SIGTERM", "terminated"},
|
||||||
|
{16, "SIGUSR1", "user defined signal 1"},
|
||||||
|
{17, "SIGUSR2", "user defined signal 2"},
|
||||||
|
{18, "SIGABND", "abend"},
|
||||||
|
{19, "SIGCONT", "continued"},
|
||||||
|
{20, "SIGCHLD", "child exited"},
|
||||||
|
{21, "SIGTTIN", "stopped (tty input)"},
|
||||||
|
{22, "SIGTTOU", "stopped (tty output)"},
|
||||||
|
{23, "SIGIO", "I/O possible"},
|
||||||
|
{24, "SIGQUIT", "quit"},
|
||||||
|
{25, "SIGTSTP", "stopped"},
|
||||||
|
{26, "SIGTRAP", "trace/breakpoint trap"},
|
||||||
|
{27, "SIGIOER", "I/O error"},
|
||||||
|
{28, "SIGWINCH", "window changed"},
|
||||||
|
{29, "SIGXCPU", "CPU time limit exceeded"},
|
||||||
|
{30, "SIGXFSZ", "file size limit exceeded"},
|
||||||
|
{31, "SIGVTALRM", "virtual timer expired"},
|
||||||
|
{32, "SIGPROF", "profiling timer expired"},
|
||||||
|
{33, "SIGDANGER", "danger"},
|
||||||
|
{34, "SIGTHSTOP", "stop thread"},
|
||||||
|
{35, "SIGTHCONT", "continue thread"},
|
||||||
|
{37, "SIGTRACE", "trace"},
|
||||||
|
{38, "", "DCE"},
|
||||||
|
{39, "SIGDUMP", "dump"},
|
||||||
|
}
|
||||||
762
vendor/golang.org/x/sys/unix/zsyscall_linux_ppc.go
generated
vendored
Normal file
762
vendor/golang.org/x/sys/unix/zsyscall_linux_ppc.go
generated
vendored
Normal file
@@ -0,0 +1,762 @@
|
|||||||
|
// go run mksyscall.go -b32 -tags linux,ppc syscall_linux.go syscall_linux_ppc.go
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
//go:build linux && ppc
|
||||||
|
// +build linux,ppc
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"syscall"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
var _ syscall.Errno
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func fanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname *byte) (err error) {
|
||||||
|
_, _, e1 := Syscall6(SYS_FANOTIFY_MARK, uintptr(fd), uintptr(flags), uintptr(mask>>32), uintptr(mask), uintptr(dirFd), uintptr(unsafe.Pointer(pathname)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Fallocate(fd int, mode uint32, off int64, len int64) (err error) {
|
||||||
|
_, _, e1 := Syscall6(SYS_FALLOCATE, uintptr(fd), uintptr(mode), uintptr(off>>32), uintptr(off), uintptr(len>>32), uintptr(len))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Tee(rfd int, wfd int, len int, flags int) (n int64, err error) {
|
||||||
|
r0, r1, e1 := Syscall6(SYS_TEE, uintptr(rfd), uintptr(wfd), uintptr(len), uintptr(flags), 0, 0)
|
||||||
|
n = int64(int64(r0)<<32 | int64(r1))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func dup2(oldfd int, newfd int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_DUP2, uintptr(oldfd), uintptr(newfd), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func EpollCreate(size int) (fd int, err error) {
|
||||||
|
r0, _, e1 := RawSyscall(SYS_EPOLL_CREATE, uintptr(size), 0, 0)
|
||||||
|
fd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(events) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&events[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EPOLL_WAIT, uintptr(epfd), uintptr(_p0), uintptr(len(events)), uintptr(msec), 0, 0)
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Fchown(fd int, uid int, gid int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Fstat(fd int, stat *Stat_t) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_FSTAT64, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FSTATAT64, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Ftruncate(fd int, length int64) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_FTRUNCATE64, uintptr(fd), uintptr(length>>32), uintptr(length))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Getegid() (egid int) {
|
||||||
|
r0, _ := RawSyscallNoError(SYS_GETEGID, 0, 0, 0)
|
||||||
|
egid = int(r0)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Geteuid() (euid int) {
|
||||||
|
r0, _ := RawSyscallNoError(SYS_GETEUID, 0, 0, 0)
|
||||||
|
euid = int(r0)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Getgid() (gid int) {
|
||||||
|
r0, _ := RawSyscallNoError(SYS_GETGID, 0, 0, 0)
|
||||||
|
gid = int(r0)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Getuid() (uid int) {
|
||||||
|
r0, _ := RawSyscallNoError(SYS_GETUID, 0, 0, 0)
|
||||||
|
uid = int(r0)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func InotifyInit() (fd int, err error) {
|
||||||
|
r0, _, e1 := RawSyscall(SYS_INOTIFY_INIT, 0, 0, 0)
|
||||||
|
fd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Ioperm(from int, num int, on int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_IOPERM, uintptr(from), uintptr(num), uintptr(on))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Iopl(level int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_IOPL, uintptr(level), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Lchown(path string, uid int, gid int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Listen(s int, n int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(n), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Lstat(path string, stat *Stat_t) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_LSTAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Pause() (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_PAUSE, 0, 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Pread(fd int, p []byte, offset int64) (n int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(p) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&p[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_PREAD64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset>>32), uintptr(offset), 0)
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(p) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&p[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_PWRITE64, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset>>32), uintptr(offset), 0)
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Renameat(olddirfd int, oldpath string, newdirfd int, newpath string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(oldpath)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(newpath)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(olddirfd), uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_SENDFILE64, uintptr(outfd), uintptr(infd), uintptr(unsafe.Pointer(offset)), uintptr(count), 0, 0)
|
||||||
|
written = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func setfsgid(gid int) (prev int, err error) {
|
||||||
|
r0, _, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0)
|
||||||
|
prev = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func setfsuid(uid int) (prev int, err error) {
|
||||||
|
r0, _, e1 := Syscall(SYS_SETFSUID, uintptr(uid), 0, 0)
|
||||||
|
prev = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Setregid(rgid int, egid int) (err error) {
|
||||||
|
_, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Setresgid(rgid int, egid int, sgid int) (err error) {
|
||||||
|
_, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Setresuid(ruid int, euid int, suid int) (err error) {
|
||||||
|
_, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Setreuid(ruid int, euid int) (err error) {
|
||||||
|
_, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Shutdown(fd int, how int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags))
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Stat(path string, stat *Stat_t) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_STAT64, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Truncate(path string, length int64) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_TRUNCATE64, uintptr(unsafe.Pointer(_p0)), uintptr(length>>32), uintptr(length))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Ustat(dev int, ubuf *Ustat_t) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_USTAT, uintptr(dev), uintptr(unsafe.Pointer(ubuf)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
|
||||||
|
r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
|
||||||
|
fd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_ACCEPT4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
|
||||||
|
fd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func getgroups(n int, list *_Gid_t) (nn int, err error) {
|
||||||
|
r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
|
||||||
|
nn = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func setgroups(n int, list *_Gid_t) (err error) {
|
||||||
|
_, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(n), uintptr(unsafe.Pointer(list)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) {
|
||||||
|
_, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) {
|
||||||
|
_, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func socket(domain int, typ int, proto int) (fd int, err error) {
|
||||||
|
r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))
|
||||||
|
fd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
|
||||||
|
_, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
|
||||||
|
_, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
|
||||||
|
_, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(p) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&p[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
||||||
|
r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
||||||
|
r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func futimesat(dirfd int, path string, times *[2]Timeval) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_FUTIMESAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Gettimeofday(tv *Timeval) (err error) {
|
||||||
|
_, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Time(t *Time_t) (tt Time_t, err error) {
|
||||||
|
r0, _, e1 := RawSyscall(SYS_TIME, uintptr(unsafe.Pointer(t)), 0, 0)
|
||||||
|
tt = Time_t(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Utime(path string, buf *Utimbuf) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_UTIME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(buf)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func utimes(path string, times *[2]Timeval) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset))
|
||||||
|
xaddr = uintptr(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func getrlimit(resource int, rlim *rlimit32) (err error) {
|
||||||
|
_, _, e1 := RawSyscall(SYS_UGETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func setrlimit(resource int, rlim *rlimit32) (err error) {
|
||||||
|
_, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func pipe(p *[2]_C_int) (err error) {
|
||||||
|
_, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func poll(fds *PollFd, nfds int, timeout int) (n int, err error) {
|
||||||
|
r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func syncFileRange2(fd int, flags int, off int64, n int64) (err error) {
|
||||||
|
_, _, e1 := Syscall6(SYS_SYNC_FILE_RANGE2, uintptr(fd), uintptr(flags), uintptr(off>>32), uintptr(off), uintptr(n>>32), uintptr(n))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func kexecFileLoad(kernelFd int, initrdFd int, cmdlineLen int, cmdline string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(cmdline)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_KEXEC_FILE_LOAD, uintptr(kernelFd), uintptr(initrdFd), uintptr(cmdlineLen), uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
1255
vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go
generated
vendored
Normal file
1255
vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
434
vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go
generated
vendored
Normal file
434
vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go
generated
vendored
Normal file
@@ -0,0 +1,434 @@
|
|||||||
|
// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/include /tmp/include/asm/unistd.h
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
//go:build ppc && linux
|
||||||
|
// +build ppc,linux
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
const (
|
||||||
|
SYS_RESTART_SYSCALL = 0
|
||||||
|
SYS_EXIT = 1
|
||||||
|
SYS_FORK = 2
|
||||||
|
SYS_READ = 3
|
||||||
|
SYS_WRITE = 4
|
||||||
|
SYS_OPEN = 5
|
||||||
|
SYS_CLOSE = 6
|
||||||
|
SYS_WAITPID = 7
|
||||||
|
SYS_CREAT = 8
|
||||||
|
SYS_LINK = 9
|
||||||
|
SYS_UNLINK = 10
|
||||||
|
SYS_EXECVE = 11
|
||||||
|
SYS_CHDIR = 12
|
||||||
|
SYS_TIME = 13
|
||||||
|
SYS_MKNOD = 14
|
||||||
|
SYS_CHMOD = 15
|
||||||
|
SYS_LCHOWN = 16
|
||||||
|
SYS_BREAK = 17
|
||||||
|
SYS_OLDSTAT = 18
|
||||||
|
SYS_LSEEK = 19
|
||||||
|
SYS_GETPID = 20
|
||||||
|
SYS_MOUNT = 21
|
||||||
|
SYS_UMOUNT = 22
|
||||||
|
SYS_SETUID = 23
|
||||||
|
SYS_GETUID = 24
|
||||||
|
SYS_STIME = 25
|
||||||
|
SYS_PTRACE = 26
|
||||||
|
SYS_ALARM = 27
|
||||||
|
SYS_OLDFSTAT = 28
|
||||||
|
SYS_PAUSE = 29
|
||||||
|
SYS_UTIME = 30
|
||||||
|
SYS_STTY = 31
|
||||||
|
SYS_GTTY = 32
|
||||||
|
SYS_ACCESS = 33
|
||||||
|
SYS_NICE = 34
|
||||||
|
SYS_FTIME = 35
|
||||||
|
SYS_SYNC = 36
|
||||||
|
SYS_KILL = 37
|
||||||
|
SYS_RENAME = 38
|
||||||
|
SYS_MKDIR = 39
|
||||||
|
SYS_RMDIR = 40
|
||||||
|
SYS_DUP = 41
|
||||||
|
SYS_PIPE = 42
|
||||||
|
SYS_TIMES = 43
|
||||||
|
SYS_PROF = 44
|
||||||
|
SYS_BRK = 45
|
||||||
|
SYS_SETGID = 46
|
||||||
|
SYS_GETGID = 47
|
||||||
|
SYS_SIGNAL = 48
|
||||||
|
SYS_GETEUID = 49
|
||||||
|
SYS_GETEGID = 50
|
||||||
|
SYS_ACCT = 51
|
||||||
|
SYS_UMOUNT2 = 52
|
||||||
|
SYS_LOCK = 53
|
||||||
|
SYS_IOCTL = 54
|
||||||
|
SYS_FCNTL = 55
|
||||||
|
SYS_MPX = 56
|
||||||
|
SYS_SETPGID = 57
|
||||||
|
SYS_ULIMIT = 58
|
||||||
|
SYS_OLDOLDUNAME = 59
|
||||||
|
SYS_UMASK = 60
|
||||||
|
SYS_CHROOT = 61
|
||||||
|
SYS_USTAT = 62
|
||||||
|
SYS_DUP2 = 63
|
||||||
|
SYS_GETPPID = 64
|
||||||
|
SYS_GETPGRP = 65
|
||||||
|
SYS_SETSID = 66
|
||||||
|
SYS_SIGACTION = 67
|
||||||
|
SYS_SGETMASK = 68
|
||||||
|
SYS_SSETMASK = 69
|
||||||
|
SYS_SETREUID = 70
|
||||||
|
SYS_SETREGID = 71
|
||||||
|
SYS_SIGSUSPEND = 72
|
||||||
|
SYS_SIGPENDING = 73
|
||||||
|
SYS_SETHOSTNAME = 74
|
||||||
|
SYS_SETRLIMIT = 75
|
||||||
|
SYS_GETRLIMIT = 76
|
||||||
|
SYS_GETRUSAGE = 77
|
||||||
|
SYS_GETTIMEOFDAY = 78
|
||||||
|
SYS_SETTIMEOFDAY = 79
|
||||||
|
SYS_GETGROUPS = 80
|
||||||
|
SYS_SETGROUPS = 81
|
||||||
|
SYS_SELECT = 82
|
||||||
|
SYS_SYMLINK = 83
|
||||||
|
SYS_OLDLSTAT = 84
|
||||||
|
SYS_READLINK = 85
|
||||||
|
SYS_USELIB = 86
|
||||||
|
SYS_SWAPON = 87
|
||||||
|
SYS_REBOOT = 88
|
||||||
|
SYS_READDIR = 89
|
||||||
|
SYS_MMAP = 90
|
||||||
|
SYS_MUNMAP = 91
|
||||||
|
SYS_TRUNCATE = 92
|
||||||
|
SYS_FTRUNCATE = 93
|
||||||
|
SYS_FCHMOD = 94
|
||||||
|
SYS_FCHOWN = 95
|
||||||
|
SYS_GETPRIORITY = 96
|
||||||
|
SYS_SETPRIORITY = 97
|
||||||
|
SYS_PROFIL = 98
|
||||||
|
SYS_STATFS = 99
|
||||||
|
SYS_FSTATFS = 100
|
||||||
|
SYS_IOPERM = 101
|
||||||
|
SYS_SOCKETCALL = 102
|
||||||
|
SYS_SYSLOG = 103
|
||||||
|
SYS_SETITIMER = 104
|
||||||
|
SYS_GETITIMER = 105
|
||||||
|
SYS_STAT = 106
|
||||||
|
SYS_LSTAT = 107
|
||||||
|
SYS_FSTAT = 108
|
||||||
|
SYS_OLDUNAME = 109
|
||||||
|
SYS_IOPL = 110
|
||||||
|
SYS_VHANGUP = 111
|
||||||
|
SYS_IDLE = 112
|
||||||
|
SYS_VM86 = 113
|
||||||
|
SYS_WAIT4 = 114
|
||||||
|
SYS_SWAPOFF = 115
|
||||||
|
SYS_SYSINFO = 116
|
||||||
|
SYS_IPC = 117
|
||||||
|
SYS_FSYNC = 118
|
||||||
|
SYS_SIGRETURN = 119
|
||||||
|
SYS_CLONE = 120
|
||||||
|
SYS_SETDOMAINNAME = 121
|
||||||
|
SYS_UNAME = 122
|
||||||
|
SYS_MODIFY_LDT = 123
|
||||||
|
SYS_ADJTIMEX = 124
|
||||||
|
SYS_MPROTECT = 125
|
||||||
|
SYS_SIGPROCMASK = 126
|
||||||
|
SYS_CREATE_MODULE = 127
|
||||||
|
SYS_INIT_MODULE = 128
|
||||||
|
SYS_DELETE_MODULE = 129
|
||||||
|
SYS_GET_KERNEL_SYMS = 130
|
||||||
|
SYS_QUOTACTL = 131
|
||||||
|
SYS_GETPGID = 132
|
||||||
|
SYS_FCHDIR = 133
|
||||||
|
SYS_BDFLUSH = 134
|
||||||
|
SYS_SYSFS = 135
|
||||||
|
SYS_PERSONALITY = 136
|
||||||
|
SYS_AFS_SYSCALL = 137
|
||||||
|
SYS_SETFSUID = 138
|
||||||
|
SYS_SETFSGID = 139
|
||||||
|
SYS__LLSEEK = 140
|
||||||
|
SYS_GETDENTS = 141
|
||||||
|
SYS__NEWSELECT = 142
|
||||||
|
SYS_FLOCK = 143
|
||||||
|
SYS_MSYNC = 144
|
||||||
|
SYS_READV = 145
|
||||||
|
SYS_WRITEV = 146
|
||||||
|
SYS_GETSID = 147
|
||||||
|
SYS_FDATASYNC = 148
|
||||||
|
SYS__SYSCTL = 149
|
||||||
|
SYS_MLOCK = 150
|
||||||
|
SYS_MUNLOCK = 151
|
||||||
|
SYS_MLOCKALL = 152
|
||||||
|
SYS_MUNLOCKALL = 153
|
||||||
|
SYS_SCHED_SETPARAM = 154
|
||||||
|
SYS_SCHED_GETPARAM = 155
|
||||||
|
SYS_SCHED_SETSCHEDULER = 156
|
||||||
|
SYS_SCHED_GETSCHEDULER = 157
|
||||||
|
SYS_SCHED_YIELD = 158
|
||||||
|
SYS_SCHED_GET_PRIORITY_MAX = 159
|
||||||
|
SYS_SCHED_GET_PRIORITY_MIN = 160
|
||||||
|
SYS_SCHED_RR_GET_INTERVAL = 161
|
||||||
|
SYS_NANOSLEEP = 162
|
||||||
|
SYS_MREMAP = 163
|
||||||
|
SYS_SETRESUID = 164
|
||||||
|
SYS_GETRESUID = 165
|
||||||
|
SYS_QUERY_MODULE = 166
|
||||||
|
SYS_POLL = 167
|
||||||
|
SYS_NFSSERVCTL = 168
|
||||||
|
SYS_SETRESGID = 169
|
||||||
|
SYS_GETRESGID = 170
|
||||||
|
SYS_PRCTL = 171
|
||||||
|
SYS_RT_SIGRETURN = 172
|
||||||
|
SYS_RT_SIGACTION = 173
|
||||||
|
SYS_RT_SIGPROCMASK = 174
|
||||||
|
SYS_RT_SIGPENDING = 175
|
||||||
|
SYS_RT_SIGTIMEDWAIT = 176
|
||||||
|
SYS_RT_SIGQUEUEINFO = 177
|
||||||
|
SYS_RT_SIGSUSPEND = 178
|
||||||
|
SYS_PREAD64 = 179
|
||||||
|
SYS_PWRITE64 = 180
|
||||||
|
SYS_CHOWN = 181
|
||||||
|
SYS_GETCWD = 182
|
||||||
|
SYS_CAPGET = 183
|
||||||
|
SYS_CAPSET = 184
|
||||||
|
SYS_SIGALTSTACK = 185
|
||||||
|
SYS_SENDFILE = 186
|
||||||
|
SYS_GETPMSG = 187
|
||||||
|
SYS_PUTPMSG = 188
|
||||||
|
SYS_VFORK = 189
|
||||||
|
SYS_UGETRLIMIT = 190
|
||||||
|
SYS_READAHEAD = 191
|
||||||
|
SYS_MMAP2 = 192
|
||||||
|
SYS_TRUNCATE64 = 193
|
||||||
|
SYS_FTRUNCATE64 = 194
|
||||||
|
SYS_STAT64 = 195
|
||||||
|
SYS_LSTAT64 = 196
|
||||||
|
SYS_FSTAT64 = 197
|
||||||
|
SYS_PCICONFIG_READ = 198
|
||||||
|
SYS_PCICONFIG_WRITE = 199
|
||||||
|
SYS_PCICONFIG_IOBASE = 200
|
||||||
|
SYS_MULTIPLEXER = 201
|
||||||
|
SYS_GETDENTS64 = 202
|
||||||
|
SYS_PIVOT_ROOT = 203
|
||||||
|
SYS_FCNTL64 = 204
|
||||||
|
SYS_MADVISE = 205
|
||||||
|
SYS_MINCORE = 206
|
||||||
|
SYS_GETTID = 207
|
||||||
|
SYS_TKILL = 208
|
||||||
|
SYS_SETXATTR = 209
|
||||||
|
SYS_LSETXATTR = 210
|
||||||
|
SYS_FSETXATTR = 211
|
||||||
|
SYS_GETXATTR = 212
|
||||||
|
SYS_LGETXATTR = 213
|
||||||
|
SYS_FGETXATTR = 214
|
||||||
|
SYS_LISTXATTR = 215
|
||||||
|
SYS_LLISTXATTR = 216
|
||||||
|
SYS_FLISTXATTR = 217
|
||||||
|
SYS_REMOVEXATTR = 218
|
||||||
|
SYS_LREMOVEXATTR = 219
|
||||||
|
SYS_FREMOVEXATTR = 220
|
||||||
|
SYS_FUTEX = 221
|
||||||
|
SYS_SCHED_SETAFFINITY = 222
|
||||||
|
SYS_SCHED_GETAFFINITY = 223
|
||||||
|
SYS_TUXCALL = 225
|
||||||
|
SYS_SENDFILE64 = 226
|
||||||
|
SYS_IO_SETUP = 227
|
||||||
|
SYS_IO_DESTROY = 228
|
||||||
|
SYS_IO_GETEVENTS = 229
|
||||||
|
SYS_IO_SUBMIT = 230
|
||||||
|
SYS_IO_CANCEL = 231
|
||||||
|
SYS_SET_TID_ADDRESS = 232
|
||||||
|
SYS_FADVISE64 = 233
|
||||||
|
SYS_EXIT_GROUP = 234
|
||||||
|
SYS_LOOKUP_DCOOKIE = 235
|
||||||
|
SYS_EPOLL_CREATE = 236
|
||||||
|
SYS_EPOLL_CTL = 237
|
||||||
|
SYS_EPOLL_WAIT = 238
|
||||||
|
SYS_REMAP_FILE_PAGES = 239
|
||||||
|
SYS_TIMER_CREATE = 240
|
||||||
|
SYS_TIMER_SETTIME = 241
|
||||||
|
SYS_TIMER_GETTIME = 242
|
||||||
|
SYS_TIMER_GETOVERRUN = 243
|
||||||
|
SYS_TIMER_DELETE = 244
|
||||||
|
SYS_CLOCK_SETTIME = 245
|
||||||
|
SYS_CLOCK_GETTIME = 246
|
||||||
|
SYS_CLOCK_GETRES = 247
|
||||||
|
SYS_CLOCK_NANOSLEEP = 248
|
||||||
|
SYS_SWAPCONTEXT = 249
|
||||||
|
SYS_TGKILL = 250
|
||||||
|
SYS_UTIMES = 251
|
||||||
|
SYS_STATFS64 = 252
|
||||||
|
SYS_FSTATFS64 = 253
|
||||||
|
SYS_FADVISE64_64 = 254
|
||||||
|
SYS_RTAS = 255
|
||||||
|
SYS_SYS_DEBUG_SETCONTEXT = 256
|
||||||
|
SYS_MIGRATE_PAGES = 258
|
||||||
|
SYS_MBIND = 259
|
||||||
|
SYS_GET_MEMPOLICY = 260
|
||||||
|
SYS_SET_MEMPOLICY = 261
|
||||||
|
SYS_MQ_OPEN = 262
|
||||||
|
SYS_MQ_UNLINK = 263
|
||||||
|
SYS_MQ_TIMEDSEND = 264
|
||||||
|
SYS_MQ_TIMEDRECEIVE = 265
|
||||||
|
SYS_MQ_NOTIFY = 266
|
||||||
|
SYS_MQ_GETSETATTR = 267
|
||||||
|
SYS_KEXEC_LOAD = 268
|
||||||
|
SYS_ADD_KEY = 269
|
||||||
|
SYS_REQUEST_KEY = 270
|
||||||
|
SYS_KEYCTL = 271
|
||||||
|
SYS_WAITID = 272
|
||||||
|
SYS_IOPRIO_SET = 273
|
||||||
|
SYS_IOPRIO_GET = 274
|
||||||
|
SYS_INOTIFY_INIT = 275
|
||||||
|
SYS_INOTIFY_ADD_WATCH = 276
|
||||||
|
SYS_INOTIFY_RM_WATCH = 277
|
||||||
|
SYS_SPU_RUN = 278
|
||||||
|
SYS_SPU_CREATE = 279
|
||||||
|
SYS_PSELECT6 = 280
|
||||||
|
SYS_PPOLL = 281
|
||||||
|
SYS_UNSHARE = 282
|
||||||
|
SYS_SPLICE = 283
|
||||||
|
SYS_TEE = 284
|
||||||
|
SYS_VMSPLICE = 285
|
||||||
|
SYS_OPENAT = 286
|
||||||
|
SYS_MKDIRAT = 287
|
||||||
|
SYS_MKNODAT = 288
|
||||||
|
SYS_FCHOWNAT = 289
|
||||||
|
SYS_FUTIMESAT = 290
|
||||||
|
SYS_FSTATAT64 = 291
|
||||||
|
SYS_UNLINKAT = 292
|
||||||
|
SYS_RENAMEAT = 293
|
||||||
|
SYS_LINKAT = 294
|
||||||
|
SYS_SYMLINKAT = 295
|
||||||
|
SYS_READLINKAT = 296
|
||||||
|
SYS_FCHMODAT = 297
|
||||||
|
SYS_FACCESSAT = 298
|
||||||
|
SYS_GET_ROBUST_LIST = 299
|
||||||
|
SYS_SET_ROBUST_LIST = 300
|
||||||
|
SYS_MOVE_PAGES = 301
|
||||||
|
SYS_GETCPU = 302
|
||||||
|
SYS_EPOLL_PWAIT = 303
|
||||||
|
SYS_UTIMENSAT = 304
|
||||||
|
SYS_SIGNALFD = 305
|
||||||
|
SYS_TIMERFD_CREATE = 306
|
||||||
|
SYS_EVENTFD = 307
|
||||||
|
SYS_SYNC_FILE_RANGE2 = 308
|
||||||
|
SYS_FALLOCATE = 309
|
||||||
|
SYS_SUBPAGE_PROT = 310
|
||||||
|
SYS_TIMERFD_SETTIME = 311
|
||||||
|
SYS_TIMERFD_GETTIME = 312
|
||||||
|
SYS_SIGNALFD4 = 313
|
||||||
|
SYS_EVENTFD2 = 314
|
||||||
|
SYS_EPOLL_CREATE1 = 315
|
||||||
|
SYS_DUP3 = 316
|
||||||
|
SYS_PIPE2 = 317
|
||||||
|
SYS_INOTIFY_INIT1 = 318
|
||||||
|
SYS_PERF_EVENT_OPEN = 319
|
||||||
|
SYS_PREADV = 320
|
||||||
|
SYS_PWRITEV = 321
|
||||||
|
SYS_RT_TGSIGQUEUEINFO = 322
|
||||||
|
SYS_FANOTIFY_INIT = 323
|
||||||
|
SYS_FANOTIFY_MARK = 324
|
||||||
|
SYS_PRLIMIT64 = 325
|
||||||
|
SYS_SOCKET = 326
|
||||||
|
SYS_BIND = 327
|
||||||
|
SYS_CONNECT = 328
|
||||||
|
SYS_LISTEN = 329
|
||||||
|
SYS_ACCEPT = 330
|
||||||
|
SYS_GETSOCKNAME = 331
|
||||||
|
SYS_GETPEERNAME = 332
|
||||||
|
SYS_SOCKETPAIR = 333
|
||||||
|
SYS_SEND = 334
|
||||||
|
SYS_SENDTO = 335
|
||||||
|
SYS_RECV = 336
|
||||||
|
SYS_RECVFROM = 337
|
||||||
|
SYS_SHUTDOWN = 338
|
||||||
|
SYS_SETSOCKOPT = 339
|
||||||
|
SYS_GETSOCKOPT = 340
|
||||||
|
SYS_SENDMSG = 341
|
||||||
|
SYS_RECVMSG = 342
|
||||||
|
SYS_RECVMMSG = 343
|
||||||
|
SYS_ACCEPT4 = 344
|
||||||
|
SYS_NAME_TO_HANDLE_AT = 345
|
||||||
|
SYS_OPEN_BY_HANDLE_AT = 346
|
||||||
|
SYS_CLOCK_ADJTIME = 347
|
||||||
|
SYS_SYNCFS = 348
|
||||||
|
SYS_SENDMMSG = 349
|
||||||
|
SYS_SETNS = 350
|
||||||
|
SYS_PROCESS_VM_READV = 351
|
||||||
|
SYS_PROCESS_VM_WRITEV = 352
|
||||||
|
SYS_FINIT_MODULE = 353
|
||||||
|
SYS_KCMP = 354
|
||||||
|
SYS_SCHED_SETATTR = 355
|
||||||
|
SYS_SCHED_GETATTR = 356
|
||||||
|
SYS_RENAMEAT2 = 357
|
||||||
|
SYS_SECCOMP = 358
|
||||||
|
SYS_GETRANDOM = 359
|
||||||
|
SYS_MEMFD_CREATE = 360
|
||||||
|
SYS_BPF = 361
|
||||||
|
SYS_EXECVEAT = 362
|
||||||
|
SYS_SWITCH_ENDIAN = 363
|
||||||
|
SYS_USERFAULTFD = 364
|
||||||
|
SYS_MEMBARRIER = 365
|
||||||
|
SYS_MLOCK2 = 378
|
||||||
|
SYS_COPY_FILE_RANGE = 379
|
||||||
|
SYS_PREADV2 = 380
|
||||||
|
SYS_PWRITEV2 = 381
|
||||||
|
SYS_KEXEC_FILE_LOAD = 382
|
||||||
|
SYS_STATX = 383
|
||||||
|
SYS_PKEY_ALLOC = 384
|
||||||
|
SYS_PKEY_FREE = 385
|
||||||
|
SYS_PKEY_MPROTECT = 386
|
||||||
|
SYS_RSEQ = 387
|
||||||
|
SYS_IO_PGETEVENTS = 388
|
||||||
|
SYS_SEMGET = 393
|
||||||
|
SYS_SEMCTL = 394
|
||||||
|
SYS_SHMGET = 395
|
||||||
|
SYS_SHMCTL = 396
|
||||||
|
SYS_SHMAT = 397
|
||||||
|
SYS_SHMDT = 398
|
||||||
|
SYS_MSGGET = 399
|
||||||
|
SYS_MSGSND = 400
|
||||||
|
SYS_MSGRCV = 401
|
||||||
|
SYS_MSGCTL = 402
|
||||||
|
SYS_CLOCK_GETTIME64 = 403
|
||||||
|
SYS_CLOCK_SETTIME64 = 404
|
||||||
|
SYS_CLOCK_ADJTIME64 = 405
|
||||||
|
SYS_CLOCK_GETRES_TIME64 = 406
|
||||||
|
SYS_CLOCK_NANOSLEEP_TIME64 = 407
|
||||||
|
SYS_TIMER_GETTIME64 = 408
|
||||||
|
SYS_TIMER_SETTIME64 = 409
|
||||||
|
SYS_TIMERFD_GETTIME64 = 410
|
||||||
|
SYS_TIMERFD_SETTIME64 = 411
|
||||||
|
SYS_UTIMENSAT_TIME64 = 412
|
||||||
|
SYS_PSELECT6_TIME64 = 413
|
||||||
|
SYS_PPOLL_TIME64 = 414
|
||||||
|
SYS_IO_PGETEVENTS_TIME64 = 416
|
||||||
|
SYS_RECVMMSG_TIME64 = 417
|
||||||
|
SYS_MQ_TIMEDSEND_TIME64 = 418
|
||||||
|
SYS_MQ_TIMEDRECEIVE_TIME64 = 419
|
||||||
|
SYS_SEMTIMEDOP_TIME64 = 420
|
||||||
|
SYS_RT_SIGTIMEDWAIT_TIME64 = 421
|
||||||
|
SYS_FUTEX_TIME64 = 422
|
||||||
|
SYS_SCHED_RR_GET_INTERVAL_TIME64 = 423
|
||||||
|
SYS_PIDFD_SEND_SIGNAL = 424
|
||||||
|
SYS_IO_URING_SETUP = 425
|
||||||
|
SYS_IO_URING_ENTER = 426
|
||||||
|
SYS_IO_URING_REGISTER = 427
|
||||||
|
SYS_OPEN_TREE = 428
|
||||||
|
SYS_MOVE_MOUNT = 429
|
||||||
|
SYS_FSOPEN = 430
|
||||||
|
SYS_FSCONFIG = 431
|
||||||
|
SYS_FSMOUNT = 432
|
||||||
|
SYS_FSPICK = 433
|
||||||
|
SYS_PIDFD_OPEN = 434
|
||||||
|
SYS_CLONE3 = 435
|
||||||
|
SYS_CLOSE_RANGE = 436
|
||||||
|
SYS_OPENAT2 = 437
|
||||||
|
SYS_PIDFD_GETFD = 438
|
||||||
|
SYS_FACCESSAT2 = 439
|
||||||
|
SYS_PROCESS_MADVISE = 440
|
||||||
|
SYS_EPOLL_PWAIT2 = 441
|
||||||
|
SYS_MOUNT_SETATTR = 442
|
||||||
|
)
|
||||||
2670
vendor/golang.org/x/sys/unix/zsysnum_zos_s390x.go
generated
vendored
Normal file
2670
vendor/golang.org/x/sys/unix/zsysnum_zos_s390x.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
40
vendor/golang.org/x/sys/unix/ztypes_illumos_amd64.go
generated
vendored
Normal file
40
vendor/golang.org/x/sys/unix/ztypes_illumos_amd64.go
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
// cgo -godefs types_illumos.go | go run mkpost.go
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
//go:build amd64 && illumos
|
||||||
|
// +build amd64,illumos
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
const (
|
||||||
|
TUNNEWPPA = 0x540001
|
||||||
|
TUNSETPPA = 0x540002
|
||||||
|
|
||||||
|
I_STR = 0x5308
|
||||||
|
I_POP = 0x5303
|
||||||
|
I_PUSH = 0x5302
|
||||||
|
I_PLINK = 0x5316
|
||||||
|
I_PUNLINK = 0x5317
|
||||||
|
|
||||||
|
IF_UNITSEL = -0x7ffb8cca
|
||||||
|
)
|
||||||
|
|
||||||
|
type strbuf struct {
|
||||||
|
Maxlen int32
|
||||||
|
Len int32
|
||||||
|
Buf *int8
|
||||||
|
}
|
||||||
|
|
||||||
|
type Strioctl struct {
|
||||||
|
Cmd int32
|
||||||
|
Timout int32
|
||||||
|
Len int32
|
||||||
|
Dp *int8
|
||||||
|
}
|
||||||
|
|
||||||
|
type Lifreq struct {
|
||||||
|
Name [32]int8
|
||||||
|
Lifru1 [4]byte
|
||||||
|
Type uint32
|
||||||
|
Lifru [336]byte
|
||||||
|
}
|
||||||
639
vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go
generated
vendored
Normal file
639
vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go
generated
vendored
Normal file
@@ -0,0 +1,639 @@
|
|||||||
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/include /build/linux/types.go | go run mkpost.go
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
//go:build ppc && linux
|
||||||
|
// +build ppc,linux
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
const (
|
||||||
|
SizeofPtr = 0x4
|
||||||
|
SizeofLong = 0x4
|
||||||
|
)
|
||||||
|
|
||||||
|
type (
|
||||||
|
_C_long int32
|
||||||
|
)
|
||||||
|
|
||||||
|
type Timespec struct {
|
||||||
|
Sec int32
|
||||||
|
Nsec int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Timeval struct {
|
||||||
|
Sec int32
|
||||||
|
Usec int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Timex struct {
|
||||||
|
Modes uint32
|
||||||
|
Offset int32
|
||||||
|
Freq int32
|
||||||
|
Maxerror int32
|
||||||
|
Esterror int32
|
||||||
|
Status int32
|
||||||
|
Constant int32
|
||||||
|
Precision int32
|
||||||
|
Tolerance int32
|
||||||
|
Time Timeval
|
||||||
|
Tick int32
|
||||||
|
Ppsfreq int32
|
||||||
|
Jitter int32
|
||||||
|
Shift int32
|
||||||
|
Stabil int32
|
||||||
|
Jitcnt int32
|
||||||
|
Calcnt int32
|
||||||
|
Errcnt int32
|
||||||
|
Stbcnt int32
|
||||||
|
Tai int32
|
||||||
|
_ [44]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
type Time_t int32
|
||||||
|
|
||||||
|
type Tms struct {
|
||||||
|
Utime int32
|
||||||
|
Stime int32
|
||||||
|
Cutime int32
|
||||||
|
Cstime int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Utimbuf struct {
|
||||||
|
Actime int32
|
||||||
|
Modtime int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Rusage struct {
|
||||||
|
Utime Timeval
|
||||||
|
Stime Timeval
|
||||||
|
Maxrss int32
|
||||||
|
Ixrss int32
|
||||||
|
Idrss int32
|
||||||
|
Isrss int32
|
||||||
|
Minflt int32
|
||||||
|
Majflt int32
|
||||||
|
Nswap int32
|
||||||
|
Inblock int32
|
||||||
|
Oublock int32
|
||||||
|
Msgsnd int32
|
||||||
|
Msgrcv int32
|
||||||
|
Nsignals int32
|
||||||
|
Nvcsw int32
|
||||||
|
Nivcsw int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Stat_t struct {
|
||||||
|
Dev uint64
|
||||||
|
Ino uint64
|
||||||
|
Mode uint32
|
||||||
|
Nlink uint32
|
||||||
|
Uid uint32
|
||||||
|
Gid uint32
|
||||||
|
Rdev uint64
|
||||||
|
_ uint16
|
||||||
|
_ [4]byte
|
||||||
|
Size int64
|
||||||
|
Blksize int32
|
||||||
|
_ [4]byte
|
||||||
|
Blocks int64
|
||||||
|
Atim Timespec
|
||||||
|
Mtim Timespec
|
||||||
|
Ctim Timespec
|
||||||
|
_ uint32
|
||||||
|
_ uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Dirent struct {
|
||||||
|
Ino uint64
|
||||||
|
Off int64
|
||||||
|
Reclen uint16
|
||||||
|
Type uint8
|
||||||
|
Name [256]uint8
|
||||||
|
_ [5]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
type Flock_t struct {
|
||||||
|
Type int16
|
||||||
|
Whence int16
|
||||||
|
_ [4]byte
|
||||||
|
Start int64
|
||||||
|
Len int64
|
||||||
|
Pid int32
|
||||||
|
_ [4]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
type DmNameList struct {
|
||||||
|
Dev uint64
|
||||||
|
Next uint32
|
||||||
|
Name [0]byte
|
||||||
|
_ [4]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
FADV_DONTNEED = 0x4
|
||||||
|
FADV_NOREUSE = 0x5
|
||||||
|
)
|
||||||
|
|
||||||
|
type RawSockaddrNFCLLCP struct {
|
||||||
|
Sa_family uint16
|
||||||
|
Dev_idx uint32
|
||||||
|
Target_idx uint32
|
||||||
|
Nfc_protocol uint32
|
||||||
|
Dsap uint8
|
||||||
|
Ssap uint8
|
||||||
|
Service_name [63]uint8
|
||||||
|
Service_name_len uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type RawSockaddr struct {
|
||||||
|
Family uint16
|
||||||
|
Data [14]uint8
|
||||||
|
}
|
||||||
|
|
||||||
|
type RawSockaddrAny struct {
|
||||||
|
Addr RawSockaddr
|
||||||
|
Pad [96]uint8
|
||||||
|
}
|
||||||
|
|
||||||
|
type Iovec struct {
|
||||||
|
Base *byte
|
||||||
|
Len uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Msghdr struct {
|
||||||
|
Name *byte
|
||||||
|
Namelen uint32
|
||||||
|
Iov *Iovec
|
||||||
|
Iovlen uint32
|
||||||
|
Control *byte
|
||||||
|
Controllen uint32
|
||||||
|
Flags int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Cmsghdr struct {
|
||||||
|
Len uint32
|
||||||
|
Level int32
|
||||||
|
Type int32
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
SizeofSockaddrNFCLLCP = 0x58
|
||||||
|
SizeofIovec = 0x8
|
||||||
|
SizeofMsghdr = 0x1c
|
||||||
|
SizeofCmsghdr = 0xc
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
SizeofSockFprog = 0x8
|
||||||
|
)
|
||||||
|
|
||||||
|
type PtraceRegs struct {
|
||||||
|
Gpr [32]uint32
|
||||||
|
Nip uint32
|
||||||
|
Msr uint32
|
||||||
|
Orig_gpr3 uint32
|
||||||
|
Ctr uint32
|
||||||
|
Link uint32
|
||||||
|
Xer uint32
|
||||||
|
Ccr uint32
|
||||||
|
Mq uint32
|
||||||
|
Trap uint32
|
||||||
|
Dar uint32
|
||||||
|
Dsisr uint32
|
||||||
|
Result uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type FdSet struct {
|
||||||
|
Bits [32]int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Sysinfo_t struct {
|
||||||
|
Uptime int32
|
||||||
|
Loads [3]uint32
|
||||||
|
Totalram uint32
|
||||||
|
Freeram uint32
|
||||||
|
Sharedram uint32
|
||||||
|
Bufferram uint32
|
||||||
|
Totalswap uint32
|
||||||
|
Freeswap uint32
|
||||||
|
Procs uint16
|
||||||
|
Pad uint16
|
||||||
|
Totalhigh uint32
|
||||||
|
Freehigh uint32
|
||||||
|
Unit uint32
|
||||||
|
_ [8]uint8
|
||||||
|
}
|
||||||
|
|
||||||
|
type Ustat_t struct {
|
||||||
|
Tfree int32
|
||||||
|
Tinode uint32
|
||||||
|
Fname [6]uint8
|
||||||
|
Fpack [6]uint8
|
||||||
|
}
|
||||||
|
|
||||||
|
type EpollEvent struct {
|
||||||
|
Events uint32
|
||||||
|
_ int32
|
||||||
|
Fd int32
|
||||||
|
Pad int32
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
POLLRDHUP = 0x2000
|
||||||
|
)
|
||||||
|
|
||||||
|
type Sigset_t struct {
|
||||||
|
Val [32]uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
const _C__NSIG = 0x41
|
||||||
|
|
||||||
|
type Termios struct {
|
||||||
|
Iflag uint32
|
||||||
|
Oflag uint32
|
||||||
|
Cflag uint32
|
||||||
|
Lflag uint32
|
||||||
|
Cc [19]uint8
|
||||||
|
Line uint8
|
||||||
|
Ispeed uint32
|
||||||
|
Ospeed uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Taskstats struct {
|
||||||
|
Version uint16
|
||||||
|
Ac_exitcode uint32
|
||||||
|
Ac_flag uint8
|
||||||
|
Ac_nice uint8
|
||||||
|
_ [4]byte
|
||||||
|
Cpu_count uint64
|
||||||
|
Cpu_delay_total uint64
|
||||||
|
Blkio_count uint64
|
||||||
|
Blkio_delay_total uint64
|
||||||
|
Swapin_count uint64
|
||||||
|
Swapin_delay_total uint64
|
||||||
|
Cpu_run_real_total uint64
|
||||||
|
Cpu_run_virtual_total uint64
|
||||||
|
Ac_comm [32]uint8
|
||||||
|
Ac_sched uint8
|
||||||
|
Ac_pad [3]uint8
|
||||||
|
_ [4]byte
|
||||||
|
Ac_uid uint32
|
||||||
|
Ac_gid uint32
|
||||||
|
Ac_pid uint32
|
||||||
|
Ac_ppid uint32
|
||||||
|
Ac_btime uint32
|
||||||
|
_ [4]byte
|
||||||
|
Ac_etime uint64
|
||||||
|
Ac_utime uint64
|
||||||
|
Ac_stime uint64
|
||||||
|
Ac_minflt uint64
|
||||||
|
Ac_majflt uint64
|
||||||
|
Coremem uint64
|
||||||
|
Virtmem uint64
|
||||||
|
Hiwater_rss uint64
|
||||||
|
Hiwater_vm uint64
|
||||||
|
Read_char uint64
|
||||||
|
Write_char uint64
|
||||||
|
Read_syscalls uint64
|
||||||
|
Write_syscalls uint64
|
||||||
|
Read_bytes uint64
|
||||||
|
Write_bytes uint64
|
||||||
|
Cancelled_write_bytes uint64
|
||||||
|
Nvcsw uint64
|
||||||
|
Nivcsw uint64
|
||||||
|
Ac_utimescaled uint64
|
||||||
|
Ac_stimescaled uint64
|
||||||
|
Cpu_scaled_run_real_total uint64
|
||||||
|
Freepages_count uint64
|
||||||
|
Freepages_delay_total uint64
|
||||||
|
Thrashing_count uint64
|
||||||
|
Thrashing_delay_total uint64
|
||||||
|
Ac_btime64 uint64
|
||||||
|
}
|
||||||
|
|
||||||
|
type cpuMask uint32
|
||||||
|
|
||||||
|
const (
|
||||||
|
_NCPUBITS = 0x20
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
CBitFieldMaskBit0 = 0x8000000000000000
|
||||||
|
CBitFieldMaskBit1 = 0x4000000000000000
|
||||||
|
CBitFieldMaskBit2 = 0x2000000000000000
|
||||||
|
CBitFieldMaskBit3 = 0x1000000000000000
|
||||||
|
CBitFieldMaskBit4 = 0x800000000000000
|
||||||
|
CBitFieldMaskBit5 = 0x400000000000000
|
||||||
|
CBitFieldMaskBit6 = 0x200000000000000
|
||||||
|
CBitFieldMaskBit7 = 0x100000000000000
|
||||||
|
CBitFieldMaskBit8 = 0x80000000000000
|
||||||
|
CBitFieldMaskBit9 = 0x40000000000000
|
||||||
|
CBitFieldMaskBit10 = 0x20000000000000
|
||||||
|
CBitFieldMaskBit11 = 0x10000000000000
|
||||||
|
CBitFieldMaskBit12 = 0x8000000000000
|
||||||
|
CBitFieldMaskBit13 = 0x4000000000000
|
||||||
|
CBitFieldMaskBit14 = 0x2000000000000
|
||||||
|
CBitFieldMaskBit15 = 0x1000000000000
|
||||||
|
CBitFieldMaskBit16 = 0x800000000000
|
||||||
|
CBitFieldMaskBit17 = 0x400000000000
|
||||||
|
CBitFieldMaskBit18 = 0x200000000000
|
||||||
|
CBitFieldMaskBit19 = 0x100000000000
|
||||||
|
CBitFieldMaskBit20 = 0x80000000000
|
||||||
|
CBitFieldMaskBit21 = 0x40000000000
|
||||||
|
CBitFieldMaskBit22 = 0x20000000000
|
||||||
|
CBitFieldMaskBit23 = 0x10000000000
|
||||||
|
CBitFieldMaskBit24 = 0x8000000000
|
||||||
|
CBitFieldMaskBit25 = 0x4000000000
|
||||||
|
CBitFieldMaskBit26 = 0x2000000000
|
||||||
|
CBitFieldMaskBit27 = 0x1000000000
|
||||||
|
CBitFieldMaskBit28 = 0x800000000
|
||||||
|
CBitFieldMaskBit29 = 0x400000000
|
||||||
|
CBitFieldMaskBit30 = 0x200000000
|
||||||
|
CBitFieldMaskBit31 = 0x100000000
|
||||||
|
CBitFieldMaskBit32 = 0x80000000
|
||||||
|
CBitFieldMaskBit33 = 0x40000000
|
||||||
|
CBitFieldMaskBit34 = 0x20000000
|
||||||
|
CBitFieldMaskBit35 = 0x10000000
|
||||||
|
CBitFieldMaskBit36 = 0x8000000
|
||||||
|
CBitFieldMaskBit37 = 0x4000000
|
||||||
|
CBitFieldMaskBit38 = 0x2000000
|
||||||
|
CBitFieldMaskBit39 = 0x1000000
|
||||||
|
CBitFieldMaskBit40 = 0x800000
|
||||||
|
CBitFieldMaskBit41 = 0x400000
|
||||||
|
CBitFieldMaskBit42 = 0x200000
|
||||||
|
CBitFieldMaskBit43 = 0x100000
|
||||||
|
CBitFieldMaskBit44 = 0x80000
|
||||||
|
CBitFieldMaskBit45 = 0x40000
|
||||||
|
CBitFieldMaskBit46 = 0x20000
|
||||||
|
CBitFieldMaskBit47 = 0x10000
|
||||||
|
CBitFieldMaskBit48 = 0x8000
|
||||||
|
CBitFieldMaskBit49 = 0x4000
|
||||||
|
CBitFieldMaskBit50 = 0x2000
|
||||||
|
CBitFieldMaskBit51 = 0x1000
|
||||||
|
CBitFieldMaskBit52 = 0x800
|
||||||
|
CBitFieldMaskBit53 = 0x400
|
||||||
|
CBitFieldMaskBit54 = 0x200
|
||||||
|
CBitFieldMaskBit55 = 0x100
|
||||||
|
CBitFieldMaskBit56 = 0x80
|
||||||
|
CBitFieldMaskBit57 = 0x40
|
||||||
|
CBitFieldMaskBit58 = 0x20
|
||||||
|
CBitFieldMaskBit59 = 0x10
|
||||||
|
CBitFieldMaskBit60 = 0x8
|
||||||
|
CBitFieldMaskBit61 = 0x4
|
||||||
|
CBitFieldMaskBit62 = 0x2
|
||||||
|
CBitFieldMaskBit63 = 0x1
|
||||||
|
)
|
||||||
|
|
||||||
|
type SockaddrStorage struct {
|
||||||
|
Family uint16
|
||||||
|
_ [122]uint8
|
||||||
|
_ uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type HDGeometry struct {
|
||||||
|
Heads uint8
|
||||||
|
Sectors uint8
|
||||||
|
Cylinders uint16
|
||||||
|
Start uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Statfs_t struct {
|
||||||
|
Type int32
|
||||||
|
Bsize int32
|
||||||
|
Blocks uint64
|
||||||
|
Bfree uint64
|
||||||
|
Bavail uint64
|
||||||
|
Files uint64
|
||||||
|
Ffree uint64
|
||||||
|
Fsid Fsid
|
||||||
|
Namelen int32
|
||||||
|
Frsize int32
|
||||||
|
Flags int32
|
||||||
|
Spare [4]int32
|
||||||
|
_ [4]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
type TpacketHdr struct {
|
||||||
|
Status uint32
|
||||||
|
Len uint32
|
||||||
|
Snaplen uint32
|
||||||
|
Mac uint16
|
||||||
|
Net uint16
|
||||||
|
Sec uint32
|
||||||
|
Usec uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
SizeofTpacketHdr = 0x18
|
||||||
|
)
|
||||||
|
|
||||||
|
type RTCPLLInfo struct {
|
||||||
|
Ctrl int32
|
||||||
|
Value int32
|
||||||
|
Max int32
|
||||||
|
Min int32
|
||||||
|
Posmult int32
|
||||||
|
Negmult int32
|
||||||
|
Clock int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type BlkpgPartition struct {
|
||||||
|
Start int64
|
||||||
|
Length int64
|
||||||
|
Pno int32
|
||||||
|
Devname [64]uint8
|
||||||
|
Volname [64]uint8
|
||||||
|
_ [4]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
BLKPG = 0x20001269
|
||||||
|
)
|
||||||
|
|
||||||
|
type XDPUmemReg struct {
|
||||||
|
Addr uint64
|
||||||
|
Len uint64
|
||||||
|
Size uint32
|
||||||
|
Headroom uint32
|
||||||
|
Flags uint32
|
||||||
|
_ [4]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
type CryptoUserAlg struct {
|
||||||
|
Name [64]uint8
|
||||||
|
Driver_name [64]uint8
|
||||||
|
Module_name [64]uint8
|
||||||
|
Type uint32
|
||||||
|
Mask uint32
|
||||||
|
Refcnt uint32
|
||||||
|
Flags uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type CryptoStatAEAD struct {
|
||||||
|
Type [64]uint8
|
||||||
|
Encrypt_cnt uint64
|
||||||
|
Encrypt_tlen uint64
|
||||||
|
Decrypt_cnt uint64
|
||||||
|
Decrypt_tlen uint64
|
||||||
|
Err_cnt uint64
|
||||||
|
}
|
||||||
|
|
||||||
|
type CryptoStatAKCipher struct {
|
||||||
|
Type [64]uint8
|
||||||
|
Encrypt_cnt uint64
|
||||||
|
Encrypt_tlen uint64
|
||||||
|
Decrypt_cnt uint64
|
||||||
|
Decrypt_tlen uint64
|
||||||
|
Verify_cnt uint64
|
||||||
|
Sign_cnt uint64
|
||||||
|
Err_cnt uint64
|
||||||
|
}
|
||||||
|
|
||||||
|
type CryptoStatCipher struct {
|
||||||
|
Type [64]uint8
|
||||||
|
Encrypt_cnt uint64
|
||||||
|
Encrypt_tlen uint64
|
||||||
|
Decrypt_cnt uint64
|
||||||
|
Decrypt_tlen uint64
|
||||||
|
Err_cnt uint64
|
||||||
|
}
|
||||||
|
|
||||||
|
type CryptoStatCompress struct {
|
||||||
|
Type [64]uint8
|
||||||
|
Compress_cnt uint64
|
||||||
|
Compress_tlen uint64
|
||||||
|
Decompress_cnt uint64
|
||||||
|
Decompress_tlen uint64
|
||||||
|
Err_cnt uint64
|
||||||
|
}
|
||||||
|
|
||||||
|
type CryptoStatHash struct {
|
||||||
|
Type [64]uint8
|
||||||
|
Hash_cnt uint64
|
||||||
|
Hash_tlen uint64
|
||||||
|
Err_cnt uint64
|
||||||
|
}
|
||||||
|
|
||||||
|
type CryptoStatKPP struct {
|
||||||
|
Type [64]uint8
|
||||||
|
Setsecret_cnt uint64
|
||||||
|
Generate_public_key_cnt uint64
|
||||||
|
Compute_shared_secret_cnt uint64
|
||||||
|
Err_cnt uint64
|
||||||
|
}
|
||||||
|
|
||||||
|
type CryptoStatRNG struct {
|
||||||
|
Type [64]uint8
|
||||||
|
Generate_cnt uint64
|
||||||
|
Generate_tlen uint64
|
||||||
|
Seed_cnt uint64
|
||||||
|
Err_cnt uint64
|
||||||
|
}
|
||||||
|
|
||||||
|
type CryptoStatLarval struct {
|
||||||
|
Type [64]uint8
|
||||||
|
}
|
||||||
|
|
||||||
|
type CryptoReportLarval struct {
|
||||||
|
Type [64]uint8
|
||||||
|
}
|
||||||
|
|
||||||
|
type CryptoReportHash struct {
|
||||||
|
Type [64]uint8
|
||||||
|
Blocksize uint32
|
||||||
|
Digestsize uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type CryptoReportCipher struct {
|
||||||
|
Type [64]uint8
|
||||||
|
Blocksize uint32
|
||||||
|
Min_keysize uint32
|
||||||
|
Max_keysize uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type CryptoReportBlkCipher struct {
|
||||||
|
Type [64]uint8
|
||||||
|
Geniv [64]uint8
|
||||||
|
Blocksize uint32
|
||||||
|
Min_keysize uint32
|
||||||
|
Max_keysize uint32
|
||||||
|
Ivsize uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type CryptoReportAEAD struct {
|
||||||
|
Type [64]uint8
|
||||||
|
Geniv [64]uint8
|
||||||
|
Blocksize uint32
|
||||||
|
Maxauthsize uint32
|
||||||
|
Ivsize uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type CryptoReportComp struct {
|
||||||
|
Type [64]uint8
|
||||||
|
}
|
||||||
|
|
||||||
|
type CryptoReportRNG struct {
|
||||||
|
Type [64]uint8
|
||||||
|
Seedsize uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type CryptoReportAKCipher struct {
|
||||||
|
Type [64]uint8
|
||||||
|
}
|
||||||
|
|
||||||
|
type CryptoReportKPP struct {
|
||||||
|
Type [64]uint8
|
||||||
|
}
|
||||||
|
|
||||||
|
type CryptoReportAcomp struct {
|
||||||
|
Type [64]uint8
|
||||||
|
}
|
||||||
|
|
||||||
|
type LoopInfo struct {
|
||||||
|
Number int32
|
||||||
|
Device uint32
|
||||||
|
Inode uint32
|
||||||
|
Rdevice uint32
|
||||||
|
Offset int32
|
||||||
|
Encrypt_type int32
|
||||||
|
Encrypt_key_size int32
|
||||||
|
Flags int32
|
||||||
|
Name [64]uint8
|
||||||
|
Encrypt_key [32]uint8
|
||||||
|
Init [2]uint32
|
||||||
|
Reserved [4]uint8
|
||||||
|
}
|
||||||
|
|
||||||
|
type TIPCSubscr struct {
|
||||||
|
Seq TIPCServiceRange
|
||||||
|
Timeout uint32
|
||||||
|
Filter uint32
|
||||||
|
Handle [8]uint8
|
||||||
|
}
|
||||||
|
|
||||||
|
type TIPCSIOCLNReq struct {
|
||||||
|
Peer uint32
|
||||||
|
Id uint32
|
||||||
|
Linkname [68]uint8
|
||||||
|
}
|
||||||
|
|
||||||
|
type TIPCSIOCNodeIDReq struct {
|
||||||
|
Peer uint32
|
||||||
|
Id [16]uint8
|
||||||
|
}
|
||||||
|
|
||||||
|
type PPSKInfo struct {
|
||||||
|
Assert_sequence uint32
|
||||||
|
Clear_sequence uint32
|
||||||
|
Assert_tu PPSKTime
|
||||||
|
Clear_tu PPSKTime
|
||||||
|
Current_mode int32
|
||||||
|
_ [4]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
PPS_GETPARAMS = 0x400470a1
|
||||||
|
PPS_SETPARAMS = 0x800470a2
|
||||||
|
PPS_GETCAP = 0x400470a3
|
||||||
|
PPS_FETCH = 0xc00470a4
|
||||||
|
)
|
||||||
406
vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go
generated
vendored
Normal file
406
vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go
generated
vendored
Normal file
@@ -0,0 +1,406 @@
|
|||||||
|
// Copyright 2020 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build zos && s390x
|
||||||
|
// +build zos,s390x
|
||||||
|
|
||||||
|
// Hand edited based on ztypes_linux_s390x.go
|
||||||
|
// TODO: auto-generate.
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
const (
|
||||||
|
SizeofPtr = 0x8
|
||||||
|
SizeofShort = 0x2
|
||||||
|
SizeofInt = 0x4
|
||||||
|
SizeofLong = 0x8
|
||||||
|
SizeofLongLong = 0x8
|
||||||
|
PathMax = 0x1000
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
SizeofSockaddrAny = 128
|
||||||
|
SizeofCmsghdr = 12
|
||||||
|
SizeofIPMreq = 8
|
||||||
|
SizeofIPv6Mreq = 20
|
||||||
|
SizeofICMPv6Filter = 32
|
||||||
|
SizeofIPv6MTUInfo = 32
|
||||||
|
SizeofLinger = 8
|
||||||
|
SizeofSockaddrInet4 = 16
|
||||||
|
SizeofSockaddrInet6 = 28
|
||||||
|
SizeofTCPInfo = 0x68
|
||||||
|
)
|
||||||
|
|
||||||
|
type (
|
||||||
|
_C_short int16
|
||||||
|
_C_int int32
|
||||||
|
_C_long int64
|
||||||
|
_C_long_long int64
|
||||||
|
)
|
||||||
|
|
||||||
|
type Timespec struct {
|
||||||
|
Sec int64
|
||||||
|
Nsec int64
|
||||||
|
}
|
||||||
|
|
||||||
|
type Timeval struct {
|
||||||
|
Sec int64
|
||||||
|
Usec int64
|
||||||
|
}
|
||||||
|
|
||||||
|
type timeval_zos struct { //correct (with padding and all)
|
||||||
|
Sec int64
|
||||||
|
_ [4]byte // pad
|
||||||
|
Usec int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Tms struct { //clock_t is 4-byte unsigned int in zos
|
||||||
|
Utime uint32
|
||||||
|
Stime uint32
|
||||||
|
Cutime uint32
|
||||||
|
Cstime uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Time_t int64
|
||||||
|
|
||||||
|
type Utimbuf struct {
|
||||||
|
Actime int64
|
||||||
|
Modtime int64
|
||||||
|
}
|
||||||
|
|
||||||
|
type Utsname struct {
|
||||||
|
Sysname [65]byte
|
||||||
|
Nodename [65]byte
|
||||||
|
Release [65]byte
|
||||||
|
Version [65]byte
|
||||||
|
Machine [65]byte
|
||||||
|
Domainname [65]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
type RawSockaddrInet4 struct {
|
||||||
|
Len uint8
|
||||||
|
Family uint8
|
||||||
|
Port uint16
|
||||||
|
Addr [4]byte /* in_addr */
|
||||||
|
Zero [8]uint8
|
||||||
|
}
|
||||||
|
|
||||||
|
type RawSockaddrInet6 struct {
|
||||||
|
Len uint8
|
||||||
|
Family uint8
|
||||||
|
Port uint16
|
||||||
|
Flowinfo uint32
|
||||||
|
Addr [16]byte /* in6_addr */
|
||||||
|
Scope_id uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type RawSockaddrUnix struct {
|
||||||
|
Len uint8
|
||||||
|
Family uint8
|
||||||
|
Path [108]int8
|
||||||
|
}
|
||||||
|
|
||||||
|
type RawSockaddr struct {
|
||||||
|
Len uint8
|
||||||
|
Family uint8
|
||||||
|
Data [14]uint8
|
||||||
|
}
|
||||||
|
|
||||||
|
type RawSockaddrAny struct {
|
||||||
|
Addr RawSockaddr
|
||||||
|
_ [112]uint8 // pad
|
||||||
|
}
|
||||||
|
|
||||||
|
type _Socklen uint32
|
||||||
|
|
||||||
|
type Linger struct {
|
||||||
|
Onoff int32
|
||||||
|
Linger int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Iovec struct {
|
||||||
|
Base *byte
|
||||||
|
Len uint64
|
||||||
|
}
|
||||||
|
|
||||||
|
type IPMreq struct {
|
||||||
|
Multiaddr [4]byte /* in_addr */
|
||||||
|
Interface [4]byte /* in_addr */
|
||||||
|
}
|
||||||
|
|
||||||
|
type IPv6Mreq struct {
|
||||||
|
Multiaddr [16]byte /* in6_addr */
|
||||||
|
Interface uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Msghdr struct {
|
||||||
|
Name *byte
|
||||||
|
Iov *Iovec
|
||||||
|
Control *byte
|
||||||
|
Flags int32
|
||||||
|
Namelen int32
|
||||||
|
Iovlen int32
|
||||||
|
Controllen int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Cmsghdr struct {
|
||||||
|
Len int32
|
||||||
|
Level int32
|
||||||
|
Type int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Inet4Pktinfo struct {
|
||||||
|
Addr [4]byte /* in_addr */
|
||||||
|
Ifindex uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Inet6Pktinfo struct {
|
||||||
|
Addr [16]byte /* in6_addr */
|
||||||
|
Ifindex uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type IPv6MTUInfo struct {
|
||||||
|
Addr RawSockaddrInet6
|
||||||
|
Mtu uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type ICMPv6Filter struct {
|
||||||
|
Data [8]uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type TCPInfo struct {
|
||||||
|
State uint8
|
||||||
|
Ca_state uint8
|
||||||
|
Retransmits uint8
|
||||||
|
Probes uint8
|
||||||
|
Backoff uint8
|
||||||
|
Options uint8
|
||||||
|
Rto uint32
|
||||||
|
Ato uint32
|
||||||
|
Snd_mss uint32
|
||||||
|
Rcv_mss uint32
|
||||||
|
Unacked uint32
|
||||||
|
Sacked uint32
|
||||||
|
Lost uint32
|
||||||
|
Retrans uint32
|
||||||
|
Fackets uint32
|
||||||
|
Last_data_sent uint32
|
||||||
|
Last_ack_sent uint32
|
||||||
|
Last_data_recv uint32
|
||||||
|
Last_ack_recv uint32
|
||||||
|
Pmtu uint32
|
||||||
|
Rcv_ssthresh uint32
|
||||||
|
Rtt uint32
|
||||||
|
Rttvar uint32
|
||||||
|
Snd_ssthresh uint32
|
||||||
|
Snd_cwnd uint32
|
||||||
|
Advmss uint32
|
||||||
|
Reordering uint32
|
||||||
|
Rcv_rtt uint32
|
||||||
|
Rcv_space uint32
|
||||||
|
Total_retrans uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type _Gid_t uint32
|
||||||
|
|
||||||
|
type rusage_zos struct {
|
||||||
|
Utime timeval_zos
|
||||||
|
Stime timeval_zos
|
||||||
|
}
|
||||||
|
|
||||||
|
type Rusage struct {
|
||||||
|
Utime Timeval
|
||||||
|
Stime Timeval
|
||||||
|
Maxrss int64
|
||||||
|
Ixrss int64
|
||||||
|
Idrss int64
|
||||||
|
Isrss int64
|
||||||
|
Minflt int64
|
||||||
|
Majflt int64
|
||||||
|
Nswap int64
|
||||||
|
Inblock int64
|
||||||
|
Oublock int64
|
||||||
|
Msgsnd int64
|
||||||
|
Msgrcv int64
|
||||||
|
Nsignals int64
|
||||||
|
Nvcsw int64
|
||||||
|
Nivcsw int64
|
||||||
|
}
|
||||||
|
|
||||||
|
type Rlimit struct {
|
||||||
|
Cur uint64
|
||||||
|
Max uint64
|
||||||
|
}
|
||||||
|
|
||||||
|
// { int, short, short } in poll.h
|
||||||
|
type PollFd struct {
|
||||||
|
Fd int32
|
||||||
|
Events int16
|
||||||
|
Revents int16
|
||||||
|
}
|
||||||
|
|
||||||
|
type Stat_t struct { //Linux Definition
|
||||||
|
Dev uint64
|
||||||
|
Ino uint64
|
||||||
|
Nlink uint64
|
||||||
|
Mode uint32
|
||||||
|
Uid uint32
|
||||||
|
Gid uint32
|
||||||
|
_ int32
|
||||||
|
Rdev uint64
|
||||||
|
Size int64
|
||||||
|
Atim Timespec
|
||||||
|
Mtim Timespec
|
||||||
|
Ctim Timespec
|
||||||
|
Blksize int64
|
||||||
|
Blocks int64
|
||||||
|
_ [3]int64
|
||||||
|
}
|
||||||
|
|
||||||
|
type Stat_LE_t struct {
|
||||||
|
_ [4]byte // eye catcher
|
||||||
|
Length uint16
|
||||||
|
Version uint16
|
||||||
|
Mode int32
|
||||||
|
Ino uint32
|
||||||
|
Dev uint32
|
||||||
|
Nlink int32
|
||||||
|
Uid int32
|
||||||
|
Gid int32
|
||||||
|
Size int64
|
||||||
|
Atim31 [4]byte
|
||||||
|
Mtim31 [4]byte
|
||||||
|
Ctim31 [4]byte
|
||||||
|
Rdev uint32
|
||||||
|
Auditoraudit uint32
|
||||||
|
Useraudit uint32
|
||||||
|
Blksize int32
|
||||||
|
Creatim31 [4]byte
|
||||||
|
AuditID [16]byte
|
||||||
|
_ [4]byte // rsrvd1
|
||||||
|
File_tag struct {
|
||||||
|
Ccsid uint16
|
||||||
|
Txtflag uint16 // aggregating Txflag:1 deferred:1 rsvflags:14
|
||||||
|
}
|
||||||
|
CharsetID [8]byte
|
||||||
|
Blocks int64
|
||||||
|
Genvalue uint32
|
||||||
|
Reftim31 [4]byte
|
||||||
|
Fid [8]byte
|
||||||
|
Filefmt byte
|
||||||
|
Fspflag2 byte
|
||||||
|
_ [2]byte // rsrvd2
|
||||||
|
Ctimemsec int32
|
||||||
|
Seclabel [8]byte
|
||||||
|
_ [4]byte // rsrvd3
|
||||||
|
_ [4]byte // rsrvd4
|
||||||
|
Atim Time_t
|
||||||
|
Mtim Time_t
|
||||||
|
Ctim Time_t
|
||||||
|
Creatim Time_t
|
||||||
|
Reftim Time_t
|
||||||
|
_ [24]byte // rsrvd5
|
||||||
|
}
|
||||||
|
|
||||||
|
type Statvfs_t struct {
|
||||||
|
ID [4]byte
|
||||||
|
Len int32
|
||||||
|
Bsize uint64
|
||||||
|
Blocks uint64
|
||||||
|
Usedspace uint64
|
||||||
|
Bavail uint64
|
||||||
|
Flag uint64
|
||||||
|
Maxfilesize int64
|
||||||
|
_ [16]byte
|
||||||
|
Frsize uint64
|
||||||
|
Bfree uint64
|
||||||
|
Files uint32
|
||||||
|
Ffree uint32
|
||||||
|
Favail uint32
|
||||||
|
Namemax31 uint32
|
||||||
|
Invarsec uint32
|
||||||
|
_ [4]byte
|
||||||
|
Fsid uint64
|
||||||
|
Namemax uint64
|
||||||
|
}
|
||||||
|
|
||||||
|
type Statfs_t struct {
|
||||||
|
Type uint32
|
||||||
|
Bsize uint64
|
||||||
|
Blocks uint64
|
||||||
|
Bfree uint64
|
||||||
|
Bavail uint64
|
||||||
|
Files uint32
|
||||||
|
Ffree uint32
|
||||||
|
Fsid uint64
|
||||||
|
Namelen uint64
|
||||||
|
Frsize uint64
|
||||||
|
Flags uint64
|
||||||
|
}
|
||||||
|
|
||||||
|
type Dirent struct {
|
||||||
|
Reclen uint16
|
||||||
|
Namlen uint16
|
||||||
|
Ino uint32
|
||||||
|
Extra uintptr
|
||||||
|
Name [256]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
type FdSet struct {
|
||||||
|
Bits [64]int32
|
||||||
|
}
|
||||||
|
|
||||||
|
// This struct is packed on z/OS so it can't be used directly.
|
||||||
|
type Flock_t struct {
|
||||||
|
Type int16
|
||||||
|
Whence int16
|
||||||
|
Start int64
|
||||||
|
Len int64
|
||||||
|
Pid int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Termios struct {
|
||||||
|
Cflag uint32
|
||||||
|
Iflag uint32
|
||||||
|
Lflag uint32
|
||||||
|
Oflag uint32
|
||||||
|
Cc [11]uint8
|
||||||
|
}
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
||||||
|
type W_Mnth struct {
|
||||||
|
Hid [4]byte
|
||||||
|
Size int32
|
||||||
|
Cur1 int32 //32bit pointer
|
||||||
|
Cur2 int32 //^
|
||||||
|
Devno uint32
|
||||||
|
_ [4]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
type W_Mntent struct {
|
||||||
|
Fstype uint32
|
||||||
|
Mode uint32
|
||||||
|
Dev uint32
|
||||||
|
Parentdev uint32
|
||||||
|
Rootino uint32
|
||||||
|
Status byte
|
||||||
|
Ddname [9]byte
|
||||||
|
Fstname [9]byte
|
||||||
|
Fsname [45]byte
|
||||||
|
Pathlen uint32
|
||||||
|
Mountpoint [1024]byte
|
||||||
|
Jobname [8]byte
|
||||||
|
PID int32
|
||||||
|
Parmoffset int32
|
||||||
|
Parmlen int16
|
||||||
|
Owner [8]byte
|
||||||
|
Quiesceowner [8]byte
|
||||||
|
_ [38]byte
|
||||||
|
}
|
||||||
67
vendor/golang.org/x/sys/windows/svc/sys_windows_386.s
generated
vendored
Normal file
67
vendor/golang.org/x/sys/windows/svc/sys_windows_386.s
generated
vendored
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
// Copyright 2012 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// func servicemain(argc uint32, argv **uint16)
|
||||||
|
TEXT ·servicemain(SB),7,$0
|
||||||
|
MOVL argc+0(FP), AX
|
||||||
|
MOVL AX, ·sArgc(SB)
|
||||||
|
MOVL argv+4(FP), AX
|
||||||
|
MOVL AX, ·sArgv(SB)
|
||||||
|
|
||||||
|
PUSHL BP
|
||||||
|
PUSHL BX
|
||||||
|
PUSHL SI
|
||||||
|
PUSHL DI
|
||||||
|
|
||||||
|
SUBL $12, SP
|
||||||
|
|
||||||
|
MOVL ·sName(SB), AX
|
||||||
|
MOVL AX, (SP)
|
||||||
|
MOVL $·servicectlhandler(SB), AX
|
||||||
|
MOVL AX, 4(SP)
|
||||||
|
// Set context to 123456 to test issue #25660.
|
||||||
|
MOVL $123456, 8(SP)
|
||||||
|
MOVL ·cRegisterServiceCtrlHandlerExW(SB), AX
|
||||||
|
MOVL SP, BP
|
||||||
|
CALL AX
|
||||||
|
MOVL BP, SP
|
||||||
|
CMPL AX, $0
|
||||||
|
JE exit
|
||||||
|
MOVL AX, ·ssHandle(SB)
|
||||||
|
|
||||||
|
MOVL ·goWaitsH(SB), AX
|
||||||
|
MOVL AX, (SP)
|
||||||
|
MOVL ·cSetEvent(SB), AX
|
||||||
|
MOVL SP, BP
|
||||||
|
CALL AX
|
||||||
|
MOVL BP, SP
|
||||||
|
|
||||||
|
MOVL ·cWaitsH(SB), AX
|
||||||
|
MOVL AX, (SP)
|
||||||
|
MOVL $-1, AX
|
||||||
|
MOVL AX, 4(SP)
|
||||||
|
MOVL ·cWaitForSingleObject(SB), AX
|
||||||
|
MOVL SP, BP
|
||||||
|
CALL AX
|
||||||
|
MOVL BP, SP
|
||||||
|
|
||||||
|
exit:
|
||||||
|
ADDL $12, SP
|
||||||
|
|
||||||
|
POPL DI
|
||||||
|
POPL SI
|
||||||
|
POPL BX
|
||||||
|
POPL BP
|
||||||
|
|
||||||
|
MOVL 0(SP), CX
|
||||||
|
ADDL $12, SP
|
||||||
|
JMP CX
|
||||||
|
|
||||||
|
// I do not know why, but this seems to be the only way to call
|
||||||
|
// ctlHandlerProc on Windows 7.
|
||||||
|
|
||||||
|
// func servicectlhandler(ctl uint32, evtype uint32, evdata uintptr, context uintptr) uintptr {
|
||||||
|
TEXT ·servicectlhandler(SB),7,$0
|
||||||
|
MOVL ·ctlHandlerExProc(SB), CX
|
||||||
|
JMP CX
|
||||||
46
vendor/golang.org/x/sys/windows/svc/sys_windows_amd64.s
generated
vendored
Normal file
46
vendor/golang.org/x/sys/windows/svc/sys_windows_amd64.s
generated
vendored
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
// Copyright 2012 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// func servicemain(argc uint32, argv **uint16)
|
||||||
|
TEXT ·servicemain(SB),7,$0
|
||||||
|
MOVQ SP, AX
|
||||||
|
ANDQ $~15, SP // alignment as per Windows requirement
|
||||||
|
SUBQ $48, SP // room for SP and 4 args as per Windows requirement
|
||||||
|
// plus one extra word to keep stack 16 bytes aligned
|
||||||
|
MOVQ AX, 32(SP)
|
||||||
|
|
||||||
|
MOVL CX, ·sArgc(SB)
|
||||||
|
MOVQ DX, ·sArgv(SB)
|
||||||
|
|
||||||
|
MOVQ ·sName(SB), CX
|
||||||
|
MOVQ $·servicectlhandler(SB), DX
|
||||||
|
// BUG(pastarmovj): Figure out a way to pass in context in R8.
|
||||||
|
// Set context to 123456 to test issue #25660.
|
||||||
|
MOVQ $123456, R8
|
||||||
|
MOVQ ·cRegisterServiceCtrlHandlerExW(SB), AX
|
||||||
|
CALL AX
|
||||||
|
CMPQ AX, $0
|
||||||
|
JE exit
|
||||||
|
MOVQ AX, ·ssHandle(SB)
|
||||||
|
|
||||||
|
MOVQ ·goWaitsH(SB), CX
|
||||||
|
MOVQ ·cSetEvent(SB), AX
|
||||||
|
CALL AX
|
||||||
|
|
||||||
|
MOVQ ·cWaitsH(SB), CX
|
||||||
|
MOVQ $4294967295, DX
|
||||||
|
MOVQ ·cWaitForSingleObject(SB), AX
|
||||||
|
CALL AX
|
||||||
|
|
||||||
|
exit:
|
||||||
|
MOVQ 32(SP), SP
|
||||||
|
RET
|
||||||
|
|
||||||
|
// I do not know why, but this seems to be the only way to call
|
||||||
|
// ctlHandlerProc on Windows 7.
|
||||||
|
|
||||||
|
// func ·servicectlhandler(ctl uint32, evtype uint32, evdata uintptr, context uintptr) uintptr {
|
||||||
|
TEXT ·servicectlhandler(SB),7,$0
|
||||||
|
MOVQ ·ctlHandlerExProc(SB), AX
|
||||||
|
JMP AX
|
||||||
36
vendor/golang.org/x/sys/windows/svc/sys_windows_arm.s
generated
vendored
Normal file
36
vendor/golang.org/x/sys/windows/svc/sys_windows_arm.s
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
// Copyright 2018 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
// func servicemain(argc uint32, argv **uint16)
|
||||||
|
TEXT ·servicemain(SB),NOSPLIT|NOFRAME,$0
|
||||||
|
MOVM.DB.W [R4, R14], (R13) // push {r4, lr}
|
||||||
|
MOVW R13, R4
|
||||||
|
BIC $0x7, R13 // alignment for ABI
|
||||||
|
|
||||||
|
MOVW R0, ·sArgc(SB)
|
||||||
|
MOVW R1, ·sArgv(SB)
|
||||||
|
|
||||||
|
MOVW ·sName(SB), R0
|
||||||
|
MOVW ·ctlHandlerExProc(SB), R1
|
||||||
|
MOVW $0, R2
|
||||||
|
MOVW ·cRegisterServiceCtrlHandlerExW(SB), R3
|
||||||
|
BL (R3)
|
||||||
|
CMP $0, R0
|
||||||
|
BEQ exit
|
||||||
|
MOVW R0, ·ssHandle(SB)
|
||||||
|
|
||||||
|
MOVW ·goWaitsH(SB), R0
|
||||||
|
MOVW ·cSetEvent(SB), R1
|
||||||
|
BL (R1)
|
||||||
|
|
||||||
|
MOVW ·cWaitsH(SB), R0
|
||||||
|
MOVW $-1, R1
|
||||||
|
MOVW ·cWaitForSingleObject(SB), R2
|
||||||
|
BL (R2)
|
||||||
|
|
||||||
|
exit:
|
||||||
|
MOVW R4, R13 // free extra stack space
|
||||||
|
MOVM.IA.W (R13), [R4, R15] // pop {r4, pc}
|
||||||
31
vendor/golang.org/x/sys/windows/svc/sys_windows_arm64.s
generated
vendored
Normal file
31
vendor/golang.org/x/sys/windows/svc/sys_windows_arm64.s
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
// Copyright 2018 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
// func servicemain(argc uint32, argv **uint16)
|
||||||
|
TEXT ·servicemain(SB),NOSPLIT|NOFRAME,$0
|
||||||
|
MOVD R0, ·sArgc(SB)
|
||||||
|
MOVD R1, ·sArgv(SB)
|
||||||
|
|
||||||
|
MOVD ·sName(SB), R0
|
||||||
|
MOVD ·ctlHandlerExProc(SB), R1
|
||||||
|
MOVD $0, R2
|
||||||
|
MOVD ·cRegisterServiceCtrlHandlerExW(SB), R3
|
||||||
|
BL (R3)
|
||||||
|
CMP $0, R0
|
||||||
|
BEQ exit
|
||||||
|
MOVD R0, ·ssHandle(SB)
|
||||||
|
|
||||||
|
MOVD ·goWaitsH(SB), R0
|
||||||
|
MOVD ·cSetEvent(SB), R1
|
||||||
|
BL (R1)
|
||||||
|
|
||||||
|
MOVD ·cWaitsH(SB), R0
|
||||||
|
MOVD $-1, R1
|
||||||
|
MOVD ·cWaitForSingleObject(SB), R2
|
||||||
|
BL (R2)
|
||||||
|
|
||||||
|
exit:
|
||||||
|
RET
|
||||||
34
vendor/golang.org/x/sys/windows/types_windows_arm64.go
generated
vendored
Normal file
34
vendor/golang.org/x/sys/windows/types_windows_arm64.go
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
// Copyright 2011 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
package windows
|
||||||
|
|
||||||
|
type WSAData struct {
|
||||||
|
Version uint16
|
||||||
|
HighVersion uint16
|
||||||
|
MaxSockets uint16
|
||||||
|
MaxUdpDg uint16
|
||||||
|
VendorInfo *byte
|
||||||
|
Description [WSADESCRIPTION_LEN + 1]byte
|
||||||
|
SystemStatus [WSASYS_STATUS_LEN + 1]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
type Servent struct {
|
||||||
|
Name *byte
|
||||||
|
Aliases **byte
|
||||||
|
Proto *byte
|
||||||
|
Port uint16
|
||||||
|
}
|
||||||
|
|
||||||
|
type JOBOBJECT_BASIC_LIMIT_INFORMATION struct {
|
||||||
|
PerProcessUserTimeLimit int64
|
||||||
|
PerJobUserTimeLimit int64
|
||||||
|
LimitFlags uint32
|
||||||
|
MinimumWorkingSetSize uintptr
|
||||||
|
MaximumWorkingSetSize uintptr
|
||||||
|
ActiveProcessLimit uint32
|
||||||
|
Affinity uintptr
|
||||||
|
PriorityClass uint32
|
||||||
|
SchedulingClass uint32
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user