mirror of
https://github.com/Luzifer/staticmap.git
synced 2024-12-20 12:51:18 +00:00
Update vendored libraries
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
2c2b9269d0
commit
3657b6663d
165 changed files with 21402 additions and 5650 deletions
50
Gopkg.lock
generated
50
Gopkg.lock
generated
|
@ -2,10 +2,10 @@
|
|||
|
||||
|
||||
[[projects]]
|
||||
branch = "allow-disable-of-attribution-rendering"
|
||||
branch = "master"
|
||||
name = "github.com/Luzifer/go-staticmaps"
|
||||
packages = ["."]
|
||||
revision = "d701c2c232ad9cbcac3e48e2c34e98544191c2fe"
|
||||
revision = "320790ed53294a789e715b3d0d5da8110efea1a2"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/Luzifer/go_helpers"
|
||||
|
@ -14,8 +14,8 @@
|
|||
"http",
|
||||
"str"
|
||||
]
|
||||
revision = "15199b8e33ca5558e8c58af7924083983eb63ca4"
|
||||
version = "v2.4.0"
|
||||
revision = "b0da2aa67ecc05ee4c8848d679b4a11a2fa578b2"
|
||||
version = "v2.6.0"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/Luzifer/rconfig"
|
||||
|
@ -23,12 +23,6 @@
|
|||
revision = "7aef1d393c1e2d0758901853b59981c7adc67c7e"
|
||||
version = "v1.2.0"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/Sirupsen/logrus"
|
||||
packages = ["."]
|
||||
revision = "c155da19408a8799da419ed3eeb0cb5db0ad5dbc"
|
||||
version = "v1.0.5"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
name = "github.com/Wessie/appdirs"
|
||||
|
@ -77,25 +71,25 @@
|
|||
"s1",
|
||||
"s2"
|
||||
]
|
||||
revision = "fb250ae94fbe10f86b4f1a9b70a19925da3410b9"
|
||||
revision = "e41ca803f92c4c1770133cfa5b4fc8249a7dbe82"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/gorilla/context"
|
||||
packages = ["."]
|
||||
revision = "1ea25387ff6f684839d82767c1733ff4d4d15d0a"
|
||||
version = "v1.1"
|
||||
revision = "08b5f424b9271eedf6f9f0ce86cb9396ed337a42"
|
||||
version = "v1.1.1"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/gorilla/mux"
|
||||
packages = ["."]
|
||||
revision = "53c1911da2b537f792e7cafcb446b05ffe33b996"
|
||||
version = "v1.6.1"
|
||||
revision = "e3702bed27f0d39777b0b37b664b6280e8ef8fbf"
|
||||
version = "v1.6.2"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
name = "github.com/lucasb-eyer/go-colorful"
|
||||
packages = ["."]
|
||||
revision = "231272389856c976b7500c4fffcc52ddf06ff4eb"
|
||||
revision = "d9cec903b20cbeda6062366e460c2c1bdc717e4d"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/patrickmn/go-cache"
|
||||
|
@ -103,11 +97,17 @@
|
|||
revision = "a3647f8e31d79543b2d0f0ae2fe5c379d72cedc0"
|
||||
version = "v2.1.0"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/sirupsen/logrus"
|
||||
packages = ["."]
|
||||
revision = "c155da19408a8799da419ed3eeb0cb5db0ad5dbc"
|
||||
version = "v1.0.5"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/spf13/pflag"
|
||||
packages = ["."]
|
||||
revision = "e57e3eeb33f795204c1ca35f56c44f83227c6e66"
|
||||
version = "v1.0.0"
|
||||
revision = "583c0c0531f06d5278b7d917446061adc344b5cd"
|
||||
version = "v1.0.1"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
|
@ -119,7 +119,7 @@
|
|||
branch = "master"
|
||||
name = "golang.org/x/crypto"
|
||||
packages = ["ssh/terminal"]
|
||||
revision = "b2aa35443fbc700ab74c586ae79b81c171851023"
|
||||
revision = "027cca12c2d63e3d62b670d901e8a2c95854feec"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
|
@ -130,13 +130,13 @@
|
|||
"font/plan9font",
|
||||
"math/fixed"
|
||||
]
|
||||
revision = "f315e440302883054d0c2bd85486878cb4f8572c"
|
||||
revision = "af66defab954cb421ca110193eed9477c8541e2a"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
name = "golang.org/x/net"
|
||||
packages = ["context"]
|
||||
revision = "b68f30494add4df6bd8ef5e82803f308e7f7c59c"
|
||||
revision = "db08ff08e8622530d9ed3a0e8ac279f6d4c02196"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
|
@ -145,19 +145,19 @@
|
|||
"unix",
|
||||
"windows"
|
||||
]
|
||||
revision = "378d26f46672a356c46195c28f61bdb4c0a781dd"
|
||||
revision = "6c888cc515d3ed83fc103cf1d84468aad274b0a7"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
name = "golang.org/x/time"
|
||||
packages = ["rate"]
|
||||
revision = "26559e0f760e39c24d730d3224364aef164ee23f"
|
||||
revision = "fbb02b2291d28baffd63558aa44b4b56f178d650"
|
||||
|
||||
[[projects]]
|
||||
branch = "v2"
|
||||
name = "gopkg.in/validator.v2"
|
||||
packages = ["."]
|
||||
revision = "59c90c7046f643cbe0d4e7c8776c42a84ce75910"
|
||||
revision = "135c24b11c19e52befcae2ec3fca5d9b78c4e98e"
|
||||
|
||||
[[projects]]
|
||||
name = "gopkg.in/yaml.v2"
|
||||
|
@ -168,6 +168,6 @@
|
|||
[solve-meta]
|
||||
analyzer-name = "dep"
|
||||
analyzer-version = 1
|
||||
inputs-digest = "bc8b02eb09921c3dcef7328c41ec92c8442d151672053769293e0c476f4a2188"
|
||||
inputs-digest = "c59f72846eca4898dab7e7c3fc9a28b340f42aafbe4ac4866ad1ae33c382ea76"
|
||||
solver-name = "gps-cdcl"
|
||||
solver-version = 1
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
|
||||
[[constraint]]
|
||||
branch = "allow-disable-of-attribution-rendering"
|
||||
branch = "master"
|
||||
name = "github.com/Luzifer/go-staticmaps"
|
||||
|
||||
[[constraint]]
|
||||
|
@ -38,7 +38,7 @@
|
|||
version = "1.2.0"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/Sirupsen/logrus"
|
||||
name = "github.com/sirupsen/logrus"
|
||||
version = "1.0.5"
|
||||
|
||||
[[constraint]]
|
||||
|
|
2
main.go
2
main.go
|
@ -11,12 +11,12 @@ import (
|
|||
|
||||
httpHelper "github.com/Luzifer/go_helpers/http"
|
||||
"github.com/Luzifer/rconfig"
|
||||
log "github.com/Sirupsen/logrus"
|
||||
"github.com/didip/tollbooth"
|
||||
"github.com/didip/tollbooth/limiter"
|
||||
"github.com/golang/geo/s2"
|
||||
"github.com/gorilla/mux"
|
||||
colorful "github.com/lucasb-eyer/go-colorful"
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
2
map.go
2
map.go
|
@ -52,7 +52,7 @@ func generateMap(center s2.LatLng, zoom int, marker []marker, x, y int, disableA
|
|||
ctx.SetZoom(zoom)
|
||||
|
||||
if disableAttribution {
|
||||
ctx.ForceNoAttribution()
|
||||
ctx.OverrideAttribution("")
|
||||
}
|
||||
|
||||
if marker != nil {
|
||||
|
|
19
vendor/github.com/Luzifer/go-staticmaps/context.go
generated
vendored
19
vendor/github.com/Luzifer/go-staticmaps/context.go
generated
vendored
|
@ -43,7 +43,7 @@ type Context struct {
|
|||
userAgent string
|
||||
tileProvider *TileProvider
|
||||
|
||||
forceNoAttribution bool
|
||||
overrideAttribution *string
|
||||
}
|
||||
|
||||
// NewContext creates a new instance of Context
|
||||
|
@ -149,12 +149,12 @@ func (m *Context) ClearOverlays() {
|
|||
m.overlays = nil
|
||||
}
|
||||
|
||||
// ForceNoAttribution disables attribution rendering
|
||||
// OverrideAttribution sets a custom attribution string (or none if empty)
|
||||
//
|
||||
// Pay attention you might be violating the terms of usage for the
|
||||
// selected map provider - only use the function if you are aware of this!
|
||||
func (m *Context) ForceNoAttribution() {
|
||||
m.forceNoAttribution = true
|
||||
func (m *Context) OverrideAttribution(attribution string) {
|
||||
m.overrideAttribution = &attribution
|
||||
}
|
||||
|
||||
func (m *Context) determineBounds() s2.Rect {
|
||||
|
@ -390,18 +390,23 @@ func (m *Context) Render() (image.Image, error) {
|
|||
img, image.Point{trans.pCenterX - int(m.width)/2, trans.pCenterY - int(m.height)/2},
|
||||
draw.Src)
|
||||
|
||||
attribution := m.tileProvider.Attribution
|
||||
if m.overrideAttribution != nil {
|
||||
attribution = *m.overrideAttribution
|
||||
}
|
||||
|
||||
// draw attribution
|
||||
if m.tileProvider.Attribution == "" || m.forceNoAttribution {
|
||||
if attribution == "" {
|
||||
return croppedImg, nil
|
||||
}
|
||||
_, textHeight := gc.MeasureString(m.tileProvider.Attribution)
|
||||
_, textHeight := gc.MeasureString(attribution)
|
||||
boxHeight := textHeight + 4.0
|
||||
gc = gg.NewContextForRGBA(croppedImg)
|
||||
gc.SetRGBA(0.0, 0.0, 0.0, 0.5)
|
||||
gc.DrawRectangle(0.0, float64(m.height)-boxHeight, float64(m.width), boxHeight)
|
||||
gc.Fill()
|
||||
gc.SetRGBA(1.0, 1.0, 1.0, 0.75)
|
||||
gc.DrawString(m.tileProvider.Attribution, 4.0, float64(m.height)-4.0)
|
||||
gc.DrawString(attribution, 4.0, float64(m.height)-4.0)
|
||||
|
||||
return croppedImg, nil
|
||||
}
|
||||
|
|
133
vendor/github.com/golang/geo/s2/centroids.go
generated
vendored
Normal file
133
vendor/github.com/golang/geo/s2/centroids.go
generated
vendored
Normal file
|
@ -0,0 +1,133 @@
|
|||
// Copyright 2018 Google Inc. All rights reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package s2
|
||||
|
||||
import (
|
||||
"math"
|
||||
|
||||
"github.com/golang/geo/r3"
|
||||
)
|
||||
|
||||
// There are several notions of the "centroid" of a triangle. First, there
|
||||
// is the planar centroid, which is simply the centroid of the ordinary
|
||||
// (non-spherical) triangle defined by the three vertices. Second, there is
|
||||
// the surface centroid, which is defined as the intersection of the three
|
||||
// medians of the spherical triangle. It is possible to show that this
|
||||
// point is simply the planar centroid projected to the surface of the
|
||||
// sphere. Finally, there is the true centroid (mass centroid), which is
|
||||
// defined as the surface integral over the spherical triangle of (x,y,z)
|
||||
// divided by the triangle area. This is the point that the triangle would
|
||||
// rotate around if it was spinning in empty space.
|
||||
//
|
||||
// The best centroid for most purposes is the true centroid. Unlike the
|
||||
// planar and surface centroids, the true centroid behaves linearly as
|
||||
// regions are added or subtracted. That is, if you split a triangle into
|
||||
// pieces and compute the average of their centroids (weighted by triangle
|
||||
// area), the result equals the centroid of the original triangle. This is
|
||||
// not true of the other centroids.
|
||||
//
|
||||
// Also note that the surface centroid may be nowhere near the intuitive
|
||||
// "center" of a spherical triangle. For example, consider the triangle
|
||||
// with vertices A=(1,eps,0), B=(0,0,1), C=(-1,eps,0) (a quarter-sphere).
|
||||
// The surface centroid of this triangle is at S=(0, 2*eps, 1), which is
|
||||
// within a distance of 2*eps of the vertex B. Note that the median from A
|
||||
// (the segment connecting A to the midpoint of BC) passes through S, since
|
||||
// this is the shortest path connecting the two endpoints. On the other
|
||||
// hand, the true centroid is at M=(0, 0.5, 0.5), which when projected onto
|
||||
// the surface is a much more reasonable interpretation of the "center" of
|
||||
// this triangle.
|
||||
//
|
||||
|
||||
// TrueCentroid returns the true centroid of the spherical triangle ABC
|
||||
// multiplied by the signed area of spherical triangle ABC. The reasons for
|
||||
// multiplying by the signed area are (1) this is the quantity that needs to be
|
||||
// summed to compute the centroid of a union or difference of triangles, and
|
||||
// (2) it's actually easier to calculate this way. All points must have unit length.
|
||||
//
|
||||
// Note that the result of this function is defined to be Point(0, 0, 0) if
|
||||
// the triangle is degenerate.
|
||||
func TrueCentroid(a, b, c Point) Point {
|
||||
// Use Distance to get accurate results for small triangles.
|
||||
ra := float64(1)
|
||||
if sa := float64(b.Distance(c)); sa != 0 {
|
||||
ra = sa / math.Sin(sa)
|
||||
}
|
||||
rb := float64(1)
|
||||
if sb := float64(c.Distance(a)); sb != 0 {
|
||||
rb = sb / math.Sin(sb)
|
||||
}
|
||||
rc := float64(1)
|
||||
if sc := float64(a.Distance(b)); sc != 0 {
|
||||
rc = sc / math.Sin(sc)
|
||||
}
|
||||
|
||||
// Now compute a point M such that:
|
||||
//
|
||||
// [Ax Ay Az] [Mx] [ra]
|
||||
// [Bx By Bz] [My] = 0.5 * det(A,B,C) * [rb]
|
||||
// [Cx Cy Cz] [Mz] [rc]
|
||||
//
|
||||
// To improve the numerical stability we subtract the first row (A) from the
|
||||
// other two rows; this reduces the cancellation error when A, B, and C are
|
||||
// very close together. Then we solve it using Cramer's rule.
|
||||
//
|
||||
// The result is the true centroid of the triangle multiplied by the
|
||||
// triangle's area.
|
||||
//
|
||||
// This code still isn't as numerically stable as it could be.
|
||||
// The biggest potential improvement is to compute B-A and C-A more
|
||||
// accurately so that (B-A)x(C-A) is always inside triangle ABC.
|
||||
x := r3.Vector{a.X, b.X - a.X, c.X - a.X}
|
||||
y := r3.Vector{a.Y, b.Y - a.Y, c.Y - a.Y}
|
||||
z := r3.Vector{a.Z, b.Z - a.Z, c.Z - a.Z}
|
||||
r := r3.Vector{ra, rb - ra, rc - ra}
|
||||
|
||||
return Point{r3.Vector{y.Cross(z).Dot(r), z.Cross(x).Dot(r), x.Cross(y).Dot(r)}.Mul(0.5)}
|
||||
}
|
||||
|
||||
// EdgeTrueCentroid returns the true centroid of the spherical geodesic edge AB
|
||||
// multiplied by the length of the edge AB. As with triangles, the true centroid
|
||||
// of a collection of line segments may be computed simply by summing the result
|
||||
// of this method for each segment.
|
||||
//
|
||||
// Note that the planar centroid of a line segment is simply 0.5 * (a + b),
|
||||
// while the surface centroid is (a + b).Normalize(). However neither of
|
||||
// these values is appropriate for computing the centroid of a collection of
|
||||
// edges (such as a polyline).
|
||||
//
|
||||
// Also note that the result of this function is defined to be Point(0, 0, 0)
|
||||
// if the edge is degenerate.
|
||||
func EdgeTrueCentroid(a, b Point) Point {
|
||||
// The centroid (multiplied by length) is a vector toward the midpoint
|
||||
// of the edge, whose length is twice the sine of half the angle between
|
||||
// the two vertices. Defining theta to be this angle, we have:
|
||||
vDiff := a.Sub(b.Vector) // Length == 2*sin(theta)
|
||||
vSum := a.Add(b.Vector) // Length == 2*cos(theta)
|
||||
sin2 := vDiff.Norm2()
|
||||
cos2 := vSum.Norm2()
|
||||
if cos2 == 0 {
|
||||
return Point{} // Ignore antipodal edges.
|
||||
}
|
||||
return Point{vSum.Mul(math.Sqrt(sin2 / cos2))} // Length == 2*sin(theta)
|
||||
}
|
||||
|
||||
// PlanarCentroid returns the centroid of the planar triangle ABC. This can be
|
||||
// normalized to unit length to obtain the "surface centroid" of the corresponding
|
||||
// spherical triangle, i.e. the intersection of the three medians. However, note
|
||||
// that for large spherical triangles the surface centroid may be nowhere near
|
||||
// the intuitive "center".
|
||||
func PlanarCentroid(a, b, c Point) Point {
|
||||
return Point{a.Add(b.Vector).Add(c.Vector).Mul(1. / 3)}
|
||||
}
|
157
vendor/github.com/golang/geo/s2/contains_point_query.go
generated
vendored
Normal file
157
vendor/github.com/golang/geo/s2/contains_point_query.go
generated
vendored
Normal file
|
@ -0,0 +1,157 @@
|
|||
// Copyright 2018 Google Inc. All rights reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package s2
|
||||
|
||||
// VertexModel defines whether shapes are considered to contain their vertices.
|
||||
// Note that these definitions differ from the ones used by BooleanOperation.
|
||||
//
|
||||
// Note that points other than vertices are never contained by polylines.
|
||||
// If you want need this behavior, use ClosestEdgeQuery's IsDistanceLess
|
||||
// with a suitable distance threshold instead.
|
||||
type VertexModel int
|
||||
|
||||
const (
|
||||
// VertexModelOpen means no shapes contain their vertices (not even
|
||||
// points). Therefore Contains(Point) returns true if and only if the
|
||||
// point is in the interior of some polygon.
|
||||
VertexModelOpen VertexModel = iota
|
||||
|
||||
// VertexModelSemiOpen means that polygon point containment is defined
|
||||
// such that if several polygons tile the region around a vertex, then
|
||||
// exactly one of those polygons contains that vertex. Points and
|
||||
// polylines still do not contain any vertices.
|
||||
VertexModelSemiOpen
|
||||
|
||||
// VertexModelClosed means all shapes contain their vertices (including
|
||||
// points and polylines).
|
||||
VertexModelClosed
|
||||
)
|
||||
|
||||
// ContainsPointQuery determines whether one or more shapes in a ShapeIndex
|
||||
// contain a given Point. The ShapeIndex may contain any number of points,
|
||||
// polylines, and/or polygons (possibly overlapping). Shape boundaries may be
|
||||
// modeled as Open, SemiOpen, or Closed (this affects whether or not shapes are
|
||||
// considered to contain their vertices).
|
||||
//
|
||||
// Note that if you need to do a large number of point containment
|
||||
// tests, it is more efficient to re-use the query rather than creating a new
|
||||
// one each time.
|
||||
type ContainsPointQuery struct {
|
||||
model VertexModel
|
||||
index *ShapeIndex
|
||||
iter *ShapeIndexIterator
|
||||
}
|
||||
|
||||
// NewContainsPointQuery creates a new instance of the ContainsPointQuery for the index
|
||||
// and given vertex model choice.
|
||||
func NewContainsPointQuery(index *ShapeIndex, model VertexModel) *ContainsPointQuery {
|
||||
return &ContainsPointQuery{
|
||||
index: index,
|
||||
model: model,
|
||||
iter: index.Iterator(),
|
||||
}
|
||||
}
|
||||
|
||||
// Contains reports whether any shape in the queries index contains the point p
|
||||
// under the queries vertex model (Open, SemiOpen, or Closed).
|
||||
func (q *ContainsPointQuery) Contains(p Point) bool {
|
||||
if !q.iter.LocatePoint(p) {
|
||||
return false
|
||||
}
|
||||
|
||||
cell := q.iter.IndexCell()
|
||||
for _, clipped := range cell.shapes {
|
||||
if q.shapeContains(clipped, q.iter.Center(), p) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// shapeContains reports whether the clippedShape from the iterator's center position contains
|
||||
// the given point.
|
||||
func (q *ContainsPointQuery) shapeContains(clipped *clippedShape, center, p Point) bool {
|
||||
inside := clipped.containsCenter
|
||||
numEdges := clipped.numEdges()
|
||||
if numEdges <= 0 {
|
||||
return inside
|
||||
}
|
||||
|
||||
shape := q.index.Shape(clipped.shapeID)
|
||||
if !shape.HasInterior() {
|
||||
// Points and polylines can be ignored unless the vertex model is Closed.
|
||||
if q.model != VertexModelClosed {
|
||||
return false
|
||||
}
|
||||
|
||||
// Otherwise, the point is contained if and only if it matches a vertex.
|
||||
for _, edgeID := range clipped.edges {
|
||||
edge := shape.Edge(edgeID)
|
||||
if edge.V0 == p || edge.V1 == p {
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Test containment by drawing a line segment from the cell center to the
|
||||
// given point and counting edge crossings.
|
||||
crosser := NewEdgeCrosser(center, p)
|
||||
for _, edgeID := range clipped.edges {
|
||||
edge := shape.Edge(edgeID)
|
||||
sign := crosser.CrossingSign(edge.V0, edge.V1)
|
||||
if sign == DoNotCross {
|
||||
continue
|
||||
}
|
||||
if sign == MaybeCross {
|
||||
// For the Open and Closed models, check whether p is a vertex.
|
||||
if q.model != VertexModelSemiOpen && (edge.V0 == p || edge.V1 == p) {
|
||||
return (q.model == VertexModelClosed)
|
||||
}
|
||||
// C++ plays fast and loose with the int <-> bool conversions here.
|
||||
if VertexCrossing(crosser.a, crosser.b, edge.V0, edge.V1) {
|
||||
sign = Cross
|
||||
} else {
|
||||
sign = DoNotCross
|
||||
}
|
||||
}
|
||||
inside = inside != (sign == Cross)
|
||||
}
|
||||
|
||||
return inside
|
||||
}
|
||||
|
||||
// ShapeContains reports whether the given shape contains the point under this
|
||||
// queries vertex model (Open, SemiOpen, or Closed).
|
||||
//
|
||||
// This requires the shape belongs to this queries index.
|
||||
func (q *ContainsPointQuery) ShapeContains(shape Shape, p Point) bool {
|
||||
if !q.iter.LocatePoint(p) {
|
||||
return false
|
||||
}
|
||||
|
||||
clipped := q.iter.IndexCell().findByShapeID(q.index.idForShape(shape))
|
||||
if clipped == nil {
|
||||
return false
|
||||
}
|
||||
return q.shapeContains(clipped, q.iter.Center(), p)
|
||||
}
|
||||
|
||||
// TODO(roberts): Remaining methods from C++
|
||||
// func (q *ContainsPointQuery) ContainingShapes(p Point) []Shape
|
||||
// type shapeVisitorFunc func(shape Shape) bool
|
||||
// func (q *ContainsPointQuery) VisitContainingShapes(p Point, v shapeVisitorFunc) bool
|
||||
// type edgeVisitorFunc func(shape ShapeEdge) bool
|
||||
// func (q *ContainsPointQuery) VisitIncidentEdges(p Point, v edgeVisitorFunc) bool
|
19
vendor/github.com/golang/geo/s2/loop.go
generated
vendored
19
vendor/github.com/golang/geo/s2/loop.go
generated
vendored
|
@ -203,21 +203,16 @@ func (l *Loop) initBound() {
|
|||
l.subregionBound = ExpandForSubregions(l.bound)
|
||||
}
|
||||
|
||||
// IsValid reports whether this is a valid loop or not.
|
||||
func (l *Loop) IsValid() bool {
|
||||
return l.findValidationError() == nil
|
||||
}
|
||||
|
||||
// findValidationError reports whether this is not a valid loop and if so
|
||||
// returns an error describing why. This function requires the Loops ShapeIndex
|
||||
// to have been intialized.
|
||||
func (l *Loop) findValidationError() error {
|
||||
// Validate checks whether this is a valid loop.
|
||||
func (l *Loop) Validate() error {
|
||||
if err := l.findValidationErrorNoIndex(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Check for intersections between non-adjacent edges (including at vertices)
|
||||
// TODO(roberts): Once shapeutil gets findAnyCrossing uncomment this.
|
||||
// return findAnyCrossing(l.index)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -476,7 +471,7 @@ func (l *Loop) Edge(i int) Edge {
|
|||
|
||||
// NumChains reports the number of contiguous edge chains in the Loop.
|
||||
func (l *Loop) NumChains() int {
|
||||
if l.isEmptyOrFull() {
|
||||
if l.IsEmpty() {
|
||||
return 0
|
||||
}
|
||||
return 1
|
||||
|
@ -501,12 +496,12 @@ func (l *Loop) ChainPosition(edgeID int) ChainPosition {
|
|||
// dimension returns the dimension of the geometry represented by this Loop.
|
||||
func (l *Loop) dimension() dimension { return polygonGeometry }
|
||||
|
||||
// IsEmpty reports true if this is the special "empty" loop that contains no points.
|
||||
// IsEmpty reports true if this is the special empty loop that contains no points.
|
||||
func (l *Loop) IsEmpty() bool {
|
||||
return l.isEmptyOrFull() && !l.ContainsOrigin()
|
||||
}
|
||||
|
||||
// IsFull reports true if this is the special "full" loop that contains all points.
|
||||
// IsFull reports true if this is the special full loop that contains all points.
|
||||
func (l *Loop) IsFull() bool {
|
||||
return l.isEmptyOrFull() && l.ContainsOrigin()
|
||||
}
|
||||
|
|
190
vendor/github.com/golang/geo/s2/point.go
generated
vendored
190
vendor/github.com/golang/geo/s2/point.go
generated
vendored
|
@ -131,163 +131,6 @@ func (p Point) ApproxEqual(other Point) bool {
|
|||
return p.Vector.Angle(other.Vector) <= s1.Angle(epsilon)
|
||||
}
|
||||
|
||||
// PointArea returns the area on the unit sphere for the triangle defined by the
|
||||
// given points.
|
||||
//
|
||||
// This method is based on l'Huilier's theorem,
|
||||
//
|
||||
// tan(E/4) = sqrt(tan(s/2) tan((s-a)/2) tan((s-b)/2) tan((s-c)/2))
|
||||
//
|
||||
// where E is the spherical excess of the triangle (i.e. its area),
|
||||
// a, b, c are the side lengths, and
|
||||
// s is the semiperimeter (a + b + c) / 2.
|
||||
//
|
||||
// The only significant source of error using l'Huilier's method is the
|
||||
// cancellation error of the terms (s-a), (s-b), (s-c). This leads to a
|
||||
// *relative* error of about 1e-16 * s / min(s-a, s-b, s-c). This compares
|
||||
// to a relative error of about 1e-15 / E using Girard's formula, where E is
|
||||
// the true area of the triangle. Girard's formula can be even worse than
|
||||
// this for very small triangles, e.g. a triangle with a true area of 1e-30
|
||||
// might evaluate to 1e-5.
|
||||
//
|
||||
// So, we prefer l'Huilier's formula unless dmin < s * (0.1 * E), where
|
||||
// dmin = min(s-a, s-b, s-c). This basically includes all triangles
|
||||
// except for extremely long and skinny ones.
|
||||
//
|
||||
// Since we don't know E, we would like a conservative upper bound on
|
||||
// the triangle area in terms of s and dmin. It's possible to show that
|
||||
// E <= k1 * s * sqrt(s * dmin), where k1 = 2*sqrt(3)/Pi (about 1).
|
||||
// Using this, it's easy to show that we should always use l'Huilier's
|
||||
// method if dmin >= k2 * s^5, where k2 is about 1e-2. Furthermore,
|
||||
// if dmin < k2 * s^5, the triangle area is at most k3 * s^4, where
|
||||
// k3 is about 0.1. Since the best case error using Girard's formula
|
||||
// is about 1e-15, this means that we shouldn't even consider it unless
|
||||
// s >= 3e-4 or so.
|
||||
func PointArea(a, b, c Point) float64 {
|
||||
sa := float64(b.Angle(c.Vector))
|
||||
sb := float64(c.Angle(a.Vector))
|
||||
sc := float64(a.Angle(b.Vector))
|
||||
s := 0.5 * (sa + sb + sc)
|
||||
if s >= 3e-4 {
|
||||
// Consider whether Girard's formula might be more accurate.
|
||||
dmin := s - math.Max(sa, math.Max(sb, sc))
|
||||
if dmin < 1e-2*s*s*s*s*s {
|
||||
// This triangle is skinny enough to use Girard's formula.
|
||||
area := GirardArea(a, b, c)
|
||||
if dmin < s*0.1*area {
|
||||
return area
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Use l'Huilier's formula.
|
||||
return 4 * math.Atan(math.Sqrt(math.Max(0.0, math.Tan(0.5*s)*math.Tan(0.5*(s-sa))*
|
||||
math.Tan(0.5*(s-sb))*math.Tan(0.5*(s-sc)))))
|
||||
}
|
||||
|
||||
// GirardArea returns the area of the triangle computed using Girard's formula.
|
||||
// All points should be unit length, and no two points should be antipodal.
|
||||
//
|
||||
// This method is about twice as fast as PointArea() but has poor relative
|
||||
// accuracy for small triangles. The maximum error is about 5e-15 (about
|
||||
// 0.25 square meters on the Earth's surface) and the average error is about
|
||||
// 1e-15. These bounds apply to triangles of any size, even as the maximum
|
||||
// edge length of the triangle approaches 180 degrees. But note that for
|
||||
// such triangles, tiny perturbations of the input points can change the
|
||||
// true mathematical area dramatically.
|
||||
func GirardArea(a, b, c Point) float64 {
|
||||
// This is equivalent to the usual Girard's formula but is slightly more
|
||||
// accurate, faster to compute, and handles a == b == c without a special
|
||||
// case. PointCross is necessary to get good accuracy when two of
|
||||
// the input points are very close together.
|
||||
ab := a.PointCross(b)
|
||||
bc := b.PointCross(c)
|
||||
ac := a.PointCross(c)
|
||||
area := float64(ab.Angle(ac.Vector) - ab.Angle(bc.Vector) + bc.Angle(ac.Vector))
|
||||
if area < 0 {
|
||||
area = 0
|
||||
}
|
||||
return area
|
||||
}
|
||||
|
||||
// SignedArea returns a positive value for counterclockwise triangles and a negative
|
||||
// value otherwise (similar to PointArea).
|
||||
func SignedArea(a, b, c Point) float64 {
|
||||
return float64(RobustSign(a, b, c)) * PointArea(a, b, c)
|
||||
}
|
||||
|
||||
// TrueCentroid returns the true centroid of the spherical triangle ABC multiplied by the
|
||||
// signed area of spherical triangle ABC. The result is not normalized.
|
||||
// The reasons for multiplying by the signed area are (1) this is the quantity
|
||||
// that needs to be summed to compute the centroid of a union or difference of triangles,
|
||||
// and (2) it's actually easier to calculate this way. All points must have unit length.
|
||||
//
|
||||
// The true centroid (mass centroid) is defined as the surface integral
|
||||
// over the spherical triangle of (x,y,z) divided by the triangle area.
|
||||
// This is the point that the triangle would rotate around if it was
|
||||
// spinning in empty space.
|
||||
//
|
||||
// The best centroid for most purposes is the true centroid. Unlike the
|
||||
// planar and surface centroids, the true centroid behaves linearly as
|
||||
// regions are added or subtracted. That is, if you split a triangle into
|
||||
// pieces and compute the average of their centroids (weighted by triangle
|
||||
// area), the result equals the centroid of the original triangle. This is
|
||||
// not true of the other centroids.
|
||||
func TrueCentroid(a, b, c Point) Point {
|
||||
ra := float64(1)
|
||||
if sa := float64(b.Distance(c)); sa != 0 {
|
||||
ra = sa / math.Sin(sa)
|
||||
}
|
||||
rb := float64(1)
|
||||
if sb := float64(c.Distance(a)); sb != 0 {
|
||||
rb = sb / math.Sin(sb)
|
||||
}
|
||||
rc := float64(1)
|
||||
if sc := float64(a.Distance(b)); sc != 0 {
|
||||
rc = sc / math.Sin(sc)
|
||||
}
|
||||
|
||||
// Now compute a point M such that:
|
||||
//
|
||||
// [Ax Ay Az] [Mx] [ra]
|
||||
// [Bx By Bz] [My] = 0.5 * det(A,B,C) * [rb]
|
||||
// [Cx Cy Cz] [Mz] [rc]
|
||||
//
|
||||
// To improve the numerical stability we subtract the first row (A) from the
|
||||
// other two rows; this reduces the cancellation error when A, B, and C are
|
||||
// very close together. Then we solve it using Cramer's rule.
|
||||
//
|
||||
// This code still isn't as numerically stable as it could be.
|
||||
// The biggest potential improvement is to compute B-A and C-A more
|
||||
// accurately so that (B-A)x(C-A) is always inside triangle ABC.
|
||||
x := r3.Vector{a.X, b.X - a.X, c.X - a.X}
|
||||
y := r3.Vector{a.Y, b.Y - a.Y, c.Y - a.Y}
|
||||
z := r3.Vector{a.Z, b.Z - a.Z, c.Z - a.Z}
|
||||
r := r3.Vector{ra, rb - ra, rc - ra}
|
||||
|
||||
return Point{r3.Vector{y.Cross(z).Dot(r), z.Cross(x).Dot(r), x.Cross(y).Dot(r)}.Mul(0.5)}
|
||||
}
|
||||
|
||||
// PlanarCentroid returns the centroid of the planar triangle ABC, which is not normalized.
|
||||
// It can be normalized to unit length to obtain the "surface centroid" of the corresponding
|
||||
// spherical triangle, i.e. the intersection of the three medians. However,
|
||||
// note that for large spherical triangles the surface centroid may be
|
||||
// nowhere near the intuitive "center" (see example in TrueCentroid comments).
|
||||
//
|
||||
// Note that the surface centroid may be nowhere near the intuitive
|
||||
// "center" of a spherical triangle. For example, consider the triangle
|
||||
// with vertices A=(1,eps,0), B=(0,0,1), C=(-1,eps,0) (a quarter-sphere).
|
||||
// The surface centroid of this triangle is at S=(0, 2*eps, 1), which is
|
||||
// within a distance of 2*eps of the vertex B. Note that the median from A
|
||||
// (the segment connecting A to the midpoint of BC) passes through S, since
|
||||
// this is the shortest path connecting the two endpoints. On the other
|
||||
// hand, the true centroid is at M=(0, 0.5, 0.5), which when projected onto
|
||||
// the surface is a much more reasonable interpretation of the "center" of
|
||||
// this triangle.
|
||||
func PlanarCentroid(a, b, c Point) Point {
|
||||
return Point{a.Add(b.Vector).Add(c.Vector).Mul(1. / 3)}
|
||||
}
|
||||
|
||||
// ChordAngleBetweenPoints constructs a ChordAngle corresponding to the distance
|
||||
// between the two given points. The points must be unit length.
|
||||
func ChordAngleBetweenPoints(x, y Point) s1.ChordAngle {
|
||||
|
@ -392,39 +235,6 @@ func (p *Point) decode(d *decoder) {
|
|||
p.Z = d.readFloat64()
|
||||
}
|
||||
|
||||
// Angle returns the interior angle at the vertex B in the triangle ABC. The
|
||||
// return value is always in the range [0, pi]. All points should be
|
||||
// normalized. Ensures that Angle(a,b,c) == Angle(c,b,a) for all a,b,c.
|
||||
//
|
||||
// The angle is undefined if A or C is diametrically opposite from B, and
|
||||
// becomes numerically unstable as the length of edge AB or BC approaches
|
||||
// 180 degrees.
|
||||
func Angle(a, b, c Point) s1.Angle {
|
||||
return a.PointCross(b).Angle(c.PointCross(b).Vector)
|
||||
}
|
||||
|
||||
// TurnAngle returns the exterior angle at vertex B in the triangle ABC. The
|
||||
// return value is positive if ABC is counterclockwise and negative otherwise.
|
||||
// If you imagine an ant walking from A to B to C, this is the angle that the
|
||||
// ant turns at vertex B (positive = left = CCW, negative = right = CW).
|
||||
// This quantity is also known as the "geodesic curvature" at B.
|
||||
//
|
||||
// Ensures that TurnAngle(a,b,c) == -TurnAngle(c,b,a) for all distinct
|
||||
// a,b,c. The result is undefined if (a == b || b == c), but is either
|
||||
// -Pi or Pi if (a == c). All points should be normalized.
|
||||
func TurnAngle(a, b, c Point) s1.Angle {
|
||||
// We use PointCross to get good accuracy when two points are very
|
||||
// close together, and RobustSign to ensure that the sign is correct for
|
||||
// turns that are close to 180 degrees.
|
||||
angle := a.PointCross(b).Angle(b.PointCross(c).Vector)
|
||||
|
||||
// Don't return RobustSign * angle because it is legal to have (a == c).
|
||||
if RobustSign(a, b, c) == CounterClockwise {
|
||||
return angle
|
||||
}
|
||||
return -angle
|
||||
}
|
||||
|
||||
// Rotate the given point about the given axis by the given angle. p and
|
||||
// axis must be unit length; angle has no restrictions (e.g., it can be
|
||||
// positive, negative, greater than 360 degrees, etc).
|
||||
|
|
149
vendor/github.com/golang/geo/s2/point_measures.go
generated
vendored
Normal file
149
vendor/github.com/golang/geo/s2/point_measures.go
generated
vendored
Normal file
|
@ -0,0 +1,149 @@
|
|||
// Copyright 2018 Google Inc. All rights reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package s2
|
||||
|
||||
import (
|
||||
"math"
|
||||
|
||||
"github.com/golang/geo/s1"
|
||||
)
|
||||
|
||||
// PointArea returns the area of triangle ABC. This method combines two different
|
||||
// algorithms to get accurate results for both large and small triangles.
|
||||
// The maximum error is about 5e-15 (about 0.25 square meters on the Earth's
|
||||
// surface), the same as GirardArea below, but unlike that method it is
|
||||
// also accurate for small triangles. Example: when the true area is 100
|
||||
// square meters, PointArea yields an error about 1 trillion times smaller than
|
||||
// GirardArea.
|
||||
//
|
||||
// All points should be unit length, and no two points should be antipodal.
|
||||
// The area is always positive.
|
||||
func PointArea(a, b, c Point) float64 {
|
||||
// This method is based on l'Huilier's theorem,
|
||||
//
|
||||
// tan(E/4) = sqrt(tan(s/2) tan((s-a)/2) tan((s-b)/2) tan((s-c)/2))
|
||||
//
|
||||
// where E is the spherical excess of the triangle (i.e. its area),
|
||||
// a, b, c are the side lengths, and
|
||||
// s is the semiperimeter (a + b + c) / 2.
|
||||
//
|
||||
// The only significant source of error using l'Huilier's method is the
|
||||
// cancellation error of the terms (s-a), (s-b), (s-c). This leads to a
|
||||
// *relative* error of about 1e-16 * s / min(s-a, s-b, s-c). This compares
|
||||
// to a relative error of about 1e-15 / E using Girard's formula, where E is
|
||||
// the true area of the triangle. Girard's formula can be even worse than
|
||||
// this for very small triangles, e.g. a triangle with a true area of 1e-30
|
||||
// might evaluate to 1e-5.
|
||||
//
|
||||
// So, we prefer l'Huilier's formula unless dmin < s * (0.1 * E), where
|
||||
// dmin = min(s-a, s-b, s-c). This basically includes all triangles
|
||||
// except for extremely long and skinny ones.
|
||||
//
|
||||
// Since we don't know E, we would like a conservative upper bound on
|
||||
// the triangle area in terms of s and dmin. It's possible to show that
|
||||
// E <= k1 * s * sqrt(s * dmin), where k1 = 2*sqrt(3)/Pi (about 1).
|
||||
// Using this, it's easy to show that we should always use l'Huilier's
|
||||
// method if dmin >= k2 * s^5, where k2 is about 1e-2. Furthermore,
|
||||
// if dmin < k2 * s^5, the triangle area is at most k3 * s^4, where
|
||||
// k3 is about 0.1. Since the best case error using Girard's formula
|
||||
// is about 1e-15, this means that we shouldn't even consider it unless
|
||||
// s >= 3e-4 or so.
|
||||
sa := float64(b.Angle(c.Vector))
|
||||
sb := float64(c.Angle(a.Vector))
|
||||
sc := float64(a.Angle(b.Vector))
|
||||
s := 0.5 * (sa + sb + sc)
|
||||
if s >= 3e-4 {
|
||||
// Consider whether Girard's formula might be more accurate.
|
||||
dmin := s - math.Max(sa, math.Max(sb, sc))
|
||||
if dmin < 1e-2*s*s*s*s*s {
|
||||
// This triangle is skinny enough to use Girard's formula.
|
||||
area := GirardArea(a, b, c)
|
||||
if dmin < s*0.1*area {
|
||||
return area
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Use l'Huilier's formula.
|
||||
return 4 * math.Atan(math.Sqrt(math.Max(0.0, math.Tan(0.5*s)*math.Tan(0.5*(s-sa))*
|
||||
math.Tan(0.5*(s-sb))*math.Tan(0.5*(s-sc)))))
|
||||
}
|
||||
|
||||
// GirardArea returns the area of the triangle computed using Girard's formula.
|
||||
// All points should be unit length, and no two points should be antipodal.
|
||||
//
|
||||
// This method is about twice as fast as PointArea() but has poor relative
|
||||
// accuracy for small triangles. The maximum error is about 5e-15 (about
|
||||
// 0.25 square meters on the Earth's surface) and the average error is about
|
||||
// 1e-15. These bounds apply to triangles of any size, even as the maximum
|
||||
// edge length of the triangle approaches 180 degrees. But note that for
|
||||
// such triangles, tiny perturbations of the input points can change the
|
||||
// true mathematical area dramatically.
|
||||
func GirardArea(a, b, c Point) float64 {
|
||||
// This is equivalent to the usual Girard's formula but is slightly more
|
||||
// accurate, faster to compute, and handles a == b == c without a special
|
||||
// case. PointCross is necessary to get good accuracy when two of
|
||||
// the input points are very close together.
|
||||
ab := a.PointCross(b)
|
||||
bc := b.PointCross(c)
|
||||
ac := a.PointCross(c)
|
||||
|
||||
area := float64(ab.Angle(ac.Vector) - ab.Angle(bc.Vector) + bc.Angle(ac.Vector))
|
||||
if area < 0 {
|
||||
area = 0
|
||||
}
|
||||
return area
|
||||
}
|
||||
|
||||
// SignedArea returns a positive value for counterclockwise triangles and a negative
|
||||
// value otherwise (similar to PointArea).
|
||||
func SignedArea(a, b, c Point) float64 {
|
||||
return float64(RobustSign(a, b, c)) * PointArea(a, b, c)
|
||||
}
|
||||
|
||||
// Angle returns the interior angle at the vertex B in the triangle ABC. The
|
||||
// return value is always in the range [0, pi]. All points should be
|
||||
// normalized. Ensures that Angle(a,b,c) == Angle(c,b,a) for all a,b,c.
|
||||
//
|
||||
// The angle is undefined if A or C is diametrically opposite from B, and
|
||||
// becomes numerically unstable as the length of edge AB or BC approaches
|
||||
// 180 degrees.
|
||||
func Angle(a, b, c Point) s1.Angle {
|
||||
// PointCross is necessary to get good accuracy when two of the input
|
||||
// points are very close together.
|
||||
return a.PointCross(b).Angle(c.PointCross(b).Vector)
|
||||
}
|
||||
|
||||
// TurnAngle returns the exterior angle at vertex B in the triangle ABC. The
|
||||
// return value is positive if ABC is counterclockwise and negative otherwise.
|
||||
// If you imagine an ant walking from A to B to C, this is the angle that the
|
||||
// ant turns at vertex B (positive = left = CCW, negative = right = CW).
|
||||
// This quantity is also known as the "geodesic curvature" at B.
|
||||
//
|
||||
// Ensures that TurnAngle(a,b,c) == -TurnAngle(c,b,a) for all distinct
|
||||
// a,b,c. The result is undefined if (a == b || b == c), but is either
|
||||
// -Pi or Pi if (a == c). All points should be normalized.
|
||||
func TurnAngle(a, b, c Point) s1.Angle {
|
||||
// We use PointCross to get good accuracy when two points are very
|
||||
// close together, and RobustSign to ensure that the sign is correct for
|
||||
// turns that are close to 180 degrees.
|
||||
angle := a.PointCross(b).Angle(b.PointCross(c).Vector)
|
||||
|
||||
// Don't return RobustSign * angle because it is legal to have (a == c).
|
||||
if RobustSign(a, b, c) == CounterClockwise {
|
||||
return angle
|
||||
}
|
||||
return -angle
|
||||
}
|
38
vendor/github.com/golang/geo/s2/polygon.go
generated
vendored
38
vendor/github.com/golang/geo/s2/polygon.go
generated
vendored
|
@ -330,18 +330,9 @@ func FullPolygon() *Polygon {
|
|||
return ret
|
||||
}
|
||||
|
||||
// IsValid reports whether this is a valid polygon (including checking whether all
|
||||
// the loops are themselves valid).
|
||||
func (p *Polygon) IsValid() bool {
|
||||
// TODO(roberts): If we want to expose the error, add a Validate() error method.
|
||||
return p.validate() == nil
|
||||
}
|
||||
|
||||
// validate reports any error if this is not a valid polygon.
|
||||
//
|
||||
// Note that in the returned error messages, loops that represent holes have their
|
||||
// edges numbered in reverse order, starting from the last vertex of the loop.
|
||||
func (p *Polygon) validate() error {
|
||||
// Validate checks whether this is a valid polygon,
|
||||
// including checking whether all the loops are themselves valid.
|
||||
func (p *Polygon) Validate() error {
|
||||
for i, l := range p.loops {
|
||||
// Check for loop errors that don't require building a ShapeIndex.
|
||||
if err := l.findValidationErrorNoIndex(); err != nil {
|
||||
|
@ -671,10 +662,6 @@ func (p *Polygon) ReferencePoint() ReferencePoint {
|
|||
|
||||
// NumChains reports the number of contiguous edge chains in the Polygon.
|
||||
func (p *Polygon) NumChains() int {
|
||||
if p.IsFull() {
|
||||
return 0
|
||||
}
|
||||
|
||||
return p.NumLoops()
|
||||
}
|
||||
|
||||
|
@ -687,7 +674,13 @@ func (p *Polygon) Chain(chainID int) Chain {
|
|||
for j := 0; j < chainID; j++ {
|
||||
e += len(p.Loop(j).vertices)
|
||||
}
|
||||
return Chain{e, len(p.Loop(chainID).vertices)}
|
||||
|
||||
// Polygon represents a full loop as a loop with one vertex, while
|
||||
// Shape represents a full loop as a chain with no vertices.
|
||||
if numVertices := p.Loop(chainID).NumVertices(); numVertices != 1 {
|
||||
return Chain{e, numVertices}
|
||||
}
|
||||
return Chain{e, 0}
|
||||
}
|
||||
|
||||
// ChainEdge returns the j-th edge of the i-th edge Chain (loop).
|
||||
|
@ -906,6 +899,16 @@ func (p *Polygon) anyLoopIntersects(o *Loop) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
// Area returns the area of the polygon interior, i.e. the region on the left side
|
||||
// of an odd number of loops. The return value is between 0 and 4*Pi.
|
||||
func (p *Polygon) Area() float64 {
|
||||
var area float64
|
||||
for _, loop := range p.loops {
|
||||
area += float64(loop.Sign()) * loop.Area()
|
||||
}
|
||||
return area
|
||||
}
|
||||
|
||||
// Encode encodes the Polygon
|
||||
func (p *Polygon) Encode(w io.Writer) error {
|
||||
e := &encoder{w: w}
|
||||
|
@ -1087,7 +1090,6 @@ func (p *Polygon) decodeCompressed(d *decoder) {
|
|||
}
|
||||
|
||||
// TODO(roberts): Differences from C++
|
||||
// Area
|
||||
// Centroid
|
||||
// SnapLevel
|
||||
// DistanceToPoint
|
||||
|
|
6
vendor/github.com/golang/geo/s2/polyline.go
generated
vendored
6
vendor/github.com/golang/geo/s2/polyline.go
generated
vendored
|
@ -197,6 +197,12 @@ func (p *Polyline) ChainPosition(edgeID int) ChainPosition {
|
|||
// dimension returns the dimension of the geometry represented by this Polyline.
|
||||
func (p *Polyline) dimension() dimension { return polylineGeometry }
|
||||
|
||||
// IsEmpty reports whether this shape contains no points.
|
||||
func (p *Polyline) IsEmpty() bool { return defaultShapeIsEmpty(p) }
|
||||
|
||||
// IsFull reports whether this shape contains all points on the sphere.
|
||||
func (p *Polyline) IsFull() bool { return defaultShapeIsFull(p) }
|
||||
|
||||
// findEndVertex reports the maximal end index such that the line segment between
|
||||
// the start index and this one such that the line segment between these two
|
||||
// vertices passes within the given tolerance of all interior vertices, in order.
|
||||
|
|
53
vendor/github.com/golang/geo/s2/polyline_measures.go
generated
vendored
Normal file
53
vendor/github.com/golang/geo/s2/polyline_measures.go
generated
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
// Copyright 2018 Google Inc. All rights reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package s2
|
||||
|
||||
// This file defines various measures for polylines on the sphere. These are
|
||||
// low-level methods that work directly with arrays of Points. They are used to
|
||||
// implement the methods in various other measures files.
|
||||
|
||||
import (
|
||||
"github.com/golang/geo/r3"
|
||||
"github.com/golang/geo/s1"
|
||||
)
|
||||
|
||||
// polylineLength returns the length of the given Polyline.
|
||||
// It returns 0 for polylines with fewer than two vertices.
|
||||
func polylineLength(p []Point) s1.Angle {
|
||||
var length s1.Angle
|
||||
|
||||
for i := 1; i < len(p); i++ {
|
||||
length += p[i-1].Distance(p[i])
|
||||
}
|
||||
return length
|
||||
}
|
||||
|
||||
// polylineCentroid returns the true centroid of the polyline multiplied by the
|
||||
// length of the polyline. The result is not unit length, so you may wish to
|
||||
// normalize it.
|
||||
//
|
||||
// Scaling by the Polyline length makes it easy to compute the centroid
|
||||
// of several Polylines (by simply adding up their centroids).
|
||||
//
|
||||
// Note that for degenerate Polylines (e.g., AA) this returns Point(0, 0, 0).
|
||||
// (This answer is correct; the result of this function is a line integral over
|
||||
// the polyline, whose value is always zero if the polyline is degenerate.)
|
||||
func polylineCentroid(p []Point) Point {
|
||||
var centroid r3.Vector
|
||||
for i := 1; i < len(p); i++ {
|
||||
centroid = centroid.Add(EdgeTrueCentroid(p[i-1], p[i]).Vector)
|
||||
}
|
||||
return Point{centroid}
|
||||
}
|
56
vendor/github.com/golang/geo/s2/shape.go
generated
vendored
56
vendor/github.com/golang/geo/s2/shape.go
generated
vendored
|
@ -59,6 +59,42 @@ func (e edges) Len() int { return len(e) }
|
|||
func (e edges) Swap(i, j int) { e[i], e[j] = e[j], e[i] }
|
||||
func (e edges) Less(i, j int) bool { return e[i].Cmp(e[j]) == -1 }
|
||||
|
||||
// ShapeEdgeID is a unique identifier for an Edge within an ShapeIndex,
|
||||
// consisting of a (shapeID, edgeID) pair.
|
||||
type ShapeEdgeID struct {
|
||||
ShapeID int32
|
||||
EdgeID int32
|
||||
}
|
||||
|
||||
// Cmp compares the two ShapeEdgeIDs and returns
|
||||
//
|
||||
// -1 if s < other
|
||||
// 0 if s == other
|
||||
// +1 if s > other
|
||||
//
|
||||
// The two are compared first by shape id and then by edge id.
|
||||
func (s ShapeEdgeID) Cmp(other ShapeEdgeID) int {
|
||||
switch {
|
||||
case s.ShapeID < other.ShapeID:
|
||||
return -1
|
||||
case s.ShapeID > other.ShapeID:
|
||||
return 1
|
||||
}
|
||||
switch {
|
||||
case s.EdgeID < other.EdgeID:
|
||||
return -1
|
||||
case s.EdgeID > other.EdgeID:
|
||||
return 1
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// ShapeEdge represents a ShapeEdgeID with the two endpoints of that Edge.
|
||||
type ShapeEdge struct {
|
||||
ID ShapeEdgeID
|
||||
Edge Edge
|
||||
}
|
||||
|
||||
// Chain represents a range of edge IDs corresponding to a chain of connected
|
||||
// edges, specified as a (start, length) pair. The chain is defined to consist of
|
||||
// edge IDs {start, start + 1, ..., start + length - 1}.
|
||||
|
@ -179,11 +215,31 @@ type Shape interface {
|
|||
// of edge chains where each chain represents one polygon loop.
|
||||
// Polygons may have degeneracies (e.g., degenerate edges or sibling
|
||||
// pairs consisting of an edge and its corresponding reversed edge).
|
||||
// A polygon loop may also be full (containing all points on the
|
||||
// sphere); by convention this is represented as a chain with no edges.
|
||||
// (See laxPolygon for more details.)
|
||||
//
|
||||
// Note that this method allows degenerate geometry of different dimensions
|
||||
// to be distinguished, e.g. it allows a point to be distinguished from a
|
||||
// polyline or polygon that has been simplified to a single point.
|
||||
dimension() dimension
|
||||
|
||||
// IsEmpty reports whether the Shape contains no points. (Note that the full
|
||||
// polygon is represented as a chain with zero edges.)
|
||||
IsEmpty() bool
|
||||
|
||||
// IsFull reports whether the Shape contains all points on the sphere.
|
||||
IsFull() bool
|
||||
}
|
||||
|
||||
// defaultShapeIsEmpty reports whether this shape contains no points.
|
||||
func defaultShapeIsEmpty(s Shape) bool {
|
||||
return s.NumEdges() == 0 && (!s.HasInterior() || s.NumChains() == 0)
|
||||
}
|
||||
|
||||
// defaultShapeIsFull reports whether this shape contains all points on the sphere.
|
||||
func defaultShapeIsFull(s Shape) bool {
|
||||
return s.NumEdges() == 0 && s.HasInterior() && s.NumChains() > 0
|
||||
}
|
||||
|
||||
// A minimal check for types that should satisfy the Shape interface.
|
||||
|
|
24
vendor/github.com/golang/geo/s2/shapeindex.go
generated
vendored
24
vendor/github.com/golang/geo/s2/shapeindex.go
generated
vendored
|
@ -684,6 +684,22 @@ func (s *ShapeIndex) NumEdges() int {
|
|||
// Shape returns the shape with the given ID, or nil if the shape has been removed from the index.
|
||||
func (s *ShapeIndex) Shape(id int32) Shape { return s.shapes[id] }
|
||||
|
||||
// idForShape returns the id of the given shape in this index, or -1 if it is
|
||||
// not in the index.
|
||||
//
|
||||
// TODO(roberts): Need to figure out an appropriate way to expose this on a Shape.
|
||||
// C++ allows a given S2 type (Loop, Polygon, etc) to be part of multiple indexes.
|
||||
// By having each type extend S2Shape which has an id element, they all inherit their
|
||||
// own id field rather than having to track it themselves.
|
||||
func (s *ShapeIndex) idForShape(shape Shape) int32 {
|
||||
for k, v := range s.shapes {
|
||||
if v == shape {
|
||||
return k
|
||||
}
|
||||
}
|
||||
return -1
|
||||
}
|
||||
|
||||
// Add adds the given shape to the index and returns the assigned ID..
|
||||
func (s *ShapeIndex) Add(shape Shape) int32 {
|
||||
s.shapes[s.nextID] = shape
|
||||
|
@ -696,13 +712,7 @@ func (s *ShapeIndex) Add(shape Shape) int32 {
|
|||
func (s *ShapeIndex) Remove(shape Shape) {
|
||||
// The index updates itself lazily because it is much more efficient to
|
||||
// process additions and removals in batches.
|
||||
// Lookup the id of this shape in the index.
|
||||
id := int32(-1)
|
||||
for k, v := range s.shapes {
|
||||
if v == shape {
|
||||
id = k
|
||||
}
|
||||
}
|
||||
id := s.idForShape(shape)
|
||||
|
||||
// If the shape wasn't found, it's already been removed or was not in the index.
|
||||
if s.shapes[id] == nil {
|
||||
|
|
7
vendor/github.com/golang/geo/s2/shapeutil.go
generated
vendored
7
vendor/github.com/golang/geo/s2/shapeutil.go
generated
vendored
|
@ -113,7 +113,7 @@ func (r *rangeIterator) refresh() {
|
|||
func referencePointForShape(shape Shape) ReferencePoint {
|
||||
if shape.NumEdges() == 0 {
|
||||
// A shape with no edges is defined to be full if and only if it
|
||||
// contains an empty loop.
|
||||
// contains at least one chain.
|
||||
return OriginReferencePoint(shape.NumChains() > 0)
|
||||
}
|
||||
// Define a "matched" edge as one that can be paired with a corresponding
|
||||
|
@ -156,8 +156,9 @@ func referencePointForShape(shape Shape) ReferencePoint {
|
|||
}
|
||||
}
|
||||
|
||||
// All vertices are balanced, so this polygon is either empty or full. By
|
||||
// convention it is defined to be full if it contains any empty loop.
|
||||
// All vertices are balanced, so this polygon is either empty or full except
|
||||
// for degeneracies. By convention it is defined to be full if it contains
|
||||
// any chain with no edges.
|
||||
for i := 0; i < shape.NumChains(); i++ {
|
||||
if shape.Chain(i).Length == 0 {
|
||||
return OriginReferencePoint(true)
|
||||
|
|
8
vendor/github.com/gorilla/context/.travis.yml
generated
vendored
8
vendor/github.com/gorilla/context/.travis.yml
generated
vendored
|
@ -7,13 +7,13 @@ matrix:
|
|||
- go: 1.4
|
||||
- go: 1.5
|
||||
- go: 1.6
|
||||
- go: 1.7
|
||||
- go: tip
|
||||
allow_failures:
|
||||
- go: tip
|
||||
|
||||
install:
|
||||
- go get golang.org/x/tools/cmd/vet
|
||||
|
||||
script:
|
||||
- go get -t -v ./...
|
||||
- diff -u <(echo -n) <(gofmt -d .)
|
||||
- go tool vet .
|
||||
- go vet $(go list ./... | grep -v /vendor/)
|
||||
- go test -v -race ./...
|
||||
|
|
3
vendor/github.com/gorilla/context/README.md
generated
vendored
3
vendor/github.com/gorilla/context/README.md
generated
vendored
|
@ -4,4 +4,7 @@ context
|
|||
|
||||
gorilla/context is a general purpose registry for global request variables.
|
||||
|
||||
> Note: gorilla/context, having been born well before `context.Context` existed, does not play well
|
||||
> with the shallow copying of the request that [`http.Request.WithContext`](https://golang.org/pkg/net/http/#Request.WithContext) (added to net/http Go 1.7 onwards) performs. You should either use *just* gorilla/context, or moving forward, the new `http.Request.Context()`.
|
||||
|
||||
Read the full documentation here: http://www.gorillatoolkit.org/pkg/context
|
||||
|
|
6
vendor/github.com/gorilla/context/doc.go
generated
vendored
6
vendor/github.com/gorilla/context/doc.go
generated
vendored
|
@ -5,6 +5,12 @@
|
|||
/*
|
||||
Package context stores values shared during a request lifetime.
|
||||
|
||||
Note: gorilla/context, having been born well before `context.Context` existed,
|
||||
does not play well > with the shallow copying of the request that
|
||||
[`http.Request.WithContext`](https://golang.org/pkg/net/http/#Request.WithContext)
|
||||
(added to net/http Go 1.7 onwards) performs. You should either use *just*
|
||||
gorilla/context, or moving forward, the new `http.Request.Context()`.
|
||||
|
||||
For example, a router can set variables extracted from the URL and later
|
||||
application handlers can access those values, or it can be used to store
|
||||
sessions values to be saved at the end of a request. There are several
|
||||
|
|
11
vendor/github.com/gorilla/mux/.travis.yml
generated
vendored
11
vendor/github.com/gorilla/mux/.travis.yml
generated
vendored
|
@ -3,11 +3,12 @@ sudo: false
|
|||
|
||||
matrix:
|
||||
include:
|
||||
- go: 1.5
|
||||
- go: 1.6
|
||||
- go: 1.7
|
||||
- go: 1.8
|
||||
- go: 1.9
|
||||
- go: 1.5.x
|
||||
- go: 1.6.x
|
||||
- go: 1.7.x
|
||||
- go: 1.8.x
|
||||
- go: 1.9.x
|
||||
- go: 1.10.x
|
||||
- go: tip
|
||||
allow_failures:
|
||||
- go: tip
|
||||
|
|
267
vendor/github.com/gorilla/mux/README.md
generated
vendored
267
vendor/github.com/gorilla/mux/README.md
generated
vendored
|
@ -1,5 +1,5 @@
|
|||
gorilla/mux
|
||||
===
|
||||
# gorilla/mux
|
||||
|
||||
[![GoDoc](https://godoc.org/github.com/gorilla/mux?status.svg)](https://godoc.org/github.com/gorilla/mux)
|
||||
[![Build Status](https://travis-ci.org/gorilla/mux.svg?branch=master)](https://travis-ci.org/gorilla/mux)
|
||||
[![Sourcegraph](https://sourcegraph.com/github.com/gorilla/mux/-/badge.svg)](https://sourcegraph.com/github.com/gorilla/mux?badge)
|
||||
|
@ -29,6 +29,7 @@ The name mux stands for "HTTP request multiplexer". Like the standard `http.Serv
|
|||
* [Walking Routes](#walking-routes)
|
||||
* [Graceful Shutdown](#graceful-shutdown)
|
||||
* [Middleware](#middleware)
|
||||
* [Testing Handlers](#testing-handlers)
|
||||
* [Full Example](#full-example)
|
||||
|
||||
---
|
||||
|
@ -178,70 +179,13 @@ s.HandleFunc("/{key}/", ProductHandler)
|
|||
// "/products/{key}/details"
|
||||
s.HandleFunc("/{key}/details", ProductDetailsHandler)
|
||||
```
|
||||
### Listing Routes
|
||||
|
||||
Routes on a mux can be listed using the Router.Walk method—useful for generating documentation:
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
)
|
||||
|
||||
func handler(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
func main() {
|
||||
r := mux.NewRouter()
|
||||
r.HandleFunc("/", handler)
|
||||
r.HandleFunc("/products", handler).Methods("POST")
|
||||
r.HandleFunc("/articles", handler).Methods("GET")
|
||||
r.HandleFunc("/articles/{id}", handler).Methods("GET", "PUT")
|
||||
r.HandleFunc("/authors", handler).Queries("surname", "{surname}")
|
||||
r.Walk(func(route *mux.Route, router *mux.Router, ancestors []*mux.Route) error {
|
||||
t, err := route.GetPathTemplate()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
qt, err := route.GetQueriesTemplates()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// p will contain regular expression is compatible with regular expression in Perl, Python, and other languages.
|
||||
// for instance the regular expression for path '/articles/{id}' will be '^/articles/(?P<v0>[^/]+)$'
|
||||
p, err := route.GetPathRegexp()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// qr will contain a list of regular expressions with the same semantics as GetPathRegexp,
|
||||
// just applied to the Queries pairs instead, e.g., 'Queries("surname", "{surname}") will return
|
||||
// {"^surname=(?P<v0>.*)$}. Where each combined query pair will have an entry in the list.
|
||||
qr, err := route.GetQueriesRegexp()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
m, err := route.GetMethods()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
fmt.Println(strings.Join(m, ","), strings.Join(qt, ","), strings.Join(qr, ","), t, p)
|
||||
return nil
|
||||
})
|
||||
http.Handle("/", r)
|
||||
}
|
||||
```
|
||||
|
||||
### Static Files
|
||||
|
||||
Note that the path provided to `PathPrefix()` represents a "wildcard": calling
|
||||
`PathPrefix("/static/").Handler(...)` means that the handler will be passed any
|
||||
request that matches "/static/*". This makes it easy to serve static files with mux:
|
||||
request that matches "/static/\*". This makes it easy to serve static files with mux:
|
||||
|
||||
```go
|
||||
func main() {
|
||||
|
@ -348,41 +292,58 @@ The `Walk` function on `mux.Router` can be used to visit all of the routes that
|
|||
the following prints all of the registered routes:
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
)
|
||||
|
||||
func handler(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
func main() {
|
||||
r := mux.NewRouter()
|
||||
r.HandleFunc("/", handler)
|
||||
r.HandleFunc("/products", handler).Methods("POST")
|
||||
r.HandleFunc("/articles", handler).Methods("GET")
|
||||
r.HandleFunc("/articles/{id}", handler).Methods("GET", "PUT")
|
||||
r.HandleFunc("/authors", handler).Queries("surname", "{surname}")
|
||||
r.Walk(func(route *mux.Route, router *mux.Router, ancestors []*mux.Route) error {
|
||||
t, err := route.GetPathTemplate()
|
||||
if err != nil {
|
||||
return err
|
||||
err := r.Walk(func(route *mux.Route, router *mux.Router, ancestors []*mux.Route) error {
|
||||
pathTemplate, err := route.GetPathTemplate()
|
||||
if err == nil {
|
||||
fmt.Println("ROUTE:", pathTemplate)
|
||||
}
|
||||
qt, err := route.GetQueriesTemplates()
|
||||
if err != nil {
|
||||
return err
|
||||
pathRegexp, err := route.GetPathRegexp()
|
||||
if err == nil {
|
||||
fmt.Println("Path regexp:", pathRegexp)
|
||||
}
|
||||
// p will contain a regular expression that is compatible with regular expressions in Perl, Python, and other languages.
|
||||
// For example, the regular expression for path '/articles/{id}' will be '^/articles/(?P<v0>[^/]+)$'.
|
||||
p, err := route.GetPathRegexp()
|
||||
if err != nil {
|
||||
return err
|
||||
queriesTemplates, err := route.GetQueriesTemplates()
|
||||
if err == nil {
|
||||
fmt.Println("Queries templates:", strings.Join(queriesTemplates, ","))
|
||||
}
|
||||
// qr will contain a list of regular expressions with the same semantics as GetPathRegexp,
|
||||
// just applied to the Queries pairs instead, e.g., 'Queries("surname", "{surname}") will return
|
||||
// {"^surname=(?P<v0>.*)$}. Where each combined query pair will have an entry in the list.
|
||||
qr, err := route.GetQueriesRegexp()
|
||||
if err != nil {
|
||||
return err
|
||||
queriesRegexps, err := route.GetQueriesRegexp()
|
||||
if err == nil {
|
||||
fmt.Println("Queries regexps:", strings.Join(queriesRegexps, ","))
|
||||
}
|
||||
m, err := route.GetMethods()
|
||||
if err != nil {
|
||||
return err
|
||||
methods, err := route.GetMethods()
|
||||
if err == nil {
|
||||
fmt.Println("Methods:", strings.Join(methods, ","))
|
||||
}
|
||||
fmt.Println(strings.Join(m, ","), strings.Join(qt, ","), strings.Join(qr, ","), t, p)
|
||||
fmt.Println()
|
||||
return nil
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
http.Handle("/", r)
|
||||
}
|
||||
```
|
||||
|
||||
### Graceful Shutdown
|
||||
|
@ -399,6 +360,7 @@ import (
|
|||
"net/http"
|
||||
"os"
|
||||
"os/signal"
|
||||
"time"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
)
|
||||
|
@ -436,7 +398,8 @@ func main() {
|
|||
<-c
|
||||
|
||||
// Create a deadline to wait for.
|
||||
ctx, cancel := context.WithTimeout(ctx, wait)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), wait)
|
||||
defer cancel()
|
||||
// Doesn't block if no connections, but will otherwise wait
|
||||
// until the timeout deadline.
|
||||
srv.Shutdown(ctx)
|
||||
|
@ -464,7 +427,7 @@ Typically, the returned handler is a closure which does something with the http.
|
|||
A very basic middleware which logs the URI of the request being handled could be written as:
|
||||
|
||||
```go
|
||||
func simpleMw(next http.Handler) http.Handler {
|
||||
func loggingMiddleware(next http.Handler) http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
// Do stuff here
|
||||
log.Println(r.RequestURI)
|
||||
|
@ -474,12 +437,12 @@ func simpleMw(next http.Handler) http.Handler {
|
|||
}
|
||||
```
|
||||
|
||||
Middlewares can be added to a router using `Router.AddMiddlewareFunc()`:
|
||||
Middlewares can be added to a router using `Router.Use()`:
|
||||
|
||||
```go
|
||||
r := mux.NewRouter()
|
||||
r.HandleFunc("/", handler)
|
||||
r.AddMiddleware(simpleMw)
|
||||
r.Use(loggingMiddleware)
|
||||
```
|
||||
|
||||
A more complex authentication middleware, which maps session token to users, could be written as:
|
||||
|
@ -510,7 +473,7 @@ func (amw *authenticationMiddleware) Middleware(next http.Handler) http.Handler
|
|||
next.ServeHTTP(w, r)
|
||||
} else {
|
||||
// Write an error and stop the handler chain
|
||||
http.Error(w, "Forbidden", 403)
|
||||
http.Error(w, "Forbidden", http.StatusForbidden)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -523,10 +486,136 @@ r.HandleFunc("/", handler)
|
|||
amw := authenticationMiddleware{}
|
||||
amw.Populate()
|
||||
|
||||
r.AddMiddlewareFunc(amw.Middleware)
|
||||
r.Use(amw.Middleware)
|
||||
```
|
||||
|
||||
Note: The handler chain will be stopped if your middleware doesn't call `next.ServeHTTP()` with the corresponding parameters. This can be used to abort a request if the middleware writer wants to. Middlewares *should* write to `ResponseWriter` if they *are* going to terminate the request, and they *should not* write to `ResponseWriter` if they *are not* going to terminate it.
|
||||
Note: The handler chain will be stopped if your middleware doesn't call `next.ServeHTTP()` with the corresponding parameters. This can be used to abort a request if the middleware writer wants to. Middlewares _should_ write to `ResponseWriter` if they _are_ going to terminate the request, and they _should not_ write to `ResponseWriter` if they _are not_ going to terminate it.
|
||||
|
||||
### Testing Handlers
|
||||
|
||||
Testing handlers in a Go web application is straightforward, and _mux_ doesn't complicate this any further. Given two files: `endpoints.go` and `endpoints_test.go`, here's how we'd test an application using _mux_.
|
||||
|
||||
First, our simple HTTP handler:
|
||||
|
||||
```go
|
||||
// endpoints.go
|
||||
package main
|
||||
|
||||
func HealthCheckHandler(w http.ResponseWriter, r *http.Request) {
|
||||
// A very simple health check.
|
||||
w.WriteHeader(http.StatusOK)
|
||||
w.Header().Set("Content-Type", "application/json")
|
||||
|
||||
// In the future we could report back on the status of our DB, or our cache
|
||||
// (e.g. Redis) by performing a simple PING, and include them in the response.
|
||||
io.WriteString(w, `{"alive": true}`)
|
||||
}
|
||||
|
||||
func main() {
|
||||
r := mux.NewRouter()
|
||||
r.HandleFunc("/health", HealthCheckHandler)
|
||||
|
||||
log.Fatal(http.ListenAndServe("localhost:8080", r))
|
||||
}
|
||||
```
|
||||
|
||||
Our test code:
|
||||
|
||||
```go
|
||||
// endpoints_test.go
|
||||
package main
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestHealthCheckHandler(t *testing.T) {
|
||||
// Create a request to pass to our handler. We don't have any query parameters for now, so we'll
|
||||
// pass 'nil' as the third parameter.
|
||||
req, err := http.NewRequest("GET", "/health", nil)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
// We create a ResponseRecorder (which satisfies http.ResponseWriter) to record the response.
|
||||
rr := httptest.NewRecorder()
|
||||
handler := http.HandlerFunc(HealthCheckHandler)
|
||||
|
||||
// Our handlers satisfy http.Handler, so we can call their ServeHTTP method
|
||||
// directly and pass in our Request and ResponseRecorder.
|
||||
handler.ServeHTTP(rr, req)
|
||||
|
||||
// Check the status code is what we expect.
|
||||
if status := rr.Code; status != http.StatusOK {
|
||||
t.Errorf("handler returned wrong status code: got %v want %v",
|
||||
status, http.StatusOK)
|
||||
}
|
||||
|
||||
// Check the response body is what we expect.
|
||||
expected := `{"alive": true}`
|
||||
if rr.Body.String() != expected {
|
||||
t.Errorf("handler returned unexpected body: got %v want %v",
|
||||
rr.Body.String(), expected)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
In the case that our routes have [variables](#examples), we can pass those in the request. We could write
|
||||
[table-driven tests](https://dave.cheney.net/2013/06/09/writing-table-driven-tests-in-go) to test multiple
|
||||
possible route variables as needed.
|
||||
|
||||
```go
|
||||
// endpoints.go
|
||||
func main() {
|
||||
r := mux.NewRouter()
|
||||
// A route with a route variable:
|
||||
r.HandleFunc("/metrics/{type}", MetricsHandler)
|
||||
|
||||
log.Fatal(http.ListenAndServe("localhost:8080", r))
|
||||
}
|
||||
```
|
||||
|
||||
Our test file, with a table-driven test of `routeVariables`:
|
||||
|
||||
```go
|
||||
// endpoints_test.go
|
||||
func TestMetricsHandler(t *testing.T) {
|
||||
tt := []struct{
|
||||
routeVariable string
|
||||
shouldPass bool
|
||||
}{
|
||||
{"goroutines", true},
|
||||
{"heap", true},
|
||||
{"counters", true},
|
||||
{"queries", true},
|
||||
{"adhadaeqm3k", false},
|
||||
}
|
||||
|
||||
for _, tc := range tt {
|
||||
path := fmt.Sprintf("/metrics/%s", tc.routeVariable)
|
||||
req, err := http.NewRequest("GET", path, nil)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
rr := httptest.NewRecorder()
|
||||
|
||||
// Need to create a router that we can pass the request through so that the vars will be added to the context
|
||||
router := mux.NewRouter()
|
||||
router.HandleFunc("/metrics/{type}", MetricsHandler)
|
||||
router.ServeHTTP(rr, req)
|
||||
|
||||
// In this case, our MetricsHandler returns a non-200 response
|
||||
// for a route variable it doesn't know about.
|
||||
if rr.Code == http.StatusOK && !tc.shouldPass {
|
||||
t.Errorf("handler should have failed on routeVariable %s: got %v want %v",
|
||||
tc.routeVariable, rr.Code, http.StatusOK)
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Full Example
|
||||
|
||||
|
|
7
vendor/github.com/gorilla/mux/doc.go
generated
vendored
7
vendor/github.com/gorilla/mux/doc.go
generated
vendored
|
@ -239,8 +239,7 @@ as well:
|
|||
"category", "technology",
|
||||
"id", "42")
|
||||
|
||||
Since **vX.Y.Z**, mux supports the addition of middlewares to a [Router](https://godoc.org/github.com/gorilla/mux#Router), which are executed if a
|
||||
match is found (including subrouters). Middlewares are defined using the de facto standard type:
|
||||
Mux supports the addition of middlewares to a Router, which are executed in the order they are added if a match is found, including its subrouters. Middlewares are (typically) small pieces of code which take one request, do something with it, and pass it down to another middleware or the final handler. Some common use cases for middleware are request logging, header manipulation, or ResponseWriter hijacking.
|
||||
|
||||
type MiddlewareFunc func(http.Handler) http.Handler
|
||||
|
||||
|
@ -261,7 +260,7 @@ Middlewares can be added to a router using `Router.Use()`:
|
|||
|
||||
r := mux.NewRouter()
|
||||
r.HandleFunc("/", handler)
|
||||
r.AddMiddleware(simpleMw)
|
||||
r.Use(simpleMw)
|
||||
|
||||
A more complex authentication middleware, which maps session token to users, could be written as:
|
||||
|
||||
|
@ -288,7 +287,7 @@ A more complex authentication middleware, which maps session token to users, cou
|
|||
log.Printf("Authenticated user %s\n", user)
|
||||
next.ServeHTTP(w, r)
|
||||
} else {
|
||||
http.Error(w, "Forbidden", 403)
|
||||
http.Error(w, "Forbidden", http.StatusForbidden)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
52
vendor/github.com/gorilla/mux/middleware.go
generated
vendored
52
vendor/github.com/gorilla/mux/middleware.go
generated
vendored
|
@ -1,6 +1,9 @@
|
|||
package mux
|
||||
|
||||
import "net/http"
|
||||
import (
|
||||
"net/http"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// MiddlewareFunc is a function which receives an http.Handler and returns another http.Handler.
|
||||
// Typically, the returned handler is a closure which does something with the http.ResponseWriter and http.Request passed
|
||||
|
@ -12,17 +15,58 @@ type middleware interface {
|
|||
Middleware(handler http.Handler) http.Handler
|
||||
}
|
||||
|
||||
// MiddlewareFunc also implements the middleware interface.
|
||||
// Middleware allows MiddlewareFunc to implement the middleware interface.
|
||||
func (mw MiddlewareFunc) Middleware(handler http.Handler) http.Handler {
|
||||
return mw(handler)
|
||||
}
|
||||
|
||||
// Use appends a MiddlewareFunc to the chain. Middleware can be used to intercept or otherwise modify requests and/or responses, and are executed in the order that they are applied to the Router.
|
||||
func (r *Router) Use(mwf MiddlewareFunc) {
|
||||
r.middlewares = append(r.middlewares, mwf)
|
||||
func (r *Router) Use(mwf ...MiddlewareFunc) {
|
||||
for _, fn := range mwf {
|
||||
r.middlewares = append(r.middlewares, fn)
|
||||
}
|
||||
}
|
||||
|
||||
// useInterface appends a middleware to the chain. Middleware can be used to intercept or otherwise modify requests and/or responses, and are executed in the order that they are applied to the Router.
|
||||
func (r *Router) useInterface(mw middleware) {
|
||||
r.middlewares = append(r.middlewares, mw)
|
||||
}
|
||||
|
||||
// CORSMethodMiddleware sets the Access-Control-Allow-Methods response header
|
||||
// on a request, by matching routes based only on paths. It also handles
|
||||
// OPTIONS requests, by settings Access-Control-Allow-Methods, and then
|
||||
// returning without calling the next http handler.
|
||||
func CORSMethodMiddleware(r *Router) MiddlewareFunc {
|
||||
return func(next http.Handler) http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
|
||||
var allMethods []string
|
||||
|
||||
err := r.Walk(func(route *Route, _ *Router, _ []*Route) error {
|
||||
for _, m := range route.matchers {
|
||||
if _, ok := m.(*routeRegexp); ok {
|
||||
if m.Match(req, &RouteMatch{}) {
|
||||
methods, err := route.GetMethods()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
allMethods = append(allMethods, methods...)
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
||||
if err == nil {
|
||||
w.Header().Set("Access-Control-Allow-Methods", strings.Join(append(allMethods, "OPTIONS"), ","))
|
||||
|
||||
if req.Method == "OPTIONS" {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
next.ServeHTTP(w, req)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
7
vendor/github.com/gorilla/mux/mux.go
generated
vendored
7
vendor/github.com/gorilla/mux/mux.go
generated
vendored
|
@ -13,7 +13,10 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
// ErrMethodMismatch is returned when the method in the request does not match
|
||||
// the method defined against the route.
|
||||
ErrMethodMismatch = errors.New("method is not allowed")
|
||||
// ErrNotFound is returned when no route match is found.
|
||||
ErrNotFound = errors.New("no matching route was found")
|
||||
)
|
||||
|
||||
|
@ -95,9 +98,9 @@ func (r *Router) Match(req *http.Request, match *RouteMatch) bool {
|
|||
if r.MethodNotAllowedHandler != nil {
|
||||
match.Handler = r.MethodNotAllowedHandler
|
||||
return true
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// Closest match for a router (includes sub-routers)
|
||||
|
|
10
vendor/github.com/gorilla/mux/route.go
generated
vendored
10
vendor/github.com/gorilla/mux/route.go
generated
vendored
|
@ -43,6 +43,8 @@ type Route struct {
|
|||
buildVarsFunc BuildVarsFunc
|
||||
}
|
||||
|
||||
// SkipClean reports whether path cleaning is enabled for this route via
|
||||
// Router.SkipClean.
|
||||
func (r *Route) SkipClean() bool {
|
||||
return r.skipClean
|
||||
}
|
||||
|
@ -622,7 +624,7 @@ func (r *Route) GetPathRegexp() (string, error) {
|
|||
// route queries.
|
||||
// This is useful for building simple REST API documentation and for instrumentation
|
||||
// against third-party services.
|
||||
// An empty list will be returned if the route does not have queries.
|
||||
// An error will be returned if the route does not have queries.
|
||||
func (r *Route) GetQueriesRegexp() ([]string, error) {
|
||||
if r.err != nil {
|
||||
return nil, r.err
|
||||
|
@ -641,7 +643,7 @@ func (r *Route) GetQueriesRegexp() ([]string, error) {
|
|||
// query matching.
|
||||
// This is useful for building simple REST API documentation and for instrumentation
|
||||
// against third-party services.
|
||||
// An empty list will be returned if the route does not define queries.
|
||||
// An error will be returned if the route does not define queries.
|
||||
func (r *Route) GetQueriesTemplates() ([]string, error) {
|
||||
if r.err != nil {
|
||||
return nil, r.err
|
||||
|
@ -659,7 +661,7 @@ func (r *Route) GetQueriesTemplates() ([]string, error) {
|
|||
// GetMethods returns the methods the route matches against
|
||||
// This is useful for building simple REST API documentation and for instrumentation
|
||||
// against third-party services.
|
||||
// An empty list will be returned if route does not have methods.
|
||||
// An error will be returned if route does not have methods.
|
||||
func (r *Route) GetMethods() ([]string, error) {
|
||||
if r.err != nil {
|
||||
return nil, r.err
|
||||
|
@ -669,7 +671,7 @@ func (r *Route) GetMethods() ([]string, error) {
|
|||
return []string(methods), nil
|
||||
}
|
||||
}
|
||||
return nil, nil
|
||||
return nil, errors.New("mux: route doesn't have methods")
|
||||
}
|
||||
|
||||
// GetHostTemplate returns the template used to build the
|
||||
|
|
3
vendor/github.com/gorilla/mux/test_helpers.go
generated
vendored
3
vendor/github.com/gorilla/mux/test_helpers.go
generated
vendored
|
@ -7,7 +7,8 @@ package mux
|
|||
import "net/http"
|
||||
|
||||
// SetURLVars sets the URL variables for the given request, to be accessed via
|
||||
// mux.Vars for testing route behaviour.
|
||||
// mux.Vars for testing route behaviour. Arguments are not modified, a shallow
|
||||
// copy is returned.
|
||||
//
|
||||
// This API should only be used for testing purposes; it provides a way to
|
||||
// inject variables into the request context. Alternatively, URL variables
|
||||
|
|
35
vendor/github.com/lucasb-eyer/go-colorful/README.md
generated
vendored
35
vendor/github.com/lucasb-eyer/go-colorful/README.md
generated
vendored
|
@ -124,17 +124,16 @@ Because a `colorful.Color` implements Go's `color.Color` interface (found in the
|
|||
`image/color` package), it can be used anywhere that expects a `color.Color`.
|
||||
|
||||
Furthermore, you can convert anything that implements the `color.Color` interface
|
||||
into a `colorful.Color` using the `MakeColorful` function:
|
||||
into a `colorful.Color` using the `MakeColor` function:
|
||||
|
||||
```go
|
||||
c := colorful.MakeColor(color.Gray16{12345})
|
||||
c, ok := colorful.MakeColor(color.Gray16{12345})
|
||||
```
|
||||
|
||||
**Caveat:** Be aware that for this latter conversion (using `MakeColor`) hits a corner-case
|
||||
when alpha is exactly zero. Because `color.Color` uses pre-multiplied alpha colors,
|
||||
this means the RGB values are lost and it's impossible to recover them. The current
|
||||
implementation `panic()`s in that case, see [issue 21](https://github.com/lucasb-eyer/go-colorful/issues/21)
|
||||
for discussion and suggesting alternatives.
|
||||
**Caveat:** Be aware that this latter conversion (using `MakeColor`) hits a
|
||||
corner-case when alpha is exactly zero. Because `color.Color` uses pre-multiplied
|
||||
alpha colors, this means the RGB values are lost (set to 0) and it's impossible
|
||||
to recover them. In such a case `MakeColor` will return `false` as its second value.
|
||||
|
||||
### Comparing colors
|
||||
In the RGB color space, the Euclidian distance between colors *doesn't* correspond
|
||||
|
@ -308,7 +307,7 @@ second is the fast one.
|
|||
![Warm, fast warm, happy and fast happy random colors, respectively.](doc/colorgens/colorgens.png)
|
||||
|
||||
Don't forget to initialize the random seed! You can see the code used for
|
||||
generating this picture in `doc/colorgens/golorgens.go`.
|
||||
generating this picture in `doc/colorgens/colorgens.go`.
|
||||
|
||||
### Getting random palettes
|
||||
As soon as you need to generate more than one random color, you probably want
|
||||
|
@ -456,16 +455,26 @@ but that is outside the scope of this library.
|
|||
Thanks to [@ZirconiumX](https://github.com/ZirconiumX) for starting this investigation,
|
||||
see [issue #18](https://github.com/lucasb-eyer/go-colorful/issues/18) for details.
|
||||
|
||||
### Q: `MakeColor` panics when alpha is zero!
|
||||
A: Because in that case, the conversion is undefined. See
|
||||
[issue 21](https://github.com/lucasb-eyer/go-colorful/issues/21)
|
||||
as well as the short caveat discussion in the ["The `color.Color` interface"](README.md#the-colorcolor-interface) section above.
|
||||
### Q: Why would `MakeColor` ever fail!?
|
||||
A: `MakeColor` fails when the alpha channel is zero. In that case, the
|
||||
conversion is undefined. See [issue 21](https://github.com/lucasb-eyer/go-colorful/issues/21)
|
||||
as well as the short caveat note in the ["The `color.Color` interface"](README.md#the-colorcolor-interface)
|
||||
section above.
|
||||
|
||||
Who?
|
||||
====
|
||||
|
||||
This library has been developed by Lucas Beyer with contributions from
|
||||
Bastien Dejean (@baskerville) and Phil Kulak (@pkulak).
|
||||
Bastien Dejean (@baskerville), Phil Kulak (@pkulak) and Christian Muehlhaeuser (@muesli).
|
||||
|
||||
Release Notes
|
||||
=============
|
||||
|
||||
### Version 1.0
|
||||
- API Breaking change in `MakeColor`: instead of `panic`ing when alpha is zero, it now returns a secondary, boolean return value indicating success. See [the color.Color interface](https://github.com/lucasb-eyer/go-colorful#the-colorcolor-interface) section and [this FAQ entry](https://github.com/lucasb-eyer/go-colorful#q-why-would-makecolor-ever-fail) for details.
|
||||
|
||||
### Version 0.9
|
||||
- Initial version number after having ignored versioning for a long time :)
|
||||
|
||||
License: MIT
|
||||
============
|
||||
|
|
7
vendor/github.com/lucasb-eyer/go-colorful/colorgens.go
generated
vendored
7
vendor/github.com/lucasb-eyer/go-colorful/colorgens.go
generated
vendored
|
@ -18,7 +18,8 @@ func FastWarmColor() Color {
|
|||
// This is slower than FastWarmColor but will likely give you colors which have
|
||||
// the same "warmness" if you run it many times.
|
||||
func WarmColor() (c Color) {
|
||||
for c = randomWarm() ; !c.IsValid() ; c = randomWarm() {}
|
||||
for c = randomWarm(); !c.IsValid(); c = randomWarm() {
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -41,7 +42,8 @@ func FastHappyColor() Color {
|
|||
// This is slower than FastHappyColor but will likely give you colors which
|
||||
// have the same "brightness" if you run it many times.
|
||||
func HappyColor() (c Color) {
|
||||
for c = randomPimp() ; !c.IsValid() ; c = randomPimp() {}
|
||||
for c = randomPimp(); !c.IsValid(); c = randomPimp() {
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -51,4 +53,3 @@ func randomPimp() Color {
|
|||
0.5+rand.Float64()*0.3,
|
||||
0.5+rand.Float64()*0.3)
|
||||
}
|
||||
|
||||
|
|
68
vendor/github.com/lucasb-eyer/go-colorful/colors.go
generated
vendored
68
vendor/github.com/lucasb-eyer/go-colorful/colors.go
generated
vendored
|
@ -3,8 +3,8 @@ package colorful
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"math"
|
||||
"image/color"
|
||||
"math"
|
||||
)
|
||||
|
||||
// A color is stored internally using sRGB (standard RGB) values in the range 0-1
|
||||
|
@ -22,8 +22,11 @@ func (col Color) RGBA() (r, g, b, a uint32) {
|
|||
}
|
||||
|
||||
// Constructs a colorful.Color from something implementing color.Color
|
||||
func MakeColor(col color.Color) Color {
|
||||
func MakeColor(col color.Color) (Color, bool) {
|
||||
r, g, b, a := col.RGBA()
|
||||
if a == 0 {
|
||||
return Color{0, 0, 0}, false
|
||||
}
|
||||
|
||||
// Since color.Color is alpha pre-multiplied, we need to divide the
|
||||
// RGB values by alpha again in order to get back the original RGB.
|
||||
|
@ -34,7 +37,7 @@ func MakeColor(col color.Color) Color {
|
|||
b *= 0xffff
|
||||
b /= a
|
||||
|
||||
return Color{float64(r)/65535.0, float64(g)/65535.0, float64(b)/65535.0}
|
||||
return Color{float64(r) / 65535.0, float64(g) / 65535.0, float64(b) / 65535.0}, true
|
||||
}
|
||||
|
||||
// Might come in handy sometimes to reduce boilerplate code.
|
||||
|
@ -72,11 +75,11 @@ func (c Color) Clamped() Color {
|
|||
}
|
||||
|
||||
func sq(v float64) float64 {
|
||||
return v * v;
|
||||
return v * v
|
||||
}
|
||||
|
||||
func cub(v float64) float64 {
|
||||
return v * v * v;
|
||||
return v * v * v
|
||||
}
|
||||
|
||||
// DistanceRgb computes the distance between two colors in RGB space.
|
||||
|
@ -107,7 +110,6 @@ func interp_angle(a0, a1, t float64) float64 {
|
|||
return math.Mod(a0+t*delta+360.0, 360.0)
|
||||
}
|
||||
|
||||
|
||||
/// HSV ///
|
||||
///////////
|
||||
// From http://en.wikipedia.org/wiki/HSL_and_HSV
|
||||
|
@ -126,11 +128,19 @@ func (col Color) Hsv() (h, s, v float64) {
|
|||
|
||||
h = 0.0 // We use 0 instead of undefined as in wp.
|
||||
if min != v {
|
||||
if v == col.R { h = math.Mod((col.G - col.B) / C, 6.0) }
|
||||
if v == col.G { h = (col.B - col.R) / C + 2.0 }
|
||||
if v == col.B { h = (col.R - col.G) / C + 4.0 }
|
||||
if v == col.R {
|
||||
h = math.Mod((col.G-col.B)/C, 6.0)
|
||||
}
|
||||
if v == col.G {
|
||||
h = (col.B-col.R)/C + 2.0
|
||||
}
|
||||
if v == col.B {
|
||||
h = (col.R-col.G)/C + 4.0
|
||||
}
|
||||
h *= 60.0
|
||||
if h < 0.0 { h += 360.0 }
|
||||
if h < 0.0 {
|
||||
h += 360.0
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
@ -141,16 +151,28 @@ func Hsv(H, S, V float64) Color {
|
|||
C := V * S
|
||||
X := C * (1.0 - math.Abs(math.Mod(Hp, 2.0)-1.0))
|
||||
|
||||
m := V-C;
|
||||
m := V - C
|
||||
r, g, b := 0.0, 0.0, 0.0
|
||||
|
||||
switch {
|
||||
case 0.0 <= Hp && Hp < 1.0: r = C; g = X
|
||||
case 1.0 <= Hp && Hp < 2.0: r = X; g = C
|
||||
case 2.0 <= Hp && Hp < 3.0: g = C; b = X
|
||||
case 3.0 <= Hp && Hp < 4.0: g = X; b = C
|
||||
case 4.0 <= Hp && Hp < 5.0: r = X; b = C
|
||||
case 5.0 <= Hp && Hp < 6.0: r = C; b = X
|
||||
case 0.0 <= Hp && Hp < 1.0:
|
||||
r = C
|
||||
g = X
|
||||
case 1.0 <= Hp && Hp < 2.0:
|
||||
r = X
|
||||
g = C
|
||||
case 2.0 <= Hp && Hp < 3.0:
|
||||
g = C
|
||||
b = X
|
||||
case 3.0 <= Hp && Hp < 4.0:
|
||||
g = X
|
||||
b = C
|
||||
case 4.0 <= Hp && Hp < 5.0:
|
||||
r = X
|
||||
b = C
|
||||
case 5.0 <= Hp && Hp < 6.0:
|
||||
r = C
|
||||
b = X
|
||||
}
|
||||
|
||||
return Color{m + r, m + g, m + b}
|
||||
|
@ -229,22 +251,22 @@ func Hsl(h, s, l float64) Color {
|
|||
tb = h - 1.0/3.0
|
||||
|
||||
if tr < 0 {
|
||||
tr += 1
|
||||
tr++
|
||||
}
|
||||
if tr > 1 {
|
||||
tr -= 1
|
||||
tr--
|
||||
}
|
||||
if tg < 0 {
|
||||
tg += 1
|
||||
tg++
|
||||
}
|
||||
if tg > 1 {
|
||||
tg -= 1
|
||||
tg--
|
||||
}
|
||||
if tb < 0 {
|
||||
tb += 1
|
||||
tb++
|
||||
}
|
||||
if tb > 1 {
|
||||
tb -= 1
|
||||
tb--
|
||||
}
|
||||
|
||||
// Red
|
||||
|
|
1
vendor/github.com/lucasb-eyer/go-colorful/happy_palettegen.go
generated
vendored
1
vendor/github.com/lucasb-eyer/go-colorful/happy_palettegen.go
generated
vendored
|
@ -23,4 +23,3 @@ func HappyPalette(colorsCount int) ([]Color, error) {
|
|||
}
|
||||
return SoftPaletteEx(colorsCount, SoftPaletteSettings{pimpy, 50, true})
|
||||
}
|
||||
|
||||
|
|
2
vendor/github.com/lucasb-eyer/go-colorful/soft_palettegen.go
generated
vendored
2
vendor/github.com/lucasb-eyer/go-colorful/soft_palettegen.go
generated
vendored
|
@ -163,6 +163,7 @@ func in(haystack []lab_t, upto int, needle lab_t) bool {
|
|||
}
|
||||
|
||||
const LAB_DELTA = 1e-6
|
||||
|
||||
func lab_eq(lab1, lab2 lab_t) bool {
|
||||
return math.Abs(lab1.L-lab2.L) < LAB_DELTA &&
|
||||
math.Abs(lab1.A-lab2.A) < LAB_DELTA &&
|
||||
|
@ -182,4 +183,3 @@ func labs2cols(labs []lab_t) (cols []Color) {
|
|||
}
|
||||
return cols
|
||||
}
|
||||
|
||||
|
|
1
vendor/github.com/lucasb-eyer/go-colorful/warm_palettegen.go
generated
vendored
1
vendor/github.com/lucasb-eyer/go-colorful/warm_palettegen.go
generated
vendored
|
@ -23,4 +23,3 @@ func WarmPalette(colorsCount int) ([]Color, error) {
|
|||
}
|
||||
return SoftPaletteEx(colorsCount, SoftPaletteSettings{warmy, 50, true})
|
||||
}
|
||||
|
||||
|
|
0
vendor/github.com/Sirupsen/logrus/doc.go → vendor/github.com/sirupsen/logrus/doc.go
generated
vendored
0
vendor/github.com/Sirupsen/logrus/doc.go → vendor/github.com/sirupsen/logrus/doc.go
generated
vendored
105
vendor/github.com/spf13/pflag/bytes.go
generated
vendored
Normal file
105
vendor/github.com/spf13/pflag/bytes.go
generated
vendored
Normal file
|
@ -0,0 +1,105 @@
|
|||
package pflag
|
||||
|
||||
import (
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// BytesHex adapts []byte for use as a flag. Value of flag is HEX encoded
|
||||
type bytesHexValue []byte
|
||||
|
||||
func (bytesHex bytesHexValue) String() string {
|
||||
return fmt.Sprintf("%X", []byte(bytesHex))
|
||||
}
|
||||
|
||||
func (bytesHex *bytesHexValue) Set(value string) error {
|
||||
bin, err := hex.DecodeString(strings.TrimSpace(value))
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
*bytesHex = bin
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (*bytesHexValue) Type() string {
|
||||
return "bytesHex"
|
||||
}
|
||||
|
||||
func newBytesHexValue(val []byte, p *[]byte) *bytesHexValue {
|
||||
*p = val
|
||||
return (*bytesHexValue)(p)
|
||||
}
|
||||
|
||||
func bytesHexConv(sval string) (interface{}, error) {
|
||||
|
||||
bin, err := hex.DecodeString(sval)
|
||||
|
||||
if err == nil {
|
||||
return bin, nil
|
||||
}
|
||||
|
||||
return nil, fmt.Errorf("invalid string being converted to Bytes: %s %s", sval, err)
|
||||
}
|
||||
|
||||
// GetBytesHex return the []byte value of a flag with the given name
|
||||
func (f *FlagSet) GetBytesHex(name string) ([]byte, error) {
|
||||
val, err := f.getFlagType(name, "bytesHex", bytesHexConv)
|
||||
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
|
||||
return val.([]byte), nil
|
||||
}
|
||||
|
||||
// BytesHexVar defines an []byte flag with specified name, default value, and usage string.
|
||||
// The argument p points to an []byte variable in which to store the value of the flag.
|
||||
func (f *FlagSet) BytesHexVar(p *[]byte, name string, value []byte, usage string) {
|
||||
f.VarP(newBytesHexValue(value, p), name, "", usage)
|
||||
}
|
||||
|
||||
// BytesHexVarP is like BytesHexVar, but accepts a shorthand letter that can be used after a single dash.
|
||||
func (f *FlagSet) BytesHexVarP(p *[]byte, name, shorthand string, value []byte, usage string) {
|
||||
f.VarP(newBytesHexValue(value, p), name, shorthand, usage)
|
||||
}
|
||||
|
||||
// BytesHexVar defines an []byte flag with specified name, default value, and usage string.
|
||||
// The argument p points to an []byte variable in which to store the value of the flag.
|
||||
func BytesHexVar(p *[]byte, name string, value []byte, usage string) {
|
||||
CommandLine.VarP(newBytesHexValue(value, p), name, "", usage)
|
||||
}
|
||||
|
||||
// BytesHexVarP is like BytesHexVar, but accepts a shorthand letter that can be used after a single dash.
|
||||
func BytesHexVarP(p *[]byte, name, shorthand string, value []byte, usage string) {
|
||||
CommandLine.VarP(newBytesHexValue(value, p), name, shorthand, usage)
|
||||
}
|
||||
|
||||
// BytesHex defines an []byte flag with specified name, default value, and usage string.
|
||||
// The return value is the address of an []byte variable that stores the value of the flag.
|
||||
func (f *FlagSet) BytesHex(name string, value []byte, usage string) *[]byte {
|
||||
p := new([]byte)
|
||||
f.BytesHexVarP(p, name, "", value, usage)
|
||||
return p
|
||||
}
|
||||
|
||||
// BytesHexP is like BytesHex, but accepts a shorthand letter that can be used after a single dash.
|
||||
func (f *FlagSet) BytesHexP(name, shorthand string, value []byte, usage string) *[]byte {
|
||||
p := new([]byte)
|
||||
f.BytesHexVarP(p, name, shorthand, value, usage)
|
||||
return p
|
||||
}
|
||||
|
||||
// BytesHex defines an []byte flag with specified name, default value, and usage string.
|
||||
// The return value is the address of an []byte variable that stores the value of the flag.
|
||||
func BytesHex(name string, value []byte, usage string) *[]byte {
|
||||
return CommandLine.BytesHexP(name, "", value, usage)
|
||||
}
|
||||
|
||||
// BytesHexP is like BytesHex, but accepts a shorthand letter that can be used after a single dash.
|
||||
func BytesHexP(name, shorthand string, value []byte, usage string) *[]byte {
|
||||
return CommandLine.BytesHexP(name, shorthand, value, usage)
|
||||
}
|
12
vendor/github.com/spf13/pflag/count.go
generated
vendored
12
vendor/github.com/spf13/pflag/count.go
generated
vendored
|
@ -11,13 +11,13 @@ func newCountValue(val int, p *int) *countValue {
|
|||
}
|
||||
|
||||
func (i *countValue) Set(s string) error {
|
||||
v, err := strconv.ParseInt(s, 0, 64)
|
||||
// -1 means that no specific value was passed, so increment
|
||||
if v == -1 {
|
||||
// "+1" means that no specific value was passed, so increment
|
||||
if s == "+1" {
|
||||
*i = countValue(*i + 1)
|
||||
} else {
|
||||
*i = countValue(v)
|
||||
return nil
|
||||
}
|
||||
v, err := strconv.ParseInt(s, 0, 0)
|
||||
*i = countValue(v)
|
||||
return err
|
||||
}
|
||||
|
||||
|
@ -54,7 +54,7 @@ func (f *FlagSet) CountVar(p *int, name string, usage string) {
|
|||
// CountVarP is like CountVar only take a shorthand for the flag name.
|
||||
func (f *FlagSet) CountVarP(p *int, name, shorthand string, usage string) {
|
||||
flag := f.VarPF(newCountValue(0, p), name, shorthand, usage)
|
||||
flag.NoOptDefVal = "-1"
|
||||
flag.NoOptDefVal = "+1"
|
||||
}
|
||||
|
||||
// CountVar like CountVar only the flag is placed on the CommandLine instead of a given flag set
|
||||
|
|
128
vendor/github.com/spf13/pflag/duration_slice.go
generated
vendored
Normal file
128
vendor/github.com/spf13/pflag/duration_slice.go
generated
vendored
Normal file
|
@ -0,0 +1,128 @@
|
|||
package pflag
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
// -- durationSlice Value
|
||||
type durationSliceValue struct {
|
||||
value *[]time.Duration
|
||||
changed bool
|
||||
}
|
||||
|
||||
func newDurationSliceValue(val []time.Duration, p *[]time.Duration) *durationSliceValue {
|
||||
dsv := new(durationSliceValue)
|
||||
dsv.value = p
|
||||
*dsv.value = val
|
||||
return dsv
|
||||
}
|
||||
|
||||
func (s *durationSliceValue) Set(val string) error {
|
||||
ss := strings.Split(val, ",")
|
||||
out := make([]time.Duration, len(ss))
|
||||
for i, d := range ss {
|
||||
var err error
|
||||
out[i], err = time.ParseDuration(d)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
}
|
||||
if !s.changed {
|
||||
*s.value = out
|
||||
} else {
|
||||
*s.value = append(*s.value, out...)
|
||||
}
|
||||
s.changed = true
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *durationSliceValue) Type() string {
|
||||
return "durationSlice"
|
||||
}
|
||||
|
||||
func (s *durationSliceValue) String() string {
|
||||
out := make([]string, len(*s.value))
|
||||
for i, d := range *s.value {
|
||||
out[i] = fmt.Sprintf("%s", d)
|
||||
}
|
||||
return "[" + strings.Join(out, ",") + "]"
|
||||
}
|
||||
|
||||
func durationSliceConv(val string) (interface{}, error) {
|
||||
val = strings.Trim(val, "[]")
|
||||
// Empty string would cause a slice with one (empty) entry
|
||||
if len(val) == 0 {
|
||||
return []time.Duration{}, nil
|
||||
}
|
||||
ss := strings.Split(val, ",")
|
||||
out := make([]time.Duration, len(ss))
|
||||
for i, d := range ss {
|
||||
var err error
|
||||
out[i], err = time.ParseDuration(d)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// GetDurationSlice returns the []time.Duration value of a flag with the given name
|
||||
func (f *FlagSet) GetDurationSlice(name string) ([]time.Duration, error) {
|
||||
val, err := f.getFlagType(name, "durationSlice", durationSliceConv)
|
||||
if err != nil {
|
||||
return []time.Duration{}, err
|
||||
}
|
||||
return val.([]time.Duration), nil
|
||||
}
|
||||
|
||||
// DurationSliceVar defines a durationSlice flag with specified name, default value, and usage string.
|
||||
// The argument p points to a []time.Duration variable in which to store the value of the flag.
|
||||
func (f *FlagSet) DurationSliceVar(p *[]time.Duration, name string, value []time.Duration, usage string) {
|
||||
f.VarP(newDurationSliceValue(value, p), name, "", usage)
|
||||
}
|
||||
|
||||
// DurationSliceVarP is like DurationSliceVar, but accepts a shorthand letter that can be used after a single dash.
|
||||
func (f *FlagSet) DurationSliceVarP(p *[]time.Duration, name, shorthand string, value []time.Duration, usage string) {
|
||||
f.VarP(newDurationSliceValue(value, p), name, shorthand, usage)
|
||||
}
|
||||
|
||||
// DurationSliceVar defines a duration[] flag with specified name, default value, and usage string.
|
||||
// The argument p points to a duration[] variable in which to store the value of the flag.
|
||||
func DurationSliceVar(p *[]time.Duration, name string, value []time.Duration, usage string) {
|
||||
CommandLine.VarP(newDurationSliceValue(value, p), name, "", usage)
|
||||
}
|
||||
|
||||
// DurationSliceVarP is like DurationSliceVar, but accepts a shorthand letter that can be used after a single dash.
|
||||
func DurationSliceVarP(p *[]time.Duration, name, shorthand string, value []time.Duration, usage string) {
|
||||
CommandLine.VarP(newDurationSliceValue(value, p), name, shorthand, usage)
|
||||
}
|
||||
|
||||
// DurationSlice defines a []time.Duration flag with specified name, default value, and usage string.
|
||||
// The return value is the address of a []time.Duration variable that stores the value of the flag.
|
||||
func (f *FlagSet) DurationSlice(name string, value []time.Duration, usage string) *[]time.Duration {
|
||||
p := []time.Duration{}
|
||||
f.DurationSliceVarP(&p, name, "", value, usage)
|
||||
return &p
|
||||
}
|
||||
|
||||
// DurationSliceP is like DurationSlice, but accepts a shorthand letter that can be used after a single dash.
|
||||
func (f *FlagSet) DurationSliceP(name, shorthand string, value []time.Duration, usage string) *[]time.Duration {
|
||||
p := []time.Duration{}
|
||||
f.DurationSliceVarP(&p, name, shorthand, value, usage)
|
||||
return &p
|
||||
}
|
||||
|
||||
// DurationSlice defines a []time.Duration flag with specified name, default value, and usage string.
|
||||
// The return value is the address of a []time.Duration variable that stores the value of the flag.
|
||||
func DurationSlice(name string, value []time.Duration, usage string) *[]time.Duration {
|
||||
return CommandLine.DurationSliceP(name, "", value, usage)
|
||||
}
|
||||
|
||||
// DurationSliceP is like DurationSlice, but accepts a shorthand letter that can be used after a single dash.
|
||||
func DurationSliceP(name, shorthand string, value []time.Duration, usage string) *[]time.Duration {
|
||||
return CommandLine.DurationSliceP(name, shorthand, value, usage)
|
||||
}
|
131
vendor/github.com/spf13/pflag/flag.go
generated
vendored
131
vendor/github.com/spf13/pflag/flag.go
generated
vendored
|
@ -101,6 +101,7 @@ package pflag
|
|||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
goflag "flag"
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
|
@ -123,6 +124,12 @@ const (
|
|||
PanicOnError
|
||||
)
|
||||
|
||||
// ParseErrorsWhitelist defines the parsing errors that can be ignored
|
||||
type ParseErrorsWhitelist struct {
|
||||
// UnknownFlags will ignore unknown flags errors and continue parsing rest of the flags
|
||||
UnknownFlags bool
|
||||
}
|
||||
|
||||
// NormalizedName is a flag name that has been normalized according to rules
|
||||
// for the FlagSet (e.g. making '-' and '_' equivalent).
|
||||
type NormalizedName string
|
||||
|
@ -138,6 +145,9 @@ type FlagSet struct {
|
|||
// help/usage messages.
|
||||
SortFlags bool
|
||||
|
||||
// ParseErrorsWhitelist is used to configure a whitelist of errors
|
||||
ParseErrorsWhitelist ParseErrorsWhitelist
|
||||
|
||||
name string
|
||||
parsed bool
|
||||
actual map[NormalizedName]*Flag
|
||||
|
@ -153,6 +163,8 @@ type FlagSet struct {
|
|||
output io.Writer // nil means stderr; use out() accessor
|
||||
interspersed bool // allow interspersed option/non-option args
|
||||
normalizeNameFunc func(f *FlagSet, name string) NormalizedName
|
||||
|
||||
addedGoFlagSets []*goflag.FlagSet
|
||||
}
|
||||
|
||||
// A Flag represents the state of a flag.
|
||||
|
@ -202,12 +214,18 @@ func sortFlags(flags map[NormalizedName]*Flag) []*Flag {
|
|||
func (f *FlagSet) SetNormalizeFunc(n func(f *FlagSet, name string) NormalizedName) {
|
||||
f.normalizeNameFunc = n
|
||||
f.sortedFormal = f.sortedFormal[:0]
|
||||
for k, v := range f.orderedFormal {
|
||||
delete(f.formal, NormalizedName(v.Name))
|
||||
nname := f.normalizeFlagName(v.Name)
|
||||
v.Name = string(nname)
|
||||
f.formal[nname] = v
|
||||
f.orderedFormal[k] = v
|
||||
for fname, flag := range f.formal {
|
||||
nname := f.normalizeFlagName(flag.Name)
|
||||
if fname == nname {
|
||||
continue
|
||||
}
|
||||
flag.Name = string(nname)
|
||||
delete(f.formal, fname)
|
||||
f.formal[nname] = flag
|
||||
if _, set := f.actual[fname]; set {
|
||||
delete(f.actual, fname)
|
||||
f.actual[nname] = flag
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -261,16 +279,16 @@ func (f *FlagSet) VisitAll(fn func(*Flag)) {
|
|||
}
|
||||
}
|
||||
|
||||
// HasFlags returns a bool to indicate if the FlagSet has any flags definied.
|
||||
// HasFlags returns a bool to indicate if the FlagSet has any flags defined.
|
||||
func (f *FlagSet) HasFlags() bool {
|
||||
return len(f.formal) > 0
|
||||
}
|
||||
|
||||
// HasAvailableFlags returns a bool to indicate if the FlagSet has any flags
|
||||
// definied that are not hidden or deprecated.
|
||||
// that are not hidden.
|
||||
func (f *FlagSet) HasAvailableFlags() bool {
|
||||
for _, flag := range f.formal {
|
||||
if !flag.Hidden && len(flag.Deprecated) == 0 {
|
||||
if !flag.Hidden {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
@ -380,6 +398,7 @@ func (f *FlagSet) MarkDeprecated(name string, usageMessage string) error {
|
|||
return fmt.Errorf("deprecated message for flag %q must be set", name)
|
||||
}
|
||||
flag.Deprecated = usageMessage
|
||||
flag.Hidden = true
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -440,6 +459,7 @@ func (f *FlagSet) Set(name, value string) error {
|
|||
return fmt.Errorf("invalid argument %q for %q flag: %v", value, flagName, err)
|
||||
}
|
||||
|
||||
if !flag.Changed {
|
||||
if f.actual == nil {
|
||||
f.actual = make(map[NormalizedName]*Flag)
|
||||
}
|
||||
|
@ -447,6 +467,7 @@ func (f *FlagSet) Set(name, value string) error {
|
|||
f.orderedActual = append(f.orderedActual, flag)
|
||||
|
||||
flag.Changed = true
|
||||
}
|
||||
|
||||
if flag.Deprecated != "" {
|
||||
fmt.Fprintf(f.out(), "Flag --%s has been deprecated, %s\n", flag.Name, flag.Deprecated)
|
||||
|
@ -556,6 +577,14 @@ func UnquoteUsage(flag *Flag) (name string, usage string) {
|
|||
name = "int"
|
||||
case "uint64":
|
||||
name = "uint"
|
||||
case "stringSlice":
|
||||
name = "strings"
|
||||
case "intSlice":
|
||||
name = "ints"
|
||||
case "uintSlice":
|
||||
name = "uints"
|
||||
case "boolSlice":
|
||||
name = "bools"
|
||||
}
|
||||
|
||||
return
|
||||
|
@ -570,11 +599,14 @@ func wrapN(i, slop int, s string) (string, string) {
|
|||
return s, ""
|
||||
}
|
||||
|
||||
w := strings.LastIndexAny(s[:i], " \t")
|
||||
w := strings.LastIndexAny(s[:i], " \t\n")
|
||||
if w <= 0 {
|
||||
return s, ""
|
||||
}
|
||||
|
||||
nlPos := strings.LastIndex(s[:i], "\n")
|
||||
if nlPos > 0 && nlPos < w {
|
||||
return s[:nlPos], s[nlPos+1:]
|
||||
}
|
||||
return s[:w], s[w+1:]
|
||||
}
|
||||
|
||||
|
@ -583,7 +615,7 @@ func wrapN(i, slop int, s string) (string, string) {
|
|||
// caller). Pass `w` == 0 to do no wrapping
|
||||
func wrap(i, w int, s string) string {
|
||||
if w == 0 {
|
||||
return s
|
||||
return strings.Replace(s, "\n", "\n"+strings.Repeat(" ", i), -1)
|
||||
}
|
||||
|
||||
// space between indent i and end of line width w into which
|
||||
|
@ -601,7 +633,7 @@ func wrap(i, w int, s string) string {
|
|||
}
|
||||
// If still not enough space then don't even try to wrap.
|
||||
if wrap < 24 {
|
||||
return s
|
||||
return strings.Replace(s, "\n", r, -1)
|
||||
}
|
||||
|
||||
// Try to avoid short orphan words on the final line, by
|
||||
|
@ -613,14 +645,14 @@ func wrap(i, w int, s string) string {
|
|||
// Handle first line, which is indented by the caller (or the
|
||||
// special case above)
|
||||
l, s = wrapN(wrap, slop, s)
|
||||
r = r + l
|
||||
r = r + strings.Replace(l, "\n", "\n"+strings.Repeat(" ", i), -1)
|
||||
|
||||
// Now wrap the rest
|
||||
for s != "" {
|
||||
var t string
|
||||
|
||||
t, s = wrapN(wrap, slop, s)
|
||||
r = r + "\n" + strings.Repeat(" ", i) + t
|
||||
r = r + "\n" + strings.Repeat(" ", i) + strings.Replace(t, "\n", "\n"+strings.Repeat(" ", i), -1)
|
||||
}
|
||||
|
||||
return r
|
||||
|
@ -637,7 +669,7 @@ func (f *FlagSet) FlagUsagesWrapped(cols int) string {
|
|||
|
||||
maxlen := 0
|
||||
f.VisitAll(func(flag *Flag) {
|
||||
if flag.Deprecated != "" || flag.Hidden {
|
||||
if flag.Hidden {
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -660,6 +692,10 @@ func (f *FlagSet) FlagUsagesWrapped(cols int) string {
|
|||
if flag.NoOptDefVal != "true" {
|
||||
line += fmt.Sprintf("[=%s]", flag.NoOptDefVal)
|
||||
}
|
||||
case "count":
|
||||
if flag.NoOptDefVal != "+1" {
|
||||
line += fmt.Sprintf("[=%s]", flag.NoOptDefVal)
|
||||
}
|
||||
default:
|
||||
line += fmt.Sprintf("[=%s]", flag.NoOptDefVal)
|
||||
}
|
||||
|
@ -680,6 +716,9 @@ func (f *FlagSet) FlagUsagesWrapped(cols int) string {
|
|||
line += fmt.Sprintf(" (default %s)", flag.DefValue)
|
||||
}
|
||||
}
|
||||
if len(flag.Deprecated) != 0 {
|
||||
line += fmt.Sprintf(" (DEPRECATED: %s)", flag.Deprecated)
|
||||
}
|
||||
|
||||
lines = append(lines, line)
|
||||
})
|
||||
|
@ -857,8 +896,10 @@ func VarP(value Value, name, shorthand, usage string) {
|
|||
// returns the error.
|
||||
func (f *FlagSet) failf(format string, a ...interface{}) error {
|
||||
err := fmt.Errorf(format, a...)
|
||||
if f.errorHandling != ContinueOnError {
|
||||
fmt.Fprintln(f.out(), err)
|
||||
f.usage()
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
@ -874,6 +915,25 @@ func (f *FlagSet) usage() {
|
|||
}
|
||||
}
|
||||
|
||||
//--unknown (args will be empty)
|
||||
//--unknown --next-flag ... (args will be --next-flag ...)
|
||||
//--unknown arg ... (args will be arg ...)
|
||||
func stripUnknownFlagValue(args []string) []string {
|
||||
if len(args) == 0 {
|
||||
//--unknown
|
||||
return args
|
||||
}
|
||||
|
||||
first := args[0]
|
||||
if first[0] == '-' {
|
||||
//--unknown --next-flag ...
|
||||
return args
|
||||
}
|
||||
|
||||
//--unknown arg ... (args will be arg ...)
|
||||
return args[1:]
|
||||
}
|
||||
|
||||
func (f *FlagSet) parseLongArg(s string, args []string, fn parseFunc) (a []string, err error) {
|
||||
a = args
|
||||
name := s[2:]
|
||||
|
@ -885,14 +945,25 @@ func (f *FlagSet) parseLongArg(s string, args []string, fn parseFunc) (a []strin
|
|||
split := strings.SplitN(name, "=", 2)
|
||||
name = split[0]
|
||||
flag, exists := f.formal[f.normalizeFlagName(name)]
|
||||
|
||||
if !exists {
|
||||
if name == "help" { // special case for nice help message.
|
||||
switch {
|
||||
case name == "help":
|
||||
f.usage()
|
||||
return a, ErrHelp
|
||||
case f.ParseErrorsWhitelist.UnknownFlags:
|
||||
// --unknown=unknownval arg ...
|
||||
// we do not want to lose arg in this case
|
||||
if len(split) >= 2 {
|
||||
return a, nil
|
||||
}
|
||||
|
||||
return stripUnknownFlagValue(a), nil
|
||||
default:
|
||||
err = f.failf("unknown flag: --%s", name)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
var value string
|
||||
if len(split) == 2 {
|
||||
|
@ -912,6 +983,9 @@ func (f *FlagSet) parseLongArg(s string, args []string, fn parseFunc) (a []strin
|
|||
}
|
||||
|
||||
err = fn(flag, value)
|
||||
if err != nil {
|
||||
f.failf(err.Error())
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -926,14 +1000,26 @@ func (f *FlagSet) parseSingleShortArg(shorthands string, args []string, fn parse
|
|||
|
||||
flag, exists := f.shorthands[c]
|
||||
if !exists {
|
||||
if c == 'h' { // special case for nice help message.
|
||||
switch {
|
||||
case c == 'h':
|
||||
f.usage()
|
||||
err = ErrHelp
|
||||
return
|
||||
case f.ParseErrorsWhitelist.UnknownFlags:
|
||||
// '-f=arg arg ...'
|
||||
// we do not want to lose arg in this case
|
||||
if len(shorthands) > 2 && shorthands[1] == '=' {
|
||||
outShorts = ""
|
||||
return
|
||||
}
|
||||
|
||||
outArgs = stripUnknownFlagValue(outArgs)
|
||||
return
|
||||
default:
|
||||
err = f.failf("unknown shorthand flag: %q in -%s", c, shorthands)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
var value string
|
||||
if len(shorthands) > 2 && shorthands[1] == '=' {
|
||||
|
@ -962,6 +1048,9 @@ func (f *FlagSet) parseSingleShortArg(shorthands string, args []string, fn parse
|
|||
}
|
||||
|
||||
err = fn(flag, value)
|
||||
if err != nil {
|
||||
f.failf(err.Error())
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -1016,6 +1105,11 @@ func (f *FlagSet) parseArgs(args []string, fn parseFunc) (err error) {
|
|||
// are defined and before flags are accessed by the program.
|
||||
// The return value will be ErrHelp if -help was set but not defined.
|
||||
func (f *FlagSet) Parse(arguments []string) error {
|
||||
if f.addedGoFlagSets != nil {
|
||||
for _, goFlagSet := range f.addedGoFlagSets {
|
||||
goFlagSet.Parse(nil)
|
||||
}
|
||||
}
|
||||
f.parsed = true
|
||||
|
||||
if len(arguments) < 0 {
|
||||
|
@ -1034,6 +1128,7 @@ func (f *FlagSet) Parse(arguments []string) error {
|
|||
case ContinueOnError:
|
||||
return err
|
||||
case ExitOnError:
|
||||
fmt.Println(err)
|
||||
os.Exit(2)
|
||||
case PanicOnError:
|
||||
panic(err)
|
||||
|
|
4
vendor/github.com/spf13/pflag/golangflag.go
generated
vendored
4
vendor/github.com/spf13/pflag/golangflag.go
generated
vendored
|
@ -98,4 +98,8 @@ func (f *FlagSet) AddGoFlagSet(newSet *goflag.FlagSet) {
|
|||
newSet.VisitAll(func(goflag *goflag.Flag) {
|
||||
f.AddGoFlag(goflag)
|
||||
})
|
||||
if f.addedGoFlagSets == nil {
|
||||
f.addedGoFlagSets = make([]*goflag.FlagSet, 0)
|
||||
}
|
||||
f.addedGoFlagSets = append(f.addedGoFlagSets, newSet)
|
||||
}
|
||||
|
|
88
vendor/github.com/spf13/pflag/int16.go
generated
vendored
Normal file
88
vendor/github.com/spf13/pflag/int16.go
generated
vendored
Normal file
|
@ -0,0 +1,88 @@
|
|||
package pflag
|
||||
|
||||
import "strconv"
|
||||
|
||||
// -- int16 Value
|
||||
type int16Value int16
|
||||
|
||||
func newInt16Value(val int16, p *int16) *int16Value {
|
||||
*p = val
|
||||
return (*int16Value)(p)
|
||||
}
|
||||
|
||||
func (i *int16Value) Set(s string) error {
|
||||
v, err := strconv.ParseInt(s, 0, 16)
|
||||
*i = int16Value(v)
|
||||
return err
|
||||
}
|
||||
|
||||
func (i *int16Value) Type() string {
|
||||
return "int16"
|
||||
}
|
||||
|
||||
func (i *int16Value) String() string { return strconv.FormatInt(int64(*i), 10) }
|
||||
|
||||
func int16Conv(sval string) (interface{}, error) {
|
||||
v, err := strconv.ParseInt(sval, 0, 16)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
return int16(v), nil
|
||||
}
|
||||
|
||||
// GetInt16 returns the int16 value of a flag with the given name
|
||||
func (f *FlagSet) GetInt16(name string) (int16, error) {
|
||||
val, err := f.getFlagType(name, "int16", int16Conv)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
return val.(int16), nil
|
||||
}
|
||||
|
||||
// Int16Var defines an int16 flag with specified name, default value, and usage string.
|
||||
// The argument p points to an int16 variable in which to store the value of the flag.
|
||||
func (f *FlagSet) Int16Var(p *int16, name string, value int16, usage string) {
|
||||
f.VarP(newInt16Value(value, p), name, "", usage)
|
||||
}
|
||||
|
||||
// Int16VarP is like Int16Var, but accepts a shorthand letter that can be used after a single dash.
|
||||
func (f *FlagSet) Int16VarP(p *int16, name, shorthand string, value int16, usage string) {
|
||||
f.VarP(newInt16Value(value, p), name, shorthand, usage)
|
||||
}
|
||||
|
||||
// Int16Var defines an int16 flag with specified name, default value, and usage string.
|
||||
// The argument p points to an int16 variable in which to store the value of the flag.
|
||||
func Int16Var(p *int16, name string, value int16, usage string) {
|
||||
CommandLine.VarP(newInt16Value(value, p), name, "", usage)
|
||||
}
|
||||
|
||||
// Int16VarP is like Int16Var, but accepts a shorthand letter that can be used after a single dash.
|
||||
func Int16VarP(p *int16, name, shorthand string, value int16, usage string) {
|
||||
CommandLine.VarP(newInt16Value(value, p), name, shorthand, usage)
|
||||
}
|
||||
|
||||
// Int16 defines an int16 flag with specified name, default value, and usage string.
|
||||
// The return value is the address of an int16 variable that stores the value of the flag.
|
||||
func (f *FlagSet) Int16(name string, value int16, usage string) *int16 {
|
||||
p := new(int16)
|
||||
f.Int16VarP(p, name, "", value, usage)
|
||||
return p
|
||||
}
|
||||
|
||||
// Int16P is like Int16, but accepts a shorthand letter that can be used after a single dash.
|
||||
func (f *FlagSet) Int16P(name, shorthand string, value int16, usage string) *int16 {
|
||||
p := new(int16)
|
||||
f.Int16VarP(p, name, shorthand, value, usage)
|
||||
return p
|
||||
}
|
||||
|
||||
// Int16 defines an int16 flag with specified name, default value, and usage string.
|
||||
// The return value is the address of an int16 variable that stores the value of the flag.
|
||||
func Int16(name string, value int16, usage string) *int16 {
|
||||
return CommandLine.Int16P(name, "", value, usage)
|
||||
}
|
||||
|
||||
// Int16P is like Int16, but accepts a shorthand letter that can be used after a single dash.
|
||||
func Int16P(name, shorthand string, value int16, usage string) *int16 {
|
||||
return CommandLine.Int16P(name, shorthand, value, usage)
|
||||
}
|
8
vendor/github.com/spf13/pflag/string_array.go
generated
vendored
8
vendor/github.com/spf13/pflag/string_array.go
generated
vendored
|
@ -52,7 +52,7 @@ func (f *FlagSet) GetStringArray(name string) ([]string, error) {
|
|||
|
||||
// StringArrayVar defines a string flag with specified name, default value, and usage string.
|
||||
// The argument p points to a []string variable in which to store the values of the multiple flags.
|
||||
// The value of each argument will not try to be separated by comma
|
||||
// The value of each argument will not try to be separated by comma. Use a StringSlice for that.
|
||||
func (f *FlagSet) StringArrayVar(p *[]string, name string, value []string, usage string) {
|
||||
f.VarP(newStringArrayValue(value, p), name, "", usage)
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ func (f *FlagSet) StringArrayVarP(p *[]string, name, shorthand string, value []s
|
|||
|
||||
// StringArrayVar defines a string flag with specified name, default value, and usage string.
|
||||
// The argument p points to a []string variable in which to store the value of the flag.
|
||||
// The value of each argument will not try to be separated by comma
|
||||
// The value of each argument will not try to be separated by comma. Use a StringSlice for that.
|
||||
func StringArrayVar(p *[]string, name string, value []string, usage string) {
|
||||
CommandLine.VarP(newStringArrayValue(value, p), name, "", usage)
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ func StringArrayVarP(p *[]string, name, shorthand string, value []string, usage
|
|||
|
||||
// StringArray defines a string flag with specified name, default value, and usage string.
|
||||
// The return value is the address of a []string variable that stores the value of the flag.
|
||||
// The value of each argument will not try to be separated by comma
|
||||
// The value of each argument will not try to be separated by comma. Use a StringSlice for that.
|
||||
func (f *FlagSet) StringArray(name string, value []string, usage string) *[]string {
|
||||
p := []string{}
|
||||
f.StringArrayVarP(&p, name, "", value, usage)
|
||||
|
@ -92,7 +92,7 @@ func (f *FlagSet) StringArrayP(name, shorthand string, value []string, usage str
|
|||
|
||||
// StringArray defines a string flag with specified name, default value, and usage string.
|
||||
// The return value is the address of a []string variable that stores the value of the flag.
|
||||
// The value of each argument will not try to be separated by comma
|
||||
// The value of each argument will not try to be separated by comma. Use a StringSlice for that.
|
||||
func StringArray(name string, value []string, usage string) *[]string {
|
||||
return CommandLine.StringArrayP(name, "", value, usage)
|
||||
}
|
||||
|
|
20
vendor/github.com/spf13/pflag/string_slice.go
generated
vendored
20
vendor/github.com/spf13/pflag/string_slice.go
generated
vendored
|
@ -82,6 +82,11 @@ func (f *FlagSet) GetStringSlice(name string) ([]string, error) {
|
|||
|
||||
// StringSliceVar defines a string flag with specified name, default value, and usage string.
|
||||
// The argument p points to a []string variable in which to store the value of the flag.
|
||||
// Compared to StringArray flags, StringSlice flags take comma-separated value as arguments and split them accordingly.
|
||||
// For example:
|
||||
// --ss="v1,v2" -ss="v3"
|
||||
// will result in
|
||||
// []string{"v1", "v2", "v3"}
|
||||
func (f *FlagSet) StringSliceVar(p *[]string, name string, value []string, usage string) {
|
||||
f.VarP(newStringSliceValue(value, p), name, "", usage)
|
||||
}
|
||||
|
@ -93,6 +98,11 @@ func (f *FlagSet) StringSliceVarP(p *[]string, name, shorthand string, value []s
|
|||
|
||||
// StringSliceVar defines a string flag with specified name, default value, and usage string.
|
||||
// The argument p points to a []string variable in which to store the value of the flag.
|
||||
// Compared to StringArray flags, StringSlice flags take comma-separated value as arguments and split them accordingly.
|
||||
// For example:
|
||||
// --ss="v1,v2" -ss="v3"
|
||||
// will result in
|
||||
// []string{"v1", "v2", "v3"}
|
||||
func StringSliceVar(p *[]string, name string, value []string, usage string) {
|
||||
CommandLine.VarP(newStringSliceValue(value, p), name, "", usage)
|
||||
}
|
||||
|
@ -104,6 +114,11 @@ func StringSliceVarP(p *[]string, name, shorthand string, value []string, usage
|
|||
|
||||
// StringSlice defines a string flag with specified name, default value, and usage string.
|
||||
// The return value is the address of a []string variable that stores the value of the flag.
|
||||
// Compared to StringArray flags, StringSlice flags take comma-separated value as arguments and split them accordingly.
|
||||
// For example:
|
||||
// --ss="v1,v2" -ss="v3"
|
||||
// will result in
|
||||
// []string{"v1", "v2", "v3"}
|
||||
func (f *FlagSet) StringSlice(name string, value []string, usage string) *[]string {
|
||||
p := []string{}
|
||||
f.StringSliceVarP(&p, name, "", value, usage)
|
||||
|
@ -119,6 +134,11 @@ func (f *FlagSet) StringSliceP(name, shorthand string, value []string, usage str
|
|||
|
||||
// StringSlice defines a string flag with specified name, default value, and usage string.
|
||||
// The return value is the address of a []string variable that stores the value of the flag.
|
||||
// Compared to StringArray flags, StringSlice flags take comma-separated value as arguments and split them accordingly.
|
||||
// For example:
|
||||
// --ss="v1,v2" -ss="v3"
|
||||
// will result in
|
||||
// []string{"v1", "v2", "v3"}
|
||||
func StringSlice(name string, value []string, usage string) *[]string {
|
||||
return CommandLine.StringSliceP(name, "", value, usage)
|
||||
}
|
||||
|
|
10
vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s
generated
vendored
10
vendor/golang.org/x/sys/unix/asm_dragonfly_amd64.s
generated
vendored
|
@ -13,17 +13,17 @@
|
|||
// Just jump to package syscall's implementation for all these functions.
|
||||
// The runtime may know about them.
|
||||
|
||||
TEXT ·Syscall(SB),NOSPLIT,$0-64
|
||||
TEXT ·Syscall(SB),NOSPLIT,$0-56
|
||||
JMP syscall·Syscall(SB)
|
||||
|
||||
TEXT ·Syscall6(SB),NOSPLIT,$0-88
|
||||
TEXT ·Syscall6(SB),NOSPLIT,$0-80
|
||||
JMP syscall·Syscall6(SB)
|
||||
|
||||
TEXT ·Syscall9(SB),NOSPLIT,$0-112
|
||||
TEXT ·Syscall9(SB),NOSPLIT,$0-104
|
||||
JMP syscall·Syscall9(SB)
|
||||
|
||||
TEXT ·RawSyscall(SB),NOSPLIT,$0-64
|
||||
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
|
||||
JMP syscall·RawSyscall(SB)
|
||||
|
||||
TEXT ·RawSyscall6(SB),NOSPLIT,$0-88
|
||||
TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
|
||||
JMP syscall·RawSyscall6(SB)
|
||||
|
|
30
vendor/golang.org/x/sys/unix/cap_freebsd.go
generated
vendored
30
vendor/golang.org/x/sys/unix/cap_freebsd.go
generated
vendored
|
@ -7,7 +7,7 @@
|
|||
package unix
|
||||
|
||||
import (
|
||||
errorspkg "errors"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
|
@ -60,26 +60,26 @@ func CapRightsSet(rights *CapRights, setrights []uint64) error {
|
|||
|
||||
n := caparsize(rights)
|
||||
if n < capArSizeMin || n > capArSizeMax {
|
||||
return errorspkg.New("bad rights size")
|
||||
return errors.New("bad rights size")
|
||||
}
|
||||
|
||||
for _, right := range setrights {
|
||||
if caprver(right) != CAP_RIGHTS_VERSION_00 {
|
||||
return errorspkg.New("bad right version")
|
||||
return errors.New("bad right version")
|
||||
}
|
||||
i, err := rightToIndex(right)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if i >= n {
|
||||
return errorspkg.New("index overflow")
|
||||
return errors.New("index overflow")
|
||||
}
|
||||
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||
return errorspkg.New("index mismatch")
|
||||
return errors.New("index mismatch")
|
||||
}
|
||||
rights.Rights[i] |= right
|
||||
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||
return errorspkg.New("index mismatch (after assign)")
|
||||
return errors.New("index mismatch (after assign)")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -95,26 +95,26 @@ func CapRightsClear(rights *CapRights, clearrights []uint64) error {
|
|||
|
||||
n := caparsize(rights)
|
||||
if n < capArSizeMin || n > capArSizeMax {
|
||||
return errorspkg.New("bad rights size")
|
||||
return errors.New("bad rights size")
|
||||
}
|
||||
|
||||
for _, right := range clearrights {
|
||||
if caprver(right) != CAP_RIGHTS_VERSION_00 {
|
||||
return errorspkg.New("bad right version")
|
||||
return errors.New("bad right version")
|
||||
}
|
||||
i, err := rightToIndex(right)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if i >= n {
|
||||
return errorspkg.New("index overflow")
|
||||
return errors.New("index overflow")
|
||||
}
|
||||
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||
return errorspkg.New("index mismatch")
|
||||
return errors.New("index mismatch")
|
||||
}
|
||||
rights.Rights[i] &= ^(right & 0x01FFFFFFFFFFFFFF)
|
||||
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||
return errorspkg.New("index mismatch (after assign)")
|
||||
return errors.New("index mismatch (after assign)")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -130,22 +130,22 @@ func CapRightsIsSet(rights *CapRights, setrights []uint64) (bool, error) {
|
|||
|
||||
n := caparsize(rights)
|
||||
if n < capArSizeMin || n > capArSizeMax {
|
||||
return false, errorspkg.New("bad rights size")
|
||||
return false, errors.New("bad rights size")
|
||||
}
|
||||
|
||||
for _, right := range setrights {
|
||||
if caprver(right) != CAP_RIGHTS_VERSION_00 {
|
||||
return false, errorspkg.New("bad right version")
|
||||
return false, errors.New("bad right version")
|
||||
}
|
||||
i, err := rightToIndex(right)
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
if i >= n {
|
||||
return false, errorspkg.New("index overflow")
|
||||
return false, errors.New("index overflow")
|
||||
}
|
||||
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||
return false, errorspkg.New("index mismatch")
|
||||
return false, errors.New("index mismatch")
|
||||
}
|
||||
if (rights.Rights[i] & right) != right {
|
||||
return false, nil
|
||||
|
|
6
vendor/golang.org/x/sys/unix/flock.go → vendor/golang.org/x/sys/unix/fcntl.go
generated
vendored
6
vendor/golang.org/x/sys/unix/flock.go → vendor/golang.org/x/sys/unix/fcntl.go
generated
vendored
|
@ -12,6 +12,12 @@ import "unsafe"
|
|||
// systems by flock_linux_32bit.go to be SYS_FCNTL64.
|
||||
var fcntl64Syscall uintptr = SYS_FCNTL
|
||||
|
||||
// FcntlInt performs a fcntl syscall on fd with the provided command and argument.
|
||||
func FcntlInt(fd uintptr, cmd, arg int) (int, error) {
|
||||
valptr, _, err := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(arg))
|
||||
return int(valptr), err
|
||||
}
|
||||
|
||||
// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
|
||||
func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
|
||||
_, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(unsafe.Pointer(lk)))
|
9
vendor/golang.org/x/sys/unix/gccgo_c.c
generated
vendored
9
vendor/golang.org/x/sys/unix/gccgo_c.c
generated
vendored
|
@ -36,12 +36,3 @@ gccgoRealSyscallNoError(uintptr_t trap, uintptr_t a1, uintptr_t a2, uintptr_t a3
|
|||
{
|
||||
return syscall(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9);
|
||||
}
|
||||
|
||||
// Define the use function in C so that it is not inlined.
|
||||
|
||||
extern void use(void *) __asm__ (GOSYM_PREFIX GOPKGPATH ".use") __attribute__((noinline));
|
||||
|
||||
void
|
||||
use(void *p __attribute__ ((unused)))
|
||||
{
|
||||
}
|
||||
|
|
61
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
61
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
|
@ -50,6 +50,7 @@ includes_Darwin='
|
|||
#include <sys/mount.h>
|
||||
#include <sys/utsname.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/xattr.h>
|
||||
#include <net/bpf.h>
|
||||
#include <net/if.h>
|
||||
#include <net/if_types.h>
|
||||
|
@ -171,6 +172,8 @@ struct ltchars {
|
|||
#include <linux/filter.h>
|
||||
#include <linux/fs.h>
|
||||
#include <linux/keyctl.h>
|
||||
#include <linux/magic.h>
|
||||
#include <linux/netfilter/nfnetlink.h>
|
||||
#include <linux/netlink.h>
|
||||
#include <linux/perf_event.h>
|
||||
#include <linux/random.h>
|
||||
|
@ -189,6 +192,8 @@ struct ltchars {
|
|||
#include <linux/genetlink.h>
|
||||
#include <linux/stat.h>
|
||||
#include <linux/watchdog.h>
|
||||
#include <linux/hdreg.h>
|
||||
#include <linux/rtc.h>
|
||||
#include <net/route.h>
|
||||
#include <asm/termbits.h>
|
||||
|
||||
|
@ -383,7 +388,8 @@ ccflags="$@"
|
|||
$2 ~ /^TC[IO](ON|OFF)$/ ||
|
||||
$2 ~ /^IN_/ ||
|
||||
$2 ~ /^LOCK_(SH|EX|NB|UN)$/ ||
|
||||
$2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|ICMP6|TCP|EVFILT|NOTE|EV|SHUT|PROT|MAP|PACKET|MSG|SCM|MCL|DT|MADV|PR)_/ ||
|
||||
$2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|ICMP6|TCP|EVFILT|NOTE|EV|SHUT|PROT|MAP|T?PACKET|MSG|SCM|MCL|DT|MADV|PR)_/ ||
|
||||
$2 ~ /^TP_STATUS_/ ||
|
||||
$2 ~ /^FALLOC_/ ||
|
||||
$2 == "ICMPV6_FILTER" ||
|
||||
$2 == "SOMAXCONN" ||
|
||||
|
@ -399,7 +405,7 @@ ccflags="$@"
|
|||
$2 ~ /^LINUX_REBOOT_CMD_/ ||
|
||||
$2 ~ /^LINUX_REBOOT_MAGIC[12]$/ ||
|
||||
$2 !~ "NLA_TYPE_MASK" &&
|
||||
$2 ~ /^(NETLINK|NLM|NLMSG|NLA|IFA|IFAN|RT|RTCF|RTN|RTPROT|RTNH|ARPHRD|ETH_P)_/ ||
|
||||
$2 ~ /^(NETLINK|NLM|NLMSG|NLA|IFA|IFAN|RT|RTC|RTCF|RTN|RTPROT|RTNH|ARPHRD|ETH_P)_/ ||
|
||||
$2 ~ /^SIOC/ ||
|
||||
$2 ~ /^TIOC/ ||
|
||||
$2 ~ /^TCGET/ ||
|
||||
|
@ -425,6 +431,8 @@ ccflags="$@"
|
|||
$2 ~ /^PERF_EVENT_IOC_/ ||
|
||||
$2 ~ /^SECCOMP_MODE_/ ||
|
||||
$2 ~ /^SPLICE_/ ||
|
||||
$2 !~ /^AUDIT_RECORD_MAGIC/ &&
|
||||
$2 ~ /^[A-Z0-9_]+_MAGIC2?$/ ||
|
||||
$2 ~ /^(VM|VMADDR)_/ ||
|
||||
$2 ~ /^IOCTL_VM_SOCKETS_/ ||
|
||||
$2 ~ /^(TASKSTATS|TS)_/ ||
|
||||
|
@ -432,10 +440,12 @@ ccflags="$@"
|
|||
$2 ~ /^GENL_/ ||
|
||||
$2 ~ /^STATX_/ ||
|
||||
$2 ~ /^UTIME_/ ||
|
||||
$2 ~ /^XATTR_(CREATE|REPLACE)/ ||
|
||||
$2 ~ /^XATTR_(CREATE|REPLACE|NO(DEFAULT|FOLLOW|SECURITY)|SHOWCOMPRESSION)/ ||
|
||||
$2 ~ /^ATTR_(BIT_MAP_COUNT|(CMN|VOL|FILE)_)/ ||
|
||||
$2 ~ /^FSOPT_/ ||
|
||||
$2 ~ /^WDIOC_/ ||
|
||||
$2 ~ /^NFN/ ||
|
||||
$2 ~ /^(HDIO|WIN|SMART)_/ ||
|
||||
$2 !~ "WMESGLEN" &&
|
||||
$2 ~ /^W[A-Z0-9]+$/ ||
|
||||
$2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE)/ {printf("\t%s = C.%s\n", $2, $2)}
|
||||
|
@ -505,21 +515,26 @@ echo ')'
|
|||
|
||||
enum { A = 'A', Z = 'Z', a = 'a', z = 'z' }; // avoid need for single quotes below
|
||||
|
||||
int errors[] = {
|
||||
struct tuple {
|
||||
int num;
|
||||
const char *name;
|
||||
};
|
||||
|
||||
struct tuple errors[] = {
|
||||
"
|
||||
for i in $errors
|
||||
do
|
||||
echo -E ' '$i,
|
||||
echo -E ' {'$i', "'$i'" },'
|
||||
done
|
||||
|
||||
echo -E "
|
||||
};
|
||||
|
||||
int signals[] = {
|
||||
struct tuple signals[] = {
|
||||
"
|
||||
for i in $signals
|
||||
do
|
||||
echo -E ' '$i,
|
||||
echo -E ' {'$i', "'$i'" },'
|
||||
done
|
||||
|
||||
# Use -E because on some systems bash builtin interprets \n itself.
|
||||
|
@ -527,9 +542,9 @@ int signals[] = {
|
|||
};
|
||||
|
||||
static int
|
||||
intcmp(const void *a, const void *b)
|
||||
tuplecmp(const void *a, const void *b)
|
||||
{
|
||||
return *(int*)a - *(int*)b;
|
||||
return ((struct tuple *)a)->num - ((struct tuple *)b)->num;
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -539,26 +554,34 @@ main(void)
|
|||
char buf[1024], *p;
|
||||
|
||||
printf("\n\n// Error table\n");
|
||||
printf("var errors = [...]string {\n");
|
||||
qsort(errors, nelem(errors), sizeof errors[0], intcmp);
|
||||
printf("var errorList = [...]struct {\n");
|
||||
printf("\tnum syscall.Errno\n");
|
||||
printf("\tname string\n");
|
||||
printf("\tdesc string\n");
|
||||
printf("} {\n");
|
||||
qsort(errors, nelem(errors), sizeof errors[0], tuplecmp);
|
||||
for(i=0; i<nelem(errors); i++) {
|
||||
e = errors[i];
|
||||
if(i > 0 && errors[i-1] == e)
|
||||
e = errors[i].num;
|
||||
if(i > 0 && errors[i-1].num == e)
|
||||
continue;
|
||||
strcpy(buf, strerror(e));
|
||||
// lowercase first letter: Bad -> bad, but STREAM -> STREAM.
|
||||
if(A <= buf[0] && buf[0] <= Z && a <= buf[1] && buf[1] <= z)
|
||||
buf[0] += a - A;
|
||||
printf("\t%d: \"%s\",\n", e, buf);
|
||||
printf("\t{ %d, \"%s\", \"%s\" },\n", e, errors[i].name, buf);
|
||||
}
|
||||
printf("}\n\n");
|
||||
|
||||
printf("\n\n// Signal table\n");
|
||||
printf("var signals = [...]string {\n");
|
||||
qsort(signals, nelem(signals), sizeof signals[0], intcmp);
|
||||
printf("var signalList = [...]struct {\n");
|
||||
printf("\tnum syscall.Signal\n");
|
||||
printf("\tname string\n");
|
||||
printf("\tdesc string\n");
|
||||
printf("} {\n");
|
||||
qsort(signals, nelem(signals), sizeof signals[0], tuplecmp);
|
||||
for(i=0; i<nelem(signals); i++) {
|
||||
e = signals[i];
|
||||
if(i > 0 && signals[i-1] == e)
|
||||
e = signals[i].num;
|
||||
if(i > 0 && signals[i-1].num == e)
|
||||
continue;
|
||||
strcpy(buf, strsignal(e));
|
||||
// lowercase first letter: Bad -> bad, but STREAM -> STREAM.
|
||||
|
@ -568,7 +591,7 @@ main(void)
|
|||
p = strrchr(buf, ":"[0]);
|
||||
if(p)
|
||||
*p = '\0';
|
||||
printf("\t%d: \"%s\",\n", e, buf);
|
||||
printf("\t{ %d, \"%s\", \"%s\" },\n", e, signals[i].name, buf);
|
||||
}
|
||||
printf("}\n\n");
|
||||
|
||||
|
|
9
vendor/golang.org/x/sys/unix/mkpost.go
generated
vendored
9
vendor/golang.org/x/sys/unix/mkpost.go
generated
vendored
|
@ -42,6 +42,10 @@ func main() {
|
|||
log.Fatal(err)
|
||||
}
|
||||
|
||||
// Intentionally export __val fields in Fsid and Sigset_t
|
||||
valRegex := regexp.MustCompile(`type (Fsid|Sigset_t) struct {(\s+)X__val(\s+\S+\s+)}`)
|
||||
b = valRegex.ReplaceAll(b, []byte("type $1 struct {${2}Val$3}"))
|
||||
|
||||
// If we have empty Ptrace structs, we should delete them. Only s390x emits
|
||||
// nonempty Ptrace structs.
|
||||
ptraceRexexp := regexp.MustCompile(`type Ptrace((Psw|Fpregs|Per) struct {\s*})`)
|
||||
|
@ -69,12 +73,9 @@ func main() {
|
|||
removePaddingFieldsRegex := regexp.MustCompile(`Pad_cgo_\d+`)
|
||||
b = removePaddingFieldsRegex.ReplaceAll(b, []byte("_"))
|
||||
|
||||
// We refuse to export private fields on s390x
|
||||
if goarch == "s390x" && goos == "linux" {
|
||||
// Remove padding, hidden, or unused fields
|
||||
removeFieldsRegex = regexp.MustCompile(`\bX_\S+`)
|
||||
removeFieldsRegex = regexp.MustCompile(`\b(X_\S+|Padding)`)
|
||||
b = removeFieldsRegex.ReplaceAll(b, []byte("_"))
|
||||
}
|
||||
|
||||
// Remove the first line of warning from cgo
|
||||
b = b[bytes.IndexByte(b, '\n')+1:]
|
||||
|
|
2
vendor/golang.org/x/sys/unix/mksysctl_openbsd.pl
generated
vendored
2
vendor/golang.org/x/sys/unix/mksysctl_openbsd.pl
generated
vendored
|
@ -240,7 +240,7 @@ foreach my $header (@headers) {
|
|||
|
||||
print <<EOF;
|
||||
// mksysctl_openbsd.pl
|
||||
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
|
||||
// Code generated by the command above; DO NOT EDIT.
|
||||
|
||||
// +build $ENV{'GOARCH'},$ENV{'GOOS'}
|
||||
|
||||
|
|
4
vendor/golang.org/x/sys/unix/openbsd_pledge.go
generated
vendored
4
vendor/golang.org/x/sys/unix/openbsd_pledge.go
generated
vendored
|
@ -13,7 +13,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
SYS_PLEDGE = 108
|
||||
_SYS_PLEDGE = 108
|
||||
)
|
||||
|
||||
// Pledge implements the pledge syscall. For more information see pledge(2).
|
||||
|
@ -30,7 +30,7 @@ func Pledge(promises string, paths []string) error {
|
|||
}
|
||||
pathsUnsafe = unsafe.Pointer(&pathsPtr[0])
|
||||
}
|
||||
_, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(promisesUnsafe), uintptr(pathsUnsafe), 0)
|
||||
_, _, e := syscall.Syscall(_SYS_PLEDGE, uintptr(promisesUnsafe), uintptr(pathsUnsafe), 0)
|
||||
if e != 0 {
|
||||
return e
|
||||
}
|
||||
|
|
41
vendor/golang.org/x/sys/unix/syscall_bsd.go
generated
vendored
41
vendor/golang.org/x/sys/unix/syscall_bsd.go
generated
vendored
|
@ -311,47 +311,6 @@ func Getsockname(fd int) (sa Sockaddr, err error) {
|
|||
|
||||
//sysnb socketpair(domain int, typ int, proto int, fd *[2]int32) (err error)
|
||||
|
||||
func GetsockoptByte(fd, level, opt int) (value byte, err error) {
|
||||
var n byte
|
||||
vallen := _Socklen(1)
|
||||
err = getsockopt(fd, level, opt, unsafe.Pointer(&n), &vallen)
|
||||
return n, err
|
||||
}
|
||||
|
||||
func GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error) {
|
||||
vallen := _Socklen(4)
|
||||
err = getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen)
|
||||
return value, err
|
||||
}
|
||||
|
||||
func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error) {
|
||||
var value IPMreq
|
||||
vallen := _Socklen(SizeofIPMreq)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error) {
|
||||
var value IPv6Mreq
|
||||
vallen := _Socklen(SizeofIPv6Mreq)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error) {
|
||||
var value IPv6MTUInfo
|
||||
vallen := _Socklen(SizeofIPv6MTUInfo)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error) {
|
||||
var value ICMPv6Filter
|
||||
vallen := _Socklen(SizeofICMPv6Filter)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
// GetsockoptString returns the string value of the socket option opt for the
|
||||
// socket associated with fd at the given socket level.
|
||||
func GetsockoptString(fd, level, opt int) (string, error) {
|
||||
|
|
94
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
94
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
|
@ -13,7 +13,7 @@
|
|||
package unix
|
||||
|
||||
import (
|
||||
errorspkg "errors"
|
||||
"errors"
|
||||
"syscall"
|
||||
"unsafe"
|
||||
)
|
||||
|
@ -98,7 +98,7 @@ type attrList struct {
|
|||
|
||||
func getAttrList(path string, attrList attrList, attrBuf []byte, options uint) (attrs [][]byte, err error) {
|
||||
if len(attrBuf) < 4 {
|
||||
return nil, errorspkg.New("attrBuf too small")
|
||||
return nil, errors.New("attrBuf too small")
|
||||
}
|
||||
attrList.bitmapCount = attrBitMapCount
|
||||
|
||||
|
@ -134,12 +134,12 @@ func getAttrList(path string, attrList attrList, attrBuf []byte, options uint) (
|
|||
for i := uint32(0); int(i) < len(dat); {
|
||||
header := dat[i:]
|
||||
if len(header) < 8 {
|
||||
return attrs, errorspkg.New("truncated attribute header")
|
||||
return attrs, errors.New("truncated attribute header")
|
||||
}
|
||||
datOff := *(*int32)(unsafe.Pointer(&header[0]))
|
||||
attrLen := *(*uint32)(unsafe.Pointer(&header[4]))
|
||||
if datOff < 0 || uint32(datOff)+attrLen > uint32(len(dat)) {
|
||||
return attrs, errorspkg.New("truncated results; attrBuf too small")
|
||||
return attrs, errors.New("truncated results; attrBuf too small")
|
||||
}
|
||||
end := uint32(datOff) + attrLen
|
||||
attrs = append(attrs, dat[datOff:end])
|
||||
|
@ -176,6 +176,88 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
|||
return
|
||||
}
|
||||
|
||||
func xattrPointer(dest []byte) *byte {
|
||||
// It's only when dest is set to NULL that the OS X implementations of
|
||||
// getxattr() and listxattr() return the current sizes of the named attributes.
|
||||
// An empty byte array is not sufficient. To maintain the same behaviour as the
|
||||
// linux implementation, we wrap around the system calls and pass in NULL when
|
||||
// dest is empty.
|
||||
var destp *byte
|
||||
if len(dest) > 0 {
|
||||
destp = &dest[0]
|
||||
}
|
||||
return destp
|
||||
}
|
||||
|
||||
//sys getxattr(path string, attr string, dest *byte, size int, position uint32, options int) (sz int, err error)
|
||||
|
||||
func Getxattr(path string, attr string, dest []byte) (sz int, err error) {
|
||||
return getxattr(path, attr, xattrPointer(dest), len(dest), 0, 0)
|
||||
}
|
||||
|
||||
func Lgetxattr(link string, attr string, dest []byte) (sz int, err error) {
|
||||
return getxattr(link, attr, xattrPointer(dest), len(dest), 0, XATTR_NOFOLLOW)
|
||||
}
|
||||
|
||||
//sys setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error)
|
||||
|
||||
func Setxattr(path string, attr string, data []byte, flags int) (err error) {
|
||||
// The parameters for the OS X implementation vary slightly compared to the
|
||||
// linux system call, specifically the position parameter:
|
||||
//
|
||||
// linux:
|
||||
// int setxattr(
|
||||
// const char *path,
|
||||
// const char *name,
|
||||
// const void *value,
|
||||
// size_t size,
|
||||
// int flags
|
||||
// );
|
||||
//
|
||||
// darwin:
|
||||
// int setxattr(
|
||||
// const char *path,
|
||||
// const char *name,
|
||||
// void *value,
|
||||
// size_t size,
|
||||
// u_int32_t position,
|
||||
// int options
|
||||
// );
|
||||
//
|
||||
// position specifies the offset within the extended attribute. In the
|
||||
// current implementation, only the resource fork extended attribute makes
|
||||
// use of this argument. For all others, position is reserved. We simply
|
||||
// default to setting it to zero.
|
||||
return setxattr(path, attr, xattrPointer(data), len(data), 0, flags)
|
||||
}
|
||||
|
||||
func Lsetxattr(link string, attr string, data []byte, flags int) (err error) {
|
||||
return setxattr(link, attr, xattrPointer(data), len(data), 0, flags|XATTR_NOFOLLOW)
|
||||
}
|
||||
|
||||
//sys removexattr(path string, attr string, options int) (err error)
|
||||
|
||||
func Removexattr(path string, attr string) (err error) {
|
||||
// We wrap around and explicitly zero out the options provided to the OS X
|
||||
// implementation of removexattr, we do so for interoperability with the
|
||||
// linux variant.
|
||||
return removexattr(path, attr, 0)
|
||||
}
|
||||
|
||||
func Lremovexattr(link string, attr string) (err error) {
|
||||
return removexattr(link, attr, XATTR_NOFOLLOW)
|
||||
}
|
||||
|
||||
//sys listxattr(path string, dest *byte, size int, options int) (sz int, err error)
|
||||
|
||||
func Listxattr(path string, dest []byte) (sz int, err error) {
|
||||
return listxattr(path, xattrPointer(dest), len(dest), 0)
|
||||
}
|
||||
|
||||
func Llistxattr(link string, dest []byte) (sz int, err error) {
|
||||
return listxattr(link, xattrPointer(dest), len(dest), XATTR_NOFOLLOW)
|
||||
}
|
||||
|
||||
func setattrlistTimes(path string, times []Timespec, flags int) error {
|
||||
_p0, err := BytePtrFromString(path)
|
||||
if err != nil {
|
||||
|
@ -447,13 +529,9 @@ func Uname(uname *Utsname) error {
|
|||
// Watchevent
|
||||
// Waitevent
|
||||
// Modwatch
|
||||
// Getxattr
|
||||
// Fgetxattr
|
||||
// Setxattr
|
||||
// Fsetxattr
|
||||
// Removexattr
|
||||
// Fremovexattr
|
||||
// Listxattr
|
||||
// Flistxattr
|
||||
// Fsctl
|
||||
// Initgroups
|
||||
|
|
43
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
43
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
|
@ -782,19 +782,6 @@ func Getsockname(fd int) (sa Sockaddr, err error) {
|
|||
return anyToSockaddr(&rsa)
|
||||
}
|
||||
|
||||
func GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error) {
|
||||
vallen := _Socklen(4)
|
||||
err = getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen)
|
||||
return value, err
|
||||
}
|
||||
|
||||
func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error) {
|
||||
var value IPMreq
|
||||
vallen := _Socklen(SizeofIPMreq)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) {
|
||||
var value IPMreqn
|
||||
vallen := _Socklen(SizeofIPMreqn)
|
||||
|
@ -802,27 +789,6 @@ func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) {
|
|||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error) {
|
||||
var value IPv6Mreq
|
||||
vallen := _Socklen(SizeofIPv6Mreq)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error) {
|
||||
var value IPv6MTUInfo
|
||||
vallen := _Socklen(SizeofIPv6MTUInfo)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error) {
|
||||
var value ICMPv6Filter
|
||||
vallen := _Socklen(SizeofICMPv6Filter)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptUcred(fd, level, opt int) (*Ucred, error) {
|
||||
var value Ucred
|
||||
vallen := _Socklen(SizeofUcred)
|
||||
|
@ -978,16 +944,18 @@ func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from
|
|||
}
|
||||
var dummy byte
|
||||
if len(oob) > 0 {
|
||||
if len(p) == 0 {
|
||||
var sockType int
|
||||
sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
// receive at least one normal byte
|
||||
if sockType != SOCK_DGRAM && len(p) == 0 {
|
||||
if sockType != SOCK_DGRAM {
|
||||
iov.Base = &dummy
|
||||
iov.SetLen(1)
|
||||
}
|
||||
}
|
||||
msg.Control = &oob[0]
|
||||
msg.SetControllen(len(oob))
|
||||
}
|
||||
|
@ -1030,16 +998,18 @@ func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error)
|
|||
}
|
||||
var dummy byte
|
||||
if len(oob) > 0 {
|
||||
if len(p) == 0 {
|
||||
var sockType int
|
||||
sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
// send at least one normal byte
|
||||
if sockType != SOCK_DGRAM && len(p) == 0 {
|
||||
if sockType != SOCK_DGRAM {
|
||||
iov.Base = &dummy
|
||||
iov.SetLen(1)
|
||||
}
|
||||
}
|
||||
msg.Control = &oob[0]
|
||||
msg.SetControllen(len(oob))
|
||||
}
|
||||
|
@ -1294,6 +1264,7 @@ func Getpgrp() (pid int) {
|
|||
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
||||
//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
|
||||
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
||||
//sys PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error)
|
||||
//sys PivotRoot(newroot string, putold string) (err error) = SYS_PIVOT_ROOT
|
||||
//sysnb prlimit(pid int, resource int, newlimit *Rlimit, old *Rlimit) (err error) = SYS_PRLIMIT64
|
||||
//sys Prctl(option int, arg2 uintptr, arg3 uintptr, arg4 uintptr, arg5 uintptr) (err error)
|
||||
|
|
8
vendor/golang.org/x/sys/unix/syscall_linux_386.go
generated
vendored
8
vendor/golang.org/x/sys/unix/syscall_linux_386.go
generated
vendored
|
@ -10,7 +10,6 @@
|
|||
package unix
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
|
@ -157,10 +156,6 @@ func Setrlimit(resource int, rlim *Rlimit) (err error) {
|
|||
return setrlimit(resource, &rl)
|
||||
}
|
||||
|
||||
// Underlying system call writes to newoffset via pointer.
|
||||
// Implemented in assembly to avoid allocation.
|
||||
func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno)
|
||||
|
||||
func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
||||
newoffset, errno := seek(fd, offset, whence)
|
||||
if errno != 0 {
|
||||
|
@ -206,9 +201,6 @@ const (
|
|||
_SENDMMSG = 20
|
||||
)
|
||||
|
||||
func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
|
||||
func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
|
||||
|
||||
func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
|
||||
fd, e := socketcall(_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
|
||||
if e != 0 {
|
||||
|
|
17
vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
17
vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
generated
vendored
|
@ -29,7 +29,15 @@ package unix
|
|||
//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 Seek(fd int, offset int64, whence int) (off int64, err error) = SYS_LSEEK
|
||||
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
|
||||
|
||||
func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) {
|
||||
var ts *Timespec
|
||||
if timeout != nil {
|
||||
ts = &Timespec{Sec: timeout.Sec, Nsec: timeout.Usec * 1000}
|
||||
}
|
||||
return Pselect(nfd, r, w, e, ts, nil)
|
||||
}
|
||||
|
||||
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
||||
//sys Setfsgid(gid int) (err error)
|
||||
//sys Setfsuid(uid int) (err error)
|
||||
|
@ -40,7 +48,12 @@ package unix
|
|||
//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 int64, err error)
|
||||
//sys Stat(path string, stat *Stat_t) (err error)
|
||||
|
||||
func Stat(path string, stat *Stat_t) (err error) {
|
||||
// Use fstatat, because Android's seccomp policy blocks stat.
|
||||
return Fstatat(AT_FDCWD, path, stat, 0)
|
||||
}
|
||||
|
||||
//sys Statfs(path string, buf *Statfs_t) (err error)
|
||||
//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
|
||||
//sys Truncate(path string, length int64) (err error)
|
||||
|
|
16
vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go
generated
vendored
Normal file
16
vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go
generated
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
// 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.
|
||||
|
||||
// +build linux,!gccgo,386
|
||||
|
||||
package unix
|
||||
|
||||
import "syscall"
|
||||
|
||||
// Underlying system call writes to newoffset via pointer.
|
||||
// Implemented in assembly to avoid allocation.
|
||||
func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno)
|
||||
|
||||
func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
|
||||
func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno)
|
30
vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go
generated
vendored
Normal file
30
vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go
generated
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
// 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.
|
||||
|
||||
// +build linux,gccgo,386
|
||||
|
||||
package unix
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
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 socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (int, syscall.Errno) {
|
||||
fd, _, err := Syscall(SYS_SOCKETCALL, uintptr(call), uintptr(unsafe.Pointer(&a0)), 0)
|
||||
return int(fd), err
|
||||
}
|
||||
|
||||
func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (int, syscall.Errno) {
|
||||
fd, _, err := RawSyscall(SYS_SOCKETCALL, uintptr(call), uintptr(unsafe.Pointer(&a0)), 0)
|
||||
return int(fd), err
|
||||
}
|
|
@ -2,9 +2,7 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build linux
|
||||
// +build gccgo
|
||||
// +build 386 arm
|
||||
// +build linux,gccgo,arm
|
||||
|
||||
package unix
|
||||
|
||||
|
@ -13,9 +11,10 @@ import (
|
|||
"unsafe"
|
||||
)
|
||||
|
||||
func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) {
|
||||
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)
|
||||
_, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0)
|
||||
return newoffset, err
|
||||
}
|
2
vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
generated
vendored
|
@ -36,7 +36,7 @@ func Syscall9(trap, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2 uintptr,
|
|||
|
||||
//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 int64, err error)
|
||||
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
|
||||
|
||||
//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
|
||||
//sys Truncate(path string, length int64) (err error) = SYS_TRUNCATE64
|
||||
|
|
1
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
1
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
|
@ -233,6 +233,7 @@ func Uname(uname *Utsname) error {
|
|||
//sys Dup(fd int) (nfd int, err error)
|
||||
//sys Dup2(from int, to int) (err error)
|
||||
//sys Exit(code int)
|
||||
//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_POSIX_FADVISE
|
||||
//sys Fchdir(fd int) (err error)
|
||||
//sys Fchflags(fd int, flags int) (err error)
|
||||
|
|
5
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
5
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
|
@ -201,6 +201,7 @@ func Uname(uname *Utsname) error {
|
|||
//sys Dup(fd int) (nfd int, err error)
|
||||
//sys Dup2(from int, to int) (err error)
|
||||
//sys Exit(code int)
|
||||
//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||
//sys Fchdir(fd int) (err error)
|
||||
//sys Fchflags(fd int, flags int) (err error)
|
||||
//sys Fchmod(fd int, mode uint32) (err error)
|
||||
|
@ -222,6 +223,7 @@ func Uname(uname *Utsname) error {
|
|||
//sysnb Getppid() (ppid int)
|
||||
//sys Getpriority(which int, who int) (prio int, err error)
|
||||
//sysnb Getrlimit(which int, lim *Rlimit) (err error)
|
||||
//sysnb Getrtable() (rtable int, err error)
|
||||
//sysnb Getrusage(who int, rusage *Rusage) (err error)
|
||||
//sysnb Getsid(pid int) (sid int, err error)
|
||||
//sysnb Gettimeofday(tv *Timeval) (err error)
|
||||
|
@ -259,6 +261,7 @@ func Uname(uname *Utsname) error {
|
|||
//sysnb Setresgid(rgid int, egid int, sgid int) (err error)
|
||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
||||
//sysnb Setrlimit(which int, lim *Rlimit) (err error)
|
||||
//sysnb Setrtable(rtable int) (err error)
|
||||
//sysnb Setsid() (pid int, err error)
|
||||
//sysnb Settimeofday(tp *Timeval) (err error)
|
||||
//sysnb Setuid(uid int) (err error)
|
||||
|
@ -307,7 +310,6 @@ func Uname(uname *Utsname) error {
|
|||
// getlogin
|
||||
// getresgid
|
||||
// getresuid
|
||||
// getrtable
|
||||
// getthrid
|
||||
// ktrace
|
||||
// lfs_bmapv
|
||||
|
@ -343,7 +345,6 @@ func Uname(uname *Utsname) error {
|
|||
// semop
|
||||
// setgroups
|
||||
// setitimer
|
||||
// setrtable
|
||||
// setsockopt
|
||||
// shmat
|
||||
// shmctl
|
||||
|
|
4
vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go
generated
vendored
|
@ -31,3 +31,7 @@ func (msghdr *Msghdr) SetControllen(length int) {
|
|||
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||
cmsg.Len = uint32(length)
|
||||
}
|
||||
|
||||
// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
|
||||
// of openbsd/amd64 the syscall is called sysctl instead of __sysctl.
|
||||
const SYS___SYSCTL = SYS_SYSCTL
|
||||
|
|
6
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
6
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
|
@ -312,6 +312,12 @@ func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error {
|
|||
|
||||
//sys fcntl(fd int, cmd int, arg int) (val int, err error)
|
||||
|
||||
// FcntlInt performs a fcntl syscall on fd with the provided command and argument.
|
||||
func FcntlInt(fd uintptr, cmd, arg int) (int, error) {
|
||||
valptr, _, err := sysvicall6(uintptr(unsafe.Pointer(&procfcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(arg), 0, 0, 0)
|
||||
return int(valptr), err
|
||||
}
|
||||
|
||||
// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command.
|
||||
func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
|
||||
_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procfcntl)), 3, uintptr(fd), uintptr(cmd), uintptr(unsafe.Pointer(lk)), 0, 0, 0)
|
||||
|
|
64
vendor/golang.org/x/sys/unix/syscall_unix.go
generated
vendored
64
vendor/golang.org/x/sys/unix/syscall_unix.go
generated
vendored
|
@ -9,6 +9,7 @@ package unix
|
|||
import (
|
||||
"bytes"
|
||||
"runtime"
|
||||
"sort"
|
||||
"sync"
|
||||
"syscall"
|
||||
"unsafe"
|
||||
|
@ -51,6 +52,28 @@ func errnoErr(e syscall.Errno) error {
|
|||
return e
|
||||
}
|
||||
|
||||
// ErrnoName returns the error name for error number e.
|
||||
func ErrnoName(e syscall.Errno) string {
|
||||
i := sort.Search(len(errorList), func(i int) bool {
|
||||
return errorList[i].num >= e
|
||||
})
|
||||
if i < len(errorList) && errorList[i].num == e {
|
||||
return errorList[i].name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// SignalName returns the signal name for signal number s.
|
||||
func SignalName(s syscall.Signal) string {
|
||||
i := sort.Search(len(signalList), func(i int) bool {
|
||||
return signalList[i].num >= s
|
||||
})
|
||||
if i < len(signalList) && signalList[i].num == s {
|
||||
return signalList[i].name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// clen returns the index of the first NULL byte in n or len(n) if n contains no NULL byte.
|
||||
func clen(n []byte) int {
|
||||
i := bytes.IndexByte(n, 0)
|
||||
|
@ -199,6 +222,13 @@ func Getpeername(fd int) (sa Sockaddr, err error) {
|
|||
return anyToSockaddr(&rsa)
|
||||
}
|
||||
|
||||
func GetsockoptByte(fd, level, opt int) (value byte, err error) {
|
||||
var n byte
|
||||
vallen := _Socklen(1)
|
||||
err = getsockopt(fd, level, opt, unsafe.Pointer(&n), &vallen)
|
||||
return n, err
|
||||
}
|
||||
|
||||
func GetsockoptInt(fd, level, opt int) (value int, err error) {
|
||||
var n int32
|
||||
vallen := _Socklen(4)
|
||||
|
@ -206,6 +236,40 @@ func GetsockoptInt(fd, level, opt int) (value int, err error) {
|
|||
return int(n), err
|
||||
}
|
||||
|
||||
func GetsockoptInet4Addr(fd, level, opt int) (value [4]byte, err error) {
|
||||
vallen := _Socklen(4)
|
||||
err = getsockopt(fd, level, opt, unsafe.Pointer(&value[0]), &vallen)
|
||||
return value, err
|
||||
}
|
||||
|
||||
func GetsockoptIPMreq(fd, level, opt int) (*IPMreq, error) {
|
||||
var value IPMreq
|
||||
vallen := _Socklen(SizeofIPMreq)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptIPv6Mreq(fd, level, opt int) (*IPv6Mreq, error) {
|
||||
var value IPv6Mreq
|
||||
vallen := _Socklen(SizeofIPv6Mreq)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptIPv6MTUInfo(fd, level, opt int) (*IPv6MTUInfo, error) {
|
||||
var value IPv6MTUInfo
|
||||
vallen := _Socklen(SizeofIPv6MTUInfo)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptICMPv6Filter(fd, level, opt int) (*ICMPv6Filter, error) {
|
||||
var value ICMPv6Filter
|
||||
vallen := _Socklen(SizeofICMPv6Filter)
|
||||
err := getsockopt(fd, level, opt, unsafe.Pointer(&value), &vallen)
|
||||
return &value, err
|
||||
}
|
||||
|
||||
func GetsockoptLinger(fd, level, opt int) (*Linger, error) {
|
||||
var linger Linger
|
||||
vallen := _Socklen(SizeofLinger)
|
||||
|
|
292
vendor/golang.org/x/sys/unix/zerrors_darwin_386.go
generated
vendored
292
vendor/golang.org/x/sys/unix/zerrors_darwin_386.go
generated
vendored
|
@ -1473,6 +1473,12 @@ const (
|
|||
WORDSIZE = 0x20
|
||||
WSTOPPED = 0x8
|
||||
WUNTRACED = 0x2
|
||||
XATTR_CREATE = 0x2
|
||||
XATTR_NODEFAULT = 0x10
|
||||
XATTR_NOFOLLOW = 0x1
|
||||
XATTR_NOSECURITY = 0x8
|
||||
XATTR_REPLACE = 0x4
|
||||
XATTR_SHOWCOMPRESSION = 0x20
|
||||
)
|
||||
|
||||
// Errors
|
||||
|
@ -1624,146 +1630,154 @@ const (
|
|||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "resource busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "operation timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "device power is off",
|
||||
83: "device error",
|
||||
84: "value too large to be stored in data type",
|
||||
85: "bad executable (or shared library)",
|
||||
86: "bad CPU type in executable",
|
||||
87: "shared library version mismatch",
|
||||
88: "malformed Mach-o file",
|
||||
89: "operation canceled",
|
||||
90: "identifier removed",
|
||||
91: "no message of desired type",
|
||||
92: "illegal byte sequence",
|
||||
93: "attribute not found",
|
||||
94: "bad message",
|
||||
95: "EMULTIHOP (Reserved)",
|
||||
96: "no message available on STREAM",
|
||||
97: "ENOLINK (Reserved)",
|
||||
98: "no STREAM resources",
|
||||
99: "not a STREAM",
|
||||
100: "protocol error",
|
||||
101: "STREAM ioctl timeout",
|
||||
102: "operation not supported on socket",
|
||||
103: "policy not found",
|
||||
104: "state not recoverable",
|
||||
105: "previous owner died",
|
||||
106: "interface output queue is full",
|
||||
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", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "resource busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by 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", "result too large"},
|
||||
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "ENOTSUP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "operation timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disc quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EPWROFF", "device power is off"},
|
||||
{83, "EDEVERR", "device error"},
|
||||
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{85, "EBADEXEC", "bad executable (or shared library)"},
|
||||
{86, "EBADARCH", "bad CPU type in executable"},
|
||||
{87, "ESHLIBVERS", "shared library version mismatch"},
|
||||
{88, "EBADMACHO", "malformed Mach-o file"},
|
||||
{89, "ECANCELED", "operation canceled"},
|
||||
{90, "EIDRM", "identifier removed"},
|
||||
{91, "ENOMSG", "no message of desired type"},
|
||||
{92, "EILSEQ", "illegal byte sequence"},
|
||||
{93, "ENOATTR", "attribute not found"},
|
||||
{94, "EBADMSG", "bad message"},
|
||||
{95, "EMULTIHOP", "EMULTIHOP (Reserved)"},
|
||||
{96, "ENODATA", "no message available on STREAM"},
|
||||
{97, "ENOLINK", "ENOLINK (Reserved)"},
|
||||
{98, "ENOSR", "no STREAM resources"},
|
||||
{99, "ENOSTR", "not a STREAM"},
|
||||
{100, "EPROTO", "protocol error"},
|
||||
{101, "ETIME", "STREAM ioctl timeout"},
|
||||
{102, "EOPNOTSUPP", "operation not supported on socket"},
|
||||
{103, "ENOPOLICY", "policy not found"},
|
||||
{104, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{105, "EOWNERDEAD", "previous owner died"},
|
||||
{106, "EQFULL", "interface output queue is full"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "suspended (signal)",
|
||||
18: "suspended",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
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/BPT trap"},
|
||||
{6, "SIGABRT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "suspended (signal)"},
|
||||
{18, "SIGTSTP", "suspended"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
}
|
||||
|
|
292
vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go
generated
vendored
292
vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go
generated
vendored
|
@ -1473,6 +1473,12 @@ const (
|
|||
WORDSIZE = 0x40
|
||||
WSTOPPED = 0x8
|
||||
WUNTRACED = 0x2
|
||||
XATTR_CREATE = 0x2
|
||||
XATTR_NODEFAULT = 0x10
|
||||
XATTR_NOFOLLOW = 0x1
|
||||
XATTR_NOSECURITY = 0x8
|
||||
XATTR_REPLACE = 0x4
|
||||
XATTR_SHOWCOMPRESSION = 0x20
|
||||
)
|
||||
|
||||
// Errors
|
||||
|
@ -1624,146 +1630,154 @@ const (
|
|||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "resource busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "operation timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "device power is off",
|
||||
83: "device error",
|
||||
84: "value too large to be stored in data type",
|
||||
85: "bad executable (or shared library)",
|
||||
86: "bad CPU type in executable",
|
||||
87: "shared library version mismatch",
|
||||
88: "malformed Mach-o file",
|
||||
89: "operation canceled",
|
||||
90: "identifier removed",
|
||||
91: "no message of desired type",
|
||||
92: "illegal byte sequence",
|
||||
93: "attribute not found",
|
||||
94: "bad message",
|
||||
95: "EMULTIHOP (Reserved)",
|
||||
96: "no message available on STREAM",
|
||||
97: "ENOLINK (Reserved)",
|
||||
98: "no STREAM resources",
|
||||
99: "not a STREAM",
|
||||
100: "protocol error",
|
||||
101: "STREAM ioctl timeout",
|
||||
102: "operation not supported on socket",
|
||||
103: "policy not found",
|
||||
104: "state not recoverable",
|
||||
105: "previous owner died",
|
||||
106: "interface output queue is full",
|
||||
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", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "resource busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by 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", "result too large"},
|
||||
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "ENOTSUP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "operation timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disc quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EPWROFF", "device power is off"},
|
||||
{83, "EDEVERR", "device error"},
|
||||
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{85, "EBADEXEC", "bad executable (or shared library)"},
|
||||
{86, "EBADARCH", "bad CPU type in executable"},
|
||||
{87, "ESHLIBVERS", "shared library version mismatch"},
|
||||
{88, "EBADMACHO", "malformed Mach-o file"},
|
||||
{89, "ECANCELED", "operation canceled"},
|
||||
{90, "EIDRM", "identifier removed"},
|
||||
{91, "ENOMSG", "no message of desired type"},
|
||||
{92, "EILSEQ", "illegal byte sequence"},
|
||||
{93, "ENOATTR", "attribute not found"},
|
||||
{94, "EBADMSG", "bad message"},
|
||||
{95, "EMULTIHOP", "EMULTIHOP (Reserved)"},
|
||||
{96, "ENODATA", "no message available on STREAM"},
|
||||
{97, "ENOLINK", "ENOLINK (Reserved)"},
|
||||
{98, "ENOSR", "no STREAM resources"},
|
||||
{99, "ENOSTR", "not a STREAM"},
|
||||
{100, "EPROTO", "protocol error"},
|
||||
{101, "ETIME", "STREAM ioctl timeout"},
|
||||
{102, "EOPNOTSUPP", "operation not supported on socket"},
|
||||
{103, "ENOPOLICY", "policy not found"},
|
||||
{104, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{105, "EOWNERDEAD", "previous owner died"},
|
||||
{106, "EQFULL", "interface output queue is full"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "suspended (signal)",
|
||||
18: "suspended",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
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/BPT trap"},
|
||||
{6, "SIGABRT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "suspended (signal)"},
|
||||
{18, "SIGTSTP", "suspended"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
}
|
||||
|
|
292
vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go
generated
vendored
292
vendor/golang.org/x/sys/unix/zerrors_darwin_arm.go
generated
vendored
|
@ -1473,6 +1473,12 @@ const (
|
|||
WORDSIZE = 0x40
|
||||
WSTOPPED = 0x8
|
||||
WUNTRACED = 0x2
|
||||
XATTR_CREATE = 0x2
|
||||
XATTR_NODEFAULT = 0x10
|
||||
XATTR_NOFOLLOW = 0x1
|
||||
XATTR_NOSECURITY = 0x8
|
||||
XATTR_REPLACE = 0x4
|
||||
XATTR_SHOWCOMPRESSION = 0x20
|
||||
)
|
||||
|
||||
// Errors
|
||||
|
@ -1624,146 +1630,154 @@ const (
|
|||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "resource busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "operation timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "device power is off",
|
||||
83: "device error",
|
||||
84: "value too large to be stored in data type",
|
||||
85: "bad executable (or shared library)",
|
||||
86: "bad CPU type in executable",
|
||||
87: "shared library version mismatch",
|
||||
88: "malformed Mach-o file",
|
||||
89: "operation canceled",
|
||||
90: "identifier removed",
|
||||
91: "no message of desired type",
|
||||
92: "illegal byte sequence",
|
||||
93: "attribute not found",
|
||||
94: "bad message",
|
||||
95: "EMULTIHOP (Reserved)",
|
||||
96: "no message available on STREAM",
|
||||
97: "ENOLINK (Reserved)",
|
||||
98: "no STREAM resources",
|
||||
99: "not a STREAM",
|
||||
100: "protocol error",
|
||||
101: "STREAM ioctl timeout",
|
||||
102: "operation not supported on socket",
|
||||
103: "policy not found",
|
||||
104: "state not recoverable",
|
||||
105: "previous owner died",
|
||||
106: "interface output queue is full",
|
||||
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", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "resource busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by 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", "result too large"},
|
||||
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "ENOTSUP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "operation timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disc quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EPWROFF", "device power is off"},
|
||||
{83, "EDEVERR", "device error"},
|
||||
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{85, "EBADEXEC", "bad executable (or shared library)"},
|
||||
{86, "EBADARCH", "bad CPU type in executable"},
|
||||
{87, "ESHLIBVERS", "shared library version mismatch"},
|
||||
{88, "EBADMACHO", "malformed Mach-o file"},
|
||||
{89, "ECANCELED", "operation canceled"},
|
||||
{90, "EIDRM", "identifier removed"},
|
||||
{91, "ENOMSG", "no message of desired type"},
|
||||
{92, "EILSEQ", "illegal byte sequence"},
|
||||
{93, "ENOATTR", "attribute not found"},
|
||||
{94, "EBADMSG", "bad message"},
|
||||
{95, "EMULTIHOP", "EMULTIHOP (Reserved)"},
|
||||
{96, "ENODATA", "no message available on STREAM"},
|
||||
{97, "ENOLINK", "ENOLINK (Reserved)"},
|
||||
{98, "ENOSR", "no STREAM resources"},
|
||||
{99, "ENOSTR", "not a STREAM"},
|
||||
{100, "EPROTO", "protocol error"},
|
||||
{101, "ETIME", "STREAM ioctl timeout"},
|
||||
{102, "EOPNOTSUPP", "operation not supported on socket"},
|
||||
{103, "ENOPOLICY", "policy not found"},
|
||||
{104, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{105, "EOWNERDEAD", "previous owner died"},
|
||||
{106, "EQFULL", "interface output queue is full"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "suspended (signal)",
|
||||
18: "suspended",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
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/BPT trap"},
|
||||
{6, "SIGABRT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "suspended (signal)"},
|
||||
{18, "SIGTSTP", "suspended"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
}
|
||||
|
|
292
vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go
generated
vendored
292
vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go
generated
vendored
|
@ -1473,6 +1473,12 @@ const (
|
|||
WORDSIZE = 0x40
|
||||
WSTOPPED = 0x8
|
||||
WUNTRACED = 0x2
|
||||
XATTR_CREATE = 0x2
|
||||
XATTR_NODEFAULT = 0x10
|
||||
XATTR_NOFOLLOW = 0x1
|
||||
XATTR_NOSECURITY = 0x8
|
||||
XATTR_REPLACE = 0x4
|
||||
XATTR_SHOWCOMPRESSION = 0x20
|
||||
)
|
||||
|
||||
// Errors
|
||||
|
@ -1624,146 +1630,154 @@ const (
|
|||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "resource busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "operation timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "device power is off",
|
||||
83: "device error",
|
||||
84: "value too large to be stored in data type",
|
||||
85: "bad executable (or shared library)",
|
||||
86: "bad CPU type in executable",
|
||||
87: "shared library version mismatch",
|
||||
88: "malformed Mach-o file",
|
||||
89: "operation canceled",
|
||||
90: "identifier removed",
|
||||
91: "no message of desired type",
|
||||
92: "illegal byte sequence",
|
||||
93: "attribute not found",
|
||||
94: "bad message",
|
||||
95: "EMULTIHOP (Reserved)",
|
||||
96: "no message available on STREAM",
|
||||
97: "ENOLINK (Reserved)",
|
||||
98: "no STREAM resources",
|
||||
99: "not a STREAM",
|
||||
100: "protocol error",
|
||||
101: "STREAM ioctl timeout",
|
||||
102: "operation not supported on socket",
|
||||
103: "policy not found",
|
||||
104: "state not recoverable",
|
||||
105: "previous owner died",
|
||||
106: "interface output queue is full",
|
||||
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", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "resource busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by 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", "result too large"},
|
||||
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "ENOTSUP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "operation timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disc quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EPWROFF", "device power is off"},
|
||||
{83, "EDEVERR", "device error"},
|
||||
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{85, "EBADEXEC", "bad executable (or shared library)"},
|
||||
{86, "EBADARCH", "bad CPU type in executable"},
|
||||
{87, "ESHLIBVERS", "shared library version mismatch"},
|
||||
{88, "EBADMACHO", "malformed Mach-o file"},
|
||||
{89, "ECANCELED", "operation canceled"},
|
||||
{90, "EIDRM", "identifier removed"},
|
||||
{91, "ENOMSG", "no message of desired type"},
|
||||
{92, "EILSEQ", "illegal byte sequence"},
|
||||
{93, "ENOATTR", "attribute not found"},
|
||||
{94, "EBADMSG", "bad message"},
|
||||
{95, "EMULTIHOP", "EMULTIHOP (Reserved)"},
|
||||
{96, "ENODATA", "no message available on STREAM"},
|
||||
{97, "ENOLINK", "ENOLINK (Reserved)"},
|
||||
{98, "ENOSR", "no STREAM resources"},
|
||||
{99, "ENOSTR", "not a STREAM"},
|
||||
{100, "EPROTO", "protocol error"},
|
||||
{101, "ETIME", "STREAM ioctl timeout"},
|
||||
{102, "EOPNOTSUPP", "operation not supported on socket"},
|
||||
{103, "ENOPOLICY", "policy not found"},
|
||||
{104, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{105, "EOWNERDEAD", "previous owner died"},
|
||||
{106, "EQFULL", "interface output queue is full"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "suspended (signal)",
|
||||
18: "suspended",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
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/BPT trap"},
|
||||
{6, "SIGABRT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "suspended (signal)"},
|
||||
{18, "SIGTSTP", "suspended"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
}
|
||||
|
|
278
vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
generated
vendored
278
vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
generated
vendored
|
@ -1437,142 +1437,150 @@ const (
|
|||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "operation timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "identifier removed",
|
||||
83: "no message of desired type",
|
||||
84: "value too large to be stored in data type",
|
||||
85: "operation canceled",
|
||||
86: "illegal byte sequence",
|
||||
87: "attribute not found",
|
||||
88: "programming error",
|
||||
89: "bad message",
|
||||
90: "multihop attempted",
|
||||
91: "link has been severed",
|
||||
92: "protocol error",
|
||||
93: "no medium found",
|
||||
94: "unknown error: 94",
|
||||
95: "unknown error: 95",
|
||||
96: "unknown error: 96",
|
||||
97: "unknown error: 97",
|
||||
98: "unknown error: 98",
|
||||
99: "unknown error: 99",
|
||||
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", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by 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", "result too large"},
|
||||
{35, "EWOULDBLOCK", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "EOPNOTSUPP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "operation timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disc quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EIDRM", "identifier removed"},
|
||||
{83, "ENOMSG", "no message of desired type"},
|
||||
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{85, "ECANCELED", "operation canceled"},
|
||||
{86, "EILSEQ", "illegal byte sequence"},
|
||||
{87, "ENOATTR", "attribute not found"},
|
||||
{88, "EDOOFUS", "programming error"},
|
||||
{89, "EBADMSG", "bad message"},
|
||||
{90, "EMULTIHOP", "multihop attempted"},
|
||||
{91, "ENOLINK", "link has been severed"},
|
||||
{92, "EPROTO", "protocol error"},
|
||||
{93, "ENOMEDIUM", "no medium found"},
|
||||
{94, "EUNUSED94", "unknown error: 94"},
|
||||
{95, "EUNUSED95", "unknown error: 95"},
|
||||
{96, "EUNUSED96", "unknown error: 96"},
|
||||
{97, "EUNUSED97", "unknown error: 97"},
|
||||
{98, "EUNUSED98", "unknown error: 98"},
|
||||
{99, "ELAST", "unknown error: 99"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "suspended (signal)",
|
||||
18: "suspended",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
32: "thread Scheduler",
|
||||
33: "checkPoint",
|
||||
34: "checkPointExit",
|
||||
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/BPT trap"},
|
||||
{6, "SIGIOT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "suspended (signal)"},
|
||||
{18, "SIGTSTP", "suspended"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
{32, "SIGTHR", "thread Scheduler"},
|
||||
{33, "SIGCKPT", "checkPoint"},
|
||||
{34, "SIGCKPTEXIT", "checkPointExit"},
|
||||
}
|
||||
|
|
270
vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go
generated
vendored
270
vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go
generated
vendored
|
@ -1619,138 +1619,146 @@ const (
|
|||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "operation timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "identifier removed",
|
||||
83: "no message of desired type",
|
||||
84: "value too large to be stored in data type",
|
||||
85: "operation canceled",
|
||||
86: "illegal byte sequence",
|
||||
87: "attribute not found",
|
||||
88: "programming error",
|
||||
89: "bad message",
|
||||
90: "multihop attempted",
|
||||
91: "link has been severed",
|
||||
92: "protocol error",
|
||||
93: "capabilities insufficient",
|
||||
94: "not permitted in capability mode",
|
||||
95: "state not recoverable",
|
||||
96: "previous owner died",
|
||||
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", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by 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", "result too large"},
|
||||
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "EOPNOTSUPP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "operation timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disc quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EIDRM", "identifier removed"},
|
||||
{83, "ENOMSG", "no message of desired type"},
|
||||
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{85, "ECANCELED", "operation canceled"},
|
||||
{86, "EILSEQ", "illegal byte sequence"},
|
||||
{87, "ENOATTR", "attribute not found"},
|
||||
{88, "EDOOFUS", "programming error"},
|
||||
{89, "EBADMSG", "bad message"},
|
||||
{90, "EMULTIHOP", "multihop attempted"},
|
||||
{91, "ENOLINK", "link has been severed"},
|
||||
{92, "EPROTO", "protocol error"},
|
||||
{93, "ENOTCAPABLE", "capabilities insufficient"},
|
||||
{94, "ECAPMODE", "not permitted in capability mode"},
|
||||
{95, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{96, "EOWNERDEAD", "previous owner died"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "suspended (signal)",
|
||||
18: "suspended",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
32: "unknown signal",
|
||||
33: "unknown signal",
|
||||
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/BPT trap"},
|
||||
{6, "SIGIOT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "suspended (signal)"},
|
||||
{18, "SIGTSTP", "suspended"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
{32, "SIGTHR", "unknown signal"},
|
||||
{33, "SIGLIBRT", "unknown signal"},
|
||||
}
|
||||
|
|
270
vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go
generated
vendored
270
vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go
generated
vendored
|
@ -1620,138 +1620,146 @@ const (
|
|||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "operation timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "identifier removed",
|
||||
83: "no message of desired type",
|
||||
84: "value too large to be stored in data type",
|
||||
85: "operation canceled",
|
||||
86: "illegal byte sequence",
|
||||
87: "attribute not found",
|
||||
88: "programming error",
|
||||
89: "bad message",
|
||||
90: "multihop attempted",
|
||||
91: "link has been severed",
|
||||
92: "protocol error",
|
||||
93: "capabilities insufficient",
|
||||
94: "not permitted in capability mode",
|
||||
95: "state not recoverable",
|
||||
96: "previous owner died",
|
||||
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", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by 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", "result too large"},
|
||||
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "EOPNOTSUPP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "operation timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disc quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EIDRM", "identifier removed"},
|
||||
{83, "ENOMSG", "no message of desired type"},
|
||||
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{85, "ECANCELED", "operation canceled"},
|
||||
{86, "EILSEQ", "illegal byte sequence"},
|
||||
{87, "ENOATTR", "attribute not found"},
|
||||
{88, "EDOOFUS", "programming error"},
|
||||
{89, "EBADMSG", "bad message"},
|
||||
{90, "EMULTIHOP", "multihop attempted"},
|
||||
{91, "ENOLINK", "link has been severed"},
|
||||
{92, "EPROTO", "protocol error"},
|
||||
{93, "ENOTCAPABLE", "capabilities insufficient"},
|
||||
{94, "ECAPMODE", "not permitted in capability mode"},
|
||||
{95, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{96, "EOWNERDEAD", "previous owner died"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "suspended (signal)",
|
||||
18: "suspended",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
32: "unknown signal",
|
||||
33: "unknown signal",
|
||||
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/BPT trap"},
|
||||
{6, "SIGIOT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "suspended (signal)"},
|
||||
{18, "SIGTSTP", "suspended"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
{32, "SIGTHR", "unknown signal"},
|
||||
{33, "SIGLIBRT", "unknown signal"},
|
||||
}
|
||||
|
|
270
vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go
generated
vendored
270
vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go
generated
vendored
|
@ -1628,138 +1628,146 @@ const (
|
|||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "device not configured",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource deadlock avoided",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device busy",
|
||||
17: "file exists",
|
||||
18: "cross-device link",
|
||||
19: "operation not supported by device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "result too large",
|
||||
35: "resource temporarily unavailable",
|
||||
36: "operation now in progress",
|
||||
37: "operation already in progress",
|
||||
38: "socket operation on non-socket",
|
||||
39: "destination address required",
|
||||
40: "message too long",
|
||||
41: "protocol wrong type for socket",
|
||||
42: "protocol not available",
|
||||
43: "protocol not supported",
|
||||
44: "socket type not supported",
|
||||
45: "operation not supported",
|
||||
46: "protocol family not supported",
|
||||
47: "address family not supported by protocol family",
|
||||
48: "address already in use",
|
||||
49: "can't assign requested address",
|
||||
50: "network is down",
|
||||
51: "network is unreachable",
|
||||
52: "network dropped connection on reset",
|
||||
53: "software caused connection abort",
|
||||
54: "connection reset by peer",
|
||||
55: "no buffer space available",
|
||||
56: "socket is already connected",
|
||||
57: "socket is not connected",
|
||||
58: "can't send after socket shutdown",
|
||||
59: "too many references: can't splice",
|
||||
60: "operation timed out",
|
||||
61: "connection refused",
|
||||
62: "too many levels of symbolic links",
|
||||
63: "file name too long",
|
||||
64: "host is down",
|
||||
65: "no route to host",
|
||||
66: "directory not empty",
|
||||
67: "too many processes",
|
||||
68: "too many users",
|
||||
69: "disc quota exceeded",
|
||||
70: "stale NFS file handle",
|
||||
71: "too many levels of remote in path",
|
||||
72: "RPC struct is bad",
|
||||
73: "RPC version wrong",
|
||||
74: "RPC prog. not avail",
|
||||
75: "program version wrong",
|
||||
76: "bad procedure for program",
|
||||
77: "no locks available",
|
||||
78: "function not implemented",
|
||||
79: "inappropriate file type or format",
|
||||
80: "authentication error",
|
||||
81: "need authenticator",
|
||||
82: "identifier removed",
|
||||
83: "no message of desired type",
|
||||
84: "value too large to be stored in data type",
|
||||
85: "operation canceled",
|
||||
86: "illegal byte sequence",
|
||||
87: "attribute not found",
|
||||
88: "programming error",
|
||||
89: "bad message",
|
||||
90: "multihop attempted",
|
||||
91: "link has been severed",
|
||||
92: "protocol error",
|
||||
93: "capabilities insufficient",
|
||||
94: "not permitted in capability mode",
|
||||
95: "state not recoverable",
|
||||
96: "previous owner died",
|
||||
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", "device not configured"},
|
||||
{7, "E2BIG", "argument list too long"},
|
||||
{8, "ENOEXEC", "exec format error"},
|
||||
{9, "EBADF", "bad file descriptor"},
|
||||
{10, "ECHILD", "no child processes"},
|
||||
{11, "EDEADLK", "resource deadlock avoided"},
|
||||
{12, "ENOMEM", "cannot allocate memory"},
|
||||
{13, "EACCES", "permission denied"},
|
||||
{14, "EFAULT", "bad address"},
|
||||
{15, "ENOTBLK", "block device required"},
|
||||
{16, "EBUSY", "device busy"},
|
||||
{17, "EEXIST", "file exists"},
|
||||
{18, "EXDEV", "cross-device link"},
|
||||
{19, "ENODEV", "operation not supported by 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", "result too large"},
|
||||
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||
{36, "EINPROGRESS", "operation now in progress"},
|
||||
{37, "EALREADY", "operation already in progress"},
|
||||
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{39, "EDESTADDRREQ", "destination address required"},
|
||||
{40, "EMSGSIZE", "message too long"},
|
||||
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{42, "ENOPROTOOPT", "protocol not available"},
|
||||
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{45, "EOPNOTSUPP", "operation not supported"},
|
||||
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||
{48, "EADDRINUSE", "address already in use"},
|
||||
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||
{50, "ENETDOWN", "network is down"},
|
||||
{51, "ENETUNREACH", "network is unreachable"},
|
||||
{52, "ENETRESET", "network dropped connection on reset"},
|
||||
{53, "ECONNABORTED", "software caused connection abort"},
|
||||
{54, "ECONNRESET", "connection reset by peer"},
|
||||
{55, "ENOBUFS", "no buffer space available"},
|
||||
{56, "EISCONN", "socket is already connected"},
|
||||
{57, "ENOTCONN", "socket is not connected"},
|
||||
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||
{60, "ETIMEDOUT", "operation timed out"},
|
||||
{61, "ECONNREFUSED", "connection refused"},
|
||||
{62, "ELOOP", "too many levels of symbolic links"},
|
||||
{63, "ENAMETOOLONG", "file name too long"},
|
||||
{64, "EHOSTDOWN", "host is down"},
|
||||
{65, "EHOSTUNREACH", "no route to host"},
|
||||
{66, "ENOTEMPTY", "directory not empty"},
|
||||
{67, "EPROCLIM", "too many processes"},
|
||||
{68, "EUSERS", "too many users"},
|
||||
{69, "EDQUOT", "disc quota exceeded"},
|
||||
{70, "ESTALE", "stale NFS file handle"},
|
||||
{71, "EREMOTE", "too many levels of remote in path"},
|
||||
{72, "EBADRPC", "RPC struct is bad"},
|
||||
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||
{75, "EPROGMISMATCH", "program version wrong"},
|
||||
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||
{77, "ENOLCK", "no locks available"},
|
||||
{78, "ENOSYS", "function not implemented"},
|
||||
{79, "EFTYPE", "inappropriate file type or format"},
|
||||
{80, "EAUTH", "authentication error"},
|
||||
{81, "ENEEDAUTH", "need authenticator"},
|
||||
{82, "EIDRM", "identifier removed"},
|
||||
{83, "ENOMSG", "no message of desired type"},
|
||||
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||
{85, "ECANCELED", "operation canceled"},
|
||||
{86, "EILSEQ", "illegal byte sequence"},
|
||||
{87, "ENOATTR", "attribute not found"},
|
||||
{88, "EDOOFUS", "programming error"},
|
||||
{89, "EBADMSG", "bad message"},
|
||||
{90, "EMULTIHOP", "multihop attempted"},
|
||||
{91, "ENOLINK", "link has been severed"},
|
||||
{92, "EPROTO", "protocol error"},
|
||||
{93, "ENOTCAPABLE", "capabilities insufficient"},
|
||||
{94, "ECAPMODE", "not permitted in capability mode"},
|
||||
{95, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{96, "EOWNERDEAD", "previous owner died"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/BPT trap",
|
||||
6: "abort trap",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "urgent I/O condition",
|
||||
17: "suspended (signal)",
|
||||
18: "suspended",
|
||||
19: "continued",
|
||||
20: "child exited",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "I/O possible",
|
||||
24: "cputime limit exceeded",
|
||||
25: "filesize limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window size changes",
|
||||
29: "information request",
|
||||
30: "user defined signal 1",
|
||||
31: "user defined signal 2",
|
||||
32: "unknown signal",
|
||||
33: "unknown signal",
|
||||
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/BPT trap"},
|
||||
{6, "SIGIOT", "abort trap"},
|
||||
{7, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGURG", "urgent I/O condition"},
|
||||
{17, "SIGSTOP", "suspended (signal)"},
|
||||
{18, "SIGTSTP", "suspended"},
|
||||
{19, "SIGCONT", "continued"},
|
||||
{20, "SIGCHLD", "child exited"},
|
||||
{21, "SIGTTIN", "stopped (tty input)"},
|
||||
{22, "SIGTTOU", "stopped (tty output)"},
|
||||
{23, "SIGIO", "I/O possible"},
|
||||
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||
{26, "SIGVTALRM", "virtual timer expired"},
|
||||
{27, "SIGPROF", "profiling timer expired"},
|
||||
{28, "SIGWINCH", "window size changes"},
|
||||
{29, "SIGINFO", "information request"},
|
||||
{30, "SIGUSR1", "user defined signal 1"},
|
||||
{31, "SIGUSR2", "user defined signal 2"},
|
||||
{32, "SIGTHR", "unknown signal"},
|
||||
{33, "SIGLIBRT", "unknown signal"},
|
||||
}
|
||||
|
|
634
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
634
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
|
@ -3,7 +3,7 @@
|
|||
|
||||
// +build 386,linux
|
||||
|
||||
// Created by cgo -godefs - DO NOT EDIT
|
||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m32 _const.go
|
||||
|
||||
package unix
|
||||
|
@ -11,6 +11,11 @@ package unix
|
|||
import "syscall"
|
||||
|
||||
const (
|
||||
AAFS_MAGIC = 0x5a3c69f0
|
||||
ADFS_SUPER_MAGIC = 0xadf5
|
||||
AFFS_SUPER_MAGIC = 0xadff
|
||||
AFS_FS_MAGIC = 0x6b414653
|
||||
AFS_SUPER_MAGIC = 0x5346414f
|
||||
AF_ALG = 0x26
|
||||
AF_APPLETALK = 0x5
|
||||
AF_ASH = 0x12
|
||||
|
@ -66,6 +71,7 @@ const (
|
|||
ALG_SET_IV = 0x2
|
||||
ALG_SET_KEY = 0x1
|
||||
ALG_SET_OP = 0x3
|
||||
ANON_INODE_FS_MAGIC = 0x9041934
|
||||
ARPHRD_6LOWPAN = 0x339
|
||||
ARPHRD_ADAPT = 0x108
|
||||
ARPHRD_APPLETLK = 0x8
|
||||
|
@ -133,6 +139,7 @@ const (
|
|||
ARPHRD_VOID = 0xffff
|
||||
ARPHRD_VSOCKMON = 0x33a
|
||||
ARPHRD_X25 = 0x10f
|
||||
AUTOFS_SUPER_MAGIC = 0x187
|
||||
B0 = 0x0
|
||||
B1000000 = 0x1008
|
||||
B110 = 0x3
|
||||
|
@ -164,6 +171,9 @@ const (
|
|||
B75 = 0x2
|
||||
B921600 = 0x1007
|
||||
B9600 = 0xd
|
||||
BALLOON_KVM_MAGIC = 0x13661366
|
||||
BDEVFS_MAGIC = 0x62646576
|
||||
BINFMTFS_MAGIC = 0x42494e4d
|
||||
BLKBSZGET = 0x80041270
|
||||
BLKBSZSET = 0x40041271
|
||||
BLKFLSBUF = 0x1261
|
||||
|
@ -188,6 +198,7 @@ const (
|
|||
BPF_AND = 0x50
|
||||
BPF_B = 0x10
|
||||
BPF_DIV = 0x30
|
||||
BPF_FS_MAGIC = 0xcafe4a11
|
||||
BPF_H = 0x8
|
||||
BPF_IMM = 0x0
|
||||
BPF_IND = 0x40
|
||||
|
@ -229,6 +240,8 @@ const (
|
|||
BS0 = 0x0
|
||||
BS1 = 0x2000
|
||||
BSDLY = 0x2000
|
||||
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||
BTRFS_TEST_MAGIC = 0x73727279
|
||||
CAN_BCM = 0x2
|
||||
CAN_EFF_FLAG = 0x80000000
|
||||
CAN_EFF_ID_BITS = 0x1d
|
||||
|
@ -252,6 +265,8 @@ const (
|
|||
CBAUD = 0x100f
|
||||
CBAUDEX = 0x1000
|
||||
CFLUSH = 0xf
|
||||
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||
CIBAUD = 0x100f0000
|
||||
CLOCAL = 0x800
|
||||
CLOCK_BOOTTIME = 0x7
|
||||
|
@ -294,10 +309,12 @@ const (
|
|||
CLONE_VFORK = 0x4000
|
||||
CLONE_VM = 0x100
|
||||
CMSPAR = 0x40000000
|
||||
CODA_SUPER_MAGIC = 0x73757245
|
||||
CR0 = 0x0
|
||||
CR1 = 0x200
|
||||
CR2 = 0x400
|
||||
CR3 = 0x600
|
||||
CRAMFS_MAGIC = 0x28cd3d45
|
||||
CRDLY = 0x600
|
||||
CREAD = 0x80
|
||||
CRTSCTS = 0x80000000
|
||||
|
@ -312,6 +329,9 @@ const (
|
|||
CSTOP = 0x13
|
||||
CSTOPB = 0x40
|
||||
CSUSP = 0x1a
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
|
@ -328,9 +348,12 @@ const (
|
|||
ECHOKE = 0x800
|
||||
ECHONL = 0x40
|
||||
ECHOPRT = 0x400
|
||||
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||
EFD_CLOEXEC = 0x80000
|
||||
EFD_NONBLOCK = 0x800
|
||||
EFD_SEMAPHORE = 0x1
|
||||
EFIVARFS_MAGIC = 0xde5e81e4
|
||||
EFS_SUPER_MAGIC = 0x414a53
|
||||
ENCODING_DEFAULT = 0x0
|
||||
ENCODING_FM_MARK = 0x3
|
||||
ENCODING_FM_SPACE = 0x4
|
||||
|
@ -392,6 +415,7 @@ const (
|
|||
ETH_P_ECONET = 0x18
|
||||
ETH_P_EDSA = 0xdada
|
||||
ETH_P_ERSPAN = 0x88be
|
||||
ETH_P_ERSPAN2 = 0x22eb
|
||||
ETH_P_FCOE = 0x8906
|
||||
ETH_P_FIP = 0x8914
|
||||
ETH_P_HDLC = 0x19
|
||||
|
@ -425,6 +449,7 @@ const (
|
|||
ETH_P_PPP_DISC = 0x8863
|
||||
ETH_P_PPP_MP = 0x8
|
||||
ETH_P_PPP_SES = 0x8864
|
||||
ETH_P_PREAUTH = 0x88c7
|
||||
ETH_P_PRP = 0x88fb
|
||||
ETH_P_PUP = 0x200
|
||||
ETH_P_PUPAT = 0x201
|
||||
|
@ -445,9 +470,14 @@ const (
|
|||
ETH_P_WCCP = 0x883e
|
||||
ETH_P_X25 = 0x805
|
||||
ETH_P_XDSA = 0xf8
|
||||
EXABYTE_ENABLE_NEST = 0xf0
|
||||
EXT2_SUPER_MAGIC = 0xef53
|
||||
EXT3_SUPER_MAGIC = 0xef53
|
||||
EXT4_SUPER_MAGIC = 0xef53
|
||||
EXTA = 0xe
|
||||
EXTB = 0xf
|
||||
EXTPROC = 0x10000
|
||||
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||
FALLOC_FL_INSERT_RANGE = 0x20
|
||||
FALLOC_FL_KEEP_SIZE = 0x1
|
||||
|
@ -461,6 +491,7 @@ const (
|
|||
FF1 = 0x8000
|
||||
FFDLY = 0x8000
|
||||
FLUSHO = 0x1000
|
||||
FP_XSTATE_MAGIC2 = 0x46505845
|
||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||
|
@ -481,6 +512,7 @@ const (
|
|||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||
FS_POLICY_FLAGS_VALID = 0x3
|
||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||
F_ADD_SEALS = 0x409
|
||||
F_DUPFD = 0x0
|
||||
F_DUPFD_CLOEXEC = 0x406
|
||||
|
@ -542,6 +574,49 @@ const (
|
|||
GENL_UNS_ADMIN_PERM = 0x10
|
||||
GRND_NONBLOCK = 0x1
|
||||
GRND_RANDOM = 0x2
|
||||
HDIO_DRIVE_CMD = 0x31f
|
||||
HDIO_DRIVE_CMD_AEB = 0x31e
|
||||
HDIO_DRIVE_CMD_HDR_SIZE = 0x4
|
||||
HDIO_DRIVE_HOB_HDR_SIZE = 0x8
|
||||
HDIO_DRIVE_RESET = 0x31c
|
||||
HDIO_DRIVE_TASK = 0x31e
|
||||
HDIO_DRIVE_TASKFILE = 0x31d
|
||||
HDIO_DRIVE_TASK_HDR_SIZE = 0x8
|
||||
HDIO_GETGEO = 0x301
|
||||
HDIO_GET_32BIT = 0x309
|
||||
HDIO_GET_ACOUSTIC = 0x30f
|
||||
HDIO_GET_ADDRESS = 0x310
|
||||
HDIO_GET_BUSSTATE = 0x31a
|
||||
HDIO_GET_DMA = 0x30b
|
||||
HDIO_GET_IDENTITY = 0x30d
|
||||
HDIO_GET_KEEPSETTINGS = 0x308
|
||||
HDIO_GET_MULTCOUNT = 0x304
|
||||
HDIO_GET_NICE = 0x30c
|
||||
HDIO_GET_NOWERR = 0x30a
|
||||
HDIO_GET_QDMA = 0x305
|
||||
HDIO_GET_UNMASKINTR = 0x302
|
||||
HDIO_GET_WCACHE = 0x30e
|
||||
HDIO_OBSOLETE_IDENTITY = 0x307
|
||||
HDIO_SCAN_HWIF = 0x328
|
||||
HDIO_SET_32BIT = 0x324
|
||||
HDIO_SET_ACOUSTIC = 0x32c
|
||||
HDIO_SET_ADDRESS = 0x32f
|
||||
HDIO_SET_BUSSTATE = 0x32d
|
||||
HDIO_SET_DMA = 0x326
|
||||
HDIO_SET_KEEPSETTINGS = 0x323
|
||||
HDIO_SET_MULTCOUNT = 0x321
|
||||
HDIO_SET_NICE = 0x329
|
||||
HDIO_SET_NOWERR = 0x325
|
||||
HDIO_SET_PIO_MODE = 0x327
|
||||
HDIO_SET_QDMA = 0x32e
|
||||
HDIO_SET_UNMASKINTR = 0x322
|
||||
HDIO_SET_WCACHE = 0x32b
|
||||
HDIO_SET_XFER = 0x306
|
||||
HDIO_TRISTATE_HWIF = 0x31b
|
||||
HDIO_UNREGISTER_HWIF = 0x32a
|
||||
HOSTFS_SUPER_MAGIC = 0xc0ffee
|
||||
HPFS_SUPER_MAGIC = 0xf995e849
|
||||
HUGETLBFS_MAGIC = 0x958458f6
|
||||
HUPCL = 0x400
|
||||
IBSHIFT = 0x10
|
||||
ICANON = 0x2
|
||||
|
@ -792,12 +867,14 @@ const (
|
|||
IP_UNICAST_IF = 0x32
|
||||
IP_XFRM_POLICY = 0x11
|
||||
ISIG = 0x1
|
||||
ISOFS_SUPER_MAGIC = 0x9660
|
||||
ISTRIP = 0x20
|
||||
IUCLC = 0x200
|
||||
IUTF8 = 0x4000
|
||||
IXANY = 0x800
|
||||
IXOFF = 0x1000
|
||||
IXON = 0x400
|
||||
JFFS2_SUPER_MAGIC = 0x72b6
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
|
@ -894,9 +971,15 @@ const (
|
|||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
MCL_ONFAULT = 0x4
|
||||
MINIX2_SUPER_MAGIC = 0x2468
|
||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||
MINIX_SUPER_MAGIC = 0x137f
|
||||
MINIX_SUPER_MAGIC2 = 0x138f
|
||||
MNT_DETACH = 0x2
|
||||
MNT_EXPIRE = 0x4
|
||||
MNT_FORCE = 0x1
|
||||
MSDOS_SUPER_MAGIC = 0x4d44
|
||||
MSG_BATCH = 0x40000
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
MSG_CONFIRM = 0x800
|
||||
|
@ -956,7 +1039,9 @@ const (
|
|||
MS_SYNCHRONOUS = 0x10
|
||||
MS_UNBINDABLE = 0x20000
|
||||
MS_VERBOSE = 0x8000
|
||||
MTD_INODE_FS_MAGIC = 0x11307854
|
||||
NAME_MAX = 0xff
|
||||
NCP_SUPER_MAGIC = 0x564c
|
||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||
NETLINK_AUDIT = 0x9
|
||||
NETLINK_BROADCAST_ERROR = 0x4
|
||||
|
@ -991,6 +1076,37 @@ const (
|
|||
NETLINK_UNUSED = 0x1
|
||||
NETLINK_USERSOCK = 0x2
|
||||
NETLINK_XFRM = 0x6
|
||||
NFNETLINK_V0 = 0x0
|
||||
NFNLGRP_ACCT_QUOTA = 0x8
|
||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||
NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
|
||||
NFNLGRP_CONNTRACK_EXP_NEW = 0x4
|
||||
NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
|
||||
NFNLGRP_CONNTRACK_NEW = 0x1
|
||||
NFNLGRP_CONNTRACK_UPDATE = 0x2
|
||||
NFNLGRP_MAX = 0x9
|
||||
NFNLGRP_NFTABLES = 0x7
|
||||
NFNLGRP_NFTRACE = 0x9
|
||||
NFNLGRP_NONE = 0x0
|
||||
NFNL_BATCH_MAX = 0x1
|
||||
NFNL_MSG_BATCH_BEGIN = 0x10
|
||||
NFNL_MSG_BATCH_END = 0x11
|
||||
NFNL_NFA_NEST = 0x8000
|
||||
NFNL_SUBSYS_ACCT = 0x7
|
||||
NFNL_SUBSYS_COUNT = 0xc
|
||||
NFNL_SUBSYS_CTHELPER = 0x9
|
||||
NFNL_SUBSYS_CTNETLINK = 0x1
|
||||
NFNL_SUBSYS_CTNETLINK_EXP = 0x2
|
||||
NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
|
||||
NFNL_SUBSYS_IPSET = 0x6
|
||||
NFNL_SUBSYS_NFTABLES = 0xa
|
||||
NFNL_SUBSYS_NFT_COMPAT = 0xb
|
||||
NFNL_SUBSYS_NONE = 0x0
|
||||
NFNL_SUBSYS_OSF = 0x5
|
||||
NFNL_SUBSYS_QUEUE = 0x3
|
||||
NFNL_SUBSYS_ULOG = 0x4
|
||||
NFS_SUPER_MAGIC = 0x6969
|
||||
NILFS_SUPER_MAGIC = 0x3434
|
||||
NL0 = 0x0
|
||||
NL1 = 0x100
|
||||
NLA_ALIGNTO = 0x4
|
||||
|
@ -1023,6 +1139,8 @@ const (
|
|||
NLM_F_REQUEST = 0x1
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
OFILL = 0x40
|
||||
|
@ -1030,7 +1148,9 @@ const (
|
|||
ONLCR = 0x4
|
||||
ONLRET = 0x20
|
||||
ONOCR = 0x10
|
||||
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||
OPOST = 0x1
|
||||
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||
O_ACCMODE = 0x3
|
||||
O_APPEND = 0x400
|
||||
O_ASYNC = 0x2000
|
||||
|
@ -1115,16 +1235,20 @@ const (
|
|||
PERF_EVENT_IOC_DISABLE = 0x2401
|
||||
PERF_EVENT_IOC_ENABLE = 0x2400
|
||||
PERF_EVENT_IOC_ID = 0x80042407
|
||||
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4004240b
|
||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
|
||||
PERF_EVENT_IOC_PERIOD = 0x40082404
|
||||
PERF_EVENT_IOC_QUERY_BPF = 0xc004240a
|
||||
PERF_EVENT_IOC_REFRESH = 0x2402
|
||||
PERF_EVENT_IOC_RESET = 0x2403
|
||||
PERF_EVENT_IOC_SET_BPF = 0x40042408
|
||||
PERF_EVENT_IOC_SET_FILTER = 0x40042406
|
||||
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||
PIPEFS_MAGIC = 0x50495045
|
||||
PRIO_PGRP = 0x1
|
||||
PRIO_PROCESS = 0x0
|
||||
PRIO_USER = 0x2
|
||||
PROC_SUPER_MAGIC = 0x9fa0
|
||||
PROT_EXEC = 0x4
|
||||
PROT_GROWSDOWN = 0x1000000
|
||||
PROT_GROWSUP = 0x2000000
|
||||
|
@ -1167,6 +1291,7 @@ const (
|
|||
PR_GET_PDEATHSIG = 0x2
|
||||
PR_GET_SECCOMP = 0x15
|
||||
PR_GET_SECUREBITS = 0x1b
|
||||
PR_GET_SPECULATION_CTRL = 0x34
|
||||
PR_GET_THP_DISABLE = 0x2a
|
||||
PR_GET_TID_ADDRESS = 0x28
|
||||
PR_GET_TIMERSLACK = 0x1e
|
||||
|
@ -1212,11 +1337,18 @@ const (
|
|||
PR_SET_PTRACER_ANY = 0xffffffff
|
||||
PR_SET_SECCOMP = 0x16
|
||||
PR_SET_SECUREBITS = 0x1c
|
||||
PR_SET_SPECULATION_CTRL = 0x35
|
||||
PR_SET_THP_DISABLE = 0x29
|
||||
PR_SET_TIMERSLACK = 0x1d
|
||||
PR_SET_TIMING = 0xe
|
||||
PR_SET_TSC = 0x1a
|
||||
PR_SET_UNALIGN = 0x6
|
||||
PR_SPEC_DISABLE = 0x4
|
||||
PR_SPEC_ENABLE = 0x2
|
||||
PR_SPEC_FORCE_DISABLE = 0x8
|
||||
PR_SPEC_NOT_AFFECTED = 0x0
|
||||
PR_SPEC_PRCTL = 0x1
|
||||
PR_SPEC_STORE_BYPASS = 0x0
|
||||
PR_SVE_GET_VL = 0x33
|
||||
PR_SVE_SET_VL = 0x32
|
||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||
|
@ -1230,6 +1362,7 @@ const (
|
|||
PR_TSC_SIGSEGV = 0x2
|
||||
PR_UNALIGN_NOPRINT = 0x1
|
||||
PR_UNALIGN_SIGBUS = 0x2
|
||||
PSTOREFS_MAGIC = 0x6165676c
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
|
@ -1273,6 +1406,7 @@ const (
|
|||
PTRACE_POKETEXT = 0x4
|
||||
PTRACE_POKEUSR = 0x6
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||
PTRACE_SEIZE = 0x4206
|
||||
PTRACE_SETFPREGS = 0xf
|
||||
PTRACE_SETFPXREGS = 0x13
|
||||
|
@ -1288,6 +1422,11 @@ const (
|
|||
PTRACE_SYSEMU = 0x1f
|
||||
PTRACE_SYSEMU_SINGLESTEP = 0x20
|
||||
PTRACE_TRACEME = 0x0
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
RAMFS_MAGIC = 0x858458f6
|
||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||
REISERFS_SUPER_MAGIC = 0x52654973
|
||||
RLIMIT_AS = 0x9
|
||||
RLIMIT_CORE = 0x4
|
||||
RLIMIT_CPU = 0x0
|
||||
|
@ -1337,6 +1476,33 @@ const (
|
|||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTC_AF = 0x20
|
||||
RTC_AIE_OFF = 0x7002
|
||||
RTC_AIE_ON = 0x7001
|
||||
RTC_ALM_READ = 0x80247008
|
||||
RTC_ALM_SET = 0x40247007
|
||||
RTC_EPOCH_READ = 0x8004700d
|
||||
RTC_EPOCH_SET = 0x4004700e
|
||||
RTC_IRQF = 0x80
|
||||
RTC_IRQP_READ = 0x8004700b
|
||||
RTC_IRQP_SET = 0x4004700c
|
||||
RTC_MAX_FREQ = 0x2000
|
||||
RTC_PF = 0x40
|
||||
RTC_PIE_OFF = 0x7006
|
||||
RTC_PIE_ON = 0x7005
|
||||
RTC_PLL_GET = 0x801c7011
|
||||
RTC_PLL_SET = 0x401c7012
|
||||
RTC_RD_TIME = 0x80247009
|
||||
RTC_SET_TIME = 0x4024700a
|
||||
RTC_UF = 0x10
|
||||
RTC_UIE_OFF = 0x7004
|
||||
RTC_UIE_ON = 0x7003
|
||||
RTC_VL_CLR = 0x7014
|
||||
RTC_VL_READ = 0x80047013
|
||||
RTC_WIE_OFF = 0x7010
|
||||
RTC_WIE_ON = 0x700f
|
||||
RTC_WKALM_RD = 0x80287010
|
||||
RTC_WKALM_SET = 0x4028700f
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
|
@ -1473,6 +1639,8 @@ const (
|
|||
SECCOMP_MODE_DISABLED = 0x0
|
||||
SECCOMP_MODE_FILTER = 0x2
|
||||
SECCOMP_MODE_STRICT = 0x1
|
||||
SECURITYFS_MAGIC = 0x73636673
|
||||
SELINUX_MAGIC = 0xf97cff8c
|
||||
SHUT_RD = 0x0
|
||||
SHUT_RDWR = 0x2
|
||||
SHUT_WR = 0x1
|
||||
|
@ -1557,6 +1725,23 @@ const (
|
|||
SIOCSPGRP = 0x8902
|
||||
SIOCSRARP = 0x8962
|
||||
SIOCWANDEV = 0x894a
|
||||
SMACK_MAGIC = 0x43415d53
|
||||
SMART_AUTOSAVE = 0xd2
|
||||
SMART_AUTO_OFFLINE = 0xdb
|
||||
SMART_DISABLE = 0xd9
|
||||
SMART_ENABLE = 0xd8
|
||||
SMART_HCYL_PASS = 0xc2
|
||||
SMART_IMMEDIATE_OFFLINE = 0xd4
|
||||
SMART_LCYL_PASS = 0x4f
|
||||
SMART_READ_LOG_SECTOR = 0xd5
|
||||
SMART_READ_THRESHOLDS = 0xd1
|
||||
SMART_READ_VALUES = 0xd0
|
||||
SMART_SAVE = 0xd3
|
||||
SMART_STATUS = 0xda
|
||||
SMART_WRITE_LOG_SECTOR = 0xd6
|
||||
SMART_WRITE_THRESHOLDS = 0xd7
|
||||
SMB_SUPER_MAGIC = 0x517b
|
||||
SOCKFS_MAGIC = 0x534f434b
|
||||
SOCK_CLOEXEC = 0x80000
|
||||
SOCK_DCCP = 0x6
|
||||
SOCK_DGRAM = 0x2
|
||||
|
@ -1667,6 +1852,8 @@ const (
|
|||
SPLICE_F_MORE = 0x4
|
||||
SPLICE_F_MOVE = 0x1
|
||||
SPLICE_F_NONBLOCK = 0x2
|
||||
SQUASHFS_MAGIC = 0x73717368
|
||||
STACK_END_MAGIC = 0x57ac6e9d
|
||||
STATX_ALL = 0xfff
|
||||
STATX_ATIME = 0x20
|
||||
STATX_ATTR_APPEND = 0x20
|
||||
|
@ -1688,6 +1875,7 @@ const (
|
|||
STATX_TYPE = 0x1
|
||||
STATX_UID = 0x8
|
||||
STATX__RESERVED = 0x80000000
|
||||
SYSFS_MAGIC = 0x62656572
|
||||
S_BLKSIZE = 0x200
|
||||
S_IEXEC = 0x40
|
||||
S_IFBLK = 0x6000
|
||||
|
@ -1869,7 +2057,27 @@ const (
|
|||
TIOCSTI = 0x5412
|
||||
TIOCSWINSZ = 0x5414
|
||||
TIOCVHANGUP = 0x5437
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x100
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
TPACKET_HDRLEN = 0x34
|
||||
TP_STATUS_AVAILABLE = 0x0
|
||||
TP_STATUS_BLK_TMO = 0x20
|
||||
TP_STATUS_COPY = 0x2
|
||||
TP_STATUS_CSUMNOTREADY = 0x8
|
||||
TP_STATUS_CSUM_VALID = 0x80
|
||||
TP_STATUS_KERNEL = 0x0
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
TP_STATUS_VLAN_TPID_VALID = 0x40
|
||||
TP_STATUS_VLAN_VALID = 0x10
|
||||
TP_STATUS_WRONG_FORMAT = 0x4
|
||||
TRACEFS_MAGIC = 0x74726163
|
||||
TS_COMM_LEN = 0x20
|
||||
TUNATTACHFILTER = 0x400854d5
|
||||
TUNDETACHFILTER = 0x400854d6
|
||||
|
@ -1881,6 +2089,7 @@ const (
|
|||
TUNGETVNETHDRSZ = 0x800454d7
|
||||
TUNGETVNETLE = 0x800454dd
|
||||
TUNSETDEBUG = 0x400454c9
|
||||
TUNSETFILTEREBPF = 0x800454e1
|
||||
TUNSETGROUP = 0x400454ce
|
||||
TUNSETIFF = 0x400454ca
|
||||
TUNSETIFINDEX = 0x400454da
|
||||
|
@ -1891,13 +2100,17 @@ const (
|
|||
TUNSETPERSIST = 0x400454cb
|
||||
TUNSETQUEUE = 0x400454d9
|
||||
TUNSETSNDBUF = 0x400454d4
|
||||
TUNSETSTEERINGEBPF = 0x800454e0
|
||||
TUNSETTXFILTER = 0x400454d1
|
||||
TUNSETVNETBE = 0x400454de
|
||||
TUNSETVNETHDRSZ = 0x400454d8
|
||||
TUNSETVNETLE = 0x400454dc
|
||||
UDF_SUPER_MAGIC = 0x15013346
|
||||
UMOUNT_NOFOLLOW = 0x8
|
||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||
UTIME_NOW = 0x3fffffff
|
||||
UTIME_OMIT = 0x3ffffffe
|
||||
V9FS_MAGIC = 0x1021997
|
||||
VDISCARD = 0xd
|
||||
VEOF = 0x4
|
||||
VEOL = 0xb
|
||||
|
@ -1939,16 +2152,99 @@ const (
|
|||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||
WDIOC_SETTIMEOUT = 0xc0045706
|
||||
WEXITED = 0x4
|
||||
WIN_ACKMEDIACHANGE = 0xdb
|
||||
WIN_CHECKPOWERMODE1 = 0xe5
|
||||
WIN_CHECKPOWERMODE2 = 0x98
|
||||
WIN_DEVICE_RESET = 0x8
|
||||
WIN_DIAGNOSE = 0x90
|
||||
WIN_DOORLOCK = 0xde
|
||||
WIN_DOORUNLOCK = 0xdf
|
||||
WIN_DOWNLOAD_MICROCODE = 0x92
|
||||
WIN_FLUSH_CACHE = 0xe7
|
||||
WIN_FLUSH_CACHE_EXT = 0xea
|
||||
WIN_FORMAT = 0x50
|
||||
WIN_GETMEDIASTATUS = 0xda
|
||||
WIN_IDENTIFY = 0xec
|
||||
WIN_IDENTIFY_DMA = 0xee
|
||||
WIN_IDLEIMMEDIATE = 0xe1
|
||||
WIN_INIT = 0x60
|
||||
WIN_MEDIAEJECT = 0xed
|
||||
WIN_MULTREAD = 0xc4
|
||||
WIN_MULTREAD_EXT = 0x29
|
||||
WIN_MULTWRITE = 0xc5
|
||||
WIN_MULTWRITE_EXT = 0x39
|
||||
WIN_NOP = 0x0
|
||||
WIN_PACKETCMD = 0xa0
|
||||
WIN_PIDENTIFY = 0xa1
|
||||
WIN_POSTBOOT = 0xdc
|
||||
WIN_PREBOOT = 0xdd
|
||||
WIN_QUEUED_SERVICE = 0xa2
|
||||
WIN_READ = 0x20
|
||||
WIN_READDMA = 0xc8
|
||||
WIN_READDMA_EXT = 0x25
|
||||
WIN_READDMA_ONCE = 0xc9
|
||||
WIN_READDMA_QUEUED = 0xc7
|
||||
WIN_READDMA_QUEUED_EXT = 0x26
|
||||
WIN_READ_BUFFER = 0xe4
|
||||
WIN_READ_EXT = 0x24
|
||||
WIN_READ_LONG = 0x22
|
||||
WIN_READ_LONG_ONCE = 0x23
|
||||
WIN_READ_NATIVE_MAX = 0xf8
|
||||
WIN_READ_NATIVE_MAX_EXT = 0x27
|
||||
WIN_READ_ONCE = 0x21
|
||||
WIN_RECAL = 0x10
|
||||
WIN_RESTORE = 0x10
|
||||
WIN_SECURITY_DISABLE = 0xf6
|
||||
WIN_SECURITY_ERASE_PREPARE = 0xf3
|
||||
WIN_SECURITY_ERASE_UNIT = 0xf4
|
||||
WIN_SECURITY_FREEZE_LOCK = 0xf5
|
||||
WIN_SECURITY_SET_PASS = 0xf1
|
||||
WIN_SECURITY_UNLOCK = 0xf2
|
||||
WIN_SEEK = 0x70
|
||||
WIN_SETFEATURES = 0xef
|
||||
WIN_SETIDLE1 = 0xe3
|
||||
WIN_SETIDLE2 = 0x97
|
||||
WIN_SETMULT = 0xc6
|
||||
WIN_SET_MAX = 0xf9
|
||||
WIN_SET_MAX_EXT = 0x37
|
||||
WIN_SLEEPNOW1 = 0xe6
|
||||
WIN_SLEEPNOW2 = 0x99
|
||||
WIN_SMART = 0xb0
|
||||
WIN_SPECIFY = 0x91
|
||||
WIN_SRST = 0x8
|
||||
WIN_STANDBY = 0xe2
|
||||
WIN_STANDBY2 = 0x96
|
||||
WIN_STANDBYNOW1 = 0xe0
|
||||
WIN_STANDBYNOW2 = 0x94
|
||||
WIN_VERIFY = 0x40
|
||||
WIN_VERIFY_EXT = 0x42
|
||||
WIN_VERIFY_ONCE = 0x41
|
||||
WIN_WRITE = 0x30
|
||||
WIN_WRITEDMA = 0xca
|
||||
WIN_WRITEDMA_EXT = 0x35
|
||||
WIN_WRITEDMA_ONCE = 0xcb
|
||||
WIN_WRITEDMA_QUEUED = 0xcc
|
||||
WIN_WRITEDMA_QUEUED_EXT = 0x36
|
||||
WIN_WRITE_BUFFER = 0xe8
|
||||
WIN_WRITE_EXT = 0x34
|
||||
WIN_WRITE_LONG = 0x32
|
||||
WIN_WRITE_LONG_ONCE = 0x33
|
||||
WIN_WRITE_ONCE = 0x31
|
||||
WIN_WRITE_SAME = 0xe9
|
||||
WIN_WRITE_VERIFY = 0x3c
|
||||
WNOHANG = 0x1
|
||||
WNOTHREAD = 0x20000000
|
||||
WNOWAIT = 0x1000000
|
||||
WORDSIZE = 0x20
|
||||
WSTOPPED = 0x2
|
||||
WUNTRACED = 0x2
|
||||
X86_FXSR_MAGIC = 0x0
|
||||
XATTR_CREATE = 0x1
|
||||
XATTR_REPLACE = 0x2
|
||||
XCASE = 0x4
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XTABS = 0x1800
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
// Errors
|
||||
|
@ -2128,171 +2424,179 @@ const (
|
|||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "no such device or address",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource temporarily unavailable",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device or resource busy",
|
||||
17: "file exists",
|
||||
18: "invalid cross-device link",
|
||||
19: "no such device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "numerical result out of range",
|
||||
35: "resource deadlock avoided",
|
||||
36: "file name too long",
|
||||
37: "no locks available",
|
||||
38: "function not implemented",
|
||||
39: "directory not empty",
|
||||
40: "too many levels of symbolic links",
|
||||
42: "no message of desired type",
|
||||
43: "identifier removed",
|
||||
44: "channel number out of range",
|
||||
45: "level 2 not synchronized",
|
||||
46: "level 3 halted",
|
||||
47: "level 3 reset",
|
||||
48: "link number out of range",
|
||||
49: "protocol driver not attached",
|
||||
50: "no CSI structure available",
|
||||
51: "level 2 halted",
|
||||
52: "invalid exchange",
|
||||
53: "invalid request descriptor",
|
||||
54: "exchange full",
|
||||
55: "no anode",
|
||||
56: "invalid request code",
|
||||
57: "invalid slot",
|
||||
59: "bad font file format",
|
||||
60: "device not a stream",
|
||||
61: "no data available",
|
||||
62: "timer expired",
|
||||
63: "out of streams resources",
|
||||
64: "machine is not on the network",
|
||||
65: "package not installed",
|
||||
66: "object is remote",
|
||||
67: "link has been severed",
|
||||
68: "advertise error",
|
||||
69: "srmount error",
|
||||
70: "communication error on send",
|
||||
71: "protocol error",
|
||||
72: "multihop attempted",
|
||||
73: "RFS specific error",
|
||||
74: "bad message",
|
||||
75: "value too large for defined data type",
|
||||
76: "name not unique on network",
|
||||
77: "file descriptor in bad state",
|
||||
78: "remote address changed",
|
||||
79: "can not access a needed shared library",
|
||||
80: "accessing a corrupted shared library",
|
||||
81: ".lib section in a.out corrupted",
|
||||
82: "attempting to link in too many shared libraries",
|
||||
83: "cannot exec a shared library directly",
|
||||
84: "invalid or incomplete multibyte or wide character",
|
||||
85: "interrupted system call should be restarted",
|
||||
86: "streams pipe error",
|
||||
87: "too many users",
|
||||
88: "socket operation on non-socket",
|
||||
89: "destination address required",
|
||||
90: "message too long",
|
||||
91: "protocol wrong type for socket",
|
||||
92: "protocol not available",
|
||||
93: "protocol not supported",
|
||||
94: "socket type not supported",
|
||||
95: "operation not supported",
|
||||
96: "protocol family not supported",
|
||||
97: "address family not supported by protocol",
|
||||
98: "address already in use",
|
||||
99: "cannot assign requested address",
|
||||
100: "network is down",
|
||||
101: "network is unreachable",
|
||||
102: "network dropped connection on reset",
|
||||
103: "software caused connection abort",
|
||||
104: "connection reset by peer",
|
||||
105: "no buffer space available",
|
||||
106: "transport endpoint is already connected",
|
||||
107: "transport endpoint is not connected",
|
||||
108: "cannot send after transport endpoint shutdown",
|
||||
109: "too many references: cannot splice",
|
||||
110: "connection timed out",
|
||||
111: "connection refused",
|
||||
112: "host is down",
|
||||
113: "no route to host",
|
||||
114: "operation already in progress",
|
||||
115: "operation now in progress",
|
||||
116: "stale file handle",
|
||||
117: "structure needs cleaning",
|
||||
118: "not a XENIX named type file",
|
||||
119: "no XENIX semaphores available",
|
||||
120: "is a named type file",
|
||||
121: "remote I/O error",
|
||||
122: "disk quota exceeded",
|
||||
123: "no medium found",
|
||||
124: "wrong medium type",
|
||||
125: "operation canceled",
|
||||
126: "required key not available",
|
||||
127: "key has expired",
|
||||
128: "key has been revoked",
|
||||
129: "key was rejected by service",
|
||||
130: "owner died",
|
||||
131: "state not recoverable",
|
||||
132: "operation not possible due to RF-kill",
|
||||
133: "memory page has hardware error",
|
||||
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"},
|
||||
{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 signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/breakpoint trap",
|
||||
6: "aborted",
|
||||
7: "bus error",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "user defined signal 1",
|
||||
11: "segmentation fault",
|
||||
12: "user defined signal 2",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "stack fault",
|
||||
17: "child exited",
|
||||
18: "continued",
|
||||
19: "stopped (signal)",
|
||||
20: "stopped",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "urgent I/O condition",
|
||||
24: "CPU time limit exceeded",
|
||||
25: "file size limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window changed",
|
||||
29: "I/O possible",
|
||||
30: "power failure",
|
||||
31: "bad system call",
|
||||
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"},
|
||||
}
|
||||
|
|
633
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
633
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
|
@ -3,7 +3,7 @@
|
|||
|
||||
// +build amd64,linux
|
||||
|
||||
// Created by cgo -godefs - DO NOT EDIT
|
||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m64 _const.go
|
||||
|
||||
package unix
|
||||
|
@ -11,6 +11,11 @@ package unix
|
|||
import "syscall"
|
||||
|
||||
const (
|
||||
AAFS_MAGIC = 0x5a3c69f0
|
||||
ADFS_SUPER_MAGIC = 0xadf5
|
||||
AFFS_SUPER_MAGIC = 0xadff
|
||||
AFS_FS_MAGIC = 0x6b414653
|
||||
AFS_SUPER_MAGIC = 0x5346414f
|
||||
AF_ALG = 0x26
|
||||
AF_APPLETALK = 0x5
|
||||
AF_ASH = 0x12
|
||||
|
@ -66,6 +71,7 @@ const (
|
|||
ALG_SET_IV = 0x2
|
||||
ALG_SET_KEY = 0x1
|
||||
ALG_SET_OP = 0x3
|
||||
ANON_INODE_FS_MAGIC = 0x9041934
|
||||
ARPHRD_6LOWPAN = 0x339
|
||||
ARPHRD_ADAPT = 0x108
|
||||
ARPHRD_APPLETLK = 0x8
|
||||
|
@ -133,6 +139,7 @@ const (
|
|||
ARPHRD_VOID = 0xffff
|
||||
ARPHRD_VSOCKMON = 0x33a
|
||||
ARPHRD_X25 = 0x10f
|
||||
AUTOFS_SUPER_MAGIC = 0x187
|
||||
B0 = 0x0
|
||||
B1000000 = 0x1008
|
||||
B110 = 0x3
|
||||
|
@ -164,6 +171,9 @@ const (
|
|||
B75 = 0x2
|
||||
B921600 = 0x1007
|
||||
B9600 = 0xd
|
||||
BALLOON_KVM_MAGIC = 0x13661366
|
||||
BDEVFS_MAGIC = 0x62646576
|
||||
BINFMTFS_MAGIC = 0x42494e4d
|
||||
BLKBSZGET = 0x80081270
|
||||
BLKBSZSET = 0x40081271
|
||||
BLKFLSBUF = 0x1261
|
||||
|
@ -188,6 +198,7 @@ const (
|
|||
BPF_AND = 0x50
|
||||
BPF_B = 0x10
|
||||
BPF_DIV = 0x30
|
||||
BPF_FS_MAGIC = 0xcafe4a11
|
||||
BPF_H = 0x8
|
||||
BPF_IMM = 0x0
|
||||
BPF_IND = 0x40
|
||||
|
@ -229,6 +240,8 @@ const (
|
|||
BS0 = 0x0
|
||||
BS1 = 0x2000
|
||||
BSDLY = 0x2000
|
||||
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||
BTRFS_TEST_MAGIC = 0x73727279
|
||||
CAN_BCM = 0x2
|
||||
CAN_EFF_FLAG = 0x80000000
|
||||
CAN_EFF_ID_BITS = 0x1d
|
||||
|
@ -252,6 +265,8 @@ const (
|
|||
CBAUD = 0x100f
|
||||
CBAUDEX = 0x1000
|
||||
CFLUSH = 0xf
|
||||
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||
CIBAUD = 0x100f0000
|
||||
CLOCAL = 0x800
|
||||
CLOCK_BOOTTIME = 0x7
|
||||
|
@ -294,10 +309,12 @@ const (
|
|||
CLONE_VFORK = 0x4000
|
||||
CLONE_VM = 0x100
|
||||
CMSPAR = 0x40000000
|
||||
CODA_SUPER_MAGIC = 0x73757245
|
||||
CR0 = 0x0
|
||||
CR1 = 0x200
|
||||
CR2 = 0x400
|
||||
CR3 = 0x600
|
||||
CRAMFS_MAGIC = 0x28cd3d45
|
||||
CRDLY = 0x600
|
||||
CREAD = 0x80
|
||||
CRTSCTS = 0x80000000
|
||||
|
@ -312,6 +329,9 @@ const (
|
|||
CSTOP = 0x13
|
||||
CSTOPB = 0x40
|
||||
CSUSP = 0x1a
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
|
@ -328,9 +348,12 @@ const (
|
|||
ECHOKE = 0x800
|
||||
ECHONL = 0x40
|
||||
ECHOPRT = 0x400
|
||||
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||
EFD_CLOEXEC = 0x80000
|
||||
EFD_NONBLOCK = 0x800
|
||||
EFD_SEMAPHORE = 0x1
|
||||
EFIVARFS_MAGIC = 0xde5e81e4
|
||||
EFS_SUPER_MAGIC = 0x414a53
|
||||
ENCODING_DEFAULT = 0x0
|
||||
ENCODING_FM_MARK = 0x3
|
||||
ENCODING_FM_SPACE = 0x4
|
||||
|
@ -392,6 +415,7 @@ const (
|
|||
ETH_P_ECONET = 0x18
|
||||
ETH_P_EDSA = 0xdada
|
||||
ETH_P_ERSPAN = 0x88be
|
||||
ETH_P_ERSPAN2 = 0x22eb
|
||||
ETH_P_FCOE = 0x8906
|
||||
ETH_P_FIP = 0x8914
|
||||
ETH_P_HDLC = 0x19
|
||||
|
@ -425,6 +449,7 @@ const (
|
|||
ETH_P_PPP_DISC = 0x8863
|
||||
ETH_P_PPP_MP = 0x8
|
||||
ETH_P_PPP_SES = 0x8864
|
||||
ETH_P_PREAUTH = 0x88c7
|
||||
ETH_P_PRP = 0x88fb
|
||||
ETH_P_PUP = 0x200
|
||||
ETH_P_PUPAT = 0x201
|
||||
|
@ -445,9 +470,14 @@ const (
|
|||
ETH_P_WCCP = 0x883e
|
||||
ETH_P_X25 = 0x805
|
||||
ETH_P_XDSA = 0xf8
|
||||
EXABYTE_ENABLE_NEST = 0xf0
|
||||
EXT2_SUPER_MAGIC = 0xef53
|
||||
EXT3_SUPER_MAGIC = 0xef53
|
||||
EXT4_SUPER_MAGIC = 0xef53
|
||||
EXTA = 0xe
|
||||
EXTB = 0xf
|
||||
EXTPROC = 0x10000
|
||||
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||
FALLOC_FL_INSERT_RANGE = 0x20
|
||||
FALLOC_FL_KEEP_SIZE = 0x1
|
||||
|
@ -461,6 +491,7 @@ const (
|
|||
FF1 = 0x8000
|
||||
FFDLY = 0x8000
|
||||
FLUSHO = 0x1000
|
||||
FP_XSTATE_MAGIC2 = 0x46505845
|
||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||
|
@ -481,6 +512,7 @@ const (
|
|||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||
FS_POLICY_FLAGS_VALID = 0x3
|
||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||
F_ADD_SEALS = 0x409
|
||||
F_DUPFD = 0x0
|
||||
F_DUPFD_CLOEXEC = 0x406
|
||||
|
@ -542,6 +574,49 @@ const (
|
|||
GENL_UNS_ADMIN_PERM = 0x10
|
||||
GRND_NONBLOCK = 0x1
|
||||
GRND_RANDOM = 0x2
|
||||
HDIO_DRIVE_CMD = 0x31f
|
||||
HDIO_DRIVE_CMD_AEB = 0x31e
|
||||
HDIO_DRIVE_CMD_HDR_SIZE = 0x4
|
||||
HDIO_DRIVE_HOB_HDR_SIZE = 0x8
|
||||
HDIO_DRIVE_RESET = 0x31c
|
||||
HDIO_DRIVE_TASK = 0x31e
|
||||
HDIO_DRIVE_TASKFILE = 0x31d
|
||||
HDIO_DRIVE_TASK_HDR_SIZE = 0x8
|
||||
HDIO_GETGEO = 0x301
|
||||
HDIO_GET_32BIT = 0x309
|
||||
HDIO_GET_ACOUSTIC = 0x30f
|
||||
HDIO_GET_ADDRESS = 0x310
|
||||
HDIO_GET_BUSSTATE = 0x31a
|
||||
HDIO_GET_DMA = 0x30b
|
||||
HDIO_GET_IDENTITY = 0x30d
|
||||
HDIO_GET_KEEPSETTINGS = 0x308
|
||||
HDIO_GET_MULTCOUNT = 0x304
|
||||
HDIO_GET_NICE = 0x30c
|
||||
HDIO_GET_NOWERR = 0x30a
|
||||
HDIO_GET_QDMA = 0x305
|
||||
HDIO_GET_UNMASKINTR = 0x302
|
||||
HDIO_GET_WCACHE = 0x30e
|
||||
HDIO_OBSOLETE_IDENTITY = 0x307
|
||||
HDIO_SCAN_HWIF = 0x328
|
||||
HDIO_SET_32BIT = 0x324
|
||||
HDIO_SET_ACOUSTIC = 0x32c
|
||||
HDIO_SET_ADDRESS = 0x32f
|
||||
HDIO_SET_BUSSTATE = 0x32d
|
||||
HDIO_SET_DMA = 0x326
|
||||
HDIO_SET_KEEPSETTINGS = 0x323
|
||||
HDIO_SET_MULTCOUNT = 0x321
|
||||
HDIO_SET_NICE = 0x329
|
||||
HDIO_SET_NOWERR = 0x325
|
||||
HDIO_SET_PIO_MODE = 0x327
|
||||
HDIO_SET_QDMA = 0x32e
|
||||
HDIO_SET_UNMASKINTR = 0x322
|
||||
HDIO_SET_WCACHE = 0x32b
|
||||
HDIO_SET_XFER = 0x306
|
||||
HDIO_TRISTATE_HWIF = 0x31b
|
||||
HDIO_UNREGISTER_HWIF = 0x32a
|
||||
HOSTFS_SUPER_MAGIC = 0xc0ffee
|
||||
HPFS_SUPER_MAGIC = 0xf995e849
|
||||
HUGETLBFS_MAGIC = 0x958458f6
|
||||
HUPCL = 0x400
|
||||
IBSHIFT = 0x10
|
||||
ICANON = 0x2
|
||||
|
@ -792,12 +867,14 @@ const (
|
|||
IP_UNICAST_IF = 0x32
|
||||
IP_XFRM_POLICY = 0x11
|
||||
ISIG = 0x1
|
||||
ISOFS_SUPER_MAGIC = 0x9660
|
||||
ISTRIP = 0x20
|
||||
IUCLC = 0x200
|
||||
IUTF8 = 0x4000
|
||||
IXANY = 0x800
|
||||
IXOFF = 0x1000
|
||||
IXON = 0x400
|
||||
JFFS2_SUPER_MAGIC = 0x72b6
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
|
@ -894,9 +971,15 @@ const (
|
|||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
MCL_ONFAULT = 0x4
|
||||
MINIX2_SUPER_MAGIC = 0x2468
|
||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||
MINIX_SUPER_MAGIC = 0x137f
|
||||
MINIX_SUPER_MAGIC2 = 0x138f
|
||||
MNT_DETACH = 0x2
|
||||
MNT_EXPIRE = 0x4
|
||||
MNT_FORCE = 0x1
|
||||
MSDOS_SUPER_MAGIC = 0x4d44
|
||||
MSG_BATCH = 0x40000
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
MSG_CONFIRM = 0x800
|
||||
|
@ -956,7 +1039,9 @@ const (
|
|||
MS_SYNCHRONOUS = 0x10
|
||||
MS_UNBINDABLE = 0x20000
|
||||
MS_VERBOSE = 0x8000
|
||||
MTD_INODE_FS_MAGIC = 0x11307854
|
||||
NAME_MAX = 0xff
|
||||
NCP_SUPER_MAGIC = 0x564c
|
||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||
NETLINK_AUDIT = 0x9
|
||||
NETLINK_BROADCAST_ERROR = 0x4
|
||||
|
@ -991,6 +1076,37 @@ const (
|
|||
NETLINK_UNUSED = 0x1
|
||||
NETLINK_USERSOCK = 0x2
|
||||
NETLINK_XFRM = 0x6
|
||||
NFNETLINK_V0 = 0x0
|
||||
NFNLGRP_ACCT_QUOTA = 0x8
|
||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||
NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
|
||||
NFNLGRP_CONNTRACK_EXP_NEW = 0x4
|
||||
NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
|
||||
NFNLGRP_CONNTRACK_NEW = 0x1
|
||||
NFNLGRP_CONNTRACK_UPDATE = 0x2
|
||||
NFNLGRP_MAX = 0x9
|
||||
NFNLGRP_NFTABLES = 0x7
|
||||
NFNLGRP_NFTRACE = 0x9
|
||||
NFNLGRP_NONE = 0x0
|
||||
NFNL_BATCH_MAX = 0x1
|
||||
NFNL_MSG_BATCH_BEGIN = 0x10
|
||||
NFNL_MSG_BATCH_END = 0x11
|
||||
NFNL_NFA_NEST = 0x8000
|
||||
NFNL_SUBSYS_ACCT = 0x7
|
||||
NFNL_SUBSYS_COUNT = 0xc
|
||||
NFNL_SUBSYS_CTHELPER = 0x9
|
||||
NFNL_SUBSYS_CTNETLINK = 0x1
|
||||
NFNL_SUBSYS_CTNETLINK_EXP = 0x2
|
||||
NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
|
||||
NFNL_SUBSYS_IPSET = 0x6
|
||||
NFNL_SUBSYS_NFTABLES = 0xa
|
||||
NFNL_SUBSYS_NFT_COMPAT = 0xb
|
||||
NFNL_SUBSYS_NONE = 0x0
|
||||
NFNL_SUBSYS_OSF = 0x5
|
||||
NFNL_SUBSYS_QUEUE = 0x3
|
||||
NFNL_SUBSYS_ULOG = 0x4
|
||||
NFS_SUPER_MAGIC = 0x6969
|
||||
NILFS_SUPER_MAGIC = 0x3434
|
||||
NL0 = 0x0
|
||||
NL1 = 0x100
|
||||
NLA_ALIGNTO = 0x4
|
||||
|
@ -1023,6 +1139,8 @@ const (
|
|||
NLM_F_REQUEST = 0x1
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
OFILL = 0x40
|
||||
|
@ -1030,7 +1148,9 @@ const (
|
|||
ONLCR = 0x4
|
||||
ONLRET = 0x20
|
||||
ONOCR = 0x10
|
||||
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||
OPOST = 0x1
|
||||
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||
O_ACCMODE = 0x3
|
||||
O_APPEND = 0x400
|
||||
O_ASYNC = 0x2000
|
||||
|
@ -1115,16 +1235,20 @@ const (
|
|||
PERF_EVENT_IOC_DISABLE = 0x2401
|
||||
PERF_EVENT_IOC_ENABLE = 0x2400
|
||||
PERF_EVENT_IOC_ID = 0x80082407
|
||||
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b
|
||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
|
||||
PERF_EVENT_IOC_PERIOD = 0x40082404
|
||||
PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
|
||||
PERF_EVENT_IOC_REFRESH = 0x2402
|
||||
PERF_EVENT_IOC_RESET = 0x2403
|
||||
PERF_EVENT_IOC_SET_BPF = 0x40042408
|
||||
PERF_EVENT_IOC_SET_FILTER = 0x40082406
|
||||
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||
PIPEFS_MAGIC = 0x50495045
|
||||
PRIO_PGRP = 0x1
|
||||
PRIO_PROCESS = 0x0
|
||||
PRIO_USER = 0x2
|
||||
PROC_SUPER_MAGIC = 0x9fa0
|
||||
PROT_EXEC = 0x4
|
||||
PROT_GROWSDOWN = 0x1000000
|
||||
PROT_GROWSUP = 0x2000000
|
||||
|
@ -1167,6 +1291,7 @@ const (
|
|||
PR_GET_PDEATHSIG = 0x2
|
||||
PR_GET_SECCOMP = 0x15
|
||||
PR_GET_SECUREBITS = 0x1b
|
||||
PR_GET_SPECULATION_CTRL = 0x34
|
||||
PR_GET_THP_DISABLE = 0x2a
|
||||
PR_GET_TID_ADDRESS = 0x28
|
||||
PR_GET_TIMERSLACK = 0x1e
|
||||
|
@ -1212,11 +1337,18 @@ const (
|
|||
PR_SET_PTRACER_ANY = 0xffffffffffffffff
|
||||
PR_SET_SECCOMP = 0x16
|
||||
PR_SET_SECUREBITS = 0x1c
|
||||
PR_SET_SPECULATION_CTRL = 0x35
|
||||
PR_SET_THP_DISABLE = 0x29
|
||||
PR_SET_TIMERSLACK = 0x1d
|
||||
PR_SET_TIMING = 0xe
|
||||
PR_SET_TSC = 0x1a
|
||||
PR_SET_UNALIGN = 0x6
|
||||
PR_SPEC_DISABLE = 0x4
|
||||
PR_SPEC_ENABLE = 0x2
|
||||
PR_SPEC_FORCE_DISABLE = 0x8
|
||||
PR_SPEC_NOT_AFFECTED = 0x0
|
||||
PR_SPEC_PRCTL = 0x1
|
||||
PR_SPEC_STORE_BYPASS = 0x0
|
||||
PR_SVE_GET_VL = 0x33
|
||||
PR_SVE_SET_VL = 0x32
|
||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||
|
@ -1230,6 +1362,7 @@ const (
|
|||
PR_TSC_SIGSEGV = 0x2
|
||||
PR_UNALIGN_NOPRINT = 0x1
|
||||
PR_UNALIGN_SIGBUS = 0x2
|
||||
PSTOREFS_MAGIC = 0x6165676c
|
||||
PTRACE_ARCH_PRCTL = 0x1e
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
|
@ -1274,6 +1407,7 @@ const (
|
|||
PTRACE_POKETEXT = 0x4
|
||||
PTRACE_POKEUSR = 0x6
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||
PTRACE_SEIZE = 0x4206
|
||||
PTRACE_SETFPREGS = 0xf
|
||||
PTRACE_SETFPXREGS = 0x13
|
||||
|
@ -1289,6 +1423,11 @@ const (
|
|||
PTRACE_SYSEMU = 0x1f
|
||||
PTRACE_SYSEMU_SINGLESTEP = 0x20
|
||||
PTRACE_TRACEME = 0x0
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
RAMFS_MAGIC = 0x858458f6
|
||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||
REISERFS_SUPER_MAGIC = 0x52654973
|
||||
RLIMIT_AS = 0x9
|
||||
RLIMIT_CORE = 0x4
|
||||
RLIMIT_CPU = 0x0
|
||||
|
@ -1338,6 +1477,33 @@ const (
|
|||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTC_AF = 0x20
|
||||
RTC_AIE_OFF = 0x7002
|
||||
RTC_AIE_ON = 0x7001
|
||||
RTC_ALM_READ = 0x80247008
|
||||
RTC_ALM_SET = 0x40247007
|
||||
RTC_EPOCH_READ = 0x8008700d
|
||||
RTC_EPOCH_SET = 0x4008700e
|
||||
RTC_IRQF = 0x80
|
||||
RTC_IRQP_READ = 0x8008700b
|
||||
RTC_IRQP_SET = 0x4008700c
|
||||
RTC_MAX_FREQ = 0x2000
|
||||
RTC_PF = 0x40
|
||||
RTC_PIE_OFF = 0x7006
|
||||
RTC_PIE_ON = 0x7005
|
||||
RTC_PLL_GET = 0x80207011
|
||||
RTC_PLL_SET = 0x40207012
|
||||
RTC_RD_TIME = 0x80247009
|
||||
RTC_SET_TIME = 0x4024700a
|
||||
RTC_UF = 0x10
|
||||
RTC_UIE_OFF = 0x7004
|
||||
RTC_UIE_ON = 0x7003
|
||||
RTC_VL_CLR = 0x7014
|
||||
RTC_VL_READ = 0x80047013
|
||||
RTC_WIE_OFF = 0x7010
|
||||
RTC_WIE_ON = 0x700f
|
||||
RTC_WKALM_RD = 0x80287010
|
||||
RTC_WKALM_SET = 0x4028700f
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
|
@ -1474,6 +1640,8 @@ const (
|
|||
SECCOMP_MODE_DISABLED = 0x0
|
||||
SECCOMP_MODE_FILTER = 0x2
|
||||
SECCOMP_MODE_STRICT = 0x1
|
||||
SECURITYFS_MAGIC = 0x73636673
|
||||
SELINUX_MAGIC = 0xf97cff8c
|
||||
SHUT_RD = 0x0
|
||||
SHUT_RDWR = 0x2
|
||||
SHUT_WR = 0x1
|
||||
|
@ -1558,6 +1726,23 @@ const (
|
|||
SIOCSPGRP = 0x8902
|
||||
SIOCSRARP = 0x8962
|
||||
SIOCWANDEV = 0x894a
|
||||
SMACK_MAGIC = 0x43415d53
|
||||
SMART_AUTOSAVE = 0xd2
|
||||
SMART_AUTO_OFFLINE = 0xdb
|
||||
SMART_DISABLE = 0xd9
|
||||
SMART_ENABLE = 0xd8
|
||||
SMART_HCYL_PASS = 0xc2
|
||||
SMART_IMMEDIATE_OFFLINE = 0xd4
|
||||
SMART_LCYL_PASS = 0x4f
|
||||
SMART_READ_LOG_SECTOR = 0xd5
|
||||
SMART_READ_THRESHOLDS = 0xd1
|
||||
SMART_READ_VALUES = 0xd0
|
||||
SMART_SAVE = 0xd3
|
||||
SMART_STATUS = 0xda
|
||||
SMART_WRITE_LOG_SECTOR = 0xd6
|
||||
SMART_WRITE_THRESHOLDS = 0xd7
|
||||
SMB_SUPER_MAGIC = 0x517b
|
||||
SOCKFS_MAGIC = 0x534f434b
|
||||
SOCK_CLOEXEC = 0x80000
|
||||
SOCK_DCCP = 0x6
|
||||
SOCK_DGRAM = 0x2
|
||||
|
@ -1668,6 +1853,8 @@ const (
|
|||
SPLICE_F_MORE = 0x4
|
||||
SPLICE_F_MOVE = 0x1
|
||||
SPLICE_F_NONBLOCK = 0x2
|
||||
SQUASHFS_MAGIC = 0x73717368
|
||||
STACK_END_MAGIC = 0x57ac6e9d
|
||||
STATX_ALL = 0xfff
|
||||
STATX_ATIME = 0x20
|
||||
STATX_ATTR_APPEND = 0x20
|
||||
|
@ -1689,6 +1876,7 @@ const (
|
|||
STATX_TYPE = 0x1
|
||||
STATX_UID = 0x8
|
||||
STATX__RESERVED = 0x80000000
|
||||
SYSFS_MAGIC = 0x62656572
|
||||
S_BLKSIZE = 0x200
|
||||
S_IEXEC = 0x40
|
||||
S_IFBLK = 0x6000
|
||||
|
@ -1870,7 +2058,27 @@ const (
|
|||
TIOCSTI = 0x5412
|
||||
TIOCSWINSZ = 0x5414
|
||||
TIOCVHANGUP = 0x5437
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x100
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
TPACKET_HDRLEN = 0x34
|
||||
TP_STATUS_AVAILABLE = 0x0
|
||||
TP_STATUS_BLK_TMO = 0x20
|
||||
TP_STATUS_COPY = 0x2
|
||||
TP_STATUS_CSUMNOTREADY = 0x8
|
||||
TP_STATUS_CSUM_VALID = 0x80
|
||||
TP_STATUS_KERNEL = 0x0
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
TP_STATUS_VLAN_TPID_VALID = 0x40
|
||||
TP_STATUS_VLAN_VALID = 0x10
|
||||
TP_STATUS_WRONG_FORMAT = 0x4
|
||||
TRACEFS_MAGIC = 0x74726163
|
||||
TS_COMM_LEN = 0x20
|
||||
TUNATTACHFILTER = 0x401054d5
|
||||
TUNDETACHFILTER = 0x401054d6
|
||||
|
@ -1882,6 +2090,7 @@ const (
|
|||
TUNGETVNETHDRSZ = 0x800454d7
|
||||
TUNGETVNETLE = 0x800454dd
|
||||
TUNSETDEBUG = 0x400454c9
|
||||
TUNSETFILTEREBPF = 0x800454e1
|
||||
TUNSETGROUP = 0x400454ce
|
||||
TUNSETIFF = 0x400454ca
|
||||
TUNSETIFINDEX = 0x400454da
|
||||
|
@ -1892,13 +2101,17 @@ const (
|
|||
TUNSETPERSIST = 0x400454cb
|
||||
TUNSETQUEUE = 0x400454d9
|
||||
TUNSETSNDBUF = 0x400454d4
|
||||
TUNSETSTEERINGEBPF = 0x800454e0
|
||||
TUNSETTXFILTER = 0x400454d1
|
||||
TUNSETVNETBE = 0x400454de
|
||||
TUNSETVNETHDRSZ = 0x400454d8
|
||||
TUNSETVNETLE = 0x400454dc
|
||||
UDF_SUPER_MAGIC = 0x15013346
|
||||
UMOUNT_NOFOLLOW = 0x8
|
||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||
UTIME_NOW = 0x3fffffff
|
||||
UTIME_OMIT = 0x3ffffffe
|
||||
V9FS_MAGIC = 0x1021997
|
||||
VDISCARD = 0xd
|
||||
VEOF = 0x4
|
||||
VEOL = 0xb
|
||||
|
@ -1940,6 +2153,86 @@ const (
|
|||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||
WDIOC_SETTIMEOUT = 0xc0045706
|
||||
WEXITED = 0x4
|
||||
WIN_ACKMEDIACHANGE = 0xdb
|
||||
WIN_CHECKPOWERMODE1 = 0xe5
|
||||
WIN_CHECKPOWERMODE2 = 0x98
|
||||
WIN_DEVICE_RESET = 0x8
|
||||
WIN_DIAGNOSE = 0x90
|
||||
WIN_DOORLOCK = 0xde
|
||||
WIN_DOORUNLOCK = 0xdf
|
||||
WIN_DOWNLOAD_MICROCODE = 0x92
|
||||
WIN_FLUSH_CACHE = 0xe7
|
||||
WIN_FLUSH_CACHE_EXT = 0xea
|
||||
WIN_FORMAT = 0x50
|
||||
WIN_GETMEDIASTATUS = 0xda
|
||||
WIN_IDENTIFY = 0xec
|
||||
WIN_IDENTIFY_DMA = 0xee
|
||||
WIN_IDLEIMMEDIATE = 0xe1
|
||||
WIN_INIT = 0x60
|
||||
WIN_MEDIAEJECT = 0xed
|
||||
WIN_MULTREAD = 0xc4
|
||||
WIN_MULTREAD_EXT = 0x29
|
||||
WIN_MULTWRITE = 0xc5
|
||||
WIN_MULTWRITE_EXT = 0x39
|
||||
WIN_NOP = 0x0
|
||||
WIN_PACKETCMD = 0xa0
|
||||
WIN_PIDENTIFY = 0xa1
|
||||
WIN_POSTBOOT = 0xdc
|
||||
WIN_PREBOOT = 0xdd
|
||||
WIN_QUEUED_SERVICE = 0xa2
|
||||
WIN_READ = 0x20
|
||||
WIN_READDMA = 0xc8
|
||||
WIN_READDMA_EXT = 0x25
|
||||
WIN_READDMA_ONCE = 0xc9
|
||||
WIN_READDMA_QUEUED = 0xc7
|
||||
WIN_READDMA_QUEUED_EXT = 0x26
|
||||
WIN_READ_BUFFER = 0xe4
|
||||
WIN_READ_EXT = 0x24
|
||||
WIN_READ_LONG = 0x22
|
||||
WIN_READ_LONG_ONCE = 0x23
|
||||
WIN_READ_NATIVE_MAX = 0xf8
|
||||
WIN_READ_NATIVE_MAX_EXT = 0x27
|
||||
WIN_READ_ONCE = 0x21
|
||||
WIN_RECAL = 0x10
|
||||
WIN_RESTORE = 0x10
|
||||
WIN_SECURITY_DISABLE = 0xf6
|
||||
WIN_SECURITY_ERASE_PREPARE = 0xf3
|
||||
WIN_SECURITY_ERASE_UNIT = 0xf4
|
||||
WIN_SECURITY_FREEZE_LOCK = 0xf5
|
||||
WIN_SECURITY_SET_PASS = 0xf1
|
||||
WIN_SECURITY_UNLOCK = 0xf2
|
||||
WIN_SEEK = 0x70
|
||||
WIN_SETFEATURES = 0xef
|
||||
WIN_SETIDLE1 = 0xe3
|
||||
WIN_SETIDLE2 = 0x97
|
||||
WIN_SETMULT = 0xc6
|
||||
WIN_SET_MAX = 0xf9
|
||||
WIN_SET_MAX_EXT = 0x37
|
||||
WIN_SLEEPNOW1 = 0xe6
|
||||
WIN_SLEEPNOW2 = 0x99
|
||||
WIN_SMART = 0xb0
|
||||
WIN_SPECIFY = 0x91
|
||||
WIN_SRST = 0x8
|
||||
WIN_STANDBY = 0xe2
|
||||
WIN_STANDBY2 = 0x96
|
||||
WIN_STANDBYNOW1 = 0xe0
|
||||
WIN_STANDBYNOW2 = 0x94
|
||||
WIN_VERIFY = 0x40
|
||||
WIN_VERIFY_EXT = 0x42
|
||||
WIN_VERIFY_ONCE = 0x41
|
||||
WIN_WRITE = 0x30
|
||||
WIN_WRITEDMA = 0xca
|
||||
WIN_WRITEDMA_EXT = 0x35
|
||||
WIN_WRITEDMA_ONCE = 0xcb
|
||||
WIN_WRITEDMA_QUEUED = 0xcc
|
||||
WIN_WRITEDMA_QUEUED_EXT = 0x36
|
||||
WIN_WRITE_BUFFER = 0xe8
|
||||
WIN_WRITE_EXT = 0x34
|
||||
WIN_WRITE_LONG = 0x32
|
||||
WIN_WRITE_LONG_ONCE = 0x33
|
||||
WIN_WRITE_ONCE = 0x31
|
||||
WIN_WRITE_SAME = 0xe9
|
||||
WIN_WRITE_VERIFY = 0x3c
|
||||
WNOHANG = 0x1
|
||||
WNOTHREAD = 0x20000000
|
||||
WNOWAIT = 0x1000000
|
||||
|
@ -1949,7 +2242,9 @@ const (
|
|||
XATTR_CREATE = 0x1
|
||||
XATTR_REPLACE = 0x2
|
||||
XCASE = 0x4
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XTABS = 0x1800
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
// Errors
|
||||
|
@ -2129,171 +2424,179 @@ const (
|
|||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "no such device or address",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource temporarily unavailable",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device or resource busy",
|
||||
17: "file exists",
|
||||
18: "invalid cross-device link",
|
||||
19: "no such device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "numerical result out of range",
|
||||
35: "resource deadlock avoided",
|
||||
36: "file name too long",
|
||||
37: "no locks available",
|
||||
38: "function not implemented",
|
||||
39: "directory not empty",
|
||||
40: "too many levels of symbolic links",
|
||||
42: "no message of desired type",
|
||||
43: "identifier removed",
|
||||
44: "channel number out of range",
|
||||
45: "level 2 not synchronized",
|
||||
46: "level 3 halted",
|
||||
47: "level 3 reset",
|
||||
48: "link number out of range",
|
||||
49: "protocol driver not attached",
|
||||
50: "no CSI structure available",
|
||||
51: "level 2 halted",
|
||||
52: "invalid exchange",
|
||||
53: "invalid request descriptor",
|
||||
54: "exchange full",
|
||||
55: "no anode",
|
||||
56: "invalid request code",
|
||||
57: "invalid slot",
|
||||
59: "bad font file format",
|
||||
60: "device not a stream",
|
||||
61: "no data available",
|
||||
62: "timer expired",
|
||||
63: "out of streams resources",
|
||||
64: "machine is not on the network",
|
||||
65: "package not installed",
|
||||
66: "object is remote",
|
||||
67: "link has been severed",
|
||||
68: "advertise error",
|
||||
69: "srmount error",
|
||||
70: "communication error on send",
|
||||
71: "protocol error",
|
||||
72: "multihop attempted",
|
||||
73: "RFS specific error",
|
||||
74: "bad message",
|
||||
75: "value too large for defined data type",
|
||||
76: "name not unique on network",
|
||||
77: "file descriptor in bad state",
|
||||
78: "remote address changed",
|
||||
79: "can not access a needed shared library",
|
||||
80: "accessing a corrupted shared library",
|
||||
81: ".lib section in a.out corrupted",
|
||||
82: "attempting to link in too many shared libraries",
|
||||
83: "cannot exec a shared library directly",
|
||||
84: "invalid or incomplete multibyte or wide character",
|
||||
85: "interrupted system call should be restarted",
|
||||
86: "streams pipe error",
|
||||
87: "too many users",
|
||||
88: "socket operation on non-socket",
|
||||
89: "destination address required",
|
||||
90: "message too long",
|
||||
91: "protocol wrong type for socket",
|
||||
92: "protocol not available",
|
||||
93: "protocol not supported",
|
||||
94: "socket type not supported",
|
||||
95: "operation not supported",
|
||||
96: "protocol family not supported",
|
||||
97: "address family not supported by protocol",
|
||||
98: "address already in use",
|
||||
99: "cannot assign requested address",
|
||||
100: "network is down",
|
||||
101: "network is unreachable",
|
||||
102: "network dropped connection on reset",
|
||||
103: "software caused connection abort",
|
||||
104: "connection reset by peer",
|
||||
105: "no buffer space available",
|
||||
106: "transport endpoint is already connected",
|
||||
107: "transport endpoint is not connected",
|
||||
108: "cannot send after transport endpoint shutdown",
|
||||
109: "too many references: cannot splice",
|
||||
110: "connection timed out",
|
||||
111: "connection refused",
|
||||
112: "host is down",
|
||||
113: "no route to host",
|
||||
114: "operation already in progress",
|
||||
115: "operation now in progress",
|
||||
116: "stale file handle",
|
||||
117: "structure needs cleaning",
|
||||
118: "not a XENIX named type file",
|
||||
119: "no XENIX semaphores available",
|
||||
120: "is a named type file",
|
||||
121: "remote I/O error",
|
||||
122: "disk quota exceeded",
|
||||
123: "no medium found",
|
||||
124: "wrong medium type",
|
||||
125: "operation canceled",
|
||||
126: "required key not available",
|
||||
127: "key has expired",
|
||||
128: "key has been revoked",
|
||||
129: "key was rejected by service",
|
||||
130: "owner died",
|
||||
131: "state not recoverable",
|
||||
132: "operation not possible due to RF-kill",
|
||||
133: "memory page has hardware error",
|
||||
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"},
|
||||
{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 signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/breakpoint trap",
|
||||
6: "aborted",
|
||||
7: "bus error",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "user defined signal 1",
|
||||
11: "segmentation fault",
|
||||
12: "user defined signal 2",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "stack fault",
|
||||
17: "child exited",
|
||||
18: "continued",
|
||||
19: "stopped (signal)",
|
||||
20: "stopped",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "urgent I/O condition",
|
||||
24: "CPU time limit exceeded",
|
||||
25: "file size limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window changed",
|
||||
29: "I/O possible",
|
||||
30: "power failure",
|
||||
31: "bad system call",
|
||||
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"},
|
||||
}
|
||||
|
|
632
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
632
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
|
@ -3,7 +3,7 @@
|
|||
|
||||
// +build arm,linux
|
||||
|
||||
// Created by cgo -godefs - DO NOT EDIT
|
||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||
|
||||
package unix
|
||||
|
@ -11,6 +11,11 @@ package unix
|
|||
import "syscall"
|
||||
|
||||
const (
|
||||
AAFS_MAGIC = 0x5a3c69f0
|
||||
ADFS_SUPER_MAGIC = 0xadf5
|
||||
AFFS_SUPER_MAGIC = 0xadff
|
||||
AFS_FS_MAGIC = 0x6b414653
|
||||
AFS_SUPER_MAGIC = 0x5346414f
|
||||
AF_ALG = 0x26
|
||||
AF_APPLETALK = 0x5
|
||||
AF_ASH = 0x12
|
||||
|
@ -66,6 +71,7 @@ const (
|
|||
ALG_SET_IV = 0x2
|
||||
ALG_SET_KEY = 0x1
|
||||
ALG_SET_OP = 0x3
|
||||
ANON_INODE_FS_MAGIC = 0x9041934
|
||||
ARPHRD_6LOWPAN = 0x339
|
||||
ARPHRD_ADAPT = 0x108
|
||||
ARPHRD_APPLETLK = 0x8
|
||||
|
@ -133,6 +139,7 @@ const (
|
|||
ARPHRD_VOID = 0xffff
|
||||
ARPHRD_VSOCKMON = 0x33a
|
||||
ARPHRD_X25 = 0x10f
|
||||
AUTOFS_SUPER_MAGIC = 0x187
|
||||
B0 = 0x0
|
||||
B1000000 = 0x1008
|
||||
B110 = 0x3
|
||||
|
@ -164,6 +171,9 @@ const (
|
|||
B75 = 0x2
|
||||
B921600 = 0x1007
|
||||
B9600 = 0xd
|
||||
BALLOON_KVM_MAGIC = 0x13661366
|
||||
BDEVFS_MAGIC = 0x62646576
|
||||
BINFMTFS_MAGIC = 0x42494e4d
|
||||
BLKBSZGET = 0x80041270
|
||||
BLKBSZSET = 0x40041271
|
||||
BLKFLSBUF = 0x1261
|
||||
|
@ -188,6 +198,7 @@ const (
|
|||
BPF_AND = 0x50
|
||||
BPF_B = 0x10
|
||||
BPF_DIV = 0x30
|
||||
BPF_FS_MAGIC = 0xcafe4a11
|
||||
BPF_H = 0x8
|
||||
BPF_IMM = 0x0
|
||||
BPF_IND = 0x40
|
||||
|
@ -229,6 +240,8 @@ const (
|
|||
BS0 = 0x0
|
||||
BS1 = 0x2000
|
||||
BSDLY = 0x2000
|
||||
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||
BTRFS_TEST_MAGIC = 0x73727279
|
||||
CAN_BCM = 0x2
|
||||
CAN_EFF_FLAG = 0x80000000
|
||||
CAN_EFF_ID_BITS = 0x1d
|
||||
|
@ -252,6 +265,8 @@ const (
|
|||
CBAUD = 0x100f
|
||||
CBAUDEX = 0x1000
|
||||
CFLUSH = 0xf
|
||||
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||
CIBAUD = 0x100f0000
|
||||
CLOCAL = 0x800
|
||||
CLOCK_BOOTTIME = 0x7
|
||||
|
@ -294,10 +309,12 @@ const (
|
|||
CLONE_VFORK = 0x4000
|
||||
CLONE_VM = 0x100
|
||||
CMSPAR = 0x40000000
|
||||
CODA_SUPER_MAGIC = 0x73757245
|
||||
CR0 = 0x0
|
||||
CR1 = 0x200
|
||||
CR2 = 0x400
|
||||
CR3 = 0x600
|
||||
CRAMFS_MAGIC = 0x28cd3d45
|
||||
CRDLY = 0x600
|
||||
CREAD = 0x80
|
||||
CRTSCTS = 0x80000000
|
||||
|
@ -312,6 +329,9 @@ const (
|
|||
CSTOP = 0x13
|
||||
CSTOPB = 0x40
|
||||
CSUSP = 0x1a
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
|
@ -328,9 +348,12 @@ const (
|
|||
ECHOKE = 0x800
|
||||
ECHONL = 0x40
|
||||
ECHOPRT = 0x400
|
||||
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||
EFD_CLOEXEC = 0x80000
|
||||
EFD_NONBLOCK = 0x800
|
||||
EFD_SEMAPHORE = 0x1
|
||||
EFIVARFS_MAGIC = 0xde5e81e4
|
||||
EFS_SUPER_MAGIC = 0x414a53
|
||||
ENCODING_DEFAULT = 0x0
|
||||
ENCODING_FM_MARK = 0x3
|
||||
ENCODING_FM_SPACE = 0x4
|
||||
|
@ -392,6 +415,7 @@ const (
|
|||
ETH_P_ECONET = 0x18
|
||||
ETH_P_EDSA = 0xdada
|
||||
ETH_P_ERSPAN = 0x88be
|
||||
ETH_P_ERSPAN2 = 0x22eb
|
||||
ETH_P_FCOE = 0x8906
|
||||
ETH_P_FIP = 0x8914
|
||||
ETH_P_HDLC = 0x19
|
||||
|
@ -425,6 +449,7 @@ const (
|
|||
ETH_P_PPP_DISC = 0x8863
|
||||
ETH_P_PPP_MP = 0x8
|
||||
ETH_P_PPP_SES = 0x8864
|
||||
ETH_P_PREAUTH = 0x88c7
|
||||
ETH_P_PRP = 0x88fb
|
||||
ETH_P_PUP = 0x200
|
||||
ETH_P_PUPAT = 0x201
|
||||
|
@ -445,9 +470,14 @@ const (
|
|||
ETH_P_WCCP = 0x883e
|
||||
ETH_P_X25 = 0x805
|
||||
ETH_P_XDSA = 0xf8
|
||||
EXABYTE_ENABLE_NEST = 0xf0
|
||||
EXT2_SUPER_MAGIC = 0xef53
|
||||
EXT3_SUPER_MAGIC = 0xef53
|
||||
EXT4_SUPER_MAGIC = 0xef53
|
||||
EXTA = 0xe
|
||||
EXTB = 0xf
|
||||
EXTPROC = 0x10000
|
||||
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||
FALLOC_FL_INSERT_RANGE = 0x20
|
||||
FALLOC_FL_KEEP_SIZE = 0x1
|
||||
|
@ -481,6 +511,7 @@ const (
|
|||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||
FS_POLICY_FLAGS_VALID = 0x3
|
||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||
F_ADD_SEALS = 0x409
|
||||
F_DUPFD = 0x0
|
||||
F_DUPFD_CLOEXEC = 0x406
|
||||
|
@ -542,6 +573,49 @@ const (
|
|||
GENL_UNS_ADMIN_PERM = 0x10
|
||||
GRND_NONBLOCK = 0x1
|
||||
GRND_RANDOM = 0x2
|
||||
HDIO_DRIVE_CMD = 0x31f
|
||||
HDIO_DRIVE_CMD_AEB = 0x31e
|
||||
HDIO_DRIVE_CMD_HDR_SIZE = 0x4
|
||||
HDIO_DRIVE_HOB_HDR_SIZE = 0x8
|
||||
HDIO_DRIVE_RESET = 0x31c
|
||||
HDIO_DRIVE_TASK = 0x31e
|
||||
HDIO_DRIVE_TASKFILE = 0x31d
|
||||
HDIO_DRIVE_TASK_HDR_SIZE = 0x8
|
||||
HDIO_GETGEO = 0x301
|
||||
HDIO_GET_32BIT = 0x309
|
||||
HDIO_GET_ACOUSTIC = 0x30f
|
||||
HDIO_GET_ADDRESS = 0x310
|
||||
HDIO_GET_BUSSTATE = 0x31a
|
||||
HDIO_GET_DMA = 0x30b
|
||||
HDIO_GET_IDENTITY = 0x30d
|
||||
HDIO_GET_KEEPSETTINGS = 0x308
|
||||
HDIO_GET_MULTCOUNT = 0x304
|
||||
HDIO_GET_NICE = 0x30c
|
||||
HDIO_GET_NOWERR = 0x30a
|
||||
HDIO_GET_QDMA = 0x305
|
||||
HDIO_GET_UNMASKINTR = 0x302
|
||||
HDIO_GET_WCACHE = 0x30e
|
||||
HDIO_OBSOLETE_IDENTITY = 0x307
|
||||
HDIO_SCAN_HWIF = 0x328
|
||||
HDIO_SET_32BIT = 0x324
|
||||
HDIO_SET_ACOUSTIC = 0x32c
|
||||
HDIO_SET_ADDRESS = 0x32f
|
||||
HDIO_SET_BUSSTATE = 0x32d
|
||||
HDIO_SET_DMA = 0x326
|
||||
HDIO_SET_KEEPSETTINGS = 0x323
|
||||
HDIO_SET_MULTCOUNT = 0x321
|
||||
HDIO_SET_NICE = 0x329
|
||||
HDIO_SET_NOWERR = 0x325
|
||||
HDIO_SET_PIO_MODE = 0x327
|
||||
HDIO_SET_QDMA = 0x32e
|
||||
HDIO_SET_UNMASKINTR = 0x322
|
||||
HDIO_SET_WCACHE = 0x32b
|
||||
HDIO_SET_XFER = 0x306
|
||||
HDIO_TRISTATE_HWIF = 0x31b
|
||||
HDIO_UNREGISTER_HWIF = 0x32a
|
||||
HOSTFS_SUPER_MAGIC = 0xc0ffee
|
||||
HPFS_SUPER_MAGIC = 0xf995e849
|
||||
HUGETLBFS_MAGIC = 0x958458f6
|
||||
HUPCL = 0x400
|
||||
IBSHIFT = 0x10
|
||||
ICANON = 0x2
|
||||
|
@ -792,12 +866,14 @@ const (
|
|||
IP_UNICAST_IF = 0x32
|
||||
IP_XFRM_POLICY = 0x11
|
||||
ISIG = 0x1
|
||||
ISOFS_SUPER_MAGIC = 0x9660
|
||||
ISTRIP = 0x20
|
||||
IUCLC = 0x200
|
||||
IUTF8 = 0x4000
|
||||
IXANY = 0x800
|
||||
IXOFF = 0x1000
|
||||
IXON = 0x400
|
||||
JFFS2_SUPER_MAGIC = 0x72b6
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
|
@ -893,9 +969,15 @@ const (
|
|||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
MCL_ONFAULT = 0x4
|
||||
MINIX2_SUPER_MAGIC = 0x2468
|
||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||
MINIX_SUPER_MAGIC = 0x137f
|
||||
MINIX_SUPER_MAGIC2 = 0x138f
|
||||
MNT_DETACH = 0x2
|
||||
MNT_EXPIRE = 0x4
|
||||
MNT_FORCE = 0x1
|
||||
MSDOS_SUPER_MAGIC = 0x4d44
|
||||
MSG_BATCH = 0x40000
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
MSG_CONFIRM = 0x800
|
||||
|
@ -955,7 +1037,9 @@ const (
|
|||
MS_SYNCHRONOUS = 0x10
|
||||
MS_UNBINDABLE = 0x20000
|
||||
MS_VERBOSE = 0x8000
|
||||
MTD_INODE_FS_MAGIC = 0x11307854
|
||||
NAME_MAX = 0xff
|
||||
NCP_SUPER_MAGIC = 0x564c
|
||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||
NETLINK_AUDIT = 0x9
|
||||
NETLINK_BROADCAST_ERROR = 0x4
|
||||
|
@ -990,6 +1074,37 @@ const (
|
|||
NETLINK_UNUSED = 0x1
|
||||
NETLINK_USERSOCK = 0x2
|
||||
NETLINK_XFRM = 0x6
|
||||
NFNETLINK_V0 = 0x0
|
||||
NFNLGRP_ACCT_QUOTA = 0x8
|
||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||
NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
|
||||
NFNLGRP_CONNTRACK_EXP_NEW = 0x4
|
||||
NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
|
||||
NFNLGRP_CONNTRACK_NEW = 0x1
|
||||
NFNLGRP_CONNTRACK_UPDATE = 0x2
|
||||
NFNLGRP_MAX = 0x9
|
||||
NFNLGRP_NFTABLES = 0x7
|
||||
NFNLGRP_NFTRACE = 0x9
|
||||
NFNLGRP_NONE = 0x0
|
||||
NFNL_BATCH_MAX = 0x1
|
||||
NFNL_MSG_BATCH_BEGIN = 0x10
|
||||
NFNL_MSG_BATCH_END = 0x11
|
||||
NFNL_NFA_NEST = 0x8000
|
||||
NFNL_SUBSYS_ACCT = 0x7
|
||||
NFNL_SUBSYS_COUNT = 0xc
|
||||
NFNL_SUBSYS_CTHELPER = 0x9
|
||||
NFNL_SUBSYS_CTNETLINK = 0x1
|
||||
NFNL_SUBSYS_CTNETLINK_EXP = 0x2
|
||||
NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
|
||||
NFNL_SUBSYS_IPSET = 0x6
|
||||
NFNL_SUBSYS_NFTABLES = 0xa
|
||||
NFNL_SUBSYS_NFT_COMPAT = 0xb
|
||||
NFNL_SUBSYS_NONE = 0x0
|
||||
NFNL_SUBSYS_OSF = 0x5
|
||||
NFNL_SUBSYS_QUEUE = 0x3
|
||||
NFNL_SUBSYS_ULOG = 0x4
|
||||
NFS_SUPER_MAGIC = 0x6969
|
||||
NILFS_SUPER_MAGIC = 0x3434
|
||||
NL0 = 0x0
|
||||
NL1 = 0x100
|
||||
NLA_ALIGNTO = 0x4
|
||||
|
@ -1022,6 +1137,8 @@ const (
|
|||
NLM_F_REQUEST = 0x1
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
OFILL = 0x40
|
||||
|
@ -1029,7 +1146,9 @@ const (
|
|||
ONLCR = 0x4
|
||||
ONLRET = 0x20
|
||||
ONOCR = 0x10
|
||||
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||
OPOST = 0x1
|
||||
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||
O_ACCMODE = 0x3
|
||||
O_APPEND = 0x400
|
||||
O_ASYNC = 0x2000
|
||||
|
@ -1114,16 +1233,20 @@ const (
|
|||
PERF_EVENT_IOC_DISABLE = 0x2401
|
||||
PERF_EVENT_IOC_ENABLE = 0x2400
|
||||
PERF_EVENT_IOC_ID = 0x80042407
|
||||
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4004240b
|
||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
|
||||
PERF_EVENT_IOC_PERIOD = 0x40082404
|
||||
PERF_EVENT_IOC_QUERY_BPF = 0xc004240a
|
||||
PERF_EVENT_IOC_REFRESH = 0x2402
|
||||
PERF_EVENT_IOC_RESET = 0x2403
|
||||
PERF_EVENT_IOC_SET_BPF = 0x40042408
|
||||
PERF_EVENT_IOC_SET_FILTER = 0x40042406
|
||||
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||
PIPEFS_MAGIC = 0x50495045
|
||||
PRIO_PGRP = 0x1
|
||||
PRIO_PROCESS = 0x0
|
||||
PRIO_USER = 0x2
|
||||
PROC_SUPER_MAGIC = 0x9fa0
|
||||
PROT_EXEC = 0x4
|
||||
PROT_GROWSDOWN = 0x1000000
|
||||
PROT_GROWSUP = 0x2000000
|
||||
|
@ -1166,6 +1289,7 @@ const (
|
|||
PR_GET_PDEATHSIG = 0x2
|
||||
PR_GET_SECCOMP = 0x15
|
||||
PR_GET_SECUREBITS = 0x1b
|
||||
PR_GET_SPECULATION_CTRL = 0x34
|
||||
PR_GET_THP_DISABLE = 0x2a
|
||||
PR_GET_TID_ADDRESS = 0x28
|
||||
PR_GET_TIMERSLACK = 0x1e
|
||||
|
@ -1211,11 +1335,18 @@ const (
|
|||
PR_SET_PTRACER_ANY = 0xffffffff
|
||||
PR_SET_SECCOMP = 0x16
|
||||
PR_SET_SECUREBITS = 0x1c
|
||||
PR_SET_SPECULATION_CTRL = 0x35
|
||||
PR_SET_THP_DISABLE = 0x29
|
||||
PR_SET_TIMERSLACK = 0x1d
|
||||
PR_SET_TIMING = 0xe
|
||||
PR_SET_TSC = 0x1a
|
||||
PR_SET_UNALIGN = 0x6
|
||||
PR_SPEC_DISABLE = 0x4
|
||||
PR_SPEC_ENABLE = 0x2
|
||||
PR_SPEC_FORCE_DISABLE = 0x8
|
||||
PR_SPEC_NOT_AFFECTED = 0x0
|
||||
PR_SPEC_PRCTL = 0x1
|
||||
PR_SPEC_STORE_BYPASS = 0x0
|
||||
PR_SVE_GET_VL = 0x33
|
||||
PR_SVE_SET_VL = 0x32
|
||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||
|
@ -1229,6 +1360,7 @@ const (
|
|||
PR_TSC_SIGSEGV = 0x2
|
||||
PR_UNALIGN_NOPRINT = 0x1
|
||||
PR_UNALIGN_SIGBUS = 0x2
|
||||
PSTOREFS_MAGIC = 0x6165676c
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
|
@ -1278,6 +1410,7 @@ const (
|
|||
PTRACE_POKETEXT = 0x4
|
||||
PTRACE_POKEUSR = 0x6
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||
PTRACE_SEIZE = 0x4206
|
||||
PTRACE_SETCRUNCHREGS = 0x1a
|
||||
PTRACE_SETFPREGS = 0xf
|
||||
|
@ -1296,6 +1429,11 @@ const (
|
|||
PT_DATA_ADDR = 0x10004
|
||||
PT_TEXT_ADDR = 0x10000
|
||||
PT_TEXT_END_ADDR = 0x10008
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
RAMFS_MAGIC = 0x858458f6
|
||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||
REISERFS_SUPER_MAGIC = 0x52654973
|
||||
RLIMIT_AS = 0x9
|
||||
RLIMIT_CORE = 0x4
|
||||
RLIMIT_CPU = 0x0
|
||||
|
@ -1345,6 +1483,33 @@ const (
|
|||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTC_AF = 0x20
|
||||
RTC_AIE_OFF = 0x7002
|
||||
RTC_AIE_ON = 0x7001
|
||||
RTC_ALM_READ = 0x80247008
|
||||
RTC_ALM_SET = 0x40247007
|
||||
RTC_EPOCH_READ = 0x8004700d
|
||||
RTC_EPOCH_SET = 0x4004700e
|
||||
RTC_IRQF = 0x80
|
||||
RTC_IRQP_READ = 0x8004700b
|
||||
RTC_IRQP_SET = 0x4004700c
|
||||
RTC_MAX_FREQ = 0x2000
|
||||
RTC_PF = 0x40
|
||||
RTC_PIE_OFF = 0x7006
|
||||
RTC_PIE_ON = 0x7005
|
||||
RTC_PLL_GET = 0x801c7011
|
||||
RTC_PLL_SET = 0x401c7012
|
||||
RTC_RD_TIME = 0x80247009
|
||||
RTC_SET_TIME = 0x4024700a
|
||||
RTC_UF = 0x10
|
||||
RTC_UIE_OFF = 0x7004
|
||||
RTC_UIE_ON = 0x7003
|
||||
RTC_VL_CLR = 0x7014
|
||||
RTC_VL_READ = 0x80047013
|
||||
RTC_WIE_OFF = 0x7010
|
||||
RTC_WIE_ON = 0x700f
|
||||
RTC_WKALM_RD = 0x80287010
|
||||
RTC_WKALM_SET = 0x4028700f
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
|
@ -1481,6 +1646,8 @@ const (
|
|||
SECCOMP_MODE_DISABLED = 0x0
|
||||
SECCOMP_MODE_FILTER = 0x2
|
||||
SECCOMP_MODE_STRICT = 0x1
|
||||
SECURITYFS_MAGIC = 0x73636673
|
||||
SELINUX_MAGIC = 0xf97cff8c
|
||||
SHUT_RD = 0x0
|
||||
SHUT_RDWR = 0x2
|
||||
SHUT_WR = 0x1
|
||||
|
@ -1565,6 +1732,23 @@ const (
|
|||
SIOCSPGRP = 0x8902
|
||||
SIOCSRARP = 0x8962
|
||||
SIOCWANDEV = 0x894a
|
||||
SMACK_MAGIC = 0x43415d53
|
||||
SMART_AUTOSAVE = 0xd2
|
||||
SMART_AUTO_OFFLINE = 0xdb
|
||||
SMART_DISABLE = 0xd9
|
||||
SMART_ENABLE = 0xd8
|
||||
SMART_HCYL_PASS = 0xc2
|
||||
SMART_IMMEDIATE_OFFLINE = 0xd4
|
||||
SMART_LCYL_PASS = 0x4f
|
||||
SMART_READ_LOG_SECTOR = 0xd5
|
||||
SMART_READ_THRESHOLDS = 0xd1
|
||||
SMART_READ_VALUES = 0xd0
|
||||
SMART_SAVE = 0xd3
|
||||
SMART_STATUS = 0xda
|
||||
SMART_WRITE_LOG_SECTOR = 0xd6
|
||||
SMART_WRITE_THRESHOLDS = 0xd7
|
||||
SMB_SUPER_MAGIC = 0x517b
|
||||
SOCKFS_MAGIC = 0x534f434b
|
||||
SOCK_CLOEXEC = 0x80000
|
||||
SOCK_DCCP = 0x6
|
||||
SOCK_DGRAM = 0x2
|
||||
|
@ -1675,6 +1859,8 @@ const (
|
|||
SPLICE_F_MORE = 0x4
|
||||
SPLICE_F_MOVE = 0x1
|
||||
SPLICE_F_NONBLOCK = 0x2
|
||||
SQUASHFS_MAGIC = 0x73717368
|
||||
STACK_END_MAGIC = 0x57ac6e9d
|
||||
STATX_ALL = 0xfff
|
||||
STATX_ATIME = 0x20
|
||||
STATX_ATTR_APPEND = 0x20
|
||||
|
@ -1696,6 +1882,7 @@ const (
|
|||
STATX_TYPE = 0x1
|
||||
STATX_UID = 0x8
|
||||
STATX__RESERVED = 0x80000000
|
||||
SYSFS_MAGIC = 0x62656572
|
||||
S_BLKSIZE = 0x200
|
||||
S_IEXEC = 0x40
|
||||
S_IFBLK = 0x6000
|
||||
|
@ -1877,7 +2064,27 @@ const (
|
|||
TIOCSTI = 0x5412
|
||||
TIOCSWINSZ = 0x5414
|
||||
TIOCVHANGUP = 0x5437
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x100
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
TPACKET_HDRLEN = 0x34
|
||||
TP_STATUS_AVAILABLE = 0x0
|
||||
TP_STATUS_BLK_TMO = 0x20
|
||||
TP_STATUS_COPY = 0x2
|
||||
TP_STATUS_CSUMNOTREADY = 0x8
|
||||
TP_STATUS_CSUM_VALID = 0x80
|
||||
TP_STATUS_KERNEL = 0x0
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
TP_STATUS_VLAN_TPID_VALID = 0x40
|
||||
TP_STATUS_VLAN_VALID = 0x10
|
||||
TP_STATUS_WRONG_FORMAT = 0x4
|
||||
TRACEFS_MAGIC = 0x74726163
|
||||
TS_COMM_LEN = 0x20
|
||||
TUNATTACHFILTER = 0x400854d5
|
||||
TUNDETACHFILTER = 0x400854d6
|
||||
|
@ -1889,6 +2096,7 @@ const (
|
|||
TUNGETVNETHDRSZ = 0x800454d7
|
||||
TUNGETVNETLE = 0x800454dd
|
||||
TUNSETDEBUG = 0x400454c9
|
||||
TUNSETFILTEREBPF = 0x800454e1
|
||||
TUNSETGROUP = 0x400454ce
|
||||
TUNSETIFF = 0x400454ca
|
||||
TUNSETIFINDEX = 0x400454da
|
||||
|
@ -1899,13 +2107,17 @@ const (
|
|||
TUNSETPERSIST = 0x400454cb
|
||||
TUNSETQUEUE = 0x400454d9
|
||||
TUNSETSNDBUF = 0x400454d4
|
||||
TUNSETSTEERINGEBPF = 0x800454e0
|
||||
TUNSETTXFILTER = 0x400454d1
|
||||
TUNSETVNETBE = 0x400454de
|
||||
TUNSETVNETHDRSZ = 0x400454d8
|
||||
TUNSETVNETLE = 0x400454dc
|
||||
UDF_SUPER_MAGIC = 0x15013346
|
||||
UMOUNT_NOFOLLOW = 0x8
|
||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||
UTIME_NOW = 0x3fffffff
|
||||
UTIME_OMIT = 0x3ffffffe
|
||||
V9FS_MAGIC = 0x1021997
|
||||
VDISCARD = 0xd
|
||||
VEOF = 0x4
|
||||
VEOL = 0xb
|
||||
|
@ -1947,6 +2159,86 @@ const (
|
|||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||
WDIOC_SETTIMEOUT = 0xc0045706
|
||||
WEXITED = 0x4
|
||||
WIN_ACKMEDIACHANGE = 0xdb
|
||||
WIN_CHECKPOWERMODE1 = 0xe5
|
||||
WIN_CHECKPOWERMODE2 = 0x98
|
||||
WIN_DEVICE_RESET = 0x8
|
||||
WIN_DIAGNOSE = 0x90
|
||||
WIN_DOORLOCK = 0xde
|
||||
WIN_DOORUNLOCK = 0xdf
|
||||
WIN_DOWNLOAD_MICROCODE = 0x92
|
||||
WIN_FLUSH_CACHE = 0xe7
|
||||
WIN_FLUSH_CACHE_EXT = 0xea
|
||||
WIN_FORMAT = 0x50
|
||||
WIN_GETMEDIASTATUS = 0xda
|
||||
WIN_IDENTIFY = 0xec
|
||||
WIN_IDENTIFY_DMA = 0xee
|
||||
WIN_IDLEIMMEDIATE = 0xe1
|
||||
WIN_INIT = 0x60
|
||||
WIN_MEDIAEJECT = 0xed
|
||||
WIN_MULTREAD = 0xc4
|
||||
WIN_MULTREAD_EXT = 0x29
|
||||
WIN_MULTWRITE = 0xc5
|
||||
WIN_MULTWRITE_EXT = 0x39
|
||||
WIN_NOP = 0x0
|
||||
WIN_PACKETCMD = 0xa0
|
||||
WIN_PIDENTIFY = 0xa1
|
||||
WIN_POSTBOOT = 0xdc
|
||||
WIN_PREBOOT = 0xdd
|
||||
WIN_QUEUED_SERVICE = 0xa2
|
||||
WIN_READ = 0x20
|
||||
WIN_READDMA = 0xc8
|
||||
WIN_READDMA_EXT = 0x25
|
||||
WIN_READDMA_ONCE = 0xc9
|
||||
WIN_READDMA_QUEUED = 0xc7
|
||||
WIN_READDMA_QUEUED_EXT = 0x26
|
||||
WIN_READ_BUFFER = 0xe4
|
||||
WIN_READ_EXT = 0x24
|
||||
WIN_READ_LONG = 0x22
|
||||
WIN_READ_LONG_ONCE = 0x23
|
||||
WIN_READ_NATIVE_MAX = 0xf8
|
||||
WIN_READ_NATIVE_MAX_EXT = 0x27
|
||||
WIN_READ_ONCE = 0x21
|
||||
WIN_RECAL = 0x10
|
||||
WIN_RESTORE = 0x10
|
||||
WIN_SECURITY_DISABLE = 0xf6
|
||||
WIN_SECURITY_ERASE_PREPARE = 0xf3
|
||||
WIN_SECURITY_ERASE_UNIT = 0xf4
|
||||
WIN_SECURITY_FREEZE_LOCK = 0xf5
|
||||
WIN_SECURITY_SET_PASS = 0xf1
|
||||
WIN_SECURITY_UNLOCK = 0xf2
|
||||
WIN_SEEK = 0x70
|
||||
WIN_SETFEATURES = 0xef
|
||||
WIN_SETIDLE1 = 0xe3
|
||||
WIN_SETIDLE2 = 0x97
|
||||
WIN_SETMULT = 0xc6
|
||||
WIN_SET_MAX = 0xf9
|
||||
WIN_SET_MAX_EXT = 0x37
|
||||
WIN_SLEEPNOW1 = 0xe6
|
||||
WIN_SLEEPNOW2 = 0x99
|
||||
WIN_SMART = 0xb0
|
||||
WIN_SPECIFY = 0x91
|
||||
WIN_SRST = 0x8
|
||||
WIN_STANDBY = 0xe2
|
||||
WIN_STANDBY2 = 0x96
|
||||
WIN_STANDBYNOW1 = 0xe0
|
||||
WIN_STANDBYNOW2 = 0x94
|
||||
WIN_VERIFY = 0x40
|
||||
WIN_VERIFY_EXT = 0x42
|
||||
WIN_VERIFY_ONCE = 0x41
|
||||
WIN_WRITE = 0x30
|
||||
WIN_WRITEDMA = 0xca
|
||||
WIN_WRITEDMA_EXT = 0x35
|
||||
WIN_WRITEDMA_ONCE = 0xcb
|
||||
WIN_WRITEDMA_QUEUED = 0xcc
|
||||
WIN_WRITEDMA_QUEUED_EXT = 0x36
|
||||
WIN_WRITE_BUFFER = 0xe8
|
||||
WIN_WRITE_EXT = 0x34
|
||||
WIN_WRITE_LONG = 0x32
|
||||
WIN_WRITE_LONG_ONCE = 0x33
|
||||
WIN_WRITE_ONCE = 0x31
|
||||
WIN_WRITE_SAME = 0xe9
|
||||
WIN_WRITE_VERIFY = 0x3c
|
||||
WNOHANG = 0x1
|
||||
WNOTHREAD = 0x20000000
|
||||
WNOWAIT = 0x1000000
|
||||
|
@ -1956,7 +2248,9 @@ const (
|
|||
XATTR_CREATE = 0x1
|
||||
XATTR_REPLACE = 0x2
|
||||
XCASE = 0x4
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XTABS = 0x1800
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
// Errors
|
||||
|
@ -2136,171 +2430,179 @@ const (
|
|||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "no such device or address",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource temporarily unavailable",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device or resource busy",
|
||||
17: "file exists",
|
||||
18: "invalid cross-device link",
|
||||
19: "no such device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "numerical result out of range",
|
||||
35: "resource deadlock avoided",
|
||||
36: "file name too long",
|
||||
37: "no locks available",
|
||||
38: "function not implemented",
|
||||
39: "directory not empty",
|
||||
40: "too many levels of symbolic links",
|
||||
42: "no message of desired type",
|
||||
43: "identifier removed",
|
||||
44: "channel number out of range",
|
||||
45: "level 2 not synchronized",
|
||||
46: "level 3 halted",
|
||||
47: "level 3 reset",
|
||||
48: "link number out of range",
|
||||
49: "protocol driver not attached",
|
||||
50: "no CSI structure available",
|
||||
51: "level 2 halted",
|
||||
52: "invalid exchange",
|
||||
53: "invalid request descriptor",
|
||||
54: "exchange full",
|
||||
55: "no anode",
|
||||
56: "invalid request code",
|
||||
57: "invalid slot",
|
||||
59: "bad font file format",
|
||||
60: "device not a stream",
|
||||
61: "no data available",
|
||||
62: "timer expired",
|
||||
63: "out of streams resources",
|
||||
64: "machine is not on the network",
|
||||
65: "package not installed",
|
||||
66: "object is remote",
|
||||
67: "link has been severed",
|
||||
68: "advertise error",
|
||||
69: "srmount error",
|
||||
70: "communication error on send",
|
||||
71: "protocol error",
|
||||
72: "multihop attempted",
|
||||
73: "RFS specific error",
|
||||
74: "bad message",
|
||||
75: "value too large for defined data type",
|
||||
76: "name not unique on network",
|
||||
77: "file descriptor in bad state",
|
||||
78: "remote address changed",
|
||||
79: "can not access a needed shared library",
|
||||
80: "accessing a corrupted shared library",
|
||||
81: ".lib section in a.out corrupted",
|
||||
82: "attempting to link in too many shared libraries",
|
||||
83: "cannot exec a shared library directly",
|
||||
84: "invalid or incomplete multibyte or wide character",
|
||||
85: "interrupted system call should be restarted",
|
||||
86: "streams pipe error",
|
||||
87: "too many users",
|
||||
88: "socket operation on non-socket",
|
||||
89: "destination address required",
|
||||
90: "message too long",
|
||||
91: "protocol wrong type for socket",
|
||||
92: "protocol not available",
|
||||
93: "protocol not supported",
|
||||
94: "socket type not supported",
|
||||
95: "operation not supported",
|
||||
96: "protocol family not supported",
|
||||
97: "address family not supported by protocol",
|
||||
98: "address already in use",
|
||||
99: "cannot assign requested address",
|
||||
100: "network is down",
|
||||
101: "network is unreachable",
|
||||
102: "network dropped connection on reset",
|
||||
103: "software caused connection abort",
|
||||
104: "connection reset by peer",
|
||||
105: "no buffer space available",
|
||||
106: "transport endpoint is already connected",
|
||||
107: "transport endpoint is not connected",
|
||||
108: "cannot send after transport endpoint shutdown",
|
||||
109: "too many references: cannot splice",
|
||||
110: "connection timed out",
|
||||
111: "connection refused",
|
||||
112: "host is down",
|
||||
113: "no route to host",
|
||||
114: "operation already in progress",
|
||||
115: "operation now in progress",
|
||||
116: "stale file handle",
|
||||
117: "structure needs cleaning",
|
||||
118: "not a XENIX named type file",
|
||||
119: "no XENIX semaphores available",
|
||||
120: "is a named type file",
|
||||
121: "remote I/O error",
|
||||
122: "disk quota exceeded",
|
||||
123: "no medium found",
|
||||
124: "wrong medium type",
|
||||
125: "operation canceled",
|
||||
126: "required key not available",
|
||||
127: "key has expired",
|
||||
128: "key has been revoked",
|
||||
129: "key was rejected by service",
|
||||
130: "owner died",
|
||||
131: "state not recoverable",
|
||||
132: "operation not possible due to RF-kill",
|
||||
133: "memory page has hardware error",
|
||||
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"},
|
||||
{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 signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/breakpoint trap",
|
||||
6: "aborted",
|
||||
7: "bus error",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "user defined signal 1",
|
||||
11: "segmentation fault",
|
||||
12: "user defined signal 2",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "stack fault",
|
||||
17: "child exited",
|
||||
18: "continued",
|
||||
19: "stopped (signal)",
|
||||
20: "stopped",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "urgent I/O condition",
|
||||
24: "CPU time limit exceeded",
|
||||
25: "file size limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window changed",
|
||||
29: "I/O possible",
|
||||
30: "power failure",
|
||||
31: "bad system call",
|
||||
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"},
|
||||
}
|
||||
|
|
634
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
634
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
|
@ -3,7 +3,7 @@
|
|||
|
||||
// +build arm64,linux
|
||||
|
||||
// Created by cgo -godefs - DO NOT EDIT
|
||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char _const.go
|
||||
|
||||
package unix
|
||||
|
@ -11,6 +11,11 @@ package unix
|
|||
import "syscall"
|
||||
|
||||
const (
|
||||
AAFS_MAGIC = 0x5a3c69f0
|
||||
ADFS_SUPER_MAGIC = 0xadf5
|
||||
AFFS_SUPER_MAGIC = 0xadff
|
||||
AFS_FS_MAGIC = 0x6b414653
|
||||
AFS_SUPER_MAGIC = 0x5346414f
|
||||
AF_ALG = 0x26
|
||||
AF_APPLETALK = 0x5
|
||||
AF_ASH = 0x12
|
||||
|
@ -66,6 +71,7 @@ const (
|
|||
ALG_SET_IV = 0x2
|
||||
ALG_SET_KEY = 0x1
|
||||
ALG_SET_OP = 0x3
|
||||
ANON_INODE_FS_MAGIC = 0x9041934
|
||||
ARPHRD_6LOWPAN = 0x339
|
||||
ARPHRD_ADAPT = 0x108
|
||||
ARPHRD_APPLETLK = 0x8
|
||||
|
@ -133,6 +139,7 @@ const (
|
|||
ARPHRD_VOID = 0xffff
|
||||
ARPHRD_VSOCKMON = 0x33a
|
||||
ARPHRD_X25 = 0x10f
|
||||
AUTOFS_SUPER_MAGIC = 0x187
|
||||
B0 = 0x0
|
||||
B1000000 = 0x1008
|
||||
B110 = 0x3
|
||||
|
@ -164,6 +171,9 @@ const (
|
|||
B75 = 0x2
|
||||
B921600 = 0x1007
|
||||
B9600 = 0xd
|
||||
BALLOON_KVM_MAGIC = 0x13661366
|
||||
BDEVFS_MAGIC = 0x62646576
|
||||
BINFMTFS_MAGIC = 0x42494e4d
|
||||
BLKBSZGET = 0x80081270
|
||||
BLKBSZSET = 0x40081271
|
||||
BLKFLSBUF = 0x1261
|
||||
|
@ -188,6 +198,7 @@ const (
|
|||
BPF_AND = 0x50
|
||||
BPF_B = 0x10
|
||||
BPF_DIV = 0x30
|
||||
BPF_FS_MAGIC = 0xcafe4a11
|
||||
BPF_H = 0x8
|
||||
BPF_IMM = 0x0
|
||||
BPF_IND = 0x40
|
||||
|
@ -229,6 +240,8 @@ const (
|
|||
BS0 = 0x0
|
||||
BS1 = 0x2000
|
||||
BSDLY = 0x2000
|
||||
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||
BTRFS_TEST_MAGIC = 0x73727279
|
||||
CAN_BCM = 0x2
|
||||
CAN_EFF_FLAG = 0x80000000
|
||||
CAN_EFF_ID_BITS = 0x1d
|
||||
|
@ -252,6 +265,8 @@ const (
|
|||
CBAUD = 0x100f
|
||||
CBAUDEX = 0x1000
|
||||
CFLUSH = 0xf
|
||||
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||
CIBAUD = 0x100f0000
|
||||
CLOCAL = 0x800
|
||||
CLOCK_BOOTTIME = 0x7
|
||||
|
@ -294,10 +309,12 @@ const (
|
|||
CLONE_VFORK = 0x4000
|
||||
CLONE_VM = 0x100
|
||||
CMSPAR = 0x40000000
|
||||
CODA_SUPER_MAGIC = 0x73757245
|
||||
CR0 = 0x0
|
||||
CR1 = 0x200
|
||||
CR2 = 0x400
|
||||
CR3 = 0x600
|
||||
CRAMFS_MAGIC = 0x28cd3d45
|
||||
CRDLY = 0x600
|
||||
CREAD = 0x80
|
||||
CRTSCTS = 0x80000000
|
||||
|
@ -312,6 +329,9 @@ const (
|
|||
CSTOP = 0x13
|
||||
CSTOPB = 0x40
|
||||
CSUSP = 0x1a
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
|
@ -328,9 +348,12 @@ const (
|
|||
ECHOKE = 0x800
|
||||
ECHONL = 0x40
|
||||
ECHOPRT = 0x400
|
||||
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||
EFD_CLOEXEC = 0x80000
|
||||
EFD_NONBLOCK = 0x800
|
||||
EFD_SEMAPHORE = 0x1
|
||||
EFIVARFS_MAGIC = 0xde5e81e4
|
||||
EFS_SUPER_MAGIC = 0x414a53
|
||||
ENCODING_DEFAULT = 0x0
|
||||
ENCODING_FM_MARK = 0x3
|
||||
ENCODING_FM_SPACE = 0x4
|
||||
|
@ -393,6 +416,7 @@ const (
|
|||
ETH_P_ECONET = 0x18
|
||||
ETH_P_EDSA = 0xdada
|
||||
ETH_P_ERSPAN = 0x88be
|
||||
ETH_P_ERSPAN2 = 0x22eb
|
||||
ETH_P_FCOE = 0x8906
|
||||
ETH_P_FIP = 0x8914
|
||||
ETH_P_HDLC = 0x19
|
||||
|
@ -426,6 +450,7 @@ const (
|
|||
ETH_P_PPP_DISC = 0x8863
|
||||
ETH_P_PPP_MP = 0x8
|
||||
ETH_P_PPP_SES = 0x8864
|
||||
ETH_P_PREAUTH = 0x88c7
|
||||
ETH_P_PRP = 0x88fb
|
||||
ETH_P_PUP = 0x200
|
||||
ETH_P_PUPAT = 0x201
|
||||
|
@ -446,10 +471,15 @@ const (
|
|||
ETH_P_WCCP = 0x883e
|
||||
ETH_P_X25 = 0x805
|
||||
ETH_P_XDSA = 0xf8
|
||||
EXABYTE_ENABLE_NEST = 0xf0
|
||||
EXT2_SUPER_MAGIC = 0xef53
|
||||
EXT3_SUPER_MAGIC = 0xef53
|
||||
EXT4_SUPER_MAGIC = 0xef53
|
||||
EXTA = 0xe
|
||||
EXTB = 0xf
|
||||
EXTPROC = 0x10000
|
||||
EXTRA_MAGIC = 0x45585401
|
||||
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||
FALLOC_FL_INSERT_RANGE = 0x20
|
||||
FALLOC_FL_KEEP_SIZE = 0x1
|
||||
|
@ -463,6 +493,7 @@ const (
|
|||
FF1 = 0x8000
|
||||
FFDLY = 0x8000
|
||||
FLUSHO = 0x1000
|
||||
FPSIMD_MAGIC = 0x46508001
|
||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||
|
@ -483,6 +514,7 @@ const (
|
|||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||
FS_POLICY_FLAGS_VALID = 0x3
|
||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||
F_ADD_SEALS = 0x409
|
||||
F_DUPFD = 0x0
|
||||
F_DUPFD_CLOEXEC = 0x406
|
||||
|
@ -544,6 +576,49 @@ const (
|
|||
GENL_UNS_ADMIN_PERM = 0x10
|
||||
GRND_NONBLOCK = 0x1
|
||||
GRND_RANDOM = 0x2
|
||||
HDIO_DRIVE_CMD = 0x31f
|
||||
HDIO_DRIVE_CMD_AEB = 0x31e
|
||||
HDIO_DRIVE_CMD_HDR_SIZE = 0x4
|
||||
HDIO_DRIVE_HOB_HDR_SIZE = 0x8
|
||||
HDIO_DRIVE_RESET = 0x31c
|
||||
HDIO_DRIVE_TASK = 0x31e
|
||||
HDIO_DRIVE_TASKFILE = 0x31d
|
||||
HDIO_DRIVE_TASK_HDR_SIZE = 0x8
|
||||
HDIO_GETGEO = 0x301
|
||||
HDIO_GET_32BIT = 0x309
|
||||
HDIO_GET_ACOUSTIC = 0x30f
|
||||
HDIO_GET_ADDRESS = 0x310
|
||||
HDIO_GET_BUSSTATE = 0x31a
|
||||
HDIO_GET_DMA = 0x30b
|
||||
HDIO_GET_IDENTITY = 0x30d
|
||||
HDIO_GET_KEEPSETTINGS = 0x308
|
||||
HDIO_GET_MULTCOUNT = 0x304
|
||||
HDIO_GET_NICE = 0x30c
|
||||
HDIO_GET_NOWERR = 0x30a
|
||||
HDIO_GET_QDMA = 0x305
|
||||
HDIO_GET_UNMASKINTR = 0x302
|
||||
HDIO_GET_WCACHE = 0x30e
|
||||
HDIO_OBSOLETE_IDENTITY = 0x307
|
||||
HDIO_SCAN_HWIF = 0x328
|
||||
HDIO_SET_32BIT = 0x324
|
||||
HDIO_SET_ACOUSTIC = 0x32c
|
||||
HDIO_SET_ADDRESS = 0x32f
|
||||
HDIO_SET_BUSSTATE = 0x32d
|
||||
HDIO_SET_DMA = 0x326
|
||||
HDIO_SET_KEEPSETTINGS = 0x323
|
||||
HDIO_SET_MULTCOUNT = 0x321
|
||||
HDIO_SET_NICE = 0x329
|
||||
HDIO_SET_NOWERR = 0x325
|
||||
HDIO_SET_PIO_MODE = 0x327
|
||||
HDIO_SET_QDMA = 0x32e
|
||||
HDIO_SET_UNMASKINTR = 0x322
|
||||
HDIO_SET_WCACHE = 0x32b
|
||||
HDIO_SET_XFER = 0x306
|
||||
HDIO_TRISTATE_HWIF = 0x31b
|
||||
HDIO_UNREGISTER_HWIF = 0x32a
|
||||
HOSTFS_SUPER_MAGIC = 0xc0ffee
|
||||
HPFS_SUPER_MAGIC = 0xf995e849
|
||||
HUGETLBFS_MAGIC = 0x958458f6
|
||||
HUPCL = 0x400
|
||||
IBSHIFT = 0x10
|
||||
ICANON = 0x2
|
||||
|
@ -794,12 +869,14 @@ const (
|
|||
IP_UNICAST_IF = 0x32
|
||||
IP_XFRM_POLICY = 0x11
|
||||
ISIG = 0x1
|
||||
ISOFS_SUPER_MAGIC = 0x9660
|
||||
ISTRIP = 0x20
|
||||
IUCLC = 0x200
|
||||
IUTF8 = 0x4000
|
||||
IXANY = 0x800
|
||||
IXOFF = 0x1000
|
||||
IXON = 0x400
|
||||
JFFS2_SUPER_MAGIC = 0x72b6
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
|
@ -895,9 +972,15 @@ const (
|
|||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
MCL_ONFAULT = 0x4
|
||||
MINIX2_SUPER_MAGIC = 0x2468
|
||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||
MINIX_SUPER_MAGIC = 0x137f
|
||||
MINIX_SUPER_MAGIC2 = 0x138f
|
||||
MNT_DETACH = 0x2
|
||||
MNT_EXPIRE = 0x4
|
||||
MNT_FORCE = 0x1
|
||||
MSDOS_SUPER_MAGIC = 0x4d44
|
||||
MSG_BATCH = 0x40000
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
MSG_CONFIRM = 0x800
|
||||
|
@ -957,7 +1040,9 @@ const (
|
|||
MS_SYNCHRONOUS = 0x10
|
||||
MS_UNBINDABLE = 0x20000
|
||||
MS_VERBOSE = 0x8000
|
||||
MTD_INODE_FS_MAGIC = 0x11307854
|
||||
NAME_MAX = 0xff
|
||||
NCP_SUPER_MAGIC = 0x564c
|
||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||
NETLINK_AUDIT = 0x9
|
||||
NETLINK_BROADCAST_ERROR = 0x4
|
||||
|
@ -992,6 +1077,37 @@ const (
|
|||
NETLINK_UNUSED = 0x1
|
||||
NETLINK_USERSOCK = 0x2
|
||||
NETLINK_XFRM = 0x6
|
||||
NFNETLINK_V0 = 0x0
|
||||
NFNLGRP_ACCT_QUOTA = 0x8
|
||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||
NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
|
||||
NFNLGRP_CONNTRACK_EXP_NEW = 0x4
|
||||
NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
|
||||
NFNLGRP_CONNTRACK_NEW = 0x1
|
||||
NFNLGRP_CONNTRACK_UPDATE = 0x2
|
||||
NFNLGRP_MAX = 0x9
|
||||
NFNLGRP_NFTABLES = 0x7
|
||||
NFNLGRP_NFTRACE = 0x9
|
||||
NFNLGRP_NONE = 0x0
|
||||
NFNL_BATCH_MAX = 0x1
|
||||
NFNL_MSG_BATCH_BEGIN = 0x10
|
||||
NFNL_MSG_BATCH_END = 0x11
|
||||
NFNL_NFA_NEST = 0x8000
|
||||
NFNL_SUBSYS_ACCT = 0x7
|
||||
NFNL_SUBSYS_COUNT = 0xc
|
||||
NFNL_SUBSYS_CTHELPER = 0x9
|
||||
NFNL_SUBSYS_CTNETLINK = 0x1
|
||||
NFNL_SUBSYS_CTNETLINK_EXP = 0x2
|
||||
NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
|
||||
NFNL_SUBSYS_IPSET = 0x6
|
||||
NFNL_SUBSYS_NFTABLES = 0xa
|
||||
NFNL_SUBSYS_NFT_COMPAT = 0xb
|
||||
NFNL_SUBSYS_NONE = 0x0
|
||||
NFNL_SUBSYS_OSF = 0x5
|
||||
NFNL_SUBSYS_QUEUE = 0x3
|
||||
NFNL_SUBSYS_ULOG = 0x4
|
||||
NFS_SUPER_MAGIC = 0x6969
|
||||
NILFS_SUPER_MAGIC = 0x3434
|
||||
NL0 = 0x0
|
||||
NL1 = 0x100
|
||||
NLA_ALIGNTO = 0x4
|
||||
|
@ -1024,6 +1140,8 @@ const (
|
|||
NLM_F_REQUEST = 0x1
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
OFILL = 0x40
|
||||
|
@ -1031,7 +1149,9 @@ const (
|
|||
ONLCR = 0x4
|
||||
ONLRET = 0x20
|
||||
ONOCR = 0x10
|
||||
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||
OPOST = 0x1
|
||||
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||
O_ACCMODE = 0x3
|
||||
O_APPEND = 0x400
|
||||
O_ASYNC = 0x2000
|
||||
|
@ -1116,16 +1236,20 @@ const (
|
|||
PERF_EVENT_IOC_DISABLE = 0x2401
|
||||
PERF_EVENT_IOC_ENABLE = 0x2400
|
||||
PERF_EVENT_IOC_ID = 0x80082407
|
||||
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b
|
||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
|
||||
PERF_EVENT_IOC_PERIOD = 0x40082404
|
||||
PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
|
||||
PERF_EVENT_IOC_REFRESH = 0x2402
|
||||
PERF_EVENT_IOC_RESET = 0x2403
|
||||
PERF_EVENT_IOC_SET_BPF = 0x40042408
|
||||
PERF_EVENT_IOC_SET_FILTER = 0x40082406
|
||||
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||
PIPEFS_MAGIC = 0x50495045
|
||||
PRIO_PGRP = 0x1
|
||||
PRIO_PROCESS = 0x0
|
||||
PRIO_USER = 0x2
|
||||
PROC_SUPER_MAGIC = 0x9fa0
|
||||
PROT_EXEC = 0x4
|
||||
PROT_GROWSDOWN = 0x1000000
|
||||
PROT_GROWSUP = 0x2000000
|
||||
|
@ -1168,6 +1292,7 @@ const (
|
|||
PR_GET_PDEATHSIG = 0x2
|
||||
PR_GET_SECCOMP = 0x15
|
||||
PR_GET_SECUREBITS = 0x1b
|
||||
PR_GET_SPECULATION_CTRL = 0x34
|
||||
PR_GET_THP_DISABLE = 0x2a
|
||||
PR_GET_TID_ADDRESS = 0x28
|
||||
PR_GET_TIMERSLACK = 0x1e
|
||||
|
@ -1213,11 +1338,18 @@ const (
|
|||
PR_SET_PTRACER_ANY = 0xffffffffffffffff
|
||||
PR_SET_SECCOMP = 0x16
|
||||
PR_SET_SECUREBITS = 0x1c
|
||||
PR_SET_SPECULATION_CTRL = 0x35
|
||||
PR_SET_THP_DISABLE = 0x29
|
||||
PR_SET_TIMERSLACK = 0x1d
|
||||
PR_SET_TIMING = 0xe
|
||||
PR_SET_TSC = 0x1a
|
||||
PR_SET_UNALIGN = 0x6
|
||||
PR_SPEC_DISABLE = 0x4
|
||||
PR_SPEC_ENABLE = 0x2
|
||||
PR_SPEC_FORCE_DISABLE = 0x8
|
||||
PR_SPEC_NOT_AFFECTED = 0x0
|
||||
PR_SPEC_PRCTL = 0x1
|
||||
PR_SPEC_STORE_BYPASS = 0x0
|
||||
PR_SVE_GET_VL = 0x33
|
||||
PR_SVE_SET_VL = 0x32
|
||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||
|
@ -1231,6 +1363,7 @@ const (
|
|||
PR_TSC_SIGSEGV = 0x2
|
||||
PR_UNALIGN_NOPRINT = 0x1
|
||||
PR_UNALIGN_SIGBUS = 0x2
|
||||
PSTOREFS_MAGIC = 0x6165676c
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
|
@ -1270,6 +1403,7 @@ const (
|
|||
PTRACE_POKETEXT = 0x4
|
||||
PTRACE_POKEUSR = 0x6
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||
PTRACE_SEIZE = 0x4206
|
||||
PTRACE_SETOPTIONS = 0x4200
|
||||
PTRACE_SETREGS = 0xd
|
||||
|
@ -1279,6 +1413,11 @@ const (
|
|||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_TRACEME = 0x0
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
RAMFS_MAGIC = 0x858458f6
|
||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||
REISERFS_SUPER_MAGIC = 0x52654973
|
||||
RLIMIT_AS = 0x9
|
||||
RLIMIT_CORE = 0x4
|
||||
RLIMIT_CPU = 0x0
|
||||
|
@ -1328,6 +1467,33 @@ const (
|
|||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTC_AF = 0x20
|
||||
RTC_AIE_OFF = 0x7002
|
||||
RTC_AIE_ON = 0x7001
|
||||
RTC_ALM_READ = 0x80247008
|
||||
RTC_ALM_SET = 0x40247007
|
||||
RTC_EPOCH_READ = 0x8008700d
|
||||
RTC_EPOCH_SET = 0x4008700e
|
||||
RTC_IRQF = 0x80
|
||||
RTC_IRQP_READ = 0x8008700b
|
||||
RTC_IRQP_SET = 0x4008700c
|
||||
RTC_MAX_FREQ = 0x2000
|
||||
RTC_PF = 0x40
|
||||
RTC_PIE_OFF = 0x7006
|
||||
RTC_PIE_ON = 0x7005
|
||||
RTC_PLL_GET = 0x80207011
|
||||
RTC_PLL_SET = 0x40207012
|
||||
RTC_RD_TIME = 0x80247009
|
||||
RTC_SET_TIME = 0x4024700a
|
||||
RTC_UF = 0x10
|
||||
RTC_UIE_OFF = 0x7004
|
||||
RTC_UIE_ON = 0x7003
|
||||
RTC_VL_CLR = 0x7014
|
||||
RTC_VL_READ = 0x80047013
|
||||
RTC_WIE_OFF = 0x7010
|
||||
RTC_WIE_ON = 0x700f
|
||||
RTC_WKALM_RD = 0x80287010
|
||||
RTC_WKALM_SET = 0x4028700f
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
|
@ -1464,6 +1630,8 @@ const (
|
|||
SECCOMP_MODE_DISABLED = 0x0
|
||||
SECCOMP_MODE_FILTER = 0x2
|
||||
SECCOMP_MODE_STRICT = 0x1
|
||||
SECURITYFS_MAGIC = 0x73636673
|
||||
SELINUX_MAGIC = 0xf97cff8c
|
||||
SHUT_RD = 0x0
|
||||
SHUT_RDWR = 0x2
|
||||
SHUT_WR = 0x1
|
||||
|
@ -1548,6 +1716,23 @@ const (
|
|||
SIOCSPGRP = 0x8902
|
||||
SIOCSRARP = 0x8962
|
||||
SIOCWANDEV = 0x894a
|
||||
SMACK_MAGIC = 0x43415d53
|
||||
SMART_AUTOSAVE = 0xd2
|
||||
SMART_AUTO_OFFLINE = 0xdb
|
||||
SMART_DISABLE = 0xd9
|
||||
SMART_ENABLE = 0xd8
|
||||
SMART_HCYL_PASS = 0xc2
|
||||
SMART_IMMEDIATE_OFFLINE = 0xd4
|
||||
SMART_LCYL_PASS = 0x4f
|
||||
SMART_READ_LOG_SECTOR = 0xd5
|
||||
SMART_READ_THRESHOLDS = 0xd1
|
||||
SMART_READ_VALUES = 0xd0
|
||||
SMART_SAVE = 0xd3
|
||||
SMART_STATUS = 0xda
|
||||
SMART_WRITE_LOG_SECTOR = 0xd6
|
||||
SMART_WRITE_THRESHOLDS = 0xd7
|
||||
SMB_SUPER_MAGIC = 0x517b
|
||||
SOCKFS_MAGIC = 0x534f434b
|
||||
SOCK_CLOEXEC = 0x80000
|
||||
SOCK_DCCP = 0x6
|
||||
SOCK_DGRAM = 0x2
|
||||
|
@ -1658,6 +1843,8 @@ const (
|
|||
SPLICE_F_MORE = 0x4
|
||||
SPLICE_F_MOVE = 0x1
|
||||
SPLICE_F_NONBLOCK = 0x2
|
||||
SQUASHFS_MAGIC = 0x73717368
|
||||
STACK_END_MAGIC = 0x57ac6e9d
|
||||
STATX_ALL = 0xfff
|
||||
STATX_ATIME = 0x20
|
||||
STATX_ATTR_APPEND = 0x20
|
||||
|
@ -1679,6 +1866,8 @@ const (
|
|||
STATX_TYPE = 0x1
|
||||
STATX_UID = 0x8
|
||||
STATX__RESERVED = 0x80000000
|
||||
SVE_MAGIC = 0x53564501
|
||||
SYSFS_MAGIC = 0x62656572
|
||||
S_BLKSIZE = 0x200
|
||||
S_IEXEC = 0x40
|
||||
S_IFBLK = 0x6000
|
||||
|
@ -1860,7 +2049,27 @@ const (
|
|||
TIOCSTI = 0x5412
|
||||
TIOCSWINSZ = 0x5414
|
||||
TIOCVHANGUP = 0x5437
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x100
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
TPACKET_HDRLEN = 0x34
|
||||
TP_STATUS_AVAILABLE = 0x0
|
||||
TP_STATUS_BLK_TMO = 0x20
|
||||
TP_STATUS_COPY = 0x2
|
||||
TP_STATUS_CSUMNOTREADY = 0x8
|
||||
TP_STATUS_CSUM_VALID = 0x80
|
||||
TP_STATUS_KERNEL = 0x0
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
TP_STATUS_VLAN_TPID_VALID = 0x40
|
||||
TP_STATUS_VLAN_VALID = 0x10
|
||||
TP_STATUS_WRONG_FORMAT = 0x4
|
||||
TRACEFS_MAGIC = 0x74726163
|
||||
TS_COMM_LEN = 0x20
|
||||
TUNATTACHFILTER = 0x401054d5
|
||||
TUNDETACHFILTER = 0x401054d6
|
||||
|
@ -1872,6 +2081,7 @@ const (
|
|||
TUNGETVNETHDRSZ = 0x800454d7
|
||||
TUNGETVNETLE = 0x800454dd
|
||||
TUNSETDEBUG = 0x400454c9
|
||||
TUNSETFILTEREBPF = 0x800454e1
|
||||
TUNSETGROUP = 0x400454ce
|
||||
TUNSETIFF = 0x400454ca
|
||||
TUNSETIFINDEX = 0x400454da
|
||||
|
@ -1882,13 +2092,17 @@ const (
|
|||
TUNSETPERSIST = 0x400454cb
|
||||
TUNSETQUEUE = 0x400454d9
|
||||
TUNSETSNDBUF = 0x400454d4
|
||||
TUNSETSTEERINGEBPF = 0x800454e0
|
||||
TUNSETTXFILTER = 0x400454d1
|
||||
TUNSETVNETBE = 0x400454de
|
||||
TUNSETVNETHDRSZ = 0x400454d8
|
||||
TUNSETVNETLE = 0x400454dc
|
||||
UDF_SUPER_MAGIC = 0x15013346
|
||||
UMOUNT_NOFOLLOW = 0x8
|
||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||
UTIME_NOW = 0x3fffffff
|
||||
UTIME_OMIT = 0x3ffffffe
|
||||
V9FS_MAGIC = 0x1021997
|
||||
VDISCARD = 0xd
|
||||
VEOF = 0x4
|
||||
VEOL = 0xb
|
||||
|
@ -1930,6 +2144,86 @@ const (
|
|||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||
WDIOC_SETTIMEOUT = 0xc0045706
|
||||
WEXITED = 0x4
|
||||
WIN_ACKMEDIACHANGE = 0xdb
|
||||
WIN_CHECKPOWERMODE1 = 0xe5
|
||||
WIN_CHECKPOWERMODE2 = 0x98
|
||||
WIN_DEVICE_RESET = 0x8
|
||||
WIN_DIAGNOSE = 0x90
|
||||
WIN_DOORLOCK = 0xde
|
||||
WIN_DOORUNLOCK = 0xdf
|
||||
WIN_DOWNLOAD_MICROCODE = 0x92
|
||||
WIN_FLUSH_CACHE = 0xe7
|
||||
WIN_FLUSH_CACHE_EXT = 0xea
|
||||
WIN_FORMAT = 0x50
|
||||
WIN_GETMEDIASTATUS = 0xda
|
||||
WIN_IDENTIFY = 0xec
|
||||
WIN_IDENTIFY_DMA = 0xee
|
||||
WIN_IDLEIMMEDIATE = 0xe1
|
||||
WIN_INIT = 0x60
|
||||
WIN_MEDIAEJECT = 0xed
|
||||
WIN_MULTREAD = 0xc4
|
||||
WIN_MULTREAD_EXT = 0x29
|
||||
WIN_MULTWRITE = 0xc5
|
||||
WIN_MULTWRITE_EXT = 0x39
|
||||
WIN_NOP = 0x0
|
||||
WIN_PACKETCMD = 0xa0
|
||||
WIN_PIDENTIFY = 0xa1
|
||||
WIN_POSTBOOT = 0xdc
|
||||
WIN_PREBOOT = 0xdd
|
||||
WIN_QUEUED_SERVICE = 0xa2
|
||||
WIN_READ = 0x20
|
||||
WIN_READDMA = 0xc8
|
||||
WIN_READDMA_EXT = 0x25
|
||||
WIN_READDMA_ONCE = 0xc9
|
||||
WIN_READDMA_QUEUED = 0xc7
|
||||
WIN_READDMA_QUEUED_EXT = 0x26
|
||||
WIN_READ_BUFFER = 0xe4
|
||||
WIN_READ_EXT = 0x24
|
||||
WIN_READ_LONG = 0x22
|
||||
WIN_READ_LONG_ONCE = 0x23
|
||||
WIN_READ_NATIVE_MAX = 0xf8
|
||||
WIN_READ_NATIVE_MAX_EXT = 0x27
|
||||
WIN_READ_ONCE = 0x21
|
||||
WIN_RECAL = 0x10
|
||||
WIN_RESTORE = 0x10
|
||||
WIN_SECURITY_DISABLE = 0xf6
|
||||
WIN_SECURITY_ERASE_PREPARE = 0xf3
|
||||
WIN_SECURITY_ERASE_UNIT = 0xf4
|
||||
WIN_SECURITY_FREEZE_LOCK = 0xf5
|
||||
WIN_SECURITY_SET_PASS = 0xf1
|
||||
WIN_SECURITY_UNLOCK = 0xf2
|
||||
WIN_SEEK = 0x70
|
||||
WIN_SETFEATURES = 0xef
|
||||
WIN_SETIDLE1 = 0xe3
|
||||
WIN_SETIDLE2 = 0x97
|
||||
WIN_SETMULT = 0xc6
|
||||
WIN_SET_MAX = 0xf9
|
||||
WIN_SET_MAX_EXT = 0x37
|
||||
WIN_SLEEPNOW1 = 0xe6
|
||||
WIN_SLEEPNOW2 = 0x99
|
||||
WIN_SMART = 0xb0
|
||||
WIN_SPECIFY = 0x91
|
||||
WIN_SRST = 0x8
|
||||
WIN_STANDBY = 0xe2
|
||||
WIN_STANDBY2 = 0x96
|
||||
WIN_STANDBYNOW1 = 0xe0
|
||||
WIN_STANDBYNOW2 = 0x94
|
||||
WIN_VERIFY = 0x40
|
||||
WIN_VERIFY_EXT = 0x42
|
||||
WIN_VERIFY_ONCE = 0x41
|
||||
WIN_WRITE = 0x30
|
||||
WIN_WRITEDMA = 0xca
|
||||
WIN_WRITEDMA_EXT = 0x35
|
||||
WIN_WRITEDMA_ONCE = 0xcb
|
||||
WIN_WRITEDMA_QUEUED = 0xcc
|
||||
WIN_WRITEDMA_QUEUED_EXT = 0x36
|
||||
WIN_WRITE_BUFFER = 0xe8
|
||||
WIN_WRITE_EXT = 0x34
|
||||
WIN_WRITE_LONG = 0x32
|
||||
WIN_WRITE_LONG_ONCE = 0x33
|
||||
WIN_WRITE_ONCE = 0x31
|
||||
WIN_WRITE_SAME = 0xe9
|
||||
WIN_WRITE_VERIFY = 0x3c
|
||||
WNOHANG = 0x1
|
||||
WNOTHREAD = 0x20000000
|
||||
WNOWAIT = 0x1000000
|
||||
|
@ -1939,7 +2233,9 @@ const (
|
|||
XATTR_CREATE = 0x1
|
||||
XATTR_REPLACE = 0x2
|
||||
XCASE = 0x4
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XTABS = 0x1800
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
// Errors
|
||||
|
@ -2119,171 +2415,179 @@ const (
|
|||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "no such device or address",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource temporarily unavailable",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device or resource busy",
|
||||
17: "file exists",
|
||||
18: "invalid cross-device link",
|
||||
19: "no such device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "numerical result out of range",
|
||||
35: "resource deadlock avoided",
|
||||
36: "file name too long",
|
||||
37: "no locks available",
|
||||
38: "function not implemented",
|
||||
39: "directory not empty",
|
||||
40: "too many levels of symbolic links",
|
||||
42: "no message of desired type",
|
||||
43: "identifier removed",
|
||||
44: "channel number out of range",
|
||||
45: "level 2 not synchronized",
|
||||
46: "level 3 halted",
|
||||
47: "level 3 reset",
|
||||
48: "link number out of range",
|
||||
49: "protocol driver not attached",
|
||||
50: "no CSI structure available",
|
||||
51: "level 2 halted",
|
||||
52: "invalid exchange",
|
||||
53: "invalid request descriptor",
|
||||
54: "exchange full",
|
||||
55: "no anode",
|
||||
56: "invalid request code",
|
||||
57: "invalid slot",
|
||||
59: "bad font file format",
|
||||
60: "device not a stream",
|
||||
61: "no data available",
|
||||
62: "timer expired",
|
||||
63: "out of streams resources",
|
||||
64: "machine is not on the network",
|
||||
65: "package not installed",
|
||||
66: "object is remote",
|
||||
67: "link has been severed",
|
||||
68: "advertise error",
|
||||
69: "srmount error",
|
||||
70: "communication error on send",
|
||||
71: "protocol error",
|
||||
72: "multihop attempted",
|
||||
73: "RFS specific error",
|
||||
74: "bad message",
|
||||
75: "value too large for defined data type",
|
||||
76: "name not unique on network",
|
||||
77: "file descriptor in bad state",
|
||||
78: "remote address changed",
|
||||
79: "can not access a needed shared library",
|
||||
80: "accessing a corrupted shared library",
|
||||
81: ".lib section in a.out corrupted",
|
||||
82: "attempting to link in too many shared libraries",
|
||||
83: "cannot exec a shared library directly",
|
||||
84: "invalid or incomplete multibyte or wide character",
|
||||
85: "interrupted system call should be restarted",
|
||||
86: "streams pipe error",
|
||||
87: "too many users",
|
||||
88: "socket operation on non-socket",
|
||||
89: "destination address required",
|
||||
90: "message too long",
|
||||
91: "protocol wrong type for socket",
|
||||
92: "protocol not available",
|
||||
93: "protocol not supported",
|
||||
94: "socket type not supported",
|
||||
95: "operation not supported",
|
||||
96: "protocol family not supported",
|
||||
97: "address family not supported by protocol",
|
||||
98: "address already in use",
|
||||
99: "cannot assign requested address",
|
||||
100: "network is down",
|
||||
101: "network is unreachable",
|
||||
102: "network dropped connection on reset",
|
||||
103: "software caused connection abort",
|
||||
104: "connection reset by peer",
|
||||
105: "no buffer space available",
|
||||
106: "transport endpoint is already connected",
|
||||
107: "transport endpoint is not connected",
|
||||
108: "cannot send after transport endpoint shutdown",
|
||||
109: "too many references: cannot splice",
|
||||
110: "connection timed out",
|
||||
111: "connection refused",
|
||||
112: "host is down",
|
||||
113: "no route to host",
|
||||
114: "operation already in progress",
|
||||
115: "operation now in progress",
|
||||
116: "stale file handle",
|
||||
117: "structure needs cleaning",
|
||||
118: "not a XENIX named type file",
|
||||
119: "no XENIX semaphores available",
|
||||
120: "is a named type file",
|
||||
121: "remote I/O error",
|
||||
122: "disk quota exceeded",
|
||||
123: "no medium found",
|
||||
124: "wrong medium type",
|
||||
125: "operation canceled",
|
||||
126: "required key not available",
|
||||
127: "key has expired",
|
||||
128: "key has been revoked",
|
||||
129: "key was rejected by service",
|
||||
130: "owner died",
|
||||
131: "state not recoverable",
|
||||
132: "operation not possible due to RF-kill",
|
||||
133: "memory page has hardware error",
|
||||
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"},
|
||||
{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 signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/breakpoint trap",
|
||||
6: "aborted",
|
||||
7: "bus error",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "user defined signal 1",
|
||||
11: "segmentation fault",
|
||||
12: "user defined signal 2",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "stack fault",
|
||||
17: "child exited",
|
||||
18: "continued",
|
||||
19: "stopped (signal)",
|
||||
20: "stopped",
|
||||
21: "stopped (tty input)",
|
||||
22: "stopped (tty output)",
|
||||
23: "urgent I/O condition",
|
||||
24: "CPU time limit exceeded",
|
||||
25: "file size limit exceeded",
|
||||
26: "virtual timer expired",
|
||||
27: "profiling timer expired",
|
||||
28: "window changed",
|
||||
29: "I/O possible",
|
||||
30: "power failure",
|
||||
31: "bad system call",
|
||||
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"},
|
||||
}
|
||||
|
|
638
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
638
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
|
@ -3,7 +3,7 @@
|
|||
|
||||
// +build mips,linux
|
||||
|
||||
// Created by cgo -godefs - DO NOT EDIT
|
||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||
|
||||
package unix
|
||||
|
@ -11,6 +11,11 @@ package unix
|
|||
import "syscall"
|
||||
|
||||
const (
|
||||
AAFS_MAGIC = 0x5a3c69f0
|
||||
ADFS_SUPER_MAGIC = 0xadf5
|
||||
AFFS_SUPER_MAGIC = 0xadff
|
||||
AFS_FS_MAGIC = 0x6b414653
|
||||
AFS_SUPER_MAGIC = 0x5346414f
|
||||
AF_ALG = 0x26
|
||||
AF_APPLETALK = 0x5
|
||||
AF_ASH = 0x12
|
||||
|
@ -66,6 +71,7 @@ const (
|
|||
ALG_SET_IV = 0x2
|
||||
ALG_SET_KEY = 0x1
|
||||
ALG_SET_OP = 0x3
|
||||
ANON_INODE_FS_MAGIC = 0x9041934
|
||||
ARPHRD_6LOWPAN = 0x339
|
||||
ARPHRD_ADAPT = 0x108
|
||||
ARPHRD_APPLETLK = 0x8
|
||||
|
@ -133,6 +139,7 @@ const (
|
|||
ARPHRD_VOID = 0xffff
|
||||
ARPHRD_VSOCKMON = 0x33a
|
||||
ARPHRD_X25 = 0x10f
|
||||
AUTOFS_SUPER_MAGIC = 0x187
|
||||
B0 = 0x0
|
||||
B1000000 = 0x1008
|
||||
B110 = 0x3
|
||||
|
@ -164,6 +171,9 @@ const (
|
|||
B75 = 0x2
|
||||
B921600 = 0x1007
|
||||
B9600 = 0xd
|
||||
BALLOON_KVM_MAGIC = 0x13661366
|
||||
BDEVFS_MAGIC = 0x62646576
|
||||
BINFMTFS_MAGIC = 0x42494e4d
|
||||
BLKBSZGET = 0x40041270
|
||||
BLKBSZSET = 0x80041271
|
||||
BLKFLSBUF = 0x20001261
|
||||
|
@ -188,6 +198,7 @@ const (
|
|||
BPF_AND = 0x50
|
||||
BPF_B = 0x10
|
||||
BPF_DIV = 0x30
|
||||
BPF_FS_MAGIC = 0xcafe4a11
|
||||
BPF_H = 0x8
|
||||
BPF_IMM = 0x0
|
||||
BPF_IND = 0x40
|
||||
|
@ -229,6 +240,8 @@ const (
|
|||
BS0 = 0x0
|
||||
BS1 = 0x2000
|
||||
BSDLY = 0x2000
|
||||
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||
BTRFS_TEST_MAGIC = 0x73727279
|
||||
CAN_BCM = 0x2
|
||||
CAN_EFF_FLAG = 0x80000000
|
||||
CAN_EFF_ID_BITS = 0x1d
|
||||
|
@ -252,6 +265,8 @@ const (
|
|||
CBAUD = 0x100f
|
||||
CBAUDEX = 0x1000
|
||||
CFLUSH = 0xf
|
||||
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||
CIBAUD = 0x100f0000
|
||||
CLOCAL = 0x800
|
||||
CLOCK_BOOTTIME = 0x7
|
||||
|
@ -294,10 +309,12 @@ const (
|
|||
CLONE_VFORK = 0x4000
|
||||
CLONE_VM = 0x100
|
||||
CMSPAR = 0x40000000
|
||||
CODA_SUPER_MAGIC = 0x73757245
|
||||
CR0 = 0x0
|
||||
CR1 = 0x200
|
||||
CR2 = 0x400
|
||||
CR3 = 0x600
|
||||
CRAMFS_MAGIC = 0x28cd3d45
|
||||
CRDLY = 0x600
|
||||
CREAD = 0x80
|
||||
CRTSCTS = 0x80000000
|
||||
|
@ -312,6 +329,9 @@ const (
|
|||
CSTOP = 0x13
|
||||
CSTOPB = 0x40
|
||||
CSUSP = 0x1a
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
|
@ -328,9 +348,12 @@ const (
|
|||
ECHOKE = 0x800
|
||||
ECHONL = 0x40
|
||||
ECHOPRT = 0x400
|
||||
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||
EFD_CLOEXEC = 0x80000
|
||||
EFD_NONBLOCK = 0x80
|
||||
EFD_SEMAPHORE = 0x1
|
||||
EFIVARFS_MAGIC = 0xde5e81e4
|
||||
EFS_SUPER_MAGIC = 0x414a53
|
||||
ENCODING_DEFAULT = 0x0
|
||||
ENCODING_FM_MARK = 0x3
|
||||
ENCODING_FM_SPACE = 0x4
|
||||
|
@ -392,6 +415,7 @@ const (
|
|||
ETH_P_ECONET = 0x18
|
||||
ETH_P_EDSA = 0xdada
|
||||
ETH_P_ERSPAN = 0x88be
|
||||
ETH_P_ERSPAN2 = 0x22eb
|
||||
ETH_P_FCOE = 0x8906
|
||||
ETH_P_FIP = 0x8914
|
||||
ETH_P_HDLC = 0x19
|
||||
|
@ -425,6 +449,7 @@ const (
|
|||
ETH_P_PPP_DISC = 0x8863
|
||||
ETH_P_PPP_MP = 0x8
|
||||
ETH_P_PPP_SES = 0x8864
|
||||
ETH_P_PREAUTH = 0x88c7
|
||||
ETH_P_PRP = 0x88fb
|
||||
ETH_P_PUP = 0x200
|
||||
ETH_P_PUPAT = 0x201
|
||||
|
@ -445,9 +470,14 @@ const (
|
|||
ETH_P_WCCP = 0x883e
|
||||
ETH_P_X25 = 0x805
|
||||
ETH_P_XDSA = 0xf8
|
||||
EXABYTE_ENABLE_NEST = 0xf0
|
||||
EXT2_SUPER_MAGIC = 0xef53
|
||||
EXT3_SUPER_MAGIC = 0xef53
|
||||
EXT4_SUPER_MAGIC = 0xef53
|
||||
EXTA = 0xe
|
||||
EXTB = 0xf
|
||||
EXTPROC = 0x10000
|
||||
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||
FALLOC_FL_INSERT_RANGE = 0x20
|
||||
FALLOC_FL_KEEP_SIZE = 0x1
|
||||
|
@ -481,6 +511,7 @@ const (
|
|||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||
FS_POLICY_FLAGS_VALID = 0x3
|
||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||
F_ADD_SEALS = 0x409
|
||||
F_DUPFD = 0x0
|
||||
F_DUPFD_CLOEXEC = 0x406
|
||||
|
@ -542,6 +573,49 @@ const (
|
|||
GENL_UNS_ADMIN_PERM = 0x10
|
||||
GRND_NONBLOCK = 0x1
|
||||
GRND_RANDOM = 0x2
|
||||
HDIO_DRIVE_CMD = 0x31f
|
||||
HDIO_DRIVE_CMD_AEB = 0x31e
|
||||
HDIO_DRIVE_CMD_HDR_SIZE = 0x4
|
||||
HDIO_DRIVE_HOB_HDR_SIZE = 0x8
|
||||
HDIO_DRIVE_RESET = 0x31c
|
||||
HDIO_DRIVE_TASK = 0x31e
|
||||
HDIO_DRIVE_TASKFILE = 0x31d
|
||||
HDIO_DRIVE_TASK_HDR_SIZE = 0x8
|
||||
HDIO_GETGEO = 0x301
|
||||
HDIO_GET_32BIT = 0x309
|
||||
HDIO_GET_ACOUSTIC = 0x30f
|
||||
HDIO_GET_ADDRESS = 0x310
|
||||
HDIO_GET_BUSSTATE = 0x31a
|
||||
HDIO_GET_DMA = 0x30b
|
||||
HDIO_GET_IDENTITY = 0x30d
|
||||
HDIO_GET_KEEPSETTINGS = 0x308
|
||||
HDIO_GET_MULTCOUNT = 0x304
|
||||
HDIO_GET_NICE = 0x30c
|
||||
HDIO_GET_NOWERR = 0x30a
|
||||
HDIO_GET_QDMA = 0x305
|
||||
HDIO_GET_UNMASKINTR = 0x302
|
||||
HDIO_GET_WCACHE = 0x30e
|
||||
HDIO_OBSOLETE_IDENTITY = 0x307
|
||||
HDIO_SCAN_HWIF = 0x328
|
||||
HDIO_SET_32BIT = 0x324
|
||||
HDIO_SET_ACOUSTIC = 0x32c
|
||||
HDIO_SET_ADDRESS = 0x32f
|
||||
HDIO_SET_BUSSTATE = 0x32d
|
||||
HDIO_SET_DMA = 0x326
|
||||
HDIO_SET_KEEPSETTINGS = 0x323
|
||||
HDIO_SET_MULTCOUNT = 0x321
|
||||
HDIO_SET_NICE = 0x329
|
||||
HDIO_SET_NOWERR = 0x325
|
||||
HDIO_SET_PIO_MODE = 0x327
|
||||
HDIO_SET_QDMA = 0x32e
|
||||
HDIO_SET_UNMASKINTR = 0x322
|
||||
HDIO_SET_WCACHE = 0x32b
|
||||
HDIO_SET_XFER = 0x306
|
||||
HDIO_TRISTATE_HWIF = 0x31b
|
||||
HDIO_UNREGISTER_HWIF = 0x32a
|
||||
HOSTFS_SUPER_MAGIC = 0xc0ffee
|
||||
HPFS_SUPER_MAGIC = 0xf995e849
|
||||
HUGETLBFS_MAGIC = 0x958458f6
|
||||
HUPCL = 0x400
|
||||
IBSHIFT = 0x10
|
||||
ICANON = 0x2
|
||||
|
@ -792,12 +866,14 @@ const (
|
|||
IP_UNICAST_IF = 0x32
|
||||
IP_XFRM_POLICY = 0x11
|
||||
ISIG = 0x1
|
||||
ISOFS_SUPER_MAGIC = 0x9660
|
||||
ISTRIP = 0x20
|
||||
IUCLC = 0x200
|
||||
IUTF8 = 0x4000
|
||||
IXANY = 0x800
|
||||
IXOFF = 0x1000
|
||||
IXON = 0x400
|
||||
JFFS2_SUPER_MAGIC = 0x72b6
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
|
@ -894,9 +970,15 @@ const (
|
|||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
MCL_ONFAULT = 0x4
|
||||
MINIX2_SUPER_MAGIC = 0x2468
|
||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||
MINIX_SUPER_MAGIC = 0x137f
|
||||
MINIX_SUPER_MAGIC2 = 0x138f
|
||||
MNT_DETACH = 0x2
|
||||
MNT_EXPIRE = 0x4
|
||||
MNT_FORCE = 0x1
|
||||
MSDOS_SUPER_MAGIC = 0x4d44
|
||||
MSG_BATCH = 0x40000
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
MSG_CONFIRM = 0x800
|
||||
|
@ -956,7 +1038,9 @@ const (
|
|||
MS_SYNCHRONOUS = 0x10
|
||||
MS_UNBINDABLE = 0x20000
|
||||
MS_VERBOSE = 0x8000
|
||||
MTD_INODE_FS_MAGIC = 0x11307854
|
||||
NAME_MAX = 0xff
|
||||
NCP_SUPER_MAGIC = 0x564c
|
||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||
NETLINK_AUDIT = 0x9
|
||||
NETLINK_BROADCAST_ERROR = 0x4
|
||||
|
@ -991,6 +1075,37 @@ const (
|
|||
NETLINK_UNUSED = 0x1
|
||||
NETLINK_USERSOCK = 0x2
|
||||
NETLINK_XFRM = 0x6
|
||||
NFNETLINK_V0 = 0x0
|
||||
NFNLGRP_ACCT_QUOTA = 0x8
|
||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||
NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
|
||||
NFNLGRP_CONNTRACK_EXP_NEW = 0x4
|
||||
NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
|
||||
NFNLGRP_CONNTRACK_NEW = 0x1
|
||||
NFNLGRP_CONNTRACK_UPDATE = 0x2
|
||||
NFNLGRP_MAX = 0x9
|
||||
NFNLGRP_NFTABLES = 0x7
|
||||
NFNLGRP_NFTRACE = 0x9
|
||||
NFNLGRP_NONE = 0x0
|
||||
NFNL_BATCH_MAX = 0x1
|
||||
NFNL_MSG_BATCH_BEGIN = 0x10
|
||||
NFNL_MSG_BATCH_END = 0x11
|
||||
NFNL_NFA_NEST = 0x8000
|
||||
NFNL_SUBSYS_ACCT = 0x7
|
||||
NFNL_SUBSYS_COUNT = 0xc
|
||||
NFNL_SUBSYS_CTHELPER = 0x9
|
||||
NFNL_SUBSYS_CTNETLINK = 0x1
|
||||
NFNL_SUBSYS_CTNETLINK_EXP = 0x2
|
||||
NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
|
||||
NFNL_SUBSYS_IPSET = 0x6
|
||||
NFNL_SUBSYS_NFTABLES = 0xa
|
||||
NFNL_SUBSYS_NFT_COMPAT = 0xb
|
||||
NFNL_SUBSYS_NONE = 0x0
|
||||
NFNL_SUBSYS_OSF = 0x5
|
||||
NFNL_SUBSYS_QUEUE = 0x3
|
||||
NFNL_SUBSYS_ULOG = 0x4
|
||||
NFS_SUPER_MAGIC = 0x6969
|
||||
NILFS_SUPER_MAGIC = 0x3434
|
||||
NL0 = 0x0
|
||||
NL1 = 0x100
|
||||
NLA_ALIGNTO = 0x4
|
||||
|
@ -1023,6 +1138,8 @@ const (
|
|||
NLM_F_REQUEST = 0x1
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
OFILL = 0x40
|
||||
|
@ -1030,7 +1147,9 @@ const (
|
|||
ONLCR = 0x4
|
||||
ONLRET = 0x20
|
||||
ONOCR = 0x10
|
||||
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||
OPOST = 0x1
|
||||
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||
O_ACCMODE = 0x3
|
||||
O_APPEND = 0x8
|
||||
O_ASYNC = 0x1000
|
||||
|
@ -1115,16 +1234,20 @@ const (
|
|||
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
|
||||
PIPEFS_MAGIC = 0x50495045
|
||||
PRIO_PGRP = 0x1
|
||||
PRIO_PROCESS = 0x0
|
||||
PRIO_USER = 0x2
|
||||
PROC_SUPER_MAGIC = 0x9fa0
|
||||
PROT_EXEC = 0x4
|
||||
PROT_GROWSDOWN = 0x1000000
|
||||
PROT_GROWSUP = 0x2000000
|
||||
|
@ -1167,6 +1290,7 @@ const (
|
|||
PR_GET_PDEATHSIG = 0x2
|
||||
PR_GET_SECCOMP = 0x15
|
||||
PR_GET_SECUREBITS = 0x1b
|
||||
PR_GET_SPECULATION_CTRL = 0x34
|
||||
PR_GET_THP_DISABLE = 0x2a
|
||||
PR_GET_TID_ADDRESS = 0x28
|
||||
PR_GET_TIMERSLACK = 0x1e
|
||||
|
@ -1212,11 +1336,18 @@ const (
|
|||
PR_SET_PTRACER_ANY = 0xffffffff
|
||||
PR_SET_SECCOMP = 0x16
|
||||
PR_SET_SECUREBITS = 0x1c
|
||||
PR_SET_SPECULATION_CTRL = 0x35
|
||||
PR_SET_THP_DISABLE = 0x29
|
||||
PR_SET_TIMERSLACK = 0x1d
|
||||
PR_SET_TIMING = 0xe
|
||||
PR_SET_TSC = 0x1a
|
||||
PR_SET_UNALIGN = 0x6
|
||||
PR_SPEC_DISABLE = 0x4
|
||||
PR_SPEC_ENABLE = 0x2
|
||||
PR_SPEC_FORCE_DISABLE = 0x8
|
||||
PR_SPEC_NOT_AFFECTED = 0x0
|
||||
PR_SPEC_PRCTL = 0x1
|
||||
PR_SPEC_STORE_BYPASS = 0x0
|
||||
PR_SVE_GET_VL = 0x33
|
||||
PR_SVE_SET_VL = 0x32
|
||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||
|
@ -1230,6 +1361,7 @@ const (
|
|||
PR_TSC_SIGSEGV = 0x2
|
||||
PR_UNALIGN_NOPRINT = 0x1
|
||||
PR_UNALIGN_SIGBUS = 0x2
|
||||
PSTOREFS_MAGIC = 0x6165676c
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
|
@ -1278,6 +1410,7 @@ const (
|
|||
PTRACE_POKETEXT_3264 = 0xc2
|
||||
PTRACE_POKEUSR = 0x6
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||
PTRACE_SEIZE = 0x4206
|
||||
PTRACE_SETFPREGS = 0xf
|
||||
PTRACE_SETOPTIONS = 0x4200
|
||||
|
@ -1290,6 +1423,11 @@ const (
|
|||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_TRACEME = 0x0
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
RAMFS_MAGIC = 0x858458f6
|
||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||
REISERFS_SUPER_MAGIC = 0x52654973
|
||||
RLIMIT_AS = 0x6
|
||||
RLIMIT_CORE = 0x4
|
||||
RLIMIT_CPU = 0x0
|
||||
|
@ -1339,6 +1477,33 @@ const (
|
|||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTC_AF = 0x20
|
||||
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_IRQF = 0x80
|
||||
RTC_IRQP_READ = 0x4004700b
|
||||
RTC_IRQP_SET = 0x8004700c
|
||||
RTC_MAX_FREQ = 0x2000
|
||||
RTC_PF = 0x40
|
||||
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_UF = 0x10
|
||||
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
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
|
@ -1475,6 +1640,8 @@ const (
|
|||
SECCOMP_MODE_DISABLED = 0x0
|
||||
SECCOMP_MODE_FILTER = 0x2
|
||||
SECCOMP_MODE_STRICT = 0x1
|
||||
SECURITYFS_MAGIC = 0x73636673
|
||||
SELINUX_MAGIC = 0xf97cff8c
|
||||
SHUT_RD = 0x0
|
||||
SHUT_RDWR = 0x2
|
||||
SHUT_WR = 0x1
|
||||
|
@ -1559,6 +1726,23 @@ const (
|
|||
SIOCSPGRP = 0x80047308
|
||||
SIOCSRARP = 0x8962
|
||||
SIOCWANDEV = 0x894a
|
||||
SMACK_MAGIC = 0x43415d53
|
||||
SMART_AUTOSAVE = 0xd2
|
||||
SMART_AUTO_OFFLINE = 0xdb
|
||||
SMART_DISABLE = 0xd9
|
||||
SMART_ENABLE = 0xd8
|
||||
SMART_HCYL_PASS = 0xc2
|
||||
SMART_IMMEDIATE_OFFLINE = 0xd4
|
||||
SMART_LCYL_PASS = 0x4f
|
||||
SMART_READ_LOG_SECTOR = 0xd5
|
||||
SMART_READ_THRESHOLDS = 0xd1
|
||||
SMART_READ_VALUES = 0xd0
|
||||
SMART_SAVE = 0xd3
|
||||
SMART_STATUS = 0xda
|
||||
SMART_WRITE_LOG_SECTOR = 0xd6
|
||||
SMART_WRITE_THRESHOLDS = 0xd7
|
||||
SMB_SUPER_MAGIC = 0x517b
|
||||
SOCKFS_MAGIC = 0x534f434b
|
||||
SOCK_CLOEXEC = 0x80000
|
||||
SOCK_DCCP = 0x6
|
||||
SOCK_DGRAM = 0x1
|
||||
|
@ -1670,6 +1854,8 @@ const (
|
|||
SPLICE_F_MORE = 0x4
|
||||
SPLICE_F_MOVE = 0x1
|
||||
SPLICE_F_NONBLOCK = 0x2
|
||||
SQUASHFS_MAGIC = 0x73717368
|
||||
STACK_END_MAGIC = 0x57ac6e9d
|
||||
STATX_ALL = 0xfff
|
||||
STATX_ATIME = 0x20
|
||||
STATX_ATTR_APPEND = 0x20
|
||||
|
@ -1691,6 +1877,7 @@ const (
|
|||
STATX_TYPE = 0x1
|
||||
STATX_UID = 0x8
|
||||
STATX__RESERVED = 0x80000000
|
||||
SYSFS_MAGIC = 0x62656572
|
||||
S_BLKSIZE = 0x200
|
||||
S_IEXEC = 0x40
|
||||
S_IFBLK = 0x6000
|
||||
|
@ -1873,7 +2060,27 @@ const (
|
|||
TIOCSTI = 0x5472
|
||||
TIOCSWINSZ = 0x80087467
|
||||
TIOCVHANGUP = 0x5437
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x8000
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
TPACKET_HDRLEN = 0x34
|
||||
TP_STATUS_AVAILABLE = 0x0
|
||||
TP_STATUS_BLK_TMO = 0x20
|
||||
TP_STATUS_COPY = 0x2
|
||||
TP_STATUS_CSUMNOTREADY = 0x8
|
||||
TP_STATUS_CSUM_VALID = 0x80
|
||||
TP_STATUS_KERNEL = 0x0
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
TP_STATUS_VLAN_TPID_VALID = 0x40
|
||||
TP_STATUS_VLAN_VALID = 0x10
|
||||
TP_STATUS_WRONG_FORMAT = 0x4
|
||||
TRACEFS_MAGIC = 0x74726163
|
||||
TS_COMM_LEN = 0x20
|
||||
TUNATTACHFILTER = 0x800854d5
|
||||
TUNDETACHFILTER = 0x800854d6
|
||||
|
@ -1885,6 +2092,7 @@ const (
|
|||
TUNGETVNETHDRSZ = 0x400454d7
|
||||
TUNGETVNETLE = 0x400454dd
|
||||
TUNSETDEBUG = 0x800454c9
|
||||
TUNSETFILTEREBPF = 0x400454e1
|
||||
TUNSETGROUP = 0x800454ce
|
||||
TUNSETIFF = 0x800454ca
|
||||
TUNSETIFINDEX = 0x800454da
|
||||
|
@ -1895,13 +2103,17 @@ const (
|
|||
TUNSETPERSIST = 0x800454cb
|
||||
TUNSETQUEUE = 0x800454d9
|
||||
TUNSETSNDBUF = 0x800454d4
|
||||
TUNSETSTEERINGEBPF = 0x400454e0
|
||||
TUNSETTXFILTER = 0x800454d1
|
||||
TUNSETVNETBE = 0x800454de
|
||||
TUNSETVNETHDRSZ = 0x800454d8
|
||||
TUNSETVNETLE = 0x800454dc
|
||||
UDF_SUPER_MAGIC = 0x15013346
|
||||
UMOUNT_NOFOLLOW = 0x8
|
||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||
UTIME_NOW = 0x3fffffff
|
||||
UTIME_OMIT = 0x3ffffffe
|
||||
V9FS_MAGIC = 0x1021997
|
||||
VDISCARD = 0xd
|
||||
VEOF = 0x10
|
||||
VEOL = 0x11
|
||||
|
@ -1944,6 +2156,86 @@ const (
|
|||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||
WDIOC_SETTIMEOUT = 0xc0045706
|
||||
WEXITED = 0x4
|
||||
WIN_ACKMEDIACHANGE = 0xdb
|
||||
WIN_CHECKPOWERMODE1 = 0xe5
|
||||
WIN_CHECKPOWERMODE2 = 0x98
|
||||
WIN_DEVICE_RESET = 0x8
|
||||
WIN_DIAGNOSE = 0x90
|
||||
WIN_DOORLOCK = 0xde
|
||||
WIN_DOORUNLOCK = 0xdf
|
||||
WIN_DOWNLOAD_MICROCODE = 0x92
|
||||
WIN_FLUSH_CACHE = 0xe7
|
||||
WIN_FLUSH_CACHE_EXT = 0xea
|
||||
WIN_FORMAT = 0x50
|
||||
WIN_GETMEDIASTATUS = 0xda
|
||||
WIN_IDENTIFY = 0xec
|
||||
WIN_IDENTIFY_DMA = 0xee
|
||||
WIN_IDLEIMMEDIATE = 0xe1
|
||||
WIN_INIT = 0x60
|
||||
WIN_MEDIAEJECT = 0xed
|
||||
WIN_MULTREAD = 0xc4
|
||||
WIN_MULTREAD_EXT = 0x29
|
||||
WIN_MULTWRITE = 0xc5
|
||||
WIN_MULTWRITE_EXT = 0x39
|
||||
WIN_NOP = 0x0
|
||||
WIN_PACKETCMD = 0xa0
|
||||
WIN_PIDENTIFY = 0xa1
|
||||
WIN_POSTBOOT = 0xdc
|
||||
WIN_PREBOOT = 0xdd
|
||||
WIN_QUEUED_SERVICE = 0xa2
|
||||
WIN_READ = 0x20
|
||||
WIN_READDMA = 0xc8
|
||||
WIN_READDMA_EXT = 0x25
|
||||
WIN_READDMA_ONCE = 0xc9
|
||||
WIN_READDMA_QUEUED = 0xc7
|
||||
WIN_READDMA_QUEUED_EXT = 0x26
|
||||
WIN_READ_BUFFER = 0xe4
|
||||
WIN_READ_EXT = 0x24
|
||||
WIN_READ_LONG = 0x22
|
||||
WIN_READ_LONG_ONCE = 0x23
|
||||
WIN_READ_NATIVE_MAX = 0xf8
|
||||
WIN_READ_NATIVE_MAX_EXT = 0x27
|
||||
WIN_READ_ONCE = 0x21
|
||||
WIN_RECAL = 0x10
|
||||
WIN_RESTORE = 0x10
|
||||
WIN_SECURITY_DISABLE = 0xf6
|
||||
WIN_SECURITY_ERASE_PREPARE = 0xf3
|
||||
WIN_SECURITY_ERASE_UNIT = 0xf4
|
||||
WIN_SECURITY_FREEZE_LOCK = 0xf5
|
||||
WIN_SECURITY_SET_PASS = 0xf1
|
||||
WIN_SECURITY_UNLOCK = 0xf2
|
||||
WIN_SEEK = 0x70
|
||||
WIN_SETFEATURES = 0xef
|
||||
WIN_SETIDLE1 = 0xe3
|
||||
WIN_SETIDLE2 = 0x97
|
||||
WIN_SETMULT = 0xc6
|
||||
WIN_SET_MAX = 0xf9
|
||||
WIN_SET_MAX_EXT = 0x37
|
||||
WIN_SLEEPNOW1 = 0xe6
|
||||
WIN_SLEEPNOW2 = 0x99
|
||||
WIN_SMART = 0xb0
|
||||
WIN_SPECIFY = 0x91
|
||||
WIN_SRST = 0x8
|
||||
WIN_STANDBY = 0xe2
|
||||
WIN_STANDBY2 = 0x96
|
||||
WIN_STANDBYNOW1 = 0xe0
|
||||
WIN_STANDBYNOW2 = 0x94
|
||||
WIN_VERIFY = 0x40
|
||||
WIN_VERIFY_EXT = 0x42
|
||||
WIN_VERIFY_ONCE = 0x41
|
||||
WIN_WRITE = 0x30
|
||||
WIN_WRITEDMA = 0xca
|
||||
WIN_WRITEDMA_EXT = 0x35
|
||||
WIN_WRITEDMA_ONCE = 0xcb
|
||||
WIN_WRITEDMA_QUEUED = 0xcc
|
||||
WIN_WRITEDMA_QUEUED_EXT = 0x36
|
||||
WIN_WRITE_BUFFER = 0xe8
|
||||
WIN_WRITE_EXT = 0x34
|
||||
WIN_WRITE_LONG = 0x32
|
||||
WIN_WRITE_LONG_ONCE = 0x33
|
||||
WIN_WRITE_ONCE = 0x31
|
||||
WIN_WRITE_SAME = 0xe9
|
||||
WIN_WRITE_VERIFY = 0x3c
|
||||
WNOHANG = 0x1
|
||||
WNOTHREAD = 0x20000000
|
||||
WNOWAIT = 0x1000000
|
||||
|
@ -1953,7 +2245,9 @@ const (
|
|||
XATTR_CREATE = 0x1
|
||||
XATTR_REPLACE = 0x2
|
||||
XCASE = 0x4
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XTABS = 0x1800
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
// Errors
|
||||
|
@ -2135,174 +2429,182 @@ const (
|
|||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "no such device or address",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource temporarily unavailable",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device or resource busy",
|
||||
17: "file exists",
|
||||
18: "invalid cross-device link",
|
||||
19: "no such device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "numerical result out of range",
|
||||
35: "no message of desired type",
|
||||
36: "identifier removed",
|
||||
37: "channel number out of range",
|
||||
38: "level 2 not synchronized",
|
||||
39: "level 3 halted",
|
||||
40: "level 3 reset",
|
||||
41: "link number out of range",
|
||||
42: "protocol driver not attached",
|
||||
43: "no CSI structure available",
|
||||
44: "level 2 halted",
|
||||
45: "resource deadlock avoided",
|
||||
46: "no locks available",
|
||||
50: "invalid exchange",
|
||||
51: "invalid request descriptor",
|
||||
52: "exchange full",
|
||||
53: "no anode",
|
||||
54: "invalid request code",
|
||||
55: "invalid slot",
|
||||
56: "file locking deadlock error",
|
||||
59: "bad font file format",
|
||||
60: "device not a stream",
|
||||
61: "no data available",
|
||||
62: "timer expired",
|
||||
63: "out of streams resources",
|
||||
64: "machine is not on the network",
|
||||
65: "package not installed",
|
||||
66: "object is remote",
|
||||
67: "link has been severed",
|
||||
68: "advertise error",
|
||||
69: "srmount error",
|
||||
70: "communication error on send",
|
||||
71: "protocol error",
|
||||
73: "RFS specific error",
|
||||
74: "multihop attempted",
|
||||
77: "bad message",
|
||||
78: "file name too long",
|
||||
79: "value too large for defined data type",
|
||||
80: "name not unique on network",
|
||||
81: "file descriptor in bad state",
|
||||
82: "remote address changed",
|
||||
83: "can not access a needed shared library",
|
||||
84: "accessing a corrupted shared library",
|
||||
85: ".lib section in a.out corrupted",
|
||||
86: "attempting to link in too many shared libraries",
|
||||
87: "cannot exec a shared library directly",
|
||||
88: "invalid or incomplete multibyte or wide character",
|
||||
89: "function not implemented",
|
||||
90: "too many levels of symbolic links",
|
||||
91: "interrupted system call should be restarted",
|
||||
92: "streams pipe error",
|
||||
93: "directory not empty",
|
||||
94: "too many users",
|
||||
95: "socket operation on non-socket",
|
||||
96: "destination address required",
|
||||
97: "message too long",
|
||||
98: "protocol wrong type for socket",
|
||||
99: "protocol not available",
|
||||
120: "protocol not supported",
|
||||
121: "socket type not supported",
|
||||
122: "operation not supported",
|
||||
123: "protocol family not supported",
|
||||
124: "address family not supported by protocol",
|
||||
125: "address already in use",
|
||||
126: "cannot assign requested address",
|
||||
127: "network is down",
|
||||
128: "network is unreachable",
|
||||
129: "network dropped connection on reset",
|
||||
130: "software caused connection abort",
|
||||
131: "connection reset by peer",
|
||||
132: "no buffer space available",
|
||||
133: "transport endpoint is already connected",
|
||||
134: "transport endpoint is not connected",
|
||||
135: "structure needs cleaning",
|
||||
137: "not a XENIX named type file",
|
||||
138: "no XENIX semaphores available",
|
||||
139: "is a named type file",
|
||||
140: "remote I/O error",
|
||||
141: "unknown error 141",
|
||||
142: "unknown error 142",
|
||||
143: "cannot send after transport endpoint shutdown",
|
||||
144: "too many references: cannot splice",
|
||||
145: "connection timed out",
|
||||
146: "connection refused",
|
||||
147: "host is down",
|
||||
148: "no route to host",
|
||||
149: "operation already in progress",
|
||||
150: "operation now in progress",
|
||||
151: "stale file handle",
|
||||
158: "operation canceled",
|
||||
159: "no medium found",
|
||||
160: "wrong medium type",
|
||||
161: "required key not available",
|
||||
162: "key has expired",
|
||||
163: "key has been revoked",
|
||||
164: "key was rejected by service",
|
||||
165: "owner died",
|
||||
166: "state not recoverable",
|
||||
167: "operation not possible due to RF-kill",
|
||||
168: "memory page has hardware error",
|
||||
1133: "disk quota exceeded",
|
||||
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, "ENOMSG", "no message of desired type"},
|
||||
{36, "EIDRM", "identifier removed"},
|
||||
{37, "ECHRNG", "channel number out of range"},
|
||||
{38, "EL2NSYNC", "level 2 not synchronized"},
|
||||
{39, "EL3HLT", "level 3 halted"},
|
||||
{40, "EL3RST", "level 3 reset"},
|
||||
{41, "ELNRNG", "link number out of range"},
|
||||
{42, "EUNATCH", "protocol driver not attached"},
|
||||
{43, "ENOCSI", "no CSI structure available"},
|
||||
{44, "EL2HLT", "level 2 halted"},
|
||||
{45, "EDEADLK", "resource deadlock avoided"},
|
||||
{46, "ENOLCK", "no locks available"},
|
||||
{50, "EBADE", "invalid exchange"},
|
||||
{51, "EBADR", "invalid request descriptor"},
|
||||
{52, "EXFULL", "exchange full"},
|
||||
{53, "ENOANO", "no anode"},
|
||||
{54, "EBADRQC", "invalid request code"},
|
||||
{55, "EBADSLT", "invalid slot"},
|
||||
{56, "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"},
|
||||
{73, "EDOTDOT", "RFS specific error"},
|
||||
{74, "EMULTIHOP", "multihop attempted"},
|
||||
{77, "EBADMSG", "bad message"},
|
||||
{78, "ENAMETOOLONG", "file name too long"},
|
||||
{79, "EOVERFLOW", "value too large for defined data type"},
|
||||
{80, "ENOTUNIQ", "name not unique on network"},
|
||||
{81, "EBADFD", "file descriptor in bad state"},
|
||||
{82, "EREMCHG", "remote address changed"},
|
||||
{83, "ELIBACC", "can not access a needed shared library"},
|
||||
{84, "ELIBBAD", "accessing a corrupted shared library"},
|
||||
{85, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||
{86, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||
{87, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||
{88, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||
{89, "ENOSYS", "function not implemented"},
|
||||
{90, "ELOOP", "too many levels of symbolic links"},
|
||||
{91, "ERESTART", "interrupted system call should be restarted"},
|
||||
{92, "ESTRPIPE", "streams pipe error"},
|
||||
{93, "ENOTEMPTY", "directory not empty"},
|
||||
{94, "EUSERS", "too many users"},
|
||||
{95, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{96, "EDESTADDRREQ", "destination address required"},
|
||||
{97, "EMSGSIZE", "message too long"},
|
||||
{98, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{99, "ENOPROTOOPT", "protocol not available"},
|
||||
{120, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{121, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{122, "ENOTSUP", "operation not supported"},
|
||||
{123, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{124, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||
{125, "EADDRINUSE", "address already in use"},
|
||||
{126, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||
{127, "ENETDOWN", "network is down"},
|
||||
{128, "ENETUNREACH", "network is unreachable"},
|
||||
{129, "ENETRESET", "network dropped connection on reset"},
|
||||
{130, "ECONNABORTED", "software caused connection abort"},
|
||||
{131, "ECONNRESET", "connection reset by peer"},
|
||||
{132, "ENOBUFS", "no buffer space available"},
|
||||
{133, "EISCONN", "transport endpoint is already connected"},
|
||||
{134, "ENOTCONN", "transport endpoint is not connected"},
|
||||
{135, "EUCLEAN", "structure needs cleaning"},
|
||||
{137, "ENOTNAM", "not a XENIX named type file"},
|
||||
{138, "ENAVAIL", "no XENIX semaphores available"},
|
||||
{139, "EISNAM", "is a named type file"},
|
||||
{140, "EREMOTEIO", "remote I/O error"},
|
||||
{141, "EINIT", "unknown error 141"},
|
||||
{142, "EREMDEV", "unknown error 142"},
|
||||
{143, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||
{144, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||
{145, "ETIMEDOUT", "connection timed out"},
|
||||
{146, "ECONNREFUSED", "connection refused"},
|
||||
{147, "EHOSTDOWN", "host is down"},
|
||||
{148, "EHOSTUNREACH", "no route to host"},
|
||||
{149, "EALREADY", "operation already in progress"},
|
||||
{150, "EINPROGRESS", "operation now in progress"},
|
||||
{151, "ESTALE", "stale file handle"},
|
||||
{158, "ECANCELED", "operation canceled"},
|
||||
{159, "ENOMEDIUM", "no medium found"},
|
||||
{160, "EMEDIUMTYPE", "wrong medium type"},
|
||||
{161, "ENOKEY", "required key not available"},
|
||||
{162, "EKEYEXPIRED", "key has expired"},
|
||||
{163, "EKEYREVOKED", "key has been revoked"},
|
||||
{164, "EKEYREJECTED", "key was rejected by service"},
|
||||
{165, "EOWNERDEAD", "owner died"},
|
||||
{166, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{167, "ERFKILL", "operation not possible due to RF-kill"},
|
||||
{168, "EHWPOISON", "memory page has hardware error"},
|
||||
{1133, "EDQUOT", "disk quota exceeded"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/breakpoint trap",
|
||||
6: "aborted",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "user defined signal 1",
|
||||
17: "user defined signal 2",
|
||||
18: "child exited",
|
||||
19: "power failure",
|
||||
20: "window changed",
|
||||
21: "urgent I/O condition",
|
||||
22: "I/O possible",
|
||||
23: "stopped (signal)",
|
||||
24: "stopped",
|
||||
25: "continued",
|
||||
26: "stopped (tty input)",
|
||||
27: "stopped (tty output)",
|
||||
28: "virtual timer expired",
|
||||
29: "profiling timer expired",
|
||||
30: "CPU time limit exceeded",
|
||||
31: "file size limit exceeded",
|
||||
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, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGUSR1", "user defined signal 1"},
|
||||
{17, "SIGUSR2", "user defined signal 2"},
|
||||
{18, "SIGCHLD", "child exited"},
|
||||
{19, "SIGPWR", "power failure"},
|
||||
{20, "SIGWINCH", "window changed"},
|
||||
{21, "SIGURG", "urgent I/O condition"},
|
||||
{22, "SIGIO", "I/O possible"},
|
||||
{23, "SIGSTOP", "stopped (signal)"},
|
||||
{24, "SIGTSTP", "stopped"},
|
||||
{25, "SIGCONT", "continued"},
|
||||
{26, "SIGTTIN", "stopped (tty input)"},
|
||||
{27, "SIGTTOU", "stopped (tty output)"},
|
||||
{28, "SIGVTALRM", "virtual timer expired"},
|
||||
{29, "SIGPROF", "profiling timer expired"},
|
||||
{30, "SIGXCPU", "CPU time limit exceeded"},
|
||||
{31, "SIGXFSZ", "file size limit exceeded"},
|
||||
}
|
||||
|
|
638
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
638
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
|
@ -3,7 +3,7 @@
|
|||
|
||||
// +build mips64,linux
|
||||
|
||||
// Created by cgo -godefs - DO NOT EDIT
|
||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||
|
||||
package unix
|
||||
|
@ -11,6 +11,11 @@ package unix
|
|||
import "syscall"
|
||||
|
||||
const (
|
||||
AAFS_MAGIC = 0x5a3c69f0
|
||||
ADFS_SUPER_MAGIC = 0xadf5
|
||||
AFFS_SUPER_MAGIC = 0xadff
|
||||
AFS_FS_MAGIC = 0x6b414653
|
||||
AFS_SUPER_MAGIC = 0x5346414f
|
||||
AF_ALG = 0x26
|
||||
AF_APPLETALK = 0x5
|
||||
AF_ASH = 0x12
|
||||
|
@ -66,6 +71,7 @@ const (
|
|||
ALG_SET_IV = 0x2
|
||||
ALG_SET_KEY = 0x1
|
||||
ALG_SET_OP = 0x3
|
||||
ANON_INODE_FS_MAGIC = 0x9041934
|
||||
ARPHRD_6LOWPAN = 0x339
|
||||
ARPHRD_ADAPT = 0x108
|
||||
ARPHRD_APPLETLK = 0x8
|
||||
|
@ -133,6 +139,7 @@ const (
|
|||
ARPHRD_VOID = 0xffff
|
||||
ARPHRD_VSOCKMON = 0x33a
|
||||
ARPHRD_X25 = 0x10f
|
||||
AUTOFS_SUPER_MAGIC = 0x187
|
||||
B0 = 0x0
|
||||
B1000000 = 0x1008
|
||||
B110 = 0x3
|
||||
|
@ -164,6 +171,9 @@ const (
|
|||
B75 = 0x2
|
||||
B921600 = 0x1007
|
||||
B9600 = 0xd
|
||||
BALLOON_KVM_MAGIC = 0x13661366
|
||||
BDEVFS_MAGIC = 0x62646576
|
||||
BINFMTFS_MAGIC = 0x42494e4d
|
||||
BLKBSZGET = 0x40081270
|
||||
BLKBSZSET = 0x80081271
|
||||
BLKFLSBUF = 0x20001261
|
||||
|
@ -188,6 +198,7 @@ const (
|
|||
BPF_AND = 0x50
|
||||
BPF_B = 0x10
|
||||
BPF_DIV = 0x30
|
||||
BPF_FS_MAGIC = 0xcafe4a11
|
||||
BPF_H = 0x8
|
||||
BPF_IMM = 0x0
|
||||
BPF_IND = 0x40
|
||||
|
@ -229,6 +240,8 @@ const (
|
|||
BS0 = 0x0
|
||||
BS1 = 0x2000
|
||||
BSDLY = 0x2000
|
||||
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||
BTRFS_TEST_MAGIC = 0x73727279
|
||||
CAN_BCM = 0x2
|
||||
CAN_EFF_FLAG = 0x80000000
|
||||
CAN_EFF_ID_BITS = 0x1d
|
||||
|
@ -252,6 +265,8 @@ const (
|
|||
CBAUD = 0x100f
|
||||
CBAUDEX = 0x1000
|
||||
CFLUSH = 0xf
|
||||
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||
CIBAUD = 0x100f0000
|
||||
CLOCAL = 0x800
|
||||
CLOCK_BOOTTIME = 0x7
|
||||
|
@ -294,10 +309,12 @@ const (
|
|||
CLONE_VFORK = 0x4000
|
||||
CLONE_VM = 0x100
|
||||
CMSPAR = 0x40000000
|
||||
CODA_SUPER_MAGIC = 0x73757245
|
||||
CR0 = 0x0
|
||||
CR1 = 0x200
|
||||
CR2 = 0x400
|
||||
CR3 = 0x600
|
||||
CRAMFS_MAGIC = 0x28cd3d45
|
||||
CRDLY = 0x600
|
||||
CREAD = 0x80
|
||||
CRTSCTS = 0x80000000
|
||||
|
@ -312,6 +329,9 @@ const (
|
|||
CSTOP = 0x13
|
||||
CSTOPB = 0x40
|
||||
CSUSP = 0x1a
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
|
@ -328,9 +348,12 @@ const (
|
|||
ECHOKE = 0x800
|
||||
ECHONL = 0x40
|
||||
ECHOPRT = 0x400
|
||||
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||
EFD_CLOEXEC = 0x80000
|
||||
EFD_NONBLOCK = 0x80
|
||||
EFD_SEMAPHORE = 0x1
|
||||
EFIVARFS_MAGIC = 0xde5e81e4
|
||||
EFS_SUPER_MAGIC = 0x414a53
|
||||
ENCODING_DEFAULT = 0x0
|
||||
ENCODING_FM_MARK = 0x3
|
||||
ENCODING_FM_SPACE = 0x4
|
||||
|
@ -392,6 +415,7 @@ const (
|
|||
ETH_P_ECONET = 0x18
|
||||
ETH_P_EDSA = 0xdada
|
||||
ETH_P_ERSPAN = 0x88be
|
||||
ETH_P_ERSPAN2 = 0x22eb
|
||||
ETH_P_FCOE = 0x8906
|
||||
ETH_P_FIP = 0x8914
|
||||
ETH_P_HDLC = 0x19
|
||||
|
@ -425,6 +449,7 @@ const (
|
|||
ETH_P_PPP_DISC = 0x8863
|
||||
ETH_P_PPP_MP = 0x8
|
||||
ETH_P_PPP_SES = 0x8864
|
||||
ETH_P_PREAUTH = 0x88c7
|
||||
ETH_P_PRP = 0x88fb
|
||||
ETH_P_PUP = 0x200
|
||||
ETH_P_PUPAT = 0x201
|
||||
|
@ -445,9 +470,14 @@ const (
|
|||
ETH_P_WCCP = 0x883e
|
||||
ETH_P_X25 = 0x805
|
||||
ETH_P_XDSA = 0xf8
|
||||
EXABYTE_ENABLE_NEST = 0xf0
|
||||
EXT2_SUPER_MAGIC = 0xef53
|
||||
EXT3_SUPER_MAGIC = 0xef53
|
||||
EXT4_SUPER_MAGIC = 0xef53
|
||||
EXTA = 0xe
|
||||
EXTB = 0xf
|
||||
EXTPROC = 0x10000
|
||||
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||
FALLOC_FL_INSERT_RANGE = 0x20
|
||||
FALLOC_FL_KEEP_SIZE = 0x1
|
||||
|
@ -481,6 +511,7 @@ const (
|
|||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||
FS_POLICY_FLAGS_VALID = 0x3
|
||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||
F_ADD_SEALS = 0x409
|
||||
F_DUPFD = 0x0
|
||||
F_DUPFD_CLOEXEC = 0x406
|
||||
|
@ -542,6 +573,49 @@ const (
|
|||
GENL_UNS_ADMIN_PERM = 0x10
|
||||
GRND_NONBLOCK = 0x1
|
||||
GRND_RANDOM = 0x2
|
||||
HDIO_DRIVE_CMD = 0x31f
|
||||
HDIO_DRIVE_CMD_AEB = 0x31e
|
||||
HDIO_DRIVE_CMD_HDR_SIZE = 0x4
|
||||
HDIO_DRIVE_HOB_HDR_SIZE = 0x8
|
||||
HDIO_DRIVE_RESET = 0x31c
|
||||
HDIO_DRIVE_TASK = 0x31e
|
||||
HDIO_DRIVE_TASKFILE = 0x31d
|
||||
HDIO_DRIVE_TASK_HDR_SIZE = 0x8
|
||||
HDIO_GETGEO = 0x301
|
||||
HDIO_GET_32BIT = 0x309
|
||||
HDIO_GET_ACOUSTIC = 0x30f
|
||||
HDIO_GET_ADDRESS = 0x310
|
||||
HDIO_GET_BUSSTATE = 0x31a
|
||||
HDIO_GET_DMA = 0x30b
|
||||
HDIO_GET_IDENTITY = 0x30d
|
||||
HDIO_GET_KEEPSETTINGS = 0x308
|
||||
HDIO_GET_MULTCOUNT = 0x304
|
||||
HDIO_GET_NICE = 0x30c
|
||||
HDIO_GET_NOWERR = 0x30a
|
||||
HDIO_GET_QDMA = 0x305
|
||||
HDIO_GET_UNMASKINTR = 0x302
|
||||
HDIO_GET_WCACHE = 0x30e
|
||||
HDIO_OBSOLETE_IDENTITY = 0x307
|
||||
HDIO_SCAN_HWIF = 0x328
|
||||
HDIO_SET_32BIT = 0x324
|
||||
HDIO_SET_ACOUSTIC = 0x32c
|
||||
HDIO_SET_ADDRESS = 0x32f
|
||||
HDIO_SET_BUSSTATE = 0x32d
|
||||
HDIO_SET_DMA = 0x326
|
||||
HDIO_SET_KEEPSETTINGS = 0x323
|
||||
HDIO_SET_MULTCOUNT = 0x321
|
||||
HDIO_SET_NICE = 0x329
|
||||
HDIO_SET_NOWERR = 0x325
|
||||
HDIO_SET_PIO_MODE = 0x327
|
||||
HDIO_SET_QDMA = 0x32e
|
||||
HDIO_SET_UNMASKINTR = 0x322
|
||||
HDIO_SET_WCACHE = 0x32b
|
||||
HDIO_SET_XFER = 0x306
|
||||
HDIO_TRISTATE_HWIF = 0x31b
|
||||
HDIO_UNREGISTER_HWIF = 0x32a
|
||||
HOSTFS_SUPER_MAGIC = 0xc0ffee
|
||||
HPFS_SUPER_MAGIC = 0xf995e849
|
||||
HUGETLBFS_MAGIC = 0x958458f6
|
||||
HUPCL = 0x400
|
||||
IBSHIFT = 0x10
|
||||
ICANON = 0x2
|
||||
|
@ -792,12 +866,14 @@ const (
|
|||
IP_UNICAST_IF = 0x32
|
||||
IP_XFRM_POLICY = 0x11
|
||||
ISIG = 0x1
|
||||
ISOFS_SUPER_MAGIC = 0x9660
|
||||
ISTRIP = 0x20
|
||||
IUCLC = 0x200
|
||||
IUTF8 = 0x4000
|
||||
IXANY = 0x800
|
||||
IXOFF = 0x1000
|
||||
IXON = 0x400
|
||||
JFFS2_SUPER_MAGIC = 0x72b6
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
|
@ -894,9 +970,15 @@ const (
|
|||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
MCL_ONFAULT = 0x4
|
||||
MINIX2_SUPER_MAGIC = 0x2468
|
||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||
MINIX_SUPER_MAGIC = 0x137f
|
||||
MINIX_SUPER_MAGIC2 = 0x138f
|
||||
MNT_DETACH = 0x2
|
||||
MNT_EXPIRE = 0x4
|
||||
MNT_FORCE = 0x1
|
||||
MSDOS_SUPER_MAGIC = 0x4d44
|
||||
MSG_BATCH = 0x40000
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
MSG_CONFIRM = 0x800
|
||||
|
@ -956,7 +1038,9 @@ const (
|
|||
MS_SYNCHRONOUS = 0x10
|
||||
MS_UNBINDABLE = 0x20000
|
||||
MS_VERBOSE = 0x8000
|
||||
MTD_INODE_FS_MAGIC = 0x11307854
|
||||
NAME_MAX = 0xff
|
||||
NCP_SUPER_MAGIC = 0x564c
|
||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||
NETLINK_AUDIT = 0x9
|
||||
NETLINK_BROADCAST_ERROR = 0x4
|
||||
|
@ -991,6 +1075,37 @@ const (
|
|||
NETLINK_UNUSED = 0x1
|
||||
NETLINK_USERSOCK = 0x2
|
||||
NETLINK_XFRM = 0x6
|
||||
NFNETLINK_V0 = 0x0
|
||||
NFNLGRP_ACCT_QUOTA = 0x8
|
||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||
NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
|
||||
NFNLGRP_CONNTRACK_EXP_NEW = 0x4
|
||||
NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
|
||||
NFNLGRP_CONNTRACK_NEW = 0x1
|
||||
NFNLGRP_CONNTRACK_UPDATE = 0x2
|
||||
NFNLGRP_MAX = 0x9
|
||||
NFNLGRP_NFTABLES = 0x7
|
||||
NFNLGRP_NFTRACE = 0x9
|
||||
NFNLGRP_NONE = 0x0
|
||||
NFNL_BATCH_MAX = 0x1
|
||||
NFNL_MSG_BATCH_BEGIN = 0x10
|
||||
NFNL_MSG_BATCH_END = 0x11
|
||||
NFNL_NFA_NEST = 0x8000
|
||||
NFNL_SUBSYS_ACCT = 0x7
|
||||
NFNL_SUBSYS_COUNT = 0xc
|
||||
NFNL_SUBSYS_CTHELPER = 0x9
|
||||
NFNL_SUBSYS_CTNETLINK = 0x1
|
||||
NFNL_SUBSYS_CTNETLINK_EXP = 0x2
|
||||
NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
|
||||
NFNL_SUBSYS_IPSET = 0x6
|
||||
NFNL_SUBSYS_NFTABLES = 0xa
|
||||
NFNL_SUBSYS_NFT_COMPAT = 0xb
|
||||
NFNL_SUBSYS_NONE = 0x0
|
||||
NFNL_SUBSYS_OSF = 0x5
|
||||
NFNL_SUBSYS_QUEUE = 0x3
|
||||
NFNL_SUBSYS_ULOG = 0x4
|
||||
NFS_SUPER_MAGIC = 0x6969
|
||||
NILFS_SUPER_MAGIC = 0x3434
|
||||
NL0 = 0x0
|
||||
NL1 = 0x100
|
||||
NLA_ALIGNTO = 0x4
|
||||
|
@ -1023,6 +1138,8 @@ const (
|
|||
NLM_F_REQUEST = 0x1
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
OFILL = 0x40
|
||||
|
@ -1030,7 +1147,9 @@ const (
|
|||
ONLCR = 0x4
|
||||
ONLRET = 0x20
|
||||
ONOCR = 0x10
|
||||
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||
OPOST = 0x1
|
||||
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||
O_ACCMODE = 0x3
|
||||
O_APPEND = 0x8
|
||||
O_ASYNC = 0x1000
|
||||
|
@ -1115,16 +1234,20 @@ const (
|
|||
PERF_EVENT_IOC_DISABLE = 0x20002401
|
||||
PERF_EVENT_IOC_ENABLE = 0x20002400
|
||||
PERF_EVENT_IOC_ID = 0x40082407
|
||||
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b
|
||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
|
||||
PERF_EVENT_IOC_PERIOD = 0x80082404
|
||||
PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
|
||||
PERF_EVENT_IOC_REFRESH = 0x20002402
|
||||
PERF_EVENT_IOC_RESET = 0x20002403
|
||||
PERF_EVENT_IOC_SET_BPF = 0x80042408
|
||||
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
||||
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||
PIPEFS_MAGIC = 0x50495045
|
||||
PRIO_PGRP = 0x1
|
||||
PRIO_PROCESS = 0x0
|
||||
PRIO_USER = 0x2
|
||||
PROC_SUPER_MAGIC = 0x9fa0
|
||||
PROT_EXEC = 0x4
|
||||
PROT_GROWSDOWN = 0x1000000
|
||||
PROT_GROWSUP = 0x2000000
|
||||
|
@ -1167,6 +1290,7 @@ const (
|
|||
PR_GET_PDEATHSIG = 0x2
|
||||
PR_GET_SECCOMP = 0x15
|
||||
PR_GET_SECUREBITS = 0x1b
|
||||
PR_GET_SPECULATION_CTRL = 0x34
|
||||
PR_GET_THP_DISABLE = 0x2a
|
||||
PR_GET_TID_ADDRESS = 0x28
|
||||
PR_GET_TIMERSLACK = 0x1e
|
||||
|
@ -1212,11 +1336,18 @@ const (
|
|||
PR_SET_PTRACER_ANY = 0xffffffffffffffff
|
||||
PR_SET_SECCOMP = 0x16
|
||||
PR_SET_SECUREBITS = 0x1c
|
||||
PR_SET_SPECULATION_CTRL = 0x35
|
||||
PR_SET_THP_DISABLE = 0x29
|
||||
PR_SET_TIMERSLACK = 0x1d
|
||||
PR_SET_TIMING = 0xe
|
||||
PR_SET_TSC = 0x1a
|
||||
PR_SET_UNALIGN = 0x6
|
||||
PR_SPEC_DISABLE = 0x4
|
||||
PR_SPEC_ENABLE = 0x2
|
||||
PR_SPEC_FORCE_DISABLE = 0x8
|
||||
PR_SPEC_NOT_AFFECTED = 0x0
|
||||
PR_SPEC_PRCTL = 0x1
|
||||
PR_SPEC_STORE_BYPASS = 0x0
|
||||
PR_SVE_GET_VL = 0x33
|
||||
PR_SVE_SET_VL = 0x32
|
||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||
|
@ -1230,6 +1361,7 @@ const (
|
|||
PR_TSC_SIGSEGV = 0x2
|
||||
PR_UNALIGN_NOPRINT = 0x1
|
||||
PR_UNALIGN_SIGBUS = 0x2
|
||||
PSTOREFS_MAGIC = 0x6165676c
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
|
@ -1278,6 +1410,7 @@ const (
|
|||
PTRACE_POKETEXT_3264 = 0xc2
|
||||
PTRACE_POKEUSR = 0x6
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||
PTRACE_SEIZE = 0x4206
|
||||
PTRACE_SETFPREGS = 0xf
|
||||
PTRACE_SETOPTIONS = 0x4200
|
||||
|
@ -1290,6 +1423,11 @@ const (
|
|||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_TRACEME = 0x0
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
RAMFS_MAGIC = 0x858458f6
|
||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||
REISERFS_SUPER_MAGIC = 0x52654973
|
||||
RLIMIT_AS = 0x6
|
||||
RLIMIT_CORE = 0x4
|
||||
RLIMIT_CPU = 0x0
|
||||
|
@ -1339,6 +1477,33 @@ const (
|
|||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTC_AF = 0x20
|
||||
RTC_AIE_OFF = 0x20007002
|
||||
RTC_AIE_ON = 0x20007001
|
||||
RTC_ALM_READ = 0x40247008
|
||||
RTC_ALM_SET = 0x80247007
|
||||
RTC_EPOCH_READ = 0x4008700d
|
||||
RTC_EPOCH_SET = 0x8008700e
|
||||
RTC_IRQF = 0x80
|
||||
RTC_IRQP_READ = 0x4008700b
|
||||
RTC_IRQP_SET = 0x8008700c
|
||||
RTC_MAX_FREQ = 0x2000
|
||||
RTC_PF = 0x40
|
||||
RTC_PIE_OFF = 0x20007006
|
||||
RTC_PIE_ON = 0x20007005
|
||||
RTC_PLL_GET = 0x40207011
|
||||
RTC_PLL_SET = 0x80207012
|
||||
RTC_RD_TIME = 0x40247009
|
||||
RTC_SET_TIME = 0x8024700a
|
||||
RTC_UF = 0x10
|
||||
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
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
|
@ -1475,6 +1640,8 @@ const (
|
|||
SECCOMP_MODE_DISABLED = 0x0
|
||||
SECCOMP_MODE_FILTER = 0x2
|
||||
SECCOMP_MODE_STRICT = 0x1
|
||||
SECURITYFS_MAGIC = 0x73636673
|
||||
SELINUX_MAGIC = 0xf97cff8c
|
||||
SHUT_RD = 0x0
|
||||
SHUT_RDWR = 0x2
|
||||
SHUT_WR = 0x1
|
||||
|
@ -1559,6 +1726,23 @@ const (
|
|||
SIOCSPGRP = 0x80047308
|
||||
SIOCSRARP = 0x8962
|
||||
SIOCWANDEV = 0x894a
|
||||
SMACK_MAGIC = 0x43415d53
|
||||
SMART_AUTOSAVE = 0xd2
|
||||
SMART_AUTO_OFFLINE = 0xdb
|
||||
SMART_DISABLE = 0xd9
|
||||
SMART_ENABLE = 0xd8
|
||||
SMART_HCYL_PASS = 0xc2
|
||||
SMART_IMMEDIATE_OFFLINE = 0xd4
|
||||
SMART_LCYL_PASS = 0x4f
|
||||
SMART_READ_LOG_SECTOR = 0xd5
|
||||
SMART_READ_THRESHOLDS = 0xd1
|
||||
SMART_READ_VALUES = 0xd0
|
||||
SMART_SAVE = 0xd3
|
||||
SMART_STATUS = 0xda
|
||||
SMART_WRITE_LOG_SECTOR = 0xd6
|
||||
SMART_WRITE_THRESHOLDS = 0xd7
|
||||
SMB_SUPER_MAGIC = 0x517b
|
||||
SOCKFS_MAGIC = 0x534f434b
|
||||
SOCK_CLOEXEC = 0x80000
|
||||
SOCK_DCCP = 0x6
|
||||
SOCK_DGRAM = 0x1
|
||||
|
@ -1670,6 +1854,8 @@ const (
|
|||
SPLICE_F_MORE = 0x4
|
||||
SPLICE_F_MOVE = 0x1
|
||||
SPLICE_F_NONBLOCK = 0x2
|
||||
SQUASHFS_MAGIC = 0x73717368
|
||||
STACK_END_MAGIC = 0x57ac6e9d
|
||||
STATX_ALL = 0xfff
|
||||
STATX_ATIME = 0x20
|
||||
STATX_ATTR_APPEND = 0x20
|
||||
|
@ -1691,6 +1877,7 @@ const (
|
|||
STATX_TYPE = 0x1
|
||||
STATX_UID = 0x8
|
||||
STATX__RESERVED = 0x80000000
|
||||
SYSFS_MAGIC = 0x62656572
|
||||
S_BLKSIZE = 0x200
|
||||
S_IEXEC = 0x40
|
||||
S_IFBLK = 0x6000
|
||||
|
@ -1873,7 +2060,27 @@ const (
|
|||
TIOCSTI = 0x5472
|
||||
TIOCSWINSZ = 0x80087467
|
||||
TIOCVHANGUP = 0x5437
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x8000
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
TPACKET_HDRLEN = 0x34
|
||||
TP_STATUS_AVAILABLE = 0x0
|
||||
TP_STATUS_BLK_TMO = 0x20
|
||||
TP_STATUS_COPY = 0x2
|
||||
TP_STATUS_CSUMNOTREADY = 0x8
|
||||
TP_STATUS_CSUM_VALID = 0x80
|
||||
TP_STATUS_KERNEL = 0x0
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
TP_STATUS_VLAN_TPID_VALID = 0x40
|
||||
TP_STATUS_VLAN_VALID = 0x10
|
||||
TP_STATUS_WRONG_FORMAT = 0x4
|
||||
TRACEFS_MAGIC = 0x74726163
|
||||
TS_COMM_LEN = 0x20
|
||||
TUNATTACHFILTER = 0x801054d5
|
||||
TUNDETACHFILTER = 0x801054d6
|
||||
|
@ -1885,6 +2092,7 @@ const (
|
|||
TUNGETVNETHDRSZ = 0x400454d7
|
||||
TUNGETVNETLE = 0x400454dd
|
||||
TUNSETDEBUG = 0x800454c9
|
||||
TUNSETFILTEREBPF = 0x400454e1
|
||||
TUNSETGROUP = 0x800454ce
|
||||
TUNSETIFF = 0x800454ca
|
||||
TUNSETIFINDEX = 0x800454da
|
||||
|
@ -1895,13 +2103,17 @@ const (
|
|||
TUNSETPERSIST = 0x800454cb
|
||||
TUNSETQUEUE = 0x800454d9
|
||||
TUNSETSNDBUF = 0x800454d4
|
||||
TUNSETSTEERINGEBPF = 0x400454e0
|
||||
TUNSETTXFILTER = 0x800454d1
|
||||
TUNSETVNETBE = 0x800454de
|
||||
TUNSETVNETHDRSZ = 0x800454d8
|
||||
TUNSETVNETLE = 0x800454dc
|
||||
UDF_SUPER_MAGIC = 0x15013346
|
||||
UMOUNT_NOFOLLOW = 0x8
|
||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||
UTIME_NOW = 0x3fffffff
|
||||
UTIME_OMIT = 0x3ffffffe
|
||||
V9FS_MAGIC = 0x1021997
|
||||
VDISCARD = 0xd
|
||||
VEOF = 0x10
|
||||
VEOL = 0x11
|
||||
|
@ -1944,6 +2156,86 @@ const (
|
|||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||
WDIOC_SETTIMEOUT = 0xc0045706
|
||||
WEXITED = 0x4
|
||||
WIN_ACKMEDIACHANGE = 0xdb
|
||||
WIN_CHECKPOWERMODE1 = 0xe5
|
||||
WIN_CHECKPOWERMODE2 = 0x98
|
||||
WIN_DEVICE_RESET = 0x8
|
||||
WIN_DIAGNOSE = 0x90
|
||||
WIN_DOORLOCK = 0xde
|
||||
WIN_DOORUNLOCK = 0xdf
|
||||
WIN_DOWNLOAD_MICROCODE = 0x92
|
||||
WIN_FLUSH_CACHE = 0xe7
|
||||
WIN_FLUSH_CACHE_EXT = 0xea
|
||||
WIN_FORMAT = 0x50
|
||||
WIN_GETMEDIASTATUS = 0xda
|
||||
WIN_IDENTIFY = 0xec
|
||||
WIN_IDENTIFY_DMA = 0xee
|
||||
WIN_IDLEIMMEDIATE = 0xe1
|
||||
WIN_INIT = 0x60
|
||||
WIN_MEDIAEJECT = 0xed
|
||||
WIN_MULTREAD = 0xc4
|
||||
WIN_MULTREAD_EXT = 0x29
|
||||
WIN_MULTWRITE = 0xc5
|
||||
WIN_MULTWRITE_EXT = 0x39
|
||||
WIN_NOP = 0x0
|
||||
WIN_PACKETCMD = 0xa0
|
||||
WIN_PIDENTIFY = 0xa1
|
||||
WIN_POSTBOOT = 0xdc
|
||||
WIN_PREBOOT = 0xdd
|
||||
WIN_QUEUED_SERVICE = 0xa2
|
||||
WIN_READ = 0x20
|
||||
WIN_READDMA = 0xc8
|
||||
WIN_READDMA_EXT = 0x25
|
||||
WIN_READDMA_ONCE = 0xc9
|
||||
WIN_READDMA_QUEUED = 0xc7
|
||||
WIN_READDMA_QUEUED_EXT = 0x26
|
||||
WIN_READ_BUFFER = 0xe4
|
||||
WIN_READ_EXT = 0x24
|
||||
WIN_READ_LONG = 0x22
|
||||
WIN_READ_LONG_ONCE = 0x23
|
||||
WIN_READ_NATIVE_MAX = 0xf8
|
||||
WIN_READ_NATIVE_MAX_EXT = 0x27
|
||||
WIN_READ_ONCE = 0x21
|
||||
WIN_RECAL = 0x10
|
||||
WIN_RESTORE = 0x10
|
||||
WIN_SECURITY_DISABLE = 0xf6
|
||||
WIN_SECURITY_ERASE_PREPARE = 0xf3
|
||||
WIN_SECURITY_ERASE_UNIT = 0xf4
|
||||
WIN_SECURITY_FREEZE_LOCK = 0xf5
|
||||
WIN_SECURITY_SET_PASS = 0xf1
|
||||
WIN_SECURITY_UNLOCK = 0xf2
|
||||
WIN_SEEK = 0x70
|
||||
WIN_SETFEATURES = 0xef
|
||||
WIN_SETIDLE1 = 0xe3
|
||||
WIN_SETIDLE2 = 0x97
|
||||
WIN_SETMULT = 0xc6
|
||||
WIN_SET_MAX = 0xf9
|
||||
WIN_SET_MAX_EXT = 0x37
|
||||
WIN_SLEEPNOW1 = 0xe6
|
||||
WIN_SLEEPNOW2 = 0x99
|
||||
WIN_SMART = 0xb0
|
||||
WIN_SPECIFY = 0x91
|
||||
WIN_SRST = 0x8
|
||||
WIN_STANDBY = 0xe2
|
||||
WIN_STANDBY2 = 0x96
|
||||
WIN_STANDBYNOW1 = 0xe0
|
||||
WIN_STANDBYNOW2 = 0x94
|
||||
WIN_VERIFY = 0x40
|
||||
WIN_VERIFY_EXT = 0x42
|
||||
WIN_VERIFY_ONCE = 0x41
|
||||
WIN_WRITE = 0x30
|
||||
WIN_WRITEDMA = 0xca
|
||||
WIN_WRITEDMA_EXT = 0x35
|
||||
WIN_WRITEDMA_ONCE = 0xcb
|
||||
WIN_WRITEDMA_QUEUED = 0xcc
|
||||
WIN_WRITEDMA_QUEUED_EXT = 0x36
|
||||
WIN_WRITE_BUFFER = 0xe8
|
||||
WIN_WRITE_EXT = 0x34
|
||||
WIN_WRITE_LONG = 0x32
|
||||
WIN_WRITE_LONG_ONCE = 0x33
|
||||
WIN_WRITE_ONCE = 0x31
|
||||
WIN_WRITE_SAME = 0xe9
|
||||
WIN_WRITE_VERIFY = 0x3c
|
||||
WNOHANG = 0x1
|
||||
WNOTHREAD = 0x20000000
|
||||
WNOWAIT = 0x1000000
|
||||
|
@ -1953,7 +2245,9 @@ const (
|
|||
XATTR_CREATE = 0x1
|
||||
XATTR_REPLACE = 0x2
|
||||
XCASE = 0x4
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XTABS = 0x1800
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
// Errors
|
||||
|
@ -2135,174 +2429,182 @@ const (
|
|||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "no such device or address",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource temporarily unavailable",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device or resource busy",
|
||||
17: "file exists",
|
||||
18: "invalid cross-device link",
|
||||
19: "no such device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "numerical result out of range",
|
||||
35: "no message of desired type",
|
||||
36: "identifier removed",
|
||||
37: "channel number out of range",
|
||||
38: "level 2 not synchronized",
|
||||
39: "level 3 halted",
|
||||
40: "level 3 reset",
|
||||
41: "link number out of range",
|
||||
42: "protocol driver not attached",
|
||||
43: "no CSI structure available",
|
||||
44: "level 2 halted",
|
||||
45: "resource deadlock avoided",
|
||||
46: "no locks available",
|
||||
50: "invalid exchange",
|
||||
51: "invalid request descriptor",
|
||||
52: "exchange full",
|
||||
53: "no anode",
|
||||
54: "invalid request code",
|
||||
55: "invalid slot",
|
||||
56: "file locking deadlock error",
|
||||
59: "bad font file format",
|
||||
60: "device not a stream",
|
||||
61: "no data available",
|
||||
62: "timer expired",
|
||||
63: "out of streams resources",
|
||||
64: "machine is not on the network",
|
||||
65: "package not installed",
|
||||
66: "object is remote",
|
||||
67: "link has been severed",
|
||||
68: "advertise error",
|
||||
69: "srmount error",
|
||||
70: "communication error on send",
|
||||
71: "protocol error",
|
||||
73: "RFS specific error",
|
||||
74: "multihop attempted",
|
||||
77: "bad message",
|
||||
78: "file name too long",
|
||||
79: "value too large for defined data type",
|
||||
80: "name not unique on network",
|
||||
81: "file descriptor in bad state",
|
||||
82: "remote address changed",
|
||||
83: "can not access a needed shared library",
|
||||
84: "accessing a corrupted shared library",
|
||||
85: ".lib section in a.out corrupted",
|
||||
86: "attempting to link in too many shared libraries",
|
||||
87: "cannot exec a shared library directly",
|
||||
88: "invalid or incomplete multibyte or wide character",
|
||||
89: "function not implemented",
|
||||
90: "too many levels of symbolic links",
|
||||
91: "interrupted system call should be restarted",
|
||||
92: "streams pipe error",
|
||||
93: "directory not empty",
|
||||
94: "too many users",
|
||||
95: "socket operation on non-socket",
|
||||
96: "destination address required",
|
||||
97: "message too long",
|
||||
98: "protocol wrong type for socket",
|
||||
99: "protocol not available",
|
||||
120: "protocol not supported",
|
||||
121: "socket type not supported",
|
||||
122: "operation not supported",
|
||||
123: "protocol family not supported",
|
||||
124: "address family not supported by protocol",
|
||||
125: "address already in use",
|
||||
126: "cannot assign requested address",
|
||||
127: "network is down",
|
||||
128: "network is unreachable",
|
||||
129: "network dropped connection on reset",
|
||||
130: "software caused connection abort",
|
||||
131: "connection reset by peer",
|
||||
132: "no buffer space available",
|
||||
133: "transport endpoint is already connected",
|
||||
134: "transport endpoint is not connected",
|
||||
135: "structure needs cleaning",
|
||||
137: "not a XENIX named type file",
|
||||
138: "no XENIX semaphores available",
|
||||
139: "is a named type file",
|
||||
140: "remote I/O error",
|
||||
141: "unknown error 141",
|
||||
142: "unknown error 142",
|
||||
143: "cannot send after transport endpoint shutdown",
|
||||
144: "too many references: cannot splice",
|
||||
145: "connection timed out",
|
||||
146: "connection refused",
|
||||
147: "host is down",
|
||||
148: "no route to host",
|
||||
149: "operation already in progress",
|
||||
150: "operation now in progress",
|
||||
151: "stale file handle",
|
||||
158: "operation canceled",
|
||||
159: "no medium found",
|
||||
160: "wrong medium type",
|
||||
161: "required key not available",
|
||||
162: "key has expired",
|
||||
163: "key has been revoked",
|
||||
164: "key was rejected by service",
|
||||
165: "owner died",
|
||||
166: "state not recoverable",
|
||||
167: "operation not possible due to RF-kill",
|
||||
168: "memory page has hardware error",
|
||||
1133: "disk quota exceeded",
|
||||
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, "ENOMSG", "no message of desired type"},
|
||||
{36, "EIDRM", "identifier removed"},
|
||||
{37, "ECHRNG", "channel number out of range"},
|
||||
{38, "EL2NSYNC", "level 2 not synchronized"},
|
||||
{39, "EL3HLT", "level 3 halted"},
|
||||
{40, "EL3RST", "level 3 reset"},
|
||||
{41, "ELNRNG", "link number out of range"},
|
||||
{42, "EUNATCH", "protocol driver not attached"},
|
||||
{43, "ENOCSI", "no CSI structure available"},
|
||||
{44, "EL2HLT", "level 2 halted"},
|
||||
{45, "EDEADLK", "resource deadlock avoided"},
|
||||
{46, "ENOLCK", "no locks available"},
|
||||
{50, "EBADE", "invalid exchange"},
|
||||
{51, "EBADR", "invalid request descriptor"},
|
||||
{52, "EXFULL", "exchange full"},
|
||||
{53, "ENOANO", "no anode"},
|
||||
{54, "EBADRQC", "invalid request code"},
|
||||
{55, "EBADSLT", "invalid slot"},
|
||||
{56, "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"},
|
||||
{73, "EDOTDOT", "RFS specific error"},
|
||||
{74, "EMULTIHOP", "multihop attempted"},
|
||||
{77, "EBADMSG", "bad message"},
|
||||
{78, "ENAMETOOLONG", "file name too long"},
|
||||
{79, "EOVERFLOW", "value too large for defined data type"},
|
||||
{80, "ENOTUNIQ", "name not unique on network"},
|
||||
{81, "EBADFD", "file descriptor in bad state"},
|
||||
{82, "EREMCHG", "remote address changed"},
|
||||
{83, "ELIBACC", "can not access a needed shared library"},
|
||||
{84, "ELIBBAD", "accessing a corrupted shared library"},
|
||||
{85, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||
{86, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||
{87, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||
{88, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||
{89, "ENOSYS", "function not implemented"},
|
||||
{90, "ELOOP", "too many levels of symbolic links"},
|
||||
{91, "ERESTART", "interrupted system call should be restarted"},
|
||||
{92, "ESTRPIPE", "streams pipe error"},
|
||||
{93, "ENOTEMPTY", "directory not empty"},
|
||||
{94, "EUSERS", "too many users"},
|
||||
{95, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{96, "EDESTADDRREQ", "destination address required"},
|
||||
{97, "EMSGSIZE", "message too long"},
|
||||
{98, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{99, "ENOPROTOOPT", "protocol not available"},
|
||||
{120, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{121, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{122, "ENOTSUP", "operation not supported"},
|
||||
{123, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{124, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||
{125, "EADDRINUSE", "address already in use"},
|
||||
{126, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||
{127, "ENETDOWN", "network is down"},
|
||||
{128, "ENETUNREACH", "network is unreachable"},
|
||||
{129, "ENETRESET", "network dropped connection on reset"},
|
||||
{130, "ECONNABORTED", "software caused connection abort"},
|
||||
{131, "ECONNRESET", "connection reset by peer"},
|
||||
{132, "ENOBUFS", "no buffer space available"},
|
||||
{133, "EISCONN", "transport endpoint is already connected"},
|
||||
{134, "ENOTCONN", "transport endpoint is not connected"},
|
||||
{135, "EUCLEAN", "structure needs cleaning"},
|
||||
{137, "ENOTNAM", "not a XENIX named type file"},
|
||||
{138, "ENAVAIL", "no XENIX semaphores available"},
|
||||
{139, "EISNAM", "is a named type file"},
|
||||
{140, "EREMOTEIO", "remote I/O error"},
|
||||
{141, "EINIT", "unknown error 141"},
|
||||
{142, "EREMDEV", "unknown error 142"},
|
||||
{143, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||
{144, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||
{145, "ETIMEDOUT", "connection timed out"},
|
||||
{146, "ECONNREFUSED", "connection refused"},
|
||||
{147, "EHOSTDOWN", "host is down"},
|
||||
{148, "EHOSTUNREACH", "no route to host"},
|
||||
{149, "EALREADY", "operation already in progress"},
|
||||
{150, "EINPROGRESS", "operation now in progress"},
|
||||
{151, "ESTALE", "stale file handle"},
|
||||
{158, "ECANCELED", "operation canceled"},
|
||||
{159, "ENOMEDIUM", "no medium found"},
|
||||
{160, "EMEDIUMTYPE", "wrong medium type"},
|
||||
{161, "ENOKEY", "required key not available"},
|
||||
{162, "EKEYEXPIRED", "key has expired"},
|
||||
{163, "EKEYREVOKED", "key has been revoked"},
|
||||
{164, "EKEYREJECTED", "key was rejected by service"},
|
||||
{165, "EOWNERDEAD", "owner died"},
|
||||
{166, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{167, "ERFKILL", "operation not possible due to RF-kill"},
|
||||
{168, "EHWPOISON", "memory page has hardware error"},
|
||||
{1133, "EDQUOT", "disk quota exceeded"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/breakpoint trap",
|
||||
6: "aborted",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "user defined signal 1",
|
||||
17: "user defined signal 2",
|
||||
18: "child exited",
|
||||
19: "power failure",
|
||||
20: "window changed",
|
||||
21: "urgent I/O condition",
|
||||
22: "I/O possible",
|
||||
23: "stopped (signal)",
|
||||
24: "stopped",
|
||||
25: "continued",
|
||||
26: "stopped (tty input)",
|
||||
27: "stopped (tty output)",
|
||||
28: "virtual timer expired",
|
||||
29: "profiling timer expired",
|
||||
30: "CPU time limit exceeded",
|
||||
31: "file size limit exceeded",
|
||||
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, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGUSR1", "user defined signal 1"},
|
||||
{17, "SIGUSR2", "user defined signal 2"},
|
||||
{18, "SIGCHLD", "child exited"},
|
||||
{19, "SIGPWR", "power failure"},
|
||||
{20, "SIGWINCH", "window changed"},
|
||||
{21, "SIGURG", "urgent I/O condition"},
|
||||
{22, "SIGIO", "I/O possible"},
|
||||
{23, "SIGSTOP", "stopped (signal)"},
|
||||
{24, "SIGTSTP", "stopped"},
|
||||
{25, "SIGCONT", "continued"},
|
||||
{26, "SIGTTIN", "stopped (tty input)"},
|
||||
{27, "SIGTTOU", "stopped (tty output)"},
|
||||
{28, "SIGVTALRM", "virtual timer expired"},
|
||||
{29, "SIGPROF", "profiling timer expired"},
|
||||
{30, "SIGXCPU", "CPU time limit exceeded"},
|
||||
{31, "SIGXFSZ", "file size limit exceeded"},
|
||||
}
|
||||
|
|
638
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
638
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
|
@ -3,7 +3,7 @@
|
|||
|
||||
// +build mips64le,linux
|
||||
|
||||
// Created by cgo -godefs - DO NOT EDIT
|
||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||
|
||||
package unix
|
||||
|
@ -11,6 +11,11 @@ package unix
|
|||
import "syscall"
|
||||
|
||||
const (
|
||||
AAFS_MAGIC = 0x5a3c69f0
|
||||
ADFS_SUPER_MAGIC = 0xadf5
|
||||
AFFS_SUPER_MAGIC = 0xadff
|
||||
AFS_FS_MAGIC = 0x6b414653
|
||||
AFS_SUPER_MAGIC = 0x5346414f
|
||||
AF_ALG = 0x26
|
||||
AF_APPLETALK = 0x5
|
||||
AF_ASH = 0x12
|
||||
|
@ -66,6 +71,7 @@ const (
|
|||
ALG_SET_IV = 0x2
|
||||
ALG_SET_KEY = 0x1
|
||||
ALG_SET_OP = 0x3
|
||||
ANON_INODE_FS_MAGIC = 0x9041934
|
||||
ARPHRD_6LOWPAN = 0x339
|
||||
ARPHRD_ADAPT = 0x108
|
||||
ARPHRD_APPLETLK = 0x8
|
||||
|
@ -133,6 +139,7 @@ const (
|
|||
ARPHRD_VOID = 0xffff
|
||||
ARPHRD_VSOCKMON = 0x33a
|
||||
ARPHRD_X25 = 0x10f
|
||||
AUTOFS_SUPER_MAGIC = 0x187
|
||||
B0 = 0x0
|
||||
B1000000 = 0x1008
|
||||
B110 = 0x3
|
||||
|
@ -164,6 +171,9 @@ const (
|
|||
B75 = 0x2
|
||||
B921600 = 0x1007
|
||||
B9600 = 0xd
|
||||
BALLOON_KVM_MAGIC = 0x13661366
|
||||
BDEVFS_MAGIC = 0x62646576
|
||||
BINFMTFS_MAGIC = 0x42494e4d
|
||||
BLKBSZGET = 0x40081270
|
||||
BLKBSZSET = 0x80081271
|
||||
BLKFLSBUF = 0x20001261
|
||||
|
@ -188,6 +198,7 @@ const (
|
|||
BPF_AND = 0x50
|
||||
BPF_B = 0x10
|
||||
BPF_DIV = 0x30
|
||||
BPF_FS_MAGIC = 0xcafe4a11
|
||||
BPF_H = 0x8
|
||||
BPF_IMM = 0x0
|
||||
BPF_IND = 0x40
|
||||
|
@ -229,6 +240,8 @@ const (
|
|||
BS0 = 0x0
|
||||
BS1 = 0x2000
|
||||
BSDLY = 0x2000
|
||||
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||
BTRFS_TEST_MAGIC = 0x73727279
|
||||
CAN_BCM = 0x2
|
||||
CAN_EFF_FLAG = 0x80000000
|
||||
CAN_EFF_ID_BITS = 0x1d
|
||||
|
@ -252,6 +265,8 @@ const (
|
|||
CBAUD = 0x100f
|
||||
CBAUDEX = 0x1000
|
||||
CFLUSH = 0xf
|
||||
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||
CIBAUD = 0x100f0000
|
||||
CLOCAL = 0x800
|
||||
CLOCK_BOOTTIME = 0x7
|
||||
|
@ -294,10 +309,12 @@ const (
|
|||
CLONE_VFORK = 0x4000
|
||||
CLONE_VM = 0x100
|
||||
CMSPAR = 0x40000000
|
||||
CODA_SUPER_MAGIC = 0x73757245
|
||||
CR0 = 0x0
|
||||
CR1 = 0x200
|
||||
CR2 = 0x400
|
||||
CR3 = 0x600
|
||||
CRAMFS_MAGIC = 0x28cd3d45
|
||||
CRDLY = 0x600
|
||||
CREAD = 0x80
|
||||
CRTSCTS = 0x80000000
|
||||
|
@ -312,6 +329,9 @@ const (
|
|||
CSTOP = 0x13
|
||||
CSTOPB = 0x40
|
||||
CSUSP = 0x1a
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
|
@ -328,9 +348,12 @@ const (
|
|||
ECHOKE = 0x800
|
||||
ECHONL = 0x40
|
||||
ECHOPRT = 0x400
|
||||
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||
EFD_CLOEXEC = 0x80000
|
||||
EFD_NONBLOCK = 0x80
|
||||
EFD_SEMAPHORE = 0x1
|
||||
EFIVARFS_MAGIC = 0xde5e81e4
|
||||
EFS_SUPER_MAGIC = 0x414a53
|
||||
ENCODING_DEFAULT = 0x0
|
||||
ENCODING_FM_MARK = 0x3
|
||||
ENCODING_FM_SPACE = 0x4
|
||||
|
@ -392,6 +415,7 @@ const (
|
|||
ETH_P_ECONET = 0x18
|
||||
ETH_P_EDSA = 0xdada
|
||||
ETH_P_ERSPAN = 0x88be
|
||||
ETH_P_ERSPAN2 = 0x22eb
|
||||
ETH_P_FCOE = 0x8906
|
||||
ETH_P_FIP = 0x8914
|
||||
ETH_P_HDLC = 0x19
|
||||
|
@ -425,6 +449,7 @@ const (
|
|||
ETH_P_PPP_DISC = 0x8863
|
||||
ETH_P_PPP_MP = 0x8
|
||||
ETH_P_PPP_SES = 0x8864
|
||||
ETH_P_PREAUTH = 0x88c7
|
||||
ETH_P_PRP = 0x88fb
|
||||
ETH_P_PUP = 0x200
|
||||
ETH_P_PUPAT = 0x201
|
||||
|
@ -445,9 +470,14 @@ const (
|
|||
ETH_P_WCCP = 0x883e
|
||||
ETH_P_X25 = 0x805
|
||||
ETH_P_XDSA = 0xf8
|
||||
EXABYTE_ENABLE_NEST = 0xf0
|
||||
EXT2_SUPER_MAGIC = 0xef53
|
||||
EXT3_SUPER_MAGIC = 0xef53
|
||||
EXT4_SUPER_MAGIC = 0xef53
|
||||
EXTA = 0xe
|
||||
EXTB = 0xf
|
||||
EXTPROC = 0x10000
|
||||
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||
FALLOC_FL_INSERT_RANGE = 0x20
|
||||
FALLOC_FL_KEEP_SIZE = 0x1
|
||||
|
@ -481,6 +511,7 @@ const (
|
|||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||
FS_POLICY_FLAGS_VALID = 0x3
|
||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||
F_ADD_SEALS = 0x409
|
||||
F_DUPFD = 0x0
|
||||
F_DUPFD_CLOEXEC = 0x406
|
||||
|
@ -542,6 +573,49 @@ const (
|
|||
GENL_UNS_ADMIN_PERM = 0x10
|
||||
GRND_NONBLOCK = 0x1
|
||||
GRND_RANDOM = 0x2
|
||||
HDIO_DRIVE_CMD = 0x31f
|
||||
HDIO_DRIVE_CMD_AEB = 0x31e
|
||||
HDIO_DRIVE_CMD_HDR_SIZE = 0x4
|
||||
HDIO_DRIVE_HOB_HDR_SIZE = 0x8
|
||||
HDIO_DRIVE_RESET = 0x31c
|
||||
HDIO_DRIVE_TASK = 0x31e
|
||||
HDIO_DRIVE_TASKFILE = 0x31d
|
||||
HDIO_DRIVE_TASK_HDR_SIZE = 0x8
|
||||
HDIO_GETGEO = 0x301
|
||||
HDIO_GET_32BIT = 0x309
|
||||
HDIO_GET_ACOUSTIC = 0x30f
|
||||
HDIO_GET_ADDRESS = 0x310
|
||||
HDIO_GET_BUSSTATE = 0x31a
|
||||
HDIO_GET_DMA = 0x30b
|
||||
HDIO_GET_IDENTITY = 0x30d
|
||||
HDIO_GET_KEEPSETTINGS = 0x308
|
||||
HDIO_GET_MULTCOUNT = 0x304
|
||||
HDIO_GET_NICE = 0x30c
|
||||
HDIO_GET_NOWERR = 0x30a
|
||||
HDIO_GET_QDMA = 0x305
|
||||
HDIO_GET_UNMASKINTR = 0x302
|
||||
HDIO_GET_WCACHE = 0x30e
|
||||
HDIO_OBSOLETE_IDENTITY = 0x307
|
||||
HDIO_SCAN_HWIF = 0x328
|
||||
HDIO_SET_32BIT = 0x324
|
||||
HDIO_SET_ACOUSTIC = 0x32c
|
||||
HDIO_SET_ADDRESS = 0x32f
|
||||
HDIO_SET_BUSSTATE = 0x32d
|
||||
HDIO_SET_DMA = 0x326
|
||||
HDIO_SET_KEEPSETTINGS = 0x323
|
||||
HDIO_SET_MULTCOUNT = 0x321
|
||||
HDIO_SET_NICE = 0x329
|
||||
HDIO_SET_NOWERR = 0x325
|
||||
HDIO_SET_PIO_MODE = 0x327
|
||||
HDIO_SET_QDMA = 0x32e
|
||||
HDIO_SET_UNMASKINTR = 0x322
|
||||
HDIO_SET_WCACHE = 0x32b
|
||||
HDIO_SET_XFER = 0x306
|
||||
HDIO_TRISTATE_HWIF = 0x31b
|
||||
HDIO_UNREGISTER_HWIF = 0x32a
|
||||
HOSTFS_SUPER_MAGIC = 0xc0ffee
|
||||
HPFS_SUPER_MAGIC = 0xf995e849
|
||||
HUGETLBFS_MAGIC = 0x958458f6
|
||||
HUPCL = 0x400
|
||||
IBSHIFT = 0x10
|
||||
ICANON = 0x2
|
||||
|
@ -792,12 +866,14 @@ const (
|
|||
IP_UNICAST_IF = 0x32
|
||||
IP_XFRM_POLICY = 0x11
|
||||
ISIG = 0x1
|
||||
ISOFS_SUPER_MAGIC = 0x9660
|
||||
ISTRIP = 0x20
|
||||
IUCLC = 0x200
|
||||
IUTF8 = 0x4000
|
||||
IXANY = 0x800
|
||||
IXOFF = 0x1000
|
||||
IXON = 0x400
|
||||
JFFS2_SUPER_MAGIC = 0x72b6
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
|
@ -894,9 +970,15 @@ const (
|
|||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
MCL_ONFAULT = 0x4
|
||||
MINIX2_SUPER_MAGIC = 0x2468
|
||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||
MINIX_SUPER_MAGIC = 0x137f
|
||||
MINIX_SUPER_MAGIC2 = 0x138f
|
||||
MNT_DETACH = 0x2
|
||||
MNT_EXPIRE = 0x4
|
||||
MNT_FORCE = 0x1
|
||||
MSDOS_SUPER_MAGIC = 0x4d44
|
||||
MSG_BATCH = 0x40000
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
MSG_CONFIRM = 0x800
|
||||
|
@ -956,7 +1038,9 @@ const (
|
|||
MS_SYNCHRONOUS = 0x10
|
||||
MS_UNBINDABLE = 0x20000
|
||||
MS_VERBOSE = 0x8000
|
||||
MTD_INODE_FS_MAGIC = 0x11307854
|
||||
NAME_MAX = 0xff
|
||||
NCP_SUPER_MAGIC = 0x564c
|
||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||
NETLINK_AUDIT = 0x9
|
||||
NETLINK_BROADCAST_ERROR = 0x4
|
||||
|
@ -991,6 +1075,37 @@ const (
|
|||
NETLINK_UNUSED = 0x1
|
||||
NETLINK_USERSOCK = 0x2
|
||||
NETLINK_XFRM = 0x6
|
||||
NFNETLINK_V0 = 0x0
|
||||
NFNLGRP_ACCT_QUOTA = 0x8
|
||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||
NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
|
||||
NFNLGRP_CONNTRACK_EXP_NEW = 0x4
|
||||
NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
|
||||
NFNLGRP_CONNTRACK_NEW = 0x1
|
||||
NFNLGRP_CONNTRACK_UPDATE = 0x2
|
||||
NFNLGRP_MAX = 0x9
|
||||
NFNLGRP_NFTABLES = 0x7
|
||||
NFNLGRP_NFTRACE = 0x9
|
||||
NFNLGRP_NONE = 0x0
|
||||
NFNL_BATCH_MAX = 0x1
|
||||
NFNL_MSG_BATCH_BEGIN = 0x10
|
||||
NFNL_MSG_BATCH_END = 0x11
|
||||
NFNL_NFA_NEST = 0x8000
|
||||
NFNL_SUBSYS_ACCT = 0x7
|
||||
NFNL_SUBSYS_COUNT = 0xc
|
||||
NFNL_SUBSYS_CTHELPER = 0x9
|
||||
NFNL_SUBSYS_CTNETLINK = 0x1
|
||||
NFNL_SUBSYS_CTNETLINK_EXP = 0x2
|
||||
NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
|
||||
NFNL_SUBSYS_IPSET = 0x6
|
||||
NFNL_SUBSYS_NFTABLES = 0xa
|
||||
NFNL_SUBSYS_NFT_COMPAT = 0xb
|
||||
NFNL_SUBSYS_NONE = 0x0
|
||||
NFNL_SUBSYS_OSF = 0x5
|
||||
NFNL_SUBSYS_QUEUE = 0x3
|
||||
NFNL_SUBSYS_ULOG = 0x4
|
||||
NFS_SUPER_MAGIC = 0x6969
|
||||
NILFS_SUPER_MAGIC = 0x3434
|
||||
NL0 = 0x0
|
||||
NL1 = 0x100
|
||||
NLA_ALIGNTO = 0x4
|
||||
|
@ -1023,6 +1138,8 @@ const (
|
|||
NLM_F_REQUEST = 0x1
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
OFILL = 0x40
|
||||
|
@ -1030,7 +1147,9 @@ const (
|
|||
ONLCR = 0x4
|
||||
ONLRET = 0x20
|
||||
ONOCR = 0x10
|
||||
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||
OPOST = 0x1
|
||||
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||
O_ACCMODE = 0x3
|
||||
O_APPEND = 0x8
|
||||
O_ASYNC = 0x1000
|
||||
|
@ -1115,16 +1234,20 @@ const (
|
|||
PERF_EVENT_IOC_DISABLE = 0x20002401
|
||||
PERF_EVENT_IOC_ENABLE = 0x20002400
|
||||
PERF_EVENT_IOC_ID = 0x40082407
|
||||
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b
|
||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
|
||||
PERF_EVENT_IOC_PERIOD = 0x80082404
|
||||
PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
|
||||
PERF_EVENT_IOC_REFRESH = 0x20002402
|
||||
PERF_EVENT_IOC_RESET = 0x20002403
|
||||
PERF_EVENT_IOC_SET_BPF = 0x80042408
|
||||
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
||||
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||
PIPEFS_MAGIC = 0x50495045
|
||||
PRIO_PGRP = 0x1
|
||||
PRIO_PROCESS = 0x0
|
||||
PRIO_USER = 0x2
|
||||
PROC_SUPER_MAGIC = 0x9fa0
|
||||
PROT_EXEC = 0x4
|
||||
PROT_GROWSDOWN = 0x1000000
|
||||
PROT_GROWSUP = 0x2000000
|
||||
|
@ -1167,6 +1290,7 @@ const (
|
|||
PR_GET_PDEATHSIG = 0x2
|
||||
PR_GET_SECCOMP = 0x15
|
||||
PR_GET_SECUREBITS = 0x1b
|
||||
PR_GET_SPECULATION_CTRL = 0x34
|
||||
PR_GET_THP_DISABLE = 0x2a
|
||||
PR_GET_TID_ADDRESS = 0x28
|
||||
PR_GET_TIMERSLACK = 0x1e
|
||||
|
@ -1212,11 +1336,18 @@ const (
|
|||
PR_SET_PTRACER_ANY = 0xffffffffffffffff
|
||||
PR_SET_SECCOMP = 0x16
|
||||
PR_SET_SECUREBITS = 0x1c
|
||||
PR_SET_SPECULATION_CTRL = 0x35
|
||||
PR_SET_THP_DISABLE = 0x29
|
||||
PR_SET_TIMERSLACK = 0x1d
|
||||
PR_SET_TIMING = 0xe
|
||||
PR_SET_TSC = 0x1a
|
||||
PR_SET_UNALIGN = 0x6
|
||||
PR_SPEC_DISABLE = 0x4
|
||||
PR_SPEC_ENABLE = 0x2
|
||||
PR_SPEC_FORCE_DISABLE = 0x8
|
||||
PR_SPEC_NOT_AFFECTED = 0x0
|
||||
PR_SPEC_PRCTL = 0x1
|
||||
PR_SPEC_STORE_BYPASS = 0x0
|
||||
PR_SVE_GET_VL = 0x33
|
||||
PR_SVE_SET_VL = 0x32
|
||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||
|
@ -1230,6 +1361,7 @@ const (
|
|||
PR_TSC_SIGSEGV = 0x2
|
||||
PR_UNALIGN_NOPRINT = 0x1
|
||||
PR_UNALIGN_SIGBUS = 0x2
|
||||
PSTOREFS_MAGIC = 0x6165676c
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
|
@ -1278,6 +1410,7 @@ const (
|
|||
PTRACE_POKETEXT_3264 = 0xc2
|
||||
PTRACE_POKEUSR = 0x6
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||
PTRACE_SEIZE = 0x4206
|
||||
PTRACE_SETFPREGS = 0xf
|
||||
PTRACE_SETOPTIONS = 0x4200
|
||||
|
@ -1290,6 +1423,11 @@ const (
|
|||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_TRACEME = 0x0
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
RAMFS_MAGIC = 0x858458f6
|
||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||
REISERFS_SUPER_MAGIC = 0x52654973
|
||||
RLIMIT_AS = 0x6
|
||||
RLIMIT_CORE = 0x4
|
||||
RLIMIT_CPU = 0x0
|
||||
|
@ -1339,6 +1477,33 @@ const (
|
|||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTC_AF = 0x20
|
||||
RTC_AIE_OFF = 0x20007002
|
||||
RTC_AIE_ON = 0x20007001
|
||||
RTC_ALM_READ = 0x40247008
|
||||
RTC_ALM_SET = 0x80247007
|
||||
RTC_EPOCH_READ = 0x4008700d
|
||||
RTC_EPOCH_SET = 0x8008700e
|
||||
RTC_IRQF = 0x80
|
||||
RTC_IRQP_READ = 0x4008700b
|
||||
RTC_IRQP_SET = 0x8008700c
|
||||
RTC_MAX_FREQ = 0x2000
|
||||
RTC_PF = 0x40
|
||||
RTC_PIE_OFF = 0x20007006
|
||||
RTC_PIE_ON = 0x20007005
|
||||
RTC_PLL_GET = 0x40207011
|
||||
RTC_PLL_SET = 0x80207012
|
||||
RTC_RD_TIME = 0x40247009
|
||||
RTC_SET_TIME = 0x8024700a
|
||||
RTC_UF = 0x10
|
||||
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
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
|
@ -1475,6 +1640,8 @@ const (
|
|||
SECCOMP_MODE_DISABLED = 0x0
|
||||
SECCOMP_MODE_FILTER = 0x2
|
||||
SECCOMP_MODE_STRICT = 0x1
|
||||
SECURITYFS_MAGIC = 0x73636673
|
||||
SELINUX_MAGIC = 0xf97cff8c
|
||||
SHUT_RD = 0x0
|
||||
SHUT_RDWR = 0x2
|
||||
SHUT_WR = 0x1
|
||||
|
@ -1559,6 +1726,23 @@ const (
|
|||
SIOCSPGRP = 0x80047308
|
||||
SIOCSRARP = 0x8962
|
||||
SIOCWANDEV = 0x894a
|
||||
SMACK_MAGIC = 0x43415d53
|
||||
SMART_AUTOSAVE = 0xd2
|
||||
SMART_AUTO_OFFLINE = 0xdb
|
||||
SMART_DISABLE = 0xd9
|
||||
SMART_ENABLE = 0xd8
|
||||
SMART_HCYL_PASS = 0xc2
|
||||
SMART_IMMEDIATE_OFFLINE = 0xd4
|
||||
SMART_LCYL_PASS = 0x4f
|
||||
SMART_READ_LOG_SECTOR = 0xd5
|
||||
SMART_READ_THRESHOLDS = 0xd1
|
||||
SMART_READ_VALUES = 0xd0
|
||||
SMART_SAVE = 0xd3
|
||||
SMART_STATUS = 0xda
|
||||
SMART_WRITE_LOG_SECTOR = 0xd6
|
||||
SMART_WRITE_THRESHOLDS = 0xd7
|
||||
SMB_SUPER_MAGIC = 0x517b
|
||||
SOCKFS_MAGIC = 0x534f434b
|
||||
SOCK_CLOEXEC = 0x80000
|
||||
SOCK_DCCP = 0x6
|
||||
SOCK_DGRAM = 0x1
|
||||
|
@ -1670,6 +1854,8 @@ const (
|
|||
SPLICE_F_MORE = 0x4
|
||||
SPLICE_F_MOVE = 0x1
|
||||
SPLICE_F_NONBLOCK = 0x2
|
||||
SQUASHFS_MAGIC = 0x73717368
|
||||
STACK_END_MAGIC = 0x57ac6e9d
|
||||
STATX_ALL = 0xfff
|
||||
STATX_ATIME = 0x20
|
||||
STATX_ATTR_APPEND = 0x20
|
||||
|
@ -1691,6 +1877,7 @@ const (
|
|||
STATX_TYPE = 0x1
|
||||
STATX_UID = 0x8
|
||||
STATX__RESERVED = 0x80000000
|
||||
SYSFS_MAGIC = 0x62656572
|
||||
S_BLKSIZE = 0x200
|
||||
S_IEXEC = 0x40
|
||||
S_IFBLK = 0x6000
|
||||
|
@ -1873,7 +2060,27 @@ const (
|
|||
TIOCSTI = 0x5472
|
||||
TIOCSWINSZ = 0x80087467
|
||||
TIOCVHANGUP = 0x5437
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x8000
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
TPACKET_HDRLEN = 0x34
|
||||
TP_STATUS_AVAILABLE = 0x0
|
||||
TP_STATUS_BLK_TMO = 0x20
|
||||
TP_STATUS_COPY = 0x2
|
||||
TP_STATUS_CSUMNOTREADY = 0x8
|
||||
TP_STATUS_CSUM_VALID = 0x80
|
||||
TP_STATUS_KERNEL = 0x0
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
TP_STATUS_VLAN_TPID_VALID = 0x40
|
||||
TP_STATUS_VLAN_VALID = 0x10
|
||||
TP_STATUS_WRONG_FORMAT = 0x4
|
||||
TRACEFS_MAGIC = 0x74726163
|
||||
TS_COMM_LEN = 0x20
|
||||
TUNATTACHFILTER = 0x801054d5
|
||||
TUNDETACHFILTER = 0x801054d6
|
||||
|
@ -1885,6 +2092,7 @@ const (
|
|||
TUNGETVNETHDRSZ = 0x400454d7
|
||||
TUNGETVNETLE = 0x400454dd
|
||||
TUNSETDEBUG = 0x800454c9
|
||||
TUNSETFILTEREBPF = 0x400454e1
|
||||
TUNSETGROUP = 0x800454ce
|
||||
TUNSETIFF = 0x800454ca
|
||||
TUNSETIFINDEX = 0x800454da
|
||||
|
@ -1895,13 +2103,17 @@ const (
|
|||
TUNSETPERSIST = 0x800454cb
|
||||
TUNSETQUEUE = 0x800454d9
|
||||
TUNSETSNDBUF = 0x800454d4
|
||||
TUNSETSTEERINGEBPF = 0x400454e0
|
||||
TUNSETTXFILTER = 0x800454d1
|
||||
TUNSETVNETBE = 0x800454de
|
||||
TUNSETVNETHDRSZ = 0x800454d8
|
||||
TUNSETVNETLE = 0x800454dc
|
||||
UDF_SUPER_MAGIC = 0x15013346
|
||||
UMOUNT_NOFOLLOW = 0x8
|
||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||
UTIME_NOW = 0x3fffffff
|
||||
UTIME_OMIT = 0x3ffffffe
|
||||
V9FS_MAGIC = 0x1021997
|
||||
VDISCARD = 0xd
|
||||
VEOF = 0x10
|
||||
VEOL = 0x11
|
||||
|
@ -1944,6 +2156,86 @@ const (
|
|||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||
WDIOC_SETTIMEOUT = 0xc0045706
|
||||
WEXITED = 0x4
|
||||
WIN_ACKMEDIACHANGE = 0xdb
|
||||
WIN_CHECKPOWERMODE1 = 0xe5
|
||||
WIN_CHECKPOWERMODE2 = 0x98
|
||||
WIN_DEVICE_RESET = 0x8
|
||||
WIN_DIAGNOSE = 0x90
|
||||
WIN_DOORLOCK = 0xde
|
||||
WIN_DOORUNLOCK = 0xdf
|
||||
WIN_DOWNLOAD_MICROCODE = 0x92
|
||||
WIN_FLUSH_CACHE = 0xe7
|
||||
WIN_FLUSH_CACHE_EXT = 0xea
|
||||
WIN_FORMAT = 0x50
|
||||
WIN_GETMEDIASTATUS = 0xda
|
||||
WIN_IDENTIFY = 0xec
|
||||
WIN_IDENTIFY_DMA = 0xee
|
||||
WIN_IDLEIMMEDIATE = 0xe1
|
||||
WIN_INIT = 0x60
|
||||
WIN_MEDIAEJECT = 0xed
|
||||
WIN_MULTREAD = 0xc4
|
||||
WIN_MULTREAD_EXT = 0x29
|
||||
WIN_MULTWRITE = 0xc5
|
||||
WIN_MULTWRITE_EXT = 0x39
|
||||
WIN_NOP = 0x0
|
||||
WIN_PACKETCMD = 0xa0
|
||||
WIN_PIDENTIFY = 0xa1
|
||||
WIN_POSTBOOT = 0xdc
|
||||
WIN_PREBOOT = 0xdd
|
||||
WIN_QUEUED_SERVICE = 0xa2
|
||||
WIN_READ = 0x20
|
||||
WIN_READDMA = 0xc8
|
||||
WIN_READDMA_EXT = 0x25
|
||||
WIN_READDMA_ONCE = 0xc9
|
||||
WIN_READDMA_QUEUED = 0xc7
|
||||
WIN_READDMA_QUEUED_EXT = 0x26
|
||||
WIN_READ_BUFFER = 0xe4
|
||||
WIN_READ_EXT = 0x24
|
||||
WIN_READ_LONG = 0x22
|
||||
WIN_READ_LONG_ONCE = 0x23
|
||||
WIN_READ_NATIVE_MAX = 0xf8
|
||||
WIN_READ_NATIVE_MAX_EXT = 0x27
|
||||
WIN_READ_ONCE = 0x21
|
||||
WIN_RECAL = 0x10
|
||||
WIN_RESTORE = 0x10
|
||||
WIN_SECURITY_DISABLE = 0xf6
|
||||
WIN_SECURITY_ERASE_PREPARE = 0xf3
|
||||
WIN_SECURITY_ERASE_UNIT = 0xf4
|
||||
WIN_SECURITY_FREEZE_LOCK = 0xf5
|
||||
WIN_SECURITY_SET_PASS = 0xf1
|
||||
WIN_SECURITY_UNLOCK = 0xf2
|
||||
WIN_SEEK = 0x70
|
||||
WIN_SETFEATURES = 0xef
|
||||
WIN_SETIDLE1 = 0xe3
|
||||
WIN_SETIDLE2 = 0x97
|
||||
WIN_SETMULT = 0xc6
|
||||
WIN_SET_MAX = 0xf9
|
||||
WIN_SET_MAX_EXT = 0x37
|
||||
WIN_SLEEPNOW1 = 0xe6
|
||||
WIN_SLEEPNOW2 = 0x99
|
||||
WIN_SMART = 0xb0
|
||||
WIN_SPECIFY = 0x91
|
||||
WIN_SRST = 0x8
|
||||
WIN_STANDBY = 0xe2
|
||||
WIN_STANDBY2 = 0x96
|
||||
WIN_STANDBYNOW1 = 0xe0
|
||||
WIN_STANDBYNOW2 = 0x94
|
||||
WIN_VERIFY = 0x40
|
||||
WIN_VERIFY_EXT = 0x42
|
||||
WIN_VERIFY_ONCE = 0x41
|
||||
WIN_WRITE = 0x30
|
||||
WIN_WRITEDMA = 0xca
|
||||
WIN_WRITEDMA_EXT = 0x35
|
||||
WIN_WRITEDMA_ONCE = 0xcb
|
||||
WIN_WRITEDMA_QUEUED = 0xcc
|
||||
WIN_WRITEDMA_QUEUED_EXT = 0x36
|
||||
WIN_WRITE_BUFFER = 0xe8
|
||||
WIN_WRITE_EXT = 0x34
|
||||
WIN_WRITE_LONG = 0x32
|
||||
WIN_WRITE_LONG_ONCE = 0x33
|
||||
WIN_WRITE_ONCE = 0x31
|
||||
WIN_WRITE_SAME = 0xe9
|
||||
WIN_WRITE_VERIFY = 0x3c
|
||||
WNOHANG = 0x1
|
||||
WNOTHREAD = 0x20000000
|
||||
WNOWAIT = 0x1000000
|
||||
|
@ -1953,7 +2245,9 @@ const (
|
|||
XATTR_CREATE = 0x1
|
||||
XATTR_REPLACE = 0x2
|
||||
XCASE = 0x4
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XTABS = 0x1800
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
// Errors
|
||||
|
@ -2135,174 +2429,182 @@ const (
|
|||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "no such device or address",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource temporarily unavailable",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device or resource busy",
|
||||
17: "file exists",
|
||||
18: "invalid cross-device link",
|
||||
19: "no such device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "numerical result out of range",
|
||||
35: "no message of desired type",
|
||||
36: "identifier removed",
|
||||
37: "channel number out of range",
|
||||
38: "level 2 not synchronized",
|
||||
39: "level 3 halted",
|
||||
40: "level 3 reset",
|
||||
41: "link number out of range",
|
||||
42: "protocol driver not attached",
|
||||
43: "no CSI structure available",
|
||||
44: "level 2 halted",
|
||||
45: "resource deadlock avoided",
|
||||
46: "no locks available",
|
||||
50: "invalid exchange",
|
||||
51: "invalid request descriptor",
|
||||
52: "exchange full",
|
||||
53: "no anode",
|
||||
54: "invalid request code",
|
||||
55: "invalid slot",
|
||||
56: "file locking deadlock error",
|
||||
59: "bad font file format",
|
||||
60: "device not a stream",
|
||||
61: "no data available",
|
||||
62: "timer expired",
|
||||
63: "out of streams resources",
|
||||
64: "machine is not on the network",
|
||||
65: "package not installed",
|
||||
66: "object is remote",
|
||||
67: "link has been severed",
|
||||
68: "advertise error",
|
||||
69: "srmount error",
|
||||
70: "communication error on send",
|
||||
71: "protocol error",
|
||||
73: "RFS specific error",
|
||||
74: "multihop attempted",
|
||||
77: "bad message",
|
||||
78: "file name too long",
|
||||
79: "value too large for defined data type",
|
||||
80: "name not unique on network",
|
||||
81: "file descriptor in bad state",
|
||||
82: "remote address changed",
|
||||
83: "can not access a needed shared library",
|
||||
84: "accessing a corrupted shared library",
|
||||
85: ".lib section in a.out corrupted",
|
||||
86: "attempting to link in too many shared libraries",
|
||||
87: "cannot exec a shared library directly",
|
||||
88: "invalid or incomplete multibyte or wide character",
|
||||
89: "function not implemented",
|
||||
90: "too many levels of symbolic links",
|
||||
91: "interrupted system call should be restarted",
|
||||
92: "streams pipe error",
|
||||
93: "directory not empty",
|
||||
94: "too many users",
|
||||
95: "socket operation on non-socket",
|
||||
96: "destination address required",
|
||||
97: "message too long",
|
||||
98: "protocol wrong type for socket",
|
||||
99: "protocol not available",
|
||||
120: "protocol not supported",
|
||||
121: "socket type not supported",
|
||||
122: "operation not supported",
|
||||
123: "protocol family not supported",
|
||||
124: "address family not supported by protocol",
|
||||
125: "address already in use",
|
||||
126: "cannot assign requested address",
|
||||
127: "network is down",
|
||||
128: "network is unreachable",
|
||||
129: "network dropped connection on reset",
|
||||
130: "software caused connection abort",
|
||||
131: "connection reset by peer",
|
||||
132: "no buffer space available",
|
||||
133: "transport endpoint is already connected",
|
||||
134: "transport endpoint is not connected",
|
||||
135: "structure needs cleaning",
|
||||
137: "not a XENIX named type file",
|
||||
138: "no XENIX semaphores available",
|
||||
139: "is a named type file",
|
||||
140: "remote I/O error",
|
||||
141: "unknown error 141",
|
||||
142: "unknown error 142",
|
||||
143: "cannot send after transport endpoint shutdown",
|
||||
144: "too many references: cannot splice",
|
||||
145: "connection timed out",
|
||||
146: "connection refused",
|
||||
147: "host is down",
|
||||
148: "no route to host",
|
||||
149: "operation already in progress",
|
||||
150: "operation now in progress",
|
||||
151: "stale file handle",
|
||||
158: "operation canceled",
|
||||
159: "no medium found",
|
||||
160: "wrong medium type",
|
||||
161: "required key not available",
|
||||
162: "key has expired",
|
||||
163: "key has been revoked",
|
||||
164: "key was rejected by service",
|
||||
165: "owner died",
|
||||
166: "state not recoverable",
|
||||
167: "operation not possible due to RF-kill",
|
||||
168: "memory page has hardware error",
|
||||
1133: "disk quota exceeded",
|
||||
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, "ENOMSG", "no message of desired type"},
|
||||
{36, "EIDRM", "identifier removed"},
|
||||
{37, "ECHRNG", "channel number out of range"},
|
||||
{38, "EL2NSYNC", "level 2 not synchronized"},
|
||||
{39, "EL3HLT", "level 3 halted"},
|
||||
{40, "EL3RST", "level 3 reset"},
|
||||
{41, "ELNRNG", "link number out of range"},
|
||||
{42, "EUNATCH", "protocol driver not attached"},
|
||||
{43, "ENOCSI", "no CSI structure available"},
|
||||
{44, "EL2HLT", "level 2 halted"},
|
||||
{45, "EDEADLK", "resource deadlock avoided"},
|
||||
{46, "ENOLCK", "no locks available"},
|
||||
{50, "EBADE", "invalid exchange"},
|
||||
{51, "EBADR", "invalid request descriptor"},
|
||||
{52, "EXFULL", "exchange full"},
|
||||
{53, "ENOANO", "no anode"},
|
||||
{54, "EBADRQC", "invalid request code"},
|
||||
{55, "EBADSLT", "invalid slot"},
|
||||
{56, "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"},
|
||||
{73, "EDOTDOT", "RFS specific error"},
|
||||
{74, "EMULTIHOP", "multihop attempted"},
|
||||
{77, "EBADMSG", "bad message"},
|
||||
{78, "ENAMETOOLONG", "file name too long"},
|
||||
{79, "EOVERFLOW", "value too large for defined data type"},
|
||||
{80, "ENOTUNIQ", "name not unique on network"},
|
||||
{81, "EBADFD", "file descriptor in bad state"},
|
||||
{82, "EREMCHG", "remote address changed"},
|
||||
{83, "ELIBACC", "can not access a needed shared library"},
|
||||
{84, "ELIBBAD", "accessing a corrupted shared library"},
|
||||
{85, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||
{86, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||
{87, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||
{88, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||
{89, "ENOSYS", "function not implemented"},
|
||||
{90, "ELOOP", "too many levels of symbolic links"},
|
||||
{91, "ERESTART", "interrupted system call should be restarted"},
|
||||
{92, "ESTRPIPE", "streams pipe error"},
|
||||
{93, "ENOTEMPTY", "directory not empty"},
|
||||
{94, "EUSERS", "too many users"},
|
||||
{95, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{96, "EDESTADDRREQ", "destination address required"},
|
||||
{97, "EMSGSIZE", "message too long"},
|
||||
{98, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{99, "ENOPROTOOPT", "protocol not available"},
|
||||
{120, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{121, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{122, "ENOTSUP", "operation not supported"},
|
||||
{123, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{124, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||
{125, "EADDRINUSE", "address already in use"},
|
||||
{126, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||
{127, "ENETDOWN", "network is down"},
|
||||
{128, "ENETUNREACH", "network is unreachable"},
|
||||
{129, "ENETRESET", "network dropped connection on reset"},
|
||||
{130, "ECONNABORTED", "software caused connection abort"},
|
||||
{131, "ECONNRESET", "connection reset by peer"},
|
||||
{132, "ENOBUFS", "no buffer space available"},
|
||||
{133, "EISCONN", "transport endpoint is already connected"},
|
||||
{134, "ENOTCONN", "transport endpoint is not connected"},
|
||||
{135, "EUCLEAN", "structure needs cleaning"},
|
||||
{137, "ENOTNAM", "not a XENIX named type file"},
|
||||
{138, "ENAVAIL", "no XENIX semaphores available"},
|
||||
{139, "EISNAM", "is a named type file"},
|
||||
{140, "EREMOTEIO", "remote I/O error"},
|
||||
{141, "EINIT", "unknown error 141"},
|
||||
{142, "EREMDEV", "unknown error 142"},
|
||||
{143, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||
{144, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||
{145, "ETIMEDOUT", "connection timed out"},
|
||||
{146, "ECONNREFUSED", "connection refused"},
|
||||
{147, "EHOSTDOWN", "host is down"},
|
||||
{148, "EHOSTUNREACH", "no route to host"},
|
||||
{149, "EALREADY", "operation already in progress"},
|
||||
{150, "EINPROGRESS", "operation now in progress"},
|
||||
{151, "ESTALE", "stale file handle"},
|
||||
{158, "ECANCELED", "operation canceled"},
|
||||
{159, "ENOMEDIUM", "no medium found"},
|
||||
{160, "EMEDIUMTYPE", "wrong medium type"},
|
||||
{161, "ENOKEY", "required key not available"},
|
||||
{162, "EKEYEXPIRED", "key has expired"},
|
||||
{163, "EKEYREVOKED", "key has been revoked"},
|
||||
{164, "EKEYREJECTED", "key was rejected by service"},
|
||||
{165, "EOWNERDEAD", "owner died"},
|
||||
{166, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{167, "ERFKILL", "operation not possible due to RF-kill"},
|
||||
{168, "EHWPOISON", "memory page has hardware error"},
|
||||
{1133, "EDQUOT", "disk quota exceeded"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/breakpoint trap",
|
||||
6: "aborted",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "user defined signal 1",
|
||||
17: "user defined signal 2",
|
||||
18: "child exited",
|
||||
19: "power failure",
|
||||
20: "window changed",
|
||||
21: "urgent I/O condition",
|
||||
22: "I/O possible",
|
||||
23: "stopped (signal)",
|
||||
24: "stopped",
|
||||
25: "continued",
|
||||
26: "stopped (tty input)",
|
||||
27: "stopped (tty output)",
|
||||
28: "virtual timer expired",
|
||||
29: "profiling timer expired",
|
||||
30: "CPU time limit exceeded",
|
||||
31: "file size limit exceeded",
|
||||
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, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGUSR1", "user defined signal 1"},
|
||||
{17, "SIGUSR2", "user defined signal 2"},
|
||||
{18, "SIGCHLD", "child exited"},
|
||||
{19, "SIGPWR", "power failure"},
|
||||
{20, "SIGWINCH", "window changed"},
|
||||
{21, "SIGURG", "urgent I/O condition"},
|
||||
{22, "SIGIO", "I/O possible"},
|
||||
{23, "SIGSTOP", "stopped (signal)"},
|
||||
{24, "SIGTSTP", "stopped"},
|
||||
{25, "SIGCONT", "continued"},
|
||||
{26, "SIGTTIN", "stopped (tty input)"},
|
||||
{27, "SIGTTOU", "stopped (tty output)"},
|
||||
{28, "SIGVTALRM", "virtual timer expired"},
|
||||
{29, "SIGPROF", "profiling timer expired"},
|
||||
{30, "SIGXCPU", "CPU time limit exceeded"},
|
||||
{31, "SIGXFSZ", "file size limit exceeded"},
|
||||
}
|
||||
|
|
638
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
638
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
|
@ -3,7 +3,7 @@
|
|||
|
||||
// +build mipsle,linux
|
||||
|
||||
// Created by cgo -godefs - DO NOT EDIT
|
||||
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||
|
||||
package unix
|
||||
|
@ -11,6 +11,11 @@ package unix
|
|||
import "syscall"
|
||||
|
||||
const (
|
||||
AAFS_MAGIC = 0x5a3c69f0
|
||||
ADFS_SUPER_MAGIC = 0xadf5
|
||||
AFFS_SUPER_MAGIC = 0xadff
|
||||
AFS_FS_MAGIC = 0x6b414653
|
||||
AFS_SUPER_MAGIC = 0x5346414f
|
||||
AF_ALG = 0x26
|
||||
AF_APPLETALK = 0x5
|
||||
AF_ASH = 0x12
|
||||
|
@ -66,6 +71,7 @@ const (
|
|||
ALG_SET_IV = 0x2
|
||||
ALG_SET_KEY = 0x1
|
||||
ALG_SET_OP = 0x3
|
||||
ANON_INODE_FS_MAGIC = 0x9041934
|
||||
ARPHRD_6LOWPAN = 0x339
|
||||
ARPHRD_ADAPT = 0x108
|
||||
ARPHRD_APPLETLK = 0x8
|
||||
|
@ -133,6 +139,7 @@ const (
|
|||
ARPHRD_VOID = 0xffff
|
||||
ARPHRD_VSOCKMON = 0x33a
|
||||
ARPHRD_X25 = 0x10f
|
||||
AUTOFS_SUPER_MAGIC = 0x187
|
||||
B0 = 0x0
|
||||
B1000000 = 0x1008
|
||||
B110 = 0x3
|
||||
|
@ -164,6 +171,9 @@ const (
|
|||
B75 = 0x2
|
||||
B921600 = 0x1007
|
||||
B9600 = 0xd
|
||||
BALLOON_KVM_MAGIC = 0x13661366
|
||||
BDEVFS_MAGIC = 0x62646576
|
||||
BINFMTFS_MAGIC = 0x42494e4d
|
||||
BLKBSZGET = 0x40041270
|
||||
BLKBSZSET = 0x80041271
|
||||
BLKFLSBUF = 0x20001261
|
||||
|
@ -188,6 +198,7 @@ const (
|
|||
BPF_AND = 0x50
|
||||
BPF_B = 0x10
|
||||
BPF_DIV = 0x30
|
||||
BPF_FS_MAGIC = 0xcafe4a11
|
||||
BPF_H = 0x8
|
||||
BPF_IMM = 0x0
|
||||
BPF_IND = 0x40
|
||||
|
@ -229,6 +240,8 @@ const (
|
|||
BS0 = 0x0
|
||||
BS1 = 0x2000
|
||||
BSDLY = 0x2000
|
||||
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||
BTRFS_TEST_MAGIC = 0x73727279
|
||||
CAN_BCM = 0x2
|
||||
CAN_EFF_FLAG = 0x80000000
|
||||
CAN_EFF_ID_BITS = 0x1d
|
||||
|
@ -252,6 +265,8 @@ const (
|
|||
CBAUD = 0x100f
|
||||
CBAUDEX = 0x1000
|
||||
CFLUSH = 0xf
|
||||
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||
CIBAUD = 0x100f0000
|
||||
CLOCAL = 0x800
|
||||
CLOCK_BOOTTIME = 0x7
|
||||
|
@ -294,10 +309,12 @@ const (
|
|||
CLONE_VFORK = 0x4000
|
||||
CLONE_VM = 0x100
|
||||
CMSPAR = 0x40000000
|
||||
CODA_SUPER_MAGIC = 0x73757245
|
||||
CR0 = 0x0
|
||||
CR1 = 0x200
|
||||
CR2 = 0x400
|
||||
CR3 = 0x600
|
||||
CRAMFS_MAGIC = 0x28cd3d45
|
||||
CRDLY = 0x600
|
||||
CREAD = 0x80
|
||||
CRTSCTS = 0x80000000
|
||||
|
@ -312,6 +329,9 @@ const (
|
|||
CSTOP = 0x13
|
||||
CSTOPB = 0x40
|
||||
CSUSP = 0x1a
|
||||
DAXFS_MAGIC = 0x64646178
|
||||
DEBUGFS_MAGIC = 0x64626720
|
||||
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||
DT_BLK = 0x6
|
||||
DT_CHR = 0x2
|
||||
DT_DIR = 0x4
|
||||
|
@ -328,9 +348,12 @@ const (
|
|||
ECHOKE = 0x800
|
||||
ECHONL = 0x40
|
||||
ECHOPRT = 0x400
|
||||
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||
EFD_CLOEXEC = 0x80000
|
||||
EFD_NONBLOCK = 0x80
|
||||
EFD_SEMAPHORE = 0x1
|
||||
EFIVARFS_MAGIC = 0xde5e81e4
|
||||
EFS_SUPER_MAGIC = 0x414a53
|
||||
ENCODING_DEFAULT = 0x0
|
||||
ENCODING_FM_MARK = 0x3
|
||||
ENCODING_FM_SPACE = 0x4
|
||||
|
@ -392,6 +415,7 @@ const (
|
|||
ETH_P_ECONET = 0x18
|
||||
ETH_P_EDSA = 0xdada
|
||||
ETH_P_ERSPAN = 0x88be
|
||||
ETH_P_ERSPAN2 = 0x22eb
|
||||
ETH_P_FCOE = 0x8906
|
||||
ETH_P_FIP = 0x8914
|
||||
ETH_P_HDLC = 0x19
|
||||
|
@ -425,6 +449,7 @@ const (
|
|||
ETH_P_PPP_DISC = 0x8863
|
||||
ETH_P_PPP_MP = 0x8
|
||||
ETH_P_PPP_SES = 0x8864
|
||||
ETH_P_PREAUTH = 0x88c7
|
||||
ETH_P_PRP = 0x88fb
|
||||
ETH_P_PUP = 0x200
|
||||
ETH_P_PUPAT = 0x201
|
||||
|
@ -445,9 +470,14 @@ const (
|
|||
ETH_P_WCCP = 0x883e
|
||||
ETH_P_X25 = 0x805
|
||||
ETH_P_XDSA = 0xf8
|
||||
EXABYTE_ENABLE_NEST = 0xf0
|
||||
EXT2_SUPER_MAGIC = 0xef53
|
||||
EXT3_SUPER_MAGIC = 0xef53
|
||||
EXT4_SUPER_MAGIC = 0xef53
|
||||
EXTA = 0xe
|
||||
EXTB = 0xf
|
||||
EXTPROC = 0x10000
|
||||
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||
FALLOC_FL_INSERT_RANGE = 0x20
|
||||
FALLOC_FL_KEEP_SIZE = 0x1
|
||||
|
@ -481,6 +511,7 @@ const (
|
|||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||
FS_POLICY_FLAGS_VALID = 0x3
|
||||
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||
F_ADD_SEALS = 0x409
|
||||
F_DUPFD = 0x0
|
||||
F_DUPFD_CLOEXEC = 0x406
|
||||
|
@ -542,6 +573,49 @@ const (
|
|||
GENL_UNS_ADMIN_PERM = 0x10
|
||||
GRND_NONBLOCK = 0x1
|
||||
GRND_RANDOM = 0x2
|
||||
HDIO_DRIVE_CMD = 0x31f
|
||||
HDIO_DRIVE_CMD_AEB = 0x31e
|
||||
HDIO_DRIVE_CMD_HDR_SIZE = 0x4
|
||||
HDIO_DRIVE_HOB_HDR_SIZE = 0x8
|
||||
HDIO_DRIVE_RESET = 0x31c
|
||||
HDIO_DRIVE_TASK = 0x31e
|
||||
HDIO_DRIVE_TASKFILE = 0x31d
|
||||
HDIO_DRIVE_TASK_HDR_SIZE = 0x8
|
||||
HDIO_GETGEO = 0x301
|
||||
HDIO_GET_32BIT = 0x309
|
||||
HDIO_GET_ACOUSTIC = 0x30f
|
||||
HDIO_GET_ADDRESS = 0x310
|
||||
HDIO_GET_BUSSTATE = 0x31a
|
||||
HDIO_GET_DMA = 0x30b
|
||||
HDIO_GET_IDENTITY = 0x30d
|
||||
HDIO_GET_KEEPSETTINGS = 0x308
|
||||
HDIO_GET_MULTCOUNT = 0x304
|
||||
HDIO_GET_NICE = 0x30c
|
||||
HDIO_GET_NOWERR = 0x30a
|
||||
HDIO_GET_QDMA = 0x305
|
||||
HDIO_GET_UNMASKINTR = 0x302
|
||||
HDIO_GET_WCACHE = 0x30e
|
||||
HDIO_OBSOLETE_IDENTITY = 0x307
|
||||
HDIO_SCAN_HWIF = 0x328
|
||||
HDIO_SET_32BIT = 0x324
|
||||
HDIO_SET_ACOUSTIC = 0x32c
|
||||
HDIO_SET_ADDRESS = 0x32f
|
||||
HDIO_SET_BUSSTATE = 0x32d
|
||||
HDIO_SET_DMA = 0x326
|
||||
HDIO_SET_KEEPSETTINGS = 0x323
|
||||
HDIO_SET_MULTCOUNT = 0x321
|
||||
HDIO_SET_NICE = 0x329
|
||||
HDIO_SET_NOWERR = 0x325
|
||||
HDIO_SET_PIO_MODE = 0x327
|
||||
HDIO_SET_QDMA = 0x32e
|
||||
HDIO_SET_UNMASKINTR = 0x322
|
||||
HDIO_SET_WCACHE = 0x32b
|
||||
HDIO_SET_XFER = 0x306
|
||||
HDIO_TRISTATE_HWIF = 0x31b
|
||||
HDIO_UNREGISTER_HWIF = 0x32a
|
||||
HOSTFS_SUPER_MAGIC = 0xc0ffee
|
||||
HPFS_SUPER_MAGIC = 0xf995e849
|
||||
HUGETLBFS_MAGIC = 0x958458f6
|
||||
HUPCL = 0x400
|
||||
IBSHIFT = 0x10
|
||||
ICANON = 0x2
|
||||
|
@ -792,12 +866,14 @@ const (
|
|||
IP_UNICAST_IF = 0x32
|
||||
IP_XFRM_POLICY = 0x11
|
||||
ISIG = 0x1
|
||||
ISOFS_SUPER_MAGIC = 0x9660
|
||||
ISTRIP = 0x20
|
||||
IUCLC = 0x200
|
||||
IUTF8 = 0x4000
|
||||
IXANY = 0x800
|
||||
IXOFF = 0x1000
|
||||
IXON = 0x400
|
||||
JFFS2_SUPER_MAGIC = 0x72b6
|
||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||
KEYCTL_CHOWN = 0x4
|
||||
KEYCTL_CLEAR = 0x7
|
||||
|
@ -894,9 +970,15 @@ const (
|
|||
MCL_CURRENT = 0x1
|
||||
MCL_FUTURE = 0x2
|
||||
MCL_ONFAULT = 0x4
|
||||
MINIX2_SUPER_MAGIC = 0x2468
|
||||
MINIX2_SUPER_MAGIC2 = 0x2478
|
||||
MINIX3_SUPER_MAGIC = 0x4d5a
|
||||
MINIX_SUPER_MAGIC = 0x137f
|
||||
MINIX_SUPER_MAGIC2 = 0x138f
|
||||
MNT_DETACH = 0x2
|
||||
MNT_EXPIRE = 0x4
|
||||
MNT_FORCE = 0x1
|
||||
MSDOS_SUPER_MAGIC = 0x4d44
|
||||
MSG_BATCH = 0x40000
|
||||
MSG_CMSG_CLOEXEC = 0x40000000
|
||||
MSG_CONFIRM = 0x800
|
||||
|
@ -956,7 +1038,9 @@ const (
|
|||
MS_SYNCHRONOUS = 0x10
|
||||
MS_UNBINDABLE = 0x20000
|
||||
MS_VERBOSE = 0x8000
|
||||
MTD_INODE_FS_MAGIC = 0x11307854
|
||||
NAME_MAX = 0xff
|
||||
NCP_SUPER_MAGIC = 0x564c
|
||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||
NETLINK_AUDIT = 0x9
|
||||
NETLINK_BROADCAST_ERROR = 0x4
|
||||
|
@ -991,6 +1075,37 @@ const (
|
|||
NETLINK_UNUSED = 0x1
|
||||
NETLINK_USERSOCK = 0x2
|
||||
NETLINK_XFRM = 0x6
|
||||
NFNETLINK_V0 = 0x0
|
||||
NFNLGRP_ACCT_QUOTA = 0x8
|
||||
NFNLGRP_CONNTRACK_DESTROY = 0x3
|
||||
NFNLGRP_CONNTRACK_EXP_DESTROY = 0x6
|
||||
NFNLGRP_CONNTRACK_EXP_NEW = 0x4
|
||||
NFNLGRP_CONNTRACK_EXP_UPDATE = 0x5
|
||||
NFNLGRP_CONNTRACK_NEW = 0x1
|
||||
NFNLGRP_CONNTRACK_UPDATE = 0x2
|
||||
NFNLGRP_MAX = 0x9
|
||||
NFNLGRP_NFTABLES = 0x7
|
||||
NFNLGRP_NFTRACE = 0x9
|
||||
NFNLGRP_NONE = 0x0
|
||||
NFNL_BATCH_MAX = 0x1
|
||||
NFNL_MSG_BATCH_BEGIN = 0x10
|
||||
NFNL_MSG_BATCH_END = 0x11
|
||||
NFNL_NFA_NEST = 0x8000
|
||||
NFNL_SUBSYS_ACCT = 0x7
|
||||
NFNL_SUBSYS_COUNT = 0xc
|
||||
NFNL_SUBSYS_CTHELPER = 0x9
|
||||
NFNL_SUBSYS_CTNETLINK = 0x1
|
||||
NFNL_SUBSYS_CTNETLINK_EXP = 0x2
|
||||
NFNL_SUBSYS_CTNETLINK_TIMEOUT = 0x8
|
||||
NFNL_SUBSYS_IPSET = 0x6
|
||||
NFNL_SUBSYS_NFTABLES = 0xa
|
||||
NFNL_SUBSYS_NFT_COMPAT = 0xb
|
||||
NFNL_SUBSYS_NONE = 0x0
|
||||
NFNL_SUBSYS_OSF = 0x5
|
||||
NFNL_SUBSYS_QUEUE = 0x3
|
||||
NFNL_SUBSYS_ULOG = 0x4
|
||||
NFS_SUPER_MAGIC = 0x6969
|
||||
NILFS_SUPER_MAGIC = 0x3434
|
||||
NL0 = 0x0
|
||||
NL1 = 0x100
|
||||
NLA_ALIGNTO = 0x4
|
||||
|
@ -1023,6 +1138,8 @@ const (
|
|||
NLM_F_REQUEST = 0x1
|
||||
NLM_F_ROOT = 0x100
|
||||
NOFLSH = 0x80
|
||||
NSFS_MAGIC = 0x6e736673
|
||||
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||
OCRNL = 0x8
|
||||
OFDEL = 0x80
|
||||
OFILL = 0x40
|
||||
|
@ -1030,7 +1147,9 @@ const (
|
|||
ONLCR = 0x4
|
||||
ONLRET = 0x20
|
||||
ONOCR = 0x10
|
||||
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||
OPOST = 0x1
|
||||
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||
O_ACCMODE = 0x3
|
||||
O_APPEND = 0x8
|
||||
O_ASYNC = 0x1000
|
||||
|
@ -1115,16 +1234,20 @@ const (
|
|||
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
|
||||
PIPEFS_MAGIC = 0x50495045
|
||||
PRIO_PGRP = 0x1
|
||||
PRIO_PROCESS = 0x0
|
||||
PRIO_USER = 0x2
|
||||
PROC_SUPER_MAGIC = 0x9fa0
|
||||
PROT_EXEC = 0x4
|
||||
PROT_GROWSDOWN = 0x1000000
|
||||
PROT_GROWSUP = 0x2000000
|
||||
|
@ -1167,6 +1290,7 @@ const (
|
|||
PR_GET_PDEATHSIG = 0x2
|
||||
PR_GET_SECCOMP = 0x15
|
||||
PR_GET_SECUREBITS = 0x1b
|
||||
PR_GET_SPECULATION_CTRL = 0x34
|
||||
PR_GET_THP_DISABLE = 0x2a
|
||||
PR_GET_TID_ADDRESS = 0x28
|
||||
PR_GET_TIMERSLACK = 0x1e
|
||||
|
@ -1212,11 +1336,18 @@ const (
|
|||
PR_SET_PTRACER_ANY = 0xffffffff
|
||||
PR_SET_SECCOMP = 0x16
|
||||
PR_SET_SECUREBITS = 0x1c
|
||||
PR_SET_SPECULATION_CTRL = 0x35
|
||||
PR_SET_THP_DISABLE = 0x29
|
||||
PR_SET_TIMERSLACK = 0x1d
|
||||
PR_SET_TIMING = 0xe
|
||||
PR_SET_TSC = 0x1a
|
||||
PR_SET_UNALIGN = 0x6
|
||||
PR_SPEC_DISABLE = 0x4
|
||||
PR_SPEC_ENABLE = 0x2
|
||||
PR_SPEC_FORCE_DISABLE = 0x8
|
||||
PR_SPEC_NOT_AFFECTED = 0x0
|
||||
PR_SPEC_PRCTL = 0x1
|
||||
PR_SPEC_STORE_BYPASS = 0x0
|
||||
PR_SVE_GET_VL = 0x33
|
||||
PR_SVE_SET_VL = 0x32
|
||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||
|
@ -1230,6 +1361,7 @@ const (
|
|||
PR_TSC_SIGSEGV = 0x2
|
||||
PR_UNALIGN_NOPRINT = 0x1
|
||||
PR_UNALIGN_SIGBUS = 0x2
|
||||
PSTOREFS_MAGIC = 0x6165676c
|
||||
PTRACE_ATTACH = 0x10
|
||||
PTRACE_CONT = 0x7
|
||||
PTRACE_DETACH = 0x11
|
||||
|
@ -1278,6 +1410,7 @@ const (
|
|||
PTRACE_POKETEXT_3264 = 0xc2
|
||||
PTRACE_POKEUSR = 0x6
|
||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||
PTRACE_SEIZE = 0x4206
|
||||
PTRACE_SETFPREGS = 0xf
|
||||
PTRACE_SETOPTIONS = 0x4200
|
||||
|
@ -1290,6 +1423,11 @@ const (
|
|||
PTRACE_SINGLESTEP = 0x9
|
||||
PTRACE_SYSCALL = 0x18
|
||||
PTRACE_TRACEME = 0x0
|
||||
QNX4_SUPER_MAGIC = 0x2f
|
||||
QNX6_SUPER_MAGIC = 0x68191122
|
||||
RAMFS_MAGIC = 0x858458f6
|
||||
RDTGROUP_SUPER_MAGIC = 0x7655821
|
||||
REISERFS_SUPER_MAGIC = 0x52654973
|
||||
RLIMIT_AS = 0x6
|
||||
RLIMIT_CORE = 0x4
|
||||
RLIMIT_CPU = 0x0
|
||||
|
@ -1339,6 +1477,33 @@ const (
|
|||
RTCF_MASQ = 0x400000
|
||||
RTCF_NAT = 0x800000
|
||||
RTCF_VALVE = 0x200000
|
||||
RTC_AF = 0x20
|
||||
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_IRQF = 0x80
|
||||
RTC_IRQP_READ = 0x4004700b
|
||||
RTC_IRQP_SET = 0x8004700c
|
||||
RTC_MAX_FREQ = 0x2000
|
||||
RTC_PF = 0x40
|
||||
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_UF = 0x10
|
||||
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
|
||||
RTF_ADDRCLASSMASK = 0xf8000000
|
||||
RTF_ADDRCONF = 0x40000
|
||||
RTF_ALLONLINK = 0x20000
|
||||
|
@ -1475,6 +1640,8 @@ const (
|
|||
SECCOMP_MODE_DISABLED = 0x0
|
||||
SECCOMP_MODE_FILTER = 0x2
|
||||
SECCOMP_MODE_STRICT = 0x1
|
||||
SECURITYFS_MAGIC = 0x73636673
|
||||
SELINUX_MAGIC = 0xf97cff8c
|
||||
SHUT_RD = 0x0
|
||||
SHUT_RDWR = 0x2
|
||||
SHUT_WR = 0x1
|
||||
|
@ -1559,6 +1726,23 @@ const (
|
|||
SIOCSPGRP = 0x80047308
|
||||
SIOCSRARP = 0x8962
|
||||
SIOCWANDEV = 0x894a
|
||||
SMACK_MAGIC = 0x43415d53
|
||||
SMART_AUTOSAVE = 0xd2
|
||||
SMART_AUTO_OFFLINE = 0xdb
|
||||
SMART_DISABLE = 0xd9
|
||||
SMART_ENABLE = 0xd8
|
||||
SMART_HCYL_PASS = 0xc2
|
||||
SMART_IMMEDIATE_OFFLINE = 0xd4
|
||||
SMART_LCYL_PASS = 0x4f
|
||||
SMART_READ_LOG_SECTOR = 0xd5
|
||||
SMART_READ_THRESHOLDS = 0xd1
|
||||
SMART_READ_VALUES = 0xd0
|
||||
SMART_SAVE = 0xd3
|
||||
SMART_STATUS = 0xda
|
||||
SMART_WRITE_LOG_SECTOR = 0xd6
|
||||
SMART_WRITE_THRESHOLDS = 0xd7
|
||||
SMB_SUPER_MAGIC = 0x517b
|
||||
SOCKFS_MAGIC = 0x534f434b
|
||||
SOCK_CLOEXEC = 0x80000
|
||||
SOCK_DCCP = 0x6
|
||||
SOCK_DGRAM = 0x1
|
||||
|
@ -1670,6 +1854,8 @@ const (
|
|||
SPLICE_F_MORE = 0x4
|
||||
SPLICE_F_MOVE = 0x1
|
||||
SPLICE_F_NONBLOCK = 0x2
|
||||
SQUASHFS_MAGIC = 0x73717368
|
||||
STACK_END_MAGIC = 0x57ac6e9d
|
||||
STATX_ALL = 0xfff
|
||||
STATX_ATIME = 0x20
|
||||
STATX_ATTR_APPEND = 0x20
|
||||
|
@ -1691,6 +1877,7 @@ const (
|
|||
STATX_TYPE = 0x1
|
||||
STATX_UID = 0x8
|
||||
STATX__RESERVED = 0x80000000
|
||||
SYSFS_MAGIC = 0x62656572
|
||||
S_BLKSIZE = 0x200
|
||||
S_IEXEC = 0x40
|
||||
S_IFBLK = 0x6000
|
||||
|
@ -1873,7 +2060,27 @@ const (
|
|||
TIOCSTI = 0x5472
|
||||
TIOCSWINSZ = 0x80087467
|
||||
TIOCVHANGUP = 0x5437
|
||||
TMPFS_MAGIC = 0x1021994
|
||||
TOSTOP = 0x8000
|
||||
TPACKET_ALIGNMENT = 0x10
|
||||
TPACKET_HDRLEN = 0x34
|
||||
TP_STATUS_AVAILABLE = 0x0
|
||||
TP_STATUS_BLK_TMO = 0x20
|
||||
TP_STATUS_COPY = 0x2
|
||||
TP_STATUS_CSUMNOTREADY = 0x8
|
||||
TP_STATUS_CSUM_VALID = 0x80
|
||||
TP_STATUS_KERNEL = 0x0
|
||||
TP_STATUS_LOSING = 0x4
|
||||
TP_STATUS_SENDING = 0x2
|
||||
TP_STATUS_SEND_REQUEST = 0x1
|
||||
TP_STATUS_TS_RAW_HARDWARE = -0x80000000
|
||||
TP_STATUS_TS_SOFTWARE = 0x20000000
|
||||
TP_STATUS_TS_SYS_HARDWARE = 0x40000000
|
||||
TP_STATUS_USER = 0x1
|
||||
TP_STATUS_VLAN_TPID_VALID = 0x40
|
||||
TP_STATUS_VLAN_VALID = 0x10
|
||||
TP_STATUS_WRONG_FORMAT = 0x4
|
||||
TRACEFS_MAGIC = 0x74726163
|
||||
TS_COMM_LEN = 0x20
|
||||
TUNATTACHFILTER = 0x800854d5
|
||||
TUNDETACHFILTER = 0x800854d6
|
||||
|
@ -1885,6 +2092,7 @@ const (
|
|||
TUNGETVNETHDRSZ = 0x400454d7
|
||||
TUNGETVNETLE = 0x400454dd
|
||||
TUNSETDEBUG = 0x800454c9
|
||||
TUNSETFILTEREBPF = 0x400454e1
|
||||
TUNSETGROUP = 0x800454ce
|
||||
TUNSETIFF = 0x800454ca
|
||||
TUNSETIFINDEX = 0x800454da
|
||||
|
@ -1895,13 +2103,17 @@ const (
|
|||
TUNSETPERSIST = 0x800454cb
|
||||
TUNSETQUEUE = 0x800454d9
|
||||
TUNSETSNDBUF = 0x800454d4
|
||||
TUNSETSTEERINGEBPF = 0x400454e0
|
||||
TUNSETTXFILTER = 0x800454d1
|
||||
TUNSETVNETBE = 0x800454de
|
||||
TUNSETVNETHDRSZ = 0x800454d8
|
||||
TUNSETVNETLE = 0x800454dc
|
||||
UDF_SUPER_MAGIC = 0x15013346
|
||||
UMOUNT_NOFOLLOW = 0x8
|
||||
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||
UTIME_NOW = 0x3fffffff
|
||||
UTIME_OMIT = 0x3ffffffe
|
||||
V9FS_MAGIC = 0x1021997
|
||||
VDISCARD = 0xd
|
||||
VEOF = 0x10
|
||||
VEOL = 0x11
|
||||
|
@ -1944,6 +2156,86 @@ const (
|
|||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||
WDIOC_SETTIMEOUT = 0xc0045706
|
||||
WEXITED = 0x4
|
||||
WIN_ACKMEDIACHANGE = 0xdb
|
||||
WIN_CHECKPOWERMODE1 = 0xe5
|
||||
WIN_CHECKPOWERMODE2 = 0x98
|
||||
WIN_DEVICE_RESET = 0x8
|
||||
WIN_DIAGNOSE = 0x90
|
||||
WIN_DOORLOCK = 0xde
|
||||
WIN_DOORUNLOCK = 0xdf
|
||||
WIN_DOWNLOAD_MICROCODE = 0x92
|
||||
WIN_FLUSH_CACHE = 0xe7
|
||||
WIN_FLUSH_CACHE_EXT = 0xea
|
||||
WIN_FORMAT = 0x50
|
||||
WIN_GETMEDIASTATUS = 0xda
|
||||
WIN_IDENTIFY = 0xec
|
||||
WIN_IDENTIFY_DMA = 0xee
|
||||
WIN_IDLEIMMEDIATE = 0xe1
|
||||
WIN_INIT = 0x60
|
||||
WIN_MEDIAEJECT = 0xed
|
||||
WIN_MULTREAD = 0xc4
|
||||
WIN_MULTREAD_EXT = 0x29
|
||||
WIN_MULTWRITE = 0xc5
|
||||
WIN_MULTWRITE_EXT = 0x39
|
||||
WIN_NOP = 0x0
|
||||
WIN_PACKETCMD = 0xa0
|
||||
WIN_PIDENTIFY = 0xa1
|
||||
WIN_POSTBOOT = 0xdc
|
||||
WIN_PREBOOT = 0xdd
|
||||
WIN_QUEUED_SERVICE = 0xa2
|
||||
WIN_READ = 0x20
|
||||
WIN_READDMA = 0xc8
|
||||
WIN_READDMA_EXT = 0x25
|
||||
WIN_READDMA_ONCE = 0xc9
|
||||
WIN_READDMA_QUEUED = 0xc7
|
||||
WIN_READDMA_QUEUED_EXT = 0x26
|
||||
WIN_READ_BUFFER = 0xe4
|
||||
WIN_READ_EXT = 0x24
|
||||
WIN_READ_LONG = 0x22
|
||||
WIN_READ_LONG_ONCE = 0x23
|
||||
WIN_READ_NATIVE_MAX = 0xf8
|
||||
WIN_READ_NATIVE_MAX_EXT = 0x27
|
||||
WIN_READ_ONCE = 0x21
|
||||
WIN_RECAL = 0x10
|
||||
WIN_RESTORE = 0x10
|
||||
WIN_SECURITY_DISABLE = 0xf6
|
||||
WIN_SECURITY_ERASE_PREPARE = 0xf3
|
||||
WIN_SECURITY_ERASE_UNIT = 0xf4
|
||||
WIN_SECURITY_FREEZE_LOCK = 0xf5
|
||||
WIN_SECURITY_SET_PASS = 0xf1
|
||||
WIN_SECURITY_UNLOCK = 0xf2
|
||||
WIN_SEEK = 0x70
|
||||
WIN_SETFEATURES = 0xef
|
||||
WIN_SETIDLE1 = 0xe3
|
||||
WIN_SETIDLE2 = 0x97
|
||||
WIN_SETMULT = 0xc6
|
||||
WIN_SET_MAX = 0xf9
|
||||
WIN_SET_MAX_EXT = 0x37
|
||||
WIN_SLEEPNOW1 = 0xe6
|
||||
WIN_SLEEPNOW2 = 0x99
|
||||
WIN_SMART = 0xb0
|
||||
WIN_SPECIFY = 0x91
|
||||
WIN_SRST = 0x8
|
||||
WIN_STANDBY = 0xe2
|
||||
WIN_STANDBY2 = 0x96
|
||||
WIN_STANDBYNOW1 = 0xe0
|
||||
WIN_STANDBYNOW2 = 0x94
|
||||
WIN_VERIFY = 0x40
|
||||
WIN_VERIFY_EXT = 0x42
|
||||
WIN_VERIFY_ONCE = 0x41
|
||||
WIN_WRITE = 0x30
|
||||
WIN_WRITEDMA = 0xca
|
||||
WIN_WRITEDMA_EXT = 0x35
|
||||
WIN_WRITEDMA_ONCE = 0xcb
|
||||
WIN_WRITEDMA_QUEUED = 0xcc
|
||||
WIN_WRITEDMA_QUEUED_EXT = 0x36
|
||||
WIN_WRITE_BUFFER = 0xe8
|
||||
WIN_WRITE_EXT = 0x34
|
||||
WIN_WRITE_LONG = 0x32
|
||||
WIN_WRITE_LONG_ONCE = 0x33
|
||||
WIN_WRITE_ONCE = 0x31
|
||||
WIN_WRITE_SAME = 0xe9
|
||||
WIN_WRITE_VERIFY = 0x3c
|
||||
WNOHANG = 0x1
|
||||
WNOTHREAD = 0x20000000
|
||||
WNOWAIT = 0x1000000
|
||||
|
@ -1953,7 +2245,9 @@ const (
|
|||
XATTR_CREATE = 0x1
|
||||
XATTR_REPLACE = 0x2
|
||||
XCASE = 0x4
|
||||
XENFS_SUPER_MAGIC = 0xabba1974
|
||||
XTABS = 0x1800
|
||||
ZSMALLOC_MAGIC = 0x58295829
|
||||
)
|
||||
|
||||
// Errors
|
||||
|
@ -2135,174 +2429,182 @@ const (
|
|||
)
|
||||
|
||||
// Error table
|
||||
var errors = [...]string{
|
||||
1: "operation not permitted",
|
||||
2: "no such file or directory",
|
||||
3: "no such process",
|
||||
4: "interrupted system call",
|
||||
5: "input/output error",
|
||||
6: "no such device or address",
|
||||
7: "argument list too long",
|
||||
8: "exec format error",
|
||||
9: "bad file descriptor",
|
||||
10: "no child processes",
|
||||
11: "resource temporarily unavailable",
|
||||
12: "cannot allocate memory",
|
||||
13: "permission denied",
|
||||
14: "bad address",
|
||||
15: "block device required",
|
||||
16: "device or resource busy",
|
||||
17: "file exists",
|
||||
18: "invalid cross-device link",
|
||||
19: "no such device",
|
||||
20: "not a directory",
|
||||
21: "is a directory",
|
||||
22: "invalid argument",
|
||||
23: "too many open files in system",
|
||||
24: "too many open files",
|
||||
25: "inappropriate ioctl for device",
|
||||
26: "text file busy",
|
||||
27: "file too large",
|
||||
28: "no space left on device",
|
||||
29: "illegal seek",
|
||||
30: "read-only file system",
|
||||
31: "too many links",
|
||||
32: "broken pipe",
|
||||
33: "numerical argument out of domain",
|
||||
34: "numerical result out of range",
|
||||
35: "no message of desired type",
|
||||
36: "identifier removed",
|
||||
37: "channel number out of range",
|
||||
38: "level 2 not synchronized",
|
||||
39: "level 3 halted",
|
||||
40: "level 3 reset",
|
||||
41: "link number out of range",
|
||||
42: "protocol driver not attached",
|
||||
43: "no CSI structure available",
|
||||
44: "level 2 halted",
|
||||
45: "resource deadlock avoided",
|
||||
46: "no locks available",
|
||||
50: "invalid exchange",
|
||||
51: "invalid request descriptor",
|
||||
52: "exchange full",
|
||||
53: "no anode",
|
||||
54: "invalid request code",
|
||||
55: "invalid slot",
|
||||
56: "file locking deadlock error",
|
||||
59: "bad font file format",
|
||||
60: "device not a stream",
|
||||
61: "no data available",
|
||||
62: "timer expired",
|
||||
63: "out of streams resources",
|
||||
64: "machine is not on the network",
|
||||
65: "package not installed",
|
||||
66: "object is remote",
|
||||
67: "link has been severed",
|
||||
68: "advertise error",
|
||||
69: "srmount error",
|
||||
70: "communication error on send",
|
||||
71: "protocol error",
|
||||
73: "RFS specific error",
|
||||
74: "multihop attempted",
|
||||
77: "bad message",
|
||||
78: "file name too long",
|
||||
79: "value too large for defined data type",
|
||||
80: "name not unique on network",
|
||||
81: "file descriptor in bad state",
|
||||
82: "remote address changed",
|
||||
83: "can not access a needed shared library",
|
||||
84: "accessing a corrupted shared library",
|
||||
85: ".lib section in a.out corrupted",
|
||||
86: "attempting to link in too many shared libraries",
|
||||
87: "cannot exec a shared library directly",
|
||||
88: "invalid or incomplete multibyte or wide character",
|
||||
89: "function not implemented",
|
||||
90: "too many levels of symbolic links",
|
||||
91: "interrupted system call should be restarted",
|
||||
92: "streams pipe error",
|
||||
93: "directory not empty",
|
||||
94: "too many users",
|
||||
95: "socket operation on non-socket",
|
||||
96: "destination address required",
|
||||
97: "message too long",
|
||||
98: "protocol wrong type for socket",
|
||||
99: "protocol not available",
|
||||
120: "protocol not supported",
|
||||
121: "socket type not supported",
|
||||
122: "operation not supported",
|
||||
123: "protocol family not supported",
|
||||
124: "address family not supported by protocol",
|
||||
125: "address already in use",
|
||||
126: "cannot assign requested address",
|
||||
127: "network is down",
|
||||
128: "network is unreachable",
|
||||
129: "network dropped connection on reset",
|
||||
130: "software caused connection abort",
|
||||
131: "connection reset by peer",
|
||||
132: "no buffer space available",
|
||||
133: "transport endpoint is already connected",
|
||||
134: "transport endpoint is not connected",
|
||||
135: "structure needs cleaning",
|
||||
137: "not a XENIX named type file",
|
||||
138: "no XENIX semaphores available",
|
||||
139: "is a named type file",
|
||||
140: "remote I/O error",
|
||||
141: "unknown error 141",
|
||||
142: "unknown error 142",
|
||||
143: "cannot send after transport endpoint shutdown",
|
||||
144: "too many references: cannot splice",
|
||||
145: "connection timed out",
|
||||
146: "connection refused",
|
||||
147: "host is down",
|
||||
148: "no route to host",
|
||||
149: "operation already in progress",
|
||||
150: "operation now in progress",
|
||||
151: "stale file handle",
|
||||
158: "operation canceled",
|
||||
159: "no medium found",
|
||||
160: "wrong medium type",
|
||||
161: "required key not available",
|
||||
162: "key has expired",
|
||||
163: "key has been revoked",
|
||||
164: "key was rejected by service",
|
||||
165: "owner died",
|
||||
166: "state not recoverable",
|
||||
167: "operation not possible due to RF-kill",
|
||||
168: "memory page has hardware error",
|
||||
1133: "disk quota exceeded",
|
||||
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, "ENOMSG", "no message of desired type"},
|
||||
{36, "EIDRM", "identifier removed"},
|
||||
{37, "ECHRNG", "channel number out of range"},
|
||||
{38, "EL2NSYNC", "level 2 not synchronized"},
|
||||
{39, "EL3HLT", "level 3 halted"},
|
||||
{40, "EL3RST", "level 3 reset"},
|
||||
{41, "ELNRNG", "link number out of range"},
|
||||
{42, "EUNATCH", "protocol driver not attached"},
|
||||
{43, "ENOCSI", "no CSI structure available"},
|
||||
{44, "EL2HLT", "level 2 halted"},
|
||||
{45, "EDEADLK", "resource deadlock avoided"},
|
||||
{46, "ENOLCK", "no locks available"},
|
||||
{50, "EBADE", "invalid exchange"},
|
||||
{51, "EBADR", "invalid request descriptor"},
|
||||
{52, "EXFULL", "exchange full"},
|
||||
{53, "ENOANO", "no anode"},
|
||||
{54, "EBADRQC", "invalid request code"},
|
||||
{55, "EBADSLT", "invalid slot"},
|
||||
{56, "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"},
|
||||
{73, "EDOTDOT", "RFS specific error"},
|
||||
{74, "EMULTIHOP", "multihop attempted"},
|
||||
{77, "EBADMSG", "bad message"},
|
||||
{78, "ENAMETOOLONG", "file name too long"},
|
||||
{79, "EOVERFLOW", "value too large for defined data type"},
|
||||
{80, "ENOTUNIQ", "name not unique on network"},
|
||||
{81, "EBADFD", "file descriptor in bad state"},
|
||||
{82, "EREMCHG", "remote address changed"},
|
||||
{83, "ELIBACC", "can not access a needed shared library"},
|
||||
{84, "ELIBBAD", "accessing a corrupted shared library"},
|
||||
{85, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||
{86, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||
{87, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||
{88, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||
{89, "ENOSYS", "function not implemented"},
|
||||
{90, "ELOOP", "too many levels of symbolic links"},
|
||||
{91, "ERESTART", "interrupted system call should be restarted"},
|
||||
{92, "ESTRPIPE", "streams pipe error"},
|
||||
{93, "ENOTEMPTY", "directory not empty"},
|
||||
{94, "EUSERS", "too many users"},
|
||||
{95, "ENOTSOCK", "socket operation on non-socket"},
|
||||
{96, "EDESTADDRREQ", "destination address required"},
|
||||
{97, "EMSGSIZE", "message too long"},
|
||||
{98, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||
{99, "ENOPROTOOPT", "protocol not available"},
|
||||
{120, "EPROTONOSUPPORT", "protocol not supported"},
|
||||
{121, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||
{122, "ENOTSUP", "operation not supported"},
|
||||
{123, "EPFNOSUPPORT", "protocol family not supported"},
|
||||
{124, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||
{125, "EADDRINUSE", "address already in use"},
|
||||
{126, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||
{127, "ENETDOWN", "network is down"},
|
||||
{128, "ENETUNREACH", "network is unreachable"},
|
||||
{129, "ENETRESET", "network dropped connection on reset"},
|
||||
{130, "ECONNABORTED", "software caused connection abort"},
|
||||
{131, "ECONNRESET", "connection reset by peer"},
|
||||
{132, "ENOBUFS", "no buffer space available"},
|
||||
{133, "EISCONN", "transport endpoint is already connected"},
|
||||
{134, "ENOTCONN", "transport endpoint is not connected"},
|
||||
{135, "EUCLEAN", "structure needs cleaning"},
|
||||
{137, "ENOTNAM", "not a XENIX named type file"},
|
||||
{138, "ENAVAIL", "no XENIX semaphores available"},
|
||||
{139, "EISNAM", "is a named type file"},
|
||||
{140, "EREMOTEIO", "remote I/O error"},
|
||||
{141, "EINIT", "unknown error 141"},
|
||||
{142, "EREMDEV", "unknown error 142"},
|
||||
{143, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||
{144, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||
{145, "ETIMEDOUT", "connection timed out"},
|
||||
{146, "ECONNREFUSED", "connection refused"},
|
||||
{147, "EHOSTDOWN", "host is down"},
|
||||
{148, "EHOSTUNREACH", "no route to host"},
|
||||
{149, "EALREADY", "operation already in progress"},
|
||||
{150, "EINPROGRESS", "operation now in progress"},
|
||||
{151, "ESTALE", "stale file handle"},
|
||||
{158, "ECANCELED", "operation canceled"},
|
||||
{159, "ENOMEDIUM", "no medium found"},
|
||||
{160, "EMEDIUMTYPE", "wrong medium type"},
|
||||
{161, "ENOKEY", "required key not available"},
|
||||
{162, "EKEYEXPIRED", "key has expired"},
|
||||
{163, "EKEYREVOKED", "key has been revoked"},
|
||||
{164, "EKEYREJECTED", "key was rejected by service"},
|
||||
{165, "EOWNERDEAD", "owner died"},
|
||||
{166, "ENOTRECOVERABLE", "state not recoverable"},
|
||||
{167, "ERFKILL", "operation not possible due to RF-kill"},
|
||||
{168, "EHWPOISON", "memory page has hardware error"},
|
||||
{1133, "EDQUOT", "disk quota exceeded"},
|
||||
}
|
||||
|
||||
// Signal table
|
||||
var signals = [...]string{
|
||||
1: "hangup",
|
||||
2: "interrupt",
|
||||
3: "quit",
|
||||
4: "illegal instruction",
|
||||
5: "trace/breakpoint trap",
|
||||
6: "aborted",
|
||||
7: "EMT trap",
|
||||
8: "floating point exception",
|
||||
9: "killed",
|
||||
10: "bus error",
|
||||
11: "segmentation fault",
|
||||
12: "bad system call",
|
||||
13: "broken pipe",
|
||||
14: "alarm clock",
|
||||
15: "terminated",
|
||||
16: "user defined signal 1",
|
||||
17: "user defined signal 2",
|
||||
18: "child exited",
|
||||
19: "power failure",
|
||||
20: "window changed",
|
||||
21: "urgent I/O condition",
|
||||
22: "I/O possible",
|
||||
23: "stopped (signal)",
|
||||
24: "stopped",
|
||||
25: "continued",
|
||||
26: "stopped (tty input)",
|
||||
27: "stopped (tty output)",
|
||||
28: "virtual timer expired",
|
||||
29: "profiling timer expired",
|
||||
30: "CPU time limit exceeded",
|
||||
31: "file size limit exceeded",
|
||||
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, "SIGEMT", "EMT trap"},
|
||||
{8, "SIGFPE", "floating point exception"},
|
||||
{9, "SIGKILL", "killed"},
|
||||
{10, "SIGBUS", "bus error"},
|
||||
{11, "SIGSEGV", "segmentation fault"},
|
||||
{12, "SIGSYS", "bad system call"},
|
||||
{13, "SIGPIPE", "broken pipe"},
|
||||
{14, "SIGALRM", "alarm clock"},
|
||||
{15, "SIGTERM", "terminated"},
|
||||
{16, "SIGUSR1", "user defined signal 1"},
|
||||
{17, "SIGUSR2", "user defined signal 2"},
|
||||
{18, "SIGCHLD", "child exited"},
|
||||
{19, "SIGPWR", "power failure"},
|
||||
{20, "SIGWINCH", "window changed"},
|
||||
{21, "SIGURG", "urgent I/O condition"},
|
||||
{22, "SIGIO", "I/O possible"},
|
||||
{23, "SIGSTOP", "stopped (signal)"},
|
||||
{24, "SIGTSTP", "stopped"},
|
||||
{25, "SIGCONT", "continued"},
|
||||
{26, "SIGTTIN", "stopped (tty input)"},
|
||||
{27, "SIGTTOU", "stopped (tty output)"},
|
||||
{28, "SIGVTALRM", "virtual timer expired"},
|
||||
{29, "SIGPROF", "profiling timer expired"},
|
||||
{30, "SIGXCPU", "CPU time limit exceeded"},
|
||||
{31, "SIGXFSZ", "file size limit exceeded"},
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue