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]]
|
[[projects]]
|
||||||
branch = "allow-disable-of-attribution-rendering"
|
branch = "master"
|
||||||
name = "github.com/Luzifer/go-staticmaps"
|
name = "github.com/Luzifer/go-staticmaps"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
revision = "d701c2c232ad9cbcac3e48e2c34e98544191c2fe"
|
revision = "320790ed53294a789e715b3d0d5da8110efea1a2"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "github.com/Luzifer/go_helpers"
|
name = "github.com/Luzifer/go_helpers"
|
||||||
|
@ -14,8 +14,8 @@
|
||||||
"http",
|
"http",
|
||||||
"str"
|
"str"
|
||||||
]
|
]
|
||||||
revision = "15199b8e33ca5558e8c58af7924083983eb63ca4"
|
revision = "b0da2aa67ecc05ee4c8848d679b4a11a2fa578b2"
|
||||||
version = "v2.4.0"
|
version = "v2.6.0"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "github.com/Luzifer/rconfig"
|
name = "github.com/Luzifer/rconfig"
|
||||||
|
@ -23,12 +23,6 @@
|
||||||
revision = "7aef1d393c1e2d0758901853b59981c7adc67c7e"
|
revision = "7aef1d393c1e2d0758901853b59981c7adc67c7e"
|
||||||
version = "v1.2.0"
|
version = "v1.2.0"
|
||||||
|
|
||||||
[[projects]]
|
|
||||||
name = "github.com/Sirupsen/logrus"
|
|
||||||
packages = ["."]
|
|
||||||
revision = "c155da19408a8799da419ed3eeb0cb5db0ad5dbc"
|
|
||||||
version = "v1.0.5"
|
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
name = "github.com/Wessie/appdirs"
|
name = "github.com/Wessie/appdirs"
|
||||||
|
@ -77,25 +71,25 @@
|
||||||
"s1",
|
"s1",
|
||||||
"s2"
|
"s2"
|
||||||
]
|
]
|
||||||
revision = "fb250ae94fbe10f86b4f1a9b70a19925da3410b9"
|
revision = "e41ca803f92c4c1770133cfa5b4fc8249a7dbe82"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "github.com/gorilla/context"
|
name = "github.com/gorilla/context"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
revision = "1ea25387ff6f684839d82767c1733ff4d4d15d0a"
|
revision = "08b5f424b9271eedf6f9f0ce86cb9396ed337a42"
|
||||||
version = "v1.1"
|
version = "v1.1.1"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "github.com/gorilla/mux"
|
name = "github.com/gorilla/mux"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
revision = "53c1911da2b537f792e7cafcb446b05ffe33b996"
|
revision = "e3702bed27f0d39777b0b37b664b6280e8ef8fbf"
|
||||||
version = "v1.6.1"
|
version = "v1.6.2"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
name = "github.com/lucasb-eyer/go-colorful"
|
name = "github.com/lucasb-eyer/go-colorful"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
revision = "231272389856c976b7500c4fffcc52ddf06ff4eb"
|
revision = "d9cec903b20cbeda6062366e460c2c1bdc717e4d"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "github.com/patrickmn/go-cache"
|
name = "github.com/patrickmn/go-cache"
|
||||||
|
@ -103,11 +97,17 @@
|
||||||
revision = "a3647f8e31d79543b2d0f0ae2fe5c379d72cedc0"
|
revision = "a3647f8e31d79543b2d0f0ae2fe5c379d72cedc0"
|
||||||
version = "v2.1.0"
|
version = "v2.1.0"
|
||||||
|
|
||||||
|
[[projects]]
|
||||||
|
name = "github.com/sirupsen/logrus"
|
||||||
|
packages = ["."]
|
||||||
|
revision = "c155da19408a8799da419ed3eeb0cb5db0ad5dbc"
|
||||||
|
version = "v1.0.5"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "github.com/spf13/pflag"
|
name = "github.com/spf13/pflag"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
revision = "e57e3eeb33f795204c1ca35f56c44f83227c6e66"
|
revision = "583c0c0531f06d5278b7d917446061adc344b5cd"
|
||||||
version = "v1.0.0"
|
version = "v1.0.1"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
@ -119,7 +119,7 @@
|
||||||
branch = "master"
|
branch = "master"
|
||||||
name = "golang.org/x/crypto"
|
name = "golang.org/x/crypto"
|
||||||
packages = ["ssh/terminal"]
|
packages = ["ssh/terminal"]
|
||||||
revision = "b2aa35443fbc700ab74c586ae79b81c171851023"
|
revision = "027cca12c2d63e3d62b670d901e8a2c95854feec"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
@ -130,13 +130,13 @@
|
||||||
"font/plan9font",
|
"font/plan9font",
|
||||||
"math/fixed"
|
"math/fixed"
|
||||||
]
|
]
|
||||||
revision = "f315e440302883054d0c2bd85486878cb4f8572c"
|
revision = "af66defab954cb421ca110193eed9477c8541e2a"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
name = "golang.org/x/net"
|
name = "golang.org/x/net"
|
||||||
packages = ["context"]
|
packages = ["context"]
|
||||||
revision = "b68f30494add4df6bd8ef5e82803f308e7f7c59c"
|
revision = "db08ff08e8622530d9ed3a0e8ac279f6d4c02196"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
@ -145,19 +145,19 @@
|
||||||
"unix",
|
"unix",
|
||||||
"windows"
|
"windows"
|
||||||
]
|
]
|
||||||
revision = "378d26f46672a356c46195c28f61bdb4c0a781dd"
|
revision = "6c888cc515d3ed83fc103cf1d84468aad274b0a7"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
name = "golang.org/x/time"
|
name = "golang.org/x/time"
|
||||||
packages = ["rate"]
|
packages = ["rate"]
|
||||||
revision = "26559e0f760e39c24d730d3224364aef164ee23f"
|
revision = "fbb02b2291d28baffd63558aa44b4b56f178d650"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "v2"
|
branch = "v2"
|
||||||
name = "gopkg.in/validator.v2"
|
name = "gopkg.in/validator.v2"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
revision = "59c90c7046f643cbe0d4e7c8776c42a84ce75910"
|
revision = "135c24b11c19e52befcae2ec3fca5d9b78c4e98e"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
name = "gopkg.in/yaml.v2"
|
name = "gopkg.in/yaml.v2"
|
||||||
|
@ -168,6 +168,6 @@
|
||||||
[solve-meta]
|
[solve-meta]
|
||||||
analyzer-name = "dep"
|
analyzer-name = "dep"
|
||||||
analyzer-version = 1
|
analyzer-version = 1
|
||||||
inputs-digest = "bc8b02eb09921c3dcef7328c41ec92c8442d151672053769293e0c476f4a2188"
|
inputs-digest = "c59f72846eca4898dab7e7c3fc9a28b340f42aafbe4ac4866ad1ae33c382ea76"
|
||||||
solver-name = "gps-cdcl"
|
solver-name = "gps-cdcl"
|
||||||
solver-version = 1
|
solver-version = 1
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
branch = "allow-disable-of-attribution-rendering"
|
branch = "master"
|
||||||
name = "github.com/Luzifer/go-staticmaps"
|
name = "github.com/Luzifer/go-staticmaps"
|
||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
version = "1.2.0"
|
version = "1.2.0"
|
||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
name = "github.com/Sirupsen/logrus"
|
name = "github.com/sirupsen/logrus"
|
||||||
version = "1.0.5"
|
version = "1.0.5"
|
||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
|
|
2
main.go
2
main.go
|
@ -11,12 +11,12 @@ import (
|
||||||
|
|
||||||
httpHelper "github.com/Luzifer/go_helpers/http"
|
httpHelper "github.com/Luzifer/go_helpers/http"
|
||||||
"github.com/Luzifer/rconfig"
|
"github.com/Luzifer/rconfig"
|
||||||
log "github.com/Sirupsen/logrus"
|
|
||||||
"github.com/didip/tollbooth"
|
"github.com/didip/tollbooth"
|
||||||
"github.com/didip/tollbooth/limiter"
|
"github.com/didip/tollbooth/limiter"
|
||||||
"github.com/golang/geo/s2"
|
"github.com/golang/geo/s2"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
colorful "github.com/lucasb-eyer/go-colorful"
|
colorful "github.com/lucasb-eyer/go-colorful"
|
||||||
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
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)
|
ctx.SetZoom(zoom)
|
||||||
|
|
||||||
if disableAttribution {
|
if disableAttribution {
|
||||||
ctx.ForceNoAttribution()
|
ctx.OverrideAttribution("")
|
||||||
}
|
}
|
||||||
|
|
||||||
if marker != nil {
|
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
|
userAgent string
|
||||||
tileProvider *TileProvider
|
tileProvider *TileProvider
|
||||||
|
|
||||||
forceNoAttribution bool
|
overrideAttribution *string
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewContext creates a new instance of Context
|
// NewContext creates a new instance of Context
|
||||||
|
@ -149,12 +149,12 @@ func (m *Context) ClearOverlays() {
|
||||||
m.overlays = nil
|
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
|
// 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!
|
// selected map provider - only use the function if you are aware of this!
|
||||||
func (m *Context) ForceNoAttribution() {
|
func (m *Context) OverrideAttribution(attribution string) {
|
||||||
m.forceNoAttribution = true
|
m.overrideAttribution = &attribution
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Context) determineBounds() s2.Rect {
|
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},
|
img, image.Point{trans.pCenterX - int(m.width)/2, trans.pCenterY - int(m.height)/2},
|
||||||
draw.Src)
|
draw.Src)
|
||||||
|
|
||||||
|
attribution := m.tileProvider.Attribution
|
||||||
|
if m.overrideAttribution != nil {
|
||||||
|
attribution = *m.overrideAttribution
|
||||||
|
}
|
||||||
|
|
||||||
// draw attribution
|
// draw attribution
|
||||||
if m.tileProvider.Attribution == "" || m.forceNoAttribution {
|
if attribution == "" {
|
||||||
return croppedImg, nil
|
return croppedImg, nil
|
||||||
}
|
}
|
||||||
_, textHeight := gc.MeasureString(m.tileProvider.Attribution)
|
_, textHeight := gc.MeasureString(attribution)
|
||||||
boxHeight := textHeight + 4.0
|
boxHeight := textHeight + 4.0
|
||||||
gc = gg.NewContextForRGBA(croppedImg)
|
gc = gg.NewContextForRGBA(croppedImg)
|
||||||
gc.SetRGBA(0.0, 0.0, 0.0, 0.5)
|
gc.SetRGBA(0.0, 0.0, 0.0, 0.5)
|
||||||
gc.DrawRectangle(0.0, float64(m.height)-boxHeight, float64(m.width), boxHeight)
|
gc.DrawRectangle(0.0, float64(m.height)-boxHeight, float64(m.width), boxHeight)
|
||||||
gc.Fill()
|
gc.Fill()
|
||||||
gc.SetRGBA(1.0, 1.0, 1.0, 0.75)
|
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
|
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)
|
l.subregionBound = ExpandForSubregions(l.bound)
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsValid reports whether this is a valid loop or not.
|
// Validate checks whether this is a valid loop.
|
||||||
func (l *Loop) IsValid() bool {
|
func (l *Loop) Validate() error {
|
||||||
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 {
|
|
||||||
if err := l.findValidationErrorNoIndex(); err != nil {
|
if err := l.findValidationErrorNoIndex(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for intersections between non-adjacent edges (including at vertices)
|
// Check for intersections between non-adjacent edges (including at vertices)
|
||||||
// TODO(roberts): Once shapeutil gets findAnyCrossing uncomment this.
|
// TODO(roberts): Once shapeutil gets findAnyCrossing uncomment this.
|
||||||
// return findAnyCrossing(l.index)
|
// return findAnyCrossing(l.index)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -476,7 +471,7 @@ func (l *Loop) Edge(i int) Edge {
|
||||||
|
|
||||||
// NumChains reports the number of contiguous edge chains in the Loop.
|
// NumChains reports the number of contiguous edge chains in the Loop.
|
||||||
func (l *Loop) NumChains() int {
|
func (l *Loop) NumChains() int {
|
||||||
if l.isEmptyOrFull() {
|
if l.IsEmpty() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
return 1
|
return 1
|
||||||
|
@ -501,12 +496,12 @@ func (l *Loop) ChainPosition(edgeID int) ChainPosition {
|
||||||
// dimension returns the dimension of the geometry represented by this Loop.
|
// dimension returns the dimension of the geometry represented by this Loop.
|
||||||
func (l *Loop) dimension() dimension { return polygonGeometry }
|
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 {
|
func (l *Loop) IsEmpty() bool {
|
||||||
return l.isEmptyOrFull() && !l.ContainsOrigin()
|
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 {
|
func (l *Loop) IsFull() bool {
|
||||||
return l.isEmptyOrFull() && l.ContainsOrigin()
|
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)
|
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
|
// ChordAngleBetweenPoints constructs a ChordAngle corresponding to the distance
|
||||||
// between the two given points. The points must be unit length.
|
// between the two given points. The points must be unit length.
|
||||||
func ChordAngleBetweenPoints(x, y Point) s1.ChordAngle {
|
func ChordAngleBetweenPoints(x, y Point) s1.ChordAngle {
|
||||||
|
@ -392,39 +235,6 @@ func (p *Point) decode(d *decoder) {
|
||||||
p.Z = d.readFloat64()
|
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
|
// 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
|
// axis must be unit length; angle has no restrictions (e.g., it can be
|
||||||
// positive, negative, greater than 360 degrees, etc).
|
// 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
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsValid reports whether this is a valid polygon (including checking whether all
|
// Validate checks whether this is a valid polygon,
|
||||||
// the loops are themselves valid).
|
// including checking whether all the loops are themselves valid.
|
||||||
func (p *Polygon) IsValid() bool {
|
func (p *Polygon) Validate() error {
|
||||||
// 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 {
|
|
||||||
for i, l := range p.loops {
|
for i, l := range p.loops {
|
||||||
// Check for loop errors that don't require building a ShapeIndex.
|
// Check for loop errors that don't require building a ShapeIndex.
|
||||||
if err := l.findValidationErrorNoIndex(); err != nil {
|
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.
|
// NumChains reports the number of contiguous edge chains in the Polygon.
|
||||||
func (p *Polygon) NumChains() int {
|
func (p *Polygon) NumChains() int {
|
||||||
if p.IsFull() {
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
return p.NumLoops()
|
return p.NumLoops()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -687,7 +674,13 @@ func (p *Polygon) Chain(chainID int) Chain {
|
||||||
for j := 0; j < chainID; j++ {
|
for j := 0; j < chainID; j++ {
|
||||||
e += len(p.Loop(j).vertices)
|
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).
|
// 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
|
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
|
// Encode encodes the Polygon
|
||||||
func (p *Polygon) Encode(w io.Writer) error {
|
func (p *Polygon) Encode(w io.Writer) error {
|
||||||
e := &encoder{w: w}
|
e := &encoder{w: w}
|
||||||
|
@ -1087,7 +1090,6 @@ func (p *Polygon) decodeCompressed(d *decoder) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(roberts): Differences from C++
|
// TODO(roberts): Differences from C++
|
||||||
// Area
|
|
||||||
// Centroid
|
// Centroid
|
||||||
// SnapLevel
|
// SnapLevel
|
||||||
// DistanceToPoint
|
// 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.
|
// dimension returns the dimension of the geometry represented by this Polyline.
|
||||||
func (p *Polyline) dimension() dimension { return polylineGeometry }
|
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
|
// 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
|
// 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.
|
// 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) 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 }
|
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
|
// 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
|
// edges, specified as a (start, length) pair. The chain is defined to consist of
|
||||||
// edge IDs {start, start + 1, ..., start + length - 1}.
|
// 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.
|
// of edge chains where each chain represents one polygon loop.
|
||||||
// Polygons may have degeneracies (e.g., degenerate edges or sibling
|
// Polygons may have degeneracies (e.g., degenerate edges or sibling
|
||||||
// pairs consisting of an edge and its corresponding reversed edge).
|
// 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
|
// Note that this method allows degenerate geometry of different dimensions
|
||||||
// to be distinguished, e.g. it allows a point to be distinguished from a
|
// 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.
|
// polyline or polygon that has been simplified to a single point.
|
||||||
dimension() dimension
|
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.
|
// A minimal check for types that should satisfy the Shape interface.
|
||||||
|
|
26
vendor/github.com/golang/geo/s2/shapeindex.go
generated
vendored
26
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.
|
// 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] }
|
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..
|
// Add adds the given shape to the index and returns the assigned ID..
|
||||||
func (s *ShapeIndex) Add(shape Shape) int32 {
|
func (s *ShapeIndex) Add(shape Shape) int32 {
|
||||||
s.shapes[s.nextID] = shape
|
s.shapes[s.nextID] = shape
|
||||||
|
@ -696,13 +712,7 @@ func (s *ShapeIndex) Add(shape Shape) int32 {
|
||||||
func (s *ShapeIndex) Remove(shape Shape) {
|
func (s *ShapeIndex) Remove(shape Shape) {
|
||||||
// The index updates itself lazily because it is much more efficient to
|
// The index updates itself lazily because it is much more efficient to
|
||||||
// process additions and removals in batches.
|
// process additions and removals in batches.
|
||||||
// Lookup the id of this shape in the index.
|
id := s.idForShape(shape)
|
||||||
id := int32(-1)
|
|
||||||
for k, v := range s.shapes {
|
|
||||||
if v == shape {
|
|
||||||
id = k
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// If the shape wasn't found, it's already been removed or was not in the index.
|
// If the shape wasn't found, it's already been removed or was not in the index.
|
||||||
if s.shapes[id] == nil {
|
if s.shapes[id] == nil {
|
||||||
|
@ -723,7 +733,7 @@ func (s *ShapeIndex) Remove(shape Shape) {
|
||||||
shapeID: id,
|
shapeID: id,
|
||||||
hasInterior: shape.HasInterior(),
|
hasInterior: shape.HasInterior(),
|
||||||
containsTrackerOrigin: shape.ReferencePoint().Contained,
|
containsTrackerOrigin: shape.ReferencePoint().Contained,
|
||||||
edges: make([]Edge, numEdges),
|
edges: make([]Edge, numEdges),
|
||||||
}
|
}
|
||||||
|
|
||||||
for e := 0; e < numEdges; e++ {
|
for e := 0; e < numEdges; e++ {
|
||||||
|
|
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 {
|
func referencePointForShape(shape Shape) ReferencePoint {
|
||||||
if shape.NumEdges() == 0 {
|
if shape.NumEdges() == 0 {
|
||||||
// A shape with no edges is defined to be full if and only if it
|
// 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)
|
return OriginReferencePoint(shape.NumChains() > 0)
|
||||||
}
|
}
|
||||||
// Define a "matched" edge as one that can be paired with a corresponding
|
// 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
|
// All vertices are balanced, so this polygon is either empty or full except
|
||||||
// convention it is defined to be full if it contains any empty loop.
|
// 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++ {
|
for i := 0; i < shape.NumChains(); i++ {
|
||||||
if shape.Chain(i).Length == 0 {
|
if shape.Chain(i).Length == 0 {
|
||||||
return OriginReferencePoint(true)
|
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.4
|
||||||
- go: 1.5
|
- go: 1.5
|
||||||
- go: 1.6
|
- go: 1.6
|
||||||
|
- go: 1.7
|
||||||
|
- go: tip
|
||||||
|
allow_failures:
|
||||||
- go: tip
|
- go: tip
|
||||||
|
|
||||||
install:
|
|
||||||
- go get golang.org/x/tools/cmd/vet
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- go get -t -v ./...
|
- go get -t -v ./...
|
||||||
- diff -u <(echo -n) <(gofmt -d .)
|
- diff -u <(echo -n) <(gofmt -d .)
|
||||||
- go tool vet .
|
- go vet $(go list ./... | grep -v /vendor/)
|
||||||
- go test -v -race ./...
|
- 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.
|
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
|
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.
|
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
|
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
|
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
|
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:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- go: 1.5
|
- go: 1.5.x
|
||||||
- go: 1.6
|
- go: 1.6.x
|
||||||
- go: 1.7
|
- go: 1.7.x
|
||||||
- go: 1.8
|
- go: 1.8.x
|
||||||
- go: 1.9
|
- go: 1.9.x
|
||||||
|
- go: 1.10.x
|
||||||
- go: tip
|
- go: tip
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- go: tip
|
- go: tip
|
||||||
|
|
299
vendor/github.com/gorilla/mux/README.md
generated
vendored
299
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)
|
[![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)
|
[![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)
|
[![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)
|
* [Walking Routes](#walking-routes)
|
||||||
* [Graceful Shutdown](#graceful-shutdown)
|
* [Graceful Shutdown](#graceful-shutdown)
|
||||||
* [Middleware](#middleware)
|
* [Middleware](#middleware)
|
||||||
|
* [Testing Handlers](#testing-handlers)
|
||||||
* [Full Example](#full-example)
|
* [Full Example](#full-example)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -178,70 +179,13 @@ s.HandleFunc("/{key}/", ProductHandler)
|
||||||
// "/products/{key}/details"
|
// "/products/{key}/details"
|
||||||
s.HandleFunc("/{key}/details", ProductDetailsHandler)
|
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
|
### Static Files
|
||||||
|
|
||||||
Note that the path provided to `PathPrefix()` represents a "wildcard": calling
|
Note that the path provided to `PathPrefix()` represents a "wildcard": calling
|
||||||
`PathPrefix("/static/").Handler(...)` means that the handler will be passed any
|
`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
|
```go
|
||||||
func main() {
|
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:
|
the following prints all of the registered routes:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
r := mux.NewRouter()
|
package main
|
||||||
r.HandleFunc("/", handler)
|
|
||||||
r.HandleFunc("/products", handler).Methods("POST")
|
import (
|
||||||
r.HandleFunc("/articles", handler).Methods("GET")
|
"fmt"
|
||||||
r.HandleFunc("/articles/{id}", handler).Methods("GET", "PUT")
|
"net/http"
|
||||||
r.HandleFunc("/authors", handler).Queries("surname", "{surname}")
|
"strings"
|
||||||
r.Walk(func(route *mux.Route, router *mux.Router, ancestors []*mux.Route) error {
|
|
||||||
t, err := route.GetPathTemplate()
|
"github.com/gorilla/mux"
|
||||||
if err != nil {
|
)
|
||||||
return err
|
|
||||||
}
|
func handler(w http.ResponseWriter, r *http.Request) {
|
||||||
qt, err := route.GetQueriesTemplates()
|
return
|
||||||
if err != nil {
|
}
|
||||||
return err
|
|
||||||
}
|
func main() {
|
||||||
// p will contain a regular expression that is compatible with regular expressions in Perl, Python, and other languages.
|
r := mux.NewRouter()
|
||||||
// For example, the regular expression for path '/articles/{id}' will be '^/articles/(?P<v0>[^/]+)$'.
|
r.HandleFunc("/", handler)
|
||||||
p, err := route.GetPathRegexp()
|
r.HandleFunc("/products", handler).Methods("POST")
|
||||||
if err != nil {
|
r.HandleFunc("/articles", handler).Methods("GET")
|
||||||
return err
|
r.HandleFunc("/articles/{id}", handler).Methods("GET", "PUT")
|
||||||
}
|
r.HandleFunc("/authors", handler).Queries("surname", "{surname}")
|
||||||
// qr will contain a list of regular expressions with the same semantics as GetPathRegexp,
|
err := r.Walk(func(route *mux.Route, router *mux.Router, ancestors []*mux.Route) error {
|
||||||
// just applied to the Queries pairs instead, e.g., 'Queries("surname", "{surname}") will return
|
pathTemplate, err := route.GetPathTemplate()
|
||||||
// {"^surname=(?P<v0>.*)$}. Where each combined query pair will have an entry in the list.
|
if err == nil {
|
||||||
qr, err := route.GetQueriesRegexp()
|
fmt.Println("ROUTE:", pathTemplate)
|
||||||
if err != nil {
|
}
|
||||||
return err
|
pathRegexp, err := route.GetPathRegexp()
|
||||||
}
|
if err == nil {
|
||||||
m, err := route.GetMethods()
|
fmt.Println("Path regexp:", pathRegexp)
|
||||||
if err != nil {
|
}
|
||||||
return err
|
queriesTemplates, err := route.GetQueriesTemplates()
|
||||||
}
|
if err == nil {
|
||||||
fmt.Println(strings.Join(m, ","), strings.Join(qt, ","), strings.Join(qr, ","), t, p)
|
fmt.Println("Queries templates:", strings.Join(queriesTemplates, ","))
|
||||||
return nil
|
}
|
||||||
})
|
queriesRegexps, err := route.GetQueriesRegexp()
|
||||||
|
if err == nil {
|
||||||
|
fmt.Println("Queries regexps:", strings.Join(queriesRegexps, ","))
|
||||||
|
}
|
||||||
|
methods, err := route.GetMethods()
|
||||||
|
if err == nil {
|
||||||
|
fmt.Println("Methods:", strings.Join(methods, ","))
|
||||||
|
}
|
||||||
|
fmt.Println()
|
||||||
|
return nil
|
||||||
|
})
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
fmt.Println(err)
|
||||||
|
}
|
||||||
|
|
||||||
|
http.Handle("/", r)
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Graceful Shutdown
|
### Graceful Shutdown
|
||||||
|
@ -399,6 +360,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
)
|
)
|
||||||
|
@ -410,7 +372,7 @@ func main() {
|
||||||
|
|
||||||
r := mux.NewRouter()
|
r := mux.NewRouter()
|
||||||
// Add your routes as needed
|
// Add your routes as needed
|
||||||
|
|
||||||
srv := &http.Server{
|
srv := &http.Server{
|
||||||
Addr: "0.0.0.0:8080",
|
Addr: "0.0.0.0:8080",
|
||||||
// Good practice to set timeouts to avoid Slowloris attacks.
|
// Good practice to set timeouts to avoid Slowloris attacks.
|
||||||
|
@ -426,7 +388,7 @@ func main() {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
c := make(chan os.Signal, 1)
|
c := make(chan os.Signal, 1)
|
||||||
// We'll accept graceful shutdowns when quit via SIGINT (Ctrl+C)
|
// We'll accept graceful shutdowns when quit via SIGINT (Ctrl+C)
|
||||||
// SIGKILL, SIGQUIT or SIGTERM (Ctrl+/) will not be caught.
|
// SIGKILL, SIGQUIT or SIGTERM (Ctrl+/) will not be caught.
|
||||||
|
@ -436,7 +398,8 @@ func main() {
|
||||||
<-c
|
<-c
|
||||||
|
|
||||||
// Create a deadline to wait for.
|
// 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
|
// Doesn't block if no connections, but will otherwise wait
|
||||||
// until the timeout deadline.
|
// until the timeout deadline.
|
||||||
srv.Shutdown(ctx)
|
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:
|
A very basic middleware which logs the URI of the request being handled could be written as:
|
||||||
|
|
||||||
```go
|
```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) {
|
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||||
// Do stuff here
|
// Do stuff here
|
||||||
log.Println(r.RequestURI)
|
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
|
```go
|
||||||
r := mux.NewRouter()
|
r := mux.NewRouter()
|
||||||
r.HandleFunc("/", handler)
|
r.HandleFunc("/", handler)
|
||||||
r.AddMiddleware(simpleMw)
|
r.Use(loggingMiddleware)
|
||||||
```
|
```
|
||||||
|
|
||||||
A more complex authentication middleware, which maps session token to users, could be written as:
|
A more complex authentication middleware, which maps session token to users, could be written as:
|
||||||
|
@ -502,7 +465,7 @@ func (amw *authenticationMiddleware) Populate() {
|
||||||
func (amw *authenticationMiddleware) Middleware(next http.Handler) http.Handler {
|
func (amw *authenticationMiddleware) Middleware(next http.Handler) http.Handler {
|
||||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||||
token := r.Header.Get("X-Session-Token")
|
token := r.Header.Get("X-Session-Token")
|
||||||
|
|
||||||
if user, found := amw.tokenUsers[token]; found {
|
if user, found := amw.tokenUsers[token]; found {
|
||||||
// We found the token in our map
|
// We found the token in our map
|
||||||
log.Printf("Authenticated user %s\n", user)
|
log.Printf("Authenticated user %s\n", user)
|
||||||
|
@ -510,7 +473,7 @@ func (amw *authenticationMiddleware) Middleware(next http.Handler) http.Handler
|
||||||
next.ServeHTTP(w, r)
|
next.ServeHTTP(w, r)
|
||||||
} else {
|
} else {
|
||||||
// Write an error and stop the handler chain
|
// 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 := authenticationMiddleware{}
|
||||||
amw.Populate()
|
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
|
## 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",
|
"category", "technology",
|
||||||
"id", "42")
|
"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
|
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.
|
||||||
match is found (including subrouters). Middlewares are defined using the de facto standard type:
|
|
||||||
|
|
||||||
type MiddlewareFunc func(http.Handler) http.Handler
|
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 := mux.NewRouter()
|
||||||
r.HandleFunc("/", handler)
|
r.HandleFunc("/", handler)
|
||||||
r.AddMiddleware(simpleMw)
|
r.Use(simpleMw)
|
||||||
|
|
||||||
A more complex authentication middleware, which maps session token to users, could be written as:
|
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)
|
log.Printf("Authenticated user %s\n", user)
|
||||||
next.ServeHTTP(w, r)
|
next.ServeHTTP(w, r)
|
||||||
} else {
|
} 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
|
package mux
|
||||||
|
|
||||||
import "net/http"
|
import (
|
||||||
|
"net/http"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
// MiddlewareFunc is a function which receives an http.Handler and returns another http.Handler.
|
// 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
|
// 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
|
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 {
|
func (mw MiddlewareFunc) Middleware(handler http.Handler) http.Handler {
|
||||||
return mw(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.
|
// 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) {
|
func (r *Router) Use(mwf ...MiddlewareFunc) {
|
||||||
r.middlewares = append(r.middlewares, mwf)
|
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.
|
// 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) {
|
func (r *Router) useInterface(mw middleware) {
|
||||||
r.middlewares = append(r.middlewares, mw)
|
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)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
9
vendor/github.com/gorilla/mux/mux.go
generated
vendored
9
vendor/github.com/gorilla/mux/mux.go
generated
vendored
|
@ -13,8 +13,11 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
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")
|
ErrMethodMismatch = errors.New("method is not allowed")
|
||||||
ErrNotFound = errors.New("no matching route was found")
|
// ErrNotFound is returned when no route match is found.
|
||||||
|
ErrNotFound = errors.New("no matching route was found")
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewRouter returns a new router instance.
|
// NewRouter returns a new router instance.
|
||||||
|
@ -95,9 +98,9 @@ func (r *Router) Match(req *http.Request, match *RouteMatch) bool {
|
||||||
if r.MethodNotAllowedHandler != nil {
|
if r.MethodNotAllowedHandler != nil {
|
||||||
match.Handler = r.MethodNotAllowedHandler
|
match.Handler = r.MethodNotAllowedHandler
|
||||||
return true
|
return true
|
||||||
} else {
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// Closest match for a router (includes sub-routers)
|
// 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
|
buildVarsFunc BuildVarsFunc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SkipClean reports whether path cleaning is enabled for this route via
|
||||||
|
// Router.SkipClean.
|
||||||
func (r *Route) SkipClean() bool {
|
func (r *Route) SkipClean() bool {
|
||||||
return r.skipClean
|
return r.skipClean
|
||||||
}
|
}
|
||||||
|
@ -622,7 +624,7 @@ func (r *Route) GetPathRegexp() (string, error) {
|
||||||
// route queries.
|
// route queries.
|
||||||
// This is useful for building simple REST API documentation and for instrumentation
|
// This is useful for building simple REST API documentation and for instrumentation
|
||||||
// against third-party services.
|
// 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) {
|
func (r *Route) GetQueriesRegexp() ([]string, error) {
|
||||||
if r.err != nil {
|
if r.err != nil {
|
||||||
return nil, r.err
|
return nil, r.err
|
||||||
|
@ -641,7 +643,7 @@ func (r *Route) GetQueriesRegexp() ([]string, error) {
|
||||||
// query matching.
|
// query matching.
|
||||||
// This is useful for building simple REST API documentation and for instrumentation
|
// This is useful for building simple REST API documentation and for instrumentation
|
||||||
// against third-party services.
|
// 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) {
|
func (r *Route) GetQueriesTemplates() ([]string, error) {
|
||||||
if r.err != nil {
|
if r.err != nil {
|
||||||
return nil, r.err
|
return nil, r.err
|
||||||
|
@ -659,7 +661,7 @@ func (r *Route) GetQueriesTemplates() ([]string, error) {
|
||||||
// GetMethods returns the methods the route matches against
|
// GetMethods returns the methods the route matches against
|
||||||
// This is useful for building simple REST API documentation and for instrumentation
|
// This is useful for building simple REST API documentation and for instrumentation
|
||||||
// against third-party services.
|
// 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) {
|
func (r *Route) GetMethods() ([]string, error) {
|
||||||
if r.err != nil {
|
if r.err != nil {
|
||||||
return nil, r.err
|
return nil, r.err
|
||||||
|
@ -669,7 +671,7 @@ func (r *Route) GetMethods() ([]string, error) {
|
||||||
return []string(methods), nil
|
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
|
// 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"
|
import "net/http"
|
||||||
|
|
||||||
// SetURLVars sets the URL variables for the given request, to be accessed via
|
// 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
|
// This API should only be used for testing purposes; it provides a way to
|
||||||
// inject variables into the request context. Alternatively, URL variables
|
// inject variables into the request context. Alternatively, URL variables
|
||||||
|
|
37
vendor/github.com/lucasb-eyer/go-colorful/README.md
generated
vendored
37
vendor/github.com/lucasb-eyer/go-colorful/README.md
generated
vendored
|
@ -91,7 +91,7 @@ Create a beautiful blue color using different source space:
|
||||||
// Any of the following should be the same
|
// Any of the following should be the same
|
||||||
c := colorful.Color{0.313725, 0.478431, 0.721569}
|
c := colorful.Color{0.313725, 0.478431, 0.721569}
|
||||||
c, err := colorful.Hex("#517AB8")
|
c, err := colorful.Hex("#517AB8")
|
||||||
if err != nil{
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
c = colorful.Hsv(216.0, 0.56, 0.722)
|
c = colorful.Hsv(216.0, 0.56, 0.722)
|
||||||
|
@ -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`.
|
`image/color` package), it can be used anywhere that expects a `color.Color`.
|
||||||
|
|
||||||
Furthermore, you can convert anything that implements the `color.Color` interface
|
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
|
```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
|
**Caveat:** Be aware that this latter conversion (using `MakeColor`) hits a
|
||||||
when alpha is exactly zero. Because `color.Color` uses pre-multiplied alpha colors,
|
corner-case when alpha is exactly zero. Because `color.Color` uses pre-multiplied
|
||||||
this means the RGB values are lost and it's impossible to recover them. The current
|
alpha colors, this means the RGB values are lost (set to 0) and it's impossible
|
||||||
implementation `panic()`s in that case, see [issue 21](https://github.com/lucasb-eyer/go-colorful/issues/21)
|
to recover them. In such a case `MakeColor` will return `false` as its second value.
|
||||||
for discussion and suggesting alternatives.
|
|
||||||
|
|
||||||
### Comparing colors
|
### Comparing colors
|
||||||
In the RGB color space, the Euclidian distance between colors *doesn't* correspond
|
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)
|
![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
|
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
|
### Getting random palettes
|
||||||
As soon as you need to generate more than one random color, you probably want
|
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,
|
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.
|
see [issue #18](https://github.com/lucasb-eyer/go-colorful/issues/18) for details.
|
||||||
|
|
||||||
### Q: `MakeColor` panics when alpha is zero!
|
### Q: Why would `MakeColor` ever fail!?
|
||||||
A: Because in that case, the conversion is undefined. See
|
A: `MakeColor` fails when the alpha channel is zero. In that case, the
|
||||||
[issue 21](https://github.com/lucasb-eyer/go-colorful/issues/21)
|
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.
|
as well as the short caveat note in the ["The `color.Color` interface"](README.md#the-colorcolor-interface)
|
||||||
|
section above.
|
||||||
|
|
||||||
Who?
|
Who?
|
||||||
====
|
====
|
||||||
|
|
||||||
This library has been developed by Lucas Beyer with contributions from
|
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
|
License: MIT
|
||||||
============
|
============
|
||||||
|
|
45
vendor/github.com/lucasb-eyer/go-colorful/colorgens.go
generated
vendored
45
vendor/github.com/lucasb-eyer/go-colorful/colorgens.go
generated
vendored
|
@ -3,52 +3,53 @@
|
||||||
package colorful
|
package colorful
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"math/rand"
|
"math/rand"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Creates a random dark, "warm" color through a restricted HSV space.
|
// Creates a random dark, "warm" color through a restricted HSV space.
|
||||||
func FastWarmColor() Color {
|
func FastWarmColor() Color {
|
||||||
return Hsv(
|
return Hsv(
|
||||||
rand.Float64() * 360.0,
|
rand.Float64()*360.0,
|
||||||
0.5 + rand.Float64()*0.3,
|
0.5+rand.Float64()*0.3,
|
||||||
0.3 + rand.Float64()*0.3)
|
0.3+rand.Float64()*0.3)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Creates a random dark, "warm" color through restricted HCL space.
|
// Creates a random dark, "warm" color through restricted HCL space.
|
||||||
// This is slower than FastWarmColor but will likely give you colors which have
|
// This is slower than FastWarmColor but will likely give you colors which have
|
||||||
// the same "warmness" if you run it many times.
|
// the same "warmness" if you run it many times.
|
||||||
func WarmColor() (c Color) {
|
func WarmColor() (c Color) {
|
||||||
for c = randomWarm() ; !c.IsValid() ; c = randomWarm() {}
|
for c = randomWarm(); !c.IsValid(); c = randomWarm() {
|
||||||
return
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func randomWarm() Color {
|
func randomWarm() Color {
|
||||||
return Hcl(
|
return Hcl(
|
||||||
rand.Float64() * 360.0,
|
rand.Float64()*360.0,
|
||||||
0.1 + rand.Float64()*0.3,
|
0.1+rand.Float64()*0.3,
|
||||||
0.2 + rand.Float64()*0.3)
|
0.2+rand.Float64()*0.3)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Creates a random bright, "pimpy" color through a restricted HSV space.
|
// Creates a random bright, "pimpy" color through a restricted HSV space.
|
||||||
func FastHappyColor() Color {
|
func FastHappyColor() Color {
|
||||||
return Hsv(
|
return Hsv(
|
||||||
rand.Float64() * 360.0,
|
rand.Float64()*360.0,
|
||||||
0.7 + rand.Float64()*0.3,
|
0.7+rand.Float64()*0.3,
|
||||||
0.6 + rand.Float64()*0.3)
|
0.6+rand.Float64()*0.3)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Creates a random bright, "pimpy" color through restricted HCL space.
|
// Creates a random bright, "pimpy" color through restricted HCL space.
|
||||||
// This is slower than FastHappyColor but will likely give you colors which
|
// This is slower than FastHappyColor but will likely give you colors which
|
||||||
// have the same "brightness" if you run it many times.
|
// have the same "brightness" if you run it many times.
|
||||||
func HappyColor() (c Color) {
|
func HappyColor() (c Color) {
|
||||||
for c = randomPimp() ; !c.IsValid() ; c = randomPimp() {}
|
for c = randomPimp(); !c.IsValid(); c = randomPimp() {
|
||||||
return
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func randomPimp() Color {
|
func randomPimp() Color {
|
||||||
return Hcl(
|
return Hcl(
|
||||||
rand.Float64() * 360.0,
|
rand.Float64()*360.0,
|
||||||
0.5 + rand.Float64()*0.3,
|
0.5+rand.Float64()*0.3,
|
||||||
0.5 + rand.Float64()*0.3)
|
0.5+rand.Float64()*0.3)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
850
vendor/github.com/lucasb-eyer/go-colorful/colors.go
generated
vendored
850
vendor/github.com/lucasb-eyer/go-colorful/colors.go
generated
vendored
File diff suppressed because it is too large
Load diff
23
vendor/github.com/lucasb-eyer/go-colorful/happy_palettegen.go
generated
vendored
23
vendor/github.com/lucasb-eyer/go-colorful/happy_palettegen.go
generated
vendored
|
@ -1,26 +1,25 @@
|
||||||
package colorful
|
package colorful
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"math/rand"
|
"math/rand"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Uses the HSV color space to generate colors with similar S,V but distributed
|
// Uses the HSV color space to generate colors with similar S,V but distributed
|
||||||
// evenly along their Hue. This is fast but not always pretty.
|
// evenly along their Hue. This is fast but not always pretty.
|
||||||
// If you've got time to spare, use Lab (the non-fast below).
|
// If you've got time to spare, use Lab (the non-fast below).
|
||||||
func FastHappyPalette(colorsCount int) (colors []Color) {
|
func FastHappyPalette(colorsCount int) (colors []Color) {
|
||||||
colors = make([]Color, colorsCount)
|
colors = make([]Color, colorsCount)
|
||||||
|
|
||||||
for i := 0 ; i < colorsCount ; i++ {
|
for i := 0; i < colorsCount; i++ {
|
||||||
colors[i] = Hsv(float64(i)*(360.0/float64(colorsCount)), 0.8 + rand.Float64()*0.2, 0.65 + rand.Float64()*0.2)
|
colors[i] = Hsv(float64(i)*(360.0/float64(colorsCount)), 0.8+rand.Float64()*0.2, 0.65+rand.Float64()*0.2)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func HappyPalette(colorsCount int) ([]Color, error) {
|
func HappyPalette(colorsCount int) ([]Color, error) {
|
||||||
pimpy := func(l, a, b float64) bool {
|
pimpy := func(l, a, b float64) bool {
|
||||||
_, c, _ := LabToHcl(l, a, b)
|
_, c, _ := LabToHcl(l, a, b)
|
||||||
return 0.3 <= c && 0.4 <= l && l <= 0.8
|
return 0.3 <= c && 0.4 <= l && l <= 0.8
|
||||||
}
|
}
|
||||||
return SoftPaletteEx(colorsCount, SoftPaletteSettings{pimpy, 50, true})
|
return SoftPaletteEx(colorsCount, SoftPaletteSettings{pimpy, 50, true})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
262
vendor/github.com/lucasb-eyer/go-colorful/soft_palettegen.go
generated
vendored
262
vendor/github.com/lucasb-eyer/go-colorful/soft_palettegen.go
generated
vendored
|
@ -4,27 +4,27 @@
|
||||||
package colorful
|
package colorful
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"math"
|
"math"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
)
|
)
|
||||||
|
|
||||||
// The algorithm works in L*a*b* color space and converts to RGB in the end.
|
// The algorithm works in L*a*b* color space and converts to RGB in the end.
|
||||||
// L* in [0..1], a* and b* in [-1..1]
|
// L* in [0..1], a* and b* in [-1..1]
|
||||||
type lab_t struct {
|
type lab_t struct {
|
||||||
L, A, B float64
|
L, A, B float64
|
||||||
}
|
}
|
||||||
|
|
||||||
type SoftPaletteSettings struct {
|
type SoftPaletteSettings struct {
|
||||||
// A function which can be used to restrict the allowed color-space.
|
// A function which can be used to restrict the allowed color-space.
|
||||||
CheckColor func(l, a, b float64) bool
|
CheckColor func(l, a, b float64) bool
|
||||||
|
|
||||||
// The higher, the better quality but the slower. Usually two figures.
|
// The higher, the better quality but the slower. Usually two figures.
|
||||||
Iterations int
|
Iterations int
|
||||||
|
|
||||||
// Use up to 160000 or 8000 samples of the L*a*b* space (and thus calls to CheckColor).
|
// Use up to 160000 or 8000 samples of the L*a*b* space (and thus calls to CheckColor).
|
||||||
// Set this to true only if your CheckColor shapes the Lab space weirdly.
|
// Set this to true only if your CheckColor shapes the Lab space weirdly.
|
||||||
ManySamples bool
|
ManySamples bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// Yeah, windows-stype Foo, FooEx, screw you golang...
|
// Yeah, windows-stype Foo, FooEx, screw you golang...
|
||||||
|
@ -34,152 +34,152 @@ type SoftPaletteSettings struct {
|
||||||
// specify a CheckColor function.
|
// specify a CheckColor function.
|
||||||
func SoftPaletteEx(colorsCount int, settings SoftPaletteSettings) ([]Color, error) {
|
func SoftPaletteEx(colorsCount int, settings SoftPaletteSettings) ([]Color, error) {
|
||||||
|
|
||||||
// Checks whether it's a valid RGB and also fulfills the potentially provided constraint.
|
// Checks whether it's a valid RGB and also fulfills the potentially provided constraint.
|
||||||
check := func(col lab_t) bool {
|
check := func(col lab_t) bool {
|
||||||
c := Lab(col.L, col.A, col.B)
|
c := Lab(col.L, col.A, col.B)
|
||||||
return c.IsValid() && (settings.CheckColor == nil || settings.CheckColor(col.L, col.A, col.B))
|
return c.IsValid() && (settings.CheckColor == nil || settings.CheckColor(col.L, col.A, col.B))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sample the color space. These will be the points k-means is run on.
|
// Sample the color space. These will be the points k-means is run on.
|
||||||
dl := 0.05
|
dl := 0.05
|
||||||
dab := 0.1
|
dab := 0.1
|
||||||
if settings.ManySamples {
|
if settings.ManySamples {
|
||||||
dl = 0.01
|
dl = 0.01
|
||||||
dab = 0.05
|
dab = 0.05
|
||||||
}
|
}
|
||||||
|
|
||||||
samples := make([]lab_t, 0, int(1.0/dl * 2.0/dab * 2.0/dab))
|
samples := make([]lab_t, 0, int(1.0/dl*2.0/dab*2.0/dab))
|
||||||
for l := 0.0; l <= 1.0; l += dl {
|
for l := 0.0; l <= 1.0; l += dl {
|
||||||
for a := -1.0; a <= 1.0; a += dab {
|
for a := -1.0; a <= 1.0; a += dab {
|
||||||
for b := -1.0; b <= 1.0; b += dab {
|
for b := -1.0; b <= 1.0; b += dab {
|
||||||
if check(lab_t{l,a,b}) {
|
if check(lab_t{l, a, b}) {
|
||||||
samples = append(samples, lab_t{l, a, b})
|
samples = append(samples, lab_t{l, a, b})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// That would cause some infinite loops down there...
|
// That would cause some infinite loops down there...
|
||||||
if len(samples) < colorsCount {
|
if len(samples) < colorsCount {
|
||||||
return nil, fmt.Errorf("palettegen: more colors requested (%v) than samples available (%v). Your requested color count may be wrong, you might want to use many samples or your constraint function makes the valid color space too small.", colorsCount, len(samples))
|
return nil, fmt.Errorf("palettegen: more colors requested (%v) than samples available (%v). Your requested color count may be wrong, you might want to use many samples or your constraint function makes the valid color space too small.", colorsCount, len(samples))
|
||||||
} else if len(samples) == colorsCount {
|
} else if len(samples) == colorsCount {
|
||||||
return labs2cols(samples), nil // Oops?
|
return labs2cols(samples), nil // Oops?
|
||||||
}
|
}
|
||||||
|
|
||||||
// We take the initial means out of the samples, so they are in fact medoids.
|
// We take the initial means out of the samples, so they are in fact medoids.
|
||||||
// This helps us avoid infinite loops or arbitrary cutoffs with too restrictive constraints.
|
// This helps us avoid infinite loops or arbitrary cutoffs with too restrictive constraints.
|
||||||
means := make([]lab_t, colorsCount)
|
means := make([]lab_t, colorsCount)
|
||||||
for i := 0; i < colorsCount; i++ {
|
for i := 0; i < colorsCount; i++ {
|
||||||
for means[i] = samples[rand.Intn(len(samples))] ; in(means, i, means[i]) ; means[i] = samples[rand.Intn(len(samples))] {
|
for means[i] = samples[rand.Intn(len(samples))]; in(means, i, means[i]); means[i] = samples[rand.Intn(len(samples))] {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
clusters := make([]int, len(samples))
|
clusters := make([]int, len(samples))
|
||||||
samples_used := make([]bool, len(samples))
|
samples_used := make([]bool, len(samples))
|
||||||
|
|
||||||
// The actual k-means/medoid iterations
|
// The actual k-means/medoid iterations
|
||||||
for i := 0; i < settings.Iterations; i++ {
|
for i := 0; i < settings.Iterations; i++ {
|
||||||
// Reassing the samples to clusters, i.e. to their closest mean.
|
// Reassing the samples to clusters, i.e. to their closest mean.
|
||||||
// By the way, also check if any sample is used as a medoid and if so, mark that.
|
// By the way, also check if any sample is used as a medoid and if so, mark that.
|
||||||
for isample, sample := range samples {
|
for isample, sample := range samples {
|
||||||
samples_used[isample] = false
|
samples_used[isample] = false
|
||||||
mindist := math.Inf(+1)
|
mindist := math.Inf(+1)
|
||||||
for imean, mean := range means {
|
for imean, mean := range means {
|
||||||
dist := lab_dist(sample, mean)
|
dist := lab_dist(sample, mean)
|
||||||
if dist < mindist {
|
if dist < mindist {
|
||||||
mindist = dist
|
mindist = dist
|
||||||
clusters[isample] = imean
|
clusters[isample] = imean
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mark samples which are used as a medoid.
|
// Mark samples which are used as a medoid.
|
||||||
if lab_eq(sample, mean) {
|
if lab_eq(sample, mean) {
|
||||||
samples_used[isample] = true
|
samples_used[isample] = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compute new means according to the samples.
|
// Compute new means according to the samples.
|
||||||
for imean := range means {
|
for imean := range means {
|
||||||
// The new mean is the average of all samples belonging to it..
|
// The new mean is the average of all samples belonging to it..
|
||||||
nsamples := 0
|
nsamples := 0
|
||||||
newmean := lab_t{0.0, 0.0, 0.0}
|
newmean := lab_t{0.0, 0.0, 0.0}
|
||||||
for isample, sample := range samples {
|
for isample, sample := range samples {
|
||||||
if clusters[isample] == imean {
|
if clusters[isample] == imean {
|
||||||
nsamples++
|
nsamples++
|
||||||
newmean.L += sample.L
|
newmean.L += sample.L
|
||||||
newmean.A += sample.A
|
newmean.A += sample.A
|
||||||
newmean.B += sample.B
|
newmean.B += sample.B
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if nsamples > 0 {
|
if nsamples > 0 {
|
||||||
newmean.L /= float64(nsamples)
|
newmean.L /= float64(nsamples)
|
||||||
newmean.A /= float64(nsamples)
|
newmean.A /= float64(nsamples)
|
||||||
newmean.B /= float64(nsamples)
|
newmean.B /= float64(nsamples)
|
||||||
} else {
|
} else {
|
||||||
// That mean doesn't have any samples? Get a new mean from the sample list!
|
// That mean doesn't have any samples? Get a new mean from the sample list!
|
||||||
var inewmean int
|
var inewmean int
|
||||||
for inewmean = rand.Intn(len(samples_used)); samples_used[inewmean]; inewmean = rand.Intn(len(samples_used)) {
|
for inewmean = rand.Intn(len(samples_used)); samples_used[inewmean]; inewmean = rand.Intn(len(samples_used)) {
|
||||||
}
|
}
|
||||||
newmean = samples[inewmean]
|
newmean = samples[inewmean]
|
||||||
samples_used[inewmean] = true
|
samples_used[inewmean] = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// But now we still need to check whether the new mean is an allowed color.
|
// But now we still need to check whether the new mean is an allowed color.
|
||||||
if nsamples > 0 && check(newmean) {
|
if nsamples > 0 && check(newmean) {
|
||||||
// It does, life's good (TM)
|
// It does, life's good (TM)
|
||||||
means[imean] = newmean
|
means[imean] = newmean
|
||||||
} else {
|
} else {
|
||||||
// New mean isn't an allowed color or doesn't have any samples!
|
// New mean isn't an allowed color or doesn't have any samples!
|
||||||
// Switch to medoid mode and pick the closest (unused) sample.
|
// Switch to medoid mode and pick the closest (unused) sample.
|
||||||
// This should always find something thanks to len(samples) >= colorsCount
|
// This should always find something thanks to len(samples) >= colorsCount
|
||||||
mindist := math.Inf(+1)
|
mindist := math.Inf(+1)
|
||||||
for isample, sample := range samples {
|
for isample, sample := range samples {
|
||||||
if !samples_used[isample] {
|
if !samples_used[isample] {
|
||||||
dist := lab_dist(sample, newmean)
|
dist := lab_dist(sample, newmean)
|
||||||
if dist < mindist {
|
if dist < mindist {
|
||||||
mindist = dist
|
mindist = dist
|
||||||
newmean = sample
|
newmean = sample
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return labs2cols(means), nil
|
return labs2cols(means), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// A wrapper which uses common parameters.
|
// A wrapper which uses common parameters.
|
||||||
func SoftPalette(colorsCount int) ([]Color, error) {
|
func SoftPalette(colorsCount int) ([]Color, error) {
|
||||||
return SoftPaletteEx(colorsCount, SoftPaletteSettings{nil, 50, false})
|
return SoftPaletteEx(colorsCount, SoftPaletteSettings{nil, 50, false})
|
||||||
}
|
}
|
||||||
|
|
||||||
func in(haystack []lab_t, upto int, needle lab_t) bool {
|
func in(haystack []lab_t, upto int, needle lab_t) bool {
|
||||||
for i := 0 ; i < upto && i < len(haystack) ; i++ {
|
for i := 0; i < upto && i < len(haystack); i++ {
|
||||||
if haystack[i] == needle {
|
if haystack[i] == needle {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
const LAB_DELTA = 1e-6
|
const LAB_DELTA = 1e-6
|
||||||
|
|
||||||
func lab_eq(lab1, lab2 lab_t) bool {
|
func lab_eq(lab1, lab2 lab_t) bool {
|
||||||
return math.Abs(lab1.L - lab2.L) < LAB_DELTA &&
|
return math.Abs(lab1.L-lab2.L) < LAB_DELTA &&
|
||||||
math.Abs(lab1.A - lab2.A) < LAB_DELTA &&
|
math.Abs(lab1.A-lab2.A) < LAB_DELTA &&
|
||||||
math.Abs(lab1.B - lab2.B) < LAB_DELTA
|
math.Abs(lab1.B-lab2.B) < LAB_DELTA
|
||||||
}
|
}
|
||||||
|
|
||||||
// That's faster than using colorful's DistanceLab since we would have to
|
// That's faster than using colorful's DistanceLab since we would have to
|
||||||
// convert back and forth for that. Here is no conversion.
|
// convert back and forth for that. Here is no conversion.
|
||||||
func lab_dist(lab1, lab2 lab_t) float64 {
|
func lab_dist(lab1, lab2 lab_t) float64 {
|
||||||
return math.Sqrt(sq(lab1.L-lab2.L) + sq(lab1.A-lab2.A) + sq(lab1.B-lab2.B))
|
return math.Sqrt(sq(lab1.L-lab2.L) + sq(lab1.A-lab2.A) + sq(lab1.B-lab2.B))
|
||||||
}
|
}
|
||||||
|
|
||||||
func labs2cols(labs []lab_t) (cols []Color) {
|
func labs2cols(labs []lab_t) (cols []Color) {
|
||||||
cols = make([]Color, len(labs))
|
cols = make([]Color, len(labs))
|
||||||
for k, v := range labs {
|
for k, v := range labs {
|
||||||
cols[k] = Lab(v.L, v.A, v.B)
|
cols[k] = Lab(v.L, v.A, v.B)
|
||||||
}
|
}
|
||||||
return cols
|
return cols
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
23
vendor/github.com/lucasb-eyer/go-colorful/warm_palettegen.go
generated
vendored
23
vendor/github.com/lucasb-eyer/go-colorful/warm_palettegen.go
generated
vendored
|
@ -1,26 +1,25 @@
|
||||||
package colorful
|
package colorful
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"math/rand"
|
"math/rand"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Uses the HSV color space to generate colors with similar S,V but distributed
|
// Uses the HSV color space to generate colors with similar S,V but distributed
|
||||||
// evenly along their Hue. This is fast but not always pretty.
|
// evenly along their Hue. This is fast but not always pretty.
|
||||||
// If you've got time to spare, use Lab (the non-fast below).
|
// If you've got time to spare, use Lab (the non-fast below).
|
||||||
func FastWarmPalette(colorsCount int) (colors []Color) {
|
func FastWarmPalette(colorsCount int) (colors []Color) {
|
||||||
colors = make([]Color, colorsCount)
|
colors = make([]Color, colorsCount)
|
||||||
|
|
||||||
for i := 0 ; i < colorsCount ; i++ {
|
for i := 0; i < colorsCount; i++ {
|
||||||
colors[i] = Hsv(float64(i)*(360.0/float64(colorsCount)), 0.55 + rand.Float64()*0.2, 0.35 + rand.Float64()*0.2)
|
colors[i] = Hsv(float64(i)*(360.0/float64(colorsCount)), 0.55+rand.Float64()*0.2, 0.35+rand.Float64()*0.2)
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func WarmPalette(colorsCount int) ([]Color, error) {
|
func WarmPalette(colorsCount int) ([]Color, error) {
|
||||||
warmy := func(l, a, b float64) bool {
|
warmy := func(l, a, b float64) bool {
|
||||||
_, c, _ := LabToHcl(l, a, b)
|
_, c, _ := LabToHcl(l, a, b)
|
||||||
return 0.1 <= c && c <= 0.4 && 0.2 <= l && l <= 0.5
|
return 0.1 <= c && c <= 0.4 && 0.2 <= l && l <= 0.5
|
||||||
}
|
}
|
||||||
return SoftPaletteEx(colorsCount, SoftPaletteSettings{warmy, 50, true})
|
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 {
|
func (i *countValue) Set(s string) error {
|
||||||
v, err := strconv.ParseInt(s, 0, 64)
|
// "+1" means that no specific value was passed, so increment
|
||||||
// -1 means that no specific value was passed, so increment
|
if s == "+1" {
|
||||||
if v == -1 {
|
|
||||||
*i = countValue(*i + 1)
|
*i = countValue(*i + 1)
|
||||||
} else {
|
return nil
|
||||||
*i = countValue(v)
|
|
||||||
}
|
}
|
||||||
|
v, err := strconv.ParseInt(s, 0, 0)
|
||||||
|
*i = countValue(v)
|
||||||
return err
|
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.
|
// CountVarP is like CountVar only take a shorthand for the flag name.
|
||||||
func (f *FlagSet) CountVarP(p *int, name, shorthand string, usage string) {
|
func (f *FlagSet) CountVarP(p *int, name, shorthand string, usage string) {
|
||||||
flag := f.VarPF(newCountValue(0, p), name, shorthand, usage)
|
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
|
// 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)
|
||||||
|
}
|
155
vendor/github.com/spf13/pflag/flag.go
generated
vendored
155
vendor/github.com/spf13/pflag/flag.go
generated
vendored
|
@ -101,6 +101,7 @@ package pflag
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"errors"
|
"errors"
|
||||||
|
goflag "flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
@ -123,6 +124,12 @@ const (
|
||||||
PanicOnError
|
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
|
// NormalizedName is a flag name that has been normalized according to rules
|
||||||
// for the FlagSet (e.g. making '-' and '_' equivalent).
|
// for the FlagSet (e.g. making '-' and '_' equivalent).
|
||||||
type NormalizedName string
|
type NormalizedName string
|
||||||
|
@ -138,6 +145,9 @@ type FlagSet struct {
|
||||||
// help/usage messages.
|
// help/usage messages.
|
||||||
SortFlags bool
|
SortFlags bool
|
||||||
|
|
||||||
|
// ParseErrorsWhitelist is used to configure a whitelist of errors
|
||||||
|
ParseErrorsWhitelist ParseErrorsWhitelist
|
||||||
|
|
||||||
name string
|
name string
|
||||||
parsed bool
|
parsed bool
|
||||||
actual map[NormalizedName]*Flag
|
actual map[NormalizedName]*Flag
|
||||||
|
@ -153,6 +163,8 @@ type FlagSet struct {
|
||||||
output io.Writer // nil means stderr; use out() accessor
|
output io.Writer // nil means stderr; use out() accessor
|
||||||
interspersed bool // allow interspersed option/non-option args
|
interspersed bool // allow interspersed option/non-option args
|
||||||
normalizeNameFunc func(f *FlagSet, name string) NormalizedName
|
normalizeNameFunc func(f *FlagSet, name string) NormalizedName
|
||||||
|
|
||||||
|
addedGoFlagSets []*goflag.FlagSet
|
||||||
}
|
}
|
||||||
|
|
||||||
// A Flag represents the state of a flag.
|
// 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) {
|
func (f *FlagSet) SetNormalizeFunc(n func(f *FlagSet, name string) NormalizedName) {
|
||||||
f.normalizeNameFunc = n
|
f.normalizeNameFunc = n
|
||||||
f.sortedFormal = f.sortedFormal[:0]
|
f.sortedFormal = f.sortedFormal[:0]
|
||||||
for k, v := range f.orderedFormal {
|
for fname, flag := range f.formal {
|
||||||
delete(f.formal, NormalizedName(v.Name))
|
nname := f.normalizeFlagName(flag.Name)
|
||||||
nname := f.normalizeFlagName(v.Name)
|
if fname == nname {
|
||||||
v.Name = string(nname)
|
continue
|
||||||
f.formal[nname] = v
|
}
|
||||||
f.orderedFormal[k] = v
|
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 {
|
func (f *FlagSet) HasFlags() bool {
|
||||||
return len(f.formal) > 0
|
return len(f.formal) > 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// HasAvailableFlags returns a bool to indicate if the FlagSet has any flags
|
// 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 {
|
func (f *FlagSet) HasAvailableFlags() bool {
|
||||||
for _, flag := range f.formal {
|
for _, flag := range f.formal {
|
||||||
if !flag.Hidden && len(flag.Deprecated) == 0 {
|
if !flag.Hidden {
|
||||||
return true
|
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)
|
return fmt.Errorf("deprecated message for flag %q must be set", name)
|
||||||
}
|
}
|
||||||
flag.Deprecated = usageMessage
|
flag.Deprecated = usageMessage
|
||||||
|
flag.Hidden = true
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -440,13 +459,15 @@ func (f *FlagSet) Set(name, value string) error {
|
||||||
return fmt.Errorf("invalid argument %q for %q flag: %v", value, flagName, err)
|
return fmt.Errorf("invalid argument %q for %q flag: %v", value, flagName, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if f.actual == nil {
|
if !flag.Changed {
|
||||||
f.actual = make(map[NormalizedName]*Flag)
|
if f.actual == nil {
|
||||||
}
|
f.actual = make(map[NormalizedName]*Flag)
|
||||||
f.actual[normalName] = flag
|
}
|
||||||
f.orderedActual = append(f.orderedActual, flag)
|
f.actual[normalName] = flag
|
||||||
|
f.orderedActual = append(f.orderedActual, flag)
|
||||||
|
|
||||||
flag.Changed = true
|
flag.Changed = true
|
||||||
|
}
|
||||||
|
|
||||||
if flag.Deprecated != "" {
|
if flag.Deprecated != "" {
|
||||||
fmt.Fprintf(f.out(), "Flag --%s has been deprecated, %s\n", flag.Name, 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"
|
name = "int"
|
||||||
case "uint64":
|
case "uint64":
|
||||||
name = "uint"
|
name = "uint"
|
||||||
|
case "stringSlice":
|
||||||
|
name = "strings"
|
||||||
|
case "intSlice":
|
||||||
|
name = "ints"
|
||||||
|
case "uintSlice":
|
||||||
|
name = "uints"
|
||||||
|
case "boolSlice":
|
||||||
|
name = "bools"
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
@ -570,11 +599,14 @@ func wrapN(i, slop int, s string) (string, string) {
|
||||||
return s, ""
|
return s, ""
|
||||||
}
|
}
|
||||||
|
|
||||||
w := strings.LastIndexAny(s[:i], " \t")
|
w := strings.LastIndexAny(s[:i], " \t\n")
|
||||||
if w <= 0 {
|
if w <= 0 {
|
||||||
return s, ""
|
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:]
|
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
|
// caller). Pass `w` == 0 to do no wrapping
|
||||||
func wrap(i, w int, s string) string {
|
func wrap(i, w int, s string) string {
|
||||||
if w == 0 {
|
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
|
// 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 still not enough space then don't even try to wrap.
|
||||||
if wrap < 24 {
|
if wrap < 24 {
|
||||||
return s
|
return strings.Replace(s, "\n", r, -1)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try to avoid short orphan words on the final line, by
|
// 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
|
// Handle first line, which is indented by the caller (or the
|
||||||
// special case above)
|
// special case above)
|
||||||
l, s = wrapN(wrap, slop, s)
|
l, s = wrapN(wrap, slop, s)
|
||||||
r = r + l
|
r = r + strings.Replace(l, "\n", "\n"+strings.Repeat(" ", i), -1)
|
||||||
|
|
||||||
// Now wrap the rest
|
// Now wrap the rest
|
||||||
for s != "" {
|
for s != "" {
|
||||||
var t string
|
var t string
|
||||||
|
|
||||||
t, s = wrapN(wrap, slop, s)
|
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
|
return r
|
||||||
|
@ -637,7 +669,7 @@ func (f *FlagSet) FlagUsagesWrapped(cols int) string {
|
||||||
|
|
||||||
maxlen := 0
|
maxlen := 0
|
||||||
f.VisitAll(func(flag *Flag) {
|
f.VisitAll(func(flag *Flag) {
|
||||||
if flag.Deprecated != "" || flag.Hidden {
|
if flag.Hidden {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -660,6 +692,10 @@ func (f *FlagSet) FlagUsagesWrapped(cols int) string {
|
||||||
if flag.NoOptDefVal != "true" {
|
if flag.NoOptDefVal != "true" {
|
||||||
line += fmt.Sprintf("[=%s]", flag.NoOptDefVal)
|
line += fmt.Sprintf("[=%s]", flag.NoOptDefVal)
|
||||||
}
|
}
|
||||||
|
case "count":
|
||||||
|
if flag.NoOptDefVal != "+1" {
|
||||||
|
line += fmt.Sprintf("[=%s]", flag.NoOptDefVal)
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
line += fmt.Sprintf("[=%s]", flag.NoOptDefVal)
|
line += fmt.Sprintf("[=%s]", flag.NoOptDefVal)
|
||||||
}
|
}
|
||||||
|
@ -680,6 +716,9 @@ func (f *FlagSet) FlagUsagesWrapped(cols int) string {
|
||||||
line += fmt.Sprintf(" (default %s)", flag.DefValue)
|
line += fmt.Sprintf(" (default %s)", flag.DefValue)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if len(flag.Deprecated) != 0 {
|
||||||
|
line += fmt.Sprintf(" (DEPRECATED: %s)", flag.Deprecated)
|
||||||
|
}
|
||||||
|
|
||||||
lines = append(lines, line)
|
lines = append(lines, line)
|
||||||
})
|
})
|
||||||
|
@ -857,8 +896,10 @@ func VarP(value Value, name, shorthand, usage string) {
|
||||||
// returns the error.
|
// returns the error.
|
||||||
func (f *FlagSet) failf(format string, a ...interface{}) error {
|
func (f *FlagSet) failf(format string, a ...interface{}) error {
|
||||||
err := fmt.Errorf(format, a...)
|
err := fmt.Errorf(format, a...)
|
||||||
fmt.Fprintln(f.out(), err)
|
if f.errorHandling != ContinueOnError {
|
||||||
f.usage()
|
fmt.Fprintln(f.out(), err)
|
||||||
|
f.usage()
|
||||||
|
}
|
||||||
return err
|
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) {
|
func (f *FlagSet) parseLongArg(s string, args []string, fn parseFunc) (a []string, err error) {
|
||||||
a = args
|
a = args
|
||||||
name := s[2:]
|
name := s[2:]
|
||||||
|
@ -885,13 +945,24 @@ func (f *FlagSet) parseLongArg(s string, args []string, fn parseFunc) (a []strin
|
||||||
split := strings.SplitN(name, "=", 2)
|
split := strings.SplitN(name, "=", 2)
|
||||||
name = split[0]
|
name = split[0]
|
||||||
flag, exists := f.formal[f.normalizeFlagName(name)]
|
flag, exists := f.formal[f.normalizeFlagName(name)]
|
||||||
|
|
||||||
if !exists {
|
if !exists {
|
||||||
if name == "help" { // special case for nice help message.
|
switch {
|
||||||
|
case name == "help":
|
||||||
f.usage()
|
f.usage()
|
||||||
return a, ErrHelp
|
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
|
||||||
}
|
}
|
||||||
err = f.failf("unknown flag: --%s", name)
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var value string
|
var value string
|
||||||
|
@ -912,6 +983,9 @@ func (f *FlagSet) parseLongArg(s string, args []string, fn parseFunc) (a []strin
|
||||||
}
|
}
|
||||||
|
|
||||||
err = fn(flag, value)
|
err = fn(flag, value)
|
||||||
|
if err != nil {
|
||||||
|
f.failf(err.Error())
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -926,13 +1000,25 @@ func (f *FlagSet) parseSingleShortArg(shorthands string, args []string, fn parse
|
||||||
|
|
||||||
flag, exists := f.shorthands[c]
|
flag, exists := f.shorthands[c]
|
||||||
if !exists {
|
if !exists {
|
||||||
if c == 'h' { // special case for nice help message.
|
switch {
|
||||||
|
case c == 'h':
|
||||||
f.usage()
|
f.usage()
|
||||||
err = ErrHelp
|
err = ErrHelp
|
||||||
return
|
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
|
||||||
}
|
}
|
||||||
err = f.failf("unknown shorthand flag: %q in -%s", c, shorthands)
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var value string
|
var value string
|
||||||
|
@ -962,6 +1048,9 @@ func (f *FlagSet) parseSingleShortArg(shorthands string, args []string, fn parse
|
||||||
}
|
}
|
||||||
|
|
||||||
err = fn(flag, value)
|
err = fn(flag, value)
|
||||||
|
if err != nil {
|
||||||
|
f.failf(err.Error())
|
||||||
|
}
|
||||||
return
|
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.
|
// are defined and before flags are accessed by the program.
|
||||||
// The return value will be ErrHelp if -help was set but not defined.
|
// The return value will be ErrHelp if -help was set but not defined.
|
||||||
func (f *FlagSet) Parse(arguments []string) error {
|
func (f *FlagSet) Parse(arguments []string) error {
|
||||||
|
if f.addedGoFlagSets != nil {
|
||||||
|
for _, goFlagSet := range f.addedGoFlagSets {
|
||||||
|
goFlagSet.Parse(nil)
|
||||||
|
}
|
||||||
|
}
|
||||||
f.parsed = true
|
f.parsed = true
|
||||||
|
|
||||||
if len(arguments) < 0 {
|
if len(arguments) < 0 {
|
||||||
|
@ -1034,6 +1128,7 @@ func (f *FlagSet) Parse(arguments []string) error {
|
||||||
case ContinueOnError:
|
case ContinueOnError:
|
||||||
return err
|
return err
|
||||||
case ExitOnError:
|
case ExitOnError:
|
||||||
|
fmt.Println(err)
|
||||||
os.Exit(2)
|
os.Exit(2)
|
||||||
case PanicOnError:
|
case PanicOnError:
|
||||||
panic(err)
|
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) {
|
newSet.VisitAll(func(goflag *goflag.Flag) {
|
||||||
f.AddGoFlag(goflag)
|
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.
|
// 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 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) {
|
func (f *FlagSet) StringArrayVar(p *[]string, name string, value []string, usage string) {
|
||||||
f.VarP(newStringArrayValue(value, p), name, "", usage)
|
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.
|
// 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 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) {
|
func StringArrayVar(p *[]string, name string, value []string, usage string) {
|
||||||
CommandLine.VarP(newStringArrayValue(value, p), name, "", usage)
|
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.
|
// 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 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 {
|
func (f *FlagSet) StringArray(name string, value []string, usage string) *[]string {
|
||||||
p := []string{}
|
p := []string{}
|
||||||
f.StringArrayVarP(&p, name, "", value, usage)
|
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.
|
// 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 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 {
|
func StringArray(name string, value []string, usage string) *[]string {
|
||||||
return CommandLine.StringArrayP(name, "", value, usage)
|
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.
|
// 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.
|
// 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) {
|
func (f *FlagSet) StringSliceVar(p *[]string, name string, value []string, usage string) {
|
||||||
f.VarP(newStringSliceValue(value, p), name, "", usage)
|
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.
|
// 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.
|
// 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) {
|
func StringSliceVar(p *[]string, name string, value []string, usage string) {
|
||||||
CommandLine.VarP(newStringSliceValue(value, p), name, "", usage)
|
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.
|
// 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.
|
// 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 {
|
func (f *FlagSet) StringSlice(name string, value []string, usage string) *[]string {
|
||||||
p := []string{}
|
p := []string{}
|
||||||
f.StringSliceVarP(&p, name, "", value, usage)
|
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.
|
// 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.
|
// 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 {
|
func StringSlice(name string, value []string, usage string) *[]string {
|
||||||
return CommandLine.StringSliceP(name, "", value, usage)
|
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.
|
// Just jump to package syscall's implementation for all these functions.
|
||||||
// The runtime may know about them.
|
// The runtime may know about them.
|
||||||
|
|
||||||
TEXT ·Syscall(SB),NOSPLIT,$0-64
|
TEXT ·Syscall(SB),NOSPLIT,$0-56
|
||||||
JMP syscall·Syscall(SB)
|
JMP syscall·Syscall(SB)
|
||||||
|
|
||||||
TEXT ·Syscall6(SB),NOSPLIT,$0-88
|
TEXT ·Syscall6(SB),NOSPLIT,$0-80
|
||||||
JMP syscall·Syscall6(SB)
|
JMP syscall·Syscall6(SB)
|
||||||
|
|
||||||
TEXT ·Syscall9(SB),NOSPLIT,$0-112
|
TEXT ·Syscall9(SB),NOSPLIT,$0-104
|
||||||
JMP syscall·Syscall9(SB)
|
JMP syscall·Syscall9(SB)
|
||||||
|
|
||||||
TEXT ·RawSyscall(SB),NOSPLIT,$0-64
|
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
|
||||||
JMP syscall·RawSyscall(SB)
|
JMP syscall·RawSyscall(SB)
|
||||||
|
|
||||||
TEXT ·RawSyscall6(SB),NOSPLIT,$0-88
|
TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
|
||||||
JMP syscall·RawSyscall6(SB)
|
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
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
errorspkg "errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -60,26 +60,26 @@ func CapRightsSet(rights *CapRights, setrights []uint64) error {
|
||||||
|
|
||||||
n := caparsize(rights)
|
n := caparsize(rights)
|
||||||
if n < capArSizeMin || n > capArSizeMax {
|
if n < capArSizeMin || n > capArSizeMax {
|
||||||
return errorspkg.New("bad rights size")
|
return errors.New("bad rights size")
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, right := range setrights {
|
for _, right := range setrights {
|
||||||
if caprver(right) != CAP_RIGHTS_VERSION_00 {
|
if caprver(right) != CAP_RIGHTS_VERSION_00 {
|
||||||
return errorspkg.New("bad right version")
|
return errors.New("bad right version")
|
||||||
}
|
}
|
||||||
i, err := rightToIndex(right)
|
i, err := rightToIndex(right)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if i >= n {
|
if i >= n {
|
||||||
return errorspkg.New("index overflow")
|
return errors.New("index overflow")
|
||||||
}
|
}
|
||||||
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||||
return errorspkg.New("index mismatch")
|
return errors.New("index mismatch")
|
||||||
}
|
}
|
||||||
rights.Rights[i] |= right
|
rights.Rights[i] |= right
|
||||||
if capidxbit(rights.Rights[i]) != capidxbit(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)
|
n := caparsize(rights)
|
||||||
if n < capArSizeMin || n > capArSizeMax {
|
if n < capArSizeMin || n > capArSizeMax {
|
||||||
return errorspkg.New("bad rights size")
|
return errors.New("bad rights size")
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, right := range clearrights {
|
for _, right := range clearrights {
|
||||||
if caprver(right) != CAP_RIGHTS_VERSION_00 {
|
if caprver(right) != CAP_RIGHTS_VERSION_00 {
|
||||||
return errorspkg.New("bad right version")
|
return errors.New("bad right version")
|
||||||
}
|
}
|
||||||
i, err := rightToIndex(right)
|
i, err := rightToIndex(right)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if i >= n {
|
if i >= n {
|
||||||
return errorspkg.New("index overflow")
|
return errors.New("index overflow")
|
||||||
}
|
}
|
||||||
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||||
return errorspkg.New("index mismatch")
|
return errors.New("index mismatch")
|
||||||
}
|
}
|
||||||
rights.Rights[i] &= ^(right & 0x01FFFFFFFFFFFFFF)
|
rights.Rights[i] &= ^(right & 0x01FFFFFFFFFFFFFF)
|
||||||
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
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)
|
n := caparsize(rights)
|
||||||
if n < capArSizeMin || n > capArSizeMax {
|
if n < capArSizeMin || n > capArSizeMax {
|
||||||
return false, errorspkg.New("bad rights size")
|
return false, errors.New("bad rights size")
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, right := range setrights {
|
for _, right := range setrights {
|
||||||
if caprver(right) != CAP_RIGHTS_VERSION_00 {
|
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)
|
i, err := rightToIndex(right)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
if i >= n {
|
if i >= n {
|
||||||
return false, errorspkg.New("index overflow")
|
return false, errors.New("index overflow")
|
||||||
}
|
}
|
||||||
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
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 {
|
if (rights.Rights[i] & right) != right {
|
||||||
return false, nil
|
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.
|
// systems by flock_linux_32bit.go to be SYS_FCNTL64.
|
||||||
var fcntl64Syscall uintptr = SYS_FCNTL
|
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.
|
// 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 {
|
func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error {
|
||||||
_, _, errno := Syscall(fcntl64Syscall, fd, uintptr(cmd), uintptr(unsafe.Pointer(lk)))
|
_, _, 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);
|
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/mount.h>
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
#include <sys/xattr.h>
|
||||||
#include <net/bpf.h>
|
#include <net/bpf.h>
|
||||||
#include <net/if.h>
|
#include <net/if.h>
|
||||||
#include <net/if_types.h>
|
#include <net/if_types.h>
|
||||||
|
@ -171,6 +172,8 @@ struct ltchars {
|
||||||
#include <linux/filter.h>
|
#include <linux/filter.h>
|
||||||
#include <linux/fs.h>
|
#include <linux/fs.h>
|
||||||
#include <linux/keyctl.h>
|
#include <linux/keyctl.h>
|
||||||
|
#include <linux/magic.h>
|
||||||
|
#include <linux/netfilter/nfnetlink.h>
|
||||||
#include <linux/netlink.h>
|
#include <linux/netlink.h>
|
||||||
#include <linux/perf_event.h>
|
#include <linux/perf_event.h>
|
||||||
#include <linux/random.h>
|
#include <linux/random.h>
|
||||||
|
@ -189,6 +192,8 @@ struct ltchars {
|
||||||
#include <linux/genetlink.h>
|
#include <linux/genetlink.h>
|
||||||
#include <linux/stat.h>
|
#include <linux/stat.h>
|
||||||
#include <linux/watchdog.h>
|
#include <linux/watchdog.h>
|
||||||
|
#include <linux/hdreg.h>
|
||||||
|
#include <linux/rtc.h>
|
||||||
#include <net/route.h>
|
#include <net/route.h>
|
||||||
#include <asm/termbits.h>
|
#include <asm/termbits.h>
|
||||||
|
|
||||||
|
@ -383,7 +388,8 @@ ccflags="$@"
|
||||||
$2 ~ /^TC[IO](ON|OFF)$/ ||
|
$2 ~ /^TC[IO](ON|OFF)$/ ||
|
||||||
$2 ~ /^IN_/ ||
|
$2 ~ /^IN_/ ||
|
||||||
$2 ~ /^LOCK_(SH|EX|NB|UN)$/ ||
|
$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 ~ /^FALLOC_/ ||
|
||||||
$2 == "ICMPV6_FILTER" ||
|
$2 == "ICMPV6_FILTER" ||
|
||||||
$2 == "SOMAXCONN" ||
|
$2 == "SOMAXCONN" ||
|
||||||
|
@ -399,7 +405,7 @@ ccflags="$@"
|
||||||
$2 ~ /^LINUX_REBOOT_CMD_/ ||
|
$2 ~ /^LINUX_REBOOT_CMD_/ ||
|
||||||
$2 ~ /^LINUX_REBOOT_MAGIC[12]$/ ||
|
$2 ~ /^LINUX_REBOOT_MAGIC[12]$/ ||
|
||||||
$2 !~ "NLA_TYPE_MASK" &&
|
$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 ~ /^SIOC/ ||
|
||||||
$2 ~ /^TIOC/ ||
|
$2 ~ /^TIOC/ ||
|
||||||
$2 ~ /^TCGET/ ||
|
$2 ~ /^TCGET/ ||
|
||||||
|
@ -425,6 +431,8 @@ ccflags="$@"
|
||||||
$2 ~ /^PERF_EVENT_IOC_/ ||
|
$2 ~ /^PERF_EVENT_IOC_/ ||
|
||||||
$2 ~ /^SECCOMP_MODE_/ ||
|
$2 ~ /^SECCOMP_MODE_/ ||
|
||||||
$2 ~ /^SPLICE_/ ||
|
$2 ~ /^SPLICE_/ ||
|
||||||
|
$2 !~ /^AUDIT_RECORD_MAGIC/ &&
|
||||||
|
$2 ~ /^[A-Z0-9_]+_MAGIC2?$/ ||
|
||||||
$2 ~ /^(VM|VMADDR)_/ ||
|
$2 ~ /^(VM|VMADDR)_/ ||
|
||||||
$2 ~ /^IOCTL_VM_SOCKETS_/ ||
|
$2 ~ /^IOCTL_VM_SOCKETS_/ ||
|
||||||
$2 ~ /^(TASKSTATS|TS)_/ ||
|
$2 ~ /^(TASKSTATS|TS)_/ ||
|
||||||
|
@ -432,10 +440,12 @@ ccflags="$@"
|
||||||
$2 ~ /^GENL_/ ||
|
$2 ~ /^GENL_/ ||
|
||||||
$2 ~ /^STATX_/ ||
|
$2 ~ /^STATX_/ ||
|
||||||
$2 ~ /^UTIME_/ ||
|
$2 ~ /^UTIME_/ ||
|
||||||
$2 ~ /^XATTR_(CREATE|REPLACE)/ ||
|
$2 ~ /^XATTR_(CREATE|REPLACE|NO(DEFAULT|FOLLOW|SECURITY)|SHOWCOMPRESSION)/ ||
|
||||||
$2 ~ /^ATTR_(BIT_MAP_COUNT|(CMN|VOL|FILE)_)/ ||
|
$2 ~ /^ATTR_(BIT_MAP_COUNT|(CMN|VOL|FILE)_)/ ||
|
||||||
$2 ~ /^FSOPT_/ ||
|
$2 ~ /^FSOPT_/ ||
|
||||||
$2 ~ /^WDIOC_/ ||
|
$2 ~ /^WDIOC_/ ||
|
||||||
|
$2 ~ /^NFN/ ||
|
||||||
|
$2 ~ /^(HDIO|WIN|SMART)_/ ||
|
||||||
$2 !~ "WMESGLEN" &&
|
$2 !~ "WMESGLEN" &&
|
||||||
$2 ~ /^W[A-Z0-9]+$/ ||
|
$2 ~ /^W[A-Z0-9]+$/ ||
|
||||||
$2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE)/ {printf("\t%s = C.%s\n", $2, $2)}
|
$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
|
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
|
for i in $errors
|
||||||
do
|
do
|
||||||
echo -E ' '$i,
|
echo -E ' {'$i', "'$i'" },'
|
||||||
done
|
done
|
||||||
|
|
||||||
echo -E "
|
echo -E "
|
||||||
};
|
};
|
||||||
|
|
||||||
int signals[] = {
|
struct tuple signals[] = {
|
||||||
"
|
"
|
||||||
for i in $signals
|
for i in $signals
|
||||||
do
|
do
|
||||||
echo -E ' '$i,
|
echo -E ' {'$i', "'$i'" },'
|
||||||
done
|
done
|
||||||
|
|
||||||
# Use -E because on some systems bash builtin interprets \n itself.
|
# Use -E because on some systems bash builtin interprets \n itself.
|
||||||
|
@ -527,9 +542,9 @@ int signals[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static int
|
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
|
int
|
||||||
|
@ -539,26 +554,34 @@ main(void)
|
||||||
char buf[1024], *p;
|
char buf[1024], *p;
|
||||||
|
|
||||||
printf("\n\n// Error table\n");
|
printf("\n\n// Error table\n");
|
||||||
printf("var errors = [...]string {\n");
|
printf("var errorList = [...]struct {\n");
|
||||||
qsort(errors, nelem(errors), sizeof errors[0], intcmp);
|
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++) {
|
for(i=0; i<nelem(errors); i++) {
|
||||||
e = errors[i];
|
e = errors[i].num;
|
||||||
if(i > 0 && errors[i-1] == e)
|
if(i > 0 && errors[i-1].num == e)
|
||||||
continue;
|
continue;
|
||||||
strcpy(buf, strerror(e));
|
strcpy(buf, strerror(e));
|
||||||
// lowercase first letter: Bad -> bad, but STREAM -> STREAM.
|
// lowercase first letter: Bad -> bad, but STREAM -> STREAM.
|
||||||
if(A <= buf[0] && buf[0] <= Z && a <= buf[1] && buf[1] <= z)
|
if(A <= buf[0] && buf[0] <= Z && a <= buf[1] && buf[1] <= z)
|
||||||
buf[0] += a - A;
|
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");
|
||||||
|
|
||||||
printf("\n\n// Signal table\n");
|
printf("\n\n// Signal table\n");
|
||||||
printf("var signals = [...]string {\n");
|
printf("var signalList = [...]struct {\n");
|
||||||
qsort(signals, nelem(signals), sizeof signals[0], intcmp);
|
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++) {
|
for(i=0; i<nelem(signals); i++) {
|
||||||
e = signals[i];
|
e = signals[i].num;
|
||||||
if(i > 0 && signals[i-1] == e)
|
if(i > 0 && signals[i-1].num == e)
|
||||||
continue;
|
continue;
|
||||||
strcpy(buf, strsignal(e));
|
strcpy(buf, strsignal(e));
|
||||||
// lowercase first letter: Bad -> bad, but STREAM -> STREAM.
|
// lowercase first letter: Bad -> bad, but STREAM -> STREAM.
|
||||||
|
@ -568,7 +591,7 @@ main(void)
|
||||||
p = strrchr(buf, ":"[0]);
|
p = strrchr(buf, ":"[0]);
|
||||||
if(p)
|
if(p)
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
printf("\t%d: \"%s\",\n", e, buf);
|
printf("\t{ %d, \"%s\", \"%s\" },\n", e, signals[i].name, buf);
|
||||||
}
|
}
|
||||||
printf("}\n\n");
|
printf("}\n\n");
|
||||||
|
|
||||||
|
|
13
vendor/golang.org/x/sys/unix/mkpost.go
generated
vendored
13
vendor/golang.org/x/sys/unix/mkpost.go
generated
vendored
|
@ -42,6 +42,10 @@ func main() {
|
||||||
log.Fatal(err)
|
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
|
// If we have empty Ptrace structs, we should delete them. Only s390x emits
|
||||||
// nonempty Ptrace structs.
|
// nonempty Ptrace structs.
|
||||||
ptraceRexexp := regexp.MustCompile(`type Ptrace((Psw|Fpregs|Per) struct {\s*})`)
|
ptraceRexexp := regexp.MustCompile(`type Ptrace((Psw|Fpregs|Per) struct {\s*})`)
|
||||||
|
@ -69,12 +73,9 @@ func main() {
|
||||||
removePaddingFieldsRegex := regexp.MustCompile(`Pad_cgo_\d+`)
|
removePaddingFieldsRegex := regexp.MustCompile(`Pad_cgo_\d+`)
|
||||||
b = removePaddingFieldsRegex.ReplaceAll(b, []byte("_"))
|
b = removePaddingFieldsRegex.ReplaceAll(b, []byte("_"))
|
||||||
|
|
||||||
// We refuse to export private fields on s390x
|
// Remove padding, hidden, or unused fields
|
||||||
if goarch == "s390x" && goos == "linux" {
|
removeFieldsRegex = regexp.MustCompile(`\b(X_\S+|Padding)`)
|
||||||
// Remove padding, hidden, or unused fields
|
b = removeFieldsRegex.ReplaceAll(b, []byte("_"))
|
||||||
removeFieldsRegex = regexp.MustCompile(`\bX_\S+`)
|
|
||||||
b = removeFieldsRegex.ReplaceAll(b, []byte("_"))
|
|
||||||
}
|
|
||||||
|
|
||||||
// Remove the first line of warning from cgo
|
// Remove the first line of warning from cgo
|
||||||
b = b[bytes.IndexByte(b, '\n')+1:]
|
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;
|
print <<EOF;
|
||||||
// mksysctl_openbsd.pl
|
// 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'}
|
// +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 (
|
const (
|
||||||
SYS_PLEDGE = 108
|
_SYS_PLEDGE = 108
|
||||||
)
|
)
|
||||||
|
|
||||||
// Pledge implements the pledge syscall. For more information see pledge(2).
|
// 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])
|
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 {
|
if e != 0 {
|
||||||
return e
|
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)
|
//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
|
// GetsockoptString returns the string value of the socket option opt for the
|
||||||
// socket associated with fd at the given socket level.
|
// socket associated with fd at the given socket level.
|
||||||
func GetsockoptString(fd, level, opt int) (string, error) {
|
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
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
errorspkg "errors"
|
"errors"
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
@ -98,7 +98,7 @@ type attrList struct {
|
||||||
|
|
||||||
func getAttrList(path string, attrList attrList, attrBuf []byte, options uint) (attrs [][]byte, err error) {
|
func getAttrList(path string, attrList attrList, attrBuf []byte, options uint) (attrs [][]byte, err error) {
|
||||||
if len(attrBuf) < 4 {
|
if len(attrBuf) < 4 {
|
||||||
return nil, errorspkg.New("attrBuf too small")
|
return nil, errors.New("attrBuf too small")
|
||||||
}
|
}
|
||||||
attrList.bitmapCount = attrBitMapCount
|
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); {
|
for i := uint32(0); int(i) < len(dat); {
|
||||||
header := dat[i:]
|
header := dat[i:]
|
||||||
if len(header) < 8 {
|
if len(header) < 8 {
|
||||||
return attrs, errorspkg.New("truncated attribute header")
|
return attrs, errors.New("truncated attribute header")
|
||||||
}
|
}
|
||||||
datOff := *(*int32)(unsafe.Pointer(&header[0]))
|
datOff := *(*int32)(unsafe.Pointer(&header[0]))
|
||||||
attrLen := *(*uint32)(unsafe.Pointer(&header[4]))
|
attrLen := *(*uint32)(unsafe.Pointer(&header[4]))
|
||||||
if datOff < 0 || uint32(datOff)+attrLen > uint32(len(dat)) {
|
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
|
end := uint32(datOff) + attrLen
|
||||||
attrs = append(attrs, dat[datOff:end])
|
attrs = append(attrs, dat[datOff:end])
|
||||||
|
@ -176,6 +176,88 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
||||||
return
|
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 {
|
func setattrlistTimes(path string, times []Timespec, flags int) error {
|
||||||
_p0, err := BytePtrFromString(path)
|
_p0, err := BytePtrFromString(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -447,13 +529,9 @@ func Uname(uname *Utsname) error {
|
||||||
// Watchevent
|
// Watchevent
|
||||||
// Waitevent
|
// Waitevent
|
||||||
// Modwatch
|
// Modwatch
|
||||||
// Getxattr
|
|
||||||
// Fgetxattr
|
// Fgetxattr
|
||||||
// Setxattr
|
|
||||||
// Fsetxattr
|
// Fsetxattr
|
||||||
// Removexattr
|
|
||||||
// Fremovexattr
|
// Fremovexattr
|
||||||
// Listxattr
|
|
||||||
// Flistxattr
|
// Flistxattr
|
||||||
// Fsctl
|
// Fsctl
|
||||||
// Initgroups
|
// Initgroups
|
||||||
|
|
75
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
75
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)
|
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) {
|
func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) {
|
||||||
var value IPMreqn
|
var value IPMreqn
|
||||||
vallen := _Socklen(SizeofIPMreqn)
|
vallen := _Socklen(SizeofIPMreqn)
|
||||||
|
@ -802,27 +789,6 @@ func GetsockoptIPMreqn(fd, level, opt int) (*IPMreqn, error) {
|
||||||
return &value, err
|
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) {
|
func GetsockoptUcred(fd, level, opt int) (*Ucred, error) {
|
||||||
var value Ucred
|
var value Ucred
|
||||||
vallen := _Socklen(SizeofUcred)
|
vallen := _Socklen(SizeofUcred)
|
||||||
|
@ -978,15 +944,17 @@ func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from
|
||||||
}
|
}
|
||||||
var dummy byte
|
var dummy byte
|
||||||
if len(oob) > 0 {
|
if len(oob) > 0 {
|
||||||
var sockType int
|
if len(p) == 0 {
|
||||||
sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE)
|
var sockType int
|
||||||
if err != nil {
|
sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE)
|
||||||
return
|
if err != nil {
|
||||||
}
|
return
|
||||||
// receive at least one normal byte
|
}
|
||||||
if sockType != SOCK_DGRAM && len(p) == 0 {
|
// receive at least one normal byte
|
||||||
iov.Base = &dummy
|
if sockType != SOCK_DGRAM {
|
||||||
iov.SetLen(1)
|
iov.Base = &dummy
|
||||||
|
iov.SetLen(1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
msg.Control = &oob[0]
|
msg.Control = &oob[0]
|
||||||
msg.SetControllen(len(oob))
|
msg.SetControllen(len(oob))
|
||||||
|
@ -1030,15 +998,17 @@ func SendmsgN(fd int, p, oob []byte, to Sockaddr, flags int) (n int, err error)
|
||||||
}
|
}
|
||||||
var dummy byte
|
var dummy byte
|
||||||
if len(oob) > 0 {
|
if len(oob) > 0 {
|
||||||
var sockType int
|
if len(p) == 0 {
|
||||||
sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE)
|
var sockType int
|
||||||
if err != nil {
|
sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE)
|
||||||
return 0, err
|
if err != nil {
|
||||||
}
|
return 0, err
|
||||||
// send at least one normal byte
|
}
|
||||||
if sockType != SOCK_DGRAM && len(p) == 0 {
|
// send at least one normal byte
|
||||||
iov.Base = &dummy
|
if sockType != SOCK_DGRAM {
|
||||||
iov.SetLen(1)
|
iov.Base = &dummy
|
||||||
|
iov.SetLen(1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
msg.Control = &oob[0]
|
msg.Control = &oob[0]
|
||||||
msg.SetControllen(len(oob))
|
msg.SetControllen(len(oob))
|
||||||
|
@ -1294,6 +1264,7 @@ func Getpgrp() (pid int) {
|
||||||
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
|
//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
|
||||||
//sys Nanosleep(time *Timespec, leftover *Timespec) (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
|
//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
|
//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)
|
//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
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"syscall"
|
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -157,10 +156,6 @@ func Setrlimit(resource int, rlim *Rlimit) (err error) {
|
||||||
return setrlimit(resource, &rl)
|
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) {
|
func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
||||||
newoffset, errno := seek(fd, offset, whence)
|
newoffset, errno := seek(fd, offset, whence)
|
||||||
if errno != 0 {
|
if errno != 0 {
|
||||||
|
@ -206,9 +201,6 @@ const (
|
||||||
_SENDMMSG = 20
|
_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) {
|
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)
|
fd, e := socketcall(_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), 0, 0, 0)
|
||||||
if e != 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 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 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 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 sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
|
||||||
//sys Setfsgid(gid int) (err error)
|
//sys Setfsgid(gid int) (err error)
|
||||||
//sys Setfsuid(uid int) (err error)
|
//sys Setfsuid(uid int) (err error)
|
||||||
|
@ -40,7 +48,12 @@ package unix
|
||||||
//sysnb Setreuid(ruid int, euid int) (err error)
|
//sysnb Setreuid(ruid int, euid int) (err error)
|
||||||
//sys Shutdown(fd int, how 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 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 Statfs(path string, buf *Statfs_t) (err error)
|
||||||
//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
|
//sys SyncFileRange(fd int, off int64, n int64, flags int) (err error)
|
||||||
//sys Truncate(path string, length int64) (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
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build linux
|
// +build linux,gccgo,arm
|
||||||
// +build gccgo
|
|
||||||
// +build 386 arm
|
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
@ -13,9 +11,10 @@ import (
|
||||||
"unsafe"
|
"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)
|
offsetLow := uint32(offset & 0xffffffff)
|
||||||
offsetHigh := uint32((offset >> 32) & 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
|
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)
|
//sysnb Setreuid(ruid int, euid int) (err error)
|
||||||
//sys Shutdown(fd int, how 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 SyncFileRange(fd int, off int64, n int64, flags int) (err error)
|
||||||
//sys Truncate(path string, length int64) (err error) = SYS_TRUNCATE64
|
//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 Dup(fd int) (nfd int, err error)
|
||||||
//sys Dup2(from int, to int) (err error)
|
//sys Dup2(from int, to int) (err error)
|
||||||
//sys Exit(code int)
|
//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 Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_POSIX_FADVISE
|
||||||
//sys Fchdir(fd int) (err error)
|
//sys Fchdir(fd int) (err error)
|
||||||
//sys Fchflags(fd int, flags 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 Dup(fd int) (nfd int, err error)
|
||||||
//sys Dup2(from int, to int) (err error)
|
//sys Dup2(from int, to int) (err error)
|
||||||
//sys Exit(code int)
|
//sys Exit(code int)
|
||||||
|
//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||||
//sys Fchdir(fd int) (err error)
|
//sys Fchdir(fd int) (err error)
|
||||||
//sys Fchflags(fd int, flags int) (err error)
|
//sys Fchflags(fd int, flags int) (err error)
|
||||||
//sys Fchmod(fd int, mode uint32) (err error)
|
//sys Fchmod(fd int, mode uint32) (err error)
|
||||||
|
@ -222,6 +223,7 @@ func Uname(uname *Utsname) error {
|
||||||
//sysnb Getppid() (ppid int)
|
//sysnb Getppid() (ppid int)
|
||||||
//sys Getpriority(which int, who int) (prio int, err error)
|
//sys Getpriority(which int, who int) (prio int, err error)
|
||||||
//sysnb Getrlimit(which int, lim *Rlimit) (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 Getrusage(who int, rusage *Rusage) (err error)
|
||||||
//sysnb Getsid(pid int) (sid int, err error)
|
//sysnb Getsid(pid int) (sid int, err error)
|
||||||
//sysnb Gettimeofday(tv *Timeval) (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 Setresgid(rgid int, egid int, sgid int) (err error)
|
||||||
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
//sysnb Setresuid(ruid int, euid int, suid int) (err error)
|
||||||
//sysnb Setrlimit(which int, lim *Rlimit) (err error)
|
//sysnb Setrlimit(which int, lim *Rlimit) (err error)
|
||||||
|
//sysnb Setrtable(rtable int) (err error)
|
||||||
//sysnb Setsid() (pid int, err error)
|
//sysnb Setsid() (pid int, err error)
|
||||||
//sysnb Settimeofday(tp *Timeval) (err error)
|
//sysnb Settimeofday(tp *Timeval) (err error)
|
||||||
//sysnb Setuid(uid int) (err error)
|
//sysnb Setuid(uid int) (err error)
|
||||||
|
@ -307,7 +310,6 @@ func Uname(uname *Utsname) error {
|
||||||
// getlogin
|
// getlogin
|
||||||
// getresgid
|
// getresgid
|
||||||
// getresuid
|
// getresuid
|
||||||
// getrtable
|
|
||||||
// getthrid
|
// getthrid
|
||||||
// ktrace
|
// ktrace
|
||||||
// lfs_bmapv
|
// lfs_bmapv
|
||||||
|
@ -343,7 +345,6 @@ func Uname(uname *Utsname) error {
|
||||||
// semop
|
// semop
|
||||||
// setgroups
|
// setgroups
|
||||||
// setitimer
|
// setitimer
|
||||||
// setrtable
|
|
||||||
// setsockopt
|
// setsockopt
|
||||||
// shmat
|
// shmat
|
||||||
// shmctl
|
// 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) {
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
cmsg.Len = uint32(length)
|
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)
|
//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.
|
// 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 {
|
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)
|
_, _, 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 (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
"sort"
|
||||||
"sync"
|
"sync"
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
@ -51,6 +52,28 @@ func errnoErr(e syscall.Errno) error {
|
||||||
return e
|
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.
|
// 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 {
|
func clen(n []byte) int {
|
||||||
i := bytes.IndexByte(n, 0)
|
i := bytes.IndexByte(n, 0)
|
||||||
|
@ -199,6 +222,13 @@ func Getpeername(fd int) (sa Sockaddr, err error) {
|
||||||
return anyToSockaddr(&rsa)
|
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) {
|
func GetsockoptInt(fd, level, opt int) (value int, err error) {
|
||||||
var n int32
|
var n int32
|
||||||
vallen := _Socklen(4)
|
vallen := _Socklen(4)
|
||||||
|
@ -206,6 +236,40 @@ func GetsockoptInt(fd, level, opt int) (value int, err error) {
|
||||||
return int(n), err
|
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) {
|
func GetsockoptLinger(fd, level, opt int) (*Linger, error) {
|
||||||
var linger Linger
|
var linger Linger
|
||||||
vallen := _Socklen(SizeofLinger)
|
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
|
WORDSIZE = 0x20
|
||||||
WSTOPPED = 0x8
|
WSTOPPED = 0x8
|
||||||
WUNTRACED = 0x2
|
WUNTRACED = 0x2
|
||||||
|
XATTR_CREATE = 0x2
|
||||||
|
XATTR_NODEFAULT = 0x10
|
||||||
|
XATTR_NOFOLLOW = 0x1
|
||||||
|
XATTR_NOSECURITY = 0x8
|
||||||
|
XATTR_REPLACE = 0x4
|
||||||
|
XATTR_SHOWCOMPRESSION = 0x20
|
||||||
)
|
)
|
||||||
|
|
||||||
// Errors
|
// Errors
|
||||||
|
@ -1624,146 +1630,154 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// Error table
|
// Error table
|
||||||
var errors = [...]string{
|
var errorList = [...]struct {
|
||||||
1: "operation not permitted",
|
num syscall.Errno
|
||||||
2: "no such file or directory",
|
name string
|
||||||
3: "no such process",
|
desc string
|
||||||
4: "interrupted system call",
|
}{
|
||||||
5: "input/output error",
|
{1, "EPERM", "operation not permitted"},
|
||||||
6: "device not configured",
|
{2, "ENOENT", "no such file or directory"},
|
||||||
7: "argument list too long",
|
{3, "ESRCH", "no such process"},
|
||||||
8: "exec format error",
|
{4, "EINTR", "interrupted system call"},
|
||||||
9: "bad file descriptor",
|
{5, "EIO", "input/output error"},
|
||||||
10: "no child processes",
|
{6, "ENXIO", "device not configured"},
|
||||||
11: "resource deadlock avoided",
|
{7, "E2BIG", "argument list too long"},
|
||||||
12: "cannot allocate memory",
|
{8, "ENOEXEC", "exec format error"},
|
||||||
13: "permission denied",
|
{9, "EBADF", "bad file descriptor"},
|
||||||
14: "bad address",
|
{10, "ECHILD", "no child processes"},
|
||||||
15: "block device required",
|
{11, "EDEADLK", "resource deadlock avoided"},
|
||||||
16: "resource busy",
|
{12, "ENOMEM", "cannot allocate memory"},
|
||||||
17: "file exists",
|
{13, "EACCES", "permission denied"},
|
||||||
18: "cross-device link",
|
{14, "EFAULT", "bad address"},
|
||||||
19: "operation not supported by device",
|
{15, "ENOTBLK", "block device required"},
|
||||||
20: "not a directory",
|
{16, "EBUSY", "resource busy"},
|
||||||
21: "is a directory",
|
{17, "EEXIST", "file exists"},
|
||||||
22: "invalid argument",
|
{18, "EXDEV", "cross-device link"},
|
||||||
23: "too many open files in system",
|
{19, "ENODEV", "operation not supported by device"},
|
||||||
24: "too many open files",
|
{20, "ENOTDIR", "not a directory"},
|
||||||
25: "inappropriate ioctl for device",
|
{21, "EISDIR", "is a directory"},
|
||||||
26: "text file busy",
|
{22, "EINVAL", "invalid argument"},
|
||||||
27: "file too large",
|
{23, "ENFILE", "too many open files in system"},
|
||||||
28: "no space left on device",
|
{24, "EMFILE", "too many open files"},
|
||||||
29: "illegal seek",
|
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||||
30: "read-only file system",
|
{26, "ETXTBSY", "text file busy"},
|
||||||
31: "too many links",
|
{27, "EFBIG", "file too large"},
|
||||||
32: "broken pipe",
|
{28, "ENOSPC", "no space left on device"},
|
||||||
33: "numerical argument out of domain",
|
{29, "ESPIPE", "illegal seek"},
|
||||||
34: "result too large",
|
{30, "EROFS", "read-only file system"},
|
||||||
35: "resource temporarily unavailable",
|
{31, "EMLINK", "too many links"},
|
||||||
36: "operation now in progress",
|
{32, "EPIPE", "broken pipe"},
|
||||||
37: "operation already in progress",
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
38: "socket operation on non-socket",
|
{34, "ERANGE", "result too large"},
|
||||||
39: "destination address required",
|
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||||
40: "message too long",
|
{36, "EINPROGRESS", "operation now in progress"},
|
||||||
41: "protocol wrong type for socket",
|
{37, "EALREADY", "operation already in progress"},
|
||||||
42: "protocol not available",
|
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
43: "protocol not supported",
|
{39, "EDESTADDRREQ", "destination address required"},
|
||||||
44: "socket type not supported",
|
{40, "EMSGSIZE", "message too long"},
|
||||||
45: "operation not supported",
|
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||||
46: "protocol family not supported",
|
{42, "ENOPROTOOPT", "protocol not available"},
|
||||||
47: "address family not supported by protocol family",
|
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||||
48: "address already in use",
|
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||||
49: "can't assign requested address",
|
{45, "ENOTSUP", "operation not supported"},
|
||||||
50: "network is down",
|
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||||
51: "network is unreachable",
|
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||||
52: "network dropped connection on reset",
|
{48, "EADDRINUSE", "address already in use"},
|
||||||
53: "software caused connection abort",
|
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||||
54: "connection reset by peer",
|
{50, "ENETDOWN", "network is down"},
|
||||||
55: "no buffer space available",
|
{51, "ENETUNREACH", "network is unreachable"},
|
||||||
56: "socket is already connected",
|
{52, "ENETRESET", "network dropped connection on reset"},
|
||||||
57: "socket is not connected",
|
{53, "ECONNABORTED", "software caused connection abort"},
|
||||||
58: "can't send after socket shutdown",
|
{54, "ECONNRESET", "connection reset by peer"},
|
||||||
59: "too many references: can't splice",
|
{55, "ENOBUFS", "no buffer space available"},
|
||||||
60: "operation timed out",
|
{56, "EISCONN", "socket is already connected"},
|
||||||
61: "connection refused",
|
{57, "ENOTCONN", "socket is not connected"},
|
||||||
62: "too many levels of symbolic links",
|
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||||
63: "file name too long",
|
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||||
64: "host is down",
|
{60, "ETIMEDOUT", "operation timed out"},
|
||||||
65: "no route to host",
|
{61, "ECONNREFUSED", "connection refused"},
|
||||||
66: "directory not empty",
|
{62, "ELOOP", "too many levels of symbolic links"},
|
||||||
67: "too many processes",
|
{63, "ENAMETOOLONG", "file name too long"},
|
||||||
68: "too many users",
|
{64, "EHOSTDOWN", "host is down"},
|
||||||
69: "disc quota exceeded",
|
{65, "EHOSTUNREACH", "no route to host"},
|
||||||
70: "stale NFS file handle",
|
{66, "ENOTEMPTY", "directory not empty"},
|
||||||
71: "too many levels of remote in path",
|
{67, "EPROCLIM", "too many processes"},
|
||||||
72: "RPC struct is bad",
|
{68, "EUSERS", "too many users"},
|
||||||
73: "RPC version wrong",
|
{69, "EDQUOT", "disc quota exceeded"},
|
||||||
74: "RPC prog. not avail",
|
{70, "ESTALE", "stale NFS file handle"},
|
||||||
75: "program version wrong",
|
{71, "EREMOTE", "too many levels of remote in path"},
|
||||||
76: "bad procedure for program",
|
{72, "EBADRPC", "RPC struct is bad"},
|
||||||
77: "no locks available",
|
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||||
78: "function not implemented",
|
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||||
79: "inappropriate file type or format",
|
{75, "EPROGMISMATCH", "program version wrong"},
|
||||||
80: "authentication error",
|
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||||
81: "need authenticator",
|
{77, "ENOLCK", "no locks available"},
|
||||||
82: "device power is off",
|
{78, "ENOSYS", "function not implemented"},
|
||||||
83: "device error",
|
{79, "EFTYPE", "inappropriate file type or format"},
|
||||||
84: "value too large to be stored in data type",
|
{80, "EAUTH", "authentication error"},
|
||||||
85: "bad executable (or shared library)",
|
{81, "ENEEDAUTH", "need authenticator"},
|
||||||
86: "bad CPU type in executable",
|
{82, "EPWROFF", "device power is off"},
|
||||||
87: "shared library version mismatch",
|
{83, "EDEVERR", "device error"},
|
||||||
88: "malformed Mach-o file",
|
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||||
89: "operation canceled",
|
{85, "EBADEXEC", "bad executable (or shared library)"},
|
||||||
90: "identifier removed",
|
{86, "EBADARCH", "bad CPU type in executable"},
|
||||||
91: "no message of desired type",
|
{87, "ESHLIBVERS", "shared library version mismatch"},
|
||||||
92: "illegal byte sequence",
|
{88, "EBADMACHO", "malformed Mach-o file"},
|
||||||
93: "attribute not found",
|
{89, "ECANCELED", "operation canceled"},
|
||||||
94: "bad message",
|
{90, "EIDRM", "identifier removed"},
|
||||||
95: "EMULTIHOP (Reserved)",
|
{91, "ENOMSG", "no message of desired type"},
|
||||||
96: "no message available on STREAM",
|
{92, "EILSEQ", "illegal byte sequence"},
|
||||||
97: "ENOLINK (Reserved)",
|
{93, "ENOATTR", "attribute not found"},
|
||||||
98: "no STREAM resources",
|
{94, "EBADMSG", "bad message"},
|
||||||
99: "not a STREAM",
|
{95, "EMULTIHOP", "EMULTIHOP (Reserved)"},
|
||||||
100: "protocol error",
|
{96, "ENODATA", "no message available on STREAM"},
|
||||||
101: "STREAM ioctl timeout",
|
{97, "ENOLINK", "ENOLINK (Reserved)"},
|
||||||
102: "operation not supported on socket",
|
{98, "ENOSR", "no STREAM resources"},
|
||||||
103: "policy not found",
|
{99, "ENOSTR", "not a STREAM"},
|
||||||
104: "state not recoverable",
|
{100, "EPROTO", "protocol error"},
|
||||||
105: "previous owner died",
|
{101, "ETIME", "STREAM ioctl timeout"},
|
||||||
106: "interface output queue is full",
|
{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
|
// Signal table
|
||||||
var signals = [...]string{
|
var signalList = [...]struct {
|
||||||
1: "hangup",
|
num syscall.Signal
|
||||||
2: "interrupt",
|
name string
|
||||||
3: "quit",
|
desc string
|
||||||
4: "illegal instruction",
|
}{
|
||||||
5: "trace/BPT trap",
|
{1, "SIGHUP", "hangup"},
|
||||||
6: "abort trap",
|
{2, "SIGINT", "interrupt"},
|
||||||
7: "EMT trap",
|
{3, "SIGQUIT", "quit"},
|
||||||
8: "floating point exception",
|
{4, "SIGILL", "illegal instruction"},
|
||||||
9: "killed",
|
{5, "SIGTRAP", "trace/BPT trap"},
|
||||||
10: "bus error",
|
{6, "SIGABRT", "abort trap"},
|
||||||
11: "segmentation fault",
|
{7, "SIGEMT", "EMT trap"},
|
||||||
12: "bad system call",
|
{8, "SIGFPE", "floating point exception"},
|
||||||
13: "broken pipe",
|
{9, "SIGKILL", "killed"},
|
||||||
14: "alarm clock",
|
{10, "SIGBUS", "bus error"},
|
||||||
15: "terminated",
|
{11, "SIGSEGV", "segmentation fault"},
|
||||||
16: "urgent I/O condition",
|
{12, "SIGSYS", "bad system call"},
|
||||||
17: "suspended (signal)",
|
{13, "SIGPIPE", "broken pipe"},
|
||||||
18: "suspended",
|
{14, "SIGALRM", "alarm clock"},
|
||||||
19: "continued",
|
{15, "SIGTERM", "terminated"},
|
||||||
20: "child exited",
|
{16, "SIGURG", "urgent I/O condition"},
|
||||||
21: "stopped (tty input)",
|
{17, "SIGSTOP", "suspended (signal)"},
|
||||||
22: "stopped (tty output)",
|
{18, "SIGTSTP", "suspended"},
|
||||||
23: "I/O possible",
|
{19, "SIGCONT", "continued"},
|
||||||
24: "cputime limit exceeded",
|
{20, "SIGCHLD", "child exited"},
|
||||||
25: "filesize limit exceeded",
|
{21, "SIGTTIN", "stopped (tty input)"},
|
||||||
26: "virtual timer expired",
|
{22, "SIGTTOU", "stopped (tty output)"},
|
||||||
27: "profiling timer expired",
|
{23, "SIGIO", "I/O possible"},
|
||||||
28: "window size changes",
|
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||||
29: "information request",
|
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||||
30: "user defined signal 1",
|
{26, "SIGVTALRM", "virtual timer expired"},
|
||||||
31: "user defined signal 2",
|
{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
|
WORDSIZE = 0x40
|
||||||
WSTOPPED = 0x8
|
WSTOPPED = 0x8
|
||||||
WUNTRACED = 0x2
|
WUNTRACED = 0x2
|
||||||
|
XATTR_CREATE = 0x2
|
||||||
|
XATTR_NODEFAULT = 0x10
|
||||||
|
XATTR_NOFOLLOW = 0x1
|
||||||
|
XATTR_NOSECURITY = 0x8
|
||||||
|
XATTR_REPLACE = 0x4
|
||||||
|
XATTR_SHOWCOMPRESSION = 0x20
|
||||||
)
|
)
|
||||||
|
|
||||||
// Errors
|
// Errors
|
||||||
|
@ -1624,146 +1630,154 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// Error table
|
// Error table
|
||||||
var errors = [...]string{
|
var errorList = [...]struct {
|
||||||
1: "operation not permitted",
|
num syscall.Errno
|
||||||
2: "no such file or directory",
|
name string
|
||||||
3: "no such process",
|
desc string
|
||||||
4: "interrupted system call",
|
}{
|
||||||
5: "input/output error",
|
{1, "EPERM", "operation not permitted"},
|
||||||
6: "device not configured",
|
{2, "ENOENT", "no such file or directory"},
|
||||||
7: "argument list too long",
|
{3, "ESRCH", "no such process"},
|
||||||
8: "exec format error",
|
{4, "EINTR", "interrupted system call"},
|
||||||
9: "bad file descriptor",
|
{5, "EIO", "input/output error"},
|
||||||
10: "no child processes",
|
{6, "ENXIO", "device not configured"},
|
||||||
11: "resource deadlock avoided",
|
{7, "E2BIG", "argument list too long"},
|
||||||
12: "cannot allocate memory",
|
{8, "ENOEXEC", "exec format error"},
|
||||||
13: "permission denied",
|
{9, "EBADF", "bad file descriptor"},
|
||||||
14: "bad address",
|
{10, "ECHILD", "no child processes"},
|
||||||
15: "block device required",
|
{11, "EDEADLK", "resource deadlock avoided"},
|
||||||
16: "resource busy",
|
{12, "ENOMEM", "cannot allocate memory"},
|
||||||
17: "file exists",
|
{13, "EACCES", "permission denied"},
|
||||||
18: "cross-device link",
|
{14, "EFAULT", "bad address"},
|
||||||
19: "operation not supported by device",
|
{15, "ENOTBLK", "block device required"},
|
||||||
20: "not a directory",
|
{16, "EBUSY", "resource busy"},
|
||||||
21: "is a directory",
|
{17, "EEXIST", "file exists"},
|
||||||
22: "invalid argument",
|
{18, "EXDEV", "cross-device link"},
|
||||||
23: "too many open files in system",
|
{19, "ENODEV", "operation not supported by device"},
|
||||||
24: "too many open files",
|
{20, "ENOTDIR", "not a directory"},
|
||||||
25: "inappropriate ioctl for device",
|
{21, "EISDIR", "is a directory"},
|
||||||
26: "text file busy",
|
{22, "EINVAL", "invalid argument"},
|
||||||
27: "file too large",
|
{23, "ENFILE", "too many open files in system"},
|
||||||
28: "no space left on device",
|
{24, "EMFILE", "too many open files"},
|
||||||
29: "illegal seek",
|
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||||
30: "read-only file system",
|
{26, "ETXTBSY", "text file busy"},
|
||||||
31: "too many links",
|
{27, "EFBIG", "file too large"},
|
||||||
32: "broken pipe",
|
{28, "ENOSPC", "no space left on device"},
|
||||||
33: "numerical argument out of domain",
|
{29, "ESPIPE", "illegal seek"},
|
||||||
34: "result too large",
|
{30, "EROFS", "read-only file system"},
|
||||||
35: "resource temporarily unavailable",
|
{31, "EMLINK", "too many links"},
|
||||||
36: "operation now in progress",
|
{32, "EPIPE", "broken pipe"},
|
||||||
37: "operation already in progress",
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
38: "socket operation on non-socket",
|
{34, "ERANGE", "result too large"},
|
||||||
39: "destination address required",
|
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||||
40: "message too long",
|
{36, "EINPROGRESS", "operation now in progress"},
|
||||||
41: "protocol wrong type for socket",
|
{37, "EALREADY", "operation already in progress"},
|
||||||
42: "protocol not available",
|
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
43: "protocol not supported",
|
{39, "EDESTADDRREQ", "destination address required"},
|
||||||
44: "socket type not supported",
|
{40, "EMSGSIZE", "message too long"},
|
||||||
45: "operation not supported",
|
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||||
46: "protocol family not supported",
|
{42, "ENOPROTOOPT", "protocol not available"},
|
||||||
47: "address family not supported by protocol family",
|
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||||
48: "address already in use",
|
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||||
49: "can't assign requested address",
|
{45, "ENOTSUP", "operation not supported"},
|
||||||
50: "network is down",
|
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||||
51: "network is unreachable",
|
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||||
52: "network dropped connection on reset",
|
{48, "EADDRINUSE", "address already in use"},
|
||||||
53: "software caused connection abort",
|
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||||
54: "connection reset by peer",
|
{50, "ENETDOWN", "network is down"},
|
||||||
55: "no buffer space available",
|
{51, "ENETUNREACH", "network is unreachable"},
|
||||||
56: "socket is already connected",
|
{52, "ENETRESET", "network dropped connection on reset"},
|
||||||
57: "socket is not connected",
|
{53, "ECONNABORTED", "software caused connection abort"},
|
||||||
58: "can't send after socket shutdown",
|
{54, "ECONNRESET", "connection reset by peer"},
|
||||||
59: "too many references: can't splice",
|
{55, "ENOBUFS", "no buffer space available"},
|
||||||
60: "operation timed out",
|
{56, "EISCONN", "socket is already connected"},
|
||||||
61: "connection refused",
|
{57, "ENOTCONN", "socket is not connected"},
|
||||||
62: "too many levels of symbolic links",
|
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||||
63: "file name too long",
|
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||||
64: "host is down",
|
{60, "ETIMEDOUT", "operation timed out"},
|
||||||
65: "no route to host",
|
{61, "ECONNREFUSED", "connection refused"},
|
||||||
66: "directory not empty",
|
{62, "ELOOP", "too many levels of symbolic links"},
|
||||||
67: "too many processes",
|
{63, "ENAMETOOLONG", "file name too long"},
|
||||||
68: "too many users",
|
{64, "EHOSTDOWN", "host is down"},
|
||||||
69: "disc quota exceeded",
|
{65, "EHOSTUNREACH", "no route to host"},
|
||||||
70: "stale NFS file handle",
|
{66, "ENOTEMPTY", "directory not empty"},
|
||||||
71: "too many levels of remote in path",
|
{67, "EPROCLIM", "too many processes"},
|
||||||
72: "RPC struct is bad",
|
{68, "EUSERS", "too many users"},
|
||||||
73: "RPC version wrong",
|
{69, "EDQUOT", "disc quota exceeded"},
|
||||||
74: "RPC prog. not avail",
|
{70, "ESTALE", "stale NFS file handle"},
|
||||||
75: "program version wrong",
|
{71, "EREMOTE", "too many levels of remote in path"},
|
||||||
76: "bad procedure for program",
|
{72, "EBADRPC", "RPC struct is bad"},
|
||||||
77: "no locks available",
|
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||||
78: "function not implemented",
|
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||||
79: "inappropriate file type or format",
|
{75, "EPROGMISMATCH", "program version wrong"},
|
||||||
80: "authentication error",
|
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||||
81: "need authenticator",
|
{77, "ENOLCK", "no locks available"},
|
||||||
82: "device power is off",
|
{78, "ENOSYS", "function not implemented"},
|
||||||
83: "device error",
|
{79, "EFTYPE", "inappropriate file type or format"},
|
||||||
84: "value too large to be stored in data type",
|
{80, "EAUTH", "authentication error"},
|
||||||
85: "bad executable (or shared library)",
|
{81, "ENEEDAUTH", "need authenticator"},
|
||||||
86: "bad CPU type in executable",
|
{82, "EPWROFF", "device power is off"},
|
||||||
87: "shared library version mismatch",
|
{83, "EDEVERR", "device error"},
|
||||||
88: "malformed Mach-o file",
|
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||||
89: "operation canceled",
|
{85, "EBADEXEC", "bad executable (or shared library)"},
|
||||||
90: "identifier removed",
|
{86, "EBADARCH", "bad CPU type in executable"},
|
||||||
91: "no message of desired type",
|
{87, "ESHLIBVERS", "shared library version mismatch"},
|
||||||
92: "illegal byte sequence",
|
{88, "EBADMACHO", "malformed Mach-o file"},
|
||||||
93: "attribute not found",
|
{89, "ECANCELED", "operation canceled"},
|
||||||
94: "bad message",
|
{90, "EIDRM", "identifier removed"},
|
||||||
95: "EMULTIHOP (Reserved)",
|
{91, "ENOMSG", "no message of desired type"},
|
||||||
96: "no message available on STREAM",
|
{92, "EILSEQ", "illegal byte sequence"},
|
||||||
97: "ENOLINK (Reserved)",
|
{93, "ENOATTR", "attribute not found"},
|
||||||
98: "no STREAM resources",
|
{94, "EBADMSG", "bad message"},
|
||||||
99: "not a STREAM",
|
{95, "EMULTIHOP", "EMULTIHOP (Reserved)"},
|
||||||
100: "protocol error",
|
{96, "ENODATA", "no message available on STREAM"},
|
||||||
101: "STREAM ioctl timeout",
|
{97, "ENOLINK", "ENOLINK (Reserved)"},
|
||||||
102: "operation not supported on socket",
|
{98, "ENOSR", "no STREAM resources"},
|
||||||
103: "policy not found",
|
{99, "ENOSTR", "not a STREAM"},
|
||||||
104: "state not recoverable",
|
{100, "EPROTO", "protocol error"},
|
||||||
105: "previous owner died",
|
{101, "ETIME", "STREAM ioctl timeout"},
|
||||||
106: "interface output queue is full",
|
{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
|
// Signal table
|
||||||
var signals = [...]string{
|
var signalList = [...]struct {
|
||||||
1: "hangup",
|
num syscall.Signal
|
||||||
2: "interrupt",
|
name string
|
||||||
3: "quit",
|
desc string
|
||||||
4: "illegal instruction",
|
}{
|
||||||
5: "trace/BPT trap",
|
{1, "SIGHUP", "hangup"},
|
||||||
6: "abort trap",
|
{2, "SIGINT", "interrupt"},
|
||||||
7: "EMT trap",
|
{3, "SIGQUIT", "quit"},
|
||||||
8: "floating point exception",
|
{4, "SIGILL", "illegal instruction"},
|
||||||
9: "killed",
|
{5, "SIGTRAP", "trace/BPT trap"},
|
||||||
10: "bus error",
|
{6, "SIGABRT", "abort trap"},
|
||||||
11: "segmentation fault",
|
{7, "SIGEMT", "EMT trap"},
|
||||||
12: "bad system call",
|
{8, "SIGFPE", "floating point exception"},
|
||||||
13: "broken pipe",
|
{9, "SIGKILL", "killed"},
|
||||||
14: "alarm clock",
|
{10, "SIGBUS", "bus error"},
|
||||||
15: "terminated",
|
{11, "SIGSEGV", "segmentation fault"},
|
||||||
16: "urgent I/O condition",
|
{12, "SIGSYS", "bad system call"},
|
||||||
17: "suspended (signal)",
|
{13, "SIGPIPE", "broken pipe"},
|
||||||
18: "suspended",
|
{14, "SIGALRM", "alarm clock"},
|
||||||
19: "continued",
|
{15, "SIGTERM", "terminated"},
|
||||||
20: "child exited",
|
{16, "SIGURG", "urgent I/O condition"},
|
||||||
21: "stopped (tty input)",
|
{17, "SIGSTOP", "suspended (signal)"},
|
||||||
22: "stopped (tty output)",
|
{18, "SIGTSTP", "suspended"},
|
||||||
23: "I/O possible",
|
{19, "SIGCONT", "continued"},
|
||||||
24: "cputime limit exceeded",
|
{20, "SIGCHLD", "child exited"},
|
||||||
25: "filesize limit exceeded",
|
{21, "SIGTTIN", "stopped (tty input)"},
|
||||||
26: "virtual timer expired",
|
{22, "SIGTTOU", "stopped (tty output)"},
|
||||||
27: "profiling timer expired",
|
{23, "SIGIO", "I/O possible"},
|
||||||
28: "window size changes",
|
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||||
29: "information request",
|
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||||
30: "user defined signal 1",
|
{26, "SIGVTALRM", "virtual timer expired"},
|
||||||
31: "user defined signal 2",
|
{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
|
WORDSIZE = 0x40
|
||||||
WSTOPPED = 0x8
|
WSTOPPED = 0x8
|
||||||
WUNTRACED = 0x2
|
WUNTRACED = 0x2
|
||||||
|
XATTR_CREATE = 0x2
|
||||||
|
XATTR_NODEFAULT = 0x10
|
||||||
|
XATTR_NOFOLLOW = 0x1
|
||||||
|
XATTR_NOSECURITY = 0x8
|
||||||
|
XATTR_REPLACE = 0x4
|
||||||
|
XATTR_SHOWCOMPRESSION = 0x20
|
||||||
)
|
)
|
||||||
|
|
||||||
// Errors
|
// Errors
|
||||||
|
@ -1624,146 +1630,154 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// Error table
|
// Error table
|
||||||
var errors = [...]string{
|
var errorList = [...]struct {
|
||||||
1: "operation not permitted",
|
num syscall.Errno
|
||||||
2: "no such file or directory",
|
name string
|
||||||
3: "no such process",
|
desc string
|
||||||
4: "interrupted system call",
|
}{
|
||||||
5: "input/output error",
|
{1, "EPERM", "operation not permitted"},
|
||||||
6: "device not configured",
|
{2, "ENOENT", "no such file or directory"},
|
||||||
7: "argument list too long",
|
{3, "ESRCH", "no such process"},
|
||||||
8: "exec format error",
|
{4, "EINTR", "interrupted system call"},
|
||||||
9: "bad file descriptor",
|
{5, "EIO", "input/output error"},
|
||||||
10: "no child processes",
|
{6, "ENXIO", "device not configured"},
|
||||||
11: "resource deadlock avoided",
|
{7, "E2BIG", "argument list too long"},
|
||||||
12: "cannot allocate memory",
|
{8, "ENOEXEC", "exec format error"},
|
||||||
13: "permission denied",
|
{9, "EBADF", "bad file descriptor"},
|
||||||
14: "bad address",
|
{10, "ECHILD", "no child processes"},
|
||||||
15: "block device required",
|
{11, "EDEADLK", "resource deadlock avoided"},
|
||||||
16: "resource busy",
|
{12, "ENOMEM", "cannot allocate memory"},
|
||||||
17: "file exists",
|
{13, "EACCES", "permission denied"},
|
||||||
18: "cross-device link",
|
{14, "EFAULT", "bad address"},
|
||||||
19: "operation not supported by device",
|
{15, "ENOTBLK", "block device required"},
|
||||||
20: "not a directory",
|
{16, "EBUSY", "resource busy"},
|
||||||
21: "is a directory",
|
{17, "EEXIST", "file exists"},
|
||||||
22: "invalid argument",
|
{18, "EXDEV", "cross-device link"},
|
||||||
23: "too many open files in system",
|
{19, "ENODEV", "operation not supported by device"},
|
||||||
24: "too many open files",
|
{20, "ENOTDIR", "not a directory"},
|
||||||
25: "inappropriate ioctl for device",
|
{21, "EISDIR", "is a directory"},
|
||||||
26: "text file busy",
|
{22, "EINVAL", "invalid argument"},
|
||||||
27: "file too large",
|
{23, "ENFILE", "too many open files in system"},
|
||||||
28: "no space left on device",
|
{24, "EMFILE", "too many open files"},
|
||||||
29: "illegal seek",
|
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||||
30: "read-only file system",
|
{26, "ETXTBSY", "text file busy"},
|
||||||
31: "too many links",
|
{27, "EFBIG", "file too large"},
|
||||||
32: "broken pipe",
|
{28, "ENOSPC", "no space left on device"},
|
||||||
33: "numerical argument out of domain",
|
{29, "ESPIPE", "illegal seek"},
|
||||||
34: "result too large",
|
{30, "EROFS", "read-only file system"},
|
||||||
35: "resource temporarily unavailable",
|
{31, "EMLINK", "too many links"},
|
||||||
36: "operation now in progress",
|
{32, "EPIPE", "broken pipe"},
|
||||||
37: "operation already in progress",
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
38: "socket operation on non-socket",
|
{34, "ERANGE", "result too large"},
|
||||||
39: "destination address required",
|
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||||
40: "message too long",
|
{36, "EINPROGRESS", "operation now in progress"},
|
||||||
41: "protocol wrong type for socket",
|
{37, "EALREADY", "operation already in progress"},
|
||||||
42: "protocol not available",
|
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
43: "protocol not supported",
|
{39, "EDESTADDRREQ", "destination address required"},
|
||||||
44: "socket type not supported",
|
{40, "EMSGSIZE", "message too long"},
|
||||||
45: "operation not supported",
|
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||||
46: "protocol family not supported",
|
{42, "ENOPROTOOPT", "protocol not available"},
|
||||||
47: "address family not supported by protocol family",
|
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||||
48: "address already in use",
|
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||||
49: "can't assign requested address",
|
{45, "ENOTSUP", "operation not supported"},
|
||||||
50: "network is down",
|
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||||
51: "network is unreachable",
|
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||||
52: "network dropped connection on reset",
|
{48, "EADDRINUSE", "address already in use"},
|
||||||
53: "software caused connection abort",
|
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||||
54: "connection reset by peer",
|
{50, "ENETDOWN", "network is down"},
|
||||||
55: "no buffer space available",
|
{51, "ENETUNREACH", "network is unreachable"},
|
||||||
56: "socket is already connected",
|
{52, "ENETRESET", "network dropped connection on reset"},
|
||||||
57: "socket is not connected",
|
{53, "ECONNABORTED", "software caused connection abort"},
|
||||||
58: "can't send after socket shutdown",
|
{54, "ECONNRESET", "connection reset by peer"},
|
||||||
59: "too many references: can't splice",
|
{55, "ENOBUFS", "no buffer space available"},
|
||||||
60: "operation timed out",
|
{56, "EISCONN", "socket is already connected"},
|
||||||
61: "connection refused",
|
{57, "ENOTCONN", "socket is not connected"},
|
||||||
62: "too many levels of symbolic links",
|
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||||
63: "file name too long",
|
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||||
64: "host is down",
|
{60, "ETIMEDOUT", "operation timed out"},
|
||||||
65: "no route to host",
|
{61, "ECONNREFUSED", "connection refused"},
|
||||||
66: "directory not empty",
|
{62, "ELOOP", "too many levels of symbolic links"},
|
||||||
67: "too many processes",
|
{63, "ENAMETOOLONG", "file name too long"},
|
||||||
68: "too many users",
|
{64, "EHOSTDOWN", "host is down"},
|
||||||
69: "disc quota exceeded",
|
{65, "EHOSTUNREACH", "no route to host"},
|
||||||
70: "stale NFS file handle",
|
{66, "ENOTEMPTY", "directory not empty"},
|
||||||
71: "too many levels of remote in path",
|
{67, "EPROCLIM", "too many processes"},
|
||||||
72: "RPC struct is bad",
|
{68, "EUSERS", "too many users"},
|
||||||
73: "RPC version wrong",
|
{69, "EDQUOT", "disc quota exceeded"},
|
||||||
74: "RPC prog. not avail",
|
{70, "ESTALE", "stale NFS file handle"},
|
||||||
75: "program version wrong",
|
{71, "EREMOTE", "too many levels of remote in path"},
|
||||||
76: "bad procedure for program",
|
{72, "EBADRPC", "RPC struct is bad"},
|
||||||
77: "no locks available",
|
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||||
78: "function not implemented",
|
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||||
79: "inappropriate file type or format",
|
{75, "EPROGMISMATCH", "program version wrong"},
|
||||||
80: "authentication error",
|
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||||
81: "need authenticator",
|
{77, "ENOLCK", "no locks available"},
|
||||||
82: "device power is off",
|
{78, "ENOSYS", "function not implemented"},
|
||||||
83: "device error",
|
{79, "EFTYPE", "inappropriate file type or format"},
|
||||||
84: "value too large to be stored in data type",
|
{80, "EAUTH", "authentication error"},
|
||||||
85: "bad executable (or shared library)",
|
{81, "ENEEDAUTH", "need authenticator"},
|
||||||
86: "bad CPU type in executable",
|
{82, "EPWROFF", "device power is off"},
|
||||||
87: "shared library version mismatch",
|
{83, "EDEVERR", "device error"},
|
||||||
88: "malformed Mach-o file",
|
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||||
89: "operation canceled",
|
{85, "EBADEXEC", "bad executable (or shared library)"},
|
||||||
90: "identifier removed",
|
{86, "EBADARCH", "bad CPU type in executable"},
|
||||||
91: "no message of desired type",
|
{87, "ESHLIBVERS", "shared library version mismatch"},
|
||||||
92: "illegal byte sequence",
|
{88, "EBADMACHO", "malformed Mach-o file"},
|
||||||
93: "attribute not found",
|
{89, "ECANCELED", "operation canceled"},
|
||||||
94: "bad message",
|
{90, "EIDRM", "identifier removed"},
|
||||||
95: "EMULTIHOP (Reserved)",
|
{91, "ENOMSG", "no message of desired type"},
|
||||||
96: "no message available on STREAM",
|
{92, "EILSEQ", "illegal byte sequence"},
|
||||||
97: "ENOLINK (Reserved)",
|
{93, "ENOATTR", "attribute not found"},
|
||||||
98: "no STREAM resources",
|
{94, "EBADMSG", "bad message"},
|
||||||
99: "not a STREAM",
|
{95, "EMULTIHOP", "EMULTIHOP (Reserved)"},
|
||||||
100: "protocol error",
|
{96, "ENODATA", "no message available on STREAM"},
|
||||||
101: "STREAM ioctl timeout",
|
{97, "ENOLINK", "ENOLINK (Reserved)"},
|
||||||
102: "operation not supported on socket",
|
{98, "ENOSR", "no STREAM resources"},
|
||||||
103: "policy not found",
|
{99, "ENOSTR", "not a STREAM"},
|
||||||
104: "state not recoverable",
|
{100, "EPROTO", "protocol error"},
|
||||||
105: "previous owner died",
|
{101, "ETIME", "STREAM ioctl timeout"},
|
||||||
106: "interface output queue is full",
|
{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
|
// Signal table
|
||||||
var signals = [...]string{
|
var signalList = [...]struct {
|
||||||
1: "hangup",
|
num syscall.Signal
|
||||||
2: "interrupt",
|
name string
|
||||||
3: "quit",
|
desc string
|
||||||
4: "illegal instruction",
|
}{
|
||||||
5: "trace/BPT trap",
|
{1, "SIGHUP", "hangup"},
|
||||||
6: "abort trap",
|
{2, "SIGINT", "interrupt"},
|
||||||
7: "EMT trap",
|
{3, "SIGQUIT", "quit"},
|
||||||
8: "floating point exception",
|
{4, "SIGILL", "illegal instruction"},
|
||||||
9: "killed",
|
{5, "SIGTRAP", "trace/BPT trap"},
|
||||||
10: "bus error",
|
{6, "SIGABRT", "abort trap"},
|
||||||
11: "segmentation fault",
|
{7, "SIGEMT", "EMT trap"},
|
||||||
12: "bad system call",
|
{8, "SIGFPE", "floating point exception"},
|
||||||
13: "broken pipe",
|
{9, "SIGKILL", "killed"},
|
||||||
14: "alarm clock",
|
{10, "SIGBUS", "bus error"},
|
||||||
15: "terminated",
|
{11, "SIGSEGV", "segmentation fault"},
|
||||||
16: "urgent I/O condition",
|
{12, "SIGSYS", "bad system call"},
|
||||||
17: "suspended (signal)",
|
{13, "SIGPIPE", "broken pipe"},
|
||||||
18: "suspended",
|
{14, "SIGALRM", "alarm clock"},
|
||||||
19: "continued",
|
{15, "SIGTERM", "terminated"},
|
||||||
20: "child exited",
|
{16, "SIGURG", "urgent I/O condition"},
|
||||||
21: "stopped (tty input)",
|
{17, "SIGSTOP", "suspended (signal)"},
|
||||||
22: "stopped (tty output)",
|
{18, "SIGTSTP", "suspended"},
|
||||||
23: "I/O possible",
|
{19, "SIGCONT", "continued"},
|
||||||
24: "cputime limit exceeded",
|
{20, "SIGCHLD", "child exited"},
|
||||||
25: "filesize limit exceeded",
|
{21, "SIGTTIN", "stopped (tty input)"},
|
||||||
26: "virtual timer expired",
|
{22, "SIGTTOU", "stopped (tty output)"},
|
||||||
27: "profiling timer expired",
|
{23, "SIGIO", "I/O possible"},
|
||||||
28: "window size changes",
|
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||||
29: "information request",
|
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||||
30: "user defined signal 1",
|
{26, "SIGVTALRM", "virtual timer expired"},
|
||||||
31: "user defined signal 2",
|
{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
|
WORDSIZE = 0x40
|
||||||
WSTOPPED = 0x8
|
WSTOPPED = 0x8
|
||||||
WUNTRACED = 0x2
|
WUNTRACED = 0x2
|
||||||
|
XATTR_CREATE = 0x2
|
||||||
|
XATTR_NODEFAULT = 0x10
|
||||||
|
XATTR_NOFOLLOW = 0x1
|
||||||
|
XATTR_NOSECURITY = 0x8
|
||||||
|
XATTR_REPLACE = 0x4
|
||||||
|
XATTR_SHOWCOMPRESSION = 0x20
|
||||||
)
|
)
|
||||||
|
|
||||||
// Errors
|
// Errors
|
||||||
|
@ -1624,146 +1630,154 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// Error table
|
// Error table
|
||||||
var errors = [...]string{
|
var errorList = [...]struct {
|
||||||
1: "operation not permitted",
|
num syscall.Errno
|
||||||
2: "no such file or directory",
|
name string
|
||||||
3: "no such process",
|
desc string
|
||||||
4: "interrupted system call",
|
}{
|
||||||
5: "input/output error",
|
{1, "EPERM", "operation not permitted"},
|
||||||
6: "device not configured",
|
{2, "ENOENT", "no such file or directory"},
|
||||||
7: "argument list too long",
|
{3, "ESRCH", "no such process"},
|
||||||
8: "exec format error",
|
{4, "EINTR", "interrupted system call"},
|
||||||
9: "bad file descriptor",
|
{5, "EIO", "input/output error"},
|
||||||
10: "no child processes",
|
{6, "ENXIO", "device not configured"},
|
||||||
11: "resource deadlock avoided",
|
{7, "E2BIG", "argument list too long"},
|
||||||
12: "cannot allocate memory",
|
{8, "ENOEXEC", "exec format error"},
|
||||||
13: "permission denied",
|
{9, "EBADF", "bad file descriptor"},
|
||||||
14: "bad address",
|
{10, "ECHILD", "no child processes"},
|
||||||
15: "block device required",
|
{11, "EDEADLK", "resource deadlock avoided"},
|
||||||
16: "resource busy",
|
{12, "ENOMEM", "cannot allocate memory"},
|
||||||
17: "file exists",
|
{13, "EACCES", "permission denied"},
|
||||||
18: "cross-device link",
|
{14, "EFAULT", "bad address"},
|
||||||
19: "operation not supported by device",
|
{15, "ENOTBLK", "block device required"},
|
||||||
20: "not a directory",
|
{16, "EBUSY", "resource busy"},
|
||||||
21: "is a directory",
|
{17, "EEXIST", "file exists"},
|
||||||
22: "invalid argument",
|
{18, "EXDEV", "cross-device link"},
|
||||||
23: "too many open files in system",
|
{19, "ENODEV", "operation not supported by device"},
|
||||||
24: "too many open files",
|
{20, "ENOTDIR", "not a directory"},
|
||||||
25: "inappropriate ioctl for device",
|
{21, "EISDIR", "is a directory"},
|
||||||
26: "text file busy",
|
{22, "EINVAL", "invalid argument"},
|
||||||
27: "file too large",
|
{23, "ENFILE", "too many open files in system"},
|
||||||
28: "no space left on device",
|
{24, "EMFILE", "too many open files"},
|
||||||
29: "illegal seek",
|
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||||
30: "read-only file system",
|
{26, "ETXTBSY", "text file busy"},
|
||||||
31: "too many links",
|
{27, "EFBIG", "file too large"},
|
||||||
32: "broken pipe",
|
{28, "ENOSPC", "no space left on device"},
|
||||||
33: "numerical argument out of domain",
|
{29, "ESPIPE", "illegal seek"},
|
||||||
34: "result too large",
|
{30, "EROFS", "read-only file system"},
|
||||||
35: "resource temporarily unavailable",
|
{31, "EMLINK", "too many links"},
|
||||||
36: "operation now in progress",
|
{32, "EPIPE", "broken pipe"},
|
||||||
37: "operation already in progress",
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
38: "socket operation on non-socket",
|
{34, "ERANGE", "result too large"},
|
||||||
39: "destination address required",
|
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||||
40: "message too long",
|
{36, "EINPROGRESS", "operation now in progress"},
|
||||||
41: "protocol wrong type for socket",
|
{37, "EALREADY", "operation already in progress"},
|
||||||
42: "protocol not available",
|
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
43: "protocol not supported",
|
{39, "EDESTADDRREQ", "destination address required"},
|
||||||
44: "socket type not supported",
|
{40, "EMSGSIZE", "message too long"},
|
||||||
45: "operation not supported",
|
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||||
46: "protocol family not supported",
|
{42, "ENOPROTOOPT", "protocol not available"},
|
||||||
47: "address family not supported by protocol family",
|
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||||
48: "address already in use",
|
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||||
49: "can't assign requested address",
|
{45, "ENOTSUP", "operation not supported"},
|
||||||
50: "network is down",
|
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||||
51: "network is unreachable",
|
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||||
52: "network dropped connection on reset",
|
{48, "EADDRINUSE", "address already in use"},
|
||||||
53: "software caused connection abort",
|
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||||
54: "connection reset by peer",
|
{50, "ENETDOWN", "network is down"},
|
||||||
55: "no buffer space available",
|
{51, "ENETUNREACH", "network is unreachable"},
|
||||||
56: "socket is already connected",
|
{52, "ENETRESET", "network dropped connection on reset"},
|
||||||
57: "socket is not connected",
|
{53, "ECONNABORTED", "software caused connection abort"},
|
||||||
58: "can't send after socket shutdown",
|
{54, "ECONNRESET", "connection reset by peer"},
|
||||||
59: "too many references: can't splice",
|
{55, "ENOBUFS", "no buffer space available"},
|
||||||
60: "operation timed out",
|
{56, "EISCONN", "socket is already connected"},
|
||||||
61: "connection refused",
|
{57, "ENOTCONN", "socket is not connected"},
|
||||||
62: "too many levels of symbolic links",
|
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||||
63: "file name too long",
|
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||||
64: "host is down",
|
{60, "ETIMEDOUT", "operation timed out"},
|
||||||
65: "no route to host",
|
{61, "ECONNREFUSED", "connection refused"},
|
||||||
66: "directory not empty",
|
{62, "ELOOP", "too many levels of symbolic links"},
|
||||||
67: "too many processes",
|
{63, "ENAMETOOLONG", "file name too long"},
|
||||||
68: "too many users",
|
{64, "EHOSTDOWN", "host is down"},
|
||||||
69: "disc quota exceeded",
|
{65, "EHOSTUNREACH", "no route to host"},
|
||||||
70: "stale NFS file handle",
|
{66, "ENOTEMPTY", "directory not empty"},
|
||||||
71: "too many levels of remote in path",
|
{67, "EPROCLIM", "too many processes"},
|
||||||
72: "RPC struct is bad",
|
{68, "EUSERS", "too many users"},
|
||||||
73: "RPC version wrong",
|
{69, "EDQUOT", "disc quota exceeded"},
|
||||||
74: "RPC prog. not avail",
|
{70, "ESTALE", "stale NFS file handle"},
|
||||||
75: "program version wrong",
|
{71, "EREMOTE", "too many levels of remote in path"},
|
||||||
76: "bad procedure for program",
|
{72, "EBADRPC", "RPC struct is bad"},
|
||||||
77: "no locks available",
|
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||||
78: "function not implemented",
|
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||||
79: "inappropriate file type or format",
|
{75, "EPROGMISMATCH", "program version wrong"},
|
||||||
80: "authentication error",
|
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||||
81: "need authenticator",
|
{77, "ENOLCK", "no locks available"},
|
||||||
82: "device power is off",
|
{78, "ENOSYS", "function not implemented"},
|
||||||
83: "device error",
|
{79, "EFTYPE", "inappropriate file type or format"},
|
||||||
84: "value too large to be stored in data type",
|
{80, "EAUTH", "authentication error"},
|
||||||
85: "bad executable (or shared library)",
|
{81, "ENEEDAUTH", "need authenticator"},
|
||||||
86: "bad CPU type in executable",
|
{82, "EPWROFF", "device power is off"},
|
||||||
87: "shared library version mismatch",
|
{83, "EDEVERR", "device error"},
|
||||||
88: "malformed Mach-o file",
|
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||||
89: "operation canceled",
|
{85, "EBADEXEC", "bad executable (or shared library)"},
|
||||||
90: "identifier removed",
|
{86, "EBADARCH", "bad CPU type in executable"},
|
||||||
91: "no message of desired type",
|
{87, "ESHLIBVERS", "shared library version mismatch"},
|
||||||
92: "illegal byte sequence",
|
{88, "EBADMACHO", "malformed Mach-o file"},
|
||||||
93: "attribute not found",
|
{89, "ECANCELED", "operation canceled"},
|
||||||
94: "bad message",
|
{90, "EIDRM", "identifier removed"},
|
||||||
95: "EMULTIHOP (Reserved)",
|
{91, "ENOMSG", "no message of desired type"},
|
||||||
96: "no message available on STREAM",
|
{92, "EILSEQ", "illegal byte sequence"},
|
||||||
97: "ENOLINK (Reserved)",
|
{93, "ENOATTR", "attribute not found"},
|
||||||
98: "no STREAM resources",
|
{94, "EBADMSG", "bad message"},
|
||||||
99: "not a STREAM",
|
{95, "EMULTIHOP", "EMULTIHOP (Reserved)"},
|
||||||
100: "protocol error",
|
{96, "ENODATA", "no message available on STREAM"},
|
||||||
101: "STREAM ioctl timeout",
|
{97, "ENOLINK", "ENOLINK (Reserved)"},
|
||||||
102: "operation not supported on socket",
|
{98, "ENOSR", "no STREAM resources"},
|
||||||
103: "policy not found",
|
{99, "ENOSTR", "not a STREAM"},
|
||||||
104: "state not recoverable",
|
{100, "EPROTO", "protocol error"},
|
||||||
105: "previous owner died",
|
{101, "ETIME", "STREAM ioctl timeout"},
|
||||||
106: "interface output queue is full",
|
{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
|
// Signal table
|
||||||
var signals = [...]string{
|
var signalList = [...]struct {
|
||||||
1: "hangup",
|
num syscall.Signal
|
||||||
2: "interrupt",
|
name string
|
||||||
3: "quit",
|
desc string
|
||||||
4: "illegal instruction",
|
}{
|
||||||
5: "trace/BPT trap",
|
{1, "SIGHUP", "hangup"},
|
||||||
6: "abort trap",
|
{2, "SIGINT", "interrupt"},
|
||||||
7: "EMT trap",
|
{3, "SIGQUIT", "quit"},
|
||||||
8: "floating point exception",
|
{4, "SIGILL", "illegal instruction"},
|
||||||
9: "killed",
|
{5, "SIGTRAP", "trace/BPT trap"},
|
||||||
10: "bus error",
|
{6, "SIGABRT", "abort trap"},
|
||||||
11: "segmentation fault",
|
{7, "SIGEMT", "EMT trap"},
|
||||||
12: "bad system call",
|
{8, "SIGFPE", "floating point exception"},
|
||||||
13: "broken pipe",
|
{9, "SIGKILL", "killed"},
|
||||||
14: "alarm clock",
|
{10, "SIGBUS", "bus error"},
|
||||||
15: "terminated",
|
{11, "SIGSEGV", "segmentation fault"},
|
||||||
16: "urgent I/O condition",
|
{12, "SIGSYS", "bad system call"},
|
||||||
17: "suspended (signal)",
|
{13, "SIGPIPE", "broken pipe"},
|
||||||
18: "suspended",
|
{14, "SIGALRM", "alarm clock"},
|
||||||
19: "continued",
|
{15, "SIGTERM", "terminated"},
|
||||||
20: "child exited",
|
{16, "SIGURG", "urgent I/O condition"},
|
||||||
21: "stopped (tty input)",
|
{17, "SIGSTOP", "suspended (signal)"},
|
||||||
22: "stopped (tty output)",
|
{18, "SIGTSTP", "suspended"},
|
||||||
23: "I/O possible",
|
{19, "SIGCONT", "continued"},
|
||||||
24: "cputime limit exceeded",
|
{20, "SIGCHLD", "child exited"},
|
||||||
25: "filesize limit exceeded",
|
{21, "SIGTTIN", "stopped (tty input)"},
|
||||||
26: "virtual timer expired",
|
{22, "SIGTTOU", "stopped (tty output)"},
|
||||||
27: "profiling timer expired",
|
{23, "SIGIO", "I/O possible"},
|
||||||
28: "window size changes",
|
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||||
29: "information request",
|
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||||
30: "user defined signal 1",
|
{26, "SIGVTALRM", "virtual timer expired"},
|
||||||
31: "user defined signal 2",
|
{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
|
// Error table
|
||||||
var errors = [...]string{
|
var errorList = [...]struct {
|
||||||
1: "operation not permitted",
|
num syscall.Errno
|
||||||
2: "no such file or directory",
|
name string
|
||||||
3: "no such process",
|
desc string
|
||||||
4: "interrupted system call",
|
}{
|
||||||
5: "input/output error",
|
{1, "EPERM", "operation not permitted"},
|
||||||
6: "device not configured",
|
{2, "ENOENT", "no such file or directory"},
|
||||||
7: "argument list too long",
|
{3, "ESRCH", "no such process"},
|
||||||
8: "exec format error",
|
{4, "EINTR", "interrupted system call"},
|
||||||
9: "bad file descriptor",
|
{5, "EIO", "input/output error"},
|
||||||
10: "no child processes",
|
{6, "ENXIO", "device not configured"},
|
||||||
11: "resource deadlock avoided",
|
{7, "E2BIG", "argument list too long"},
|
||||||
12: "cannot allocate memory",
|
{8, "ENOEXEC", "exec format error"},
|
||||||
13: "permission denied",
|
{9, "EBADF", "bad file descriptor"},
|
||||||
14: "bad address",
|
{10, "ECHILD", "no child processes"},
|
||||||
15: "block device required",
|
{11, "EDEADLK", "resource deadlock avoided"},
|
||||||
16: "device busy",
|
{12, "ENOMEM", "cannot allocate memory"},
|
||||||
17: "file exists",
|
{13, "EACCES", "permission denied"},
|
||||||
18: "cross-device link",
|
{14, "EFAULT", "bad address"},
|
||||||
19: "operation not supported by device",
|
{15, "ENOTBLK", "block device required"},
|
||||||
20: "not a directory",
|
{16, "EBUSY", "device busy"},
|
||||||
21: "is a directory",
|
{17, "EEXIST", "file exists"},
|
||||||
22: "invalid argument",
|
{18, "EXDEV", "cross-device link"},
|
||||||
23: "too many open files in system",
|
{19, "ENODEV", "operation not supported by device"},
|
||||||
24: "too many open files",
|
{20, "ENOTDIR", "not a directory"},
|
||||||
25: "inappropriate ioctl for device",
|
{21, "EISDIR", "is a directory"},
|
||||||
26: "text file busy",
|
{22, "EINVAL", "invalid argument"},
|
||||||
27: "file too large",
|
{23, "ENFILE", "too many open files in system"},
|
||||||
28: "no space left on device",
|
{24, "EMFILE", "too many open files"},
|
||||||
29: "illegal seek",
|
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||||
30: "read-only file system",
|
{26, "ETXTBSY", "text file busy"},
|
||||||
31: "too many links",
|
{27, "EFBIG", "file too large"},
|
||||||
32: "broken pipe",
|
{28, "ENOSPC", "no space left on device"},
|
||||||
33: "numerical argument out of domain",
|
{29, "ESPIPE", "illegal seek"},
|
||||||
34: "result too large",
|
{30, "EROFS", "read-only file system"},
|
||||||
35: "resource temporarily unavailable",
|
{31, "EMLINK", "too many links"},
|
||||||
36: "operation now in progress",
|
{32, "EPIPE", "broken pipe"},
|
||||||
37: "operation already in progress",
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
38: "socket operation on non-socket",
|
{34, "ERANGE", "result too large"},
|
||||||
39: "destination address required",
|
{35, "EWOULDBLOCK", "resource temporarily unavailable"},
|
||||||
40: "message too long",
|
{36, "EINPROGRESS", "operation now in progress"},
|
||||||
41: "protocol wrong type for socket",
|
{37, "EALREADY", "operation already in progress"},
|
||||||
42: "protocol not available",
|
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
43: "protocol not supported",
|
{39, "EDESTADDRREQ", "destination address required"},
|
||||||
44: "socket type not supported",
|
{40, "EMSGSIZE", "message too long"},
|
||||||
45: "operation not supported",
|
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||||
46: "protocol family not supported",
|
{42, "ENOPROTOOPT", "protocol not available"},
|
||||||
47: "address family not supported by protocol family",
|
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||||
48: "address already in use",
|
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||||
49: "can't assign requested address",
|
{45, "EOPNOTSUPP", "operation not supported"},
|
||||||
50: "network is down",
|
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||||
51: "network is unreachable",
|
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||||
52: "network dropped connection on reset",
|
{48, "EADDRINUSE", "address already in use"},
|
||||||
53: "software caused connection abort",
|
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||||
54: "connection reset by peer",
|
{50, "ENETDOWN", "network is down"},
|
||||||
55: "no buffer space available",
|
{51, "ENETUNREACH", "network is unreachable"},
|
||||||
56: "socket is already connected",
|
{52, "ENETRESET", "network dropped connection on reset"},
|
||||||
57: "socket is not connected",
|
{53, "ECONNABORTED", "software caused connection abort"},
|
||||||
58: "can't send after socket shutdown",
|
{54, "ECONNRESET", "connection reset by peer"},
|
||||||
59: "too many references: can't splice",
|
{55, "ENOBUFS", "no buffer space available"},
|
||||||
60: "operation timed out",
|
{56, "EISCONN", "socket is already connected"},
|
||||||
61: "connection refused",
|
{57, "ENOTCONN", "socket is not connected"},
|
||||||
62: "too many levels of symbolic links",
|
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||||
63: "file name too long",
|
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||||
64: "host is down",
|
{60, "ETIMEDOUT", "operation timed out"},
|
||||||
65: "no route to host",
|
{61, "ECONNREFUSED", "connection refused"},
|
||||||
66: "directory not empty",
|
{62, "ELOOP", "too many levels of symbolic links"},
|
||||||
67: "too many processes",
|
{63, "ENAMETOOLONG", "file name too long"},
|
||||||
68: "too many users",
|
{64, "EHOSTDOWN", "host is down"},
|
||||||
69: "disc quota exceeded",
|
{65, "EHOSTUNREACH", "no route to host"},
|
||||||
70: "stale NFS file handle",
|
{66, "ENOTEMPTY", "directory not empty"},
|
||||||
71: "too many levels of remote in path",
|
{67, "EPROCLIM", "too many processes"},
|
||||||
72: "RPC struct is bad",
|
{68, "EUSERS", "too many users"},
|
||||||
73: "RPC version wrong",
|
{69, "EDQUOT", "disc quota exceeded"},
|
||||||
74: "RPC prog. not avail",
|
{70, "ESTALE", "stale NFS file handle"},
|
||||||
75: "program version wrong",
|
{71, "EREMOTE", "too many levels of remote in path"},
|
||||||
76: "bad procedure for program",
|
{72, "EBADRPC", "RPC struct is bad"},
|
||||||
77: "no locks available",
|
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||||
78: "function not implemented",
|
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||||
79: "inappropriate file type or format",
|
{75, "EPROGMISMATCH", "program version wrong"},
|
||||||
80: "authentication error",
|
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||||
81: "need authenticator",
|
{77, "ENOLCK", "no locks available"},
|
||||||
82: "identifier removed",
|
{78, "ENOSYS", "function not implemented"},
|
||||||
83: "no message of desired type",
|
{79, "EFTYPE", "inappropriate file type or format"},
|
||||||
84: "value too large to be stored in data type",
|
{80, "EAUTH", "authentication error"},
|
||||||
85: "operation canceled",
|
{81, "ENEEDAUTH", "need authenticator"},
|
||||||
86: "illegal byte sequence",
|
{82, "EIDRM", "identifier removed"},
|
||||||
87: "attribute not found",
|
{83, "ENOMSG", "no message of desired type"},
|
||||||
88: "programming error",
|
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||||
89: "bad message",
|
{85, "ECANCELED", "operation canceled"},
|
||||||
90: "multihop attempted",
|
{86, "EILSEQ", "illegal byte sequence"},
|
||||||
91: "link has been severed",
|
{87, "ENOATTR", "attribute not found"},
|
||||||
92: "protocol error",
|
{88, "EDOOFUS", "programming error"},
|
||||||
93: "no medium found",
|
{89, "EBADMSG", "bad message"},
|
||||||
94: "unknown error: 94",
|
{90, "EMULTIHOP", "multihop attempted"},
|
||||||
95: "unknown error: 95",
|
{91, "ENOLINK", "link has been severed"},
|
||||||
96: "unknown error: 96",
|
{92, "EPROTO", "protocol error"},
|
||||||
97: "unknown error: 97",
|
{93, "ENOMEDIUM", "no medium found"},
|
||||||
98: "unknown error: 98",
|
{94, "EUNUSED94", "unknown error: 94"},
|
||||||
99: "unknown error: 99",
|
{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
|
// Signal table
|
||||||
var signals = [...]string{
|
var signalList = [...]struct {
|
||||||
1: "hangup",
|
num syscall.Signal
|
||||||
2: "interrupt",
|
name string
|
||||||
3: "quit",
|
desc string
|
||||||
4: "illegal instruction",
|
}{
|
||||||
5: "trace/BPT trap",
|
{1, "SIGHUP", "hangup"},
|
||||||
6: "abort trap",
|
{2, "SIGINT", "interrupt"},
|
||||||
7: "EMT trap",
|
{3, "SIGQUIT", "quit"},
|
||||||
8: "floating point exception",
|
{4, "SIGILL", "illegal instruction"},
|
||||||
9: "killed",
|
{5, "SIGTRAP", "trace/BPT trap"},
|
||||||
10: "bus error",
|
{6, "SIGIOT", "abort trap"},
|
||||||
11: "segmentation fault",
|
{7, "SIGEMT", "EMT trap"},
|
||||||
12: "bad system call",
|
{8, "SIGFPE", "floating point exception"},
|
||||||
13: "broken pipe",
|
{9, "SIGKILL", "killed"},
|
||||||
14: "alarm clock",
|
{10, "SIGBUS", "bus error"},
|
||||||
15: "terminated",
|
{11, "SIGSEGV", "segmentation fault"},
|
||||||
16: "urgent I/O condition",
|
{12, "SIGSYS", "bad system call"},
|
||||||
17: "suspended (signal)",
|
{13, "SIGPIPE", "broken pipe"},
|
||||||
18: "suspended",
|
{14, "SIGALRM", "alarm clock"},
|
||||||
19: "continued",
|
{15, "SIGTERM", "terminated"},
|
||||||
20: "child exited",
|
{16, "SIGURG", "urgent I/O condition"},
|
||||||
21: "stopped (tty input)",
|
{17, "SIGSTOP", "suspended (signal)"},
|
||||||
22: "stopped (tty output)",
|
{18, "SIGTSTP", "suspended"},
|
||||||
23: "I/O possible",
|
{19, "SIGCONT", "continued"},
|
||||||
24: "cputime limit exceeded",
|
{20, "SIGCHLD", "child exited"},
|
||||||
25: "filesize limit exceeded",
|
{21, "SIGTTIN", "stopped (tty input)"},
|
||||||
26: "virtual timer expired",
|
{22, "SIGTTOU", "stopped (tty output)"},
|
||||||
27: "profiling timer expired",
|
{23, "SIGIO", "I/O possible"},
|
||||||
28: "window size changes",
|
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||||
29: "information request",
|
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||||
30: "user defined signal 1",
|
{26, "SIGVTALRM", "virtual timer expired"},
|
||||||
31: "user defined signal 2",
|
{27, "SIGPROF", "profiling timer expired"},
|
||||||
32: "thread Scheduler",
|
{28, "SIGWINCH", "window size changes"},
|
||||||
33: "checkPoint",
|
{29, "SIGINFO", "information request"},
|
||||||
34: "checkPointExit",
|
{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
|
// Error table
|
||||||
var errors = [...]string{
|
var errorList = [...]struct {
|
||||||
1: "operation not permitted",
|
num syscall.Errno
|
||||||
2: "no such file or directory",
|
name string
|
||||||
3: "no such process",
|
desc string
|
||||||
4: "interrupted system call",
|
}{
|
||||||
5: "input/output error",
|
{1, "EPERM", "operation not permitted"},
|
||||||
6: "device not configured",
|
{2, "ENOENT", "no such file or directory"},
|
||||||
7: "argument list too long",
|
{3, "ESRCH", "no such process"},
|
||||||
8: "exec format error",
|
{4, "EINTR", "interrupted system call"},
|
||||||
9: "bad file descriptor",
|
{5, "EIO", "input/output error"},
|
||||||
10: "no child processes",
|
{6, "ENXIO", "device not configured"},
|
||||||
11: "resource deadlock avoided",
|
{7, "E2BIG", "argument list too long"},
|
||||||
12: "cannot allocate memory",
|
{8, "ENOEXEC", "exec format error"},
|
||||||
13: "permission denied",
|
{9, "EBADF", "bad file descriptor"},
|
||||||
14: "bad address",
|
{10, "ECHILD", "no child processes"},
|
||||||
15: "block device required",
|
{11, "EDEADLK", "resource deadlock avoided"},
|
||||||
16: "device busy",
|
{12, "ENOMEM", "cannot allocate memory"},
|
||||||
17: "file exists",
|
{13, "EACCES", "permission denied"},
|
||||||
18: "cross-device link",
|
{14, "EFAULT", "bad address"},
|
||||||
19: "operation not supported by device",
|
{15, "ENOTBLK", "block device required"},
|
||||||
20: "not a directory",
|
{16, "EBUSY", "device busy"},
|
||||||
21: "is a directory",
|
{17, "EEXIST", "file exists"},
|
||||||
22: "invalid argument",
|
{18, "EXDEV", "cross-device link"},
|
||||||
23: "too many open files in system",
|
{19, "ENODEV", "operation not supported by device"},
|
||||||
24: "too many open files",
|
{20, "ENOTDIR", "not a directory"},
|
||||||
25: "inappropriate ioctl for device",
|
{21, "EISDIR", "is a directory"},
|
||||||
26: "text file busy",
|
{22, "EINVAL", "invalid argument"},
|
||||||
27: "file too large",
|
{23, "ENFILE", "too many open files in system"},
|
||||||
28: "no space left on device",
|
{24, "EMFILE", "too many open files"},
|
||||||
29: "illegal seek",
|
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||||
30: "read-only file system",
|
{26, "ETXTBSY", "text file busy"},
|
||||||
31: "too many links",
|
{27, "EFBIG", "file too large"},
|
||||||
32: "broken pipe",
|
{28, "ENOSPC", "no space left on device"},
|
||||||
33: "numerical argument out of domain",
|
{29, "ESPIPE", "illegal seek"},
|
||||||
34: "result too large",
|
{30, "EROFS", "read-only file system"},
|
||||||
35: "resource temporarily unavailable",
|
{31, "EMLINK", "too many links"},
|
||||||
36: "operation now in progress",
|
{32, "EPIPE", "broken pipe"},
|
||||||
37: "operation already in progress",
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
38: "socket operation on non-socket",
|
{34, "ERANGE", "result too large"},
|
||||||
39: "destination address required",
|
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||||
40: "message too long",
|
{36, "EINPROGRESS", "operation now in progress"},
|
||||||
41: "protocol wrong type for socket",
|
{37, "EALREADY", "operation already in progress"},
|
||||||
42: "protocol not available",
|
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
43: "protocol not supported",
|
{39, "EDESTADDRREQ", "destination address required"},
|
||||||
44: "socket type not supported",
|
{40, "EMSGSIZE", "message too long"},
|
||||||
45: "operation not supported",
|
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||||
46: "protocol family not supported",
|
{42, "ENOPROTOOPT", "protocol not available"},
|
||||||
47: "address family not supported by protocol family",
|
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||||
48: "address already in use",
|
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||||
49: "can't assign requested address",
|
{45, "EOPNOTSUPP", "operation not supported"},
|
||||||
50: "network is down",
|
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||||
51: "network is unreachable",
|
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||||
52: "network dropped connection on reset",
|
{48, "EADDRINUSE", "address already in use"},
|
||||||
53: "software caused connection abort",
|
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||||
54: "connection reset by peer",
|
{50, "ENETDOWN", "network is down"},
|
||||||
55: "no buffer space available",
|
{51, "ENETUNREACH", "network is unreachable"},
|
||||||
56: "socket is already connected",
|
{52, "ENETRESET", "network dropped connection on reset"},
|
||||||
57: "socket is not connected",
|
{53, "ECONNABORTED", "software caused connection abort"},
|
||||||
58: "can't send after socket shutdown",
|
{54, "ECONNRESET", "connection reset by peer"},
|
||||||
59: "too many references: can't splice",
|
{55, "ENOBUFS", "no buffer space available"},
|
||||||
60: "operation timed out",
|
{56, "EISCONN", "socket is already connected"},
|
||||||
61: "connection refused",
|
{57, "ENOTCONN", "socket is not connected"},
|
||||||
62: "too many levels of symbolic links",
|
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||||
63: "file name too long",
|
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||||
64: "host is down",
|
{60, "ETIMEDOUT", "operation timed out"},
|
||||||
65: "no route to host",
|
{61, "ECONNREFUSED", "connection refused"},
|
||||||
66: "directory not empty",
|
{62, "ELOOP", "too many levels of symbolic links"},
|
||||||
67: "too many processes",
|
{63, "ENAMETOOLONG", "file name too long"},
|
||||||
68: "too many users",
|
{64, "EHOSTDOWN", "host is down"},
|
||||||
69: "disc quota exceeded",
|
{65, "EHOSTUNREACH", "no route to host"},
|
||||||
70: "stale NFS file handle",
|
{66, "ENOTEMPTY", "directory not empty"},
|
||||||
71: "too many levels of remote in path",
|
{67, "EPROCLIM", "too many processes"},
|
||||||
72: "RPC struct is bad",
|
{68, "EUSERS", "too many users"},
|
||||||
73: "RPC version wrong",
|
{69, "EDQUOT", "disc quota exceeded"},
|
||||||
74: "RPC prog. not avail",
|
{70, "ESTALE", "stale NFS file handle"},
|
||||||
75: "program version wrong",
|
{71, "EREMOTE", "too many levels of remote in path"},
|
||||||
76: "bad procedure for program",
|
{72, "EBADRPC", "RPC struct is bad"},
|
||||||
77: "no locks available",
|
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||||
78: "function not implemented",
|
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||||
79: "inappropriate file type or format",
|
{75, "EPROGMISMATCH", "program version wrong"},
|
||||||
80: "authentication error",
|
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||||
81: "need authenticator",
|
{77, "ENOLCK", "no locks available"},
|
||||||
82: "identifier removed",
|
{78, "ENOSYS", "function not implemented"},
|
||||||
83: "no message of desired type",
|
{79, "EFTYPE", "inappropriate file type or format"},
|
||||||
84: "value too large to be stored in data type",
|
{80, "EAUTH", "authentication error"},
|
||||||
85: "operation canceled",
|
{81, "ENEEDAUTH", "need authenticator"},
|
||||||
86: "illegal byte sequence",
|
{82, "EIDRM", "identifier removed"},
|
||||||
87: "attribute not found",
|
{83, "ENOMSG", "no message of desired type"},
|
||||||
88: "programming error",
|
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||||
89: "bad message",
|
{85, "ECANCELED", "operation canceled"},
|
||||||
90: "multihop attempted",
|
{86, "EILSEQ", "illegal byte sequence"},
|
||||||
91: "link has been severed",
|
{87, "ENOATTR", "attribute not found"},
|
||||||
92: "protocol error",
|
{88, "EDOOFUS", "programming error"},
|
||||||
93: "capabilities insufficient",
|
{89, "EBADMSG", "bad message"},
|
||||||
94: "not permitted in capability mode",
|
{90, "EMULTIHOP", "multihop attempted"},
|
||||||
95: "state not recoverable",
|
{91, "ENOLINK", "link has been severed"},
|
||||||
96: "previous owner died",
|
{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
|
// Signal table
|
||||||
var signals = [...]string{
|
var signalList = [...]struct {
|
||||||
1: "hangup",
|
num syscall.Signal
|
||||||
2: "interrupt",
|
name string
|
||||||
3: "quit",
|
desc string
|
||||||
4: "illegal instruction",
|
}{
|
||||||
5: "trace/BPT trap",
|
{1, "SIGHUP", "hangup"},
|
||||||
6: "abort trap",
|
{2, "SIGINT", "interrupt"},
|
||||||
7: "EMT trap",
|
{3, "SIGQUIT", "quit"},
|
||||||
8: "floating point exception",
|
{4, "SIGILL", "illegal instruction"},
|
||||||
9: "killed",
|
{5, "SIGTRAP", "trace/BPT trap"},
|
||||||
10: "bus error",
|
{6, "SIGIOT", "abort trap"},
|
||||||
11: "segmentation fault",
|
{7, "SIGEMT", "EMT trap"},
|
||||||
12: "bad system call",
|
{8, "SIGFPE", "floating point exception"},
|
||||||
13: "broken pipe",
|
{9, "SIGKILL", "killed"},
|
||||||
14: "alarm clock",
|
{10, "SIGBUS", "bus error"},
|
||||||
15: "terminated",
|
{11, "SIGSEGV", "segmentation fault"},
|
||||||
16: "urgent I/O condition",
|
{12, "SIGSYS", "bad system call"},
|
||||||
17: "suspended (signal)",
|
{13, "SIGPIPE", "broken pipe"},
|
||||||
18: "suspended",
|
{14, "SIGALRM", "alarm clock"},
|
||||||
19: "continued",
|
{15, "SIGTERM", "terminated"},
|
||||||
20: "child exited",
|
{16, "SIGURG", "urgent I/O condition"},
|
||||||
21: "stopped (tty input)",
|
{17, "SIGSTOP", "suspended (signal)"},
|
||||||
22: "stopped (tty output)",
|
{18, "SIGTSTP", "suspended"},
|
||||||
23: "I/O possible",
|
{19, "SIGCONT", "continued"},
|
||||||
24: "cputime limit exceeded",
|
{20, "SIGCHLD", "child exited"},
|
||||||
25: "filesize limit exceeded",
|
{21, "SIGTTIN", "stopped (tty input)"},
|
||||||
26: "virtual timer expired",
|
{22, "SIGTTOU", "stopped (tty output)"},
|
||||||
27: "profiling timer expired",
|
{23, "SIGIO", "I/O possible"},
|
||||||
28: "window size changes",
|
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||||
29: "information request",
|
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||||
30: "user defined signal 1",
|
{26, "SIGVTALRM", "virtual timer expired"},
|
||||||
31: "user defined signal 2",
|
{27, "SIGPROF", "profiling timer expired"},
|
||||||
32: "unknown signal",
|
{28, "SIGWINCH", "window size changes"},
|
||||||
33: "unknown signal",
|
{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
|
// Error table
|
||||||
var errors = [...]string{
|
var errorList = [...]struct {
|
||||||
1: "operation not permitted",
|
num syscall.Errno
|
||||||
2: "no such file or directory",
|
name string
|
||||||
3: "no such process",
|
desc string
|
||||||
4: "interrupted system call",
|
}{
|
||||||
5: "input/output error",
|
{1, "EPERM", "operation not permitted"},
|
||||||
6: "device not configured",
|
{2, "ENOENT", "no such file or directory"},
|
||||||
7: "argument list too long",
|
{3, "ESRCH", "no such process"},
|
||||||
8: "exec format error",
|
{4, "EINTR", "interrupted system call"},
|
||||||
9: "bad file descriptor",
|
{5, "EIO", "input/output error"},
|
||||||
10: "no child processes",
|
{6, "ENXIO", "device not configured"},
|
||||||
11: "resource deadlock avoided",
|
{7, "E2BIG", "argument list too long"},
|
||||||
12: "cannot allocate memory",
|
{8, "ENOEXEC", "exec format error"},
|
||||||
13: "permission denied",
|
{9, "EBADF", "bad file descriptor"},
|
||||||
14: "bad address",
|
{10, "ECHILD", "no child processes"},
|
||||||
15: "block device required",
|
{11, "EDEADLK", "resource deadlock avoided"},
|
||||||
16: "device busy",
|
{12, "ENOMEM", "cannot allocate memory"},
|
||||||
17: "file exists",
|
{13, "EACCES", "permission denied"},
|
||||||
18: "cross-device link",
|
{14, "EFAULT", "bad address"},
|
||||||
19: "operation not supported by device",
|
{15, "ENOTBLK", "block device required"},
|
||||||
20: "not a directory",
|
{16, "EBUSY", "device busy"},
|
||||||
21: "is a directory",
|
{17, "EEXIST", "file exists"},
|
||||||
22: "invalid argument",
|
{18, "EXDEV", "cross-device link"},
|
||||||
23: "too many open files in system",
|
{19, "ENODEV", "operation not supported by device"},
|
||||||
24: "too many open files",
|
{20, "ENOTDIR", "not a directory"},
|
||||||
25: "inappropriate ioctl for device",
|
{21, "EISDIR", "is a directory"},
|
||||||
26: "text file busy",
|
{22, "EINVAL", "invalid argument"},
|
||||||
27: "file too large",
|
{23, "ENFILE", "too many open files in system"},
|
||||||
28: "no space left on device",
|
{24, "EMFILE", "too many open files"},
|
||||||
29: "illegal seek",
|
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||||
30: "read-only file system",
|
{26, "ETXTBSY", "text file busy"},
|
||||||
31: "too many links",
|
{27, "EFBIG", "file too large"},
|
||||||
32: "broken pipe",
|
{28, "ENOSPC", "no space left on device"},
|
||||||
33: "numerical argument out of domain",
|
{29, "ESPIPE", "illegal seek"},
|
||||||
34: "result too large",
|
{30, "EROFS", "read-only file system"},
|
||||||
35: "resource temporarily unavailable",
|
{31, "EMLINK", "too many links"},
|
||||||
36: "operation now in progress",
|
{32, "EPIPE", "broken pipe"},
|
||||||
37: "operation already in progress",
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
38: "socket operation on non-socket",
|
{34, "ERANGE", "result too large"},
|
||||||
39: "destination address required",
|
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||||
40: "message too long",
|
{36, "EINPROGRESS", "operation now in progress"},
|
||||||
41: "protocol wrong type for socket",
|
{37, "EALREADY", "operation already in progress"},
|
||||||
42: "protocol not available",
|
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
43: "protocol not supported",
|
{39, "EDESTADDRREQ", "destination address required"},
|
||||||
44: "socket type not supported",
|
{40, "EMSGSIZE", "message too long"},
|
||||||
45: "operation not supported",
|
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||||
46: "protocol family not supported",
|
{42, "ENOPROTOOPT", "protocol not available"},
|
||||||
47: "address family not supported by protocol family",
|
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||||
48: "address already in use",
|
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||||
49: "can't assign requested address",
|
{45, "EOPNOTSUPP", "operation not supported"},
|
||||||
50: "network is down",
|
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||||
51: "network is unreachable",
|
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||||
52: "network dropped connection on reset",
|
{48, "EADDRINUSE", "address already in use"},
|
||||||
53: "software caused connection abort",
|
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||||
54: "connection reset by peer",
|
{50, "ENETDOWN", "network is down"},
|
||||||
55: "no buffer space available",
|
{51, "ENETUNREACH", "network is unreachable"},
|
||||||
56: "socket is already connected",
|
{52, "ENETRESET", "network dropped connection on reset"},
|
||||||
57: "socket is not connected",
|
{53, "ECONNABORTED", "software caused connection abort"},
|
||||||
58: "can't send after socket shutdown",
|
{54, "ECONNRESET", "connection reset by peer"},
|
||||||
59: "too many references: can't splice",
|
{55, "ENOBUFS", "no buffer space available"},
|
||||||
60: "operation timed out",
|
{56, "EISCONN", "socket is already connected"},
|
||||||
61: "connection refused",
|
{57, "ENOTCONN", "socket is not connected"},
|
||||||
62: "too many levels of symbolic links",
|
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||||
63: "file name too long",
|
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||||
64: "host is down",
|
{60, "ETIMEDOUT", "operation timed out"},
|
||||||
65: "no route to host",
|
{61, "ECONNREFUSED", "connection refused"},
|
||||||
66: "directory not empty",
|
{62, "ELOOP", "too many levels of symbolic links"},
|
||||||
67: "too many processes",
|
{63, "ENAMETOOLONG", "file name too long"},
|
||||||
68: "too many users",
|
{64, "EHOSTDOWN", "host is down"},
|
||||||
69: "disc quota exceeded",
|
{65, "EHOSTUNREACH", "no route to host"},
|
||||||
70: "stale NFS file handle",
|
{66, "ENOTEMPTY", "directory not empty"},
|
||||||
71: "too many levels of remote in path",
|
{67, "EPROCLIM", "too many processes"},
|
||||||
72: "RPC struct is bad",
|
{68, "EUSERS", "too many users"},
|
||||||
73: "RPC version wrong",
|
{69, "EDQUOT", "disc quota exceeded"},
|
||||||
74: "RPC prog. not avail",
|
{70, "ESTALE", "stale NFS file handle"},
|
||||||
75: "program version wrong",
|
{71, "EREMOTE", "too many levels of remote in path"},
|
||||||
76: "bad procedure for program",
|
{72, "EBADRPC", "RPC struct is bad"},
|
||||||
77: "no locks available",
|
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||||
78: "function not implemented",
|
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||||
79: "inappropriate file type or format",
|
{75, "EPROGMISMATCH", "program version wrong"},
|
||||||
80: "authentication error",
|
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||||
81: "need authenticator",
|
{77, "ENOLCK", "no locks available"},
|
||||||
82: "identifier removed",
|
{78, "ENOSYS", "function not implemented"},
|
||||||
83: "no message of desired type",
|
{79, "EFTYPE", "inappropriate file type or format"},
|
||||||
84: "value too large to be stored in data type",
|
{80, "EAUTH", "authentication error"},
|
||||||
85: "operation canceled",
|
{81, "ENEEDAUTH", "need authenticator"},
|
||||||
86: "illegal byte sequence",
|
{82, "EIDRM", "identifier removed"},
|
||||||
87: "attribute not found",
|
{83, "ENOMSG", "no message of desired type"},
|
||||||
88: "programming error",
|
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||||
89: "bad message",
|
{85, "ECANCELED", "operation canceled"},
|
||||||
90: "multihop attempted",
|
{86, "EILSEQ", "illegal byte sequence"},
|
||||||
91: "link has been severed",
|
{87, "ENOATTR", "attribute not found"},
|
||||||
92: "protocol error",
|
{88, "EDOOFUS", "programming error"},
|
||||||
93: "capabilities insufficient",
|
{89, "EBADMSG", "bad message"},
|
||||||
94: "not permitted in capability mode",
|
{90, "EMULTIHOP", "multihop attempted"},
|
||||||
95: "state not recoverable",
|
{91, "ENOLINK", "link has been severed"},
|
||||||
96: "previous owner died",
|
{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
|
// Signal table
|
||||||
var signals = [...]string{
|
var signalList = [...]struct {
|
||||||
1: "hangup",
|
num syscall.Signal
|
||||||
2: "interrupt",
|
name string
|
||||||
3: "quit",
|
desc string
|
||||||
4: "illegal instruction",
|
}{
|
||||||
5: "trace/BPT trap",
|
{1, "SIGHUP", "hangup"},
|
||||||
6: "abort trap",
|
{2, "SIGINT", "interrupt"},
|
||||||
7: "EMT trap",
|
{3, "SIGQUIT", "quit"},
|
||||||
8: "floating point exception",
|
{4, "SIGILL", "illegal instruction"},
|
||||||
9: "killed",
|
{5, "SIGTRAP", "trace/BPT trap"},
|
||||||
10: "bus error",
|
{6, "SIGIOT", "abort trap"},
|
||||||
11: "segmentation fault",
|
{7, "SIGEMT", "EMT trap"},
|
||||||
12: "bad system call",
|
{8, "SIGFPE", "floating point exception"},
|
||||||
13: "broken pipe",
|
{9, "SIGKILL", "killed"},
|
||||||
14: "alarm clock",
|
{10, "SIGBUS", "bus error"},
|
||||||
15: "terminated",
|
{11, "SIGSEGV", "segmentation fault"},
|
||||||
16: "urgent I/O condition",
|
{12, "SIGSYS", "bad system call"},
|
||||||
17: "suspended (signal)",
|
{13, "SIGPIPE", "broken pipe"},
|
||||||
18: "suspended",
|
{14, "SIGALRM", "alarm clock"},
|
||||||
19: "continued",
|
{15, "SIGTERM", "terminated"},
|
||||||
20: "child exited",
|
{16, "SIGURG", "urgent I/O condition"},
|
||||||
21: "stopped (tty input)",
|
{17, "SIGSTOP", "suspended (signal)"},
|
||||||
22: "stopped (tty output)",
|
{18, "SIGTSTP", "suspended"},
|
||||||
23: "I/O possible",
|
{19, "SIGCONT", "continued"},
|
||||||
24: "cputime limit exceeded",
|
{20, "SIGCHLD", "child exited"},
|
||||||
25: "filesize limit exceeded",
|
{21, "SIGTTIN", "stopped (tty input)"},
|
||||||
26: "virtual timer expired",
|
{22, "SIGTTOU", "stopped (tty output)"},
|
||||||
27: "profiling timer expired",
|
{23, "SIGIO", "I/O possible"},
|
||||||
28: "window size changes",
|
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||||
29: "information request",
|
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||||
30: "user defined signal 1",
|
{26, "SIGVTALRM", "virtual timer expired"},
|
||||||
31: "user defined signal 2",
|
{27, "SIGPROF", "profiling timer expired"},
|
||||||
32: "unknown signal",
|
{28, "SIGWINCH", "window size changes"},
|
||||||
33: "unknown signal",
|
{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
|
// Error table
|
||||||
var errors = [...]string{
|
var errorList = [...]struct {
|
||||||
1: "operation not permitted",
|
num syscall.Errno
|
||||||
2: "no such file or directory",
|
name string
|
||||||
3: "no such process",
|
desc string
|
||||||
4: "interrupted system call",
|
}{
|
||||||
5: "input/output error",
|
{1, "EPERM", "operation not permitted"},
|
||||||
6: "device not configured",
|
{2, "ENOENT", "no such file or directory"},
|
||||||
7: "argument list too long",
|
{3, "ESRCH", "no such process"},
|
||||||
8: "exec format error",
|
{4, "EINTR", "interrupted system call"},
|
||||||
9: "bad file descriptor",
|
{5, "EIO", "input/output error"},
|
||||||
10: "no child processes",
|
{6, "ENXIO", "device not configured"},
|
||||||
11: "resource deadlock avoided",
|
{7, "E2BIG", "argument list too long"},
|
||||||
12: "cannot allocate memory",
|
{8, "ENOEXEC", "exec format error"},
|
||||||
13: "permission denied",
|
{9, "EBADF", "bad file descriptor"},
|
||||||
14: "bad address",
|
{10, "ECHILD", "no child processes"},
|
||||||
15: "block device required",
|
{11, "EDEADLK", "resource deadlock avoided"},
|
||||||
16: "device busy",
|
{12, "ENOMEM", "cannot allocate memory"},
|
||||||
17: "file exists",
|
{13, "EACCES", "permission denied"},
|
||||||
18: "cross-device link",
|
{14, "EFAULT", "bad address"},
|
||||||
19: "operation not supported by device",
|
{15, "ENOTBLK", "block device required"},
|
||||||
20: "not a directory",
|
{16, "EBUSY", "device busy"},
|
||||||
21: "is a directory",
|
{17, "EEXIST", "file exists"},
|
||||||
22: "invalid argument",
|
{18, "EXDEV", "cross-device link"},
|
||||||
23: "too many open files in system",
|
{19, "ENODEV", "operation not supported by device"},
|
||||||
24: "too many open files",
|
{20, "ENOTDIR", "not a directory"},
|
||||||
25: "inappropriate ioctl for device",
|
{21, "EISDIR", "is a directory"},
|
||||||
26: "text file busy",
|
{22, "EINVAL", "invalid argument"},
|
||||||
27: "file too large",
|
{23, "ENFILE", "too many open files in system"},
|
||||||
28: "no space left on device",
|
{24, "EMFILE", "too many open files"},
|
||||||
29: "illegal seek",
|
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||||
30: "read-only file system",
|
{26, "ETXTBSY", "text file busy"},
|
||||||
31: "too many links",
|
{27, "EFBIG", "file too large"},
|
||||||
32: "broken pipe",
|
{28, "ENOSPC", "no space left on device"},
|
||||||
33: "numerical argument out of domain",
|
{29, "ESPIPE", "illegal seek"},
|
||||||
34: "result too large",
|
{30, "EROFS", "read-only file system"},
|
||||||
35: "resource temporarily unavailable",
|
{31, "EMLINK", "too many links"},
|
||||||
36: "operation now in progress",
|
{32, "EPIPE", "broken pipe"},
|
||||||
37: "operation already in progress",
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
38: "socket operation on non-socket",
|
{34, "ERANGE", "result too large"},
|
||||||
39: "destination address required",
|
{35, "EAGAIN", "resource temporarily unavailable"},
|
||||||
40: "message too long",
|
{36, "EINPROGRESS", "operation now in progress"},
|
||||||
41: "protocol wrong type for socket",
|
{37, "EALREADY", "operation already in progress"},
|
||||||
42: "protocol not available",
|
{38, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
43: "protocol not supported",
|
{39, "EDESTADDRREQ", "destination address required"},
|
||||||
44: "socket type not supported",
|
{40, "EMSGSIZE", "message too long"},
|
||||||
45: "operation not supported",
|
{41, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||||
46: "protocol family not supported",
|
{42, "ENOPROTOOPT", "protocol not available"},
|
||||||
47: "address family not supported by protocol family",
|
{43, "EPROTONOSUPPORT", "protocol not supported"},
|
||||||
48: "address already in use",
|
{44, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||||
49: "can't assign requested address",
|
{45, "EOPNOTSUPP", "operation not supported"},
|
||||||
50: "network is down",
|
{46, "EPFNOSUPPORT", "protocol family not supported"},
|
||||||
51: "network is unreachable",
|
{47, "EAFNOSUPPORT", "address family not supported by protocol family"},
|
||||||
52: "network dropped connection on reset",
|
{48, "EADDRINUSE", "address already in use"},
|
||||||
53: "software caused connection abort",
|
{49, "EADDRNOTAVAIL", "can't assign requested address"},
|
||||||
54: "connection reset by peer",
|
{50, "ENETDOWN", "network is down"},
|
||||||
55: "no buffer space available",
|
{51, "ENETUNREACH", "network is unreachable"},
|
||||||
56: "socket is already connected",
|
{52, "ENETRESET", "network dropped connection on reset"},
|
||||||
57: "socket is not connected",
|
{53, "ECONNABORTED", "software caused connection abort"},
|
||||||
58: "can't send after socket shutdown",
|
{54, "ECONNRESET", "connection reset by peer"},
|
||||||
59: "too many references: can't splice",
|
{55, "ENOBUFS", "no buffer space available"},
|
||||||
60: "operation timed out",
|
{56, "EISCONN", "socket is already connected"},
|
||||||
61: "connection refused",
|
{57, "ENOTCONN", "socket is not connected"},
|
||||||
62: "too many levels of symbolic links",
|
{58, "ESHUTDOWN", "can't send after socket shutdown"},
|
||||||
63: "file name too long",
|
{59, "ETOOMANYREFS", "too many references: can't splice"},
|
||||||
64: "host is down",
|
{60, "ETIMEDOUT", "operation timed out"},
|
||||||
65: "no route to host",
|
{61, "ECONNREFUSED", "connection refused"},
|
||||||
66: "directory not empty",
|
{62, "ELOOP", "too many levels of symbolic links"},
|
||||||
67: "too many processes",
|
{63, "ENAMETOOLONG", "file name too long"},
|
||||||
68: "too many users",
|
{64, "EHOSTDOWN", "host is down"},
|
||||||
69: "disc quota exceeded",
|
{65, "EHOSTUNREACH", "no route to host"},
|
||||||
70: "stale NFS file handle",
|
{66, "ENOTEMPTY", "directory not empty"},
|
||||||
71: "too many levels of remote in path",
|
{67, "EPROCLIM", "too many processes"},
|
||||||
72: "RPC struct is bad",
|
{68, "EUSERS", "too many users"},
|
||||||
73: "RPC version wrong",
|
{69, "EDQUOT", "disc quota exceeded"},
|
||||||
74: "RPC prog. not avail",
|
{70, "ESTALE", "stale NFS file handle"},
|
||||||
75: "program version wrong",
|
{71, "EREMOTE", "too many levels of remote in path"},
|
||||||
76: "bad procedure for program",
|
{72, "EBADRPC", "RPC struct is bad"},
|
||||||
77: "no locks available",
|
{73, "ERPCMISMATCH", "RPC version wrong"},
|
||||||
78: "function not implemented",
|
{74, "EPROGUNAVAIL", "RPC prog. not avail"},
|
||||||
79: "inappropriate file type or format",
|
{75, "EPROGMISMATCH", "program version wrong"},
|
||||||
80: "authentication error",
|
{76, "EPROCUNAVAIL", "bad procedure for program"},
|
||||||
81: "need authenticator",
|
{77, "ENOLCK", "no locks available"},
|
||||||
82: "identifier removed",
|
{78, "ENOSYS", "function not implemented"},
|
||||||
83: "no message of desired type",
|
{79, "EFTYPE", "inappropriate file type or format"},
|
||||||
84: "value too large to be stored in data type",
|
{80, "EAUTH", "authentication error"},
|
||||||
85: "operation canceled",
|
{81, "ENEEDAUTH", "need authenticator"},
|
||||||
86: "illegal byte sequence",
|
{82, "EIDRM", "identifier removed"},
|
||||||
87: "attribute not found",
|
{83, "ENOMSG", "no message of desired type"},
|
||||||
88: "programming error",
|
{84, "EOVERFLOW", "value too large to be stored in data type"},
|
||||||
89: "bad message",
|
{85, "ECANCELED", "operation canceled"},
|
||||||
90: "multihop attempted",
|
{86, "EILSEQ", "illegal byte sequence"},
|
||||||
91: "link has been severed",
|
{87, "ENOATTR", "attribute not found"},
|
||||||
92: "protocol error",
|
{88, "EDOOFUS", "programming error"},
|
||||||
93: "capabilities insufficient",
|
{89, "EBADMSG", "bad message"},
|
||||||
94: "not permitted in capability mode",
|
{90, "EMULTIHOP", "multihop attempted"},
|
||||||
95: "state not recoverable",
|
{91, "ENOLINK", "link has been severed"},
|
||||||
96: "previous owner died",
|
{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
|
// Signal table
|
||||||
var signals = [...]string{
|
var signalList = [...]struct {
|
||||||
1: "hangup",
|
num syscall.Signal
|
||||||
2: "interrupt",
|
name string
|
||||||
3: "quit",
|
desc string
|
||||||
4: "illegal instruction",
|
}{
|
||||||
5: "trace/BPT trap",
|
{1, "SIGHUP", "hangup"},
|
||||||
6: "abort trap",
|
{2, "SIGINT", "interrupt"},
|
||||||
7: "EMT trap",
|
{3, "SIGQUIT", "quit"},
|
||||||
8: "floating point exception",
|
{4, "SIGILL", "illegal instruction"},
|
||||||
9: "killed",
|
{5, "SIGTRAP", "trace/BPT trap"},
|
||||||
10: "bus error",
|
{6, "SIGIOT", "abort trap"},
|
||||||
11: "segmentation fault",
|
{7, "SIGEMT", "EMT trap"},
|
||||||
12: "bad system call",
|
{8, "SIGFPE", "floating point exception"},
|
||||||
13: "broken pipe",
|
{9, "SIGKILL", "killed"},
|
||||||
14: "alarm clock",
|
{10, "SIGBUS", "bus error"},
|
||||||
15: "terminated",
|
{11, "SIGSEGV", "segmentation fault"},
|
||||||
16: "urgent I/O condition",
|
{12, "SIGSYS", "bad system call"},
|
||||||
17: "suspended (signal)",
|
{13, "SIGPIPE", "broken pipe"},
|
||||||
18: "suspended",
|
{14, "SIGALRM", "alarm clock"},
|
||||||
19: "continued",
|
{15, "SIGTERM", "terminated"},
|
||||||
20: "child exited",
|
{16, "SIGURG", "urgent I/O condition"},
|
||||||
21: "stopped (tty input)",
|
{17, "SIGSTOP", "suspended (signal)"},
|
||||||
22: "stopped (tty output)",
|
{18, "SIGTSTP", "suspended"},
|
||||||
23: "I/O possible",
|
{19, "SIGCONT", "continued"},
|
||||||
24: "cputime limit exceeded",
|
{20, "SIGCHLD", "child exited"},
|
||||||
25: "filesize limit exceeded",
|
{21, "SIGTTIN", "stopped (tty input)"},
|
||||||
26: "virtual timer expired",
|
{22, "SIGTTOU", "stopped (tty output)"},
|
||||||
27: "profiling timer expired",
|
{23, "SIGIO", "I/O possible"},
|
||||||
28: "window size changes",
|
{24, "SIGXCPU", "cputime limit exceeded"},
|
||||||
29: "information request",
|
{25, "SIGXFSZ", "filesize limit exceeded"},
|
||||||
30: "user defined signal 1",
|
{26, "SIGVTALRM", "virtual timer expired"},
|
||||||
31: "user defined signal 2",
|
{27, "SIGPROF", "profiling timer expired"},
|
||||||
32: "unknown signal",
|
{28, "SIGWINCH", "window size changes"},
|
||||||
33: "unknown signal",
|
{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
|
// +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
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m32 _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
@ -11,6 +11,11 @@ package unix
|
||||||
import "syscall"
|
import "syscall"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
AAFS_MAGIC = 0x5a3c69f0
|
||||||
|
ADFS_SUPER_MAGIC = 0xadf5
|
||||||
|
AFFS_SUPER_MAGIC = 0xadff
|
||||||
|
AFS_FS_MAGIC = 0x6b414653
|
||||||
|
AFS_SUPER_MAGIC = 0x5346414f
|
||||||
AF_ALG = 0x26
|
AF_ALG = 0x26
|
||||||
AF_APPLETALK = 0x5
|
AF_APPLETALK = 0x5
|
||||||
AF_ASH = 0x12
|
AF_ASH = 0x12
|
||||||
|
@ -66,6 +71,7 @@ const (
|
||||||
ALG_SET_IV = 0x2
|
ALG_SET_IV = 0x2
|
||||||
ALG_SET_KEY = 0x1
|
ALG_SET_KEY = 0x1
|
||||||
ALG_SET_OP = 0x3
|
ALG_SET_OP = 0x3
|
||||||
|
ANON_INODE_FS_MAGIC = 0x9041934
|
||||||
ARPHRD_6LOWPAN = 0x339
|
ARPHRD_6LOWPAN = 0x339
|
||||||
ARPHRD_ADAPT = 0x108
|
ARPHRD_ADAPT = 0x108
|
||||||
ARPHRD_APPLETLK = 0x8
|
ARPHRD_APPLETLK = 0x8
|
||||||
|
@ -133,6 +139,7 @@ const (
|
||||||
ARPHRD_VOID = 0xffff
|
ARPHRD_VOID = 0xffff
|
||||||
ARPHRD_VSOCKMON = 0x33a
|
ARPHRD_VSOCKMON = 0x33a
|
||||||
ARPHRD_X25 = 0x10f
|
ARPHRD_X25 = 0x10f
|
||||||
|
AUTOFS_SUPER_MAGIC = 0x187
|
||||||
B0 = 0x0
|
B0 = 0x0
|
||||||
B1000000 = 0x1008
|
B1000000 = 0x1008
|
||||||
B110 = 0x3
|
B110 = 0x3
|
||||||
|
@ -164,6 +171,9 @@ const (
|
||||||
B75 = 0x2
|
B75 = 0x2
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x80041270
|
BLKBSZGET = 0x80041270
|
||||||
BLKBSZSET = 0x40041271
|
BLKBSZSET = 0x40041271
|
||||||
BLKFLSBUF = 0x1261
|
BLKFLSBUF = 0x1261
|
||||||
|
@ -188,6 +198,7 @@ const (
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
|
@ -229,6 +240,8 @@ const (
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||||
|
BTRFS_TEST_MAGIC = 0x73727279
|
||||||
CAN_BCM = 0x2
|
CAN_BCM = 0x2
|
||||||
CAN_EFF_FLAG = 0x80000000
|
CAN_EFF_FLAG = 0x80000000
|
||||||
CAN_EFF_ID_BITS = 0x1d
|
CAN_EFF_ID_BITS = 0x1d
|
||||||
|
@ -252,6 +265,8 @@ const (
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
|
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||||
|
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||||
CIBAUD = 0x100f0000
|
CIBAUD = 0x100f0000
|
||||||
CLOCAL = 0x800
|
CLOCAL = 0x800
|
||||||
CLOCK_BOOTTIME = 0x7
|
CLOCK_BOOTTIME = 0x7
|
||||||
|
@ -294,10 +309,12 @@ const (
|
||||||
CLONE_VFORK = 0x4000
|
CLONE_VFORK = 0x4000
|
||||||
CLONE_VM = 0x100
|
CLONE_VM = 0x100
|
||||||
CMSPAR = 0x40000000
|
CMSPAR = 0x40000000
|
||||||
|
CODA_SUPER_MAGIC = 0x73757245
|
||||||
CR0 = 0x0
|
CR0 = 0x0
|
||||||
CR1 = 0x200
|
CR1 = 0x200
|
||||||
CR2 = 0x400
|
CR2 = 0x400
|
||||||
CR3 = 0x600
|
CR3 = 0x600
|
||||||
|
CRAMFS_MAGIC = 0x28cd3d45
|
||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
@ -312,6 +329,9 @@ const (
|
||||||
CSTOP = 0x13
|
CSTOP = 0x13
|
||||||
CSTOPB = 0x40
|
CSTOPB = 0x40
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
|
DAXFS_MAGIC = 0x64646178
|
||||||
|
DEBUGFS_MAGIC = 0x64626720
|
||||||
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -328,9 +348,12 @@ const (
|
||||||
ECHOKE = 0x800
|
ECHOKE = 0x800
|
||||||
ECHONL = 0x40
|
ECHONL = 0x40
|
||||||
ECHOPRT = 0x400
|
ECHOPRT = 0x400
|
||||||
|
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||||
EFD_CLOEXEC = 0x80000
|
EFD_CLOEXEC = 0x80000
|
||||||
EFD_NONBLOCK = 0x800
|
EFD_NONBLOCK = 0x800
|
||||||
EFD_SEMAPHORE = 0x1
|
EFD_SEMAPHORE = 0x1
|
||||||
|
EFIVARFS_MAGIC = 0xde5e81e4
|
||||||
|
EFS_SUPER_MAGIC = 0x414a53
|
||||||
ENCODING_DEFAULT = 0x0
|
ENCODING_DEFAULT = 0x0
|
||||||
ENCODING_FM_MARK = 0x3
|
ENCODING_FM_MARK = 0x3
|
||||||
ENCODING_FM_SPACE = 0x4
|
ENCODING_FM_SPACE = 0x4
|
||||||
|
@ -392,6 +415,7 @@ const (
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
|
ETH_P_ERSPAN2 = 0x22eb
|
||||||
ETH_P_FCOE = 0x8906
|
ETH_P_FCOE = 0x8906
|
||||||
ETH_P_FIP = 0x8914
|
ETH_P_FIP = 0x8914
|
||||||
ETH_P_HDLC = 0x19
|
ETH_P_HDLC = 0x19
|
||||||
|
@ -425,6 +449,7 @@ const (
|
||||||
ETH_P_PPP_DISC = 0x8863
|
ETH_P_PPP_DISC = 0x8863
|
||||||
ETH_P_PPP_MP = 0x8
|
ETH_P_PPP_MP = 0x8
|
||||||
ETH_P_PPP_SES = 0x8864
|
ETH_P_PPP_SES = 0x8864
|
||||||
|
ETH_P_PREAUTH = 0x88c7
|
||||||
ETH_P_PRP = 0x88fb
|
ETH_P_PRP = 0x88fb
|
||||||
ETH_P_PUP = 0x200
|
ETH_P_PUP = 0x200
|
||||||
ETH_P_PUPAT = 0x201
|
ETH_P_PUPAT = 0x201
|
||||||
|
@ -445,9 +470,14 @@ const (
|
||||||
ETH_P_WCCP = 0x883e
|
ETH_P_WCCP = 0x883e
|
||||||
ETH_P_X25 = 0x805
|
ETH_P_X25 = 0x805
|
||||||
ETH_P_XDSA = 0xf8
|
ETH_P_XDSA = 0xf8
|
||||||
|
EXABYTE_ENABLE_NEST = 0xf0
|
||||||
|
EXT2_SUPER_MAGIC = 0xef53
|
||||||
|
EXT3_SUPER_MAGIC = 0xef53
|
||||||
|
EXT4_SUPER_MAGIC = 0xef53
|
||||||
EXTA = 0xe
|
EXTA = 0xe
|
||||||
EXTB = 0xf
|
EXTB = 0xf
|
||||||
EXTPROC = 0x10000
|
EXTPROC = 0x10000
|
||||||
|
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||||
FALLOC_FL_INSERT_RANGE = 0x20
|
FALLOC_FL_INSERT_RANGE = 0x20
|
||||||
FALLOC_FL_KEEP_SIZE = 0x1
|
FALLOC_FL_KEEP_SIZE = 0x1
|
||||||
|
@ -461,6 +491,7 @@ const (
|
||||||
FF1 = 0x8000
|
FF1 = 0x8000
|
||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x1000
|
FLUSHO = 0x1000
|
||||||
|
FP_XSTATE_MAGIC2 = 0x46505845
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
|
@ -481,6 +512,7 @@ const (
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x3
|
||||||
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
F_DUPFD_CLOEXEC = 0x406
|
F_DUPFD_CLOEXEC = 0x406
|
||||||
|
@ -542,6 +574,49 @@ const (
|
||||||
GENL_UNS_ADMIN_PERM = 0x10
|
GENL_UNS_ADMIN_PERM = 0x10
|
||||||
GRND_NONBLOCK = 0x1
|
GRND_NONBLOCK = 0x1
|
||||||
GRND_RANDOM = 0x2
|
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
|
HUPCL = 0x400
|
||||||
IBSHIFT = 0x10
|
IBSHIFT = 0x10
|
||||||
ICANON = 0x2
|
ICANON = 0x2
|
||||||
|
@ -792,12 +867,14 @@ const (
|
||||||
IP_UNICAST_IF = 0x32
|
IP_UNICAST_IF = 0x32
|
||||||
IP_XFRM_POLICY = 0x11
|
IP_XFRM_POLICY = 0x11
|
||||||
ISIG = 0x1
|
ISIG = 0x1
|
||||||
|
ISOFS_SUPER_MAGIC = 0x9660
|
||||||
ISTRIP = 0x20
|
ISTRIP = 0x20
|
||||||
IUCLC = 0x200
|
IUCLC = 0x200
|
||||||
IUTF8 = 0x4000
|
IUTF8 = 0x4000
|
||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
|
@ -894,9 +971,15 @@ const (
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
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_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
MSG_CONFIRM = 0x800
|
MSG_CONFIRM = 0x800
|
||||||
|
@ -956,7 +1039,9 @@ const (
|
||||||
MS_SYNCHRONOUS = 0x10
|
MS_SYNCHRONOUS = 0x10
|
||||||
MS_UNBINDABLE = 0x20000
|
MS_UNBINDABLE = 0x20000
|
||||||
MS_VERBOSE = 0x8000
|
MS_VERBOSE = 0x8000
|
||||||
|
MTD_INODE_FS_MAGIC = 0x11307854
|
||||||
NAME_MAX = 0xff
|
NAME_MAX = 0xff
|
||||||
|
NCP_SUPER_MAGIC = 0x564c
|
||||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||||
NETLINK_AUDIT = 0x9
|
NETLINK_AUDIT = 0x9
|
||||||
NETLINK_BROADCAST_ERROR = 0x4
|
NETLINK_BROADCAST_ERROR = 0x4
|
||||||
|
@ -991,6 +1076,37 @@ const (
|
||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
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
|
NL0 = 0x0
|
||||||
NL1 = 0x100
|
NL1 = 0x100
|
||||||
NLA_ALIGNTO = 0x4
|
NLA_ALIGNTO = 0x4
|
||||||
|
@ -1023,6 +1139,8 @@ const (
|
||||||
NLM_F_REQUEST = 0x1
|
NLM_F_REQUEST = 0x1
|
||||||
NLM_F_ROOT = 0x100
|
NLM_F_ROOT = 0x100
|
||||||
NOFLSH = 0x80
|
NOFLSH = 0x80
|
||||||
|
NSFS_MAGIC = 0x6e736673
|
||||||
|
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
OFILL = 0x40
|
OFILL = 0x40
|
||||||
|
@ -1030,7 +1148,9 @@ const (
|
||||||
ONLCR = 0x4
|
ONLCR = 0x4
|
||||||
ONLRET = 0x20
|
ONLRET = 0x20
|
||||||
ONOCR = 0x10
|
ONOCR = 0x10
|
||||||
|
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||||
OPOST = 0x1
|
OPOST = 0x1
|
||||||
|
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||||
O_ACCMODE = 0x3
|
O_ACCMODE = 0x3
|
||||||
O_APPEND = 0x400
|
O_APPEND = 0x400
|
||||||
O_ASYNC = 0x2000
|
O_ASYNC = 0x2000
|
||||||
|
@ -1115,16 +1235,20 @@ const (
|
||||||
PERF_EVENT_IOC_DISABLE = 0x2401
|
PERF_EVENT_IOC_DISABLE = 0x2401
|
||||||
PERF_EVENT_IOC_ENABLE = 0x2400
|
PERF_EVENT_IOC_ENABLE = 0x2400
|
||||||
PERF_EVENT_IOC_ID = 0x80042407
|
PERF_EVENT_IOC_ID = 0x80042407
|
||||||
|
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4004240b
|
||||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
|
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
|
||||||
PERF_EVENT_IOC_PERIOD = 0x40082404
|
PERF_EVENT_IOC_PERIOD = 0x40082404
|
||||||
|
PERF_EVENT_IOC_QUERY_BPF = 0xc004240a
|
||||||
PERF_EVENT_IOC_REFRESH = 0x2402
|
PERF_EVENT_IOC_REFRESH = 0x2402
|
||||||
PERF_EVENT_IOC_RESET = 0x2403
|
PERF_EVENT_IOC_RESET = 0x2403
|
||||||
PERF_EVENT_IOC_SET_BPF = 0x40042408
|
PERF_EVENT_IOC_SET_BPF = 0x40042408
|
||||||
PERF_EVENT_IOC_SET_FILTER = 0x40042406
|
PERF_EVENT_IOC_SET_FILTER = 0x40042406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||||
|
PIPEFS_MAGIC = 0x50495045
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
|
PROC_SUPER_MAGIC = 0x9fa0
|
||||||
PROT_EXEC = 0x4
|
PROT_EXEC = 0x4
|
||||||
PROT_GROWSDOWN = 0x1000000
|
PROT_GROWSDOWN = 0x1000000
|
||||||
PROT_GROWSUP = 0x2000000
|
PROT_GROWSUP = 0x2000000
|
||||||
|
@ -1167,6 +1291,7 @@ const (
|
||||||
PR_GET_PDEATHSIG = 0x2
|
PR_GET_PDEATHSIG = 0x2
|
||||||
PR_GET_SECCOMP = 0x15
|
PR_GET_SECCOMP = 0x15
|
||||||
PR_GET_SECUREBITS = 0x1b
|
PR_GET_SECUREBITS = 0x1b
|
||||||
|
PR_GET_SPECULATION_CTRL = 0x34
|
||||||
PR_GET_THP_DISABLE = 0x2a
|
PR_GET_THP_DISABLE = 0x2a
|
||||||
PR_GET_TID_ADDRESS = 0x28
|
PR_GET_TID_ADDRESS = 0x28
|
||||||
PR_GET_TIMERSLACK = 0x1e
|
PR_GET_TIMERSLACK = 0x1e
|
||||||
|
@ -1212,11 +1337,18 @@ const (
|
||||||
PR_SET_PTRACER_ANY = 0xffffffff
|
PR_SET_PTRACER_ANY = 0xffffffff
|
||||||
PR_SET_SECCOMP = 0x16
|
PR_SET_SECCOMP = 0x16
|
||||||
PR_SET_SECUREBITS = 0x1c
|
PR_SET_SECUREBITS = 0x1c
|
||||||
|
PR_SET_SPECULATION_CTRL = 0x35
|
||||||
PR_SET_THP_DISABLE = 0x29
|
PR_SET_THP_DISABLE = 0x29
|
||||||
PR_SET_TIMERSLACK = 0x1d
|
PR_SET_TIMERSLACK = 0x1d
|
||||||
PR_SET_TIMING = 0xe
|
PR_SET_TIMING = 0xe
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
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_GET_VL = 0x33
|
||||||
PR_SVE_SET_VL = 0x32
|
PR_SVE_SET_VL = 0x32
|
||||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||||
|
@ -1230,6 +1362,7 @@ const (
|
||||||
PR_TSC_SIGSEGV = 0x2
|
PR_TSC_SIGSEGV = 0x2
|
||||||
PR_UNALIGN_NOPRINT = 0x1
|
PR_UNALIGN_NOPRINT = 0x1
|
||||||
PR_UNALIGN_SIGBUS = 0x2
|
PR_UNALIGN_SIGBUS = 0x2
|
||||||
|
PSTOREFS_MAGIC = 0x6165676c
|
||||||
PTRACE_ATTACH = 0x10
|
PTRACE_ATTACH = 0x10
|
||||||
PTRACE_CONT = 0x7
|
PTRACE_CONT = 0x7
|
||||||
PTRACE_DETACH = 0x11
|
PTRACE_DETACH = 0x11
|
||||||
|
@ -1273,6 +1406,7 @@ const (
|
||||||
PTRACE_POKETEXT = 0x4
|
PTRACE_POKETEXT = 0x4
|
||||||
PTRACE_POKEUSR = 0x6
|
PTRACE_POKEUSR = 0x6
|
||||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||||
|
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||||
PTRACE_SEIZE = 0x4206
|
PTRACE_SEIZE = 0x4206
|
||||||
PTRACE_SETFPREGS = 0xf
|
PTRACE_SETFPREGS = 0xf
|
||||||
PTRACE_SETFPXREGS = 0x13
|
PTRACE_SETFPXREGS = 0x13
|
||||||
|
@ -1288,6 +1422,11 @@ const (
|
||||||
PTRACE_SYSEMU = 0x1f
|
PTRACE_SYSEMU = 0x1f
|
||||||
PTRACE_SYSEMU_SINGLESTEP = 0x20
|
PTRACE_SYSEMU_SINGLESTEP = 0x20
|
||||||
PTRACE_TRACEME = 0x0
|
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_AS = 0x9
|
||||||
RLIMIT_CORE = 0x4
|
RLIMIT_CORE = 0x4
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
|
@ -1337,6 +1476,33 @@ const (
|
||||||
RTCF_MASQ = 0x400000
|
RTCF_MASQ = 0x400000
|
||||||
RTCF_NAT = 0x800000
|
RTCF_NAT = 0x800000
|
||||||
RTCF_VALVE = 0x200000
|
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_ADDRCLASSMASK = 0xf8000000
|
||||||
RTF_ADDRCONF = 0x40000
|
RTF_ADDRCONF = 0x40000
|
||||||
RTF_ALLONLINK = 0x20000
|
RTF_ALLONLINK = 0x20000
|
||||||
|
@ -1473,6 +1639,8 @@ const (
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1557,6 +1725,23 @@ const (
|
||||||
SIOCSPGRP = 0x8902
|
SIOCSPGRP = 0x8902
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
SIOCWANDEV = 0x894a
|
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_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
|
@ -1667,6 +1852,8 @@ const (
|
||||||
SPLICE_F_MORE = 0x4
|
SPLICE_F_MORE = 0x4
|
||||||
SPLICE_F_MOVE = 0x1
|
SPLICE_F_MOVE = 0x1
|
||||||
SPLICE_F_NONBLOCK = 0x2
|
SPLICE_F_NONBLOCK = 0x2
|
||||||
|
SQUASHFS_MAGIC = 0x73717368
|
||||||
|
STACK_END_MAGIC = 0x57ac6e9d
|
||||||
STATX_ALL = 0xfff
|
STATX_ALL = 0xfff
|
||||||
STATX_ATIME = 0x20
|
STATX_ATIME = 0x20
|
||||||
STATX_ATTR_APPEND = 0x20
|
STATX_ATTR_APPEND = 0x20
|
||||||
|
@ -1688,6 +1875,7 @@ const (
|
||||||
STATX_TYPE = 0x1
|
STATX_TYPE = 0x1
|
||||||
STATX_UID = 0x8
|
STATX_UID = 0x8
|
||||||
STATX__RESERVED = 0x80000000
|
STATX__RESERVED = 0x80000000
|
||||||
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
S_IFBLK = 0x6000
|
S_IFBLK = 0x6000
|
||||||
|
@ -1869,7 +2057,27 @@ const (
|
||||||
TIOCSTI = 0x5412
|
TIOCSTI = 0x5412
|
||||||
TIOCSWINSZ = 0x5414
|
TIOCSWINSZ = 0x5414
|
||||||
TIOCVHANGUP = 0x5437
|
TIOCVHANGUP = 0x5437
|
||||||
|
TMPFS_MAGIC = 0x1021994
|
||||||
TOSTOP = 0x100
|
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
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x400854d5
|
TUNATTACHFILTER = 0x400854d5
|
||||||
TUNDETACHFILTER = 0x400854d6
|
TUNDETACHFILTER = 0x400854d6
|
||||||
|
@ -1881,6 +2089,7 @@ const (
|
||||||
TUNGETVNETHDRSZ = 0x800454d7
|
TUNGETVNETHDRSZ = 0x800454d7
|
||||||
TUNGETVNETLE = 0x800454dd
|
TUNGETVNETLE = 0x800454dd
|
||||||
TUNSETDEBUG = 0x400454c9
|
TUNSETDEBUG = 0x400454c9
|
||||||
|
TUNSETFILTEREBPF = 0x800454e1
|
||||||
TUNSETGROUP = 0x400454ce
|
TUNSETGROUP = 0x400454ce
|
||||||
TUNSETIFF = 0x400454ca
|
TUNSETIFF = 0x400454ca
|
||||||
TUNSETIFINDEX = 0x400454da
|
TUNSETIFINDEX = 0x400454da
|
||||||
|
@ -1891,13 +2100,17 @@ const (
|
||||||
TUNSETPERSIST = 0x400454cb
|
TUNSETPERSIST = 0x400454cb
|
||||||
TUNSETQUEUE = 0x400454d9
|
TUNSETQUEUE = 0x400454d9
|
||||||
TUNSETSNDBUF = 0x400454d4
|
TUNSETSNDBUF = 0x400454d4
|
||||||
|
TUNSETSTEERINGEBPF = 0x800454e0
|
||||||
TUNSETTXFILTER = 0x400454d1
|
TUNSETTXFILTER = 0x400454d1
|
||||||
TUNSETVNETBE = 0x400454de
|
TUNSETVNETBE = 0x400454de
|
||||||
TUNSETVNETHDRSZ = 0x400454d8
|
TUNSETVNETHDRSZ = 0x400454d8
|
||||||
TUNSETVNETLE = 0x400454dc
|
TUNSETVNETLE = 0x400454dc
|
||||||
|
UDF_SUPER_MAGIC = 0x15013346
|
||||||
UMOUNT_NOFOLLOW = 0x8
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
|
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||||
UTIME_NOW = 0x3fffffff
|
UTIME_NOW = 0x3fffffff
|
||||||
UTIME_OMIT = 0x3ffffffe
|
UTIME_OMIT = 0x3ffffffe
|
||||||
|
V9FS_MAGIC = 0x1021997
|
||||||
VDISCARD = 0xd
|
VDISCARD = 0xd
|
||||||
VEOF = 0x4
|
VEOF = 0x4
|
||||||
VEOL = 0xb
|
VEOL = 0xb
|
||||||
|
@ -1939,16 +2152,99 @@ const (
|
||||||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||||
WDIOC_SETTIMEOUT = 0xc0045706
|
WDIOC_SETTIMEOUT = 0xc0045706
|
||||||
WEXITED = 0x4
|
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
|
WNOHANG = 0x1
|
||||||
WNOTHREAD = 0x20000000
|
WNOTHREAD = 0x20000000
|
||||||
WNOWAIT = 0x1000000
|
WNOWAIT = 0x1000000
|
||||||
WORDSIZE = 0x20
|
WORDSIZE = 0x20
|
||||||
WSTOPPED = 0x2
|
WSTOPPED = 0x2
|
||||||
WUNTRACED = 0x2
|
WUNTRACED = 0x2
|
||||||
|
X86_FXSR_MAGIC = 0x0
|
||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
||||||
// Errors
|
// Errors
|
||||||
|
@ -2128,171 +2424,179 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// Error table
|
// Error table
|
||||||
var errors = [...]string{
|
var errorList = [...]struct {
|
||||||
1: "operation not permitted",
|
num syscall.Errno
|
||||||
2: "no such file or directory",
|
name string
|
||||||
3: "no such process",
|
desc string
|
||||||
4: "interrupted system call",
|
}{
|
||||||
5: "input/output error",
|
{1, "EPERM", "operation not permitted"},
|
||||||
6: "no such device or address",
|
{2, "ENOENT", "no such file or directory"},
|
||||||
7: "argument list too long",
|
{3, "ESRCH", "no such process"},
|
||||||
8: "exec format error",
|
{4, "EINTR", "interrupted system call"},
|
||||||
9: "bad file descriptor",
|
{5, "EIO", "input/output error"},
|
||||||
10: "no child processes",
|
{6, "ENXIO", "no such device or address"},
|
||||||
11: "resource temporarily unavailable",
|
{7, "E2BIG", "argument list too long"},
|
||||||
12: "cannot allocate memory",
|
{8, "ENOEXEC", "exec format error"},
|
||||||
13: "permission denied",
|
{9, "EBADF", "bad file descriptor"},
|
||||||
14: "bad address",
|
{10, "ECHILD", "no child processes"},
|
||||||
15: "block device required",
|
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||||
16: "device or resource busy",
|
{12, "ENOMEM", "cannot allocate memory"},
|
||||||
17: "file exists",
|
{13, "EACCES", "permission denied"},
|
||||||
18: "invalid cross-device link",
|
{14, "EFAULT", "bad address"},
|
||||||
19: "no such device",
|
{15, "ENOTBLK", "block device required"},
|
||||||
20: "not a directory",
|
{16, "EBUSY", "device or resource busy"},
|
||||||
21: "is a directory",
|
{17, "EEXIST", "file exists"},
|
||||||
22: "invalid argument",
|
{18, "EXDEV", "invalid cross-device link"},
|
||||||
23: "too many open files in system",
|
{19, "ENODEV", "no such device"},
|
||||||
24: "too many open files",
|
{20, "ENOTDIR", "not a directory"},
|
||||||
25: "inappropriate ioctl for device",
|
{21, "EISDIR", "is a directory"},
|
||||||
26: "text file busy",
|
{22, "EINVAL", "invalid argument"},
|
||||||
27: "file too large",
|
{23, "ENFILE", "too many open files in system"},
|
||||||
28: "no space left on device",
|
{24, "EMFILE", "too many open files"},
|
||||||
29: "illegal seek",
|
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||||
30: "read-only file system",
|
{26, "ETXTBSY", "text file busy"},
|
||||||
31: "too many links",
|
{27, "EFBIG", "file too large"},
|
||||||
32: "broken pipe",
|
{28, "ENOSPC", "no space left on device"},
|
||||||
33: "numerical argument out of domain",
|
{29, "ESPIPE", "illegal seek"},
|
||||||
34: "numerical result out of range",
|
{30, "EROFS", "read-only file system"},
|
||||||
35: "resource deadlock avoided",
|
{31, "EMLINK", "too many links"},
|
||||||
36: "file name too long",
|
{32, "EPIPE", "broken pipe"},
|
||||||
37: "no locks available",
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
38: "function not implemented",
|
{34, "ERANGE", "numerical result out of range"},
|
||||||
39: "directory not empty",
|
{35, "EDEADLK", "resource deadlock avoided"},
|
||||||
40: "too many levels of symbolic links",
|
{36, "ENAMETOOLONG", "file name too long"},
|
||||||
42: "no message of desired type",
|
{37, "ENOLCK", "no locks available"},
|
||||||
43: "identifier removed",
|
{38, "ENOSYS", "function not implemented"},
|
||||||
44: "channel number out of range",
|
{39, "ENOTEMPTY", "directory not empty"},
|
||||||
45: "level 2 not synchronized",
|
{40, "ELOOP", "too many levels of symbolic links"},
|
||||||
46: "level 3 halted",
|
{42, "ENOMSG", "no message of desired type"},
|
||||||
47: "level 3 reset",
|
{43, "EIDRM", "identifier removed"},
|
||||||
48: "link number out of range",
|
{44, "ECHRNG", "channel number out of range"},
|
||||||
49: "protocol driver not attached",
|
{45, "EL2NSYNC", "level 2 not synchronized"},
|
||||||
50: "no CSI structure available",
|
{46, "EL3HLT", "level 3 halted"},
|
||||||
51: "level 2 halted",
|
{47, "EL3RST", "level 3 reset"},
|
||||||
52: "invalid exchange",
|
{48, "ELNRNG", "link number out of range"},
|
||||||
53: "invalid request descriptor",
|
{49, "EUNATCH", "protocol driver not attached"},
|
||||||
54: "exchange full",
|
{50, "ENOCSI", "no CSI structure available"},
|
||||||
55: "no anode",
|
{51, "EL2HLT", "level 2 halted"},
|
||||||
56: "invalid request code",
|
{52, "EBADE", "invalid exchange"},
|
||||||
57: "invalid slot",
|
{53, "EBADR", "invalid request descriptor"},
|
||||||
59: "bad font file format",
|
{54, "EXFULL", "exchange full"},
|
||||||
60: "device not a stream",
|
{55, "ENOANO", "no anode"},
|
||||||
61: "no data available",
|
{56, "EBADRQC", "invalid request code"},
|
||||||
62: "timer expired",
|
{57, "EBADSLT", "invalid slot"},
|
||||||
63: "out of streams resources",
|
{59, "EBFONT", "bad font file format"},
|
||||||
64: "machine is not on the network",
|
{60, "ENOSTR", "device not a stream"},
|
||||||
65: "package not installed",
|
{61, "ENODATA", "no data available"},
|
||||||
66: "object is remote",
|
{62, "ETIME", "timer expired"},
|
||||||
67: "link has been severed",
|
{63, "ENOSR", "out of streams resources"},
|
||||||
68: "advertise error",
|
{64, "ENONET", "machine is not on the network"},
|
||||||
69: "srmount error",
|
{65, "ENOPKG", "package not installed"},
|
||||||
70: "communication error on send",
|
{66, "EREMOTE", "object is remote"},
|
||||||
71: "protocol error",
|
{67, "ENOLINK", "link has been severed"},
|
||||||
72: "multihop attempted",
|
{68, "EADV", "advertise error"},
|
||||||
73: "RFS specific error",
|
{69, "ESRMNT", "srmount error"},
|
||||||
74: "bad message",
|
{70, "ECOMM", "communication error on send"},
|
||||||
75: "value too large for defined data type",
|
{71, "EPROTO", "protocol error"},
|
||||||
76: "name not unique on network",
|
{72, "EMULTIHOP", "multihop attempted"},
|
||||||
77: "file descriptor in bad state",
|
{73, "EDOTDOT", "RFS specific error"},
|
||||||
78: "remote address changed",
|
{74, "EBADMSG", "bad message"},
|
||||||
79: "can not access a needed shared library",
|
{75, "EOVERFLOW", "value too large for defined data type"},
|
||||||
80: "accessing a corrupted shared library",
|
{76, "ENOTUNIQ", "name not unique on network"},
|
||||||
81: ".lib section in a.out corrupted",
|
{77, "EBADFD", "file descriptor in bad state"},
|
||||||
82: "attempting to link in too many shared libraries",
|
{78, "EREMCHG", "remote address changed"},
|
||||||
83: "cannot exec a shared library directly",
|
{79, "ELIBACC", "can not access a needed shared library"},
|
||||||
84: "invalid or incomplete multibyte or wide character",
|
{80, "ELIBBAD", "accessing a corrupted shared library"},
|
||||||
85: "interrupted system call should be restarted",
|
{81, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||||
86: "streams pipe error",
|
{82, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||||
87: "too many users",
|
{83, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||||
88: "socket operation on non-socket",
|
{84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||||
89: "destination address required",
|
{85, "ERESTART", "interrupted system call should be restarted"},
|
||||||
90: "message too long",
|
{86, "ESTRPIPE", "streams pipe error"},
|
||||||
91: "protocol wrong type for socket",
|
{87, "EUSERS", "too many users"},
|
||||||
92: "protocol not available",
|
{88, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
93: "protocol not supported",
|
{89, "EDESTADDRREQ", "destination address required"},
|
||||||
94: "socket type not supported",
|
{90, "EMSGSIZE", "message too long"},
|
||||||
95: "operation not supported",
|
{91, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||||
96: "protocol family not supported",
|
{92, "ENOPROTOOPT", "protocol not available"},
|
||||||
97: "address family not supported by protocol",
|
{93, "EPROTONOSUPPORT", "protocol not supported"},
|
||||||
98: "address already in use",
|
{94, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||||
99: "cannot assign requested address",
|
{95, "ENOTSUP", "operation not supported"},
|
||||||
100: "network is down",
|
{96, "EPFNOSUPPORT", "protocol family not supported"},
|
||||||
101: "network is unreachable",
|
{97, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||||
102: "network dropped connection on reset",
|
{98, "EADDRINUSE", "address already in use"},
|
||||||
103: "software caused connection abort",
|
{99, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||||
104: "connection reset by peer",
|
{100, "ENETDOWN", "network is down"},
|
||||||
105: "no buffer space available",
|
{101, "ENETUNREACH", "network is unreachable"},
|
||||||
106: "transport endpoint is already connected",
|
{102, "ENETRESET", "network dropped connection on reset"},
|
||||||
107: "transport endpoint is not connected",
|
{103, "ECONNABORTED", "software caused connection abort"},
|
||||||
108: "cannot send after transport endpoint shutdown",
|
{104, "ECONNRESET", "connection reset by peer"},
|
||||||
109: "too many references: cannot splice",
|
{105, "ENOBUFS", "no buffer space available"},
|
||||||
110: "connection timed out",
|
{106, "EISCONN", "transport endpoint is already connected"},
|
||||||
111: "connection refused",
|
{107, "ENOTCONN", "transport endpoint is not connected"},
|
||||||
112: "host is down",
|
{108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||||
113: "no route to host",
|
{109, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||||
114: "operation already in progress",
|
{110, "ETIMEDOUT", "connection timed out"},
|
||||||
115: "operation now in progress",
|
{111, "ECONNREFUSED", "connection refused"},
|
||||||
116: "stale file handle",
|
{112, "EHOSTDOWN", "host is down"},
|
||||||
117: "structure needs cleaning",
|
{113, "EHOSTUNREACH", "no route to host"},
|
||||||
118: "not a XENIX named type file",
|
{114, "EALREADY", "operation already in progress"},
|
||||||
119: "no XENIX semaphores available",
|
{115, "EINPROGRESS", "operation now in progress"},
|
||||||
120: "is a named type file",
|
{116, "ESTALE", "stale file handle"},
|
||||||
121: "remote I/O error",
|
{117, "EUCLEAN", "structure needs cleaning"},
|
||||||
122: "disk quota exceeded",
|
{118, "ENOTNAM", "not a XENIX named type file"},
|
||||||
123: "no medium found",
|
{119, "ENAVAIL", "no XENIX semaphores available"},
|
||||||
124: "wrong medium type",
|
{120, "EISNAM", "is a named type file"},
|
||||||
125: "operation canceled",
|
{121, "EREMOTEIO", "remote I/O error"},
|
||||||
126: "required key not available",
|
{122, "EDQUOT", "disk quota exceeded"},
|
||||||
127: "key has expired",
|
{123, "ENOMEDIUM", "no medium found"},
|
||||||
128: "key has been revoked",
|
{124, "EMEDIUMTYPE", "wrong medium type"},
|
||||||
129: "key was rejected by service",
|
{125, "ECANCELED", "operation canceled"},
|
||||||
130: "owner died",
|
{126, "ENOKEY", "required key not available"},
|
||||||
131: "state not recoverable",
|
{127, "EKEYEXPIRED", "key has expired"},
|
||||||
132: "operation not possible due to RF-kill",
|
{128, "EKEYREVOKED", "key has been revoked"},
|
||||||
133: "memory page has hardware error",
|
{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
|
// Signal table
|
||||||
var signals = [...]string{
|
var signalList = [...]struct {
|
||||||
1: "hangup",
|
num syscall.Signal
|
||||||
2: "interrupt",
|
name string
|
||||||
3: "quit",
|
desc string
|
||||||
4: "illegal instruction",
|
}{
|
||||||
5: "trace/breakpoint trap",
|
{1, "SIGHUP", "hangup"},
|
||||||
6: "aborted",
|
{2, "SIGINT", "interrupt"},
|
||||||
7: "bus error",
|
{3, "SIGQUIT", "quit"},
|
||||||
8: "floating point exception",
|
{4, "SIGILL", "illegal instruction"},
|
||||||
9: "killed",
|
{5, "SIGTRAP", "trace/breakpoint trap"},
|
||||||
10: "user defined signal 1",
|
{6, "SIGABRT", "aborted"},
|
||||||
11: "segmentation fault",
|
{7, "SIGBUS", "bus error"},
|
||||||
12: "user defined signal 2",
|
{8, "SIGFPE", "floating point exception"},
|
||||||
13: "broken pipe",
|
{9, "SIGKILL", "killed"},
|
||||||
14: "alarm clock",
|
{10, "SIGUSR1", "user defined signal 1"},
|
||||||
15: "terminated",
|
{11, "SIGSEGV", "segmentation fault"},
|
||||||
16: "stack fault",
|
{12, "SIGUSR2", "user defined signal 2"},
|
||||||
17: "child exited",
|
{13, "SIGPIPE", "broken pipe"},
|
||||||
18: "continued",
|
{14, "SIGALRM", "alarm clock"},
|
||||||
19: "stopped (signal)",
|
{15, "SIGTERM", "terminated"},
|
||||||
20: "stopped",
|
{16, "SIGSTKFLT", "stack fault"},
|
||||||
21: "stopped (tty input)",
|
{17, "SIGCHLD", "child exited"},
|
||||||
22: "stopped (tty output)",
|
{18, "SIGCONT", "continued"},
|
||||||
23: "urgent I/O condition",
|
{19, "SIGSTOP", "stopped (signal)"},
|
||||||
24: "CPU time limit exceeded",
|
{20, "SIGTSTP", "stopped"},
|
||||||
25: "file size limit exceeded",
|
{21, "SIGTTIN", "stopped (tty input)"},
|
||||||
26: "virtual timer expired",
|
{22, "SIGTTOU", "stopped (tty output)"},
|
||||||
27: "profiling timer expired",
|
{23, "SIGURG", "urgent I/O condition"},
|
||||||
28: "window changed",
|
{24, "SIGXCPU", "CPU time limit exceeded"},
|
||||||
29: "I/O possible",
|
{25, "SIGXFSZ", "file size limit exceeded"},
|
||||||
30: "power failure",
|
{26, "SIGVTALRM", "virtual timer expired"},
|
||||||
31: "bad system call",
|
{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
|
// +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
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/include -m64 _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
@ -11,6 +11,11 @@ package unix
|
||||||
import "syscall"
|
import "syscall"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
AAFS_MAGIC = 0x5a3c69f0
|
||||||
|
ADFS_SUPER_MAGIC = 0xadf5
|
||||||
|
AFFS_SUPER_MAGIC = 0xadff
|
||||||
|
AFS_FS_MAGIC = 0x6b414653
|
||||||
|
AFS_SUPER_MAGIC = 0x5346414f
|
||||||
AF_ALG = 0x26
|
AF_ALG = 0x26
|
||||||
AF_APPLETALK = 0x5
|
AF_APPLETALK = 0x5
|
||||||
AF_ASH = 0x12
|
AF_ASH = 0x12
|
||||||
|
@ -66,6 +71,7 @@ const (
|
||||||
ALG_SET_IV = 0x2
|
ALG_SET_IV = 0x2
|
||||||
ALG_SET_KEY = 0x1
|
ALG_SET_KEY = 0x1
|
||||||
ALG_SET_OP = 0x3
|
ALG_SET_OP = 0x3
|
||||||
|
ANON_INODE_FS_MAGIC = 0x9041934
|
||||||
ARPHRD_6LOWPAN = 0x339
|
ARPHRD_6LOWPAN = 0x339
|
||||||
ARPHRD_ADAPT = 0x108
|
ARPHRD_ADAPT = 0x108
|
||||||
ARPHRD_APPLETLK = 0x8
|
ARPHRD_APPLETLK = 0x8
|
||||||
|
@ -133,6 +139,7 @@ const (
|
||||||
ARPHRD_VOID = 0xffff
|
ARPHRD_VOID = 0xffff
|
||||||
ARPHRD_VSOCKMON = 0x33a
|
ARPHRD_VSOCKMON = 0x33a
|
||||||
ARPHRD_X25 = 0x10f
|
ARPHRD_X25 = 0x10f
|
||||||
|
AUTOFS_SUPER_MAGIC = 0x187
|
||||||
B0 = 0x0
|
B0 = 0x0
|
||||||
B1000000 = 0x1008
|
B1000000 = 0x1008
|
||||||
B110 = 0x3
|
B110 = 0x3
|
||||||
|
@ -164,6 +171,9 @@ const (
|
||||||
B75 = 0x2
|
B75 = 0x2
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x80081270
|
BLKBSZGET = 0x80081270
|
||||||
BLKBSZSET = 0x40081271
|
BLKBSZSET = 0x40081271
|
||||||
BLKFLSBUF = 0x1261
|
BLKFLSBUF = 0x1261
|
||||||
|
@ -188,6 +198,7 @@ const (
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
|
@ -229,6 +240,8 @@ const (
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||||
|
BTRFS_TEST_MAGIC = 0x73727279
|
||||||
CAN_BCM = 0x2
|
CAN_BCM = 0x2
|
||||||
CAN_EFF_FLAG = 0x80000000
|
CAN_EFF_FLAG = 0x80000000
|
||||||
CAN_EFF_ID_BITS = 0x1d
|
CAN_EFF_ID_BITS = 0x1d
|
||||||
|
@ -252,6 +265,8 @@ const (
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
|
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||||
|
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||||
CIBAUD = 0x100f0000
|
CIBAUD = 0x100f0000
|
||||||
CLOCAL = 0x800
|
CLOCAL = 0x800
|
||||||
CLOCK_BOOTTIME = 0x7
|
CLOCK_BOOTTIME = 0x7
|
||||||
|
@ -294,10 +309,12 @@ const (
|
||||||
CLONE_VFORK = 0x4000
|
CLONE_VFORK = 0x4000
|
||||||
CLONE_VM = 0x100
|
CLONE_VM = 0x100
|
||||||
CMSPAR = 0x40000000
|
CMSPAR = 0x40000000
|
||||||
|
CODA_SUPER_MAGIC = 0x73757245
|
||||||
CR0 = 0x0
|
CR0 = 0x0
|
||||||
CR1 = 0x200
|
CR1 = 0x200
|
||||||
CR2 = 0x400
|
CR2 = 0x400
|
||||||
CR3 = 0x600
|
CR3 = 0x600
|
||||||
|
CRAMFS_MAGIC = 0x28cd3d45
|
||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
@ -312,6 +329,9 @@ const (
|
||||||
CSTOP = 0x13
|
CSTOP = 0x13
|
||||||
CSTOPB = 0x40
|
CSTOPB = 0x40
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
|
DAXFS_MAGIC = 0x64646178
|
||||||
|
DEBUGFS_MAGIC = 0x64626720
|
||||||
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -328,9 +348,12 @@ const (
|
||||||
ECHOKE = 0x800
|
ECHOKE = 0x800
|
||||||
ECHONL = 0x40
|
ECHONL = 0x40
|
||||||
ECHOPRT = 0x400
|
ECHOPRT = 0x400
|
||||||
|
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||||
EFD_CLOEXEC = 0x80000
|
EFD_CLOEXEC = 0x80000
|
||||||
EFD_NONBLOCK = 0x800
|
EFD_NONBLOCK = 0x800
|
||||||
EFD_SEMAPHORE = 0x1
|
EFD_SEMAPHORE = 0x1
|
||||||
|
EFIVARFS_MAGIC = 0xde5e81e4
|
||||||
|
EFS_SUPER_MAGIC = 0x414a53
|
||||||
ENCODING_DEFAULT = 0x0
|
ENCODING_DEFAULT = 0x0
|
||||||
ENCODING_FM_MARK = 0x3
|
ENCODING_FM_MARK = 0x3
|
||||||
ENCODING_FM_SPACE = 0x4
|
ENCODING_FM_SPACE = 0x4
|
||||||
|
@ -392,6 +415,7 @@ const (
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
|
ETH_P_ERSPAN2 = 0x22eb
|
||||||
ETH_P_FCOE = 0x8906
|
ETH_P_FCOE = 0x8906
|
||||||
ETH_P_FIP = 0x8914
|
ETH_P_FIP = 0x8914
|
||||||
ETH_P_HDLC = 0x19
|
ETH_P_HDLC = 0x19
|
||||||
|
@ -425,6 +449,7 @@ const (
|
||||||
ETH_P_PPP_DISC = 0x8863
|
ETH_P_PPP_DISC = 0x8863
|
||||||
ETH_P_PPP_MP = 0x8
|
ETH_P_PPP_MP = 0x8
|
||||||
ETH_P_PPP_SES = 0x8864
|
ETH_P_PPP_SES = 0x8864
|
||||||
|
ETH_P_PREAUTH = 0x88c7
|
||||||
ETH_P_PRP = 0x88fb
|
ETH_P_PRP = 0x88fb
|
||||||
ETH_P_PUP = 0x200
|
ETH_P_PUP = 0x200
|
||||||
ETH_P_PUPAT = 0x201
|
ETH_P_PUPAT = 0x201
|
||||||
|
@ -445,9 +470,14 @@ const (
|
||||||
ETH_P_WCCP = 0x883e
|
ETH_P_WCCP = 0x883e
|
||||||
ETH_P_X25 = 0x805
|
ETH_P_X25 = 0x805
|
||||||
ETH_P_XDSA = 0xf8
|
ETH_P_XDSA = 0xf8
|
||||||
|
EXABYTE_ENABLE_NEST = 0xf0
|
||||||
|
EXT2_SUPER_MAGIC = 0xef53
|
||||||
|
EXT3_SUPER_MAGIC = 0xef53
|
||||||
|
EXT4_SUPER_MAGIC = 0xef53
|
||||||
EXTA = 0xe
|
EXTA = 0xe
|
||||||
EXTB = 0xf
|
EXTB = 0xf
|
||||||
EXTPROC = 0x10000
|
EXTPROC = 0x10000
|
||||||
|
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||||
FALLOC_FL_INSERT_RANGE = 0x20
|
FALLOC_FL_INSERT_RANGE = 0x20
|
||||||
FALLOC_FL_KEEP_SIZE = 0x1
|
FALLOC_FL_KEEP_SIZE = 0x1
|
||||||
|
@ -461,6 +491,7 @@ const (
|
||||||
FF1 = 0x8000
|
FF1 = 0x8000
|
||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x1000
|
FLUSHO = 0x1000
|
||||||
|
FP_XSTATE_MAGIC2 = 0x46505845
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
|
@ -481,6 +512,7 @@ const (
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x3
|
||||||
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
F_DUPFD_CLOEXEC = 0x406
|
F_DUPFD_CLOEXEC = 0x406
|
||||||
|
@ -542,6 +574,49 @@ const (
|
||||||
GENL_UNS_ADMIN_PERM = 0x10
|
GENL_UNS_ADMIN_PERM = 0x10
|
||||||
GRND_NONBLOCK = 0x1
|
GRND_NONBLOCK = 0x1
|
||||||
GRND_RANDOM = 0x2
|
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
|
HUPCL = 0x400
|
||||||
IBSHIFT = 0x10
|
IBSHIFT = 0x10
|
||||||
ICANON = 0x2
|
ICANON = 0x2
|
||||||
|
@ -792,12 +867,14 @@ const (
|
||||||
IP_UNICAST_IF = 0x32
|
IP_UNICAST_IF = 0x32
|
||||||
IP_XFRM_POLICY = 0x11
|
IP_XFRM_POLICY = 0x11
|
||||||
ISIG = 0x1
|
ISIG = 0x1
|
||||||
|
ISOFS_SUPER_MAGIC = 0x9660
|
||||||
ISTRIP = 0x20
|
ISTRIP = 0x20
|
||||||
IUCLC = 0x200
|
IUCLC = 0x200
|
||||||
IUTF8 = 0x4000
|
IUTF8 = 0x4000
|
||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
|
@ -894,9 +971,15 @@ const (
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
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_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
MSG_CONFIRM = 0x800
|
MSG_CONFIRM = 0x800
|
||||||
|
@ -956,7 +1039,9 @@ const (
|
||||||
MS_SYNCHRONOUS = 0x10
|
MS_SYNCHRONOUS = 0x10
|
||||||
MS_UNBINDABLE = 0x20000
|
MS_UNBINDABLE = 0x20000
|
||||||
MS_VERBOSE = 0x8000
|
MS_VERBOSE = 0x8000
|
||||||
|
MTD_INODE_FS_MAGIC = 0x11307854
|
||||||
NAME_MAX = 0xff
|
NAME_MAX = 0xff
|
||||||
|
NCP_SUPER_MAGIC = 0x564c
|
||||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||||
NETLINK_AUDIT = 0x9
|
NETLINK_AUDIT = 0x9
|
||||||
NETLINK_BROADCAST_ERROR = 0x4
|
NETLINK_BROADCAST_ERROR = 0x4
|
||||||
|
@ -991,6 +1076,37 @@ const (
|
||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
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
|
NL0 = 0x0
|
||||||
NL1 = 0x100
|
NL1 = 0x100
|
||||||
NLA_ALIGNTO = 0x4
|
NLA_ALIGNTO = 0x4
|
||||||
|
@ -1023,6 +1139,8 @@ const (
|
||||||
NLM_F_REQUEST = 0x1
|
NLM_F_REQUEST = 0x1
|
||||||
NLM_F_ROOT = 0x100
|
NLM_F_ROOT = 0x100
|
||||||
NOFLSH = 0x80
|
NOFLSH = 0x80
|
||||||
|
NSFS_MAGIC = 0x6e736673
|
||||||
|
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
OFILL = 0x40
|
OFILL = 0x40
|
||||||
|
@ -1030,7 +1148,9 @@ const (
|
||||||
ONLCR = 0x4
|
ONLCR = 0x4
|
||||||
ONLRET = 0x20
|
ONLRET = 0x20
|
||||||
ONOCR = 0x10
|
ONOCR = 0x10
|
||||||
|
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||||
OPOST = 0x1
|
OPOST = 0x1
|
||||||
|
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||||
O_ACCMODE = 0x3
|
O_ACCMODE = 0x3
|
||||||
O_APPEND = 0x400
|
O_APPEND = 0x400
|
||||||
O_ASYNC = 0x2000
|
O_ASYNC = 0x2000
|
||||||
|
@ -1115,16 +1235,20 @@ const (
|
||||||
PERF_EVENT_IOC_DISABLE = 0x2401
|
PERF_EVENT_IOC_DISABLE = 0x2401
|
||||||
PERF_EVENT_IOC_ENABLE = 0x2400
|
PERF_EVENT_IOC_ENABLE = 0x2400
|
||||||
PERF_EVENT_IOC_ID = 0x80082407
|
PERF_EVENT_IOC_ID = 0x80082407
|
||||||
|
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b
|
||||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
|
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
|
||||||
PERF_EVENT_IOC_PERIOD = 0x40082404
|
PERF_EVENT_IOC_PERIOD = 0x40082404
|
||||||
|
PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
|
||||||
PERF_EVENT_IOC_REFRESH = 0x2402
|
PERF_EVENT_IOC_REFRESH = 0x2402
|
||||||
PERF_EVENT_IOC_RESET = 0x2403
|
PERF_EVENT_IOC_RESET = 0x2403
|
||||||
PERF_EVENT_IOC_SET_BPF = 0x40042408
|
PERF_EVENT_IOC_SET_BPF = 0x40042408
|
||||||
PERF_EVENT_IOC_SET_FILTER = 0x40082406
|
PERF_EVENT_IOC_SET_FILTER = 0x40082406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||||
|
PIPEFS_MAGIC = 0x50495045
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
|
PROC_SUPER_MAGIC = 0x9fa0
|
||||||
PROT_EXEC = 0x4
|
PROT_EXEC = 0x4
|
||||||
PROT_GROWSDOWN = 0x1000000
|
PROT_GROWSDOWN = 0x1000000
|
||||||
PROT_GROWSUP = 0x2000000
|
PROT_GROWSUP = 0x2000000
|
||||||
|
@ -1167,6 +1291,7 @@ const (
|
||||||
PR_GET_PDEATHSIG = 0x2
|
PR_GET_PDEATHSIG = 0x2
|
||||||
PR_GET_SECCOMP = 0x15
|
PR_GET_SECCOMP = 0x15
|
||||||
PR_GET_SECUREBITS = 0x1b
|
PR_GET_SECUREBITS = 0x1b
|
||||||
|
PR_GET_SPECULATION_CTRL = 0x34
|
||||||
PR_GET_THP_DISABLE = 0x2a
|
PR_GET_THP_DISABLE = 0x2a
|
||||||
PR_GET_TID_ADDRESS = 0x28
|
PR_GET_TID_ADDRESS = 0x28
|
||||||
PR_GET_TIMERSLACK = 0x1e
|
PR_GET_TIMERSLACK = 0x1e
|
||||||
|
@ -1212,11 +1337,18 @@ const (
|
||||||
PR_SET_PTRACER_ANY = 0xffffffffffffffff
|
PR_SET_PTRACER_ANY = 0xffffffffffffffff
|
||||||
PR_SET_SECCOMP = 0x16
|
PR_SET_SECCOMP = 0x16
|
||||||
PR_SET_SECUREBITS = 0x1c
|
PR_SET_SECUREBITS = 0x1c
|
||||||
|
PR_SET_SPECULATION_CTRL = 0x35
|
||||||
PR_SET_THP_DISABLE = 0x29
|
PR_SET_THP_DISABLE = 0x29
|
||||||
PR_SET_TIMERSLACK = 0x1d
|
PR_SET_TIMERSLACK = 0x1d
|
||||||
PR_SET_TIMING = 0xe
|
PR_SET_TIMING = 0xe
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
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_GET_VL = 0x33
|
||||||
PR_SVE_SET_VL = 0x32
|
PR_SVE_SET_VL = 0x32
|
||||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||||
|
@ -1230,6 +1362,7 @@ const (
|
||||||
PR_TSC_SIGSEGV = 0x2
|
PR_TSC_SIGSEGV = 0x2
|
||||||
PR_UNALIGN_NOPRINT = 0x1
|
PR_UNALIGN_NOPRINT = 0x1
|
||||||
PR_UNALIGN_SIGBUS = 0x2
|
PR_UNALIGN_SIGBUS = 0x2
|
||||||
|
PSTOREFS_MAGIC = 0x6165676c
|
||||||
PTRACE_ARCH_PRCTL = 0x1e
|
PTRACE_ARCH_PRCTL = 0x1e
|
||||||
PTRACE_ATTACH = 0x10
|
PTRACE_ATTACH = 0x10
|
||||||
PTRACE_CONT = 0x7
|
PTRACE_CONT = 0x7
|
||||||
|
@ -1274,6 +1407,7 @@ const (
|
||||||
PTRACE_POKETEXT = 0x4
|
PTRACE_POKETEXT = 0x4
|
||||||
PTRACE_POKEUSR = 0x6
|
PTRACE_POKEUSR = 0x6
|
||||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||||
|
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||||
PTRACE_SEIZE = 0x4206
|
PTRACE_SEIZE = 0x4206
|
||||||
PTRACE_SETFPREGS = 0xf
|
PTRACE_SETFPREGS = 0xf
|
||||||
PTRACE_SETFPXREGS = 0x13
|
PTRACE_SETFPXREGS = 0x13
|
||||||
|
@ -1289,6 +1423,11 @@ const (
|
||||||
PTRACE_SYSEMU = 0x1f
|
PTRACE_SYSEMU = 0x1f
|
||||||
PTRACE_SYSEMU_SINGLESTEP = 0x20
|
PTRACE_SYSEMU_SINGLESTEP = 0x20
|
||||||
PTRACE_TRACEME = 0x0
|
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_AS = 0x9
|
||||||
RLIMIT_CORE = 0x4
|
RLIMIT_CORE = 0x4
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
|
@ -1338,6 +1477,33 @@ const (
|
||||||
RTCF_MASQ = 0x400000
|
RTCF_MASQ = 0x400000
|
||||||
RTCF_NAT = 0x800000
|
RTCF_NAT = 0x800000
|
||||||
RTCF_VALVE = 0x200000
|
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_ADDRCLASSMASK = 0xf8000000
|
||||||
RTF_ADDRCONF = 0x40000
|
RTF_ADDRCONF = 0x40000
|
||||||
RTF_ALLONLINK = 0x20000
|
RTF_ALLONLINK = 0x20000
|
||||||
|
@ -1474,6 +1640,8 @@ const (
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1558,6 +1726,23 @@ const (
|
||||||
SIOCSPGRP = 0x8902
|
SIOCSPGRP = 0x8902
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
SIOCWANDEV = 0x894a
|
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_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
|
@ -1668,6 +1853,8 @@ const (
|
||||||
SPLICE_F_MORE = 0x4
|
SPLICE_F_MORE = 0x4
|
||||||
SPLICE_F_MOVE = 0x1
|
SPLICE_F_MOVE = 0x1
|
||||||
SPLICE_F_NONBLOCK = 0x2
|
SPLICE_F_NONBLOCK = 0x2
|
||||||
|
SQUASHFS_MAGIC = 0x73717368
|
||||||
|
STACK_END_MAGIC = 0x57ac6e9d
|
||||||
STATX_ALL = 0xfff
|
STATX_ALL = 0xfff
|
||||||
STATX_ATIME = 0x20
|
STATX_ATIME = 0x20
|
||||||
STATX_ATTR_APPEND = 0x20
|
STATX_ATTR_APPEND = 0x20
|
||||||
|
@ -1689,6 +1876,7 @@ const (
|
||||||
STATX_TYPE = 0x1
|
STATX_TYPE = 0x1
|
||||||
STATX_UID = 0x8
|
STATX_UID = 0x8
|
||||||
STATX__RESERVED = 0x80000000
|
STATX__RESERVED = 0x80000000
|
||||||
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
S_IFBLK = 0x6000
|
S_IFBLK = 0x6000
|
||||||
|
@ -1870,7 +2058,27 @@ const (
|
||||||
TIOCSTI = 0x5412
|
TIOCSTI = 0x5412
|
||||||
TIOCSWINSZ = 0x5414
|
TIOCSWINSZ = 0x5414
|
||||||
TIOCVHANGUP = 0x5437
|
TIOCVHANGUP = 0x5437
|
||||||
|
TMPFS_MAGIC = 0x1021994
|
||||||
TOSTOP = 0x100
|
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
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x401054d5
|
TUNATTACHFILTER = 0x401054d5
|
||||||
TUNDETACHFILTER = 0x401054d6
|
TUNDETACHFILTER = 0x401054d6
|
||||||
|
@ -1882,6 +2090,7 @@ const (
|
||||||
TUNGETVNETHDRSZ = 0x800454d7
|
TUNGETVNETHDRSZ = 0x800454d7
|
||||||
TUNGETVNETLE = 0x800454dd
|
TUNGETVNETLE = 0x800454dd
|
||||||
TUNSETDEBUG = 0x400454c9
|
TUNSETDEBUG = 0x400454c9
|
||||||
|
TUNSETFILTEREBPF = 0x800454e1
|
||||||
TUNSETGROUP = 0x400454ce
|
TUNSETGROUP = 0x400454ce
|
||||||
TUNSETIFF = 0x400454ca
|
TUNSETIFF = 0x400454ca
|
||||||
TUNSETIFINDEX = 0x400454da
|
TUNSETIFINDEX = 0x400454da
|
||||||
|
@ -1892,13 +2101,17 @@ const (
|
||||||
TUNSETPERSIST = 0x400454cb
|
TUNSETPERSIST = 0x400454cb
|
||||||
TUNSETQUEUE = 0x400454d9
|
TUNSETQUEUE = 0x400454d9
|
||||||
TUNSETSNDBUF = 0x400454d4
|
TUNSETSNDBUF = 0x400454d4
|
||||||
|
TUNSETSTEERINGEBPF = 0x800454e0
|
||||||
TUNSETTXFILTER = 0x400454d1
|
TUNSETTXFILTER = 0x400454d1
|
||||||
TUNSETVNETBE = 0x400454de
|
TUNSETVNETBE = 0x400454de
|
||||||
TUNSETVNETHDRSZ = 0x400454d8
|
TUNSETVNETHDRSZ = 0x400454d8
|
||||||
TUNSETVNETLE = 0x400454dc
|
TUNSETVNETLE = 0x400454dc
|
||||||
|
UDF_SUPER_MAGIC = 0x15013346
|
||||||
UMOUNT_NOFOLLOW = 0x8
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
|
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||||
UTIME_NOW = 0x3fffffff
|
UTIME_NOW = 0x3fffffff
|
||||||
UTIME_OMIT = 0x3ffffffe
|
UTIME_OMIT = 0x3ffffffe
|
||||||
|
V9FS_MAGIC = 0x1021997
|
||||||
VDISCARD = 0xd
|
VDISCARD = 0xd
|
||||||
VEOF = 0x4
|
VEOF = 0x4
|
||||||
VEOL = 0xb
|
VEOL = 0xb
|
||||||
|
@ -1940,6 +2153,86 @@ const (
|
||||||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||||
WDIOC_SETTIMEOUT = 0xc0045706
|
WDIOC_SETTIMEOUT = 0xc0045706
|
||||||
WEXITED = 0x4
|
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
|
WNOHANG = 0x1
|
||||||
WNOTHREAD = 0x20000000
|
WNOTHREAD = 0x20000000
|
||||||
WNOWAIT = 0x1000000
|
WNOWAIT = 0x1000000
|
||||||
|
@ -1949,7 +2242,9 @@ const (
|
||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
||||||
// Errors
|
// Errors
|
||||||
|
@ -2129,171 +2424,179 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// Error table
|
// Error table
|
||||||
var errors = [...]string{
|
var errorList = [...]struct {
|
||||||
1: "operation not permitted",
|
num syscall.Errno
|
||||||
2: "no such file or directory",
|
name string
|
||||||
3: "no such process",
|
desc string
|
||||||
4: "interrupted system call",
|
}{
|
||||||
5: "input/output error",
|
{1, "EPERM", "operation not permitted"},
|
||||||
6: "no such device or address",
|
{2, "ENOENT", "no such file or directory"},
|
||||||
7: "argument list too long",
|
{3, "ESRCH", "no such process"},
|
||||||
8: "exec format error",
|
{4, "EINTR", "interrupted system call"},
|
||||||
9: "bad file descriptor",
|
{5, "EIO", "input/output error"},
|
||||||
10: "no child processes",
|
{6, "ENXIO", "no such device or address"},
|
||||||
11: "resource temporarily unavailable",
|
{7, "E2BIG", "argument list too long"},
|
||||||
12: "cannot allocate memory",
|
{8, "ENOEXEC", "exec format error"},
|
||||||
13: "permission denied",
|
{9, "EBADF", "bad file descriptor"},
|
||||||
14: "bad address",
|
{10, "ECHILD", "no child processes"},
|
||||||
15: "block device required",
|
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||||
16: "device or resource busy",
|
{12, "ENOMEM", "cannot allocate memory"},
|
||||||
17: "file exists",
|
{13, "EACCES", "permission denied"},
|
||||||
18: "invalid cross-device link",
|
{14, "EFAULT", "bad address"},
|
||||||
19: "no such device",
|
{15, "ENOTBLK", "block device required"},
|
||||||
20: "not a directory",
|
{16, "EBUSY", "device or resource busy"},
|
||||||
21: "is a directory",
|
{17, "EEXIST", "file exists"},
|
||||||
22: "invalid argument",
|
{18, "EXDEV", "invalid cross-device link"},
|
||||||
23: "too many open files in system",
|
{19, "ENODEV", "no such device"},
|
||||||
24: "too many open files",
|
{20, "ENOTDIR", "not a directory"},
|
||||||
25: "inappropriate ioctl for device",
|
{21, "EISDIR", "is a directory"},
|
||||||
26: "text file busy",
|
{22, "EINVAL", "invalid argument"},
|
||||||
27: "file too large",
|
{23, "ENFILE", "too many open files in system"},
|
||||||
28: "no space left on device",
|
{24, "EMFILE", "too many open files"},
|
||||||
29: "illegal seek",
|
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||||
30: "read-only file system",
|
{26, "ETXTBSY", "text file busy"},
|
||||||
31: "too many links",
|
{27, "EFBIG", "file too large"},
|
||||||
32: "broken pipe",
|
{28, "ENOSPC", "no space left on device"},
|
||||||
33: "numerical argument out of domain",
|
{29, "ESPIPE", "illegal seek"},
|
||||||
34: "numerical result out of range",
|
{30, "EROFS", "read-only file system"},
|
||||||
35: "resource deadlock avoided",
|
{31, "EMLINK", "too many links"},
|
||||||
36: "file name too long",
|
{32, "EPIPE", "broken pipe"},
|
||||||
37: "no locks available",
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
38: "function not implemented",
|
{34, "ERANGE", "numerical result out of range"},
|
||||||
39: "directory not empty",
|
{35, "EDEADLK", "resource deadlock avoided"},
|
||||||
40: "too many levels of symbolic links",
|
{36, "ENAMETOOLONG", "file name too long"},
|
||||||
42: "no message of desired type",
|
{37, "ENOLCK", "no locks available"},
|
||||||
43: "identifier removed",
|
{38, "ENOSYS", "function not implemented"},
|
||||||
44: "channel number out of range",
|
{39, "ENOTEMPTY", "directory not empty"},
|
||||||
45: "level 2 not synchronized",
|
{40, "ELOOP", "too many levels of symbolic links"},
|
||||||
46: "level 3 halted",
|
{42, "ENOMSG", "no message of desired type"},
|
||||||
47: "level 3 reset",
|
{43, "EIDRM", "identifier removed"},
|
||||||
48: "link number out of range",
|
{44, "ECHRNG", "channel number out of range"},
|
||||||
49: "protocol driver not attached",
|
{45, "EL2NSYNC", "level 2 not synchronized"},
|
||||||
50: "no CSI structure available",
|
{46, "EL3HLT", "level 3 halted"},
|
||||||
51: "level 2 halted",
|
{47, "EL3RST", "level 3 reset"},
|
||||||
52: "invalid exchange",
|
{48, "ELNRNG", "link number out of range"},
|
||||||
53: "invalid request descriptor",
|
{49, "EUNATCH", "protocol driver not attached"},
|
||||||
54: "exchange full",
|
{50, "ENOCSI", "no CSI structure available"},
|
||||||
55: "no anode",
|
{51, "EL2HLT", "level 2 halted"},
|
||||||
56: "invalid request code",
|
{52, "EBADE", "invalid exchange"},
|
||||||
57: "invalid slot",
|
{53, "EBADR", "invalid request descriptor"},
|
||||||
59: "bad font file format",
|
{54, "EXFULL", "exchange full"},
|
||||||
60: "device not a stream",
|
{55, "ENOANO", "no anode"},
|
||||||
61: "no data available",
|
{56, "EBADRQC", "invalid request code"},
|
||||||
62: "timer expired",
|
{57, "EBADSLT", "invalid slot"},
|
||||||
63: "out of streams resources",
|
{59, "EBFONT", "bad font file format"},
|
||||||
64: "machine is not on the network",
|
{60, "ENOSTR", "device not a stream"},
|
||||||
65: "package not installed",
|
{61, "ENODATA", "no data available"},
|
||||||
66: "object is remote",
|
{62, "ETIME", "timer expired"},
|
||||||
67: "link has been severed",
|
{63, "ENOSR", "out of streams resources"},
|
||||||
68: "advertise error",
|
{64, "ENONET", "machine is not on the network"},
|
||||||
69: "srmount error",
|
{65, "ENOPKG", "package not installed"},
|
||||||
70: "communication error on send",
|
{66, "EREMOTE", "object is remote"},
|
||||||
71: "protocol error",
|
{67, "ENOLINK", "link has been severed"},
|
||||||
72: "multihop attempted",
|
{68, "EADV", "advertise error"},
|
||||||
73: "RFS specific error",
|
{69, "ESRMNT", "srmount error"},
|
||||||
74: "bad message",
|
{70, "ECOMM", "communication error on send"},
|
||||||
75: "value too large for defined data type",
|
{71, "EPROTO", "protocol error"},
|
||||||
76: "name not unique on network",
|
{72, "EMULTIHOP", "multihop attempted"},
|
||||||
77: "file descriptor in bad state",
|
{73, "EDOTDOT", "RFS specific error"},
|
||||||
78: "remote address changed",
|
{74, "EBADMSG", "bad message"},
|
||||||
79: "can not access a needed shared library",
|
{75, "EOVERFLOW", "value too large for defined data type"},
|
||||||
80: "accessing a corrupted shared library",
|
{76, "ENOTUNIQ", "name not unique on network"},
|
||||||
81: ".lib section in a.out corrupted",
|
{77, "EBADFD", "file descriptor in bad state"},
|
||||||
82: "attempting to link in too many shared libraries",
|
{78, "EREMCHG", "remote address changed"},
|
||||||
83: "cannot exec a shared library directly",
|
{79, "ELIBACC", "can not access a needed shared library"},
|
||||||
84: "invalid or incomplete multibyte or wide character",
|
{80, "ELIBBAD", "accessing a corrupted shared library"},
|
||||||
85: "interrupted system call should be restarted",
|
{81, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||||
86: "streams pipe error",
|
{82, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||||
87: "too many users",
|
{83, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||||
88: "socket operation on non-socket",
|
{84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||||
89: "destination address required",
|
{85, "ERESTART", "interrupted system call should be restarted"},
|
||||||
90: "message too long",
|
{86, "ESTRPIPE", "streams pipe error"},
|
||||||
91: "protocol wrong type for socket",
|
{87, "EUSERS", "too many users"},
|
||||||
92: "protocol not available",
|
{88, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
93: "protocol not supported",
|
{89, "EDESTADDRREQ", "destination address required"},
|
||||||
94: "socket type not supported",
|
{90, "EMSGSIZE", "message too long"},
|
||||||
95: "operation not supported",
|
{91, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||||
96: "protocol family not supported",
|
{92, "ENOPROTOOPT", "protocol not available"},
|
||||||
97: "address family not supported by protocol",
|
{93, "EPROTONOSUPPORT", "protocol not supported"},
|
||||||
98: "address already in use",
|
{94, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||||
99: "cannot assign requested address",
|
{95, "ENOTSUP", "operation not supported"},
|
||||||
100: "network is down",
|
{96, "EPFNOSUPPORT", "protocol family not supported"},
|
||||||
101: "network is unreachable",
|
{97, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||||
102: "network dropped connection on reset",
|
{98, "EADDRINUSE", "address already in use"},
|
||||||
103: "software caused connection abort",
|
{99, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||||
104: "connection reset by peer",
|
{100, "ENETDOWN", "network is down"},
|
||||||
105: "no buffer space available",
|
{101, "ENETUNREACH", "network is unreachable"},
|
||||||
106: "transport endpoint is already connected",
|
{102, "ENETRESET", "network dropped connection on reset"},
|
||||||
107: "transport endpoint is not connected",
|
{103, "ECONNABORTED", "software caused connection abort"},
|
||||||
108: "cannot send after transport endpoint shutdown",
|
{104, "ECONNRESET", "connection reset by peer"},
|
||||||
109: "too many references: cannot splice",
|
{105, "ENOBUFS", "no buffer space available"},
|
||||||
110: "connection timed out",
|
{106, "EISCONN", "transport endpoint is already connected"},
|
||||||
111: "connection refused",
|
{107, "ENOTCONN", "transport endpoint is not connected"},
|
||||||
112: "host is down",
|
{108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||||
113: "no route to host",
|
{109, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||||
114: "operation already in progress",
|
{110, "ETIMEDOUT", "connection timed out"},
|
||||||
115: "operation now in progress",
|
{111, "ECONNREFUSED", "connection refused"},
|
||||||
116: "stale file handle",
|
{112, "EHOSTDOWN", "host is down"},
|
||||||
117: "structure needs cleaning",
|
{113, "EHOSTUNREACH", "no route to host"},
|
||||||
118: "not a XENIX named type file",
|
{114, "EALREADY", "operation already in progress"},
|
||||||
119: "no XENIX semaphores available",
|
{115, "EINPROGRESS", "operation now in progress"},
|
||||||
120: "is a named type file",
|
{116, "ESTALE", "stale file handle"},
|
||||||
121: "remote I/O error",
|
{117, "EUCLEAN", "structure needs cleaning"},
|
||||||
122: "disk quota exceeded",
|
{118, "ENOTNAM", "not a XENIX named type file"},
|
||||||
123: "no medium found",
|
{119, "ENAVAIL", "no XENIX semaphores available"},
|
||||||
124: "wrong medium type",
|
{120, "EISNAM", "is a named type file"},
|
||||||
125: "operation canceled",
|
{121, "EREMOTEIO", "remote I/O error"},
|
||||||
126: "required key not available",
|
{122, "EDQUOT", "disk quota exceeded"},
|
||||||
127: "key has expired",
|
{123, "ENOMEDIUM", "no medium found"},
|
||||||
128: "key has been revoked",
|
{124, "EMEDIUMTYPE", "wrong medium type"},
|
||||||
129: "key was rejected by service",
|
{125, "ECANCELED", "operation canceled"},
|
||||||
130: "owner died",
|
{126, "ENOKEY", "required key not available"},
|
||||||
131: "state not recoverable",
|
{127, "EKEYEXPIRED", "key has expired"},
|
||||||
132: "operation not possible due to RF-kill",
|
{128, "EKEYREVOKED", "key has been revoked"},
|
||||||
133: "memory page has hardware error",
|
{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
|
// Signal table
|
||||||
var signals = [...]string{
|
var signalList = [...]struct {
|
||||||
1: "hangup",
|
num syscall.Signal
|
||||||
2: "interrupt",
|
name string
|
||||||
3: "quit",
|
desc string
|
||||||
4: "illegal instruction",
|
}{
|
||||||
5: "trace/breakpoint trap",
|
{1, "SIGHUP", "hangup"},
|
||||||
6: "aborted",
|
{2, "SIGINT", "interrupt"},
|
||||||
7: "bus error",
|
{3, "SIGQUIT", "quit"},
|
||||||
8: "floating point exception",
|
{4, "SIGILL", "illegal instruction"},
|
||||||
9: "killed",
|
{5, "SIGTRAP", "trace/breakpoint trap"},
|
||||||
10: "user defined signal 1",
|
{6, "SIGABRT", "aborted"},
|
||||||
11: "segmentation fault",
|
{7, "SIGBUS", "bus error"},
|
||||||
12: "user defined signal 2",
|
{8, "SIGFPE", "floating point exception"},
|
||||||
13: "broken pipe",
|
{9, "SIGKILL", "killed"},
|
||||||
14: "alarm clock",
|
{10, "SIGUSR1", "user defined signal 1"},
|
||||||
15: "terminated",
|
{11, "SIGSEGV", "segmentation fault"},
|
||||||
16: "stack fault",
|
{12, "SIGUSR2", "user defined signal 2"},
|
||||||
17: "child exited",
|
{13, "SIGPIPE", "broken pipe"},
|
||||||
18: "continued",
|
{14, "SIGALRM", "alarm clock"},
|
||||||
19: "stopped (signal)",
|
{15, "SIGTERM", "terminated"},
|
||||||
20: "stopped",
|
{16, "SIGSTKFLT", "stack fault"},
|
||||||
21: "stopped (tty input)",
|
{17, "SIGCHLD", "child exited"},
|
||||||
22: "stopped (tty output)",
|
{18, "SIGCONT", "continued"},
|
||||||
23: "urgent I/O condition",
|
{19, "SIGSTOP", "stopped (signal)"},
|
||||||
24: "CPU time limit exceeded",
|
{20, "SIGTSTP", "stopped"},
|
||||||
25: "file size limit exceeded",
|
{21, "SIGTTIN", "stopped (tty input)"},
|
||||||
26: "virtual timer expired",
|
{22, "SIGTTOU", "stopped (tty output)"},
|
||||||
27: "profiling timer expired",
|
{23, "SIGURG", "urgent I/O condition"},
|
||||||
28: "window changed",
|
{24, "SIGXCPU", "CPU time limit exceeded"},
|
||||||
29: "I/O possible",
|
{25, "SIGXFSZ", "file size limit exceeded"},
|
||||||
30: "power failure",
|
{26, "SIGVTALRM", "virtual timer expired"},
|
||||||
31: "bad system call",
|
{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
|
// +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
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
@ -11,6 +11,11 @@ package unix
|
||||||
import "syscall"
|
import "syscall"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
AAFS_MAGIC = 0x5a3c69f0
|
||||||
|
ADFS_SUPER_MAGIC = 0xadf5
|
||||||
|
AFFS_SUPER_MAGIC = 0xadff
|
||||||
|
AFS_FS_MAGIC = 0x6b414653
|
||||||
|
AFS_SUPER_MAGIC = 0x5346414f
|
||||||
AF_ALG = 0x26
|
AF_ALG = 0x26
|
||||||
AF_APPLETALK = 0x5
|
AF_APPLETALK = 0x5
|
||||||
AF_ASH = 0x12
|
AF_ASH = 0x12
|
||||||
|
@ -66,6 +71,7 @@ const (
|
||||||
ALG_SET_IV = 0x2
|
ALG_SET_IV = 0x2
|
||||||
ALG_SET_KEY = 0x1
|
ALG_SET_KEY = 0x1
|
||||||
ALG_SET_OP = 0x3
|
ALG_SET_OP = 0x3
|
||||||
|
ANON_INODE_FS_MAGIC = 0x9041934
|
||||||
ARPHRD_6LOWPAN = 0x339
|
ARPHRD_6LOWPAN = 0x339
|
||||||
ARPHRD_ADAPT = 0x108
|
ARPHRD_ADAPT = 0x108
|
||||||
ARPHRD_APPLETLK = 0x8
|
ARPHRD_APPLETLK = 0x8
|
||||||
|
@ -133,6 +139,7 @@ const (
|
||||||
ARPHRD_VOID = 0xffff
|
ARPHRD_VOID = 0xffff
|
||||||
ARPHRD_VSOCKMON = 0x33a
|
ARPHRD_VSOCKMON = 0x33a
|
||||||
ARPHRD_X25 = 0x10f
|
ARPHRD_X25 = 0x10f
|
||||||
|
AUTOFS_SUPER_MAGIC = 0x187
|
||||||
B0 = 0x0
|
B0 = 0x0
|
||||||
B1000000 = 0x1008
|
B1000000 = 0x1008
|
||||||
B110 = 0x3
|
B110 = 0x3
|
||||||
|
@ -164,6 +171,9 @@ const (
|
||||||
B75 = 0x2
|
B75 = 0x2
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x80041270
|
BLKBSZGET = 0x80041270
|
||||||
BLKBSZSET = 0x40041271
|
BLKBSZSET = 0x40041271
|
||||||
BLKFLSBUF = 0x1261
|
BLKFLSBUF = 0x1261
|
||||||
|
@ -188,6 +198,7 @@ const (
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
|
@ -229,6 +240,8 @@ const (
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||||
|
BTRFS_TEST_MAGIC = 0x73727279
|
||||||
CAN_BCM = 0x2
|
CAN_BCM = 0x2
|
||||||
CAN_EFF_FLAG = 0x80000000
|
CAN_EFF_FLAG = 0x80000000
|
||||||
CAN_EFF_ID_BITS = 0x1d
|
CAN_EFF_ID_BITS = 0x1d
|
||||||
|
@ -252,6 +265,8 @@ const (
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
|
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||||
|
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||||
CIBAUD = 0x100f0000
|
CIBAUD = 0x100f0000
|
||||||
CLOCAL = 0x800
|
CLOCAL = 0x800
|
||||||
CLOCK_BOOTTIME = 0x7
|
CLOCK_BOOTTIME = 0x7
|
||||||
|
@ -294,10 +309,12 @@ const (
|
||||||
CLONE_VFORK = 0x4000
|
CLONE_VFORK = 0x4000
|
||||||
CLONE_VM = 0x100
|
CLONE_VM = 0x100
|
||||||
CMSPAR = 0x40000000
|
CMSPAR = 0x40000000
|
||||||
|
CODA_SUPER_MAGIC = 0x73757245
|
||||||
CR0 = 0x0
|
CR0 = 0x0
|
||||||
CR1 = 0x200
|
CR1 = 0x200
|
||||||
CR2 = 0x400
|
CR2 = 0x400
|
||||||
CR3 = 0x600
|
CR3 = 0x600
|
||||||
|
CRAMFS_MAGIC = 0x28cd3d45
|
||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
@ -312,6 +329,9 @@ const (
|
||||||
CSTOP = 0x13
|
CSTOP = 0x13
|
||||||
CSTOPB = 0x40
|
CSTOPB = 0x40
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
|
DAXFS_MAGIC = 0x64646178
|
||||||
|
DEBUGFS_MAGIC = 0x64626720
|
||||||
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -328,9 +348,12 @@ const (
|
||||||
ECHOKE = 0x800
|
ECHOKE = 0x800
|
||||||
ECHONL = 0x40
|
ECHONL = 0x40
|
||||||
ECHOPRT = 0x400
|
ECHOPRT = 0x400
|
||||||
|
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||||
EFD_CLOEXEC = 0x80000
|
EFD_CLOEXEC = 0x80000
|
||||||
EFD_NONBLOCK = 0x800
|
EFD_NONBLOCK = 0x800
|
||||||
EFD_SEMAPHORE = 0x1
|
EFD_SEMAPHORE = 0x1
|
||||||
|
EFIVARFS_MAGIC = 0xde5e81e4
|
||||||
|
EFS_SUPER_MAGIC = 0x414a53
|
||||||
ENCODING_DEFAULT = 0x0
|
ENCODING_DEFAULT = 0x0
|
||||||
ENCODING_FM_MARK = 0x3
|
ENCODING_FM_MARK = 0x3
|
||||||
ENCODING_FM_SPACE = 0x4
|
ENCODING_FM_SPACE = 0x4
|
||||||
|
@ -392,6 +415,7 @@ const (
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
|
ETH_P_ERSPAN2 = 0x22eb
|
||||||
ETH_P_FCOE = 0x8906
|
ETH_P_FCOE = 0x8906
|
||||||
ETH_P_FIP = 0x8914
|
ETH_P_FIP = 0x8914
|
||||||
ETH_P_HDLC = 0x19
|
ETH_P_HDLC = 0x19
|
||||||
|
@ -425,6 +449,7 @@ const (
|
||||||
ETH_P_PPP_DISC = 0x8863
|
ETH_P_PPP_DISC = 0x8863
|
||||||
ETH_P_PPP_MP = 0x8
|
ETH_P_PPP_MP = 0x8
|
||||||
ETH_P_PPP_SES = 0x8864
|
ETH_P_PPP_SES = 0x8864
|
||||||
|
ETH_P_PREAUTH = 0x88c7
|
||||||
ETH_P_PRP = 0x88fb
|
ETH_P_PRP = 0x88fb
|
||||||
ETH_P_PUP = 0x200
|
ETH_P_PUP = 0x200
|
||||||
ETH_P_PUPAT = 0x201
|
ETH_P_PUPAT = 0x201
|
||||||
|
@ -445,9 +470,14 @@ const (
|
||||||
ETH_P_WCCP = 0x883e
|
ETH_P_WCCP = 0x883e
|
||||||
ETH_P_X25 = 0x805
|
ETH_P_X25 = 0x805
|
||||||
ETH_P_XDSA = 0xf8
|
ETH_P_XDSA = 0xf8
|
||||||
|
EXABYTE_ENABLE_NEST = 0xf0
|
||||||
|
EXT2_SUPER_MAGIC = 0xef53
|
||||||
|
EXT3_SUPER_MAGIC = 0xef53
|
||||||
|
EXT4_SUPER_MAGIC = 0xef53
|
||||||
EXTA = 0xe
|
EXTA = 0xe
|
||||||
EXTB = 0xf
|
EXTB = 0xf
|
||||||
EXTPROC = 0x10000
|
EXTPROC = 0x10000
|
||||||
|
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||||
FALLOC_FL_INSERT_RANGE = 0x20
|
FALLOC_FL_INSERT_RANGE = 0x20
|
||||||
FALLOC_FL_KEEP_SIZE = 0x1
|
FALLOC_FL_KEEP_SIZE = 0x1
|
||||||
|
@ -481,6 +511,7 @@ const (
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x3
|
||||||
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
F_DUPFD_CLOEXEC = 0x406
|
F_DUPFD_CLOEXEC = 0x406
|
||||||
|
@ -542,6 +573,49 @@ const (
|
||||||
GENL_UNS_ADMIN_PERM = 0x10
|
GENL_UNS_ADMIN_PERM = 0x10
|
||||||
GRND_NONBLOCK = 0x1
|
GRND_NONBLOCK = 0x1
|
||||||
GRND_RANDOM = 0x2
|
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
|
HUPCL = 0x400
|
||||||
IBSHIFT = 0x10
|
IBSHIFT = 0x10
|
||||||
ICANON = 0x2
|
ICANON = 0x2
|
||||||
|
@ -792,12 +866,14 @@ const (
|
||||||
IP_UNICAST_IF = 0x32
|
IP_UNICAST_IF = 0x32
|
||||||
IP_XFRM_POLICY = 0x11
|
IP_XFRM_POLICY = 0x11
|
||||||
ISIG = 0x1
|
ISIG = 0x1
|
||||||
|
ISOFS_SUPER_MAGIC = 0x9660
|
||||||
ISTRIP = 0x20
|
ISTRIP = 0x20
|
||||||
IUCLC = 0x200
|
IUCLC = 0x200
|
||||||
IUTF8 = 0x4000
|
IUTF8 = 0x4000
|
||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
|
@ -893,9 +969,15 @@ const (
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
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_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
MSG_CONFIRM = 0x800
|
MSG_CONFIRM = 0x800
|
||||||
|
@ -955,7 +1037,9 @@ const (
|
||||||
MS_SYNCHRONOUS = 0x10
|
MS_SYNCHRONOUS = 0x10
|
||||||
MS_UNBINDABLE = 0x20000
|
MS_UNBINDABLE = 0x20000
|
||||||
MS_VERBOSE = 0x8000
|
MS_VERBOSE = 0x8000
|
||||||
|
MTD_INODE_FS_MAGIC = 0x11307854
|
||||||
NAME_MAX = 0xff
|
NAME_MAX = 0xff
|
||||||
|
NCP_SUPER_MAGIC = 0x564c
|
||||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||||
NETLINK_AUDIT = 0x9
|
NETLINK_AUDIT = 0x9
|
||||||
NETLINK_BROADCAST_ERROR = 0x4
|
NETLINK_BROADCAST_ERROR = 0x4
|
||||||
|
@ -990,6 +1074,37 @@ const (
|
||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
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
|
NL0 = 0x0
|
||||||
NL1 = 0x100
|
NL1 = 0x100
|
||||||
NLA_ALIGNTO = 0x4
|
NLA_ALIGNTO = 0x4
|
||||||
|
@ -1022,6 +1137,8 @@ const (
|
||||||
NLM_F_REQUEST = 0x1
|
NLM_F_REQUEST = 0x1
|
||||||
NLM_F_ROOT = 0x100
|
NLM_F_ROOT = 0x100
|
||||||
NOFLSH = 0x80
|
NOFLSH = 0x80
|
||||||
|
NSFS_MAGIC = 0x6e736673
|
||||||
|
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
OFILL = 0x40
|
OFILL = 0x40
|
||||||
|
@ -1029,7 +1146,9 @@ const (
|
||||||
ONLCR = 0x4
|
ONLCR = 0x4
|
||||||
ONLRET = 0x20
|
ONLRET = 0x20
|
||||||
ONOCR = 0x10
|
ONOCR = 0x10
|
||||||
|
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||||
OPOST = 0x1
|
OPOST = 0x1
|
||||||
|
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||||
O_ACCMODE = 0x3
|
O_ACCMODE = 0x3
|
||||||
O_APPEND = 0x400
|
O_APPEND = 0x400
|
||||||
O_ASYNC = 0x2000
|
O_ASYNC = 0x2000
|
||||||
|
@ -1114,16 +1233,20 @@ const (
|
||||||
PERF_EVENT_IOC_DISABLE = 0x2401
|
PERF_EVENT_IOC_DISABLE = 0x2401
|
||||||
PERF_EVENT_IOC_ENABLE = 0x2400
|
PERF_EVENT_IOC_ENABLE = 0x2400
|
||||||
PERF_EVENT_IOC_ID = 0x80042407
|
PERF_EVENT_IOC_ID = 0x80042407
|
||||||
|
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4004240b
|
||||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
|
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
|
||||||
PERF_EVENT_IOC_PERIOD = 0x40082404
|
PERF_EVENT_IOC_PERIOD = 0x40082404
|
||||||
|
PERF_EVENT_IOC_QUERY_BPF = 0xc004240a
|
||||||
PERF_EVENT_IOC_REFRESH = 0x2402
|
PERF_EVENT_IOC_REFRESH = 0x2402
|
||||||
PERF_EVENT_IOC_RESET = 0x2403
|
PERF_EVENT_IOC_RESET = 0x2403
|
||||||
PERF_EVENT_IOC_SET_BPF = 0x40042408
|
PERF_EVENT_IOC_SET_BPF = 0x40042408
|
||||||
PERF_EVENT_IOC_SET_FILTER = 0x40042406
|
PERF_EVENT_IOC_SET_FILTER = 0x40042406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||||
|
PIPEFS_MAGIC = 0x50495045
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
|
PROC_SUPER_MAGIC = 0x9fa0
|
||||||
PROT_EXEC = 0x4
|
PROT_EXEC = 0x4
|
||||||
PROT_GROWSDOWN = 0x1000000
|
PROT_GROWSDOWN = 0x1000000
|
||||||
PROT_GROWSUP = 0x2000000
|
PROT_GROWSUP = 0x2000000
|
||||||
|
@ -1166,6 +1289,7 @@ const (
|
||||||
PR_GET_PDEATHSIG = 0x2
|
PR_GET_PDEATHSIG = 0x2
|
||||||
PR_GET_SECCOMP = 0x15
|
PR_GET_SECCOMP = 0x15
|
||||||
PR_GET_SECUREBITS = 0x1b
|
PR_GET_SECUREBITS = 0x1b
|
||||||
|
PR_GET_SPECULATION_CTRL = 0x34
|
||||||
PR_GET_THP_DISABLE = 0x2a
|
PR_GET_THP_DISABLE = 0x2a
|
||||||
PR_GET_TID_ADDRESS = 0x28
|
PR_GET_TID_ADDRESS = 0x28
|
||||||
PR_GET_TIMERSLACK = 0x1e
|
PR_GET_TIMERSLACK = 0x1e
|
||||||
|
@ -1211,11 +1335,18 @@ const (
|
||||||
PR_SET_PTRACER_ANY = 0xffffffff
|
PR_SET_PTRACER_ANY = 0xffffffff
|
||||||
PR_SET_SECCOMP = 0x16
|
PR_SET_SECCOMP = 0x16
|
||||||
PR_SET_SECUREBITS = 0x1c
|
PR_SET_SECUREBITS = 0x1c
|
||||||
|
PR_SET_SPECULATION_CTRL = 0x35
|
||||||
PR_SET_THP_DISABLE = 0x29
|
PR_SET_THP_DISABLE = 0x29
|
||||||
PR_SET_TIMERSLACK = 0x1d
|
PR_SET_TIMERSLACK = 0x1d
|
||||||
PR_SET_TIMING = 0xe
|
PR_SET_TIMING = 0xe
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
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_GET_VL = 0x33
|
||||||
PR_SVE_SET_VL = 0x32
|
PR_SVE_SET_VL = 0x32
|
||||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||||
|
@ -1229,6 +1360,7 @@ const (
|
||||||
PR_TSC_SIGSEGV = 0x2
|
PR_TSC_SIGSEGV = 0x2
|
||||||
PR_UNALIGN_NOPRINT = 0x1
|
PR_UNALIGN_NOPRINT = 0x1
|
||||||
PR_UNALIGN_SIGBUS = 0x2
|
PR_UNALIGN_SIGBUS = 0x2
|
||||||
|
PSTOREFS_MAGIC = 0x6165676c
|
||||||
PTRACE_ATTACH = 0x10
|
PTRACE_ATTACH = 0x10
|
||||||
PTRACE_CONT = 0x7
|
PTRACE_CONT = 0x7
|
||||||
PTRACE_DETACH = 0x11
|
PTRACE_DETACH = 0x11
|
||||||
|
@ -1278,6 +1410,7 @@ const (
|
||||||
PTRACE_POKETEXT = 0x4
|
PTRACE_POKETEXT = 0x4
|
||||||
PTRACE_POKEUSR = 0x6
|
PTRACE_POKEUSR = 0x6
|
||||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||||
|
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||||
PTRACE_SEIZE = 0x4206
|
PTRACE_SEIZE = 0x4206
|
||||||
PTRACE_SETCRUNCHREGS = 0x1a
|
PTRACE_SETCRUNCHREGS = 0x1a
|
||||||
PTRACE_SETFPREGS = 0xf
|
PTRACE_SETFPREGS = 0xf
|
||||||
|
@ -1296,6 +1429,11 @@ const (
|
||||||
PT_DATA_ADDR = 0x10004
|
PT_DATA_ADDR = 0x10004
|
||||||
PT_TEXT_ADDR = 0x10000
|
PT_TEXT_ADDR = 0x10000
|
||||||
PT_TEXT_END_ADDR = 0x10008
|
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_AS = 0x9
|
||||||
RLIMIT_CORE = 0x4
|
RLIMIT_CORE = 0x4
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
|
@ -1345,6 +1483,33 @@ const (
|
||||||
RTCF_MASQ = 0x400000
|
RTCF_MASQ = 0x400000
|
||||||
RTCF_NAT = 0x800000
|
RTCF_NAT = 0x800000
|
||||||
RTCF_VALVE = 0x200000
|
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_ADDRCLASSMASK = 0xf8000000
|
||||||
RTF_ADDRCONF = 0x40000
|
RTF_ADDRCONF = 0x40000
|
||||||
RTF_ALLONLINK = 0x20000
|
RTF_ALLONLINK = 0x20000
|
||||||
|
@ -1481,6 +1646,8 @@ const (
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1565,6 +1732,23 @@ const (
|
||||||
SIOCSPGRP = 0x8902
|
SIOCSPGRP = 0x8902
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
SIOCWANDEV = 0x894a
|
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_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
|
@ -1675,6 +1859,8 @@ const (
|
||||||
SPLICE_F_MORE = 0x4
|
SPLICE_F_MORE = 0x4
|
||||||
SPLICE_F_MOVE = 0x1
|
SPLICE_F_MOVE = 0x1
|
||||||
SPLICE_F_NONBLOCK = 0x2
|
SPLICE_F_NONBLOCK = 0x2
|
||||||
|
SQUASHFS_MAGIC = 0x73717368
|
||||||
|
STACK_END_MAGIC = 0x57ac6e9d
|
||||||
STATX_ALL = 0xfff
|
STATX_ALL = 0xfff
|
||||||
STATX_ATIME = 0x20
|
STATX_ATIME = 0x20
|
||||||
STATX_ATTR_APPEND = 0x20
|
STATX_ATTR_APPEND = 0x20
|
||||||
|
@ -1696,6 +1882,7 @@ const (
|
||||||
STATX_TYPE = 0x1
|
STATX_TYPE = 0x1
|
||||||
STATX_UID = 0x8
|
STATX_UID = 0x8
|
||||||
STATX__RESERVED = 0x80000000
|
STATX__RESERVED = 0x80000000
|
||||||
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
S_IFBLK = 0x6000
|
S_IFBLK = 0x6000
|
||||||
|
@ -1877,7 +2064,27 @@ const (
|
||||||
TIOCSTI = 0x5412
|
TIOCSTI = 0x5412
|
||||||
TIOCSWINSZ = 0x5414
|
TIOCSWINSZ = 0x5414
|
||||||
TIOCVHANGUP = 0x5437
|
TIOCVHANGUP = 0x5437
|
||||||
|
TMPFS_MAGIC = 0x1021994
|
||||||
TOSTOP = 0x100
|
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
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x400854d5
|
TUNATTACHFILTER = 0x400854d5
|
||||||
TUNDETACHFILTER = 0x400854d6
|
TUNDETACHFILTER = 0x400854d6
|
||||||
|
@ -1889,6 +2096,7 @@ const (
|
||||||
TUNGETVNETHDRSZ = 0x800454d7
|
TUNGETVNETHDRSZ = 0x800454d7
|
||||||
TUNGETVNETLE = 0x800454dd
|
TUNGETVNETLE = 0x800454dd
|
||||||
TUNSETDEBUG = 0x400454c9
|
TUNSETDEBUG = 0x400454c9
|
||||||
|
TUNSETFILTEREBPF = 0x800454e1
|
||||||
TUNSETGROUP = 0x400454ce
|
TUNSETGROUP = 0x400454ce
|
||||||
TUNSETIFF = 0x400454ca
|
TUNSETIFF = 0x400454ca
|
||||||
TUNSETIFINDEX = 0x400454da
|
TUNSETIFINDEX = 0x400454da
|
||||||
|
@ -1899,13 +2107,17 @@ const (
|
||||||
TUNSETPERSIST = 0x400454cb
|
TUNSETPERSIST = 0x400454cb
|
||||||
TUNSETQUEUE = 0x400454d9
|
TUNSETQUEUE = 0x400454d9
|
||||||
TUNSETSNDBUF = 0x400454d4
|
TUNSETSNDBUF = 0x400454d4
|
||||||
|
TUNSETSTEERINGEBPF = 0x800454e0
|
||||||
TUNSETTXFILTER = 0x400454d1
|
TUNSETTXFILTER = 0x400454d1
|
||||||
TUNSETVNETBE = 0x400454de
|
TUNSETVNETBE = 0x400454de
|
||||||
TUNSETVNETHDRSZ = 0x400454d8
|
TUNSETVNETHDRSZ = 0x400454d8
|
||||||
TUNSETVNETLE = 0x400454dc
|
TUNSETVNETLE = 0x400454dc
|
||||||
|
UDF_SUPER_MAGIC = 0x15013346
|
||||||
UMOUNT_NOFOLLOW = 0x8
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
|
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||||
UTIME_NOW = 0x3fffffff
|
UTIME_NOW = 0x3fffffff
|
||||||
UTIME_OMIT = 0x3ffffffe
|
UTIME_OMIT = 0x3ffffffe
|
||||||
|
V9FS_MAGIC = 0x1021997
|
||||||
VDISCARD = 0xd
|
VDISCARD = 0xd
|
||||||
VEOF = 0x4
|
VEOF = 0x4
|
||||||
VEOL = 0xb
|
VEOL = 0xb
|
||||||
|
@ -1947,6 +2159,86 @@ const (
|
||||||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||||
WDIOC_SETTIMEOUT = 0xc0045706
|
WDIOC_SETTIMEOUT = 0xc0045706
|
||||||
WEXITED = 0x4
|
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
|
WNOHANG = 0x1
|
||||||
WNOTHREAD = 0x20000000
|
WNOTHREAD = 0x20000000
|
||||||
WNOWAIT = 0x1000000
|
WNOWAIT = 0x1000000
|
||||||
|
@ -1956,7 +2248,9 @@ const (
|
||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
||||||
// Errors
|
// Errors
|
||||||
|
@ -2136,171 +2430,179 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// Error table
|
// Error table
|
||||||
var errors = [...]string{
|
var errorList = [...]struct {
|
||||||
1: "operation not permitted",
|
num syscall.Errno
|
||||||
2: "no such file or directory",
|
name string
|
||||||
3: "no such process",
|
desc string
|
||||||
4: "interrupted system call",
|
}{
|
||||||
5: "input/output error",
|
{1, "EPERM", "operation not permitted"},
|
||||||
6: "no such device or address",
|
{2, "ENOENT", "no such file or directory"},
|
||||||
7: "argument list too long",
|
{3, "ESRCH", "no such process"},
|
||||||
8: "exec format error",
|
{4, "EINTR", "interrupted system call"},
|
||||||
9: "bad file descriptor",
|
{5, "EIO", "input/output error"},
|
||||||
10: "no child processes",
|
{6, "ENXIO", "no such device or address"},
|
||||||
11: "resource temporarily unavailable",
|
{7, "E2BIG", "argument list too long"},
|
||||||
12: "cannot allocate memory",
|
{8, "ENOEXEC", "exec format error"},
|
||||||
13: "permission denied",
|
{9, "EBADF", "bad file descriptor"},
|
||||||
14: "bad address",
|
{10, "ECHILD", "no child processes"},
|
||||||
15: "block device required",
|
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||||
16: "device or resource busy",
|
{12, "ENOMEM", "cannot allocate memory"},
|
||||||
17: "file exists",
|
{13, "EACCES", "permission denied"},
|
||||||
18: "invalid cross-device link",
|
{14, "EFAULT", "bad address"},
|
||||||
19: "no such device",
|
{15, "ENOTBLK", "block device required"},
|
||||||
20: "not a directory",
|
{16, "EBUSY", "device or resource busy"},
|
||||||
21: "is a directory",
|
{17, "EEXIST", "file exists"},
|
||||||
22: "invalid argument",
|
{18, "EXDEV", "invalid cross-device link"},
|
||||||
23: "too many open files in system",
|
{19, "ENODEV", "no such device"},
|
||||||
24: "too many open files",
|
{20, "ENOTDIR", "not a directory"},
|
||||||
25: "inappropriate ioctl for device",
|
{21, "EISDIR", "is a directory"},
|
||||||
26: "text file busy",
|
{22, "EINVAL", "invalid argument"},
|
||||||
27: "file too large",
|
{23, "ENFILE", "too many open files in system"},
|
||||||
28: "no space left on device",
|
{24, "EMFILE", "too many open files"},
|
||||||
29: "illegal seek",
|
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||||
30: "read-only file system",
|
{26, "ETXTBSY", "text file busy"},
|
||||||
31: "too many links",
|
{27, "EFBIG", "file too large"},
|
||||||
32: "broken pipe",
|
{28, "ENOSPC", "no space left on device"},
|
||||||
33: "numerical argument out of domain",
|
{29, "ESPIPE", "illegal seek"},
|
||||||
34: "numerical result out of range",
|
{30, "EROFS", "read-only file system"},
|
||||||
35: "resource deadlock avoided",
|
{31, "EMLINK", "too many links"},
|
||||||
36: "file name too long",
|
{32, "EPIPE", "broken pipe"},
|
||||||
37: "no locks available",
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
38: "function not implemented",
|
{34, "ERANGE", "numerical result out of range"},
|
||||||
39: "directory not empty",
|
{35, "EDEADLK", "resource deadlock avoided"},
|
||||||
40: "too many levels of symbolic links",
|
{36, "ENAMETOOLONG", "file name too long"},
|
||||||
42: "no message of desired type",
|
{37, "ENOLCK", "no locks available"},
|
||||||
43: "identifier removed",
|
{38, "ENOSYS", "function not implemented"},
|
||||||
44: "channel number out of range",
|
{39, "ENOTEMPTY", "directory not empty"},
|
||||||
45: "level 2 not synchronized",
|
{40, "ELOOP", "too many levels of symbolic links"},
|
||||||
46: "level 3 halted",
|
{42, "ENOMSG", "no message of desired type"},
|
||||||
47: "level 3 reset",
|
{43, "EIDRM", "identifier removed"},
|
||||||
48: "link number out of range",
|
{44, "ECHRNG", "channel number out of range"},
|
||||||
49: "protocol driver not attached",
|
{45, "EL2NSYNC", "level 2 not synchronized"},
|
||||||
50: "no CSI structure available",
|
{46, "EL3HLT", "level 3 halted"},
|
||||||
51: "level 2 halted",
|
{47, "EL3RST", "level 3 reset"},
|
||||||
52: "invalid exchange",
|
{48, "ELNRNG", "link number out of range"},
|
||||||
53: "invalid request descriptor",
|
{49, "EUNATCH", "protocol driver not attached"},
|
||||||
54: "exchange full",
|
{50, "ENOCSI", "no CSI structure available"},
|
||||||
55: "no anode",
|
{51, "EL2HLT", "level 2 halted"},
|
||||||
56: "invalid request code",
|
{52, "EBADE", "invalid exchange"},
|
||||||
57: "invalid slot",
|
{53, "EBADR", "invalid request descriptor"},
|
||||||
59: "bad font file format",
|
{54, "EXFULL", "exchange full"},
|
||||||
60: "device not a stream",
|
{55, "ENOANO", "no anode"},
|
||||||
61: "no data available",
|
{56, "EBADRQC", "invalid request code"},
|
||||||
62: "timer expired",
|
{57, "EBADSLT", "invalid slot"},
|
||||||
63: "out of streams resources",
|
{59, "EBFONT", "bad font file format"},
|
||||||
64: "machine is not on the network",
|
{60, "ENOSTR", "device not a stream"},
|
||||||
65: "package not installed",
|
{61, "ENODATA", "no data available"},
|
||||||
66: "object is remote",
|
{62, "ETIME", "timer expired"},
|
||||||
67: "link has been severed",
|
{63, "ENOSR", "out of streams resources"},
|
||||||
68: "advertise error",
|
{64, "ENONET", "machine is not on the network"},
|
||||||
69: "srmount error",
|
{65, "ENOPKG", "package not installed"},
|
||||||
70: "communication error on send",
|
{66, "EREMOTE", "object is remote"},
|
||||||
71: "protocol error",
|
{67, "ENOLINK", "link has been severed"},
|
||||||
72: "multihop attempted",
|
{68, "EADV", "advertise error"},
|
||||||
73: "RFS specific error",
|
{69, "ESRMNT", "srmount error"},
|
||||||
74: "bad message",
|
{70, "ECOMM", "communication error on send"},
|
||||||
75: "value too large for defined data type",
|
{71, "EPROTO", "protocol error"},
|
||||||
76: "name not unique on network",
|
{72, "EMULTIHOP", "multihop attempted"},
|
||||||
77: "file descriptor in bad state",
|
{73, "EDOTDOT", "RFS specific error"},
|
||||||
78: "remote address changed",
|
{74, "EBADMSG", "bad message"},
|
||||||
79: "can not access a needed shared library",
|
{75, "EOVERFLOW", "value too large for defined data type"},
|
||||||
80: "accessing a corrupted shared library",
|
{76, "ENOTUNIQ", "name not unique on network"},
|
||||||
81: ".lib section in a.out corrupted",
|
{77, "EBADFD", "file descriptor in bad state"},
|
||||||
82: "attempting to link in too many shared libraries",
|
{78, "EREMCHG", "remote address changed"},
|
||||||
83: "cannot exec a shared library directly",
|
{79, "ELIBACC", "can not access a needed shared library"},
|
||||||
84: "invalid or incomplete multibyte or wide character",
|
{80, "ELIBBAD", "accessing a corrupted shared library"},
|
||||||
85: "interrupted system call should be restarted",
|
{81, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||||
86: "streams pipe error",
|
{82, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||||
87: "too many users",
|
{83, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||||
88: "socket operation on non-socket",
|
{84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||||
89: "destination address required",
|
{85, "ERESTART", "interrupted system call should be restarted"},
|
||||||
90: "message too long",
|
{86, "ESTRPIPE", "streams pipe error"},
|
||||||
91: "protocol wrong type for socket",
|
{87, "EUSERS", "too many users"},
|
||||||
92: "protocol not available",
|
{88, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
93: "protocol not supported",
|
{89, "EDESTADDRREQ", "destination address required"},
|
||||||
94: "socket type not supported",
|
{90, "EMSGSIZE", "message too long"},
|
||||||
95: "operation not supported",
|
{91, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||||
96: "protocol family not supported",
|
{92, "ENOPROTOOPT", "protocol not available"},
|
||||||
97: "address family not supported by protocol",
|
{93, "EPROTONOSUPPORT", "protocol not supported"},
|
||||||
98: "address already in use",
|
{94, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||||
99: "cannot assign requested address",
|
{95, "ENOTSUP", "operation not supported"},
|
||||||
100: "network is down",
|
{96, "EPFNOSUPPORT", "protocol family not supported"},
|
||||||
101: "network is unreachable",
|
{97, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||||
102: "network dropped connection on reset",
|
{98, "EADDRINUSE", "address already in use"},
|
||||||
103: "software caused connection abort",
|
{99, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||||
104: "connection reset by peer",
|
{100, "ENETDOWN", "network is down"},
|
||||||
105: "no buffer space available",
|
{101, "ENETUNREACH", "network is unreachable"},
|
||||||
106: "transport endpoint is already connected",
|
{102, "ENETRESET", "network dropped connection on reset"},
|
||||||
107: "transport endpoint is not connected",
|
{103, "ECONNABORTED", "software caused connection abort"},
|
||||||
108: "cannot send after transport endpoint shutdown",
|
{104, "ECONNRESET", "connection reset by peer"},
|
||||||
109: "too many references: cannot splice",
|
{105, "ENOBUFS", "no buffer space available"},
|
||||||
110: "connection timed out",
|
{106, "EISCONN", "transport endpoint is already connected"},
|
||||||
111: "connection refused",
|
{107, "ENOTCONN", "transport endpoint is not connected"},
|
||||||
112: "host is down",
|
{108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||||
113: "no route to host",
|
{109, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||||
114: "operation already in progress",
|
{110, "ETIMEDOUT", "connection timed out"},
|
||||||
115: "operation now in progress",
|
{111, "ECONNREFUSED", "connection refused"},
|
||||||
116: "stale file handle",
|
{112, "EHOSTDOWN", "host is down"},
|
||||||
117: "structure needs cleaning",
|
{113, "EHOSTUNREACH", "no route to host"},
|
||||||
118: "not a XENIX named type file",
|
{114, "EALREADY", "operation already in progress"},
|
||||||
119: "no XENIX semaphores available",
|
{115, "EINPROGRESS", "operation now in progress"},
|
||||||
120: "is a named type file",
|
{116, "ESTALE", "stale file handle"},
|
||||||
121: "remote I/O error",
|
{117, "EUCLEAN", "structure needs cleaning"},
|
||||||
122: "disk quota exceeded",
|
{118, "ENOTNAM", "not a XENIX named type file"},
|
||||||
123: "no medium found",
|
{119, "ENAVAIL", "no XENIX semaphores available"},
|
||||||
124: "wrong medium type",
|
{120, "EISNAM", "is a named type file"},
|
||||||
125: "operation canceled",
|
{121, "EREMOTEIO", "remote I/O error"},
|
||||||
126: "required key not available",
|
{122, "EDQUOT", "disk quota exceeded"},
|
||||||
127: "key has expired",
|
{123, "ENOMEDIUM", "no medium found"},
|
||||||
128: "key has been revoked",
|
{124, "EMEDIUMTYPE", "wrong medium type"},
|
||||||
129: "key was rejected by service",
|
{125, "ECANCELED", "operation canceled"},
|
||||||
130: "owner died",
|
{126, "ENOKEY", "required key not available"},
|
||||||
131: "state not recoverable",
|
{127, "EKEYEXPIRED", "key has expired"},
|
||||||
132: "operation not possible due to RF-kill",
|
{128, "EKEYREVOKED", "key has been revoked"},
|
||||||
133: "memory page has hardware error",
|
{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
|
// Signal table
|
||||||
var signals = [...]string{
|
var signalList = [...]struct {
|
||||||
1: "hangup",
|
num syscall.Signal
|
||||||
2: "interrupt",
|
name string
|
||||||
3: "quit",
|
desc string
|
||||||
4: "illegal instruction",
|
}{
|
||||||
5: "trace/breakpoint trap",
|
{1, "SIGHUP", "hangup"},
|
||||||
6: "aborted",
|
{2, "SIGINT", "interrupt"},
|
||||||
7: "bus error",
|
{3, "SIGQUIT", "quit"},
|
||||||
8: "floating point exception",
|
{4, "SIGILL", "illegal instruction"},
|
||||||
9: "killed",
|
{5, "SIGTRAP", "trace/breakpoint trap"},
|
||||||
10: "user defined signal 1",
|
{6, "SIGABRT", "aborted"},
|
||||||
11: "segmentation fault",
|
{7, "SIGBUS", "bus error"},
|
||||||
12: "user defined signal 2",
|
{8, "SIGFPE", "floating point exception"},
|
||||||
13: "broken pipe",
|
{9, "SIGKILL", "killed"},
|
||||||
14: "alarm clock",
|
{10, "SIGUSR1", "user defined signal 1"},
|
||||||
15: "terminated",
|
{11, "SIGSEGV", "segmentation fault"},
|
||||||
16: "stack fault",
|
{12, "SIGUSR2", "user defined signal 2"},
|
||||||
17: "child exited",
|
{13, "SIGPIPE", "broken pipe"},
|
||||||
18: "continued",
|
{14, "SIGALRM", "alarm clock"},
|
||||||
19: "stopped (signal)",
|
{15, "SIGTERM", "terminated"},
|
||||||
20: "stopped",
|
{16, "SIGSTKFLT", "stack fault"},
|
||||||
21: "stopped (tty input)",
|
{17, "SIGCHLD", "child exited"},
|
||||||
22: "stopped (tty output)",
|
{18, "SIGCONT", "continued"},
|
||||||
23: "urgent I/O condition",
|
{19, "SIGSTOP", "stopped (signal)"},
|
||||||
24: "CPU time limit exceeded",
|
{20, "SIGTSTP", "stopped"},
|
||||||
25: "file size limit exceeded",
|
{21, "SIGTTIN", "stopped (tty input)"},
|
||||||
26: "virtual timer expired",
|
{22, "SIGTTOU", "stopped (tty output)"},
|
||||||
27: "profiling timer expired",
|
{23, "SIGURG", "urgent I/O condition"},
|
||||||
28: "window changed",
|
{24, "SIGXCPU", "CPU time limit exceeded"},
|
||||||
29: "I/O possible",
|
{25, "SIGXFSZ", "file size limit exceeded"},
|
||||||
30: "power failure",
|
{26, "SIGVTALRM", "virtual timer expired"},
|
||||||
31: "bad system call",
|
{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
|
// +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
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
@ -11,6 +11,11 @@ package unix
|
||||||
import "syscall"
|
import "syscall"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
AAFS_MAGIC = 0x5a3c69f0
|
||||||
|
ADFS_SUPER_MAGIC = 0xadf5
|
||||||
|
AFFS_SUPER_MAGIC = 0xadff
|
||||||
|
AFS_FS_MAGIC = 0x6b414653
|
||||||
|
AFS_SUPER_MAGIC = 0x5346414f
|
||||||
AF_ALG = 0x26
|
AF_ALG = 0x26
|
||||||
AF_APPLETALK = 0x5
|
AF_APPLETALK = 0x5
|
||||||
AF_ASH = 0x12
|
AF_ASH = 0x12
|
||||||
|
@ -66,6 +71,7 @@ const (
|
||||||
ALG_SET_IV = 0x2
|
ALG_SET_IV = 0x2
|
||||||
ALG_SET_KEY = 0x1
|
ALG_SET_KEY = 0x1
|
||||||
ALG_SET_OP = 0x3
|
ALG_SET_OP = 0x3
|
||||||
|
ANON_INODE_FS_MAGIC = 0x9041934
|
||||||
ARPHRD_6LOWPAN = 0x339
|
ARPHRD_6LOWPAN = 0x339
|
||||||
ARPHRD_ADAPT = 0x108
|
ARPHRD_ADAPT = 0x108
|
||||||
ARPHRD_APPLETLK = 0x8
|
ARPHRD_APPLETLK = 0x8
|
||||||
|
@ -133,6 +139,7 @@ const (
|
||||||
ARPHRD_VOID = 0xffff
|
ARPHRD_VOID = 0xffff
|
||||||
ARPHRD_VSOCKMON = 0x33a
|
ARPHRD_VSOCKMON = 0x33a
|
||||||
ARPHRD_X25 = 0x10f
|
ARPHRD_X25 = 0x10f
|
||||||
|
AUTOFS_SUPER_MAGIC = 0x187
|
||||||
B0 = 0x0
|
B0 = 0x0
|
||||||
B1000000 = 0x1008
|
B1000000 = 0x1008
|
||||||
B110 = 0x3
|
B110 = 0x3
|
||||||
|
@ -164,6 +171,9 @@ const (
|
||||||
B75 = 0x2
|
B75 = 0x2
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x80081270
|
BLKBSZGET = 0x80081270
|
||||||
BLKBSZSET = 0x40081271
|
BLKBSZSET = 0x40081271
|
||||||
BLKFLSBUF = 0x1261
|
BLKFLSBUF = 0x1261
|
||||||
|
@ -188,6 +198,7 @@ const (
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
|
@ -229,6 +240,8 @@ const (
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||||
|
BTRFS_TEST_MAGIC = 0x73727279
|
||||||
CAN_BCM = 0x2
|
CAN_BCM = 0x2
|
||||||
CAN_EFF_FLAG = 0x80000000
|
CAN_EFF_FLAG = 0x80000000
|
||||||
CAN_EFF_ID_BITS = 0x1d
|
CAN_EFF_ID_BITS = 0x1d
|
||||||
|
@ -252,6 +265,8 @@ const (
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
|
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||||
|
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||||
CIBAUD = 0x100f0000
|
CIBAUD = 0x100f0000
|
||||||
CLOCAL = 0x800
|
CLOCAL = 0x800
|
||||||
CLOCK_BOOTTIME = 0x7
|
CLOCK_BOOTTIME = 0x7
|
||||||
|
@ -294,10 +309,12 @@ const (
|
||||||
CLONE_VFORK = 0x4000
|
CLONE_VFORK = 0x4000
|
||||||
CLONE_VM = 0x100
|
CLONE_VM = 0x100
|
||||||
CMSPAR = 0x40000000
|
CMSPAR = 0x40000000
|
||||||
|
CODA_SUPER_MAGIC = 0x73757245
|
||||||
CR0 = 0x0
|
CR0 = 0x0
|
||||||
CR1 = 0x200
|
CR1 = 0x200
|
||||||
CR2 = 0x400
|
CR2 = 0x400
|
||||||
CR3 = 0x600
|
CR3 = 0x600
|
||||||
|
CRAMFS_MAGIC = 0x28cd3d45
|
||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
@ -312,6 +329,9 @@ const (
|
||||||
CSTOP = 0x13
|
CSTOP = 0x13
|
||||||
CSTOPB = 0x40
|
CSTOPB = 0x40
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
|
DAXFS_MAGIC = 0x64646178
|
||||||
|
DEBUGFS_MAGIC = 0x64626720
|
||||||
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -328,9 +348,12 @@ const (
|
||||||
ECHOKE = 0x800
|
ECHOKE = 0x800
|
||||||
ECHONL = 0x40
|
ECHONL = 0x40
|
||||||
ECHOPRT = 0x400
|
ECHOPRT = 0x400
|
||||||
|
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||||
EFD_CLOEXEC = 0x80000
|
EFD_CLOEXEC = 0x80000
|
||||||
EFD_NONBLOCK = 0x800
|
EFD_NONBLOCK = 0x800
|
||||||
EFD_SEMAPHORE = 0x1
|
EFD_SEMAPHORE = 0x1
|
||||||
|
EFIVARFS_MAGIC = 0xde5e81e4
|
||||||
|
EFS_SUPER_MAGIC = 0x414a53
|
||||||
ENCODING_DEFAULT = 0x0
|
ENCODING_DEFAULT = 0x0
|
||||||
ENCODING_FM_MARK = 0x3
|
ENCODING_FM_MARK = 0x3
|
||||||
ENCODING_FM_SPACE = 0x4
|
ENCODING_FM_SPACE = 0x4
|
||||||
|
@ -393,6 +416,7 @@ const (
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
|
ETH_P_ERSPAN2 = 0x22eb
|
||||||
ETH_P_FCOE = 0x8906
|
ETH_P_FCOE = 0x8906
|
||||||
ETH_P_FIP = 0x8914
|
ETH_P_FIP = 0x8914
|
||||||
ETH_P_HDLC = 0x19
|
ETH_P_HDLC = 0x19
|
||||||
|
@ -426,6 +450,7 @@ const (
|
||||||
ETH_P_PPP_DISC = 0x8863
|
ETH_P_PPP_DISC = 0x8863
|
||||||
ETH_P_PPP_MP = 0x8
|
ETH_P_PPP_MP = 0x8
|
||||||
ETH_P_PPP_SES = 0x8864
|
ETH_P_PPP_SES = 0x8864
|
||||||
|
ETH_P_PREAUTH = 0x88c7
|
||||||
ETH_P_PRP = 0x88fb
|
ETH_P_PRP = 0x88fb
|
||||||
ETH_P_PUP = 0x200
|
ETH_P_PUP = 0x200
|
||||||
ETH_P_PUPAT = 0x201
|
ETH_P_PUPAT = 0x201
|
||||||
|
@ -446,10 +471,15 @@ const (
|
||||||
ETH_P_WCCP = 0x883e
|
ETH_P_WCCP = 0x883e
|
||||||
ETH_P_X25 = 0x805
|
ETH_P_X25 = 0x805
|
||||||
ETH_P_XDSA = 0xf8
|
ETH_P_XDSA = 0xf8
|
||||||
|
EXABYTE_ENABLE_NEST = 0xf0
|
||||||
|
EXT2_SUPER_MAGIC = 0xef53
|
||||||
|
EXT3_SUPER_MAGIC = 0xef53
|
||||||
|
EXT4_SUPER_MAGIC = 0xef53
|
||||||
EXTA = 0xe
|
EXTA = 0xe
|
||||||
EXTB = 0xf
|
EXTB = 0xf
|
||||||
EXTPROC = 0x10000
|
EXTPROC = 0x10000
|
||||||
EXTRA_MAGIC = 0x45585401
|
EXTRA_MAGIC = 0x45585401
|
||||||
|
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||||
FALLOC_FL_INSERT_RANGE = 0x20
|
FALLOC_FL_INSERT_RANGE = 0x20
|
||||||
FALLOC_FL_KEEP_SIZE = 0x1
|
FALLOC_FL_KEEP_SIZE = 0x1
|
||||||
|
@ -463,6 +493,7 @@ const (
|
||||||
FF1 = 0x8000
|
FF1 = 0x8000
|
||||||
FFDLY = 0x8000
|
FFDLY = 0x8000
|
||||||
FLUSHO = 0x1000
|
FLUSHO = 0x1000
|
||||||
|
FPSIMD_MAGIC = 0x46508001
|
||||||
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
FS_ENCRYPTION_MODE_AES_128_CBC = 0x5
|
||||||
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
FS_ENCRYPTION_MODE_AES_128_CTS = 0x6
|
||||||
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
FS_ENCRYPTION_MODE_AES_256_CBC = 0x3
|
||||||
|
@ -483,6 +514,7 @@ const (
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x3
|
||||||
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
F_DUPFD_CLOEXEC = 0x406
|
F_DUPFD_CLOEXEC = 0x406
|
||||||
|
@ -544,6 +576,49 @@ const (
|
||||||
GENL_UNS_ADMIN_PERM = 0x10
|
GENL_UNS_ADMIN_PERM = 0x10
|
||||||
GRND_NONBLOCK = 0x1
|
GRND_NONBLOCK = 0x1
|
||||||
GRND_RANDOM = 0x2
|
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
|
HUPCL = 0x400
|
||||||
IBSHIFT = 0x10
|
IBSHIFT = 0x10
|
||||||
ICANON = 0x2
|
ICANON = 0x2
|
||||||
|
@ -794,12 +869,14 @@ const (
|
||||||
IP_UNICAST_IF = 0x32
|
IP_UNICAST_IF = 0x32
|
||||||
IP_XFRM_POLICY = 0x11
|
IP_XFRM_POLICY = 0x11
|
||||||
ISIG = 0x1
|
ISIG = 0x1
|
||||||
|
ISOFS_SUPER_MAGIC = 0x9660
|
||||||
ISTRIP = 0x20
|
ISTRIP = 0x20
|
||||||
IUCLC = 0x200
|
IUCLC = 0x200
|
||||||
IUTF8 = 0x4000
|
IUTF8 = 0x4000
|
||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
|
@ -895,9 +972,15 @@ const (
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
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_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
MSG_CONFIRM = 0x800
|
MSG_CONFIRM = 0x800
|
||||||
|
@ -957,7 +1040,9 @@ const (
|
||||||
MS_SYNCHRONOUS = 0x10
|
MS_SYNCHRONOUS = 0x10
|
||||||
MS_UNBINDABLE = 0x20000
|
MS_UNBINDABLE = 0x20000
|
||||||
MS_VERBOSE = 0x8000
|
MS_VERBOSE = 0x8000
|
||||||
|
MTD_INODE_FS_MAGIC = 0x11307854
|
||||||
NAME_MAX = 0xff
|
NAME_MAX = 0xff
|
||||||
|
NCP_SUPER_MAGIC = 0x564c
|
||||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||||
NETLINK_AUDIT = 0x9
|
NETLINK_AUDIT = 0x9
|
||||||
NETLINK_BROADCAST_ERROR = 0x4
|
NETLINK_BROADCAST_ERROR = 0x4
|
||||||
|
@ -992,6 +1077,37 @@ const (
|
||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
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
|
NL0 = 0x0
|
||||||
NL1 = 0x100
|
NL1 = 0x100
|
||||||
NLA_ALIGNTO = 0x4
|
NLA_ALIGNTO = 0x4
|
||||||
|
@ -1024,6 +1140,8 @@ const (
|
||||||
NLM_F_REQUEST = 0x1
|
NLM_F_REQUEST = 0x1
|
||||||
NLM_F_ROOT = 0x100
|
NLM_F_ROOT = 0x100
|
||||||
NOFLSH = 0x80
|
NOFLSH = 0x80
|
||||||
|
NSFS_MAGIC = 0x6e736673
|
||||||
|
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
OFILL = 0x40
|
OFILL = 0x40
|
||||||
|
@ -1031,7 +1149,9 @@ const (
|
||||||
ONLCR = 0x4
|
ONLCR = 0x4
|
||||||
ONLRET = 0x20
|
ONLRET = 0x20
|
||||||
ONOCR = 0x10
|
ONOCR = 0x10
|
||||||
|
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||||
OPOST = 0x1
|
OPOST = 0x1
|
||||||
|
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||||
O_ACCMODE = 0x3
|
O_ACCMODE = 0x3
|
||||||
O_APPEND = 0x400
|
O_APPEND = 0x400
|
||||||
O_ASYNC = 0x2000
|
O_ASYNC = 0x2000
|
||||||
|
@ -1116,16 +1236,20 @@ const (
|
||||||
PERF_EVENT_IOC_DISABLE = 0x2401
|
PERF_EVENT_IOC_DISABLE = 0x2401
|
||||||
PERF_EVENT_IOC_ENABLE = 0x2400
|
PERF_EVENT_IOC_ENABLE = 0x2400
|
||||||
PERF_EVENT_IOC_ID = 0x80082407
|
PERF_EVENT_IOC_ID = 0x80082407
|
||||||
|
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x4008240b
|
||||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
|
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x40042409
|
||||||
PERF_EVENT_IOC_PERIOD = 0x40082404
|
PERF_EVENT_IOC_PERIOD = 0x40082404
|
||||||
|
PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
|
||||||
PERF_EVENT_IOC_REFRESH = 0x2402
|
PERF_EVENT_IOC_REFRESH = 0x2402
|
||||||
PERF_EVENT_IOC_RESET = 0x2403
|
PERF_EVENT_IOC_RESET = 0x2403
|
||||||
PERF_EVENT_IOC_SET_BPF = 0x40042408
|
PERF_EVENT_IOC_SET_BPF = 0x40042408
|
||||||
PERF_EVENT_IOC_SET_FILTER = 0x40082406
|
PERF_EVENT_IOC_SET_FILTER = 0x40082406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||||
|
PIPEFS_MAGIC = 0x50495045
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
|
PROC_SUPER_MAGIC = 0x9fa0
|
||||||
PROT_EXEC = 0x4
|
PROT_EXEC = 0x4
|
||||||
PROT_GROWSDOWN = 0x1000000
|
PROT_GROWSDOWN = 0x1000000
|
||||||
PROT_GROWSUP = 0x2000000
|
PROT_GROWSUP = 0x2000000
|
||||||
|
@ -1168,6 +1292,7 @@ const (
|
||||||
PR_GET_PDEATHSIG = 0x2
|
PR_GET_PDEATHSIG = 0x2
|
||||||
PR_GET_SECCOMP = 0x15
|
PR_GET_SECCOMP = 0x15
|
||||||
PR_GET_SECUREBITS = 0x1b
|
PR_GET_SECUREBITS = 0x1b
|
||||||
|
PR_GET_SPECULATION_CTRL = 0x34
|
||||||
PR_GET_THP_DISABLE = 0x2a
|
PR_GET_THP_DISABLE = 0x2a
|
||||||
PR_GET_TID_ADDRESS = 0x28
|
PR_GET_TID_ADDRESS = 0x28
|
||||||
PR_GET_TIMERSLACK = 0x1e
|
PR_GET_TIMERSLACK = 0x1e
|
||||||
|
@ -1213,11 +1338,18 @@ const (
|
||||||
PR_SET_PTRACER_ANY = 0xffffffffffffffff
|
PR_SET_PTRACER_ANY = 0xffffffffffffffff
|
||||||
PR_SET_SECCOMP = 0x16
|
PR_SET_SECCOMP = 0x16
|
||||||
PR_SET_SECUREBITS = 0x1c
|
PR_SET_SECUREBITS = 0x1c
|
||||||
|
PR_SET_SPECULATION_CTRL = 0x35
|
||||||
PR_SET_THP_DISABLE = 0x29
|
PR_SET_THP_DISABLE = 0x29
|
||||||
PR_SET_TIMERSLACK = 0x1d
|
PR_SET_TIMERSLACK = 0x1d
|
||||||
PR_SET_TIMING = 0xe
|
PR_SET_TIMING = 0xe
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
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_GET_VL = 0x33
|
||||||
PR_SVE_SET_VL = 0x32
|
PR_SVE_SET_VL = 0x32
|
||||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||||
|
@ -1231,6 +1363,7 @@ const (
|
||||||
PR_TSC_SIGSEGV = 0x2
|
PR_TSC_SIGSEGV = 0x2
|
||||||
PR_UNALIGN_NOPRINT = 0x1
|
PR_UNALIGN_NOPRINT = 0x1
|
||||||
PR_UNALIGN_SIGBUS = 0x2
|
PR_UNALIGN_SIGBUS = 0x2
|
||||||
|
PSTOREFS_MAGIC = 0x6165676c
|
||||||
PTRACE_ATTACH = 0x10
|
PTRACE_ATTACH = 0x10
|
||||||
PTRACE_CONT = 0x7
|
PTRACE_CONT = 0x7
|
||||||
PTRACE_DETACH = 0x11
|
PTRACE_DETACH = 0x11
|
||||||
|
@ -1270,6 +1403,7 @@ const (
|
||||||
PTRACE_POKETEXT = 0x4
|
PTRACE_POKETEXT = 0x4
|
||||||
PTRACE_POKEUSR = 0x6
|
PTRACE_POKEUSR = 0x6
|
||||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||||
|
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||||
PTRACE_SEIZE = 0x4206
|
PTRACE_SEIZE = 0x4206
|
||||||
PTRACE_SETOPTIONS = 0x4200
|
PTRACE_SETOPTIONS = 0x4200
|
||||||
PTRACE_SETREGS = 0xd
|
PTRACE_SETREGS = 0xd
|
||||||
|
@ -1279,6 +1413,11 @@ const (
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
PTRACE_TRACEME = 0x0
|
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_AS = 0x9
|
||||||
RLIMIT_CORE = 0x4
|
RLIMIT_CORE = 0x4
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
|
@ -1328,6 +1467,33 @@ const (
|
||||||
RTCF_MASQ = 0x400000
|
RTCF_MASQ = 0x400000
|
||||||
RTCF_NAT = 0x800000
|
RTCF_NAT = 0x800000
|
||||||
RTCF_VALVE = 0x200000
|
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_ADDRCLASSMASK = 0xf8000000
|
||||||
RTF_ADDRCONF = 0x40000
|
RTF_ADDRCONF = 0x40000
|
||||||
RTF_ALLONLINK = 0x20000
|
RTF_ALLONLINK = 0x20000
|
||||||
|
@ -1464,6 +1630,8 @@ const (
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1548,6 +1716,23 @@ const (
|
||||||
SIOCSPGRP = 0x8902
|
SIOCSPGRP = 0x8902
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
SIOCWANDEV = 0x894a
|
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_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
|
@ -1658,6 +1843,8 @@ const (
|
||||||
SPLICE_F_MORE = 0x4
|
SPLICE_F_MORE = 0x4
|
||||||
SPLICE_F_MOVE = 0x1
|
SPLICE_F_MOVE = 0x1
|
||||||
SPLICE_F_NONBLOCK = 0x2
|
SPLICE_F_NONBLOCK = 0x2
|
||||||
|
SQUASHFS_MAGIC = 0x73717368
|
||||||
|
STACK_END_MAGIC = 0x57ac6e9d
|
||||||
STATX_ALL = 0xfff
|
STATX_ALL = 0xfff
|
||||||
STATX_ATIME = 0x20
|
STATX_ATIME = 0x20
|
||||||
STATX_ATTR_APPEND = 0x20
|
STATX_ATTR_APPEND = 0x20
|
||||||
|
@ -1679,6 +1866,8 @@ const (
|
||||||
STATX_TYPE = 0x1
|
STATX_TYPE = 0x1
|
||||||
STATX_UID = 0x8
|
STATX_UID = 0x8
|
||||||
STATX__RESERVED = 0x80000000
|
STATX__RESERVED = 0x80000000
|
||||||
|
SVE_MAGIC = 0x53564501
|
||||||
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
S_IFBLK = 0x6000
|
S_IFBLK = 0x6000
|
||||||
|
@ -1860,7 +2049,27 @@ const (
|
||||||
TIOCSTI = 0x5412
|
TIOCSTI = 0x5412
|
||||||
TIOCSWINSZ = 0x5414
|
TIOCSWINSZ = 0x5414
|
||||||
TIOCVHANGUP = 0x5437
|
TIOCVHANGUP = 0x5437
|
||||||
|
TMPFS_MAGIC = 0x1021994
|
||||||
TOSTOP = 0x100
|
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
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x401054d5
|
TUNATTACHFILTER = 0x401054d5
|
||||||
TUNDETACHFILTER = 0x401054d6
|
TUNDETACHFILTER = 0x401054d6
|
||||||
|
@ -1872,6 +2081,7 @@ const (
|
||||||
TUNGETVNETHDRSZ = 0x800454d7
|
TUNGETVNETHDRSZ = 0x800454d7
|
||||||
TUNGETVNETLE = 0x800454dd
|
TUNGETVNETLE = 0x800454dd
|
||||||
TUNSETDEBUG = 0x400454c9
|
TUNSETDEBUG = 0x400454c9
|
||||||
|
TUNSETFILTEREBPF = 0x800454e1
|
||||||
TUNSETGROUP = 0x400454ce
|
TUNSETGROUP = 0x400454ce
|
||||||
TUNSETIFF = 0x400454ca
|
TUNSETIFF = 0x400454ca
|
||||||
TUNSETIFINDEX = 0x400454da
|
TUNSETIFINDEX = 0x400454da
|
||||||
|
@ -1882,13 +2092,17 @@ const (
|
||||||
TUNSETPERSIST = 0x400454cb
|
TUNSETPERSIST = 0x400454cb
|
||||||
TUNSETQUEUE = 0x400454d9
|
TUNSETQUEUE = 0x400454d9
|
||||||
TUNSETSNDBUF = 0x400454d4
|
TUNSETSNDBUF = 0x400454d4
|
||||||
|
TUNSETSTEERINGEBPF = 0x800454e0
|
||||||
TUNSETTXFILTER = 0x400454d1
|
TUNSETTXFILTER = 0x400454d1
|
||||||
TUNSETVNETBE = 0x400454de
|
TUNSETVNETBE = 0x400454de
|
||||||
TUNSETVNETHDRSZ = 0x400454d8
|
TUNSETVNETHDRSZ = 0x400454d8
|
||||||
TUNSETVNETLE = 0x400454dc
|
TUNSETVNETLE = 0x400454dc
|
||||||
|
UDF_SUPER_MAGIC = 0x15013346
|
||||||
UMOUNT_NOFOLLOW = 0x8
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
|
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||||
UTIME_NOW = 0x3fffffff
|
UTIME_NOW = 0x3fffffff
|
||||||
UTIME_OMIT = 0x3ffffffe
|
UTIME_OMIT = 0x3ffffffe
|
||||||
|
V9FS_MAGIC = 0x1021997
|
||||||
VDISCARD = 0xd
|
VDISCARD = 0xd
|
||||||
VEOF = 0x4
|
VEOF = 0x4
|
||||||
VEOL = 0xb
|
VEOL = 0xb
|
||||||
|
@ -1930,6 +2144,86 @@ const (
|
||||||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||||
WDIOC_SETTIMEOUT = 0xc0045706
|
WDIOC_SETTIMEOUT = 0xc0045706
|
||||||
WEXITED = 0x4
|
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
|
WNOHANG = 0x1
|
||||||
WNOTHREAD = 0x20000000
|
WNOTHREAD = 0x20000000
|
||||||
WNOWAIT = 0x1000000
|
WNOWAIT = 0x1000000
|
||||||
|
@ -1939,7 +2233,9 @@ const (
|
||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
||||||
// Errors
|
// Errors
|
||||||
|
@ -2119,171 +2415,179 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// Error table
|
// Error table
|
||||||
var errors = [...]string{
|
var errorList = [...]struct {
|
||||||
1: "operation not permitted",
|
num syscall.Errno
|
||||||
2: "no such file or directory",
|
name string
|
||||||
3: "no such process",
|
desc string
|
||||||
4: "interrupted system call",
|
}{
|
||||||
5: "input/output error",
|
{1, "EPERM", "operation not permitted"},
|
||||||
6: "no such device or address",
|
{2, "ENOENT", "no such file or directory"},
|
||||||
7: "argument list too long",
|
{3, "ESRCH", "no such process"},
|
||||||
8: "exec format error",
|
{4, "EINTR", "interrupted system call"},
|
||||||
9: "bad file descriptor",
|
{5, "EIO", "input/output error"},
|
||||||
10: "no child processes",
|
{6, "ENXIO", "no such device or address"},
|
||||||
11: "resource temporarily unavailable",
|
{7, "E2BIG", "argument list too long"},
|
||||||
12: "cannot allocate memory",
|
{8, "ENOEXEC", "exec format error"},
|
||||||
13: "permission denied",
|
{9, "EBADF", "bad file descriptor"},
|
||||||
14: "bad address",
|
{10, "ECHILD", "no child processes"},
|
||||||
15: "block device required",
|
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||||
16: "device or resource busy",
|
{12, "ENOMEM", "cannot allocate memory"},
|
||||||
17: "file exists",
|
{13, "EACCES", "permission denied"},
|
||||||
18: "invalid cross-device link",
|
{14, "EFAULT", "bad address"},
|
||||||
19: "no such device",
|
{15, "ENOTBLK", "block device required"},
|
||||||
20: "not a directory",
|
{16, "EBUSY", "device or resource busy"},
|
||||||
21: "is a directory",
|
{17, "EEXIST", "file exists"},
|
||||||
22: "invalid argument",
|
{18, "EXDEV", "invalid cross-device link"},
|
||||||
23: "too many open files in system",
|
{19, "ENODEV", "no such device"},
|
||||||
24: "too many open files",
|
{20, "ENOTDIR", "not a directory"},
|
||||||
25: "inappropriate ioctl for device",
|
{21, "EISDIR", "is a directory"},
|
||||||
26: "text file busy",
|
{22, "EINVAL", "invalid argument"},
|
||||||
27: "file too large",
|
{23, "ENFILE", "too many open files in system"},
|
||||||
28: "no space left on device",
|
{24, "EMFILE", "too many open files"},
|
||||||
29: "illegal seek",
|
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||||
30: "read-only file system",
|
{26, "ETXTBSY", "text file busy"},
|
||||||
31: "too many links",
|
{27, "EFBIG", "file too large"},
|
||||||
32: "broken pipe",
|
{28, "ENOSPC", "no space left on device"},
|
||||||
33: "numerical argument out of domain",
|
{29, "ESPIPE", "illegal seek"},
|
||||||
34: "numerical result out of range",
|
{30, "EROFS", "read-only file system"},
|
||||||
35: "resource deadlock avoided",
|
{31, "EMLINK", "too many links"},
|
||||||
36: "file name too long",
|
{32, "EPIPE", "broken pipe"},
|
||||||
37: "no locks available",
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
38: "function not implemented",
|
{34, "ERANGE", "numerical result out of range"},
|
||||||
39: "directory not empty",
|
{35, "EDEADLK", "resource deadlock avoided"},
|
||||||
40: "too many levels of symbolic links",
|
{36, "ENAMETOOLONG", "file name too long"},
|
||||||
42: "no message of desired type",
|
{37, "ENOLCK", "no locks available"},
|
||||||
43: "identifier removed",
|
{38, "ENOSYS", "function not implemented"},
|
||||||
44: "channel number out of range",
|
{39, "ENOTEMPTY", "directory not empty"},
|
||||||
45: "level 2 not synchronized",
|
{40, "ELOOP", "too many levels of symbolic links"},
|
||||||
46: "level 3 halted",
|
{42, "ENOMSG", "no message of desired type"},
|
||||||
47: "level 3 reset",
|
{43, "EIDRM", "identifier removed"},
|
||||||
48: "link number out of range",
|
{44, "ECHRNG", "channel number out of range"},
|
||||||
49: "protocol driver not attached",
|
{45, "EL2NSYNC", "level 2 not synchronized"},
|
||||||
50: "no CSI structure available",
|
{46, "EL3HLT", "level 3 halted"},
|
||||||
51: "level 2 halted",
|
{47, "EL3RST", "level 3 reset"},
|
||||||
52: "invalid exchange",
|
{48, "ELNRNG", "link number out of range"},
|
||||||
53: "invalid request descriptor",
|
{49, "EUNATCH", "protocol driver not attached"},
|
||||||
54: "exchange full",
|
{50, "ENOCSI", "no CSI structure available"},
|
||||||
55: "no anode",
|
{51, "EL2HLT", "level 2 halted"},
|
||||||
56: "invalid request code",
|
{52, "EBADE", "invalid exchange"},
|
||||||
57: "invalid slot",
|
{53, "EBADR", "invalid request descriptor"},
|
||||||
59: "bad font file format",
|
{54, "EXFULL", "exchange full"},
|
||||||
60: "device not a stream",
|
{55, "ENOANO", "no anode"},
|
||||||
61: "no data available",
|
{56, "EBADRQC", "invalid request code"},
|
||||||
62: "timer expired",
|
{57, "EBADSLT", "invalid slot"},
|
||||||
63: "out of streams resources",
|
{59, "EBFONT", "bad font file format"},
|
||||||
64: "machine is not on the network",
|
{60, "ENOSTR", "device not a stream"},
|
||||||
65: "package not installed",
|
{61, "ENODATA", "no data available"},
|
||||||
66: "object is remote",
|
{62, "ETIME", "timer expired"},
|
||||||
67: "link has been severed",
|
{63, "ENOSR", "out of streams resources"},
|
||||||
68: "advertise error",
|
{64, "ENONET", "machine is not on the network"},
|
||||||
69: "srmount error",
|
{65, "ENOPKG", "package not installed"},
|
||||||
70: "communication error on send",
|
{66, "EREMOTE", "object is remote"},
|
||||||
71: "protocol error",
|
{67, "ENOLINK", "link has been severed"},
|
||||||
72: "multihop attempted",
|
{68, "EADV", "advertise error"},
|
||||||
73: "RFS specific error",
|
{69, "ESRMNT", "srmount error"},
|
||||||
74: "bad message",
|
{70, "ECOMM", "communication error on send"},
|
||||||
75: "value too large for defined data type",
|
{71, "EPROTO", "protocol error"},
|
||||||
76: "name not unique on network",
|
{72, "EMULTIHOP", "multihop attempted"},
|
||||||
77: "file descriptor in bad state",
|
{73, "EDOTDOT", "RFS specific error"},
|
||||||
78: "remote address changed",
|
{74, "EBADMSG", "bad message"},
|
||||||
79: "can not access a needed shared library",
|
{75, "EOVERFLOW", "value too large for defined data type"},
|
||||||
80: "accessing a corrupted shared library",
|
{76, "ENOTUNIQ", "name not unique on network"},
|
||||||
81: ".lib section in a.out corrupted",
|
{77, "EBADFD", "file descriptor in bad state"},
|
||||||
82: "attempting to link in too many shared libraries",
|
{78, "EREMCHG", "remote address changed"},
|
||||||
83: "cannot exec a shared library directly",
|
{79, "ELIBACC", "can not access a needed shared library"},
|
||||||
84: "invalid or incomplete multibyte or wide character",
|
{80, "ELIBBAD", "accessing a corrupted shared library"},
|
||||||
85: "interrupted system call should be restarted",
|
{81, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||||
86: "streams pipe error",
|
{82, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||||
87: "too many users",
|
{83, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||||
88: "socket operation on non-socket",
|
{84, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||||
89: "destination address required",
|
{85, "ERESTART", "interrupted system call should be restarted"},
|
||||||
90: "message too long",
|
{86, "ESTRPIPE", "streams pipe error"},
|
||||||
91: "protocol wrong type for socket",
|
{87, "EUSERS", "too many users"},
|
||||||
92: "protocol not available",
|
{88, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
93: "protocol not supported",
|
{89, "EDESTADDRREQ", "destination address required"},
|
||||||
94: "socket type not supported",
|
{90, "EMSGSIZE", "message too long"},
|
||||||
95: "operation not supported",
|
{91, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||||
96: "protocol family not supported",
|
{92, "ENOPROTOOPT", "protocol not available"},
|
||||||
97: "address family not supported by protocol",
|
{93, "EPROTONOSUPPORT", "protocol not supported"},
|
||||||
98: "address already in use",
|
{94, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||||
99: "cannot assign requested address",
|
{95, "ENOTSUP", "operation not supported"},
|
||||||
100: "network is down",
|
{96, "EPFNOSUPPORT", "protocol family not supported"},
|
||||||
101: "network is unreachable",
|
{97, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||||
102: "network dropped connection on reset",
|
{98, "EADDRINUSE", "address already in use"},
|
||||||
103: "software caused connection abort",
|
{99, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||||
104: "connection reset by peer",
|
{100, "ENETDOWN", "network is down"},
|
||||||
105: "no buffer space available",
|
{101, "ENETUNREACH", "network is unreachable"},
|
||||||
106: "transport endpoint is already connected",
|
{102, "ENETRESET", "network dropped connection on reset"},
|
||||||
107: "transport endpoint is not connected",
|
{103, "ECONNABORTED", "software caused connection abort"},
|
||||||
108: "cannot send after transport endpoint shutdown",
|
{104, "ECONNRESET", "connection reset by peer"},
|
||||||
109: "too many references: cannot splice",
|
{105, "ENOBUFS", "no buffer space available"},
|
||||||
110: "connection timed out",
|
{106, "EISCONN", "transport endpoint is already connected"},
|
||||||
111: "connection refused",
|
{107, "ENOTCONN", "transport endpoint is not connected"},
|
||||||
112: "host is down",
|
{108, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||||
113: "no route to host",
|
{109, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||||
114: "operation already in progress",
|
{110, "ETIMEDOUT", "connection timed out"},
|
||||||
115: "operation now in progress",
|
{111, "ECONNREFUSED", "connection refused"},
|
||||||
116: "stale file handle",
|
{112, "EHOSTDOWN", "host is down"},
|
||||||
117: "structure needs cleaning",
|
{113, "EHOSTUNREACH", "no route to host"},
|
||||||
118: "not a XENIX named type file",
|
{114, "EALREADY", "operation already in progress"},
|
||||||
119: "no XENIX semaphores available",
|
{115, "EINPROGRESS", "operation now in progress"},
|
||||||
120: "is a named type file",
|
{116, "ESTALE", "stale file handle"},
|
||||||
121: "remote I/O error",
|
{117, "EUCLEAN", "structure needs cleaning"},
|
||||||
122: "disk quota exceeded",
|
{118, "ENOTNAM", "not a XENIX named type file"},
|
||||||
123: "no medium found",
|
{119, "ENAVAIL", "no XENIX semaphores available"},
|
||||||
124: "wrong medium type",
|
{120, "EISNAM", "is a named type file"},
|
||||||
125: "operation canceled",
|
{121, "EREMOTEIO", "remote I/O error"},
|
||||||
126: "required key not available",
|
{122, "EDQUOT", "disk quota exceeded"},
|
||||||
127: "key has expired",
|
{123, "ENOMEDIUM", "no medium found"},
|
||||||
128: "key has been revoked",
|
{124, "EMEDIUMTYPE", "wrong medium type"},
|
||||||
129: "key was rejected by service",
|
{125, "ECANCELED", "operation canceled"},
|
||||||
130: "owner died",
|
{126, "ENOKEY", "required key not available"},
|
||||||
131: "state not recoverable",
|
{127, "EKEYEXPIRED", "key has expired"},
|
||||||
132: "operation not possible due to RF-kill",
|
{128, "EKEYREVOKED", "key has been revoked"},
|
||||||
133: "memory page has hardware error",
|
{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
|
// Signal table
|
||||||
var signals = [...]string{
|
var signalList = [...]struct {
|
||||||
1: "hangup",
|
num syscall.Signal
|
||||||
2: "interrupt",
|
name string
|
||||||
3: "quit",
|
desc string
|
||||||
4: "illegal instruction",
|
}{
|
||||||
5: "trace/breakpoint trap",
|
{1, "SIGHUP", "hangup"},
|
||||||
6: "aborted",
|
{2, "SIGINT", "interrupt"},
|
||||||
7: "bus error",
|
{3, "SIGQUIT", "quit"},
|
||||||
8: "floating point exception",
|
{4, "SIGILL", "illegal instruction"},
|
||||||
9: "killed",
|
{5, "SIGTRAP", "trace/breakpoint trap"},
|
||||||
10: "user defined signal 1",
|
{6, "SIGABRT", "aborted"},
|
||||||
11: "segmentation fault",
|
{7, "SIGBUS", "bus error"},
|
||||||
12: "user defined signal 2",
|
{8, "SIGFPE", "floating point exception"},
|
||||||
13: "broken pipe",
|
{9, "SIGKILL", "killed"},
|
||||||
14: "alarm clock",
|
{10, "SIGUSR1", "user defined signal 1"},
|
||||||
15: "terminated",
|
{11, "SIGSEGV", "segmentation fault"},
|
||||||
16: "stack fault",
|
{12, "SIGUSR2", "user defined signal 2"},
|
||||||
17: "child exited",
|
{13, "SIGPIPE", "broken pipe"},
|
||||||
18: "continued",
|
{14, "SIGALRM", "alarm clock"},
|
||||||
19: "stopped (signal)",
|
{15, "SIGTERM", "terminated"},
|
||||||
20: "stopped",
|
{16, "SIGSTKFLT", "stack fault"},
|
||||||
21: "stopped (tty input)",
|
{17, "SIGCHLD", "child exited"},
|
||||||
22: "stopped (tty output)",
|
{18, "SIGCONT", "continued"},
|
||||||
23: "urgent I/O condition",
|
{19, "SIGSTOP", "stopped (signal)"},
|
||||||
24: "CPU time limit exceeded",
|
{20, "SIGTSTP", "stopped"},
|
||||||
25: "file size limit exceeded",
|
{21, "SIGTTIN", "stopped (tty input)"},
|
||||||
26: "virtual timer expired",
|
{22, "SIGTTOU", "stopped (tty output)"},
|
||||||
27: "profiling timer expired",
|
{23, "SIGURG", "urgent I/O condition"},
|
||||||
28: "window changed",
|
{24, "SIGXCPU", "CPU time limit exceeded"},
|
||||||
29: "I/O possible",
|
{25, "SIGXFSZ", "file size limit exceeded"},
|
||||||
30: "power failure",
|
{26, "SIGVTALRM", "virtual timer expired"},
|
||||||
31: "bad system call",
|
{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
|
// +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
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
@ -11,6 +11,11 @@ package unix
|
||||||
import "syscall"
|
import "syscall"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
AAFS_MAGIC = 0x5a3c69f0
|
||||||
|
ADFS_SUPER_MAGIC = 0xadf5
|
||||||
|
AFFS_SUPER_MAGIC = 0xadff
|
||||||
|
AFS_FS_MAGIC = 0x6b414653
|
||||||
|
AFS_SUPER_MAGIC = 0x5346414f
|
||||||
AF_ALG = 0x26
|
AF_ALG = 0x26
|
||||||
AF_APPLETALK = 0x5
|
AF_APPLETALK = 0x5
|
||||||
AF_ASH = 0x12
|
AF_ASH = 0x12
|
||||||
|
@ -66,6 +71,7 @@ const (
|
||||||
ALG_SET_IV = 0x2
|
ALG_SET_IV = 0x2
|
||||||
ALG_SET_KEY = 0x1
|
ALG_SET_KEY = 0x1
|
||||||
ALG_SET_OP = 0x3
|
ALG_SET_OP = 0x3
|
||||||
|
ANON_INODE_FS_MAGIC = 0x9041934
|
||||||
ARPHRD_6LOWPAN = 0x339
|
ARPHRD_6LOWPAN = 0x339
|
||||||
ARPHRD_ADAPT = 0x108
|
ARPHRD_ADAPT = 0x108
|
||||||
ARPHRD_APPLETLK = 0x8
|
ARPHRD_APPLETLK = 0x8
|
||||||
|
@ -133,6 +139,7 @@ const (
|
||||||
ARPHRD_VOID = 0xffff
|
ARPHRD_VOID = 0xffff
|
||||||
ARPHRD_VSOCKMON = 0x33a
|
ARPHRD_VSOCKMON = 0x33a
|
||||||
ARPHRD_X25 = 0x10f
|
ARPHRD_X25 = 0x10f
|
||||||
|
AUTOFS_SUPER_MAGIC = 0x187
|
||||||
B0 = 0x0
|
B0 = 0x0
|
||||||
B1000000 = 0x1008
|
B1000000 = 0x1008
|
||||||
B110 = 0x3
|
B110 = 0x3
|
||||||
|
@ -164,6 +171,9 @@ const (
|
||||||
B75 = 0x2
|
B75 = 0x2
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x40041270
|
BLKBSZGET = 0x40041270
|
||||||
BLKBSZSET = 0x80041271
|
BLKBSZSET = 0x80041271
|
||||||
BLKFLSBUF = 0x20001261
|
BLKFLSBUF = 0x20001261
|
||||||
|
@ -188,6 +198,7 @@ const (
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
|
@ -229,6 +240,8 @@ const (
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||||
|
BTRFS_TEST_MAGIC = 0x73727279
|
||||||
CAN_BCM = 0x2
|
CAN_BCM = 0x2
|
||||||
CAN_EFF_FLAG = 0x80000000
|
CAN_EFF_FLAG = 0x80000000
|
||||||
CAN_EFF_ID_BITS = 0x1d
|
CAN_EFF_ID_BITS = 0x1d
|
||||||
|
@ -252,6 +265,8 @@ const (
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
|
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||||
|
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||||
CIBAUD = 0x100f0000
|
CIBAUD = 0x100f0000
|
||||||
CLOCAL = 0x800
|
CLOCAL = 0x800
|
||||||
CLOCK_BOOTTIME = 0x7
|
CLOCK_BOOTTIME = 0x7
|
||||||
|
@ -294,10 +309,12 @@ const (
|
||||||
CLONE_VFORK = 0x4000
|
CLONE_VFORK = 0x4000
|
||||||
CLONE_VM = 0x100
|
CLONE_VM = 0x100
|
||||||
CMSPAR = 0x40000000
|
CMSPAR = 0x40000000
|
||||||
|
CODA_SUPER_MAGIC = 0x73757245
|
||||||
CR0 = 0x0
|
CR0 = 0x0
|
||||||
CR1 = 0x200
|
CR1 = 0x200
|
||||||
CR2 = 0x400
|
CR2 = 0x400
|
||||||
CR3 = 0x600
|
CR3 = 0x600
|
||||||
|
CRAMFS_MAGIC = 0x28cd3d45
|
||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
@ -312,6 +329,9 @@ const (
|
||||||
CSTOP = 0x13
|
CSTOP = 0x13
|
||||||
CSTOPB = 0x40
|
CSTOPB = 0x40
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
|
DAXFS_MAGIC = 0x64646178
|
||||||
|
DEBUGFS_MAGIC = 0x64626720
|
||||||
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -328,9 +348,12 @@ const (
|
||||||
ECHOKE = 0x800
|
ECHOKE = 0x800
|
||||||
ECHONL = 0x40
|
ECHONL = 0x40
|
||||||
ECHOPRT = 0x400
|
ECHOPRT = 0x400
|
||||||
|
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||||
EFD_CLOEXEC = 0x80000
|
EFD_CLOEXEC = 0x80000
|
||||||
EFD_NONBLOCK = 0x80
|
EFD_NONBLOCK = 0x80
|
||||||
EFD_SEMAPHORE = 0x1
|
EFD_SEMAPHORE = 0x1
|
||||||
|
EFIVARFS_MAGIC = 0xde5e81e4
|
||||||
|
EFS_SUPER_MAGIC = 0x414a53
|
||||||
ENCODING_DEFAULT = 0x0
|
ENCODING_DEFAULT = 0x0
|
||||||
ENCODING_FM_MARK = 0x3
|
ENCODING_FM_MARK = 0x3
|
||||||
ENCODING_FM_SPACE = 0x4
|
ENCODING_FM_SPACE = 0x4
|
||||||
|
@ -392,6 +415,7 @@ const (
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
|
ETH_P_ERSPAN2 = 0x22eb
|
||||||
ETH_P_FCOE = 0x8906
|
ETH_P_FCOE = 0x8906
|
||||||
ETH_P_FIP = 0x8914
|
ETH_P_FIP = 0x8914
|
||||||
ETH_P_HDLC = 0x19
|
ETH_P_HDLC = 0x19
|
||||||
|
@ -425,6 +449,7 @@ const (
|
||||||
ETH_P_PPP_DISC = 0x8863
|
ETH_P_PPP_DISC = 0x8863
|
||||||
ETH_P_PPP_MP = 0x8
|
ETH_P_PPP_MP = 0x8
|
||||||
ETH_P_PPP_SES = 0x8864
|
ETH_P_PPP_SES = 0x8864
|
||||||
|
ETH_P_PREAUTH = 0x88c7
|
||||||
ETH_P_PRP = 0x88fb
|
ETH_P_PRP = 0x88fb
|
||||||
ETH_P_PUP = 0x200
|
ETH_P_PUP = 0x200
|
||||||
ETH_P_PUPAT = 0x201
|
ETH_P_PUPAT = 0x201
|
||||||
|
@ -445,9 +470,14 @@ const (
|
||||||
ETH_P_WCCP = 0x883e
|
ETH_P_WCCP = 0x883e
|
||||||
ETH_P_X25 = 0x805
|
ETH_P_X25 = 0x805
|
||||||
ETH_P_XDSA = 0xf8
|
ETH_P_XDSA = 0xf8
|
||||||
|
EXABYTE_ENABLE_NEST = 0xf0
|
||||||
|
EXT2_SUPER_MAGIC = 0xef53
|
||||||
|
EXT3_SUPER_MAGIC = 0xef53
|
||||||
|
EXT4_SUPER_MAGIC = 0xef53
|
||||||
EXTA = 0xe
|
EXTA = 0xe
|
||||||
EXTB = 0xf
|
EXTB = 0xf
|
||||||
EXTPROC = 0x10000
|
EXTPROC = 0x10000
|
||||||
|
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||||
FALLOC_FL_INSERT_RANGE = 0x20
|
FALLOC_FL_INSERT_RANGE = 0x20
|
||||||
FALLOC_FL_KEEP_SIZE = 0x1
|
FALLOC_FL_KEEP_SIZE = 0x1
|
||||||
|
@ -481,6 +511,7 @@ const (
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x3
|
||||||
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
F_DUPFD_CLOEXEC = 0x406
|
F_DUPFD_CLOEXEC = 0x406
|
||||||
|
@ -542,6 +573,49 @@ const (
|
||||||
GENL_UNS_ADMIN_PERM = 0x10
|
GENL_UNS_ADMIN_PERM = 0x10
|
||||||
GRND_NONBLOCK = 0x1
|
GRND_NONBLOCK = 0x1
|
||||||
GRND_RANDOM = 0x2
|
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
|
HUPCL = 0x400
|
||||||
IBSHIFT = 0x10
|
IBSHIFT = 0x10
|
||||||
ICANON = 0x2
|
ICANON = 0x2
|
||||||
|
@ -792,12 +866,14 @@ const (
|
||||||
IP_UNICAST_IF = 0x32
|
IP_UNICAST_IF = 0x32
|
||||||
IP_XFRM_POLICY = 0x11
|
IP_XFRM_POLICY = 0x11
|
||||||
ISIG = 0x1
|
ISIG = 0x1
|
||||||
|
ISOFS_SUPER_MAGIC = 0x9660
|
||||||
ISTRIP = 0x20
|
ISTRIP = 0x20
|
||||||
IUCLC = 0x200
|
IUCLC = 0x200
|
||||||
IUTF8 = 0x4000
|
IUTF8 = 0x4000
|
||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
|
@ -894,9 +970,15 @@ const (
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
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_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
MSG_CONFIRM = 0x800
|
MSG_CONFIRM = 0x800
|
||||||
|
@ -956,7 +1038,9 @@ const (
|
||||||
MS_SYNCHRONOUS = 0x10
|
MS_SYNCHRONOUS = 0x10
|
||||||
MS_UNBINDABLE = 0x20000
|
MS_UNBINDABLE = 0x20000
|
||||||
MS_VERBOSE = 0x8000
|
MS_VERBOSE = 0x8000
|
||||||
|
MTD_INODE_FS_MAGIC = 0x11307854
|
||||||
NAME_MAX = 0xff
|
NAME_MAX = 0xff
|
||||||
|
NCP_SUPER_MAGIC = 0x564c
|
||||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||||
NETLINK_AUDIT = 0x9
|
NETLINK_AUDIT = 0x9
|
||||||
NETLINK_BROADCAST_ERROR = 0x4
|
NETLINK_BROADCAST_ERROR = 0x4
|
||||||
|
@ -991,6 +1075,37 @@ const (
|
||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
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
|
NL0 = 0x0
|
||||||
NL1 = 0x100
|
NL1 = 0x100
|
||||||
NLA_ALIGNTO = 0x4
|
NLA_ALIGNTO = 0x4
|
||||||
|
@ -1023,6 +1138,8 @@ const (
|
||||||
NLM_F_REQUEST = 0x1
|
NLM_F_REQUEST = 0x1
|
||||||
NLM_F_ROOT = 0x100
|
NLM_F_ROOT = 0x100
|
||||||
NOFLSH = 0x80
|
NOFLSH = 0x80
|
||||||
|
NSFS_MAGIC = 0x6e736673
|
||||||
|
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
OFILL = 0x40
|
OFILL = 0x40
|
||||||
|
@ -1030,7 +1147,9 @@ const (
|
||||||
ONLCR = 0x4
|
ONLCR = 0x4
|
||||||
ONLRET = 0x20
|
ONLRET = 0x20
|
||||||
ONOCR = 0x10
|
ONOCR = 0x10
|
||||||
|
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||||
OPOST = 0x1
|
OPOST = 0x1
|
||||||
|
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||||
O_ACCMODE = 0x3
|
O_ACCMODE = 0x3
|
||||||
O_APPEND = 0x8
|
O_APPEND = 0x8
|
||||||
O_ASYNC = 0x1000
|
O_ASYNC = 0x1000
|
||||||
|
@ -1115,16 +1234,20 @@ const (
|
||||||
PERF_EVENT_IOC_DISABLE = 0x20002401
|
PERF_EVENT_IOC_DISABLE = 0x20002401
|
||||||
PERF_EVENT_IOC_ENABLE = 0x20002400
|
PERF_EVENT_IOC_ENABLE = 0x20002400
|
||||||
PERF_EVENT_IOC_ID = 0x40042407
|
PERF_EVENT_IOC_ID = 0x40042407
|
||||||
|
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8004240b
|
||||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
|
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
|
||||||
PERF_EVENT_IOC_PERIOD = 0x80082404
|
PERF_EVENT_IOC_PERIOD = 0x80082404
|
||||||
|
PERF_EVENT_IOC_QUERY_BPF = 0xc004240a
|
||||||
PERF_EVENT_IOC_REFRESH = 0x20002402
|
PERF_EVENT_IOC_REFRESH = 0x20002402
|
||||||
PERF_EVENT_IOC_RESET = 0x20002403
|
PERF_EVENT_IOC_RESET = 0x20002403
|
||||||
PERF_EVENT_IOC_SET_BPF = 0x80042408
|
PERF_EVENT_IOC_SET_BPF = 0x80042408
|
||||||
PERF_EVENT_IOC_SET_FILTER = 0x80042406
|
PERF_EVENT_IOC_SET_FILTER = 0x80042406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||||
|
PIPEFS_MAGIC = 0x50495045
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
|
PROC_SUPER_MAGIC = 0x9fa0
|
||||||
PROT_EXEC = 0x4
|
PROT_EXEC = 0x4
|
||||||
PROT_GROWSDOWN = 0x1000000
|
PROT_GROWSDOWN = 0x1000000
|
||||||
PROT_GROWSUP = 0x2000000
|
PROT_GROWSUP = 0x2000000
|
||||||
|
@ -1167,6 +1290,7 @@ const (
|
||||||
PR_GET_PDEATHSIG = 0x2
|
PR_GET_PDEATHSIG = 0x2
|
||||||
PR_GET_SECCOMP = 0x15
|
PR_GET_SECCOMP = 0x15
|
||||||
PR_GET_SECUREBITS = 0x1b
|
PR_GET_SECUREBITS = 0x1b
|
||||||
|
PR_GET_SPECULATION_CTRL = 0x34
|
||||||
PR_GET_THP_DISABLE = 0x2a
|
PR_GET_THP_DISABLE = 0x2a
|
||||||
PR_GET_TID_ADDRESS = 0x28
|
PR_GET_TID_ADDRESS = 0x28
|
||||||
PR_GET_TIMERSLACK = 0x1e
|
PR_GET_TIMERSLACK = 0x1e
|
||||||
|
@ -1212,11 +1336,18 @@ const (
|
||||||
PR_SET_PTRACER_ANY = 0xffffffff
|
PR_SET_PTRACER_ANY = 0xffffffff
|
||||||
PR_SET_SECCOMP = 0x16
|
PR_SET_SECCOMP = 0x16
|
||||||
PR_SET_SECUREBITS = 0x1c
|
PR_SET_SECUREBITS = 0x1c
|
||||||
|
PR_SET_SPECULATION_CTRL = 0x35
|
||||||
PR_SET_THP_DISABLE = 0x29
|
PR_SET_THP_DISABLE = 0x29
|
||||||
PR_SET_TIMERSLACK = 0x1d
|
PR_SET_TIMERSLACK = 0x1d
|
||||||
PR_SET_TIMING = 0xe
|
PR_SET_TIMING = 0xe
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
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_GET_VL = 0x33
|
||||||
PR_SVE_SET_VL = 0x32
|
PR_SVE_SET_VL = 0x32
|
||||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||||
|
@ -1230,6 +1361,7 @@ const (
|
||||||
PR_TSC_SIGSEGV = 0x2
|
PR_TSC_SIGSEGV = 0x2
|
||||||
PR_UNALIGN_NOPRINT = 0x1
|
PR_UNALIGN_NOPRINT = 0x1
|
||||||
PR_UNALIGN_SIGBUS = 0x2
|
PR_UNALIGN_SIGBUS = 0x2
|
||||||
|
PSTOREFS_MAGIC = 0x6165676c
|
||||||
PTRACE_ATTACH = 0x10
|
PTRACE_ATTACH = 0x10
|
||||||
PTRACE_CONT = 0x7
|
PTRACE_CONT = 0x7
|
||||||
PTRACE_DETACH = 0x11
|
PTRACE_DETACH = 0x11
|
||||||
|
@ -1278,6 +1410,7 @@ const (
|
||||||
PTRACE_POKETEXT_3264 = 0xc2
|
PTRACE_POKETEXT_3264 = 0xc2
|
||||||
PTRACE_POKEUSR = 0x6
|
PTRACE_POKEUSR = 0x6
|
||||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||||
|
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||||
PTRACE_SEIZE = 0x4206
|
PTRACE_SEIZE = 0x4206
|
||||||
PTRACE_SETFPREGS = 0xf
|
PTRACE_SETFPREGS = 0xf
|
||||||
PTRACE_SETOPTIONS = 0x4200
|
PTRACE_SETOPTIONS = 0x4200
|
||||||
|
@ -1290,6 +1423,11 @@ const (
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
PTRACE_TRACEME = 0x0
|
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_AS = 0x6
|
||||||
RLIMIT_CORE = 0x4
|
RLIMIT_CORE = 0x4
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
|
@ -1339,6 +1477,33 @@ const (
|
||||||
RTCF_MASQ = 0x400000
|
RTCF_MASQ = 0x400000
|
||||||
RTCF_NAT = 0x800000
|
RTCF_NAT = 0x800000
|
||||||
RTCF_VALVE = 0x200000
|
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_ADDRCLASSMASK = 0xf8000000
|
||||||
RTF_ADDRCONF = 0x40000
|
RTF_ADDRCONF = 0x40000
|
||||||
RTF_ALLONLINK = 0x20000
|
RTF_ALLONLINK = 0x20000
|
||||||
|
@ -1475,6 +1640,8 @@ const (
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1559,6 +1726,23 @@ const (
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
SIOCWANDEV = 0x894a
|
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_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x1
|
SOCK_DGRAM = 0x1
|
||||||
|
@ -1670,6 +1854,8 @@ const (
|
||||||
SPLICE_F_MORE = 0x4
|
SPLICE_F_MORE = 0x4
|
||||||
SPLICE_F_MOVE = 0x1
|
SPLICE_F_MOVE = 0x1
|
||||||
SPLICE_F_NONBLOCK = 0x2
|
SPLICE_F_NONBLOCK = 0x2
|
||||||
|
SQUASHFS_MAGIC = 0x73717368
|
||||||
|
STACK_END_MAGIC = 0x57ac6e9d
|
||||||
STATX_ALL = 0xfff
|
STATX_ALL = 0xfff
|
||||||
STATX_ATIME = 0x20
|
STATX_ATIME = 0x20
|
||||||
STATX_ATTR_APPEND = 0x20
|
STATX_ATTR_APPEND = 0x20
|
||||||
|
@ -1691,6 +1877,7 @@ const (
|
||||||
STATX_TYPE = 0x1
|
STATX_TYPE = 0x1
|
||||||
STATX_UID = 0x8
|
STATX_UID = 0x8
|
||||||
STATX__RESERVED = 0x80000000
|
STATX__RESERVED = 0x80000000
|
||||||
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
S_IFBLK = 0x6000
|
S_IFBLK = 0x6000
|
||||||
|
@ -1873,7 +2060,27 @@ const (
|
||||||
TIOCSTI = 0x5472
|
TIOCSTI = 0x5472
|
||||||
TIOCSWINSZ = 0x80087467
|
TIOCSWINSZ = 0x80087467
|
||||||
TIOCVHANGUP = 0x5437
|
TIOCVHANGUP = 0x5437
|
||||||
|
TMPFS_MAGIC = 0x1021994
|
||||||
TOSTOP = 0x8000
|
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
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x800854d5
|
TUNATTACHFILTER = 0x800854d5
|
||||||
TUNDETACHFILTER = 0x800854d6
|
TUNDETACHFILTER = 0x800854d6
|
||||||
|
@ -1885,6 +2092,7 @@ const (
|
||||||
TUNGETVNETHDRSZ = 0x400454d7
|
TUNGETVNETHDRSZ = 0x400454d7
|
||||||
TUNGETVNETLE = 0x400454dd
|
TUNGETVNETLE = 0x400454dd
|
||||||
TUNSETDEBUG = 0x800454c9
|
TUNSETDEBUG = 0x800454c9
|
||||||
|
TUNSETFILTEREBPF = 0x400454e1
|
||||||
TUNSETGROUP = 0x800454ce
|
TUNSETGROUP = 0x800454ce
|
||||||
TUNSETIFF = 0x800454ca
|
TUNSETIFF = 0x800454ca
|
||||||
TUNSETIFINDEX = 0x800454da
|
TUNSETIFINDEX = 0x800454da
|
||||||
|
@ -1895,13 +2103,17 @@ const (
|
||||||
TUNSETPERSIST = 0x800454cb
|
TUNSETPERSIST = 0x800454cb
|
||||||
TUNSETQUEUE = 0x800454d9
|
TUNSETQUEUE = 0x800454d9
|
||||||
TUNSETSNDBUF = 0x800454d4
|
TUNSETSNDBUF = 0x800454d4
|
||||||
|
TUNSETSTEERINGEBPF = 0x400454e0
|
||||||
TUNSETTXFILTER = 0x800454d1
|
TUNSETTXFILTER = 0x800454d1
|
||||||
TUNSETVNETBE = 0x800454de
|
TUNSETVNETBE = 0x800454de
|
||||||
TUNSETVNETHDRSZ = 0x800454d8
|
TUNSETVNETHDRSZ = 0x800454d8
|
||||||
TUNSETVNETLE = 0x800454dc
|
TUNSETVNETLE = 0x800454dc
|
||||||
|
UDF_SUPER_MAGIC = 0x15013346
|
||||||
UMOUNT_NOFOLLOW = 0x8
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
|
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||||
UTIME_NOW = 0x3fffffff
|
UTIME_NOW = 0x3fffffff
|
||||||
UTIME_OMIT = 0x3ffffffe
|
UTIME_OMIT = 0x3ffffffe
|
||||||
|
V9FS_MAGIC = 0x1021997
|
||||||
VDISCARD = 0xd
|
VDISCARD = 0xd
|
||||||
VEOF = 0x10
|
VEOF = 0x10
|
||||||
VEOL = 0x11
|
VEOL = 0x11
|
||||||
|
@ -1944,6 +2156,86 @@ const (
|
||||||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||||
WDIOC_SETTIMEOUT = 0xc0045706
|
WDIOC_SETTIMEOUT = 0xc0045706
|
||||||
WEXITED = 0x4
|
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
|
WNOHANG = 0x1
|
||||||
WNOTHREAD = 0x20000000
|
WNOTHREAD = 0x20000000
|
||||||
WNOWAIT = 0x1000000
|
WNOWAIT = 0x1000000
|
||||||
|
@ -1953,7 +2245,9 @@ const (
|
||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
||||||
// Errors
|
// Errors
|
||||||
|
@ -2135,174 +2429,182 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// Error table
|
// Error table
|
||||||
var errors = [...]string{
|
var errorList = [...]struct {
|
||||||
1: "operation not permitted",
|
num syscall.Errno
|
||||||
2: "no such file or directory",
|
name string
|
||||||
3: "no such process",
|
desc string
|
||||||
4: "interrupted system call",
|
}{
|
||||||
5: "input/output error",
|
{1, "EPERM", "operation not permitted"},
|
||||||
6: "no such device or address",
|
{2, "ENOENT", "no such file or directory"},
|
||||||
7: "argument list too long",
|
{3, "ESRCH", "no such process"},
|
||||||
8: "exec format error",
|
{4, "EINTR", "interrupted system call"},
|
||||||
9: "bad file descriptor",
|
{5, "EIO", "input/output error"},
|
||||||
10: "no child processes",
|
{6, "ENXIO", "no such device or address"},
|
||||||
11: "resource temporarily unavailable",
|
{7, "E2BIG", "argument list too long"},
|
||||||
12: "cannot allocate memory",
|
{8, "ENOEXEC", "exec format error"},
|
||||||
13: "permission denied",
|
{9, "EBADF", "bad file descriptor"},
|
||||||
14: "bad address",
|
{10, "ECHILD", "no child processes"},
|
||||||
15: "block device required",
|
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||||
16: "device or resource busy",
|
{12, "ENOMEM", "cannot allocate memory"},
|
||||||
17: "file exists",
|
{13, "EACCES", "permission denied"},
|
||||||
18: "invalid cross-device link",
|
{14, "EFAULT", "bad address"},
|
||||||
19: "no such device",
|
{15, "ENOTBLK", "block device required"},
|
||||||
20: "not a directory",
|
{16, "EBUSY", "device or resource busy"},
|
||||||
21: "is a directory",
|
{17, "EEXIST", "file exists"},
|
||||||
22: "invalid argument",
|
{18, "EXDEV", "invalid cross-device link"},
|
||||||
23: "too many open files in system",
|
{19, "ENODEV", "no such device"},
|
||||||
24: "too many open files",
|
{20, "ENOTDIR", "not a directory"},
|
||||||
25: "inappropriate ioctl for device",
|
{21, "EISDIR", "is a directory"},
|
||||||
26: "text file busy",
|
{22, "EINVAL", "invalid argument"},
|
||||||
27: "file too large",
|
{23, "ENFILE", "too many open files in system"},
|
||||||
28: "no space left on device",
|
{24, "EMFILE", "too many open files"},
|
||||||
29: "illegal seek",
|
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||||
30: "read-only file system",
|
{26, "ETXTBSY", "text file busy"},
|
||||||
31: "too many links",
|
{27, "EFBIG", "file too large"},
|
||||||
32: "broken pipe",
|
{28, "ENOSPC", "no space left on device"},
|
||||||
33: "numerical argument out of domain",
|
{29, "ESPIPE", "illegal seek"},
|
||||||
34: "numerical result out of range",
|
{30, "EROFS", "read-only file system"},
|
||||||
35: "no message of desired type",
|
{31, "EMLINK", "too many links"},
|
||||||
36: "identifier removed",
|
{32, "EPIPE", "broken pipe"},
|
||||||
37: "channel number out of range",
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
38: "level 2 not synchronized",
|
{34, "ERANGE", "numerical result out of range"},
|
||||||
39: "level 3 halted",
|
{35, "ENOMSG", "no message of desired type"},
|
||||||
40: "level 3 reset",
|
{36, "EIDRM", "identifier removed"},
|
||||||
41: "link number out of range",
|
{37, "ECHRNG", "channel number out of range"},
|
||||||
42: "protocol driver not attached",
|
{38, "EL2NSYNC", "level 2 not synchronized"},
|
||||||
43: "no CSI structure available",
|
{39, "EL3HLT", "level 3 halted"},
|
||||||
44: "level 2 halted",
|
{40, "EL3RST", "level 3 reset"},
|
||||||
45: "resource deadlock avoided",
|
{41, "ELNRNG", "link number out of range"},
|
||||||
46: "no locks available",
|
{42, "EUNATCH", "protocol driver not attached"},
|
||||||
50: "invalid exchange",
|
{43, "ENOCSI", "no CSI structure available"},
|
||||||
51: "invalid request descriptor",
|
{44, "EL2HLT", "level 2 halted"},
|
||||||
52: "exchange full",
|
{45, "EDEADLK", "resource deadlock avoided"},
|
||||||
53: "no anode",
|
{46, "ENOLCK", "no locks available"},
|
||||||
54: "invalid request code",
|
{50, "EBADE", "invalid exchange"},
|
||||||
55: "invalid slot",
|
{51, "EBADR", "invalid request descriptor"},
|
||||||
56: "file locking deadlock error",
|
{52, "EXFULL", "exchange full"},
|
||||||
59: "bad font file format",
|
{53, "ENOANO", "no anode"},
|
||||||
60: "device not a stream",
|
{54, "EBADRQC", "invalid request code"},
|
||||||
61: "no data available",
|
{55, "EBADSLT", "invalid slot"},
|
||||||
62: "timer expired",
|
{56, "EDEADLOCK", "file locking deadlock error"},
|
||||||
63: "out of streams resources",
|
{59, "EBFONT", "bad font file format"},
|
||||||
64: "machine is not on the network",
|
{60, "ENOSTR", "device not a stream"},
|
||||||
65: "package not installed",
|
{61, "ENODATA", "no data available"},
|
||||||
66: "object is remote",
|
{62, "ETIME", "timer expired"},
|
||||||
67: "link has been severed",
|
{63, "ENOSR", "out of streams resources"},
|
||||||
68: "advertise error",
|
{64, "ENONET", "machine is not on the network"},
|
||||||
69: "srmount error",
|
{65, "ENOPKG", "package not installed"},
|
||||||
70: "communication error on send",
|
{66, "EREMOTE", "object is remote"},
|
||||||
71: "protocol error",
|
{67, "ENOLINK", "link has been severed"},
|
||||||
73: "RFS specific error",
|
{68, "EADV", "advertise error"},
|
||||||
74: "multihop attempted",
|
{69, "ESRMNT", "srmount error"},
|
||||||
77: "bad message",
|
{70, "ECOMM", "communication error on send"},
|
||||||
78: "file name too long",
|
{71, "EPROTO", "protocol error"},
|
||||||
79: "value too large for defined data type",
|
{73, "EDOTDOT", "RFS specific error"},
|
||||||
80: "name not unique on network",
|
{74, "EMULTIHOP", "multihop attempted"},
|
||||||
81: "file descriptor in bad state",
|
{77, "EBADMSG", "bad message"},
|
||||||
82: "remote address changed",
|
{78, "ENAMETOOLONG", "file name too long"},
|
||||||
83: "can not access a needed shared library",
|
{79, "EOVERFLOW", "value too large for defined data type"},
|
||||||
84: "accessing a corrupted shared library",
|
{80, "ENOTUNIQ", "name not unique on network"},
|
||||||
85: ".lib section in a.out corrupted",
|
{81, "EBADFD", "file descriptor in bad state"},
|
||||||
86: "attempting to link in too many shared libraries",
|
{82, "EREMCHG", "remote address changed"},
|
||||||
87: "cannot exec a shared library directly",
|
{83, "ELIBACC", "can not access a needed shared library"},
|
||||||
88: "invalid or incomplete multibyte or wide character",
|
{84, "ELIBBAD", "accessing a corrupted shared library"},
|
||||||
89: "function not implemented",
|
{85, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||||
90: "too many levels of symbolic links",
|
{86, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||||
91: "interrupted system call should be restarted",
|
{87, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||||
92: "streams pipe error",
|
{88, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||||
93: "directory not empty",
|
{89, "ENOSYS", "function not implemented"},
|
||||||
94: "too many users",
|
{90, "ELOOP", "too many levels of symbolic links"},
|
||||||
95: "socket operation on non-socket",
|
{91, "ERESTART", "interrupted system call should be restarted"},
|
||||||
96: "destination address required",
|
{92, "ESTRPIPE", "streams pipe error"},
|
||||||
97: "message too long",
|
{93, "ENOTEMPTY", "directory not empty"},
|
||||||
98: "protocol wrong type for socket",
|
{94, "EUSERS", "too many users"},
|
||||||
99: "protocol not available",
|
{95, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
120: "protocol not supported",
|
{96, "EDESTADDRREQ", "destination address required"},
|
||||||
121: "socket type not supported",
|
{97, "EMSGSIZE", "message too long"},
|
||||||
122: "operation not supported",
|
{98, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||||
123: "protocol family not supported",
|
{99, "ENOPROTOOPT", "protocol not available"},
|
||||||
124: "address family not supported by protocol",
|
{120, "EPROTONOSUPPORT", "protocol not supported"},
|
||||||
125: "address already in use",
|
{121, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||||
126: "cannot assign requested address",
|
{122, "ENOTSUP", "operation not supported"},
|
||||||
127: "network is down",
|
{123, "EPFNOSUPPORT", "protocol family not supported"},
|
||||||
128: "network is unreachable",
|
{124, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||||
129: "network dropped connection on reset",
|
{125, "EADDRINUSE", "address already in use"},
|
||||||
130: "software caused connection abort",
|
{126, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||||
131: "connection reset by peer",
|
{127, "ENETDOWN", "network is down"},
|
||||||
132: "no buffer space available",
|
{128, "ENETUNREACH", "network is unreachable"},
|
||||||
133: "transport endpoint is already connected",
|
{129, "ENETRESET", "network dropped connection on reset"},
|
||||||
134: "transport endpoint is not connected",
|
{130, "ECONNABORTED", "software caused connection abort"},
|
||||||
135: "structure needs cleaning",
|
{131, "ECONNRESET", "connection reset by peer"},
|
||||||
137: "not a XENIX named type file",
|
{132, "ENOBUFS", "no buffer space available"},
|
||||||
138: "no XENIX semaphores available",
|
{133, "EISCONN", "transport endpoint is already connected"},
|
||||||
139: "is a named type file",
|
{134, "ENOTCONN", "transport endpoint is not connected"},
|
||||||
140: "remote I/O error",
|
{135, "EUCLEAN", "structure needs cleaning"},
|
||||||
141: "unknown error 141",
|
{137, "ENOTNAM", "not a XENIX named type file"},
|
||||||
142: "unknown error 142",
|
{138, "ENAVAIL", "no XENIX semaphores available"},
|
||||||
143: "cannot send after transport endpoint shutdown",
|
{139, "EISNAM", "is a named type file"},
|
||||||
144: "too many references: cannot splice",
|
{140, "EREMOTEIO", "remote I/O error"},
|
||||||
145: "connection timed out",
|
{141, "EINIT", "unknown error 141"},
|
||||||
146: "connection refused",
|
{142, "EREMDEV", "unknown error 142"},
|
||||||
147: "host is down",
|
{143, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||||
148: "no route to host",
|
{144, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||||
149: "operation already in progress",
|
{145, "ETIMEDOUT", "connection timed out"},
|
||||||
150: "operation now in progress",
|
{146, "ECONNREFUSED", "connection refused"},
|
||||||
151: "stale file handle",
|
{147, "EHOSTDOWN", "host is down"},
|
||||||
158: "operation canceled",
|
{148, "EHOSTUNREACH", "no route to host"},
|
||||||
159: "no medium found",
|
{149, "EALREADY", "operation already in progress"},
|
||||||
160: "wrong medium type",
|
{150, "EINPROGRESS", "operation now in progress"},
|
||||||
161: "required key not available",
|
{151, "ESTALE", "stale file handle"},
|
||||||
162: "key has expired",
|
{158, "ECANCELED", "operation canceled"},
|
||||||
163: "key has been revoked",
|
{159, "ENOMEDIUM", "no medium found"},
|
||||||
164: "key was rejected by service",
|
{160, "EMEDIUMTYPE", "wrong medium type"},
|
||||||
165: "owner died",
|
{161, "ENOKEY", "required key not available"},
|
||||||
166: "state not recoverable",
|
{162, "EKEYEXPIRED", "key has expired"},
|
||||||
167: "operation not possible due to RF-kill",
|
{163, "EKEYREVOKED", "key has been revoked"},
|
||||||
168: "memory page has hardware error",
|
{164, "EKEYREJECTED", "key was rejected by service"},
|
||||||
1133: "disk quota exceeded",
|
{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
|
// Signal table
|
||||||
var signals = [...]string{
|
var signalList = [...]struct {
|
||||||
1: "hangup",
|
num syscall.Signal
|
||||||
2: "interrupt",
|
name string
|
||||||
3: "quit",
|
desc string
|
||||||
4: "illegal instruction",
|
}{
|
||||||
5: "trace/breakpoint trap",
|
{1, "SIGHUP", "hangup"},
|
||||||
6: "aborted",
|
{2, "SIGINT", "interrupt"},
|
||||||
7: "EMT trap",
|
{3, "SIGQUIT", "quit"},
|
||||||
8: "floating point exception",
|
{4, "SIGILL", "illegal instruction"},
|
||||||
9: "killed",
|
{5, "SIGTRAP", "trace/breakpoint trap"},
|
||||||
10: "bus error",
|
{6, "SIGABRT", "aborted"},
|
||||||
11: "segmentation fault",
|
{7, "SIGEMT", "EMT trap"},
|
||||||
12: "bad system call",
|
{8, "SIGFPE", "floating point exception"},
|
||||||
13: "broken pipe",
|
{9, "SIGKILL", "killed"},
|
||||||
14: "alarm clock",
|
{10, "SIGBUS", "bus error"},
|
||||||
15: "terminated",
|
{11, "SIGSEGV", "segmentation fault"},
|
||||||
16: "user defined signal 1",
|
{12, "SIGSYS", "bad system call"},
|
||||||
17: "user defined signal 2",
|
{13, "SIGPIPE", "broken pipe"},
|
||||||
18: "child exited",
|
{14, "SIGALRM", "alarm clock"},
|
||||||
19: "power failure",
|
{15, "SIGTERM", "terminated"},
|
||||||
20: "window changed",
|
{16, "SIGUSR1", "user defined signal 1"},
|
||||||
21: "urgent I/O condition",
|
{17, "SIGUSR2", "user defined signal 2"},
|
||||||
22: "I/O possible",
|
{18, "SIGCHLD", "child exited"},
|
||||||
23: "stopped (signal)",
|
{19, "SIGPWR", "power failure"},
|
||||||
24: "stopped",
|
{20, "SIGWINCH", "window changed"},
|
||||||
25: "continued",
|
{21, "SIGURG", "urgent I/O condition"},
|
||||||
26: "stopped (tty input)",
|
{22, "SIGIO", "I/O possible"},
|
||||||
27: "stopped (tty output)",
|
{23, "SIGSTOP", "stopped (signal)"},
|
||||||
28: "virtual timer expired",
|
{24, "SIGTSTP", "stopped"},
|
||||||
29: "profiling timer expired",
|
{25, "SIGCONT", "continued"},
|
||||||
30: "CPU time limit exceeded",
|
{26, "SIGTTIN", "stopped (tty input)"},
|
||||||
31: "file size limit exceeded",
|
{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
|
// +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
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
@ -11,6 +11,11 @@ package unix
|
||||||
import "syscall"
|
import "syscall"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
AAFS_MAGIC = 0x5a3c69f0
|
||||||
|
ADFS_SUPER_MAGIC = 0xadf5
|
||||||
|
AFFS_SUPER_MAGIC = 0xadff
|
||||||
|
AFS_FS_MAGIC = 0x6b414653
|
||||||
|
AFS_SUPER_MAGIC = 0x5346414f
|
||||||
AF_ALG = 0x26
|
AF_ALG = 0x26
|
||||||
AF_APPLETALK = 0x5
|
AF_APPLETALK = 0x5
|
||||||
AF_ASH = 0x12
|
AF_ASH = 0x12
|
||||||
|
@ -66,6 +71,7 @@ const (
|
||||||
ALG_SET_IV = 0x2
|
ALG_SET_IV = 0x2
|
||||||
ALG_SET_KEY = 0x1
|
ALG_SET_KEY = 0x1
|
||||||
ALG_SET_OP = 0x3
|
ALG_SET_OP = 0x3
|
||||||
|
ANON_INODE_FS_MAGIC = 0x9041934
|
||||||
ARPHRD_6LOWPAN = 0x339
|
ARPHRD_6LOWPAN = 0x339
|
||||||
ARPHRD_ADAPT = 0x108
|
ARPHRD_ADAPT = 0x108
|
||||||
ARPHRD_APPLETLK = 0x8
|
ARPHRD_APPLETLK = 0x8
|
||||||
|
@ -133,6 +139,7 @@ const (
|
||||||
ARPHRD_VOID = 0xffff
|
ARPHRD_VOID = 0xffff
|
||||||
ARPHRD_VSOCKMON = 0x33a
|
ARPHRD_VSOCKMON = 0x33a
|
||||||
ARPHRD_X25 = 0x10f
|
ARPHRD_X25 = 0x10f
|
||||||
|
AUTOFS_SUPER_MAGIC = 0x187
|
||||||
B0 = 0x0
|
B0 = 0x0
|
||||||
B1000000 = 0x1008
|
B1000000 = 0x1008
|
||||||
B110 = 0x3
|
B110 = 0x3
|
||||||
|
@ -164,6 +171,9 @@ const (
|
||||||
B75 = 0x2
|
B75 = 0x2
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x40081270
|
BLKBSZGET = 0x40081270
|
||||||
BLKBSZSET = 0x80081271
|
BLKBSZSET = 0x80081271
|
||||||
BLKFLSBUF = 0x20001261
|
BLKFLSBUF = 0x20001261
|
||||||
|
@ -188,6 +198,7 @@ const (
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
|
@ -229,6 +240,8 @@ const (
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||||
|
BTRFS_TEST_MAGIC = 0x73727279
|
||||||
CAN_BCM = 0x2
|
CAN_BCM = 0x2
|
||||||
CAN_EFF_FLAG = 0x80000000
|
CAN_EFF_FLAG = 0x80000000
|
||||||
CAN_EFF_ID_BITS = 0x1d
|
CAN_EFF_ID_BITS = 0x1d
|
||||||
|
@ -252,6 +265,8 @@ const (
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
|
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||||
|
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||||
CIBAUD = 0x100f0000
|
CIBAUD = 0x100f0000
|
||||||
CLOCAL = 0x800
|
CLOCAL = 0x800
|
||||||
CLOCK_BOOTTIME = 0x7
|
CLOCK_BOOTTIME = 0x7
|
||||||
|
@ -294,10 +309,12 @@ const (
|
||||||
CLONE_VFORK = 0x4000
|
CLONE_VFORK = 0x4000
|
||||||
CLONE_VM = 0x100
|
CLONE_VM = 0x100
|
||||||
CMSPAR = 0x40000000
|
CMSPAR = 0x40000000
|
||||||
|
CODA_SUPER_MAGIC = 0x73757245
|
||||||
CR0 = 0x0
|
CR0 = 0x0
|
||||||
CR1 = 0x200
|
CR1 = 0x200
|
||||||
CR2 = 0x400
|
CR2 = 0x400
|
||||||
CR3 = 0x600
|
CR3 = 0x600
|
||||||
|
CRAMFS_MAGIC = 0x28cd3d45
|
||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
@ -312,6 +329,9 @@ const (
|
||||||
CSTOP = 0x13
|
CSTOP = 0x13
|
||||||
CSTOPB = 0x40
|
CSTOPB = 0x40
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
|
DAXFS_MAGIC = 0x64646178
|
||||||
|
DEBUGFS_MAGIC = 0x64626720
|
||||||
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -328,9 +348,12 @@ const (
|
||||||
ECHOKE = 0x800
|
ECHOKE = 0x800
|
||||||
ECHONL = 0x40
|
ECHONL = 0x40
|
||||||
ECHOPRT = 0x400
|
ECHOPRT = 0x400
|
||||||
|
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||||
EFD_CLOEXEC = 0x80000
|
EFD_CLOEXEC = 0x80000
|
||||||
EFD_NONBLOCK = 0x80
|
EFD_NONBLOCK = 0x80
|
||||||
EFD_SEMAPHORE = 0x1
|
EFD_SEMAPHORE = 0x1
|
||||||
|
EFIVARFS_MAGIC = 0xde5e81e4
|
||||||
|
EFS_SUPER_MAGIC = 0x414a53
|
||||||
ENCODING_DEFAULT = 0x0
|
ENCODING_DEFAULT = 0x0
|
||||||
ENCODING_FM_MARK = 0x3
|
ENCODING_FM_MARK = 0x3
|
||||||
ENCODING_FM_SPACE = 0x4
|
ENCODING_FM_SPACE = 0x4
|
||||||
|
@ -392,6 +415,7 @@ const (
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
|
ETH_P_ERSPAN2 = 0x22eb
|
||||||
ETH_P_FCOE = 0x8906
|
ETH_P_FCOE = 0x8906
|
||||||
ETH_P_FIP = 0x8914
|
ETH_P_FIP = 0x8914
|
||||||
ETH_P_HDLC = 0x19
|
ETH_P_HDLC = 0x19
|
||||||
|
@ -425,6 +449,7 @@ const (
|
||||||
ETH_P_PPP_DISC = 0x8863
|
ETH_P_PPP_DISC = 0x8863
|
||||||
ETH_P_PPP_MP = 0x8
|
ETH_P_PPP_MP = 0x8
|
||||||
ETH_P_PPP_SES = 0x8864
|
ETH_P_PPP_SES = 0x8864
|
||||||
|
ETH_P_PREAUTH = 0x88c7
|
||||||
ETH_P_PRP = 0x88fb
|
ETH_P_PRP = 0x88fb
|
||||||
ETH_P_PUP = 0x200
|
ETH_P_PUP = 0x200
|
||||||
ETH_P_PUPAT = 0x201
|
ETH_P_PUPAT = 0x201
|
||||||
|
@ -445,9 +470,14 @@ const (
|
||||||
ETH_P_WCCP = 0x883e
|
ETH_P_WCCP = 0x883e
|
||||||
ETH_P_X25 = 0x805
|
ETH_P_X25 = 0x805
|
||||||
ETH_P_XDSA = 0xf8
|
ETH_P_XDSA = 0xf8
|
||||||
|
EXABYTE_ENABLE_NEST = 0xf0
|
||||||
|
EXT2_SUPER_MAGIC = 0xef53
|
||||||
|
EXT3_SUPER_MAGIC = 0xef53
|
||||||
|
EXT4_SUPER_MAGIC = 0xef53
|
||||||
EXTA = 0xe
|
EXTA = 0xe
|
||||||
EXTB = 0xf
|
EXTB = 0xf
|
||||||
EXTPROC = 0x10000
|
EXTPROC = 0x10000
|
||||||
|
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||||
FALLOC_FL_INSERT_RANGE = 0x20
|
FALLOC_FL_INSERT_RANGE = 0x20
|
||||||
FALLOC_FL_KEEP_SIZE = 0x1
|
FALLOC_FL_KEEP_SIZE = 0x1
|
||||||
|
@ -481,6 +511,7 @@ const (
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x3
|
||||||
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
F_DUPFD_CLOEXEC = 0x406
|
F_DUPFD_CLOEXEC = 0x406
|
||||||
|
@ -542,6 +573,49 @@ const (
|
||||||
GENL_UNS_ADMIN_PERM = 0x10
|
GENL_UNS_ADMIN_PERM = 0x10
|
||||||
GRND_NONBLOCK = 0x1
|
GRND_NONBLOCK = 0x1
|
||||||
GRND_RANDOM = 0x2
|
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
|
HUPCL = 0x400
|
||||||
IBSHIFT = 0x10
|
IBSHIFT = 0x10
|
||||||
ICANON = 0x2
|
ICANON = 0x2
|
||||||
|
@ -792,12 +866,14 @@ const (
|
||||||
IP_UNICAST_IF = 0x32
|
IP_UNICAST_IF = 0x32
|
||||||
IP_XFRM_POLICY = 0x11
|
IP_XFRM_POLICY = 0x11
|
||||||
ISIG = 0x1
|
ISIG = 0x1
|
||||||
|
ISOFS_SUPER_MAGIC = 0x9660
|
||||||
ISTRIP = 0x20
|
ISTRIP = 0x20
|
||||||
IUCLC = 0x200
|
IUCLC = 0x200
|
||||||
IUTF8 = 0x4000
|
IUTF8 = 0x4000
|
||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
|
@ -894,9 +970,15 @@ const (
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
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_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
MSG_CONFIRM = 0x800
|
MSG_CONFIRM = 0x800
|
||||||
|
@ -956,7 +1038,9 @@ const (
|
||||||
MS_SYNCHRONOUS = 0x10
|
MS_SYNCHRONOUS = 0x10
|
||||||
MS_UNBINDABLE = 0x20000
|
MS_UNBINDABLE = 0x20000
|
||||||
MS_VERBOSE = 0x8000
|
MS_VERBOSE = 0x8000
|
||||||
|
MTD_INODE_FS_MAGIC = 0x11307854
|
||||||
NAME_MAX = 0xff
|
NAME_MAX = 0xff
|
||||||
|
NCP_SUPER_MAGIC = 0x564c
|
||||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||||
NETLINK_AUDIT = 0x9
|
NETLINK_AUDIT = 0x9
|
||||||
NETLINK_BROADCAST_ERROR = 0x4
|
NETLINK_BROADCAST_ERROR = 0x4
|
||||||
|
@ -991,6 +1075,37 @@ const (
|
||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
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
|
NL0 = 0x0
|
||||||
NL1 = 0x100
|
NL1 = 0x100
|
||||||
NLA_ALIGNTO = 0x4
|
NLA_ALIGNTO = 0x4
|
||||||
|
@ -1023,6 +1138,8 @@ const (
|
||||||
NLM_F_REQUEST = 0x1
|
NLM_F_REQUEST = 0x1
|
||||||
NLM_F_ROOT = 0x100
|
NLM_F_ROOT = 0x100
|
||||||
NOFLSH = 0x80
|
NOFLSH = 0x80
|
||||||
|
NSFS_MAGIC = 0x6e736673
|
||||||
|
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
OFILL = 0x40
|
OFILL = 0x40
|
||||||
|
@ -1030,7 +1147,9 @@ const (
|
||||||
ONLCR = 0x4
|
ONLCR = 0x4
|
||||||
ONLRET = 0x20
|
ONLRET = 0x20
|
||||||
ONOCR = 0x10
|
ONOCR = 0x10
|
||||||
|
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||||
OPOST = 0x1
|
OPOST = 0x1
|
||||||
|
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||||
O_ACCMODE = 0x3
|
O_ACCMODE = 0x3
|
||||||
O_APPEND = 0x8
|
O_APPEND = 0x8
|
||||||
O_ASYNC = 0x1000
|
O_ASYNC = 0x1000
|
||||||
|
@ -1115,16 +1234,20 @@ const (
|
||||||
PERF_EVENT_IOC_DISABLE = 0x20002401
|
PERF_EVENT_IOC_DISABLE = 0x20002401
|
||||||
PERF_EVENT_IOC_ENABLE = 0x20002400
|
PERF_EVENT_IOC_ENABLE = 0x20002400
|
||||||
PERF_EVENT_IOC_ID = 0x40082407
|
PERF_EVENT_IOC_ID = 0x40082407
|
||||||
|
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b
|
||||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
|
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
|
||||||
PERF_EVENT_IOC_PERIOD = 0x80082404
|
PERF_EVENT_IOC_PERIOD = 0x80082404
|
||||||
|
PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
|
||||||
PERF_EVENT_IOC_REFRESH = 0x20002402
|
PERF_EVENT_IOC_REFRESH = 0x20002402
|
||||||
PERF_EVENT_IOC_RESET = 0x20002403
|
PERF_EVENT_IOC_RESET = 0x20002403
|
||||||
PERF_EVENT_IOC_SET_BPF = 0x80042408
|
PERF_EVENT_IOC_SET_BPF = 0x80042408
|
||||||
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||||
|
PIPEFS_MAGIC = 0x50495045
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
|
PROC_SUPER_MAGIC = 0x9fa0
|
||||||
PROT_EXEC = 0x4
|
PROT_EXEC = 0x4
|
||||||
PROT_GROWSDOWN = 0x1000000
|
PROT_GROWSDOWN = 0x1000000
|
||||||
PROT_GROWSUP = 0x2000000
|
PROT_GROWSUP = 0x2000000
|
||||||
|
@ -1167,6 +1290,7 @@ const (
|
||||||
PR_GET_PDEATHSIG = 0x2
|
PR_GET_PDEATHSIG = 0x2
|
||||||
PR_GET_SECCOMP = 0x15
|
PR_GET_SECCOMP = 0x15
|
||||||
PR_GET_SECUREBITS = 0x1b
|
PR_GET_SECUREBITS = 0x1b
|
||||||
|
PR_GET_SPECULATION_CTRL = 0x34
|
||||||
PR_GET_THP_DISABLE = 0x2a
|
PR_GET_THP_DISABLE = 0x2a
|
||||||
PR_GET_TID_ADDRESS = 0x28
|
PR_GET_TID_ADDRESS = 0x28
|
||||||
PR_GET_TIMERSLACK = 0x1e
|
PR_GET_TIMERSLACK = 0x1e
|
||||||
|
@ -1212,11 +1336,18 @@ const (
|
||||||
PR_SET_PTRACER_ANY = 0xffffffffffffffff
|
PR_SET_PTRACER_ANY = 0xffffffffffffffff
|
||||||
PR_SET_SECCOMP = 0x16
|
PR_SET_SECCOMP = 0x16
|
||||||
PR_SET_SECUREBITS = 0x1c
|
PR_SET_SECUREBITS = 0x1c
|
||||||
|
PR_SET_SPECULATION_CTRL = 0x35
|
||||||
PR_SET_THP_DISABLE = 0x29
|
PR_SET_THP_DISABLE = 0x29
|
||||||
PR_SET_TIMERSLACK = 0x1d
|
PR_SET_TIMERSLACK = 0x1d
|
||||||
PR_SET_TIMING = 0xe
|
PR_SET_TIMING = 0xe
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
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_GET_VL = 0x33
|
||||||
PR_SVE_SET_VL = 0x32
|
PR_SVE_SET_VL = 0x32
|
||||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||||
|
@ -1230,6 +1361,7 @@ const (
|
||||||
PR_TSC_SIGSEGV = 0x2
|
PR_TSC_SIGSEGV = 0x2
|
||||||
PR_UNALIGN_NOPRINT = 0x1
|
PR_UNALIGN_NOPRINT = 0x1
|
||||||
PR_UNALIGN_SIGBUS = 0x2
|
PR_UNALIGN_SIGBUS = 0x2
|
||||||
|
PSTOREFS_MAGIC = 0x6165676c
|
||||||
PTRACE_ATTACH = 0x10
|
PTRACE_ATTACH = 0x10
|
||||||
PTRACE_CONT = 0x7
|
PTRACE_CONT = 0x7
|
||||||
PTRACE_DETACH = 0x11
|
PTRACE_DETACH = 0x11
|
||||||
|
@ -1278,6 +1410,7 @@ const (
|
||||||
PTRACE_POKETEXT_3264 = 0xc2
|
PTRACE_POKETEXT_3264 = 0xc2
|
||||||
PTRACE_POKEUSR = 0x6
|
PTRACE_POKEUSR = 0x6
|
||||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||||
|
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||||
PTRACE_SEIZE = 0x4206
|
PTRACE_SEIZE = 0x4206
|
||||||
PTRACE_SETFPREGS = 0xf
|
PTRACE_SETFPREGS = 0xf
|
||||||
PTRACE_SETOPTIONS = 0x4200
|
PTRACE_SETOPTIONS = 0x4200
|
||||||
|
@ -1290,6 +1423,11 @@ const (
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
PTRACE_TRACEME = 0x0
|
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_AS = 0x6
|
||||||
RLIMIT_CORE = 0x4
|
RLIMIT_CORE = 0x4
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
|
@ -1339,6 +1477,33 @@ const (
|
||||||
RTCF_MASQ = 0x400000
|
RTCF_MASQ = 0x400000
|
||||||
RTCF_NAT = 0x800000
|
RTCF_NAT = 0x800000
|
||||||
RTCF_VALVE = 0x200000
|
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_ADDRCLASSMASK = 0xf8000000
|
||||||
RTF_ADDRCONF = 0x40000
|
RTF_ADDRCONF = 0x40000
|
||||||
RTF_ALLONLINK = 0x20000
|
RTF_ALLONLINK = 0x20000
|
||||||
|
@ -1475,6 +1640,8 @@ const (
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1559,6 +1726,23 @@ const (
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
SIOCWANDEV = 0x894a
|
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_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x1
|
SOCK_DGRAM = 0x1
|
||||||
|
@ -1670,6 +1854,8 @@ const (
|
||||||
SPLICE_F_MORE = 0x4
|
SPLICE_F_MORE = 0x4
|
||||||
SPLICE_F_MOVE = 0x1
|
SPLICE_F_MOVE = 0x1
|
||||||
SPLICE_F_NONBLOCK = 0x2
|
SPLICE_F_NONBLOCK = 0x2
|
||||||
|
SQUASHFS_MAGIC = 0x73717368
|
||||||
|
STACK_END_MAGIC = 0x57ac6e9d
|
||||||
STATX_ALL = 0xfff
|
STATX_ALL = 0xfff
|
||||||
STATX_ATIME = 0x20
|
STATX_ATIME = 0x20
|
||||||
STATX_ATTR_APPEND = 0x20
|
STATX_ATTR_APPEND = 0x20
|
||||||
|
@ -1691,6 +1877,7 @@ const (
|
||||||
STATX_TYPE = 0x1
|
STATX_TYPE = 0x1
|
||||||
STATX_UID = 0x8
|
STATX_UID = 0x8
|
||||||
STATX__RESERVED = 0x80000000
|
STATX__RESERVED = 0x80000000
|
||||||
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
S_IFBLK = 0x6000
|
S_IFBLK = 0x6000
|
||||||
|
@ -1873,7 +2060,27 @@ const (
|
||||||
TIOCSTI = 0x5472
|
TIOCSTI = 0x5472
|
||||||
TIOCSWINSZ = 0x80087467
|
TIOCSWINSZ = 0x80087467
|
||||||
TIOCVHANGUP = 0x5437
|
TIOCVHANGUP = 0x5437
|
||||||
|
TMPFS_MAGIC = 0x1021994
|
||||||
TOSTOP = 0x8000
|
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
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x801054d5
|
TUNATTACHFILTER = 0x801054d5
|
||||||
TUNDETACHFILTER = 0x801054d6
|
TUNDETACHFILTER = 0x801054d6
|
||||||
|
@ -1885,6 +2092,7 @@ const (
|
||||||
TUNGETVNETHDRSZ = 0x400454d7
|
TUNGETVNETHDRSZ = 0x400454d7
|
||||||
TUNGETVNETLE = 0x400454dd
|
TUNGETVNETLE = 0x400454dd
|
||||||
TUNSETDEBUG = 0x800454c9
|
TUNSETDEBUG = 0x800454c9
|
||||||
|
TUNSETFILTEREBPF = 0x400454e1
|
||||||
TUNSETGROUP = 0x800454ce
|
TUNSETGROUP = 0x800454ce
|
||||||
TUNSETIFF = 0x800454ca
|
TUNSETIFF = 0x800454ca
|
||||||
TUNSETIFINDEX = 0x800454da
|
TUNSETIFINDEX = 0x800454da
|
||||||
|
@ -1895,13 +2103,17 @@ const (
|
||||||
TUNSETPERSIST = 0x800454cb
|
TUNSETPERSIST = 0x800454cb
|
||||||
TUNSETQUEUE = 0x800454d9
|
TUNSETQUEUE = 0x800454d9
|
||||||
TUNSETSNDBUF = 0x800454d4
|
TUNSETSNDBUF = 0x800454d4
|
||||||
|
TUNSETSTEERINGEBPF = 0x400454e0
|
||||||
TUNSETTXFILTER = 0x800454d1
|
TUNSETTXFILTER = 0x800454d1
|
||||||
TUNSETVNETBE = 0x800454de
|
TUNSETVNETBE = 0x800454de
|
||||||
TUNSETVNETHDRSZ = 0x800454d8
|
TUNSETVNETHDRSZ = 0x800454d8
|
||||||
TUNSETVNETLE = 0x800454dc
|
TUNSETVNETLE = 0x800454dc
|
||||||
|
UDF_SUPER_MAGIC = 0x15013346
|
||||||
UMOUNT_NOFOLLOW = 0x8
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
|
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||||
UTIME_NOW = 0x3fffffff
|
UTIME_NOW = 0x3fffffff
|
||||||
UTIME_OMIT = 0x3ffffffe
|
UTIME_OMIT = 0x3ffffffe
|
||||||
|
V9FS_MAGIC = 0x1021997
|
||||||
VDISCARD = 0xd
|
VDISCARD = 0xd
|
||||||
VEOF = 0x10
|
VEOF = 0x10
|
||||||
VEOL = 0x11
|
VEOL = 0x11
|
||||||
|
@ -1944,6 +2156,86 @@ const (
|
||||||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||||
WDIOC_SETTIMEOUT = 0xc0045706
|
WDIOC_SETTIMEOUT = 0xc0045706
|
||||||
WEXITED = 0x4
|
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
|
WNOHANG = 0x1
|
||||||
WNOTHREAD = 0x20000000
|
WNOTHREAD = 0x20000000
|
||||||
WNOWAIT = 0x1000000
|
WNOWAIT = 0x1000000
|
||||||
|
@ -1953,7 +2245,9 @@ const (
|
||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
||||||
// Errors
|
// Errors
|
||||||
|
@ -2135,174 +2429,182 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// Error table
|
// Error table
|
||||||
var errors = [...]string{
|
var errorList = [...]struct {
|
||||||
1: "operation not permitted",
|
num syscall.Errno
|
||||||
2: "no such file or directory",
|
name string
|
||||||
3: "no such process",
|
desc string
|
||||||
4: "interrupted system call",
|
}{
|
||||||
5: "input/output error",
|
{1, "EPERM", "operation not permitted"},
|
||||||
6: "no such device or address",
|
{2, "ENOENT", "no such file or directory"},
|
||||||
7: "argument list too long",
|
{3, "ESRCH", "no such process"},
|
||||||
8: "exec format error",
|
{4, "EINTR", "interrupted system call"},
|
||||||
9: "bad file descriptor",
|
{5, "EIO", "input/output error"},
|
||||||
10: "no child processes",
|
{6, "ENXIO", "no such device or address"},
|
||||||
11: "resource temporarily unavailable",
|
{7, "E2BIG", "argument list too long"},
|
||||||
12: "cannot allocate memory",
|
{8, "ENOEXEC", "exec format error"},
|
||||||
13: "permission denied",
|
{9, "EBADF", "bad file descriptor"},
|
||||||
14: "bad address",
|
{10, "ECHILD", "no child processes"},
|
||||||
15: "block device required",
|
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||||
16: "device or resource busy",
|
{12, "ENOMEM", "cannot allocate memory"},
|
||||||
17: "file exists",
|
{13, "EACCES", "permission denied"},
|
||||||
18: "invalid cross-device link",
|
{14, "EFAULT", "bad address"},
|
||||||
19: "no such device",
|
{15, "ENOTBLK", "block device required"},
|
||||||
20: "not a directory",
|
{16, "EBUSY", "device or resource busy"},
|
||||||
21: "is a directory",
|
{17, "EEXIST", "file exists"},
|
||||||
22: "invalid argument",
|
{18, "EXDEV", "invalid cross-device link"},
|
||||||
23: "too many open files in system",
|
{19, "ENODEV", "no such device"},
|
||||||
24: "too many open files",
|
{20, "ENOTDIR", "not a directory"},
|
||||||
25: "inappropriate ioctl for device",
|
{21, "EISDIR", "is a directory"},
|
||||||
26: "text file busy",
|
{22, "EINVAL", "invalid argument"},
|
||||||
27: "file too large",
|
{23, "ENFILE", "too many open files in system"},
|
||||||
28: "no space left on device",
|
{24, "EMFILE", "too many open files"},
|
||||||
29: "illegal seek",
|
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||||
30: "read-only file system",
|
{26, "ETXTBSY", "text file busy"},
|
||||||
31: "too many links",
|
{27, "EFBIG", "file too large"},
|
||||||
32: "broken pipe",
|
{28, "ENOSPC", "no space left on device"},
|
||||||
33: "numerical argument out of domain",
|
{29, "ESPIPE", "illegal seek"},
|
||||||
34: "numerical result out of range",
|
{30, "EROFS", "read-only file system"},
|
||||||
35: "no message of desired type",
|
{31, "EMLINK", "too many links"},
|
||||||
36: "identifier removed",
|
{32, "EPIPE", "broken pipe"},
|
||||||
37: "channel number out of range",
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
38: "level 2 not synchronized",
|
{34, "ERANGE", "numerical result out of range"},
|
||||||
39: "level 3 halted",
|
{35, "ENOMSG", "no message of desired type"},
|
||||||
40: "level 3 reset",
|
{36, "EIDRM", "identifier removed"},
|
||||||
41: "link number out of range",
|
{37, "ECHRNG", "channel number out of range"},
|
||||||
42: "protocol driver not attached",
|
{38, "EL2NSYNC", "level 2 not synchronized"},
|
||||||
43: "no CSI structure available",
|
{39, "EL3HLT", "level 3 halted"},
|
||||||
44: "level 2 halted",
|
{40, "EL3RST", "level 3 reset"},
|
||||||
45: "resource deadlock avoided",
|
{41, "ELNRNG", "link number out of range"},
|
||||||
46: "no locks available",
|
{42, "EUNATCH", "protocol driver not attached"},
|
||||||
50: "invalid exchange",
|
{43, "ENOCSI", "no CSI structure available"},
|
||||||
51: "invalid request descriptor",
|
{44, "EL2HLT", "level 2 halted"},
|
||||||
52: "exchange full",
|
{45, "EDEADLK", "resource deadlock avoided"},
|
||||||
53: "no anode",
|
{46, "ENOLCK", "no locks available"},
|
||||||
54: "invalid request code",
|
{50, "EBADE", "invalid exchange"},
|
||||||
55: "invalid slot",
|
{51, "EBADR", "invalid request descriptor"},
|
||||||
56: "file locking deadlock error",
|
{52, "EXFULL", "exchange full"},
|
||||||
59: "bad font file format",
|
{53, "ENOANO", "no anode"},
|
||||||
60: "device not a stream",
|
{54, "EBADRQC", "invalid request code"},
|
||||||
61: "no data available",
|
{55, "EBADSLT", "invalid slot"},
|
||||||
62: "timer expired",
|
{56, "EDEADLOCK", "file locking deadlock error"},
|
||||||
63: "out of streams resources",
|
{59, "EBFONT", "bad font file format"},
|
||||||
64: "machine is not on the network",
|
{60, "ENOSTR", "device not a stream"},
|
||||||
65: "package not installed",
|
{61, "ENODATA", "no data available"},
|
||||||
66: "object is remote",
|
{62, "ETIME", "timer expired"},
|
||||||
67: "link has been severed",
|
{63, "ENOSR", "out of streams resources"},
|
||||||
68: "advertise error",
|
{64, "ENONET", "machine is not on the network"},
|
||||||
69: "srmount error",
|
{65, "ENOPKG", "package not installed"},
|
||||||
70: "communication error on send",
|
{66, "EREMOTE", "object is remote"},
|
||||||
71: "protocol error",
|
{67, "ENOLINK", "link has been severed"},
|
||||||
73: "RFS specific error",
|
{68, "EADV", "advertise error"},
|
||||||
74: "multihop attempted",
|
{69, "ESRMNT", "srmount error"},
|
||||||
77: "bad message",
|
{70, "ECOMM", "communication error on send"},
|
||||||
78: "file name too long",
|
{71, "EPROTO", "protocol error"},
|
||||||
79: "value too large for defined data type",
|
{73, "EDOTDOT", "RFS specific error"},
|
||||||
80: "name not unique on network",
|
{74, "EMULTIHOP", "multihop attempted"},
|
||||||
81: "file descriptor in bad state",
|
{77, "EBADMSG", "bad message"},
|
||||||
82: "remote address changed",
|
{78, "ENAMETOOLONG", "file name too long"},
|
||||||
83: "can not access a needed shared library",
|
{79, "EOVERFLOW", "value too large for defined data type"},
|
||||||
84: "accessing a corrupted shared library",
|
{80, "ENOTUNIQ", "name not unique on network"},
|
||||||
85: ".lib section in a.out corrupted",
|
{81, "EBADFD", "file descriptor in bad state"},
|
||||||
86: "attempting to link in too many shared libraries",
|
{82, "EREMCHG", "remote address changed"},
|
||||||
87: "cannot exec a shared library directly",
|
{83, "ELIBACC", "can not access a needed shared library"},
|
||||||
88: "invalid or incomplete multibyte or wide character",
|
{84, "ELIBBAD", "accessing a corrupted shared library"},
|
||||||
89: "function not implemented",
|
{85, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||||
90: "too many levels of symbolic links",
|
{86, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||||
91: "interrupted system call should be restarted",
|
{87, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||||
92: "streams pipe error",
|
{88, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||||
93: "directory not empty",
|
{89, "ENOSYS", "function not implemented"},
|
||||||
94: "too many users",
|
{90, "ELOOP", "too many levels of symbolic links"},
|
||||||
95: "socket operation on non-socket",
|
{91, "ERESTART", "interrupted system call should be restarted"},
|
||||||
96: "destination address required",
|
{92, "ESTRPIPE", "streams pipe error"},
|
||||||
97: "message too long",
|
{93, "ENOTEMPTY", "directory not empty"},
|
||||||
98: "protocol wrong type for socket",
|
{94, "EUSERS", "too many users"},
|
||||||
99: "protocol not available",
|
{95, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
120: "protocol not supported",
|
{96, "EDESTADDRREQ", "destination address required"},
|
||||||
121: "socket type not supported",
|
{97, "EMSGSIZE", "message too long"},
|
||||||
122: "operation not supported",
|
{98, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||||
123: "protocol family not supported",
|
{99, "ENOPROTOOPT", "protocol not available"},
|
||||||
124: "address family not supported by protocol",
|
{120, "EPROTONOSUPPORT", "protocol not supported"},
|
||||||
125: "address already in use",
|
{121, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||||
126: "cannot assign requested address",
|
{122, "ENOTSUP", "operation not supported"},
|
||||||
127: "network is down",
|
{123, "EPFNOSUPPORT", "protocol family not supported"},
|
||||||
128: "network is unreachable",
|
{124, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||||
129: "network dropped connection on reset",
|
{125, "EADDRINUSE", "address already in use"},
|
||||||
130: "software caused connection abort",
|
{126, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||||
131: "connection reset by peer",
|
{127, "ENETDOWN", "network is down"},
|
||||||
132: "no buffer space available",
|
{128, "ENETUNREACH", "network is unreachable"},
|
||||||
133: "transport endpoint is already connected",
|
{129, "ENETRESET", "network dropped connection on reset"},
|
||||||
134: "transport endpoint is not connected",
|
{130, "ECONNABORTED", "software caused connection abort"},
|
||||||
135: "structure needs cleaning",
|
{131, "ECONNRESET", "connection reset by peer"},
|
||||||
137: "not a XENIX named type file",
|
{132, "ENOBUFS", "no buffer space available"},
|
||||||
138: "no XENIX semaphores available",
|
{133, "EISCONN", "transport endpoint is already connected"},
|
||||||
139: "is a named type file",
|
{134, "ENOTCONN", "transport endpoint is not connected"},
|
||||||
140: "remote I/O error",
|
{135, "EUCLEAN", "structure needs cleaning"},
|
||||||
141: "unknown error 141",
|
{137, "ENOTNAM", "not a XENIX named type file"},
|
||||||
142: "unknown error 142",
|
{138, "ENAVAIL", "no XENIX semaphores available"},
|
||||||
143: "cannot send after transport endpoint shutdown",
|
{139, "EISNAM", "is a named type file"},
|
||||||
144: "too many references: cannot splice",
|
{140, "EREMOTEIO", "remote I/O error"},
|
||||||
145: "connection timed out",
|
{141, "EINIT", "unknown error 141"},
|
||||||
146: "connection refused",
|
{142, "EREMDEV", "unknown error 142"},
|
||||||
147: "host is down",
|
{143, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||||
148: "no route to host",
|
{144, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||||
149: "operation already in progress",
|
{145, "ETIMEDOUT", "connection timed out"},
|
||||||
150: "operation now in progress",
|
{146, "ECONNREFUSED", "connection refused"},
|
||||||
151: "stale file handle",
|
{147, "EHOSTDOWN", "host is down"},
|
||||||
158: "operation canceled",
|
{148, "EHOSTUNREACH", "no route to host"},
|
||||||
159: "no medium found",
|
{149, "EALREADY", "operation already in progress"},
|
||||||
160: "wrong medium type",
|
{150, "EINPROGRESS", "operation now in progress"},
|
||||||
161: "required key not available",
|
{151, "ESTALE", "stale file handle"},
|
||||||
162: "key has expired",
|
{158, "ECANCELED", "operation canceled"},
|
||||||
163: "key has been revoked",
|
{159, "ENOMEDIUM", "no medium found"},
|
||||||
164: "key was rejected by service",
|
{160, "EMEDIUMTYPE", "wrong medium type"},
|
||||||
165: "owner died",
|
{161, "ENOKEY", "required key not available"},
|
||||||
166: "state not recoverable",
|
{162, "EKEYEXPIRED", "key has expired"},
|
||||||
167: "operation not possible due to RF-kill",
|
{163, "EKEYREVOKED", "key has been revoked"},
|
||||||
168: "memory page has hardware error",
|
{164, "EKEYREJECTED", "key was rejected by service"},
|
||||||
1133: "disk quota exceeded",
|
{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
|
// Signal table
|
||||||
var signals = [...]string{
|
var signalList = [...]struct {
|
||||||
1: "hangup",
|
num syscall.Signal
|
||||||
2: "interrupt",
|
name string
|
||||||
3: "quit",
|
desc string
|
||||||
4: "illegal instruction",
|
}{
|
||||||
5: "trace/breakpoint trap",
|
{1, "SIGHUP", "hangup"},
|
||||||
6: "aborted",
|
{2, "SIGINT", "interrupt"},
|
||||||
7: "EMT trap",
|
{3, "SIGQUIT", "quit"},
|
||||||
8: "floating point exception",
|
{4, "SIGILL", "illegal instruction"},
|
||||||
9: "killed",
|
{5, "SIGTRAP", "trace/breakpoint trap"},
|
||||||
10: "bus error",
|
{6, "SIGABRT", "aborted"},
|
||||||
11: "segmentation fault",
|
{7, "SIGEMT", "EMT trap"},
|
||||||
12: "bad system call",
|
{8, "SIGFPE", "floating point exception"},
|
||||||
13: "broken pipe",
|
{9, "SIGKILL", "killed"},
|
||||||
14: "alarm clock",
|
{10, "SIGBUS", "bus error"},
|
||||||
15: "terminated",
|
{11, "SIGSEGV", "segmentation fault"},
|
||||||
16: "user defined signal 1",
|
{12, "SIGSYS", "bad system call"},
|
||||||
17: "user defined signal 2",
|
{13, "SIGPIPE", "broken pipe"},
|
||||||
18: "child exited",
|
{14, "SIGALRM", "alarm clock"},
|
||||||
19: "power failure",
|
{15, "SIGTERM", "terminated"},
|
||||||
20: "window changed",
|
{16, "SIGUSR1", "user defined signal 1"},
|
||||||
21: "urgent I/O condition",
|
{17, "SIGUSR2", "user defined signal 2"},
|
||||||
22: "I/O possible",
|
{18, "SIGCHLD", "child exited"},
|
||||||
23: "stopped (signal)",
|
{19, "SIGPWR", "power failure"},
|
||||||
24: "stopped",
|
{20, "SIGWINCH", "window changed"},
|
||||||
25: "continued",
|
{21, "SIGURG", "urgent I/O condition"},
|
||||||
26: "stopped (tty input)",
|
{22, "SIGIO", "I/O possible"},
|
||||||
27: "stopped (tty output)",
|
{23, "SIGSTOP", "stopped (signal)"},
|
||||||
28: "virtual timer expired",
|
{24, "SIGTSTP", "stopped"},
|
||||||
29: "profiling timer expired",
|
{25, "SIGCONT", "continued"},
|
||||||
30: "CPU time limit exceeded",
|
{26, "SIGTTIN", "stopped (tty input)"},
|
||||||
31: "file size limit exceeded",
|
{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
|
// +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
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
@ -11,6 +11,11 @@ package unix
|
||||||
import "syscall"
|
import "syscall"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
AAFS_MAGIC = 0x5a3c69f0
|
||||||
|
ADFS_SUPER_MAGIC = 0xadf5
|
||||||
|
AFFS_SUPER_MAGIC = 0xadff
|
||||||
|
AFS_FS_MAGIC = 0x6b414653
|
||||||
|
AFS_SUPER_MAGIC = 0x5346414f
|
||||||
AF_ALG = 0x26
|
AF_ALG = 0x26
|
||||||
AF_APPLETALK = 0x5
|
AF_APPLETALK = 0x5
|
||||||
AF_ASH = 0x12
|
AF_ASH = 0x12
|
||||||
|
@ -66,6 +71,7 @@ const (
|
||||||
ALG_SET_IV = 0x2
|
ALG_SET_IV = 0x2
|
||||||
ALG_SET_KEY = 0x1
|
ALG_SET_KEY = 0x1
|
||||||
ALG_SET_OP = 0x3
|
ALG_SET_OP = 0x3
|
||||||
|
ANON_INODE_FS_MAGIC = 0x9041934
|
||||||
ARPHRD_6LOWPAN = 0x339
|
ARPHRD_6LOWPAN = 0x339
|
||||||
ARPHRD_ADAPT = 0x108
|
ARPHRD_ADAPT = 0x108
|
||||||
ARPHRD_APPLETLK = 0x8
|
ARPHRD_APPLETLK = 0x8
|
||||||
|
@ -133,6 +139,7 @@ const (
|
||||||
ARPHRD_VOID = 0xffff
|
ARPHRD_VOID = 0xffff
|
||||||
ARPHRD_VSOCKMON = 0x33a
|
ARPHRD_VSOCKMON = 0x33a
|
||||||
ARPHRD_X25 = 0x10f
|
ARPHRD_X25 = 0x10f
|
||||||
|
AUTOFS_SUPER_MAGIC = 0x187
|
||||||
B0 = 0x0
|
B0 = 0x0
|
||||||
B1000000 = 0x1008
|
B1000000 = 0x1008
|
||||||
B110 = 0x3
|
B110 = 0x3
|
||||||
|
@ -164,6 +171,9 @@ const (
|
||||||
B75 = 0x2
|
B75 = 0x2
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x40081270
|
BLKBSZGET = 0x40081270
|
||||||
BLKBSZSET = 0x80081271
|
BLKBSZSET = 0x80081271
|
||||||
BLKFLSBUF = 0x20001261
|
BLKFLSBUF = 0x20001261
|
||||||
|
@ -188,6 +198,7 @@ const (
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
|
@ -229,6 +240,8 @@ const (
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||||
|
BTRFS_TEST_MAGIC = 0x73727279
|
||||||
CAN_BCM = 0x2
|
CAN_BCM = 0x2
|
||||||
CAN_EFF_FLAG = 0x80000000
|
CAN_EFF_FLAG = 0x80000000
|
||||||
CAN_EFF_ID_BITS = 0x1d
|
CAN_EFF_ID_BITS = 0x1d
|
||||||
|
@ -252,6 +265,8 @@ const (
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
|
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||||
|
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||||
CIBAUD = 0x100f0000
|
CIBAUD = 0x100f0000
|
||||||
CLOCAL = 0x800
|
CLOCAL = 0x800
|
||||||
CLOCK_BOOTTIME = 0x7
|
CLOCK_BOOTTIME = 0x7
|
||||||
|
@ -294,10 +309,12 @@ const (
|
||||||
CLONE_VFORK = 0x4000
|
CLONE_VFORK = 0x4000
|
||||||
CLONE_VM = 0x100
|
CLONE_VM = 0x100
|
||||||
CMSPAR = 0x40000000
|
CMSPAR = 0x40000000
|
||||||
|
CODA_SUPER_MAGIC = 0x73757245
|
||||||
CR0 = 0x0
|
CR0 = 0x0
|
||||||
CR1 = 0x200
|
CR1 = 0x200
|
||||||
CR2 = 0x400
|
CR2 = 0x400
|
||||||
CR3 = 0x600
|
CR3 = 0x600
|
||||||
|
CRAMFS_MAGIC = 0x28cd3d45
|
||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
@ -312,6 +329,9 @@ const (
|
||||||
CSTOP = 0x13
|
CSTOP = 0x13
|
||||||
CSTOPB = 0x40
|
CSTOPB = 0x40
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
|
DAXFS_MAGIC = 0x64646178
|
||||||
|
DEBUGFS_MAGIC = 0x64626720
|
||||||
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -328,9 +348,12 @@ const (
|
||||||
ECHOKE = 0x800
|
ECHOKE = 0x800
|
||||||
ECHONL = 0x40
|
ECHONL = 0x40
|
||||||
ECHOPRT = 0x400
|
ECHOPRT = 0x400
|
||||||
|
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||||
EFD_CLOEXEC = 0x80000
|
EFD_CLOEXEC = 0x80000
|
||||||
EFD_NONBLOCK = 0x80
|
EFD_NONBLOCK = 0x80
|
||||||
EFD_SEMAPHORE = 0x1
|
EFD_SEMAPHORE = 0x1
|
||||||
|
EFIVARFS_MAGIC = 0xde5e81e4
|
||||||
|
EFS_SUPER_MAGIC = 0x414a53
|
||||||
ENCODING_DEFAULT = 0x0
|
ENCODING_DEFAULT = 0x0
|
||||||
ENCODING_FM_MARK = 0x3
|
ENCODING_FM_MARK = 0x3
|
||||||
ENCODING_FM_SPACE = 0x4
|
ENCODING_FM_SPACE = 0x4
|
||||||
|
@ -392,6 +415,7 @@ const (
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
|
ETH_P_ERSPAN2 = 0x22eb
|
||||||
ETH_P_FCOE = 0x8906
|
ETH_P_FCOE = 0x8906
|
||||||
ETH_P_FIP = 0x8914
|
ETH_P_FIP = 0x8914
|
||||||
ETH_P_HDLC = 0x19
|
ETH_P_HDLC = 0x19
|
||||||
|
@ -425,6 +449,7 @@ const (
|
||||||
ETH_P_PPP_DISC = 0x8863
|
ETH_P_PPP_DISC = 0x8863
|
||||||
ETH_P_PPP_MP = 0x8
|
ETH_P_PPP_MP = 0x8
|
||||||
ETH_P_PPP_SES = 0x8864
|
ETH_P_PPP_SES = 0x8864
|
||||||
|
ETH_P_PREAUTH = 0x88c7
|
||||||
ETH_P_PRP = 0x88fb
|
ETH_P_PRP = 0x88fb
|
||||||
ETH_P_PUP = 0x200
|
ETH_P_PUP = 0x200
|
||||||
ETH_P_PUPAT = 0x201
|
ETH_P_PUPAT = 0x201
|
||||||
|
@ -445,9 +470,14 @@ const (
|
||||||
ETH_P_WCCP = 0x883e
|
ETH_P_WCCP = 0x883e
|
||||||
ETH_P_X25 = 0x805
|
ETH_P_X25 = 0x805
|
||||||
ETH_P_XDSA = 0xf8
|
ETH_P_XDSA = 0xf8
|
||||||
|
EXABYTE_ENABLE_NEST = 0xf0
|
||||||
|
EXT2_SUPER_MAGIC = 0xef53
|
||||||
|
EXT3_SUPER_MAGIC = 0xef53
|
||||||
|
EXT4_SUPER_MAGIC = 0xef53
|
||||||
EXTA = 0xe
|
EXTA = 0xe
|
||||||
EXTB = 0xf
|
EXTB = 0xf
|
||||||
EXTPROC = 0x10000
|
EXTPROC = 0x10000
|
||||||
|
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||||
FALLOC_FL_INSERT_RANGE = 0x20
|
FALLOC_FL_INSERT_RANGE = 0x20
|
||||||
FALLOC_FL_KEEP_SIZE = 0x1
|
FALLOC_FL_KEEP_SIZE = 0x1
|
||||||
|
@ -481,6 +511,7 @@ const (
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x3
|
||||||
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
F_DUPFD_CLOEXEC = 0x406
|
F_DUPFD_CLOEXEC = 0x406
|
||||||
|
@ -542,6 +573,49 @@ const (
|
||||||
GENL_UNS_ADMIN_PERM = 0x10
|
GENL_UNS_ADMIN_PERM = 0x10
|
||||||
GRND_NONBLOCK = 0x1
|
GRND_NONBLOCK = 0x1
|
||||||
GRND_RANDOM = 0x2
|
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
|
HUPCL = 0x400
|
||||||
IBSHIFT = 0x10
|
IBSHIFT = 0x10
|
||||||
ICANON = 0x2
|
ICANON = 0x2
|
||||||
|
@ -792,12 +866,14 @@ const (
|
||||||
IP_UNICAST_IF = 0x32
|
IP_UNICAST_IF = 0x32
|
||||||
IP_XFRM_POLICY = 0x11
|
IP_XFRM_POLICY = 0x11
|
||||||
ISIG = 0x1
|
ISIG = 0x1
|
||||||
|
ISOFS_SUPER_MAGIC = 0x9660
|
||||||
ISTRIP = 0x20
|
ISTRIP = 0x20
|
||||||
IUCLC = 0x200
|
IUCLC = 0x200
|
||||||
IUTF8 = 0x4000
|
IUTF8 = 0x4000
|
||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
|
@ -894,9 +970,15 @@ const (
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
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_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
MSG_CONFIRM = 0x800
|
MSG_CONFIRM = 0x800
|
||||||
|
@ -956,7 +1038,9 @@ const (
|
||||||
MS_SYNCHRONOUS = 0x10
|
MS_SYNCHRONOUS = 0x10
|
||||||
MS_UNBINDABLE = 0x20000
|
MS_UNBINDABLE = 0x20000
|
||||||
MS_VERBOSE = 0x8000
|
MS_VERBOSE = 0x8000
|
||||||
|
MTD_INODE_FS_MAGIC = 0x11307854
|
||||||
NAME_MAX = 0xff
|
NAME_MAX = 0xff
|
||||||
|
NCP_SUPER_MAGIC = 0x564c
|
||||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||||
NETLINK_AUDIT = 0x9
|
NETLINK_AUDIT = 0x9
|
||||||
NETLINK_BROADCAST_ERROR = 0x4
|
NETLINK_BROADCAST_ERROR = 0x4
|
||||||
|
@ -991,6 +1075,37 @@ const (
|
||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
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
|
NL0 = 0x0
|
||||||
NL1 = 0x100
|
NL1 = 0x100
|
||||||
NLA_ALIGNTO = 0x4
|
NLA_ALIGNTO = 0x4
|
||||||
|
@ -1023,6 +1138,8 @@ const (
|
||||||
NLM_F_REQUEST = 0x1
|
NLM_F_REQUEST = 0x1
|
||||||
NLM_F_ROOT = 0x100
|
NLM_F_ROOT = 0x100
|
||||||
NOFLSH = 0x80
|
NOFLSH = 0x80
|
||||||
|
NSFS_MAGIC = 0x6e736673
|
||||||
|
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
OFILL = 0x40
|
OFILL = 0x40
|
||||||
|
@ -1030,7 +1147,9 @@ const (
|
||||||
ONLCR = 0x4
|
ONLCR = 0x4
|
||||||
ONLRET = 0x20
|
ONLRET = 0x20
|
||||||
ONOCR = 0x10
|
ONOCR = 0x10
|
||||||
|
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||||
OPOST = 0x1
|
OPOST = 0x1
|
||||||
|
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||||
O_ACCMODE = 0x3
|
O_ACCMODE = 0x3
|
||||||
O_APPEND = 0x8
|
O_APPEND = 0x8
|
||||||
O_ASYNC = 0x1000
|
O_ASYNC = 0x1000
|
||||||
|
@ -1115,16 +1234,20 @@ const (
|
||||||
PERF_EVENT_IOC_DISABLE = 0x20002401
|
PERF_EVENT_IOC_DISABLE = 0x20002401
|
||||||
PERF_EVENT_IOC_ENABLE = 0x20002400
|
PERF_EVENT_IOC_ENABLE = 0x20002400
|
||||||
PERF_EVENT_IOC_ID = 0x40082407
|
PERF_EVENT_IOC_ID = 0x40082407
|
||||||
|
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8008240b
|
||||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
|
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
|
||||||
PERF_EVENT_IOC_PERIOD = 0x80082404
|
PERF_EVENT_IOC_PERIOD = 0x80082404
|
||||||
|
PERF_EVENT_IOC_QUERY_BPF = 0xc008240a
|
||||||
PERF_EVENT_IOC_REFRESH = 0x20002402
|
PERF_EVENT_IOC_REFRESH = 0x20002402
|
||||||
PERF_EVENT_IOC_RESET = 0x20002403
|
PERF_EVENT_IOC_RESET = 0x20002403
|
||||||
PERF_EVENT_IOC_SET_BPF = 0x80042408
|
PERF_EVENT_IOC_SET_BPF = 0x80042408
|
||||||
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||||
|
PIPEFS_MAGIC = 0x50495045
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
|
PROC_SUPER_MAGIC = 0x9fa0
|
||||||
PROT_EXEC = 0x4
|
PROT_EXEC = 0x4
|
||||||
PROT_GROWSDOWN = 0x1000000
|
PROT_GROWSDOWN = 0x1000000
|
||||||
PROT_GROWSUP = 0x2000000
|
PROT_GROWSUP = 0x2000000
|
||||||
|
@ -1167,6 +1290,7 @@ const (
|
||||||
PR_GET_PDEATHSIG = 0x2
|
PR_GET_PDEATHSIG = 0x2
|
||||||
PR_GET_SECCOMP = 0x15
|
PR_GET_SECCOMP = 0x15
|
||||||
PR_GET_SECUREBITS = 0x1b
|
PR_GET_SECUREBITS = 0x1b
|
||||||
|
PR_GET_SPECULATION_CTRL = 0x34
|
||||||
PR_GET_THP_DISABLE = 0x2a
|
PR_GET_THP_DISABLE = 0x2a
|
||||||
PR_GET_TID_ADDRESS = 0x28
|
PR_GET_TID_ADDRESS = 0x28
|
||||||
PR_GET_TIMERSLACK = 0x1e
|
PR_GET_TIMERSLACK = 0x1e
|
||||||
|
@ -1212,11 +1336,18 @@ const (
|
||||||
PR_SET_PTRACER_ANY = 0xffffffffffffffff
|
PR_SET_PTRACER_ANY = 0xffffffffffffffff
|
||||||
PR_SET_SECCOMP = 0x16
|
PR_SET_SECCOMP = 0x16
|
||||||
PR_SET_SECUREBITS = 0x1c
|
PR_SET_SECUREBITS = 0x1c
|
||||||
|
PR_SET_SPECULATION_CTRL = 0x35
|
||||||
PR_SET_THP_DISABLE = 0x29
|
PR_SET_THP_DISABLE = 0x29
|
||||||
PR_SET_TIMERSLACK = 0x1d
|
PR_SET_TIMERSLACK = 0x1d
|
||||||
PR_SET_TIMING = 0xe
|
PR_SET_TIMING = 0xe
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
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_GET_VL = 0x33
|
||||||
PR_SVE_SET_VL = 0x32
|
PR_SVE_SET_VL = 0x32
|
||||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||||
|
@ -1230,6 +1361,7 @@ const (
|
||||||
PR_TSC_SIGSEGV = 0x2
|
PR_TSC_SIGSEGV = 0x2
|
||||||
PR_UNALIGN_NOPRINT = 0x1
|
PR_UNALIGN_NOPRINT = 0x1
|
||||||
PR_UNALIGN_SIGBUS = 0x2
|
PR_UNALIGN_SIGBUS = 0x2
|
||||||
|
PSTOREFS_MAGIC = 0x6165676c
|
||||||
PTRACE_ATTACH = 0x10
|
PTRACE_ATTACH = 0x10
|
||||||
PTRACE_CONT = 0x7
|
PTRACE_CONT = 0x7
|
||||||
PTRACE_DETACH = 0x11
|
PTRACE_DETACH = 0x11
|
||||||
|
@ -1278,6 +1410,7 @@ const (
|
||||||
PTRACE_POKETEXT_3264 = 0xc2
|
PTRACE_POKETEXT_3264 = 0xc2
|
||||||
PTRACE_POKEUSR = 0x6
|
PTRACE_POKEUSR = 0x6
|
||||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||||
|
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||||
PTRACE_SEIZE = 0x4206
|
PTRACE_SEIZE = 0x4206
|
||||||
PTRACE_SETFPREGS = 0xf
|
PTRACE_SETFPREGS = 0xf
|
||||||
PTRACE_SETOPTIONS = 0x4200
|
PTRACE_SETOPTIONS = 0x4200
|
||||||
|
@ -1290,6 +1423,11 @@ const (
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
PTRACE_TRACEME = 0x0
|
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_AS = 0x6
|
||||||
RLIMIT_CORE = 0x4
|
RLIMIT_CORE = 0x4
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
|
@ -1339,6 +1477,33 @@ const (
|
||||||
RTCF_MASQ = 0x400000
|
RTCF_MASQ = 0x400000
|
||||||
RTCF_NAT = 0x800000
|
RTCF_NAT = 0x800000
|
||||||
RTCF_VALVE = 0x200000
|
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_ADDRCLASSMASK = 0xf8000000
|
||||||
RTF_ADDRCONF = 0x40000
|
RTF_ADDRCONF = 0x40000
|
||||||
RTF_ALLONLINK = 0x20000
|
RTF_ALLONLINK = 0x20000
|
||||||
|
@ -1475,6 +1640,8 @@ const (
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1559,6 +1726,23 @@ const (
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
SIOCWANDEV = 0x894a
|
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_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x1
|
SOCK_DGRAM = 0x1
|
||||||
|
@ -1670,6 +1854,8 @@ const (
|
||||||
SPLICE_F_MORE = 0x4
|
SPLICE_F_MORE = 0x4
|
||||||
SPLICE_F_MOVE = 0x1
|
SPLICE_F_MOVE = 0x1
|
||||||
SPLICE_F_NONBLOCK = 0x2
|
SPLICE_F_NONBLOCK = 0x2
|
||||||
|
SQUASHFS_MAGIC = 0x73717368
|
||||||
|
STACK_END_MAGIC = 0x57ac6e9d
|
||||||
STATX_ALL = 0xfff
|
STATX_ALL = 0xfff
|
||||||
STATX_ATIME = 0x20
|
STATX_ATIME = 0x20
|
||||||
STATX_ATTR_APPEND = 0x20
|
STATX_ATTR_APPEND = 0x20
|
||||||
|
@ -1691,6 +1877,7 @@ const (
|
||||||
STATX_TYPE = 0x1
|
STATX_TYPE = 0x1
|
||||||
STATX_UID = 0x8
|
STATX_UID = 0x8
|
||||||
STATX__RESERVED = 0x80000000
|
STATX__RESERVED = 0x80000000
|
||||||
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
S_IFBLK = 0x6000
|
S_IFBLK = 0x6000
|
||||||
|
@ -1873,7 +2060,27 @@ const (
|
||||||
TIOCSTI = 0x5472
|
TIOCSTI = 0x5472
|
||||||
TIOCSWINSZ = 0x80087467
|
TIOCSWINSZ = 0x80087467
|
||||||
TIOCVHANGUP = 0x5437
|
TIOCVHANGUP = 0x5437
|
||||||
|
TMPFS_MAGIC = 0x1021994
|
||||||
TOSTOP = 0x8000
|
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
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x801054d5
|
TUNATTACHFILTER = 0x801054d5
|
||||||
TUNDETACHFILTER = 0x801054d6
|
TUNDETACHFILTER = 0x801054d6
|
||||||
|
@ -1885,6 +2092,7 @@ const (
|
||||||
TUNGETVNETHDRSZ = 0x400454d7
|
TUNGETVNETHDRSZ = 0x400454d7
|
||||||
TUNGETVNETLE = 0x400454dd
|
TUNGETVNETLE = 0x400454dd
|
||||||
TUNSETDEBUG = 0x800454c9
|
TUNSETDEBUG = 0x800454c9
|
||||||
|
TUNSETFILTEREBPF = 0x400454e1
|
||||||
TUNSETGROUP = 0x800454ce
|
TUNSETGROUP = 0x800454ce
|
||||||
TUNSETIFF = 0x800454ca
|
TUNSETIFF = 0x800454ca
|
||||||
TUNSETIFINDEX = 0x800454da
|
TUNSETIFINDEX = 0x800454da
|
||||||
|
@ -1895,13 +2103,17 @@ const (
|
||||||
TUNSETPERSIST = 0x800454cb
|
TUNSETPERSIST = 0x800454cb
|
||||||
TUNSETQUEUE = 0x800454d9
|
TUNSETQUEUE = 0x800454d9
|
||||||
TUNSETSNDBUF = 0x800454d4
|
TUNSETSNDBUF = 0x800454d4
|
||||||
|
TUNSETSTEERINGEBPF = 0x400454e0
|
||||||
TUNSETTXFILTER = 0x800454d1
|
TUNSETTXFILTER = 0x800454d1
|
||||||
TUNSETVNETBE = 0x800454de
|
TUNSETVNETBE = 0x800454de
|
||||||
TUNSETVNETHDRSZ = 0x800454d8
|
TUNSETVNETHDRSZ = 0x800454d8
|
||||||
TUNSETVNETLE = 0x800454dc
|
TUNSETVNETLE = 0x800454dc
|
||||||
|
UDF_SUPER_MAGIC = 0x15013346
|
||||||
UMOUNT_NOFOLLOW = 0x8
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
|
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||||
UTIME_NOW = 0x3fffffff
|
UTIME_NOW = 0x3fffffff
|
||||||
UTIME_OMIT = 0x3ffffffe
|
UTIME_OMIT = 0x3ffffffe
|
||||||
|
V9FS_MAGIC = 0x1021997
|
||||||
VDISCARD = 0xd
|
VDISCARD = 0xd
|
||||||
VEOF = 0x10
|
VEOF = 0x10
|
||||||
VEOL = 0x11
|
VEOL = 0x11
|
||||||
|
@ -1944,6 +2156,86 @@ const (
|
||||||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||||
WDIOC_SETTIMEOUT = 0xc0045706
|
WDIOC_SETTIMEOUT = 0xc0045706
|
||||||
WEXITED = 0x4
|
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
|
WNOHANG = 0x1
|
||||||
WNOTHREAD = 0x20000000
|
WNOTHREAD = 0x20000000
|
||||||
WNOWAIT = 0x1000000
|
WNOWAIT = 0x1000000
|
||||||
|
@ -1953,7 +2245,9 @@ const (
|
||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
||||||
// Errors
|
// Errors
|
||||||
|
@ -2135,174 +2429,182 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// Error table
|
// Error table
|
||||||
var errors = [...]string{
|
var errorList = [...]struct {
|
||||||
1: "operation not permitted",
|
num syscall.Errno
|
||||||
2: "no such file or directory",
|
name string
|
||||||
3: "no such process",
|
desc string
|
||||||
4: "interrupted system call",
|
}{
|
||||||
5: "input/output error",
|
{1, "EPERM", "operation not permitted"},
|
||||||
6: "no such device or address",
|
{2, "ENOENT", "no such file or directory"},
|
||||||
7: "argument list too long",
|
{3, "ESRCH", "no such process"},
|
||||||
8: "exec format error",
|
{4, "EINTR", "interrupted system call"},
|
||||||
9: "bad file descriptor",
|
{5, "EIO", "input/output error"},
|
||||||
10: "no child processes",
|
{6, "ENXIO", "no such device or address"},
|
||||||
11: "resource temporarily unavailable",
|
{7, "E2BIG", "argument list too long"},
|
||||||
12: "cannot allocate memory",
|
{8, "ENOEXEC", "exec format error"},
|
||||||
13: "permission denied",
|
{9, "EBADF", "bad file descriptor"},
|
||||||
14: "bad address",
|
{10, "ECHILD", "no child processes"},
|
||||||
15: "block device required",
|
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||||
16: "device or resource busy",
|
{12, "ENOMEM", "cannot allocate memory"},
|
||||||
17: "file exists",
|
{13, "EACCES", "permission denied"},
|
||||||
18: "invalid cross-device link",
|
{14, "EFAULT", "bad address"},
|
||||||
19: "no such device",
|
{15, "ENOTBLK", "block device required"},
|
||||||
20: "not a directory",
|
{16, "EBUSY", "device or resource busy"},
|
||||||
21: "is a directory",
|
{17, "EEXIST", "file exists"},
|
||||||
22: "invalid argument",
|
{18, "EXDEV", "invalid cross-device link"},
|
||||||
23: "too many open files in system",
|
{19, "ENODEV", "no such device"},
|
||||||
24: "too many open files",
|
{20, "ENOTDIR", "not a directory"},
|
||||||
25: "inappropriate ioctl for device",
|
{21, "EISDIR", "is a directory"},
|
||||||
26: "text file busy",
|
{22, "EINVAL", "invalid argument"},
|
||||||
27: "file too large",
|
{23, "ENFILE", "too many open files in system"},
|
||||||
28: "no space left on device",
|
{24, "EMFILE", "too many open files"},
|
||||||
29: "illegal seek",
|
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||||
30: "read-only file system",
|
{26, "ETXTBSY", "text file busy"},
|
||||||
31: "too many links",
|
{27, "EFBIG", "file too large"},
|
||||||
32: "broken pipe",
|
{28, "ENOSPC", "no space left on device"},
|
||||||
33: "numerical argument out of domain",
|
{29, "ESPIPE", "illegal seek"},
|
||||||
34: "numerical result out of range",
|
{30, "EROFS", "read-only file system"},
|
||||||
35: "no message of desired type",
|
{31, "EMLINK", "too many links"},
|
||||||
36: "identifier removed",
|
{32, "EPIPE", "broken pipe"},
|
||||||
37: "channel number out of range",
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
38: "level 2 not synchronized",
|
{34, "ERANGE", "numerical result out of range"},
|
||||||
39: "level 3 halted",
|
{35, "ENOMSG", "no message of desired type"},
|
||||||
40: "level 3 reset",
|
{36, "EIDRM", "identifier removed"},
|
||||||
41: "link number out of range",
|
{37, "ECHRNG", "channel number out of range"},
|
||||||
42: "protocol driver not attached",
|
{38, "EL2NSYNC", "level 2 not synchronized"},
|
||||||
43: "no CSI structure available",
|
{39, "EL3HLT", "level 3 halted"},
|
||||||
44: "level 2 halted",
|
{40, "EL3RST", "level 3 reset"},
|
||||||
45: "resource deadlock avoided",
|
{41, "ELNRNG", "link number out of range"},
|
||||||
46: "no locks available",
|
{42, "EUNATCH", "protocol driver not attached"},
|
||||||
50: "invalid exchange",
|
{43, "ENOCSI", "no CSI structure available"},
|
||||||
51: "invalid request descriptor",
|
{44, "EL2HLT", "level 2 halted"},
|
||||||
52: "exchange full",
|
{45, "EDEADLK", "resource deadlock avoided"},
|
||||||
53: "no anode",
|
{46, "ENOLCK", "no locks available"},
|
||||||
54: "invalid request code",
|
{50, "EBADE", "invalid exchange"},
|
||||||
55: "invalid slot",
|
{51, "EBADR", "invalid request descriptor"},
|
||||||
56: "file locking deadlock error",
|
{52, "EXFULL", "exchange full"},
|
||||||
59: "bad font file format",
|
{53, "ENOANO", "no anode"},
|
||||||
60: "device not a stream",
|
{54, "EBADRQC", "invalid request code"},
|
||||||
61: "no data available",
|
{55, "EBADSLT", "invalid slot"},
|
||||||
62: "timer expired",
|
{56, "EDEADLOCK", "file locking deadlock error"},
|
||||||
63: "out of streams resources",
|
{59, "EBFONT", "bad font file format"},
|
||||||
64: "machine is not on the network",
|
{60, "ENOSTR", "device not a stream"},
|
||||||
65: "package not installed",
|
{61, "ENODATA", "no data available"},
|
||||||
66: "object is remote",
|
{62, "ETIME", "timer expired"},
|
||||||
67: "link has been severed",
|
{63, "ENOSR", "out of streams resources"},
|
||||||
68: "advertise error",
|
{64, "ENONET", "machine is not on the network"},
|
||||||
69: "srmount error",
|
{65, "ENOPKG", "package not installed"},
|
||||||
70: "communication error on send",
|
{66, "EREMOTE", "object is remote"},
|
||||||
71: "protocol error",
|
{67, "ENOLINK", "link has been severed"},
|
||||||
73: "RFS specific error",
|
{68, "EADV", "advertise error"},
|
||||||
74: "multihop attempted",
|
{69, "ESRMNT", "srmount error"},
|
||||||
77: "bad message",
|
{70, "ECOMM", "communication error on send"},
|
||||||
78: "file name too long",
|
{71, "EPROTO", "protocol error"},
|
||||||
79: "value too large for defined data type",
|
{73, "EDOTDOT", "RFS specific error"},
|
||||||
80: "name not unique on network",
|
{74, "EMULTIHOP", "multihop attempted"},
|
||||||
81: "file descriptor in bad state",
|
{77, "EBADMSG", "bad message"},
|
||||||
82: "remote address changed",
|
{78, "ENAMETOOLONG", "file name too long"},
|
||||||
83: "can not access a needed shared library",
|
{79, "EOVERFLOW", "value too large for defined data type"},
|
||||||
84: "accessing a corrupted shared library",
|
{80, "ENOTUNIQ", "name not unique on network"},
|
||||||
85: ".lib section in a.out corrupted",
|
{81, "EBADFD", "file descriptor in bad state"},
|
||||||
86: "attempting to link in too many shared libraries",
|
{82, "EREMCHG", "remote address changed"},
|
||||||
87: "cannot exec a shared library directly",
|
{83, "ELIBACC", "can not access a needed shared library"},
|
||||||
88: "invalid or incomplete multibyte or wide character",
|
{84, "ELIBBAD", "accessing a corrupted shared library"},
|
||||||
89: "function not implemented",
|
{85, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||||
90: "too many levels of symbolic links",
|
{86, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||||
91: "interrupted system call should be restarted",
|
{87, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||||
92: "streams pipe error",
|
{88, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||||
93: "directory not empty",
|
{89, "ENOSYS", "function not implemented"},
|
||||||
94: "too many users",
|
{90, "ELOOP", "too many levels of symbolic links"},
|
||||||
95: "socket operation on non-socket",
|
{91, "ERESTART", "interrupted system call should be restarted"},
|
||||||
96: "destination address required",
|
{92, "ESTRPIPE", "streams pipe error"},
|
||||||
97: "message too long",
|
{93, "ENOTEMPTY", "directory not empty"},
|
||||||
98: "protocol wrong type for socket",
|
{94, "EUSERS", "too many users"},
|
||||||
99: "protocol not available",
|
{95, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
120: "protocol not supported",
|
{96, "EDESTADDRREQ", "destination address required"},
|
||||||
121: "socket type not supported",
|
{97, "EMSGSIZE", "message too long"},
|
||||||
122: "operation not supported",
|
{98, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||||
123: "protocol family not supported",
|
{99, "ENOPROTOOPT", "protocol not available"},
|
||||||
124: "address family not supported by protocol",
|
{120, "EPROTONOSUPPORT", "protocol not supported"},
|
||||||
125: "address already in use",
|
{121, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||||
126: "cannot assign requested address",
|
{122, "ENOTSUP", "operation not supported"},
|
||||||
127: "network is down",
|
{123, "EPFNOSUPPORT", "protocol family not supported"},
|
||||||
128: "network is unreachable",
|
{124, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||||
129: "network dropped connection on reset",
|
{125, "EADDRINUSE", "address already in use"},
|
||||||
130: "software caused connection abort",
|
{126, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||||
131: "connection reset by peer",
|
{127, "ENETDOWN", "network is down"},
|
||||||
132: "no buffer space available",
|
{128, "ENETUNREACH", "network is unreachable"},
|
||||||
133: "transport endpoint is already connected",
|
{129, "ENETRESET", "network dropped connection on reset"},
|
||||||
134: "transport endpoint is not connected",
|
{130, "ECONNABORTED", "software caused connection abort"},
|
||||||
135: "structure needs cleaning",
|
{131, "ECONNRESET", "connection reset by peer"},
|
||||||
137: "not a XENIX named type file",
|
{132, "ENOBUFS", "no buffer space available"},
|
||||||
138: "no XENIX semaphores available",
|
{133, "EISCONN", "transport endpoint is already connected"},
|
||||||
139: "is a named type file",
|
{134, "ENOTCONN", "transport endpoint is not connected"},
|
||||||
140: "remote I/O error",
|
{135, "EUCLEAN", "structure needs cleaning"},
|
||||||
141: "unknown error 141",
|
{137, "ENOTNAM", "not a XENIX named type file"},
|
||||||
142: "unknown error 142",
|
{138, "ENAVAIL", "no XENIX semaphores available"},
|
||||||
143: "cannot send after transport endpoint shutdown",
|
{139, "EISNAM", "is a named type file"},
|
||||||
144: "too many references: cannot splice",
|
{140, "EREMOTEIO", "remote I/O error"},
|
||||||
145: "connection timed out",
|
{141, "EINIT", "unknown error 141"},
|
||||||
146: "connection refused",
|
{142, "EREMDEV", "unknown error 142"},
|
||||||
147: "host is down",
|
{143, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||||
148: "no route to host",
|
{144, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||||
149: "operation already in progress",
|
{145, "ETIMEDOUT", "connection timed out"},
|
||||||
150: "operation now in progress",
|
{146, "ECONNREFUSED", "connection refused"},
|
||||||
151: "stale file handle",
|
{147, "EHOSTDOWN", "host is down"},
|
||||||
158: "operation canceled",
|
{148, "EHOSTUNREACH", "no route to host"},
|
||||||
159: "no medium found",
|
{149, "EALREADY", "operation already in progress"},
|
||||||
160: "wrong medium type",
|
{150, "EINPROGRESS", "operation now in progress"},
|
||||||
161: "required key not available",
|
{151, "ESTALE", "stale file handle"},
|
||||||
162: "key has expired",
|
{158, "ECANCELED", "operation canceled"},
|
||||||
163: "key has been revoked",
|
{159, "ENOMEDIUM", "no medium found"},
|
||||||
164: "key was rejected by service",
|
{160, "EMEDIUMTYPE", "wrong medium type"},
|
||||||
165: "owner died",
|
{161, "ENOKEY", "required key not available"},
|
||||||
166: "state not recoverable",
|
{162, "EKEYEXPIRED", "key has expired"},
|
||||||
167: "operation not possible due to RF-kill",
|
{163, "EKEYREVOKED", "key has been revoked"},
|
||||||
168: "memory page has hardware error",
|
{164, "EKEYREJECTED", "key was rejected by service"},
|
||||||
1133: "disk quota exceeded",
|
{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
|
// Signal table
|
||||||
var signals = [...]string{
|
var signalList = [...]struct {
|
||||||
1: "hangup",
|
num syscall.Signal
|
||||||
2: "interrupt",
|
name string
|
||||||
3: "quit",
|
desc string
|
||||||
4: "illegal instruction",
|
}{
|
||||||
5: "trace/breakpoint trap",
|
{1, "SIGHUP", "hangup"},
|
||||||
6: "aborted",
|
{2, "SIGINT", "interrupt"},
|
||||||
7: "EMT trap",
|
{3, "SIGQUIT", "quit"},
|
||||||
8: "floating point exception",
|
{4, "SIGILL", "illegal instruction"},
|
||||||
9: "killed",
|
{5, "SIGTRAP", "trace/breakpoint trap"},
|
||||||
10: "bus error",
|
{6, "SIGABRT", "aborted"},
|
||||||
11: "segmentation fault",
|
{7, "SIGEMT", "EMT trap"},
|
||||||
12: "bad system call",
|
{8, "SIGFPE", "floating point exception"},
|
||||||
13: "broken pipe",
|
{9, "SIGKILL", "killed"},
|
||||||
14: "alarm clock",
|
{10, "SIGBUS", "bus error"},
|
||||||
15: "terminated",
|
{11, "SIGSEGV", "segmentation fault"},
|
||||||
16: "user defined signal 1",
|
{12, "SIGSYS", "bad system call"},
|
||||||
17: "user defined signal 2",
|
{13, "SIGPIPE", "broken pipe"},
|
||||||
18: "child exited",
|
{14, "SIGALRM", "alarm clock"},
|
||||||
19: "power failure",
|
{15, "SIGTERM", "terminated"},
|
||||||
20: "window changed",
|
{16, "SIGUSR1", "user defined signal 1"},
|
||||||
21: "urgent I/O condition",
|
{17, "SIGUSR2", "user defined signal 2"},
|
||||||
22: "I/O possible",
|
{18, "SIGCHLD", "child exited"},
|
||||||
23: "stopped (signal)",
|
{19, "SIGPWR", "power failure"},
|
||||||
24: "stopped",
|
{20, "SIGWINCH", "window changed"},
|
||||||
25: "continued",
|
{21, "SIGURG", "urgent I/O condition"},
|
||||||
26: "stopped (tty input)",
|
{22, "SIGIO", "I/O possible"},
|
||||||
27: "stopped (tty output)",
|
{23, "SIGSTOP", "stopped (signal)"},
|
||||||
28: "virtual timer expired",
|
{24, "SIGTSTP", "stopped"},
|
||||||
29: "profiling timer expired",
|
{25, "SIGCONT", "continued"},
|
||||||
30: "CPU time limit exceeded",
|
{26, "SIGTTIN", "stopped (tty input)"},
|
||||||
31: "file size limit exceeded",
|
{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
|
// +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
|
// cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
@ -11,6 +11,11 @@ package unix
|
||||||
import "syscall"
|
import "syscall"
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
AAFS_MAGIC = 0x5a3c69f0
|
||||||
|
ADFS_SUPER_MAGIC = 0xadf5
|
||||||
|
AFFS_SUPER_MAGIC = 0xadff
|
||||||
|
AFS_FS_MAGIC = 0x6b414653
|
||||||
|
AFS_SUPER_MAGIC = 0x5346414f
|
||||||
AF_ALG = 0x26
|
AF_ALG = 0x26
|
||||||
AF_APPLETALK = 0x5
|
AF_APPLETALK = 0x5
|
||||||
AF_ASH = 0x12
|
AF_ASH = 0x12
|
||||||
|
@ -66,6 +71,7 @@ const (
|
||||||
ALG_SET_IV = 0x2
|
ALG_SET_IV = 0x2
|
||||||
ALG_SET_KEY = 0x1
|
ALG_SET_KEY = 0x1
|
||||||
ALG_SET_OP = 0x3
|
ALG_SET_OP = 0x3
|
||||||
|
ANON_INODE_FS_MAGIC = 0x9041934
|
||||||
ARPHRD_6LOWPAN = 0x339
|
ARPHRD_6LOWPAN = 0x339
|
||||||
ARPHRD_ADAPT = 0x108
|
ARPHRD_ADAPT = 0x108
|
||||||
ARPHRD_APPLETLK = 0x8
|
ARPHRD_APPLETLK = 0x8
|
||||||
|
@ -133,6 +139,7 @@ const (
|
||||||
ARPHRD_VOID = 0xffff
|
ARPHRD_VOID = 0xffff
|
||||||
ARPHRD_VSOCKMON = 0x33a
|
ARPHRD_VSOCKMON = 0x33a
|
||||||
ARPHRD_X25 = 0x10f
|
ARPHRD_X25 = 0x10f
|
||||||
|
AUTOFS_SUPER_MAGIC = 0x187
|
||||||
B0 = 0x0
|
B0 = 0x0
|
||||||
B1000000 = 0x1008
|
B1000000 = 0x1008
|
||||||
B110 = 0x3
|
B110 = 0x3
|
||||||
|
@ -164,6 +171,9 @@ const (
|
||||||
B75 = 0x2
|
B75 = 0x2
|
||||||
B921600 = 0x1007
|
B921600 = 0x1007
|
||||||
B9600 = 0xd
|
B9600 = 0xd
|
||||||
|
BALLOON_KVM_MAGIC = 0x13661366
|
||||||
|
BDEVFS_MAGIC = 0x62646576
|
||||||
|
BINFMTFS_MAGIC = 0x42494e4d
|
||||||
BLKBSZGET = 0x40041270
|
BLKBSZGET = 0x40041270
|
||||||
BLKBSZSET = 0x80041271
|
BLKBSZSET = 0x80041271
|
||||||
BLKFLSBUF = 0x20001261
|
BLKFLSBUF = 0x20001261
|
||||||
|
@ -188,6 +198,7 @@ const (
|
||||||
BPF_AND = 0x50
|
BPF_AND = 0x50
|
||||||
BPF_B = 0x10
|
BPF_B = 0x10
|
||||||
BPF_DIV = 0x30
|
BPF_DIV = 0x30
|
||||||
|
BPF_FS_MAGIC = 0xcafe4a11
|
||||||
BPF_H = 0x8
|
BPF_H = 0x8
|
||||||
BPF_IMM = 0x0
|
BPF_IMM = 0x0
|
||||||
BPF_IND = 0x40
|
BPF_IND = 0x40
|
||||||
|
@ -229,6 +240,8 @@ const (
|
||||||
BS0 = 0x0
|
BS0 = 0x0
|
||||||
BS1 = 0x2000
|
BS1 = 0x2000
|
||||||
BSDLY = 0x2000
|
BSDLY = 0x2000
|
||||||
|
BTRFS_SUPER_MAGIC = 0x9123683e
|
||||||
|
BTRFS_TEST_MAGIC = 0x73727279
|
||||||
CAN_BCM = 0x2
|
CAN_BCM = 0x2
|
||||||
CAN_EFF_FLAG = 0x80000000
|
CAN_EFF_FLAG = 0x80000000
|
||||||
CAN_EFF_ID_BITS = 0x1d
|
CAN_EFF_ID_BITS = 0x1d
|
||||||
|
@ -252,6 +265,8 @@ const (
|
||||||
CBAUD = 0x100f
|
CBAUD = 0x100f
|
||||||
CBAUDEX = 0x1000
|
CBAUDEX = 0x1000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
|
CGROUP2_SUPER_MAGIC = 0x63677270
|
||||||
|
CGROUP_SUPER_MAGIC = 0x27e0eb
|
||||||
CIBAUD = 0x100f0000
|
CIBAUD = 0x100f0000
|
||||||
CLOCAL = 0x800
|
CLOCAL = 0x800
|
||||||
CLOCK_BOOTTIME = 0x7
|
CLOCK_BOOTTIME = 0x7
|
||||||
|
@ -294,10 +309,12 @@ const (
|
||||||
CLONE_VFORK = 0x4000
|
CLONE_VFORK = 0x4000
|
||||||
CLONE_VM = 0x100
|
CLONE_VM = 0x100
|
||||||
CMSPAR = 0x40000000
|
CMSPAR = 0x40000000
|
||||||
|
CODA_SUPER_MAGIC = 0x73757245
|
||||||
CR0 = 0x0
|
CR0 = 0x0
|
||||||
CR1 = 0x200
|
CR1 = 0x200
|
||||||
CR2 = 0x400
|
CR2 = 0x400
|
||||||
CR3 = 0x600
|
CR3 = 0x600
|
||||||
|
CRAMFS_MAGIC = 0x28cd3d45
|
||||||
CRDLY = 0x600
|
CRDLY = 0x600
|
||||||
CREAD = 0x80
|
CREAD = 0x80
|
||||||
CRTSCTS = 0x80000000
|
CRTSCTS = 0x80000000
|
||||||
|
@ -312,6 +329,9 @@ const (
|
||||||
CSTOP = 0x13
|
CSTOP = 0x13
|
||||||
CSTOPB = 0x40
|
CSTOPB = 0x40
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
|
DAXFS_MAGIC = 0x64646178
|
||||||
|
DEBUGFS_MAGIC = 0x64626720
|
||||||
|
DEVPTS_SUPER_MAGIC = 0x1cd1
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -328,9 +348,12 @@ const (
|
||||||
ECHOKE = 0x800
|
ECHOKE = 0x800
|
||||||
ECHONL = 0x40
|
ECHONL = 0x40
|
||||||
ECHOPRT = 0x400
|
ECHOPRT = 0x400
|
||||||
|
ECRYPTFS_SUPER_MAGIC = 0xf15f
|
||||||
EFD_CLOEXEC = 0x80000
|
EFD_CLOEXEC = 0x80000
|
||||||
EFD_NONBLOCK = 0x80
|
EFD_NONBLOCK = 0x80
|
||||||
EFD_SEMAPHORE = 0x1
|
EFD_SEMAPHORE = 0x1
|
||||||
|
EFIVARFS_MAGIC = 0xde5e81e4
|
||||||
|
EFS_SUPER_MAGIC = 0x414a53
|
||||||
ENCODING_DEFAULT = 0x0
|
ENCODING_DEFAULT = 0x0
|
||||||
ENCODING_FM_MARK = 0x3
|
ENCODING_FM_MARK = 0x3
|
||||||
ENCODING_FM_SPACE = 0x4
|
ENCODING_FM_SPACE = 0x4
|
||||||
|
@ -392,6 +415,7 @@ const (
|
||||||
ETH_P_ECONET = 0x18
|
ETH_P_ECONET = 0x18
|
||||||
ETH_P_EDSA = 0xdada
|
ETH_P_EDSA = 0xdada
|
||||||
ETH_P_ERSPAN = 0x88be
|
ETH_P_ERSPAN = 0x88be
|
||||||
|
ETH_P_ERSPAN2 = 0x22eb
|
||||||
ETH_P_FCOE = 0x8906
|
ETH_P_FCOE = 0x8906
|
||||||
ETH_P_FIP = 0x8914
|
ETH_P_FIP = 0x8914
|
||||||
ETH_P_HDLC = 0x19
|
ETH_P_HDLC = 0x19
|
||||||
|
@ -425,6 +449,7 @@ const (
|
||||||
ETH_P_PPP_DISC = 0x8863
|
ETH_P_PPP_DISC = 0x8863
|
||||||
ETH_P_PPP_MP = 0x8
|
ETH_P_PPP_MP = 0x8
|
||||||
ETH_P_PPP_SES = 0x8864
|
ETH_P_PPP_SES = 0x8864
|
||||||
|
ETH_P_PREAUTH = 0x88c7
|
||||||
ETH_P_PRP = 0x88fb
|
ETH_P_PRP = 0x88fb
|
||||||
ETH_P_PUP = 0x200
|
ETH_P_PUP = 0x200
|
||||||
ETH_P_PUPAT = 0x201
|
ETH_P_PUPAT = 0x201
|
||||||
|
@ -445,9 +470,14 @@ const (
|
||||||
ETH_P_WCCP = 0x883e
|
ETH_P_WCCP = 0x883e
|
||||||
ETH_P_X25 = 0x805
|
ETH_P_X25 = 0x805
|
||||||
ETH_P_XDSA = 0xf8
|
ETH_P_XDSA = 0xf8
|
||||||
|
EXABYTE_ENABLE_NEST = 0xf0
|
||||||
|
EXT2_SUPER_MAGIC = 0xef53
|
||||||
|
EXT3_SUPER_MAGIC = 0xef53
|
||||||
|
EXT4_SUPER_MAGIC = 0xef53
|
||||||
EXTA = 0xe
|
EXTA = 0xe
|
||||||
EXTB = 0xf
|
EXTB = 0xf
|
||||||
EXTPROC = 0x10000
|
EXTPROC = 0x10000
|
||||||
|
F2FS_SUPER_MAGIC = 0xf2f52010
|
||||||
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
FALLOC_FL_COLLAPSE_RANGE = 0x8
|
||||||
FALLOC_FL_INSERT_RANGE = 0x20
|
FALLOC_FL_INSERT_RANGE = 0x20
|
||||||
FALLOC_FL_KEEP_SIZE = 0x1
|
FALLOC_FL_KEEP_SIZE = 0x1
|
||||||
|
@ -481,6 +511,7 @@ const (
|
||||||
FS_POLICY_FLAGS_PAD_8 = 0x1
|
FS_POLICY_FLAGS_PAD_8 = 0x1
|
||||||
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
FS_POLICY_FLAGS_PAD_MASK = 0x3
|
||||||
FS_POLICY_FLAGS_VALID = 0x3
|
FS_POLICY_FLAGS_VALID = 0x3
|
||||||
|
FUTEXFS_SUPER_MAGIC = 0xbad1dea
|
||||||
F_ADD_SEALS = 0x409
|
F_ADD_SEALS = 0x409
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
F_DUPFD_CLOEXEC = 0x406
|
F_DUPFD_CLOEXEC = 0x406
|
||||||
|
@ -542,6 +573,49 @@ const (
|
||||||
GENL_UNS_ADMIN_PERM = 0x10
|
GENL_UNS_ADMIN_PERM = 0x10
|
||||||
GRND_NONBLOCK = 0x1
|
GRND_NONBLOCK = 0x1
|
||||||
GRND_RANDOM = 0x2
|
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
|
HUPCL = 0x400
|
||||||
IBSHIFT = 0x10
|
IBSHIFT = 0x10
|
||||||
ICANON = 0x2
|
ICANON = 0x2
|
||||||
|
@ -792,12 +866,14 @@ const (
|
||||||
IP_UNICAST_IF = 0x32
|
IP_UNICAST_IF = 0x32
|
||||||
IP_XFRM_POLICY = 0x11
|
IP_XFRM_POLICY = 0x11
|
||||||
ISIG = 0x1
|
ISIG = 0x1
|
||||||
|
ISOFS_SUPER_MAGIC = 0x9660
|
||||||
ISTRIP = 0x20
|
ISTRIP = 0x20
|
||||||
IUCLC = 0x200
|
IUCLC = 0x200
|
||||||
IUTF8 = 0x4000
|
IUTF8 = 0x4000
|
||||||
IXANY = 0x800
|
IXANY = 0x800
|
||||||
IXOFF = 0x1000
|
IXOFF = 0x1000
|
||||||
IXON = 0x400
|
IXON = 0x400
|
||||||
|
JFFS2_SUPER_MAGIC = 0x72b6
|
||||||
KEYCTL_ASSUME_AUTHORITY = 0x10
|
KEYCTL_ASSUME_AUTHORITY = 0x10
|
||||||
KEYCTL_CHOWN = 0x4
|
KEYCTL_CHOWN = 0x4
|
||||||
KEYCTL_CLEAR = 0x7
|
KEYCTL_CLEAR = 0x7
|
||||||
|
@ -894,9 +970,15 @@ const (
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
MCL_ONFAULT = 0x4
|
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_DETACH = 0x2
|
||||||
MNT_EXPIRE = 0x4
|
MNT_EXPIRE = 0x4
|
||||||
MNT_FORCE = 0x1
|
MNT_FORCE = 0x1
|
||||||
|
MSDOS_SUPER_MAGIC = 0x4d44
|
||||||
MSG_BATCH = 0x40000
|
MSG_BATCH = 0x40000
|
||||||
MSG_CMSG_CLOEXEC = 0x40000000
|
MSG_CMSG_CLOEXEC = 0x40000000
|
||||||
MSG_CONFIRM = 0x800
|
MSG_CONFIRM = 0x800
|
||||||
|
@ -956,7 +1038,9 @@ const (
|
||||||
MS_SYNCHRONOUS = 0x10
|
MS_SYNCHRONOUS = 0x10
|
||||||
MS_UNBINDABLE = 0x20000
|
MS_UNBINDABLE = 0x20000
|
||||||
MS_VERBOSE = 0x8000
|
MS_VERBOSE = 0x8000
|
||||||
|
MTD_INODE_FS_MAGIC = 0x11307854
|
||||||
NAME_MAX = 0xff
|
NAME_MAX = 0xff
|
||||||
|
NCP_SUPER_MAGIC = 0x564c
|
||||||
NETLINK_ADD_MEMBERSHIP = 0x1
|
NETLINK_ADD_MEMBERSHIP = 0x1
|
||||||
NETLINK_AUDIT = 0x9
|
NETLINK_AUDIT = 0x9
|
||||||
NETLINK_BROADCAST_ERROR = 0x4
|
NETLINK_BROADCAST_ERROR = 0x4
|
||||||
|
@ -991,6 +1075,37 @@ const (
|
||||||
NETLINK_UNUSED = 0x1
|
NETLINK_UNUSED = 0x1
|
||||||
NETLINK_USERSOCK = 0x2
|
NETLINK_USERSOCK = 0x2
|
||||||
NETLINK_XFRM = 0x6
|
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
|
NL0 = 0x0
|
||||||
NL1 = 0x100
|
NL1 = 0x100
|
||||||
NLA_ALIGNTO = 0x4
|
NLA_ALIGNTO = 0x4
|
||||||
|
@ -1023,6 +1138,8 @@ const (
|
||||||
NLM_F_REQUEST = 0x1
|
NLM_F_REQUEST = 0x1
|
||||||
NLM_F_ROOT = 0x100
|
NLM_F_ROOT = 0x100
|
||||||
NOFLSH = 0x80
|
NOFLSH = 0x80
|
||||||
|
NSFS_MAGIC = 0x6e736673
|
||||||
|
OCFS2_SUPER_MAGIC = 0x7461636f
|
||||||
OCRNL = 0x8
|
OCRNL = 0x8
|
||||||
OFDEL = 0x80
|
OFDEL = 0x80
|
||||||
OFILL = 0x40
|
OFILL = 0x40
|
||||||
|
@ -1030,7 +1147,9 @@ const (
|
||||||
ONLCR = 0x4
|
ONLCR = 0x4
|
||||||
ONLRET = 0x20
|
ONLRET = 0x20
|
||||||
ONOCR = 0x10
|
ONOCR = 0x10
|
||||||
|
OPENPROM_SUPER_MAGIC = 0x9fa1
|
||||||
OPOST = 0x1
|
OPOST = 0x1
|
||||||
|
OVERLAYFS_SUPER_MAGIC = 0x794c7630
|
||||||
O_ACCMODE = 0x3
|
O_ACCMODE = 0x3
|
||||||
O_APPEND = 0x8
|
O_APPEND = 0x8
|
||||||
O_ASYNC = 0x1000
|
O_ASYNC = 0x1000
|
||||||
|
@ -1115,16 +1234,20 @@ const (
|
||||||
PERF_EVENT_IOC_DISABLE = 0x20002401
|
PERF_EVENT_IOC_DISABLE = 0x20002401
|
||||||
PERF_EVENT_IOC_ENABLE = 0x20002400
|
PERF_EVENT_IOC_ENABLE = 0x20002400
|
||||||
PERF_EVENT_IOC_ID = 0x40042407
|
PERF_EVENT_IOC_ID = 0x40042407
|
||||||
|
PERF_EVENT_IOC_MODIFY_ATTRIBUTES = 0x8004240b
|
||||||
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
|
PERF_EVENT_IOC_PAUSE_OUTPUT = 0x80042409
|
||||||
PERF_EVENT_IOC_PERIOD = 0x80082404
|
PERF_EVENT_IOC_PERIOD = 0x80082404
|
||||||
|
PERF_EVENT_IOC_QUERY_BPF = 0xc004240a
|
||||||
PERF_EVENT_IOC_REFRESH = 0x20002402
|
PERF_EVENT_IOC_REFRESH = 0x20002402
|
||||||
PERF_EVENT_IOC_RESET = 0x20002403
|
PERF_EVENT_IOC_RESET = 0x20002403
|
||||||
PERF_EVENT_IOC_SET_BPF = 0x80042408
|
PERF_EVENT_IOC_SET_BPF = 0x80042408
|
||||||
PERF_EVENT_IOC_SET_FILTER = 0x80042406
|
PERF_EVENT_IOC_SET_FILTER = 0x80042406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||||
|
PIPEFS_MAGIC = 0x50495045
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
|
PROC_SUPER_MAGIC = 0x9fa0
|
||||||
PROT_EXEC = 0x4
|
PROT_EXEC = 0x4
|
||||||
PROT_GROWSDOWN = 0x1000000
|
PROT_GROWSDOWN = 0x1000000
|
||||||
PROT_GROWSUP = 0x2000000
|
PROT_GROWSUP = 0x2000000
|
||||||
|
@ -1167,6 +1290,7 @@ const (
|
||||||
PR_GET_PDEATHSIG = 0x2
|
PR_GET_PDEATHSIG = 0x2
|
||||||
PR_GET_SECCOMP = 0x15
|
PR_GET_SECCOMP = 0x15
|
||||||
PR_GET_SECUREBITS = 0x1b
|
PR_GET_SECUREBITS = 0x1b
|
||||||
|
PR_GET_SPECULATION_CTRL = 0x34
|
||||||
PR_GET_THP_DISABLE = 0x2a
|
PR_GET_THP_DISABLE = 0x2a
|
||||||
PR_GET_TID_ADDRESS = 0x28
|
PR_GET_TID_ADDRESS = 0x28
|
||||||
PR_GET_TIMERSLACK = 0x1e
|
PR_GET_TIMERSLACK = 0x1e
|
||||||
|
@ -1212,11 +1336,18 @@ const (
|
||||||
PR_SET_PTRACER_ANY = 0xffffffff
|
PR_SET_PTRACER_ANY = 0xffffffff
|
||||||
PR_SET_SECCOMP = 0x16
|
PR_SET_SECCOMP = 0x16
|
||||||
PR_SET_SECUREBITS = 0x1c
|
PR_SET_SECUREBITS = 0x1c
|
||||||
|
PR_SET_SPECULATION_CTRL = 0x35
|
||||||
PR_SET_THP_DISABLE = 0x29
|
PR_SET_THP_DISABLE = 0x29
|
||||||
PR_SET_TIMERSLACK = 0x1d
|
PR_SET_TIMERSLACK = 0x1d
|
||||||
PR_SET_TIMING = 0xe
|
PR_SET_TIMING = 0xe
|
||||||
PR_SET_TSC = 0x1a
|
PR_SET_TSC = 0x1a
|
||||||
PR_SET_UNALIGN = 0x6
|
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_GET_VL = 0x33
|
||||||
PR_SVE_SET_VL = 0x32
|
PR_SVE_SET_VL = 0x32
|
||||||
PR_SVE_SET_VL_ONEXEC = 0x40000
|
PR_SVE_SET_VL_ONEXEC = 0x40000
|
||||||
|
@ -1230,6 +1361,7 @@ const (
|
||||||
PR_TSC_SIGSEGV = 0x2
|
PR_TSC_SIGSEGV = 0x2
|
||||||
PR_UNALIGN_NOPRINT = 0x1
|
PR_UNALIGN_NOPRINT = 0x1
|
||||||
PR_UNALIGN_SIGBUS = 0x2
|
PR_UNALIGN_SIGBUS = 0x2
|
||||||
|
PSTOREFS_MAGIC = 0x6165676c
|
||||||
PTRACE_ATTACH = 0x10
|
PTRACE_ATTACH = 0x10
|
||||||
PTRACE_CONT = 0x7
|
PTRACE_CONT = 0x7
|
||||||
PTRACE_DETACH = 0x11
|
PTRACE_DETACH = 0x11
|
||||||
|
@ -1278,6 +1410,7 @@ const (
|
||||||
PTRACE_POKETEXT_3264 = 0xc2
|
PTRACE_POKETEXT_3264 = 0xc2
|
||||||
PTRACE_POKEUSR = 0x6
|
PTRACE_POKEUSR = 0x6
|
||||||
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
PTRACE_SECCOMP_GET_FILTER = 0x420c
|
||||||
|
PTRACE_SECCOMP_GET_METADATA = 0x420d
|
||||||
PTRACE_SEIZE = 0x4206
|
PTRACE_SEIZE = 0x4206
|
||||||
PTRACE_SETFPREGS = 0xf
|
PTRACE_SETFPREGS = 0xf
|
||||||
PTRACE_SETOPTIONS = 0x4200
|
PTRACE_SETOPTIONS = 0x4200
|
||||||
|
@ -1290,6 +1423,11 @@ const (
|
||||||
PTRACE_SINGLESTEP = 0x9
|
PTRACE_SINGLESTEP = 0x9
|
||||||
PTRACE_SYSCALL = 0x18
|
PTRACE_SYSCALL = 0x18
|
||||||
PTRACE_TRACEME = 0x0
|
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_AS = 0x6
|
||||||
RLIMIT_CORE = 0x4
|
RLIMIT_CORE = 0x4
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
|
@ -1339,6 +1477,33 @@ const (
|
||||||
RTCF_MASQ = 0x400000
|
RTCF_MASQ = 0x400000
|
||||||
RTCF_NAT = 0x800000
|
RTCF_NAT = 0x800000
|
||||||
RTCF_VALVE = 0x200000
|
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_ADDRCLASSMASK = 0xf8000000
|
||||||
RTF_ADDRCONF = 0x40000
|
RTF_ADDRCONF = 0x40000
|
||||||
RTF_ALLONLINK = 0x20000
|
RTF_ALLONLINK = 0x20000
|
||||||
|
@ -1475,6 +1640,8 @@ const (
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
|
SECURITYFS_MAGIC = 0x73636673
|
||||||
|
SELINUX_MAGIC = 0xf97cff8c
|
||||||
SHUT_RD = 0x0
|
SHUT_RD = 0x0
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
|
@ -1559,6 +1726,23 @@ const (
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
SIOCWANDEV = 0x894a
|
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_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x1
|
SOCK_DGRAM = 0x1
|
||||||
|
@ -1670,6 +1854,8 @@ const (
|
||||||
SPLICE_F_MORE = 0x4
|
SPLICE_F_MORE = 0x4
|
||||||
SPLICE_F_MOVE = 0x1
|
SPLICE_F_MOVE = 0x1
|
||||||
SPLICE_F_NONBLOCK = 0x2
|
SPLICE_F_NONBLOCK = 0x2
|
||||||
|
SQUASHFS_MAGIC = 0x73717368
|
||||||
|
STACK_END_MAGIC = 0x57ac6e9d
|
||||||
STATX_ALL = 0xfff
|
STATX_ALL = 0xfff
|
||||||
STATX_ATIME = 0x20
|
STATX_ATIME = 0x20
|
||||||
STATX_ATTR_APPEND = 0x20
|
STATX_ATTR_APPEND = 0x20
|
||||||
|
@ -1691,6 +1877,7 @@ const (
|
||||||
STATX_TYPE = 0x1
|
STATX_TYPE = 0x1
|
||||||
STATX_UID = 0x8
|
STATX_UID = 0x8
|
||||||
STATX__RESERVED = 0x80000000
|
STATX__RESERVED = 0x80000000
|
||||||
|
SYSFS_MAGIC = 0x62656572
|
||||||
S_BLKSIZE = 0x200
|
S_BLKSIZE = 0x200
|
||||||
S_IEXEC = 0x40
|
S_IEXEC = 0x40
|
||||||
S_IFBLK = 0x6000
|
S_IFBLK = 0x6000
|
||||||
|
@ -1873,7 +2060,27 @@ const (
|
||||||
TIOCSTI = 0x5472
|
TIOCSTI = 0x5472
|
||||||
TIOCSWINSZ = 0x80087467
|
TIOCSWINSZ = 0x80087467
|
||||||
TIOCVHANGUP = 0x5437
|
TIOCVHANGUP = 0x5437
|
||||||
|
TMPFS_MAGIC = 0x1021994
|
||||||
TOSTOP = 0x8000
|
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
|
TS_COMM_LEN = 0x20
|
||||||
TUNATTACHFILTER = 0x800854d5
|
TUNATTACHFILTER = 0x800854d5
|
||||||
TUNDETACHFILTER = 0x800854d6
|
TUNDETACHFILTER = 0x800854d6
|
||||||
|
@ -1885,6 +2092,7 @@ const (
|
||||||
TUNGETVNETHDRSZ = 0x400454d7
|
TUNGETVNETHDRSZ = 0x400454d7
|
||||||
TUNGETVNETLE = 0x400454dd
|
TUNGETVNETLE = 0x400454dd
|
||||||
TUNSETDEBUG = 0x800454c9
|
TUNSETDEBUG = 0x800454c9
|
||||||
|
TUNSETFILTEREBPF = 0x400454e1
|
||||||
TUNSETGROUP = 0x800454ce
|
TUNSETGROUP = 0x800454ce
|
||||||
TUNSETIFF = 0x800454ca
|
TUNSETIFF = 0x800454ca
|
||||||
TUNSETIFINDEX = 0x800454da
|
TUNSETIFINDEX = 0x800454da
|
||||||
|
@ -1895,13 +2103,17 @@ const (
|
||||||
TUNSETPERSIST = 0x800454cb
|
TUNSETPERSIST = 0x800454cb
|
||||||
TUNSETQUEUE = 0x800454d9
|
TUNSETQUEUE = 0x800454d9
|
||||||
TUNSETSNDBUF = 0x800454d4
|
TUNSETSNDBUF = 0x800454d4
|
||||||
|
TUNSETSTEERINGEBPF = 0x400454e0
|
||||||
TUNSETTXFILTER = 0x800454d1
|
TUNSETTXFILTER = 0x800454d1
|
||||||
TUNSETVNETBE = 0x800454de
|
TUNSETVNETBE = 0x800454de
|
||||||
TUNSETVNETHDRSZ = 0x800454d8
|
TUNSETVNETHDRSZ = 0x800454d8
|
||||||
TUNSETVNETLE = 0x800454dc
|
TUNSETVNETLE = 0x800454dc
|
||||||
|
UDF_SUPER_MAGIC = 0x15013346
|
||||||
UMOUNT_NOFOLLOW = 0x8
|
UMOUNT_NOFOLLOW = 0x8
|
||||||
|
USBDEVICE_SUPER_MAGIC = 0x9fa2
|
||||||
UTIME_NOW = 0x3fffffff
|
UTIME_NOW = 0x3fffffff
|
||||||
UTIME_OMIT = 0x3ffffffe
|
UTIME_OMIT = 0x3ffffffe
|
||||||
|
V9FS_MAGIC = 0x1021997
|
||||||
VDISCARD = 0xd
|
VDISCARD = 0xd
|
||||||
VEOF = 0x10
|
VEOF = 0x10
|
||||||
VEOL = 0x11
|
VEOL = 0x11
|
||||||
|
@ -1944,6 +2156,86 @@ const (
|
||||||
WDIOC_SETPRETIMEOUT = 0xc0045708
|
WDIOC_SETPRETIMEOUT = 0xc0045708
|
||||||
WDIOC_SETTIMEOUT = 0xc0045706
|
WDIOC_SETTIMEOUT = 0xc0045706
|
||||||
WEXITED = 0x4
|
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
|
WNOHANG = 0x1
|
||||||
WNOTHREAD = 0x20000000
|
WNOTHREAD = 0x20000000
|
||||||
WNOWAIT = 0x1000000
|
WNOWAIT = 0x1000000
|
||||||
|
@ -1953,7 +2245,9 @@ const (
|
||||||
XATTR_CREATE = 0x1
|
XATTR_CREATE = 0x1
|
||||||
XATTR_REPLACE = 0x2
|
XATTR_REPLACE = 0x2
|
||||||
XCASE = 0x4
|
XCASE = 0x4
|
||||||
|
XENFS_SUPER_MAGIC = 0xabba1974
|
||||||
XTABS = 0x1800
|
XTABS = 0x1800
|
||||||
|
ZSMALLOC_MAGIC = 0x58295829
|
||||||
)
|
)
|
||||||
|
|
||||||
// Errors
|
// Errors
|
||||||
|
@ -2135,174 +2429,182 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
// Error table
|
// Error table
|
||||||
var errors = [...]string{
|
var errorList = [...]struct {
|
||||||
1: "operation not permitted",
|
num syscall.Errno
|
||||||
2: "no such file or directory",
|
name string
|
||||||
3: "no such process",
|
desc string
|
||||||
4: "interrupted system call",
|
}{
|
||||||
5: "input/output error",
|
{1, "EPERM", "operation not permitted"},
|
||||||
6: "no such device or address",
|
{2, "ENOENT", "no such file or directory"},
|
||||||
7: "argument list too long",
|
{3, "ESRCH", "no such process"},
|
||||||
8: "exec format error",
|
{4, "EINTR", "interrupted system call"},
|
||||||
9: "bad file descriptor",
|
{5, "EIO", "input/output error"},
|
||||||
10: "no child processes",
|
{6, "ENXIO", "no such device or address"},
|
||||||
11: "resource temporarily unavailable",
|
{7, "E2BIG", "argument list too long"},
|
||||||
12: "cannot allocate memory",
|
{8, "ENOEXEC", "exec format error"},
|
||||||
13: "permission denied",
|
{9, "EBADF", "bad file descriptor"},
|
||||||
14: "bad address",
|
{10, "ECHILD", "no child processes"},
|
||||||
15: "block device required",
|
{11, "EAGAIN", "resource temporarily unavailable"},
|
||||||
16: "device or resource busy",
|
{12, "ENOMEM", "cannot allocate memory"},
|
||||||
17: "file exists",
|
{13, "EACCES", "permission denied"},
|
||||||
18: "invalid cross-device link",
|
{14, "EFAULT", "bad address"},
|
||||||
19: "no such device",
|
{15, "ENOTBLK", "block device required"},
|
||||||
20: "not a directory",
|
{16, "EBUSY", "device or resource busy"},
|
||||||
21: "is a directory",
|
{17, "EEXIST", "file exists"},
|
||||||
22: "invalid argument",
|
{18, "EXDEV", "invalid cross-device link"},
|
||||||
23: "too many open files in system",
|
{19, "ENODEV", "no such device"},
|
||||||
24: "too many open files",
|
{20, "ENOTDIR", "not a directory"},
|
||||||
25: "inappropriate ioctl for device",
|
{21, "EISDIR", "is a directory"},
|
||||||
26: "text file busy",
|
{22, "EINVAL", "invalid argument"},
|
||||||
27: "file too large",
|
{23, "ENFILE", "too many open files in system"},
|
||||||
28: "no space left on device",
|
{24, "EMFILE", "too many open files"},
|
||||||
29: "illegal seek",
|
{25, "ENOTTY", "inappropriate ioctl for device"},
|
||||||
30: "read-only file system",
|
{26, "ETXTBSY", "text file busy"},
|
||||||
31: "too many links",
|
{27, "EFBIG", "file too large"},
|
||||||
32: "broken pipe",
|
{28, "ENOSPC", "no space left on device"},
|
||||||
33: "numerical argument out of domain",
|
{29, "ESPIPE", "illegal seek"},
|
||||||
34: "numerical result out of range",
|
{30, "EROFS", "read-only file system"},
|
||||||
35: "no message of desired type",
|
{31, "EMLINK", "too many links"},
|
||||||
36: "identifier removed",
|
{32, "EPIPE", "broken pipe"},
|
||||||
37: "channel number out of range",
|
{33, "EDOM", "numerical argument out of domain"},
|
||||||
38: "level 2 not synchronized",
|
{34, "ERANGE", "numerical result out of range"},
|
||||||
39: "level 3 halted",
|
{35, "ENOMSG", "no message of desired type"},
|
||||||
40: "level 3 reset",
|
{36, "EIDRM", "identifier removed"},
|
||||||
41: "link number out of range",
|
{37, "ECHRNG", "channel number out of range"},
|
||||||
42: "protocol driver not attached",
|
{38, "EL2NSYNC", "level 2 not synchronized"},
|
||||||
43: "no CSI structure available",
|
{39, "EL3HLT", "level 3 halted"},
|
||||||
44: "level 2 halted",
|
{40, "EL3RST", "level 3 reset"},
|
||||||
45: "resource deadlock avoided",
|
{41, "ELNRNG", "link number out of range"},
|
||||||
46: "no locks available",
|
{42, "EUNATCH", "protocol driver not attached"},
|
||||||
50: "invalid exchange",
|
{43, "ENOCSI", "no CSI structure available"},
|
||||||
51: "invalid request descriptor",
|
{44, "EL2HLT", "level 2 halted"},
|
||||||
52: "exchange full",
|
{45, "EDEADLK", "resource deadlock avoided"},
|
||||||
53: "no anode",
|
{46, "ENOLCK", "no locks available"},
|
||||||
54: "invalid request code",
|
{50, "EBADE", "invalid exchange"},
|
||||||
55: "invalid slot",
|
{51, "EBADR", "invalid request descriptor"},
|
||||||
56: "file locking deadlock error",
|
{52, "EXFULL", "exchange full"},
|
||||||
59: "bad font file format",
|
{53, "ENOANO", "no anode"},
|
||||||
60: "device not a stream",
|
{54, "EBADRQC", "invalid request code"},
|
||||||
61: "no data available",
|
{55, "EBADSLT", "invalid slot"},
|
||||||
62: "timer expired",
|
{56, "EDEADLOCK", "file locking deadlock error"},
|
||||||
63: "out of streams resources",
|
{59, "EBFONT", "bad font file format"},
|
||||||
64: "machine is not on the network",
|
{60, "ENOSTR", "device not a stream"},
|
||||||
65: "package not installed",
|
{61, "ENODATA", "no data available"},
|
||||||
66: "object is remote",
|
{62, "ETIME", "timer expired"},
|
||||||
67: "link has been severed",
|
{63, "ENOSR", "out of streams resources"},
|
||||||
68: "advertise error",
|
{64, "ENONET", "machine is not on the network"},
|
||||||
69: "srmount error",
|
{65, "ENOPKG", "package not installed"},
|
||||||
70: "communication error on send",
|
{66, "EREMOTE", "object is remote"},
|
||||||
71: "protocol error",
|
{67, "ENOLINK", "link has been severed"},
|
||||||
73: "RFS specific error",
|
{68, "EADV", "advertise error"},
|
||||||
74: "multihop attempted",
|
{69, "ESRMNT", "srmount error"},
|
||||||
77: "bad message",
|
{70, "ECOMM", "communication error on send"},
|
||||||
78: "file name too long",
|
{71, "EPROTO", "protocol error"},
|
||||||
79: "value too large for defined data type",
|
{73, "EDOTDOT", "RFS specific error"},
|
||||||
80: "name not unique on network",
|
{74, "EMULTIHOP", "multihop attempted"},
|
||||||
81: "file descriptor in bad state",
|
{77, "EBADMSG", "bad message"},
|
||||||
82: "remote address changed",
|
{78, "ENAMETOOLONG", "file name too long"},
|
||||||
83: "can not access a needed shared library",
|
{79, "EOVERFLOW", "value too large for defined data type"},
|
||||||
84: "accessing a corrupted shared library",
|
{80, "ENOTUNIQ", "name not unique on network"},
|
||||||
85: ".lib section in a.out corrupted",
|
{81, "EBADFD", "file descriptor in bad state"},
|
||||||
86: "attempting to link in too many shared libraries",
|
{82, "EREMCHG", "remote address changed"},
|
||||||
87: "cannot exec a shared library directly",
|
{83, "ELIBACC", "can not access a needed shared library"},
|
||||||
88: "invalid or incomplete multibyte or wide character",
|
{84, "ELIBBAD", "accessing a corrupted shared library"},
|
||||||
89: "function not implemented",
|
{85, "ELIBSCN", ".lib section in a.out corrupted"},
|
||||||
90: "too many levels of symbolic links",
|
{86, "ELIBMAX", "attempting to link in too many shared libraries"},
|
||||||
91: "interrupted system call should be restarted",
|
{87, "ELIBEXEC", "cannot exec a shared library directly"},
|
||||||
92: "streams pipe error",
|
{88, "EILSEQ", "invalid or incomplete multibyte or wide character"},
|
||||||
93: "directory not empty",
|
{89, "ENOSYS", "function not implemented"},
|
||||||
94: "too many users",
|
{90, "ELOOP", "too many levels of symbolic links"},
|
||||||
95: "socket operation on non-socket",
|
{91, "ERESTART", "interrupted system call should be restarted"},
|
||||||
96: "destination address required",
|
{92, "ESTRPIPE", "streams pipe error"},
|
||||||
97: "message too long",
|
{93, "ENOTEMPTY", "directory not empty"},
|
||||||
98: "protocol wrong type for socket",
|
{94, "EUSERS", "too many users"},
|
||||||
99: "protocol not available",
|
{95, "ENOTSOCK", "socket operation on non-socket"},
|
||||||
120: "protocol not supported",
|
{96, "EDESTADDRREQ", "destination address required"},
|
||||||
121: "socket type not supported",
|
{97, "EMSGSIZE", "message too long"},
|
||||||
122: "operation not supported",
|
{98, "EPROTOTYPE", "protocol wrong type for socket"},
|
||||||
123: "protocol family not supported",
|
{99, "ENOPROTOOPT", "protocol not available"},
|
||||||
124: "address family not supported by protocol",
|
{120, "EPROTONOSUPPORT", "protocol not supported"},
|
||||||
125: "address already in use",
|
{121, "ESOCKTNOSUPPORT", "socket type not supported"},
|
||||||
126: "cannot assign requested address",
|
{122, "ENOTSUP", "operation not supported"},
|
||||||
127: "network is down",
|
{123, "EPFNOSUPPORT", "protocol family not supported"},
|
||||||
128: "network is unreachable",
|
{124, "EAFNOSUPPORT", "address family not supported by protocol"},
|
||||||
129: "network dropped connection on reset",
|
{125, "EADDRINUSE", "address already in use"},
|
||||||
130: "software caused connection abort",
|
{126, "EADDRNOTAVAIL", "cannot assign requested address"},
|
||||||
131: "connection reset by peer",
|
{127, "ENETDOWN", "network is down"},
|
||||||
132: "no buffer space available",
|
{128, "ENETUNREACH", "network is unreachable"},
|
||||||
133: "transport endpoint is already connected",
|
{129, "ENETRESET", "network dropped connection on reset"},
|
||||||
134: "transport endpoint is not connected",
|
{130, "ECONNABORTED", "software caused connection abort"},
|
||||||
135: "structure needs cleaning",
|
{131, "ECONNRESET", "connection reset by peer"},
|
||||||
137: "not a XENIX named type file",
|
{132, "ENOBUFS", "no buffer space available"},
|
||||||
138: "no XENIX semaphores available",
|
{133, "EISCONN", "transport endpoint is already connected"},
|
||||||
139: "is a named type file",
|
{134, "ENOTCONN", "transport endpoint is not connected"},
|
||||||
140: "remote I/O error",
|
{135, "EUCLEAN", "structure needs cleaning"},
|
||||||
141: "unknown error 141",
|
{137, "ENOTNAM", "not a XENIX named type file"},
|
||||||
142: "unknown error 142",
|
{138, "ENAVAIL", "no XENIX semaphores available"},
|
||||||
143: "cannot send after transport endpoint shutdown",
|
{139, "EISNAM", "is a named type file"},
|
||||||
144: "too many references: cannot splice",
|
{140, "EREMOTEIO", "remote I/O error"},
|
||||||
145: "connection timed out",
|
{141, "EINIT", "unknown error 141"},
|
||||||
146: "connection refused",
|
{142, "EREMDEV", "unknown error 142"},
|
||||||
147: "host is down",
|
{143, "ESHUTDOWN", "cannot send after transport endpoint shutdown"},
|
||||||
148: "no route to host",
|
{144, "ETOOMANYREFS", "too many references: cannot splice"},
|
||||||
149: "operation already in progress",
|
{145, "ETIMEDOUT", "connection timed out"},
|
||||||
150: "operation now in progress",
|
{146, "ECONNREFUSED", "connection refused"},
|
||||||
151: "stale file handle",
|
{147, "EHOSTDOWN", "host is down"},
|
||||||
158: "operation canceled",
|
{148, "EHOSTUNREACH", "no route to host"},
|
||||||
159: "no medium found",
|
{149, "EALREADY", "operation already in progress"},
|
||||||
160: "wrong medium type",
|
{150, "EINPROGRESS", "operation now in progress"},
|
||||||
161: "required key not available",
|
{151, "ESTALE", "stale file handle"},
|
||||||
162: "key has expired",
|
{158, "ECANCELED", "operation canceled"},
|
||||||
163: "key has been revoked",
|
{159, "ENOMEDIUM", "no medium found"},
|
||||||
164: "key was rejected by service",
|
{160, "EMEDIUMTYPE", "wrong medium type"},
|
||||||
165: "owner died",
|
{161, "ENOKEY", "required key not available"},
|
||||||
166: "state not recoverable",
|
{162, "EKEYEXPIRED", "key has expired"},
|
||||||
167: "operation not possible due to RF-kill",
|
{163, "EKEYREVOKED", "key has been revoked"},
|
||||||
168: "memory page has hardware error",
|
{164, "EKEYREJECTED", "key was rejected by service"},
|
||||||
1133: "disk quota exceeded",
|
{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
|
// Signal table
|
||||||
var signals = [...]string{
|
var signalList = [...]struct {
|
||||||
1: "hangup",
|
num syscall.Signal
|
||||||
2: "interrupt",
|
name string
|
||||||
3: "quit",
|
desc string
|
||||||
4: "illegal instruction",
|
}{
|
||||||
5: "trace/breakpoint trap",
|
{1, "SIGHUP", "hangup"},
|
||||||
6: "aborted",
|
{2, "SIGINT", "interrupt"},
|
||||||
7: "EMT trap",
|
{3, "SIGQUIT", "quit"},
|
||||||
8: "floating point exception",
|
{4, "SIGILL", "illegal instruction"},
|
||||||
9: "killed",
|
{5, "SIGTRAP", "trace/breakpoint trap"},
|
||||||
10: "bus error",
|
{6, "SIGABRT", "aborted"},
|
||||||
11: "segmentation fault",
|
{7, "SIGEMT", "EMT trap"},
|
||||||
12: "bad system call",
|
{8, "SIGFPE", "floating point exception"},
|
||||||
13: "broken pipe",
|
{9, "SIGKILL", "killed"},
|
||||||
14: "alarm clock",
|
{10, "SIGBUS", "bus error"},
|
||||||
15: "terminated",
|
{11, "SIGSEGV", "segmentation fault"},
|
||||||
16: "user defined signal 1",
|
{12, "SIGSYS", "bad system call"},
|
||||||
17: "user defined signal 2",
|
{13, "SIGPIPE", "broken pipe"},
|
||||||
18: "child exited",
|
{14, "SIGALRM", "alarm clock"},
|
||||||
19: "power failure",
|
{15, "SIGTERM", "terminated"},
|
||||||
20: "window changed",
|
{16, "SIGUSR1", "user defined signal 1"},
|
||||||
21: "urgent I/O condition",
|
{17, "SIGUSR2", "user defined signal 2"},
|
||||||
22: "I/O possible",
|
{18, "SIGCHLD", "child exited"},
|
||||||
23: "stopped (signal)",
|
{19, "SIGPWR", "power failure"},
|
||||||
24: "stopped",
|
{20, "SIGWINCH", "window changed"},
|
||||||
25: "continued",
|
{21, "SIGURG", "urgent I/O condition"},
|
||||||
26: "stopped (tty input)",
|
{22, "SIGIO", "I/O possible"},
|
||||||
27: "stopped (tty output)",
|
{23, "SIGSTOP", "stopped (signal)"},
|
||||||
28: "virtual timer expired",
|
{24, "SIGTSTP", "stopped"},
|
||||||
29: "profiling timer expired",
|
{25, "SIGCONT", "continued"},
|
||||||
30: "CPU time limit exceeded",
|
{26, "SIGTTIN", "stopped (tty input)"},
|
||||||
31: "file size limit exceeded",
|
{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