mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-05 14:17:36 +03:00
Update deps
This commit is contained in:
parent
7734cc9d2a
commit
e3d5f3e6e5
70 changed files with 3113 additions and 1584 deletions
14
Gopkg.lock
generated
14
Gopkg.lock
generated
|
@ -164,11 +164,11 @@
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
digest = "1:2c4470d47613daac5ff660ff9b67a6f8dca489845bb867186e3fcda742a3e53f"
|
digest = "1:7df4ff301fb9872b59f4d4944ab7c6e3c4cd4076906f499f83759a69df8a7266"
|
||||||
name = "github.com/kardianos/service"
|
name = "github.com/kardianos/service"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
pruneopts = "UT"
|
pruneopts = "UT"
|
||||||
revision = "615a14ed75099c9eaac6949e22ac2341bf9d3197"
|
revision = "45244176fc183034f15c4f1c2f801da5e25828b7"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
digest = "1:463e4140189f8194f9121ca1c7fe3b8e9e9a2ab3d949b43c835c21034927dc62"
|
digest = "1:463e4140189f8194f9121ca1c7fe3b8e9e9a2ab3d949b43c835c21034927dc62"
|
||||||
|
@ -193,11 +193,11 @@
|
||||||
"salsa20/salsa",
|
"salsa20/salsa",
|
||||||
]
|
]
|
||||||
pruneopts = "UT"
|
pruneopts = "UT"
|
||||||
revision = "de0752318171da717af4ce24d0a2e8626afaeb11"
|
revision = "614d502a4dac94afa3a6ce146bd1736da82514c6"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
digest = "1:b6a4877dbd8d954aebfe3c6e4b8f674f0564aaf7ac2bb99ea1d9e190410f46c4"
|
digest = "1:b466f4983ef526ec64fc233af86644596b2c1c5711a7c3b460d908f376f4c4ae"
|
||||||
name = "golang.org/x/net"
|
name = "golang.org/x/net"
|
||||||
packages = [
|
packages = [
|
||||||
"bpf",
|
"bpf",
|
||||||
|
@ -213,11 +213,11 @@
|
||||||
"proxy",
|
"proxy",
|
||||||
]
|
]
|
||||||
pruneopts = "UT"
|
pruneopts = "UT"
|
||||||
revision = "f9ce57c11b242f0f1599cf25c89d8cb02c45295a"
|
revision = "922f4815f713f213882e8ef45e0d315b164d705c"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
digest = "1:86c7b355731b7a7eb6cb38f1af9c7e025412c081ba76bffed9ba5381802d275a"
|
digest = "1:8a2bf4e954e1e521d7670730fd03cc8e9e3323d5f29a14c202c1360c5d14cb6f"
|
||||||
name = "golang.org/x/sys"
|
name = "golang.org/x/sys"
|
||||||
packages = [
|
packages = [
|
||||||
"cpu",
|
"cpu",
|
||||||
|
@ -229,7 +229,7 @@
|
||||||
"windows/svc/mgr",
|
"windows/svc/mgr",
|
||||||
]
|
]
|
||||||
pruneopts = "UT"
|
pruneopts = "UT"
|
||||||
revision = "904bdc257025c7b3f43c19360ad3ab85783fad78"
|
revision = "3b58ed4ad3395d483fc92d5d14123ce2c3581fec"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
digest = "1:a2ab62866c75542dd18d2b069fec854577a20211d7c0ea6ae746072a1dccdd18"
|
digest = "1:a2ab62866c75542dd18d2b069fec854577a20211d7c0ea6ae746072a1dccdd18"
|
||||||
|
|
29
vendor/github.com/kardianos/service/service.go
generated
vendored
29
vendor/github.com/kardianos/service/service.go
generated
vendored
|
@ -75,10 +75,27 @@ const (
|
||||||
optionUserServiceDefault = false
|
optionUserServiceDefault = false
|
||||||
optionSessionCreate = "SessionCreate"
|
optionSessionCreate = "SessionCreate"
|
||||||
optionSessionCreateDefault = false
|
optionSessionCreateDefault = false
|
||||||
|
optionLogOutput = "LogOutput"
|
||||||
|
optionLogOutputDefault = false
|
||||||
|
|
||||||
optionRunWait = "RunWait"
|
optionRunWait = "RunWait"
|
||||||
optionReloadSignal = "ReloadSignal"
|
optionReloadSignal = "ReloadSignal"
|
||||||
optionPIDFile = "PIDFile"
|
optionPIDFile = "PIDFile"
|
||||||
|
|
||||||
|
optionSystemdScript = "SystemdScript"
|
||||||
|
optionSysvScript = "SysvScript"
|
||||||
|
optionUpstartScript = "UpstartScript"
|
||||||
|
optionLaunchdConfig = "LaunchdConfig"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Status represents service status as an byte value
|
||||||
|
type Status byte
|
||||||
|
|
||||||
|
// Status of service represented as an byte
|
||||||
|
const (
|
||||||
|
StatusUnknown Status = iota // Status is unable to be determined due to an error or it was not installed.
|
||||||
|
StatusRunning
|
||||||
|
StatusStopped
|
||||||
)
|
)
|
||||||
|
|
||||||
// Config provides the setup for a Service. The Name field is required.
|
// Config provides the setup for a Service. The Name field is required.
|
||||||
|
@ -103,14 +120,19 @@ type Config struct {
|
||||||
|
|
||||||
// System specific options.
|
// System specific options.
|
||||||
// * OS X
|
// * OS X
|
||||||
|
// - LaunchdConfig string () - Use custom launchd config
|
||||||
// - KeepAlive bool (true)
|
// - KeepAlive bool (true)
|
||||||
// - RunAtLoad bool (false)
|
// - RunAtLoad bool (false)
|
||||||
// - UserService bool (false) - Install as a current user service.
|
// - UserService bool (false) - Install as a current user service.
|
||||||
// - SessionCreate bool (false) - Create a full user session.
|
// - SessionCreate bool (false) - Create a full user session.
|
||||||
// * POSIX
|
// * POSIX
|
||||||
|
// - SystemdScript string () - Use custom systemd script
|
||||||
|
// - UpstartScript string () - Use custom upstart script
|
||||||
|
// - SysvScript string () - Use custom sysv script
|
||||||
// - RunWait func() (wait for SIGNAL) - Do not install signal but wait for this function to return.
|
// - RunWait func() (wait for SIGNAL) - Do not install signal but wait for this function to return.
|
||||||
// - ReloadSignal string () [USR1, ...] - Signal to send on reaload.
|
// - ReloadSignal string () [USR1, ...] - Signal to send on reaload.
|
||||||
// - PIDFile string () [/run/prog.pid] - Location of the PID file.
|
// - PIDFile string () [/run/prog.pid] - Location of the PID file.
|
||||||
|
// - LogOutput bool (false) - Redirect StdErr & StdOut to files.
|
||||||
Option KeyValue
|
Option KeyValue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,10 +142,12 @@ var (
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
// ErrNameFieldRequired is returned when Conifg.Name is empty.
|
// ErrNameFieldRequired is returned when Config.Name is empty.
|
||||||
ErrNameFieldRequired = errors.New("Config.Name field is required.")
|
ErrNameFieldRequired = errors.New("Config.Name field is required.")
|
||||||
// ErrNoServiceSystemDetected is returned when no system was detected.
|
// ErrNoServiceSystemDetected is returned when no system was detected.
|
||||||
ErrNoServiceSystemDetected = errors.New("No service system detected.")
|
ErrNoServiceSystemDetected = errors.New("No service system detected.")
|
||||||
|
// ErrNotInstalled is returned when the service is not installed
|
||||||
|
ErrNotInstalled = errors.New("the service is not installed")
|
||||||
)
|
)
|
||||||
|
|
||||||
// New creates a new service based on a service interface and configuration.
|
// New creates a new service based on a service interface and configuration.
|
||||||
|
@ -322,6 +346,9 @@ type Service interface {
|
||||||
// String displays the name of the service. The display name if present,
|
// String displays the name of the service. The display name if present,
|
||||||
// otherwise the name.
|
// otherwise the name.
|
||||||
String() string
|
String() string
|
||||||
|
|
||||||
|
// Status returns the current service status.
|
||||||
|
Status() (Status, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ControlAction list valid string texts to use in Control.
|
// ControlAction list valid string texts to use in Control.
|
||||||
|
|
58
vendor/github.com/kardianos/service/service_darwin.go
generated
vendored
58
vendor/github.com/kardianos/service/service_darwin.go
generated
vendored
|
@ -11,6 +11,8 @@ import (
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"os/user"
|
"os/user"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
"regexp"
|
||||||
|
"strings"
|
||||||
"syscall"
|
"syscall"
|
||||||
"text/template"
|
"text/template"
|
||||||
"time"
|
"time"
|
||||||
|
@ -100,6 +102,25 @@ func (s *darwinLaunchdService) getServiceFilePath() (string, error) {
|
||||||
return "/Library/LaunchDaemons/" + s.Name + ".plist", nil
|
return "/Library/LaunchDaemons/" + s.Name + ".plist", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s *darwinLaunchdService) template() *template.Template {
|
||||||
|
functions := template.FuncMap{
|
||||||
|
"bool": func(v bool) string {
|
||||||
|
if v {
|
||||||
|
return "true"
|
||||||
|
}
|
||||||
|
return "false"
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
customConfig := s.Option.string(optionLaunchdConfig, "")
|
||||||
|
|
||||||
|
if customConfig != "" {
|
||||||
|
return template.Must(template.New("").Funcs(functions).Parse(customConfig))
|
||||||
|
} else {
|
||||||
|
return template.Must(template.New("").Funcs(functions).Parse(launchdConfig))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (s *darwinLaunchdService) Install() error {
|
func (s *darwinLaunchdService) Install() error {
|
||||||
confPath, err := s.getServiceFilePath()
|
confPath, err := s.getServiceFilePath()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -143,16 +164,7 @@ func (s *darwinLaunchdService) Install() error {
|
||||||
SessionCreate: s.Option.bool(optionSessionCreate, optionSessionCreateDefault),
|
SessionCreate: s.Option.bool(optionSessionCreate, optionSessionCreateDefault),
|
||||||
}
|
}
|
||||||
|
|
||||||
functions := template.FuncMap{
|
return s.template().Execute(f, to)
|
||||||
"bool": func(v bool) string {
|
|
||||||
if v {
|
|
||||||
return "true"
|
|
||||||
}
|
|
||||||
return "false"
|
|
||||||
},
|
|
||||||
}
|
|
||||||
t := template.Must(template.New("launchdConfig").Funcs(functions).Parse(launchdConfig))
|
|
||||||
return t.Execute(f, to)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *darwinLaunchdService) Uninstall() error {
|
func (s *darwinLaunchdService) Uninstall() error {
|
||||||
|
@ -165,6 +177,32 @@ func (s *darwinLaunchdService) Uninstall() error {
|
||||||
return os.Remove(confPath)
|
return os.Remove(confPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s *darwinLaunchdService) Status() (Status, error) {
|
||||||
|
exitCode, out, err := runWithOutput("launchctl", "list", s.Name)
|
||||||
|
if exitCode == 0 && err != nil {
|
||||||
|
if !strings.Contains(err.Error(), "failed with stderr") {
|
||||||
|
return StatusUnknown, err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
re := regexp.MustCompile(`"PID" = ([0-9]+);`)
|
||||||
|
matches := re.FindStringSubmatch(out)
|
||||||
|
if len(matches) == 2 {
|
||||||
|
return StatusRunning, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
confPath, err := s.getServiceFilePath()
|
||||||
|
if err != nil {
|
||||||
|
return StatusUnknown, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if _, err = os.Stat(confPath); err == nil {
|
||||||
|
return StatusStopped, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
return StatusUnknown, ErrNotInstalled
|
||||||
|
}
|
||||||
|
|
||||||
func (s *darwinLaunchdService) Start() error {
|
func (s *darwinLaunchdService) Start() error {
|
||||||
confPath, err := s.getServiceFilePath()
|
confPath, err := s.getServiceFilePath()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
70
vendor/github.com/kardianos/service/service_systemd_linux.go
generated
vendored
70
vendor/github.com/kardianos/service/service_systemd_linux.go
generated
vendored
|
@ -9,6 +9,9 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
"regexp"
|
||||||
|
"strconv"
|
||||||
|
"strings"
|
||||||
"syscall"
|
"syscall"
|
||||||
"text/template"
|
"text/template"
|
||||||
)
|
)
|
||||||
|
@ -52,9 +55,50 @@ func (s *systemd) configPath() (cp string, err error) {
|
||||||
cp = "/etc/systemd/system/" + s.Config.Name + ".service"
|
cp = "/etc/systemd/system/" + s.Config.Name + ".service"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s *systemd) getSystemdVersion() int64 {
|
||||||
|
_, out, err := runWithOutput("systemctl", "--version")
|
||||||
|
if err != nil {
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
|
||||||
|
re := regexp.MustCompile(`systemd ([0-9]+)`)
|
||||||
|
matches := re.FindStringSubmatch(out)
|
||||||
|
if len(matches) != 2 {
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
|
||||||
|
v, err := strconv.ParseInt(matches[1], 10, 64)
|
||||||
|
if err != nil {
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
|
||||||
|
return v
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *systemd) hasOutputFileSupport() bool {
|
||||||
|
defaultValue := true
|
||||||
|
version := s.getSystemdVersion()
|
||||||
|
if version == -1 {
|
||||||
|
return defaultValue
|
||||||
|
}
|
||||||
|
|
||||||
|
if version < 236 {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
return defaultValue
|
||||||
|
}
|
||||||
|
|
||||||
func (s *systemd) template() *template.Template {
|
func (s *systemd) template() *template.Template {
|
||||||
|
customScript := s.Option.string(optionSystemdScript, "")
|
||||||
|
|
||||||
|
if customScript != "" {
|
||||||
|
return template.Must(template.New("").Funcs(tf).Parse(customScript))
|
||||||
|
} else {
|
||||||
return template.Must(template.New("").Funcs(tf).Parse(systemdScript))
|
return template.Must(template.New("").Funcs(tf).Parse(systemdScript))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (s *systemd) Install() error {
|
func (s *systemd) Install() error {
|
||||||
confPath, err := s.configPath()
|
confPath, err := s.configPath()
|
||||||
|
@ -80,13 +124,17 @@ func (s *systemd) Install() error {
|
||||||
var to = &struct {
|
var to = &struct {
|
||||||
*Config
|
*Config
|
||||||
Path string
|
Path string
|
||||||
|
HasOutputFileSupport bool
|
||||||
ReloadSignal string
|
ReloadSignal string
|
||||||
PIDFile string
|
PIDFile string
|
||||||
|
LogOutput bool
|
||||||
}{
|
}{
|
||||||
s.Config,
|
s.Config,
|
||||||
path,
|
path,
|
||||||
|
s.hasOutputFileSupport(),
|
||||||
s.Option.string(optionReloadSignal, ""),
|
s.Option.string(optionReloadSignal, ""),
|
||||||
s.Option.string(optionPIDFile, ""),
|
s.Option.string(optionPIDFile, ""),
|
||||||
|
s.Option.bool(optionLogOutput, optionLogOutputDefault),
|
||||||
}
|
}
|
||||||
|
|
||||||
err = s.template().Execute(f, to)
|
err = s.template().Execute(f, to)
|
||||||
|
@ -141,6 +189,24 @@ func (s *systemd) Run() (err error) {
|
||||||
return s.i.Stop(s)
|
return s.i.Stop(s)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s *systemd) Status() (Status, error) {
|
||||||
|
exitCode, out, err := runWithOutput("systemctl", "is-active", s.Name)
|
||||||
|
if exitCode == 0 && err != nil {
|
||||||
|
return StatusUnknown, err
|
||||||
|
}
|
||||||
|
|
||||||
|
switch {
|
||||||
|
case strings.HasPrefix(out, "active"):
|
||||||
|
return StatusRunning, nil
|
||||||
|
case strings.HasPrefix(out, "inactive"):
|
||||||
|
return StatusStopped, nil
|
||||||
|
case strings.HasPrefix(out, "failed"):
|
||||||
|
return StatusUnknown, errors.New("service in failed state")
|
||||||
|
default:
|
||||||
|
return StatusUnknown, ErrNotInstalled
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (s *systemd) Start() error {
|
func (s *systemd) Start() error {
|
||||||
return run("systemctl", "start", s.Name+".service")
|
return run("systemctl", "start", s.Name+".service")
|
||||||
}
|
}
|
||||||
|
@ -166,6 +232,10 @@ ExecStart={{.Path|cmdEscape}}{{range .Arguments}} {{.|cmd}}{{end}}
|
||||||
{{if .UserName}}User={{.UserName}}{{end}}
|
{{if .UserName}}User={{.UserName}}{{end}}
|
||||||
{{if .ReloadSignal}}ExecReload=/bin/kill -{{.ReloadSignal}} "$MAINPID"{{end}}
|
{{if .ReloadSignal}}ExecReload=/bin/kill -{{.ReloadSignal}} "$MAINPID"{{end}}
|
||||||
{{if .PIDFile}}PIDFile={{.PIDFile|cmd}}{{end}}
|
{{if .PIDFile}}PIDFile={{.PIDFile|cmd}}{{end}}
|
||||||
|
{{if and .LogOutput .HasOutputFileSupport -}}
|
||||||
|
StandardOutput=file:/var/log/{{.Name}}.out
|
||||||
|
StandardError=file:/var/log/{{.Name}}.err
|
||||||
|
{{- end}}
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=120
|
RestartSec=120
|
||||||
EnvironmentFile=-/etc/sysconfig/{{.Name}}
|
EnvironmentFile=-/etc/sysconfig/{{.Name}}
|
||||||
|
|
24
vendor/github.com/kardianos/service/service_sysv_linux.go
generated
vendored
24
vendor/github.com/kardianos/service/service_sysv_linux.go
generated
vendored
|
@ -9,6 +9,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
|
"strings"
|
||||||
"syscall"
|
"syscall"
|
||||||
"text/template"
|
"text/template"
|
||||||
"time"
|
"time"
|
||||||
|
@ -45,9 +46,16 @@ func (s *sysv) configPath() (cp string, err error) {
|
||||||
cp = "/etc/init.d/" + s.Config.Name
|
cp = "/etc/init.d/" + s.Config.Name
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *sysv) template() *template.Template {
|
func (s *sysv) template() *template.Template {
|
||||||
|
customScript := s.Option.string(optionSysvScript, "")
|
||||||
|
|
||||||
|
if customScript != "" {
|
||||||
|
return template.Must(template.New("").Funcs(tf).Parse(customScript))
|
||||||
|
} else {
|
||||||
return template.Must(template.New("").Funcs(tf).Parse(sysvScript))
|
return template.Must(template.New("").Funcs(tf).Parse(sysvScript))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (s *sysv) Install() error {
|
func (s *sysv) Install() error {
|
||||||
confPath, err := s.configPath()
|
confPath, err := s.configPath()
|
||||||
|
@ -136,6 +144,22 @@ func (s *sysv) Run() (err error) {
|
||||||
return s.i.Stop(s)
|
return s.i.Stop(s)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s *sysv) Status() (Status, error) {
|
||||||
|
_, out, err := runWithOutput("service", s.Name, "status")
|
||||||
|
if err != nil {
|
||||||
|
return StatusUnknown, err
|
||||||
|
}
|
||||||
|
|
||||||
|
switch {
|
||||||
|
case strings.HasPrefix(out, "Running"):
|
||||||
|
return StatusRunning, nil
|
||||||
|
case strings.HasPrefix(out, "Stopped"):
|
||||||
|
return StatusStopped, nil
|
||||||
|
default:
|
||||||
|
return StatusUnknown, ErrNotInstalled
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (s *sysv) Start() error {
|
func (s *sysv) Start() error {
|
||||||
return run("service", s.Name, "start")
|
return run("service", s.Name, "start")
|
||||||
}
|
}
|
||||||
|
|
60
vendor/github.com/kardianos/service/service_unix.go
generated
vendored
60
vendor/github.com/kardianos/service/service_unix.go
generated
vendored
|
@ -8,9 +8,11 @@ package service
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log/syslog"
|
"log/syslog"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
"syscall"
|
||||||
)
|
)
|
||||||
|
|
||||||
func newSysLogger(name string, errs chan<- error) (Logger, error) {
|
func newSysLogger(name string, errs chan<- error) (Logger, error) {
|
||||||
|
@ -53,20 +55,43 @@ func (s sysLogger) Infof(format string, a ...interface{}) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func run(command string, arguments ...string) error {
|
func run(command string, arguments ...string) error {
|
||||||
|
_, _, err := runCommand(command, false, arguments...)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
func runWithOutput(command string, arguments ...string) (int, string, error) {
|
||||||
|
return runCommand(command, true, arguments...)
|
||||||
|
}
|
||||||
|
|
||||||
|
func runCommand(command string, readStdout bool, arguments ...string) (int, string, error) {
|
||||||
cmd := exec.Command(command, arguments...)
|
cmd := exec.Command(command, arguments...)
|
||||||
|
|
||||||
|
var output string
|
||||||
|
var stdout io.ReadCloser
|
||||||
|
var err error
|
||||||
|
|
||||||
|
if readStdout {
|
||||||
|
// Connect pipe to read Stdout
|
||||||
|
stdout, err = cmd.StdoutPipe()
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
// Failed to connect pipe
|
||||||
|
return 0, "", fmt.Errorf("%q failed to connect stdout pipe: %v", command, err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Connect pipe to read Stderr
|
// Connect pipe to read Stderr
|
||||||
stderr, err := cmd.StderrPipe()
|
stderr, err := cmd.StderrPipe()
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// Failed to connect pipe
|
// Failed to connect pipe
|
||||||
return fmt.Errorf("%q failed to connect stderr pipe: %v", command, err)
|
return 0, "", fmt.Errorf("%q failed to connect stderr pipe: %v", command, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do not use cmd.Run()
|
// Do not use cmd.Run()
|
||||||
if err := cmd.Start(); err != nil {
|
if err := cmd.Start(); err != nil {
|
||||||
// Problem while copying stdin, stdout, or stderr
|
// Problem while copying stdin, stdout, or stderr
|
||||||
return fmt.Errorf("%q failed: %v", command, err)
|
return 0, "", fmt.Errorf("%q failed: %v", command, err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Zero exit status
|
// Zero exit status
|
||||||
|
@ -75,14 +100,39 @@ func run(command string, arguments ...string) error {
|
||||||
if command == "launchctl" {
|
if command == "launchctl" {
|
||||||
slurp, _ := ioutil.ReadAll(stderr)
|
slurp, _ := ioutil.ReadAll(stderr)
|
||||||
if len(slurp) > 0 {
|
if len(slurp) > 0 {
|
||||||
return fmt.Errorf("%q failed with stderr: %s", command, slurp)
|
return 0, "", fmt.Errorf("%q failed with stderr: %s", command, slurp)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if readStdout {
|
||||||
|
out, err := ioutil.ReadAll(stdout)
|
||||||
|
if err != nil {
|
||||||
|
return 0, "", fmt.Errorf("%q failed while attempting to read stdout: %v", command, err)
|
||||||
|
} else if len(out) > 0 {
|
||||||
|
output = string(out)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := cmd.Wait(); err != nil {
|
if err := cmd.Wait(); err != nil {
|
||||||
|
exitStatus, ok := isExitError(err)
|
||||||
|
if ok {
|
||||||
// Command didn't exit with a zero exit status.
|
// Command didn't exit with a zero exit status.
|
||||||
return fmt.Errorf("%q failed: %v", command, err)
|
return exitStatus, output, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
// An error occurred and there is no exit status.
|
||||||
|
return 0, output, fmt.Errorf("%q failed: %v", command, err)
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0, output, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func isExitError(err error) (int, bool) {
|
||||||
|
if exiterr, ok := err.(*exec.ExitError); ok {
|
||||||
|
if status, ok := exiterr.Sys().(syscall.WaitStatus); ok {
|
||||||
|
return status.ExitStatus(), true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0, false
|
||||||
}
|
}
|
||||||
|
|
103
vendor/github.com/kardianos/service/service_upstart_linux.go
generated
vendored
103
vendor/github.com/kardianos/service/service_upstart_linux.go
generated
vendored
|
@ -8,10 +8,8 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strconv"
|
|
||||||
"strings"
|
"strings"
|
||||||
"text/template"
|
"text/template"
|
||||||
"time"
|
"time"
|
||||||
|
@ -21,6 +19,13 @@ func isUpstart() bool {
|
||||||
if _, err := os.Stat("/sbin/upstart-udev-bridge"); err == nil {
|
if _, err := os.Stat("/sbin/upstart-udev-bridge"); err == nil {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
if _, err := os.Stat("/sbin/initctl"); err == nil {
|
||||||
|
if _, out, err := runWithOutput("/sbin/initctl", "--version"); err == nil {
|
||||||
|
if strings.Contains(out, "initctl (upstart") {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,47 +66,58 @@ func (s *upstart) configPath() (cp string, err error) {
|
||||||
|
|
||||||
func (s *upstart) hasKillStanza() bool {
|
func (s *upstart) hasKillStanza() bool {
|
||||||
defaultValue := true
|
defaultValue := true
|
||||||
|
version := s.getUpstartVersion()
|
||||||
out, err := exec.Command("/sbin/init", "--version").Output()
|
if version == nil {
|
||||||
if err != nil {
|
|
||||||
return defaultValue
|
return defaultValue
|
||||||
}
|
}
|
||||||
|
|
||||||
re := regexp.MustCompile(`init \(upstart (\d+.\d+.\d+)\)`)
|
|
||||||
matches := re.FindStringSubmatch(string(out))
|
|
||||||
if len(matches) != 2 {
|
|
||||||
return defaultValue
|
|
||||||
}
|
|
||||||
|
|
||||||
version := make([]int, 3)
|
|
||||||
for idx, vStr := range strings.Split(matches[1], ".") {
|
|
||||||
version[idx], err = strconv.Atoi(vStr)
|
|
||||||
if err != nil {
|
|
||||||
return defaultValue
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
maxVersion := []int{0, 6, 5}
|
maxVersion := []int{0, 6, 5}
|
||||||
if versionAtMost(version, maxVersion) {
|
if matches, err := versionAtMost(version, maxVersion); err != nil || matches {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
return defaultValue
|
return defaultValue
|
||||||
}
|
}
|
||||||
|
|
||||||
func versionAtMost(version, max []int) bool {
|
func (s *upstart) hasSetUIDStanza() bool {
|
||||||
for idx, m := range max {
|
defaultValue := true
|
||||||
v := version[idx]
|
version := s.getUpstartVersion()
|
||||||
if v > m {
|
if version == nil {
|
||||||
|
return defaultValue
|
||||||
|
}
|
||||||
|
|
||||||
|
maxVersion := []int{1, 4, 0}
|
||||||
|
if matches, err := versionAtMost(version, maxVersion); err != nil || matches {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return defaultValue
|
||||||
}
|
}
|
||||||
return true
|
|
||||||
|
func (s *upstart) getUpstartVersion() []int {
|
||||||
|
_, out, err := runWithOutput("/sbin/initctl", "--version")
|
||||||
|
if err != nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
re := regexp.MustCompile(`initctl \(upstart (\d+.\d+.\d+)\)`)
|
||||||
|
matches := re.FindStringSubmatch(out)
|
||||||
|
if len(matches) != 2 {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
return parseVersion(matches[1])
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *upstart) template() *template.Template {
|
func (s *upstart) template() *template.Template {
|
||||||
|
customScript := s.Option.string(optionUpstartScript, "")
|
||||||
|
|
||||||
|
if customScript != "" {
|
||||||
|
return template.Must(template.New("").Funcs(tf).Parse(customScript))
|
||||||
|
} else {
|
||||||
return template.Must(template.New("").Funcs(tf).Parse(upstartScript))
|
return template.Must(template.New("").Funcs(tf).Parse(upstartScript))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (s *upstart) Install() error {
|
func (s *upstart) Install() error {
|
||||||
confPath, err := s.configPath()
|
confPath, err := s.configPath()
|
||||||
|
@ -128,10 +144,14 @@ func (s *upstart) Install() error {
|
||||||
*Config
|
*Config
|
||||||
Path string
|
Path string
|
||||||
HasKillStanza bool
|
HasKillStanza bool
|
||||||
|
HasSetUIDStanza bool
|
||||||
|
LogOutput bool
|
||||||
}{
|
}{
|
||||||
s.Config,
|
s.Config,
|
||||||
path,
|
path,
|
||||||
s.hasKillStanza(),
|
s.hasKillStanza(),
|
||||||
|
s.hasSetUIDStanza(),
|
||||||
|
s.Option.bool(optionLogOutput, optionLogOutputDefault),
|
||||||
}
|
}
|
||||||
|
|
||||||
return s.template().Execute(f, to)
|
return s.template().Execute(f, to)
|
||||||
|
@ -173,6 +193,22 @@ func (s *upstart) Run() (err error) {
|
||||||
return s.i.Stop(s)
|
return s.i.Stop(s)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s *upstart) Status() (Status, error) {
|
||||||
|
exitCode, out, err := runWithOutput("initctl", "status", s.Name)
|
||||||
|
if exitCode == 0 && err != nil {
|
||||||
|
return StatusUnknown, err
|
||||||
|
}
|
||||||
|
|
||||||
|
switch {
|
||||||
|
case strings.HasPrefix(out, fmt.Sprintf("%s start/running", s.Name)):
|
||||||
|
return StatusRunning, nil
|
||||||
|
case strings.HasPrefix(out, fmt.Sprintf("%s stop/waiting", s.Name)):
|
||||||
|
return StatusStopped, nil
|
||||||
|
default:
|
||||||
|
return StatusUnknown, ErrNotInstalled
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (s *upstart) Start() error {
|
func (s *upstart) Start() error {
|
||||||
return run("initctl", "start", s.Name)
|
return run("initctl", "start", s.Name)
|
||||||
}
|
}
|
||||||
|
@ -202,7 +238,7 @@ const upstartScript = `# {{.Description}}
|
||||||
start on filesystem or runlevel [2345]
|
start on filesystem or runlevel [2345]
|
||||||
stop on runlevel [!2345]
|
stop on runlevel [!2345]
|
||||||
|
|
||||||
{{if .UserName}}setuid {{.UserName}}{{end}}
|
{{if and .UserName .HasSetUIDStanza}}setuid {{.UserName}}{{end}}
|
||||||
|
|
||||||
respawn
|
respawn
|
||||||
respawn limit 10 5
|
respawn limit 10 5
|
||||||
|
@ -215,5 +251,18 @@ pre-start script
|
||||||
end script
|
end script
|
||||||
|
|
||||||
# Start
|
# Start
|
||||||
exec {{.Path}}{{range .Arguments}} {{.|cmd}}{{end}}
|
script
|
||||||
|
{{if .LogOutput}}
|
||||||
|
stdout_log="/var/log/{{.Name}}.out"
|
||||||
|
stderr_log="/var/log/{{.Name}}.err"
|
||||||
|
{{end}}
|
||||||
|
|
||||||
|
if [ -f "/etc/sysconfig/{{.Name}}" ]; then
|
||||||
|
set -a
|
||||||
|
source /etc/sysconfig/{{.Name}}
|
||||||
|
set +a
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec {{if and .UserName (not .HasSetUIDStanza)}}sudo -E -u {{.UserName}} {{end}}{{.Path}}{{range .Arguments}} {{.|cmd}}{{end}}{{if .LogOutput}} >> $stdout_log 2>> $stderr_log{{end}}
|
||||||
|
end script
|
||||||
`
|
`
|
||||||
|
|
40
vendor/github.com/kardianos/service/service_windows.go
generated
vendored
40
vendor/github.com/kardianos/service/service_windows.go
generated
vendored
|
@ -275,6 +275,46 @@ func (ws *windowsService) Run() error {
|
||||||
return ws.i.Stop(ws)
|
return ws.i.Stop(ws)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (ws *windowsService) Status() (Status, error) {
|
||||||
|
m, err := mgr.Connect()
|
||||||
|
if err != nil {
|
||||||
|
return StatusUnknown, err
|
||||||
|
}
|
||||||
|
defer m.Disconnect()
|
||||||
|
|
||||||
|
s, err := m.OpenService(ws.Name)
|
||||||
|
if err != nil {
|
||||||
|
if err.Error() == "The specified service does not exist as an installed service." {
|
||||||
|
return StatusUnknown, ErrNotInstalled
|
||||||
|
}
|
||||||
|
return StatusUnknown, err
|
||||||
|
}
|
||||||
|
|
||||||
|
status, err := s.Query()
|
||||||
|
if err != nil {
|
||||||
|
return StatusUnknown, err
|
||||||
|
}
|
||||||
|
|
||||||
|
switch status.State {
|
||||||
|
case svc.StartPending:
|
||||||
|
fallthrough
|
||||||
|
case svc.Running:
|
||||||
|
return StatusRunning, nil
|
||||||
|
case svc.PausePending:
|
||||||
|
fallthrough
|
||||||
|
case svc.Paused:
|
||||||
|
fallthrough
|
||||||
|
case svc.ContinuePending:
|
||||||
|
fallthrough
|
||||||
|
case svc.StopPending:
|
||||||
|
fallthrough
|
||||||
|
case svc.Stopped:
|
||||||
|
return StatusStopped, nil
|
||||||
|
default:
|
||||||
|
return StatusUnknown, fmt.Errorf("unknown status %s", status)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (ws *windowsService) Start() error {
|
func (ws *windowsService) Start() error {
|
||||||
m, err := mgr.Connect()
|
m, err := mgr.Connect()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
57
vendor/github.com/kardianos/service/version.go
generated
vendored
Normal file
57
vendor/github.com/kardianos/service/version.go
generated
vendored
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
package service
|
||||||
|
|
||||||
|
import (
|
||||||
|
"errors"
|
||||||
|
"strconv"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
// versionAtMost will return true if the provided version is less than or equal to max
|
||||||
|
func versionAtMost(version, max []int) (bool, error) {
|
||||||
|
if comp, err := versionCompare(version, max); err != nil {
|
||||||
|
return false, err
|
||||||
|
} else if comp == 1 {
|
||||||
|
return false, nil
|
||||||
|
}
|
||||||
|
return true, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// versionCompare take to versions split into integer arrays and attempts to compare them
|
||||||
|
// An error will be returned if there is an array length mismatch.
|
||||||
|
// Return values are as follows
|
||||||
|
// -1 - v1 is less than v2
|
||||||
|
// 0 - v1 is equal to v2
|
||||||
|
// 1 - v1 is greater than v2
|
||||||
|
func versionCompare(v1, v2 []int) (int, error) {
|
||||||
|
if len(v1) != len(v2) {
|
||||||
|
return 0, errors.New("version length mismatch")
|
||||||
|
}
|
||||||
|
|
||||||
|
for idx, v2S := range v2 {
|
||||||
|
v1S := v1[idx]
|
||||||
|
if v1S > v2S {
|
||||||
|
return 1, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
if v1S < v2S {
|
||||||
|
return -1, nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return 0, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// parseVersion will parse any integer type version seperated by periods.
|
||||||
|
// This does not fully support semver style versions.
|
||||||
|
func parseVersion(v string) []int {
|
||||||
|
version := make([]int, 3)
|
||||||
|
|
||||||
|
for idx, vStr := range strings.Split(v, ".") {
|
||||||
|
vS, err := strconv.Atoi(vStr)
|
||||||
|
if err != nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
version[idx] = vS
|
||||||
|
}
|
||||||
|
|
||||||
|
return version
|
||||||
|
}
|
20
vendor/golang.org/x/net/http2/headermap.go
generated
vendored
20
vendor/golang.org/x/net/http2/headermap.go
generated
vendored
|
@ -7,15 +7,21 @@ package http2
|
||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
"sync"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
commonLowerHeader = map[string]string{} // Go-Canonical-Case -> lower-case
|
commonBuildOnce sync.Once
|
||||||
commonCanonHeader = map[string]string{} // lower-case -> Go-Canonical-Case
|
commonLowerHeader map[string]string // Go-Canonical-Case -> lower-case
|
||||||
|
commonCanonHeader map[string]string // lower-case -> Go-Canonical-Case
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func buildCommonHeaderMapsOnce() {
|
||||||
for _, v := range []string{
|
commonBuildOnce.Do(buildCommonHeaderMaps)
|
||||||
|
}
|
||||||
|
|
||||||
|
func buildCommonHeaderMaps() {
|
||||||
|
common := []string{
|
||||||
"accept",
|
"accept",
|
||||||
"accept-charset",
|
"accept-charset",
|
||||||
"accept-encoding",
|
"accept-encoding",
|
||||||
|
@ -63,7 +69,10 @@ func init() {
|
||||||
"vary",
|
"vary",
|
||||||
"via",
|
"via",
|
||||||
"www-authenticate",
|
"www-authenticate",
|
||||||
} {
|
}
|
||||||
|
commonLowerHeader = make(map[string]string, len(common))
|
||||||
|
commonCanonHeader = make(map[string]string, len(common))
|
||||||
|
for _, v := range common {
|
||||||
chk := http.CanonicalHeaderKey(v)
|
chk := http.CanonicalHeaderKey(v)
|
||||||
commonLowerHeader[chk] = v
|
commonLowerHeader[chk] = v
|
||||||
commonCanonHeader[v] = chk
|
commonCanonHeader[v] = chk
|
||||||
|
@ -71,6 +80,7 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func lowerHeader(v string) string {
|
func lowerHeader(v string) string {
|
||||||
|
buildCommonHeaderMapsOnce()
|
||||||
if s, ok := commonLowerHeader[v]; ok {
|
if s, ok := commonLowerHeader[v]; ok {
|
||||||
return s
|
return s
|
||||||
}
|
}
|
||||||
|
|
17
vendor/golang.org/x/net/http2/http2.go
generated
vendored
17
vendor/golang.org/x/net/http2/http2.go
generated
vendored
|
@ -201,19 +201,12 @@ func validWireHeaderFieldName(v string) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
var httpCodeStringCommon = map[int]string{} // n -> strconv.Itoa(n)
|
|
||||||
|
|
||||||
func init() {
|
|
||||||
for i := 100; i <= 999; i++ {
|
|
||||||
if v := http.StatusText(i); v != "" {
|
|
||||||
httpCodeStringCommon[i] = strconv.Itoa(i)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func httpCodeString(code int) string {
|
func httpCodeString(code int) string {
|
||||||
if s, ok := httpCodeStringCommon[code]; ok {
|
switch code {
|
||||||
return s
|
case 200:
|
||||||
|
return "200"
|
||||||
|
case 404:
|
||||||
|
return "404"
|
||||||
}
|
}
|
||||||
return strconv.Itoa(code)
|
return strconv.Itoa(code)
|
||||||
}
|
}
|
||||||
|
|
1
vendor/golang.org/x/net/http2/server.go
generated
vendored
1
vendor/golang.org/x/net/http2/server.go
generated
vendored
|
@ -663,6 +663,7 @@ func (sc *serverConn) condlogf(err error, format string, args ...interface{}) {
|
||||||
|
|
||||||
func (sc *serverConn) canonicalHeader(v string) string {
|
func (sc *serverConn) canonicalHeader(v string) string {
|
||||||
sc.serveG.check()
|
sc.serveG.check()
|
||||||
|
buildCommonHeaderMapsOnce()
|
||||||
cv, ok := commonCanonHeader[v]
|
cv, ok := commonCanonHeader[v]
|
||||||
if ok {
|
if ok {
|
||||||
return cv
|
return cv
|
||||||
|
|
8
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
8
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
|
@ -65,6 +65,7 @@ includes_DragonFly='
|
||||||
#include <sys/event.h>
|
#include <sys/event.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/sockio.h>
|
#include <sys/sockio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
@ -86,6 +87,7 @@ includes_FreeBSD='
|
||||||
#include <sys/event.h>
|
#include <sys/event.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/sockio.h>
|
#include <sys/sockio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
|
@ -191,7 +193,6 @@ struct ltchars {
|
||||||
#include <linux/vm_sockets.h>
|
#include <linux/vm_sockets.h>
|
||||||
#include <linux/taskstats.h>
|
#include <linux/taskstats.h>
|
||||||
#include <linux/genetlink.h>
|
#include <linux/genetlink.h>
|
||||||
#include <linux/stat.h>
|
|
||||||
#include <linux/watchdog.h>
|
#include <linux/watchdog.h>
|
||||||
#include <linux/hdreg.h>
|
#include <linux/hdreg.h>
|
||||||
#include <linux/rtc.h>
|
#include <linux/rtc.h>
|
||||||
|
@ -230,6 +231,7 @@ includes_NetBSD='
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/event.h>
|
#include <sys/event.h>
|
||||||
|
#include <sys/extattr.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/sockio.h>
|
#include <sys/sockio.h>
|
||||||
|
@ -258,6 +260,7 @@ includes_OpenBSD='
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/sockio.h>
|
#include <sys/sockio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <sys/termios.h>
|
#include <sys/termios.h>
|
||||||
#include <sys/ttycom.h>
|
#include <sys/ttycom.h>
|
||||||
|
@ -293,6 +296,7 @@ includes_SunOS='
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/sockio.h>
|
#include <sys/sockio.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
@ -434,7 +438,7 @@ ccflags="$@"
|
||||||
$2 ~ /^SECCOMP_MODE_/ ||
|
$2 ~ /^SECCOMP_MODE_/ ||
|
||||||
$2 ~ /^SPLICE_/ ||
|
$2 ~ /^SPLICE_/ ||
|
||||||
$2 !~ /^AUDIT_RECORD_MAGIC/ &&
|
$2 !~ /^AUDIT_RECORD_MAGIC/ &&
|
||||||
$2 ~ /^[A-Z0-9_]+_MAGIC2?$/ ||
|
$2 ~ /^[A-Z][A-Z0-9_]+_MAGIC2?$/ ||
|
||||||
$2 ~ /^(VM|VMADDR)_/ ||
|
$2 ~ /^(VM|VMADDR)_/ ||
|
||||||
$2 ~ /^IOCTL_VM_SOCKETS_/ ||
|
$2 ~ /^IOCTL_VM_SOCKETS_/ ||
|
||||||
$2 ~ /^(TASKSTATS|TS)_/ ||
|
$2 ~ /^(TASKSTATS|TS)_/ ||
|
||||||
|
|
2
vendor/golang.org/x/sys/unix/mksysnum_freebsd.pl
generated
vendored
2
vendor/golang.org/x/sys/unix/mksysnum_freebsd.pl
generated
vendored
|
@ -27,7 +27,7 @@ const (
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
while(<>){
|
while(<>){
|
||||||
if(/^([0-9]+)\s+\S+\s+STD\s+({ \S+\s+(\w+).*)$/){
|
if(/^([0-9]+)\s+\S+\s+(?:NO)?STD\s+({ \S+\s+(\w+).*)$/){
|
||||||
my $num = $1;
|
my $num = $1;
|
||||||
my $proto = $2;
|
my $proto = $2;
|
||||||
my $name = "SYS_$3";
|
my $name = "SYS_$3";
|
||||||
|
|
75
vendor/golang.org/x/sys/unix/openbsd_pledge.go
generated
vendored
75
vendor/golang.org/x/sys/unix/openbsd_pledge.go
generated
vendored
|
@ -8,6 +8,9 @@
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"errors"
|
||||||
|
"fmt"
|
||||||
|
"strconv"
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
@ -16,23 +19,77 @@ const (
|
||||||
_SYS_PLEDGE = 108
|
_SYS_PLEDGE = 108
|
||||||
)
|
)
|
||||||
|
|
||||||
// Pledge implements the pledge syscall. For more information see pledge(2).
|
// Pledge implements the pledge syscall.
|
||||||
func Pledge(promises string, paths []string) error {
|
//
|
||||||
promisesPtr, err := syscall.BytePtrFromString(promises)
|
// The pledge syscall does not accept execpromises on OpenBSD releases
|
||||||
|
// before 6.3.
|
||||||
|
//
|
||||||
|
// execpromises must be empty when Pledge is called on OpenBSD
|
||||||
|
// releases predating 6.3, otherwise an error will be returned.
|
||||||
|
//
|
||||||
|
// For more information see pledge(2).
|
||||||
|
func Pledge(promises, execpromises string) error {
|
||||||
|
maj, min, err := majmin()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
promisesUnsafe, pathsUnsafe := unsafe.Pointer(promisesPtr), unsafe.Pointer(nil)
|
|
||||||
if paths != nil {
|
// If OpenBSD <= 5.9, pledge is not available.
|
||||||
var pathsPtr []*byte
|
if (maj == 5 && min != 9) || maj < 5 {
|
||||||
if pathsPtr, err = syscall.SlicePtrFromStrings(paths); err != nil {
|
return fmt.Errorf("pledge syscall is not available on OpenBSD %d.%d", maj, min)
|
||||||
|
}
|
||||||
|
|
||||||
|
// If OpenBSD <= 6.2 and execpromises is not empty
|
||||||
|
// return an error - execpromises is not available before 6.3
|
||||||
|
if (maj < 6 || (maj == 6 && min <= 2)) && execpromises != "" {
|
||||||
|
return fmt.Errorf("cannot use execpromises on OpenBSD %d.%d", maj, min)
|
||||||
|
}
|
||||||
|
|
||||||
|
pptr, err := syscall.BytePtrFromString(promises)
|
||||||
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
pathsUnsafe = unsafe.Pointer(&pathsPtr[0])
|
|
||||||
|
// This variable will hold either a nil unsafe.Pointer or
|
||||||
|
// an unsafe.Pointer to a string (execpromises).
|
||||||
|
var expr unsafe.Pointer
|
||||||
|
|
||||||
|
// If we're running on OpenBSD > 6.2, pass execpromises to the syscall.
|
||||||
|
if maj > 6 || (maj == 6 && min > 2) {
|
||||||
|
exptr, err := syscall.BytePtrFromString(execpromises)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
_, _, e := syscall.Syscall(_SYS_PLEDGE, uintptr(promisesUnsafe), uintptr(pathsUnsafe), 0)
|
expr = unsafe.Pointer(exptr)
|
||||||
|
}
|
||||||
|
|
||||||
|
_, _, e := syscall.Syscall(_SYS_PLEDGE, uintptr(unsafe.Pointer(pptr)), uintptr(expr), 0)
|
||||||
if e != 0 {
|
if e != 0 {
|
||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// majmin returns major and minor version number for an OpenBSD system.
|
||||||
|
func majmin() (major int, minor int, err error) {
|
||||||
|
var v Utsname
|
||||||
|
err = Uname(&v)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
major, err = strconv.Atoi(string(v.Release[0]))
|
||||||
|
if err != nil {
|
||||||
|
err = errors.New("cannot parse major version number returned by uname")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
minor, err = strconv.Atoi(string(v.Release[2]))
|
||||||
|
if err != nil {
|
||||||
|
err = errors.New("cannot parse minor version number returned by uname")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
220
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
220
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
|
@ -13,7 +13,6 @@
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"strings"
|
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -134,225 +133,6 @@ func setattrlistTimes(path string, times []Timespec, flags int) error {
|
||||||
return ENOSYS
|
return ENOSYS
|
||||||
}
|
}
|
||||||
|
|
||||||
// Derive extattr namespace and attribute name
|
|
||||||
|
|
||||||
func xattrnamespace(fullattr string) (ns int, attr string, err error) {
|
|
||||||
s := strings.IndexByte(fullattr, '.')
|
|
||||||
if s == -1 {
|
|
||||||
return -1, "", ENOATTR
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace := fullattr[0:s]
|
|
||||||
attr = fullattr[s+1:]
|
|
||||||
|
|
||||||
switch namespace {
|
|
||||||
case "user":
|
|
||||||
return EXTATTR_NAMESPACE_USER, attr, nil
|
|
||||||
case "system":
|
|
||||||
return EXTATTR_NAMESPACE_SYSTEM, attr, nil
|
|
||||||
default:
|
|
||||||
return -1, "", ENOATTR
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func initxattrdest(dest []byte, idx int) (d unsafe.Pointer) {
|
|
||||||
if len(dest) > idx {
|
|
||||||
return unsafe.Pointer(&dest[idx])
|
|
||||||
} else {
|
|
||||||
return unsafe.Pointer(_zero)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// FreeBSD implements its own syscalls to handle extended attributes
|
|
||||||
|
|
||||||
func Getxattr(file string, attr string, dest []byte) (sz int, err error) {
|
|
||||||
d := initxattrdest(dest, 0)
|
|
||||||
destsize := len(dest)
|
|
||||||
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
|
||||||
if err != nil {
|
|
||||||
return -1, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return ExtattrGetFile(file, nsid, a, uintptr(d), destsize)
|
|
||||||
}
|
|
||||||
|
|
||||||
func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
|
|
||||||
d := initxattrdest(dest, 0)
|
|
||||||
destsize := len(dest)
|
|
||||||
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
|
||||||
if err != nil {
|
|
||||||
return -1, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return ExtattrGetFd(fd, nsid, a, uintptr(d), destsize)
|
|
||||||
}
|
|
||||||
|
|
||||||
func Lgetxattr(link string, attr string, dest []byte) (sz int, err error) {
|
|
||||||
d := initxattrdest(dest, 0)
|
|
||||||
destsize := len(dest)
|
|
||||||
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
|
||||||
if err != nil {
|
|
||||||
return -1, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return ExtattrGetLink(link, nsid, a, uintptr(d), destsize)
|
|
||||||
}
|
|
||||||
|
|
||||||
// flags are unused on FreeBSD
|
|
||||||
|
|
||||||
func Fsetxattr(fd int, attr string, data []byte, flags int) (err error) {
|
|
||||||
d := unsafe.Pointer(&data[0])
|
|
||||||
datasiz := len(data)
|
|
||||||
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
_, err = ExtattrSetFd(fd, nsid, a, uintptr(d), datasiz)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func Setxattr(file string, attr string, data []byte, flags int) (err error) {
|
|
||||||
d := unsafe.Pointer(&data[0])
|
|
||||||
datasiz := len(data)
|
|
||||||
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
_, err = ExtattrSetFile(file, nsid, a, uintptr(d), datasiz)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func Lsetxattr(link string, attr string, data []byte, flags int) (err error) {
|
|
||||||
d := unsafe.Pointer(&data[0])
|
|
||||||
datasiz := len(data)
|
|
||||||
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
_, err = ExtattrSetLink(link, nsid, a, uintptr(d), datasiz)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func Removexattr(file string, attr string) (err error) {
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
err = ExtattrDeleteFile(file, nsid, a)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func Fremovexattr(fd int, attr string) (err error) {
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
err = ExtattrDeleteFd(fd, nsid, a)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func Lremovexattr(link string, attr string) (err error) {
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
err = ExtattrDeleteLink(link, nsid, a)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
func Listxattr(file string, dest []byte) (sz int, err error) {
|
|
||||||
d := initxattrdest(dest, 0)
|
|
||||||
destsiz := len(dest)
|
|
||||||
|
|
||||||
// FreeBSD won't allow you to list xattrs from multiple namespaces
|
|
||||||
s := 0
|
|
||||||
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
|
||||||
stmp, e := ExtattrListFile(file, nsid, uintptr(d), destsiz)
|
|
||||||
|
|
||||||
/* Errors accessing system attrs are ignored so that
|
|
||||||
* we can implement the Linux-like behavior of omitting errors that
|
|
||||||
* we don't have read permissions on
|
|
||||||
*
|
|
||||||
* Linux will still error if we ask for user attributes on a file that
|
|
||||||
* we don't have read permissions on, so don't ignore those errors
|
|
||||||
*/
|
|
||||||
if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
|
||||||
continue
|
|
||||||
} else if e != nil {
|
|
||||||
return s, e
|
|
||||||
}
|
|
||||||
|
|
||||||
s += stmp
|
|
||||||
destsiz -= s
|
|
||||||
if destsiz < 0 {
|
|
||||||
destsiz = 0
|
|
||||||
}
|
|
||||||
d = initxattrdest(dest, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
return s, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
|
||||||
d := initxattrdest(dest, 0)
|
|
||||||
destsiz := len(dest)
|
|
||||||
|
|
||||||
s := 0
|
|
||||||
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
|
||||||
stmp, e := ExtattrListFd(fd, nsid, uintptr(d), destsiz)
|
|
||||||
if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
|
||||||
continue
|
|
||||||
} else if e != nil {
|
|
||||||
return s, e
|
|
||||||
}
|
|
||||||
|
|
||||||
s += stmp
|
|
||||||
destsiz -= s
|
|
||||||
if destsiz < 0 {
|
|
||||||
destsiz = 0
|
|
||||||
}
|
|
||||||
d = initxattrdest(dest, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
return s, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func Llistxattr(link string, dest []byte) (sz int, err error) {
|
|
||||||
d := initxattrdest(dest, 0)
|
|
||||||
destsiz := len(dest)
|
|
||||||
|
|
||||||
s := 0
|
|
||||||
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
|
||||||
stmp, e := ExtattrListLink(link, nsid, uintptr(d), destsiz)
|
|
||||||
if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
|
||||||
continue
|
|
||||||
} else if e != nil {
|
|
||||||
return s, e
|
|
||||||
}
|
|
||||||
|
|
||||||
s += stmp
|
|
||||||
destsiz -= s
|
|
||||||
if destsiz < 0 {
|
|
||||||
destsiz = 0
|
|
||||||
}
|
|
||||||
d = initxattrdest(dest, s)
|
|
||||||
}
|
|
||||||
|
|
||||||
return s, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||||
|
|
||||||
// ioctl itself should not be exposed directly, but additional get/set
|
// ioctl itself should not be exposed directly, but additional get/set
|
||||||
|
|
12
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
12
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
|
@ -233,6 +233,18 @@ 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 ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
|
||||||
|
//sys ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
|
||||||
|
//sys ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error)
|
||||||
|
//sys ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error)
|
||||||
|
//sys ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
|
||||||
|
//sys ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
|
||||||
|
//sys ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error)
|
||||||
|
//sys ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error)
|
||||||
|
//sys ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
|
||||||
|
//sys ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error)
|
||||||
|
//sys ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error)
|
||||||
|
//sys ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error)
|
||||||
//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
|
//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)
|
||||||
|
|
17
vendor/golang.org/x/sys/unix/types_dragonfly.go
generated
vendored
17
vendor/golang.org/x/sys/unix/types_dragonfly.go
generated
vendored
|
@ -100,23 +100,6 @@ type _Gid_t C.gid_t
|
||||||
|
|
||||||
// Files
|
// Files
|
||||||
|
|
||||||
const ( // Directory mode bits
|
|
||||||
S_IFMT = C.S_IFMT
|
|
||||||
S_IFIFO = C.S_IFIFO
|
|
||||||
S_IFCHR = C.S_IFCHR
|
|
||||||
S_IFDIR = C.S_IFDIR
|
|
||||||
S_IFBLK = C.S_IFBLK
|
|
||||||
S_IFREG = C.S_IFREG
|
|
||||||
S_IFLNK = C.S_IFLNK
|
|
||||||
S_IFSOCK = C.S_IFSOCK
|
|
||||||
S_ISUID = C.S_ISUID
|
|
||||||
S_ISGID = C.S_ISGID
|
|
||||||
S_ISVTX = C.S_ISVTX
|
|
||||||
S_IRUSR = C.S_IRUSR
|
|
||||||
S_IWUSR = C.S_IWUSR
|
|
||||||
S_IXUSR = C.S_IXUSR
|
|
||||||
)
|
|
||||||
|
|
||||||
type Stat_t C.struct_stat
|
type Stat_t C.struct_stat
|
||||||
|
|
||||||
type Statfs_t C.struct_statfs
|
type Statfs_t C.struct_statfs
|
||||||
|
|
19
vendor/golang.org/x/sys/unix/types_freebsd.go
generated
vendored
19
vendor/golang.org/x/sys/unix/types_freebsd.go
generated
vendored
|
@ -189,25 +189,6 @@ type _Gid_t C.gid_t
|
||||||
|
|
||||||
// Files
|
// Files
|
||||||
|
|
||||||
const ( // Directory mode bits
|
|
||||||
S_IFMT = C.S_IFMT
|
|
||||||
S_IFIFO = C.S_IFIFO
|
|
||||||
S_IFCHR = C.S_IFCHR
|
|
||||||
S_IFDIR = C.S_IFDIR
|
|
||||||
S_IFBLK = C.S_IFBLK
|
|
||||||
S_IFREG = C.S_IFREG
|
|
||||||
S_IFLNK = C.S_IFLNK
|
|
||||||
S_IFSOCK = C.S_IFSOCK
|
|
||||||
S_ISUID = C.S_ISUID
|
|
||||||
S_ISGID = C.S_ISGID
|
|
||||||
S_ISVTX = C.S_ISVTX
|
|
||||||
S_IRUSR = C.S_IRUSR
|
|
||||||
S_IWUSR = C.S_IWUSR
|
|
||||||
S_IXUSR = C.S_IXUSR
|
|
||||||
S_IRWXG = C.S_IRWXG
|
|
||||||
S_IRWXO = C.S_IRWXO
|
|
||||||
)
|
|
||||||
|
|
||||||
type Stat_t C.struct_stat8
|
type Stat_t C.struct_stat8
|
||||||
|
|
||||||
type Statfs_t C.struct_statfs
|
type Statfs_t C.struct_statfs
|
||||||
|
|
17
vendor/golang.org/x/sys/unix/types_openbsd.go
generated
vendored
17
vendor/golang.org/x/sys/unix/types_openbsd.go
generated
vendored
|
@ -101,23 +101,6 @@ type _Gid_t C.gid_t
|
||||||
|
|
||||||
// Files
|
// Files
|
||||||
|
|
||||||
const ( // Directory mode bits
|
|
||||||
S_IFMT = C.S_IFMT
|
|
||||||
S_IFIFO = C.S_IFIFO
|
|
||||||
S_IFCHR = C.S_IFCHR
|
|
||||||
S_IFDIR = C.S_IFDIR
|
|
||||||
S_IFBLK = C.S_IFBLK
|
|
||||||
S_IFREG = C.S_IFREG
|
|
||||||
S_IFLNK = C.S_IFLNK
|
|
||||||
S_IFSOCK = C.S_IFSOCK
|
|
||||||
S_ISUID = C.S_ISUID
|
|
||||||
S_ISGID = C.S_ISGID
|
|
||||||
S_ISVTX = C.S_ISVTX
|
|
||||||
S_IRUSR = C.S_IRUSR
|
|
||||||
S_IWUSR = C.S_IWUSR
|
|
||||||
S_IXUSR = C.S_IXUSR
|
|
||||||
)
|
|
||||||
|
|
||||||
type Stat_t C.struct_stat
|
type Stat_t C.struct_stat
|
||||||
|
|
||||||
type Statfs_t C.struct_statfs
|
type Statfs_t C.struct_statfs
|
||||||
|
|
17
vendor/golang.org/x/sys/unix/types_solaris.go
generated
vendored
17
vendor/golang.org/x/sys/unix/types_solaris.go
generated
vendored
|
@ -118,23 +118,6 @@ type _Gid_t C.gid_t
|
||||||
|
|
||||||
// Files
|
// Files
|
||||||
|
|
||||||
const ( // Directory mode bits
|
|
||||||
S_IFMT = C.S_IFMT
|
|
||||||
S_IFIFO = C.S_IFIFO
|
|
||||||
S_IFCHR = C.S_IFCHR
|
|
||||||
S_IFDIR = C.S_IFDIR
|
|
||||||
S_IFBLK = C.S_IFBLK
|
|
||||||
S_IFREG = C.S_IFREG
|
|
||||||
S_IFLNK = C.S_IFLNK
|
|
||||||
S_IFSOCK = C.S_IFSOCK
|
|
||||||
S_ISUID = C.S_ISUID
|
|
||||||
S_ISGID = C.S_ISGID
|
|
||||||
S_ISVTX = C.S_ISVTX
|
|
||||||
S_IRUSR = C.S_IRUSR
|
|
||||||
S_IWUSR = C.S_IWUSR
|
|
||||||
S_IXUSR = C.S_IXUSR
|
|
||||||
)
|
|
||||||
|
|
||||||
type Stat_t C.struct_stat
|
type Stat_t C.struct_stat
|
||||||
|
|
||||||
type Flock_t C.struct_flock
|
type Flock_t C.struct_flock
|
||||||
|
|
231
vendor/golang.org/x/sys/unix/xattr_bsd.go
generated
vendored
Normal file
231
vendor/golang.org/x/sys/unix/xattr_bsd.go
generated
vendored
Normal file
|
@ -0,0 +1,231 @@
|
||||||
|
// 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 freebsd netbsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"strings"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Derive extattr namespace and attribute name
|
||||||
|
|
||||||
|
func xattrnamespace(fullattr string) (ns int, attr string, err error) {
|
||||||
|
s := strings.IndexByte(fullattr, '.')
|
||||||
|
if s == -1 {
|
||||||
|
return -1, "", ENOATTR
|
||||||
|
}
|
||||||
|
|
||||||
|
namespace := fullattr[0:s]
|
||||||
|
attr = fullattr[s+1:]
|
||||||
|
|
||||||
|
switch namespace {
|
||||||
|
case "user":
|
||||||
|
return EXTATTR_NAMESPACE_USER, attr, nil
|
||||||
|
case "system":
|
||||||
|
return EXTATTR_NAMESPACE_SYSTEM, attr, nil
|
||||||
|
default:
|
||||||
|
return -1, "", ENOATTR
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func initxattrdest(dest []byte, idx int) (d unsafe.Pointer) {
|
||||||
|
if len(dest) > idx {
|
||||||
|
return unsafe.Pointer(&dest[idx])
|
||||||
|
} else {
|
||||||
|
return unsafe.Pointer(_zero)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// FreeBSD and NetBSD implement their own syscalls to handle extended attributes
|
||||||
|
|
||||||
|
func Getxattr(file string, attr string, dest []byte) (sz int, err error) {
|
||||||
|
d := initxattrdest(dest, 0)
|
||||||
|
destsize := len(dest)
|
||||||
|
|
||||||
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
if err != nil {
|
||||||
|
return -1, err
|
||||||
|
}
|
||||||
|
|
||||||
|
return ExtattrGetFile(file, nsid, a, uintptr(d), destsize)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Fgetxattr(fd int, attr string, dest []byte) (sz int, err error) {
|
||||||
|
d := initxattrdest(dest, 0)
|
||||||
|
destsize := len(dest)
|
||||||
|
|
||||||
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
if err != nil {
|
||||||
|
return -1, err
|
||||||
|
}
|
||||||
|
|
||||||
|
return ExtattrGetFd(fd, nsid, a, uintptr(d), destsize)
|
||||||
|
}
|
||||||
|
|
||||||
|
func Lgetxattr(link string, attr string, dest []byte) (sz int, err error) {
|
||||||
|
d := initxattrdest(dest, 0)
|
||||||
|
destsize := len(dest)
|
||||||
|
|
||||||
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
if err != nil {
|
||||||
|
return -1, err
|
||||||
|
}
|
||||||
|
|
||||||
|
return ExtattrGetLink(link, nsid, a, uintptr(d), destsize)
|
||||||
|
}
|
||||||
|
|
||||||
|
// flags are unused on FreeBSD
|
||||||
|
|
||||||
|
func Fsetxattr(fd int, attr string, data []byte, flags int) (err error) {
|
||||||
|
d := unsafe.Pointer(&data[0])
|
||||||
|
datasiz := len(data)
|
||||||
|
|
||||||
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
_, err = ExtattrSetFd(fd, nsid, a, uintptr(d), datasiz)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Setxattr(file string, attr string, data []byte, flags int) (err error) {
|
||||||
|
d := unsafe.Pointer(&data[0])
|
||||||
|
datasiz := len(data)
|
||||||
|
|
||||||
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
_, err = ExtattrSetFile(file, nsid, a, uintptr(d), datasiz)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Lsetxattr(link string, attr string, data []byte, flags int) (err error) {
|
||||||
|
d := unsafe.Pointer(&data[0])
|
||||||
|
datasiz := len(data)
|
||||||
|
|
||||||
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
_, err = ExtattrSetLink(link, nsid, a, uintptr(d), datasiz)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Removexattr(file string, attr string) (err error) {
|
||||||
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
err = ExtattrDeleteFile(file, nsid, a)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Fremovexattr(fd int, attr string) (err error) {
|
||||||
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
err = ExtattrDeleteFd(fd, nsid, a)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Lremovexattr(link string, attr string) (err error) {
|
||||||
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
err = ExtattrDeleteLink(link, nsid, a)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func Listxattr(file string, dest []byte) (sz int, err error) {
|
||||||
|
d := initxattrdest(dest, 0)
|
||||||
|
destsiz := len(dest)
|
||||||
|
|
||||||
|
// FreeBSD won't allow you to list xattrs from multiple namespaces
|
||||||
|
s := 0
|
||||||
|
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
||||||
|
stmp, e := ExtattrListFile(file, nsid, uintptr(d), destsiz)
|
||||||
|
|
||||||
|
/* Errors accessing system attrs are ignored so that
|
||||||
|
* we can implement the Linux-like behavior of omitting errors that
|
||||||
|
* we don't have read permissions on
|
||||||
|
*
|
||||||
|
* Linux will still error if we ask for user attributes on a file that
|
||||||
|
* we don't have read permissions on, so don't ignore those errors
|
||||||
|
*/
|
||||||
|
if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
||||||
|
continue
|
||||||
|
} else if e != nil {
|
||||||
|
return s, e
|
||||||
|
}
|
||||||
|
|
||||||
|
s += stmp
|
||||||
|
destsiz -= s
|
||||||
|
if destsiz < 0 {
|
||||||
|
destsiz = 0
|
||||||
|
}
|
||||||
|
d = initxattrdest(dest, s)
|
||||||
|
}
|
||||||
|
|
||||||
|
return s, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Flistxattr(fd int, dest []byte) (sz int, err error) {
|
||||||
|
d := initxattrdest(dest, 0)
|
||||||
|
destsiz := len(dest)
|
||||||
|
|
||||||
|
s := 0
|
||||||
|
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
||||||
|
stmp, e := ExtattrListFd(fd, nsid, uintptr(d), destsiz)
|
||||||
|
if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
||||||
|
continue
|
||||||
|
} else if e != nil {
|
||||||
|
return s, e
|
||||||
|
}
|
||||||
|
|
||||||
|
s += stmp
|
||||||
|
destsiz -= s
|
||||||
|
if destsiz < 0 {
|
||||||
|
destsiz = 0
|
||||||
|
}
|
||||||
|
d = initxattrdest(dest, s)
|
||||||
|
}
|
||||||
|
|
||||||
|
return s, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func Llistxattr(link string, dest []byte) (sz int, err error) {
|
||||||
|
d := initxattrdest(dest, 0)
|
||||||
|
destsiz := len(dest)
|
||||||
|
|
||||||
|
s := 0
|
||||||
|
for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} {
|
||||||
|
stmp, e := ExtattrListLink(link, nsid, uintptr(d), destsiz)
|
||||||
|
if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER {
|
||||||
|
continue
|
||||||
|
} else if e != nil {
|
||||||
|
return s, e
|
||||||
|
}
|
||||||
|
|
||||||
|
s += stmp
|
||||||
|
destsiz -= s
|
||||||
|
if destsiz < 0 {
|
||||||
|
destsiz = 0
|
||||||
|
}
|
||||||
|
d = initxattrdest(dest, s)
|
||||||
|
}
|
||||||
|
|
||||||
|
return s, nil
|
||||||
|
}
|
32
vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
generated
vendored
32
vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go
generated
vendored
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
// +build amd64,dragonfly
|
// +build amd64,dragonfly
|
||||||
|
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// Code generated by cmd/cgo -godefs; DO NOT EDIT.
|
||||||
// cgo -godefs -- -m64 _const.go
|
// cgo -godefs -- -m64 _const.go
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
@ -1168,6 +1168,36 @@ const (
|
||||||
SO_TIMESTAMP = 0x400
|
SO_TIMESTAMP = 0x400
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
|
S_BLKSIZE = 0x200
|
||||||
|
S_IEXEC = 0x40
|
||||||
|
S_IFBLK = 0x6000
|
||||||
|
S_IFCHR = 0x2000
|
||||||
|
S_IFDB = 0x9000
|
||||||
|
S_IFDIR = 0x4000
|
||||||
|
S_IFIFO = 0x1000
|
||||||
|
S_IFLNK = 0xa000
|
||||||
|
S_IFMT = 0xf000
|
||||||
|
S_IFREG = 0x8000
|
||||||
|
S_IFSOCK = 0xc000
|
||||||
|
S_IFWHT = 0xe000
|
||||||
|
S_IREAD = 0x100
|
||||||
|
S_IRGRP = 0x20
|
||||||
|
S_IROTH = 0x4
|
||||||
|
S_IRUSR = 0x100
|
||||||
|
S_IRWXG = 0x38
|
||||||
|
S_IRWXO = 0x7
|
||||||
|
S_IRWXU = 0x1c0
|
||||||
|
S_ISGID = 0x400
|
||||||
|
S_ISTXT = 0x200
|
||||||
|
S_ISUID = 0x800
|
||||||
|
S_ISVTX = 0x200
|
||||||
|
S_IWGRP = 0x10
|
||||||
|
S_IWOTH = 0x2
|
||||||
|
S_IWRITE = 0x80
|
||||||
|
S_IWUSR = 0x80
|
||||||
|
S_IXGRP = 0x8
|
||||||
|
S_IXOTH = 0x1
|
||||||
|
S_IXUSR = 0x40
|
||||||
TCIFLUSH = 0x1
|
TCIFLUSH = 0x1
|
||||||
TCIOFF = 0x3
|
TCIOFF = 0x3
|
||||||
TCIOFLUSH = 0x3
|
TCIOFLUSH = 0x3
|
||||||
|
|
29
vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go
generated
vendored
29
vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go
generated
vendored
|
@ -1345,6 +1345,35 @@ const (
|
||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
SO_USER_COOKIE = 0x1015
|
SO_USER_COOKIE = 0x1015
|
||||||
SO_VENDOR = 0x80000000
|
SO_VENDOR = 0x80000000
|
||||||
|
S_BLKSIZE = 0x200
|
||||||
|
S_IEXEC = 0x40
|
||||||
|
S_IFBLK = 0x6000
|
||||||
|
S_IFCHR = 0x2000
|
||||||
|
S_IFDIR = 0x4000
|
||||||
|
S_IFIFO = 0x1000
|
||||||
|
S_IFLNK = 0xa000
|
||||||
|
S_IFMT = 0xf000
|
||||||
|
S_IFREG = 0x8000
|
||||||
|
S_IFSOCK = 0xc000
|
||||||
|
S_IFWHT = 0xe000
|
||||||
|
S_IREAD = 0x100
|
||||||
|
S_IRGRP = 0x20
|
||||||
|
S_IROTH = 0x4
|
||||||
|
S_IRUSR = 0x100
|
||||||
|
S_IRWXG = 0x38
|
||||||
|
S_IRWXO = 0x7
|
||||||
|
S_IRWXU = 0x1c0
|
||||||
|
S_ISGID = 0x400
|
||||||
|
S_ISTXT = 0x200
|
||||||
|
S_ISUID = 0x800
|
||||||
|
S_ISVTX = 0x200
|
||||||
|
S_IWGRP = 0x10
|
||||||
|
S_IWOTH = 0x2
|
||||||
|
S_IWRITE = 0x80
|
||||||
|
S_IWUSR = 0x80
|
||||||
|
S_IXGRP = 0x8
|
||||||
|
S_IXOTH = 0x1
|
||||||
|
S_IXUSR = 0x40
|
||||||
TAB0 = 0x0
|
TAB0 = 0x0
|
||||||
TAB3 = 0x4
|
TAB3 = 0x4
|
||||||
TABDLY = 0x4
|
TABDLY = 0x4
|
||||||
|
|
29
vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go
generated
vendored
29
vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go
generated
vendored
|
@ -1346,6 +1346,35 @@ const (
|
||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
SO_USER_COOKIE = 0x1015
|
SO_USER_COOKIE = 0x1015
|
||||||
SO_VENDOR = 0x80000000
|
SO_VENDOR = 0x80000000
|
||||||
|
S_BLKSIZE = 0x200
|
||||||
|
S_IEXEC = 0x40
|
||||||
|
S_IFBLK = 0x6000
|
||||||
|
S_IFCHR = 0x2000
|
||||||
|
S_IFDIR = 0x4000
|
||||||
|
S_IFIFO = 0x1000
|
||||||
|
S_IFLNK = 0xa000
|
||||||
|
S_IFMT = 0xf000
|
||||||
|
S_IFREG = 0x8000
|
||||||
|
S_IFSOCK = 0xc000
|
||||||
|
S_IFWHT = 0xe000
|
||||||
|
S_IREAD = 0x100
|
||||||
|
S_IRGRP = 0x20
|
||||||
|
S_IROTH = 0x4
|
||||||
|
S_IRUSR = 0x100
|
||||||
|
S_IRWXG = 0x38
|
||||||
|
S_IRWXO = 0x7
|
||||||
|
S_IRWXU = 0x1c0
|
||||||
|
S_ISGID = 0x400
|
||||||
|
S_ISTXT = 0x200
|
||||||
|
S_ISUID = 0x800
|
||||||
|
S_ISVTX = 0x200
|
||||||
|
S_IWGRP = 0x10
|
||||||
|
S_IWOTH = 0x2
|
||||||
|
S_IWRITE = 0x80
|
||||||
|
S_IWUSR = 0x80
|
||||||
|
S_IXGRP = 0x8
|
||||||
|
S_IXOTH = 0x1
|
||||||
|
S_IXUSR = 0x40
|
||||||
TAB0 = 0x0
|
TAB0 = 0x0
|
||||||
TAB3 = 0x4
|
TAB3 = 0x4
|
||||||
TABDLY = 0x4
|
TABDLY = 0x4
|
||||||
|
|
29
vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go
generated
vendored
29
vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go
generated
vendored
|
@ -1354,6 +1354,35 @@ const (
|
||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
SO_USER_COOKIE = 0x1015
|
SO_USER_COOKIE = 0x1015
|
||||||
SO_VENDOR = 0x80000000
|
SO_VENDOR = 0x80000000
|
||||||
|
S_BLKSIZE = 0x200
|
||||||
|
S_IEXEC = 0x40
|
||||||
|
S_IFBLK = 0x6000
|
||||||
|
S_IFCHR = 0x2000
|
||||||
|
S_IFDIR = 0x4000
|
||||||
|
S_IFIFO = 0x1000
|
||||||
|
S_IFLNK = 0xa000
|
||||||
|
S_IFMT = 0xf000
|
||||||
|
S_IFREG = 0x8000
|
||||||
|
S_IFSOCK = 0xc000
|
||||||
|
S_IFWHT = 0xe000
|
||||||
|
S_IREAD = 0x100
|
||||||
|
S_IRGRP = 0x20
|
||||||
|
S_IROTH = 0x4
|
||||||
|
S_IRUSR = 0x100
|
||||||
|
S_IRWXG = 0x38
|
||||||
|
S_IRWXO = 0x7
|
||||||
|
S_IRWXU = 0x1c0
|
||||||
|
S_ISGID = 0x400
|
||||||
|
S_ISTXT = 0x200
|
||||||
|
S_ISUID = 0x800
|
||||||
|
S_ISVTX = 0x200
|
||||||
|
S_IWGRP = 0x10
|
||||||
|
S_IWOTH = 0x2
|
||||||
|
S_IWRITE = 0x80
|
||||||
|
S_IWUSR = 0x80
|
||||||
|
S_IXGRP = 0x8
|
||||||
|
S_IXOTH = 0x1
|
||||||
|
S_IXUSR = 0x40
|
||||||
TAB0 = 0x0
|
TAB0 = 0x0
|
||||||
TAB3 = 0x4
|
TAB3 = 0x4
|
||||||
TABDLY = 0x4
|
TABDLY = 0x4
|
||||||
|
|
17
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
17
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
|
@ -499,6 +499,8 @@ const (
|
||||||
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
FS_ENCRYPTION_MODE_INVALID = 0x0
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
|
||||||
FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
|
||||||
FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
|
||||||
|
@ -636,7 +638,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0x9
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -763,6 +765,7 @@ const (
|
||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_FREEBIND = 0x4e
|
||||||
IPV6_HDRINCL = 0x24
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
|
@ -956,6 +959,7 @@ const (
|
||||||
MAP_EXECUTABLE = 0x1000
|
MAP_EXECUTABLE = 0x1000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_FIXED_NOREPLACE = 0x100000
|
||||||
MAP_GROWSDOWN = 0x100
|
MAP_GROWSDOWN = 0x100
|
||||||
MAP_HUGETLB = 0x40000
|
MAP_HUGETLB = 0x40000
|
||||||
MAP_HUGE_MASK = 0x3f
|
MAP_HUGE_MASK = 0x3f
|
||||||
|
@ -966,7 +970,9 @@ const (
|
||||||
MAP_POPULATE = 0x8000
|
MAP_POPULATE = 0x8000
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
|
MAP_SYNC = 0x80000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
|
@ -1474,7 +1480,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1a
|
RTA_MAX = 0x1d
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1610,17 +1616,22 @@ const (
|
||||||
RTNH_F_UNRESOLVED = 0x20
|
RTNH_F_UNRESOLVED = 0x20
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
RTPROT_BABEL = 0x2a
|
RTPROT_BABEL = 0x2a
|
||||||
|
RTPROT_BGP = 0xba
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
RTPROT_DNROUTED = 0xd
|
RTPROT_DNROUTED = 0xd
|
||||||
|
RTPROT_EIGRP = 0xc0
|
||||||
RTPROT_GATED = 0x8
|
RTPROT_GATED = 0x8
|
||||||
|
RTPROT_ISIS = 0xbb
|
||||||
RTPROT_KERNEL = 0x2
|
RTPROT_KERNEL = 0x2
|
||||||
RTPROT_MROUTED = 0x11
|
RTPROT_MROUTED = 0x11
|
||||||
RTPROT_MRT = 0xa
|
RTPROT_MRT = 0xa
|
||||||
RTPROT_NTK = 0xf
|
RTPROT_NTK = 0xf
|
||||||
|
RTPROT_OSPF = 0xbc
|
||||||
RTPROT_RA = 0x9
|
RTPROT_RA = 0x9
|
||||||
RTPROT_REDIRECT = 0x1
|
RTPROT_REDIRECT = 0x1
|
||||||
|
RTPROT_RIP = 0xbd
|
||||||
RTPROT_STATIC = 0x4
|
RTPROT_STATIC = 0x4
|
||||||
RTPROT_UNSPEC = 0x0
|
RTPROT_UNSPEC = 0x0
|
||||||
RTPROT_XORP = 0xe
|
RTPROT_XORP = 0xe
|
||||||
|
@ -1943,6 +1954,8 @@ const (
|
||||||
TCP_DEFER_ACCEPT = 0x9
|
TCP_DEFER_ACCEPT = 0x9
|
||||||
TCP_FASTOPEN = 0x17
|
TCP_FASTOPEN = 0x17
|
||||||
TCP_FASTOPEN_CONNECT = 0x1e
|
TCP_FASTOPEN_CONNECT = 0x1e
|
||||||
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
|
|
17
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
17
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
|
@ -499,6 +499,8 @@ const (
|
||||||
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
FS_ENCRYPTION_MODE_INVALID = 0x0
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
|
||||||
FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
|
||||||
FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
|
||||||
|
@ -636,7 +638,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0x9
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -763,6 +765,7 @@ const (
|
||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_FREEBIND = 0x4e
|
||||||
IPV6_HDRINCL = 0x24
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
|
@ -956,6 +959,7 @@ const (
|
||||||
MAP_EXECUTABLE = 0x1000
|
MAP_EXECUTABLE = 0x1000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_FIXED_NOREPLACE = 0x100000
|
||||||
MAP_GROWSDOWN = 0x100
|
MAP_GROWSDOWN = 0x100
|
||||||
MAP_HUGETLB = 0x40000
|
MAP_HUGETLB = 0x40000
|
||||||
MAP_HUGE_MASK = 0x3f
|
MAP_HUGE_MASK = 0x3f
|
||||||
|
@ -966,7 +970,9 @@ const (
|
||||||
MAP_POPULATE = 0x8000
|
MAP_POPULATE = 0x8000
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
|
MAP_SYNC = 0x80000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
|
@ -1475,7 +1481,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1a
|
RTA_MAX = 0x1d
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1611,17 +1617,22 @@ const (
|
||||||
RTNH_F_UNRESOLVED = 0x20
|
RTNH_F_UNRESOLVED = 0x20
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
RTPROT_BABEL = 0x2a
|
RTPROT_BABEL = 0x2a
|
||||||
|
RTPROT_BGP = 0xba
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
RTPROT_DNROUTED = 0xd
|
RTPROT_DNROUTED = 0xd
|
||||||
|
RTPROT_EIGRP = 0xc0
|
||||||
RTPROT_GATED = 0x8
|
RTPROT_GATED = 0x8
|
||||||
|
RTPROT_ISIS = 0xbb
|
||||||
RTPROT_KERNEL = 0x2
|
RTPROT_KERNEL = 0x2
|
||||||
RTPROT_MROUTED = 0x11
|
RTPROT_MROUTED = 0x11
|
||||||
RTPROT_MRT = 0xa
|
RTPROT_MRT = 0xa
|
||||||
RTPROT_NTK = 0xf
|
RTPROT_NTK = 0xf
|
||||||
|
RTPROT_OSPF = 0xbc
|
||||||
RTPROT_RA = 0x9
|
RTPROT_RA = 0x9
|
||||||
RTPROT_REDIRECT = 0x1
|
RTPROT_REDIRECT = 0x1
|
||||||
|
RTPROT_RIP = 0xbd
|
||||||
RTPROT_STATIC = 0x4
|
RTPROT_STATIC = 0x4
|
||||||
RTPROT_UNSPEC = 0x0
|
RTPROT_UNSPEC = 0x0
|
||||||
RTPROT_XORP = 0xe
|
RTPROT_XORP = 0xe
|
||||||
|
@ -1944,6 +1955,8 @@ const (
|
||||||
TCP_DEFER_ACCEPT = 0x9
|
TCP_DEFER_ACCEPT = 0x9
|
||||||
TCP_FASTOPEN = 0x17
|
TCP_FASTOPEN = 0x17
|
||||||
TCP_FASTOPEN_CONNECT = 0x1e
|
TCP_FASTOPEN_CONNECT = 0x1e
|
||||||
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
|
|
17
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
17
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
|
@ -498,6 +498,8 @@ const (
|
||||||
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
FS_ENCRYPTION_MODE_INVALID = 0x0
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
|
||||||
FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
|
||||||
FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
|
||||||
|
@ -635,7 +637,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0x9
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -762,6 +764,7 @@ const (
|
||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_FREEBIND = 0x4e
|
||||||
IPV6_HDRINCL = 0x24
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
|
@ -954,6 +957,7 @@ const (
|
||||||
MAP_EXECUTABLE = 0x1000
|
MAP_EXECUTABLE = 0x1000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_FIXED_NOREPLACE = 0x100000
|
||||||
MAP_GROWSDOWN = 0x100
|
MAP_GROWSDOWN = 0x100
|
||||||
MAP_HUGETLB = 0x40000
|
MAP_HUGETLB = 0x40000
|
||||||
MAP_HUGE_MASK = 0x3f
|
MAP_HUGE_MASK = 0x3f
|
||||||
|
@ -964,7 +968,9 @@ const (
|
||||||
MAP_POPULATE = 0x8000
|
MAP_POPULATE = 0x8000
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
|
MAP_SYNC = 0x80000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
|
@ -1481,7 +1487,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1a
|
RTA_MAX = 0x1d
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1617,17 +1623,22 @@ const (
|
||||||
RTNH_F_UNRESOLVED = 0x20
|
RTNH_F_UNRESOLVED = 0x20
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
RTPROT_BABEL = 0x2a
|
RTPROT_BABEL = 0x2a
|
||||||
|
RTPROT_BGP = 0xba
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
RTPROT_DNROUTED = 0xd
|
RTPROT_DNROUTED = 0xd
|
||||||
|
RTPROT_EIGRP = 0xc0
|
||||||
RTPROT_GATED = 0x8
|
RTPROT_GATED = 0x8
|
||||||
|
RTPROT_ISIS = 0xbb
|
||||||
RTPROT_KERNEL = 0x2
|
RTPROT_KERNEL = 0x2
|
||||||
RTPROT_MROUTED = 0x11
|
RTPROT_MROUTED = 0x11
|
||||||
RTPROT_MRT = 0xa
|
RTPROT_MRT = 0xa
|
||||||
RTPROT_NTK = 0xf
|
RTPROT_NTK = 0xf
|
||||||
|
RTPROT_OSPF = 0xbc
|
||||||
RTPROT_RA = 0x9
|
RTPROT_RA = 0x9
|
||||||
RTPROT_REDIRECT = 0x1
|
RTPROT_REDIRECT = 0x1
|
||||||
|
RTPROT_RIP = 0xbd
|
||||||
RTPROT_STATIC = 0x4
|
RTPROT_STATIC = 0x4
|
||||||
RTPROT_UNSPEC = 0x0
|
RTPROT_UNSPEC = 0x0
|
||||||
RTPROT_XORP = 0xe
|
RTPROT_XORP = 0xe
|
||||||
|
@ -1950,6 +1961,8 @@ const (
|
||||||
TCP_DEFER_ACCEPT = 0x9
|
TCP_DEFER_ACCEPT = 0x9
|
||||||
TCP_FASTOPEN = 0x17
|
TCP_FASTOPEN = 0x17
|
||||||
TCP_FASTOPEN_CONNECT = 0x1e
|
TCP_FASTOPEN_CONNECT = 0x1e
|
||||||
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
|
|
17
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
17
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
|
@ -501,6 +501,8 @@ const (
|
||||||
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
FS_ENCRYPTION_MODE_INVALID = 0x0
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
|
||||||
FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
|
||||||
FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
|
||||||
|
@ -638,7 +640,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0x9
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -765,6 +767,7 @@ const (
|
||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_FREEBIND = 0x4e
|
||||||
IPV6_HDRINCL = 0x24
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
|
@ -957,6 +960,7 @@ const (
|
||||||
MAP_EXECUTABLE = 0x1000
|
MAP_EXECUTABLE = 0x1000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_FIXED_NOREPLACE = 0x100000
|
||||||
MAP_GROWSDOWN = 0x100
|
MAP_GROWSDOWN = 0x100
|
||||||
MAP_HUGETLB = 0x40000
|
MAP_HUGETLB = 0x40000
|
||||||
MAP_HUGE_MASK = 0x3f
|
MAP_HUGE_MASK = 0x3f
|
||||||
|
@ -967,7 +971,9 @@ const (
|
||||||
MAP_POPULATE = 0x8000
|
MAP_POPULATE = 0x8000
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
|
MAP_SYNC = 0x80000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
|
@ -1465,7 +1471,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1a
|
RTA_MAX = 0x1d
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1601,17 +1607,22 @@ const (
|
||||||
RTNH_F_UNRESOLVED = 0x20
|
RTNH_F_UNRESOLVED = 0x20
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
RTPROT_BABEL = 0x2a
|
RTPROT_BABEL = 0x2a
|
||||||
|
RTPROT_BGP = 0xba
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
RTPROT_DNROUTED = 0xd
|
RTPROT_DNROUTED = 0xd
|
||||||
|
RTPROT_EIGRP = 0xc0
|
||||||
RTPROT_GATED = 0x8
|
RTPROT_GATED = 0x8
|
||||||
|
RTPROT_ISIS = 0xbb
|
||||||
RTPROT_KERNEL = 0x2
|
RTPROT_KERNEL = 0x2
|
||||||
RTPROT_MROUTED = 0x11
|
RTPROT_MROUTED = 0x11
|
||||||
RTPROT_MRT = 0xa
|
RTPROT_MRT = 0xa
|
||||||
RTPROT_NTK = 0xf
|
RTPROT_NTK = 0xf
|
||||||
|
RTPROT_OSPF = 0xbc
|
||||||
RTPROT_RA = 0x9
|
RTPROT_RA = 0x9
|
||||||
RTPROT_REDIRECT = 0x1
|
RTPROT_REDIRECT = 0x1
|
||||||
|
RTPROT_RIP = 0xbd
|
||||||
RTPROT_STATIC = 0x4
|
RTPROT_STATIC = 0x4
|
||||||
RTPROT_UNSPEC = 0x0
|
RTPROT_UNSPEC = 0x0
|
||||||
RTPROT_XORP = 0xe
|
RTPROT_XORP = 0xe
|
||||||
|
@ -1935,6 +1946,8 @@ const (
|
||||||
TCP_DEFER_ACCEPT = 0x9
|
TCP_DEFER_ACCEPT = 0x9
|
||||||
TCP_FASTOPEN = 0x17
|
TCP_FASTOPEN = 0x17
|
||||||
TCP_FASTOPEN_CONNECT = 0x1e
|
TCP_FASTOPEN_CONNECT = 0x1e
|
||||||
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
|
|
16
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
16
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
|
@ -498,6 +498,8 @@ const (
|
||||||
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
FS_ENCRYPTION_MODE_INVALID = 0x0
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
||||||
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
||||||
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
||||||
|
@ -635,7 +637,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0x9
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -762,6 +764,7 @@ const (
|
||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_FREEBIND = 0x4e
|
||||||
IPV6_HDRINCL = 0x24
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
|
@ -954,6 +957,7 @@ const (
|
||||||
MAP_EXECUTABLE = 0x4000
|
MAP_EXECUTABLE = 0x4000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_FIXED_NOREPLACE = 0x100000
|
||||||
MAP_GROWSDOWN = 0x1000
|
MAP_GROWSDOWN = 0x1000
|
||||||
MAP_HUGETLB = 0x80000
|
MAP_HUGETLB = 0x80000
|
||||||
MAP_HUGE_MASK = 0x3f
|
MAP_HUGE_MASK = 0x3f
|
||||||
|
@ -965,6 +969,7 @@ const (
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_RENAME = 0x800
|
MAP_RENAME = 0x800
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x40000
|
MAP_STACK = 0x40000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
|
@ -1475,7 +1480,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1a
|
RTA_MAX = 0x1d
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1611,17 +1616,22 @@ const (
|
||||||
RTNH_F_UNRESOLVED = 0x20
|
RTNH_F_UNRESOLVED = 0x20
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
RTPROT_BABEL = 0x2a
|
RTPROT_BABEL = 0x2a
|
||||||
|
RTPROT_BGP = 0xba
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
RTPROT_DNROUTED = 0xd
|
RTPROT_DNROUTED = 0xd
|
||||||
|
RTPROT_EIGRP = 0xc0
|
||||||
RTPROT_GATED = 0x8
|
RTPROT_GATED = 0x8
|
||||||
|
RTPROT_ISIS = 0xbb
|
||||||
RTPROT_KERNEL = 0x2
|
RTPROT_KERNEL = 0x2
|
||||||
RTPROT_MROUTED = 0x11
|
RTPROT_MROUTED = 0x11
|
||||||
RTPROT_MRT = 0xa
|
RTPROT_MRT = 0xa
|
||||||
RTPROT_NTK = 0xf
|
RTPROT_NTK = 0xf
|
||||||
|
RTPROT_OSPF = 0xbc
|
||||||
RTPROT_RA = 0x9
|
RTPROT_RA = 0x9
|
||||||
RTPROT_REDIRECT = 0x1
|
RTPROT_REDIRECT = 0x1
|
||||||
|
RTPROT_RIP = 0xbd
|
||||||
RTPROT_STATIC = 0x4
|
RTPROT_STATIC = 0x4
|
||||||
RTPROT_UNSPEC = 0x0
|
RTPROT_UNSPEC = 0x0
|
||||||
RTPROT_XORP = 0xe
|
RTPROT_XORP = 0xe
|
||||||
|
@ -1944,6 +1954,8 @@ const (
|
||||||
TCP_DEFER_ACCEPT = 0x9
|
TCP_DEFER_ACCEPT = 0x9
|
||||||
TCP_FASTOPEN = 0x17
|
TCP_FASTOPEN = 0x17
|
||||||
TCP_FASTOPEN_CONNECT = 0x1e
|
TCP_FASTOPEN_CONNECT = 0x1e
|
||||||
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
|
|
16
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
16
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
|
@ -498,6 +498,8 @@ const (
|
||||||
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
FS_ENCRYPTION_MODE_INVALID = 0x0
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
||||||
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
||||||
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
||||||
|
@ -635,7 +637,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0x9
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -762,6 +764,7 @@ const (
|
||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_FREEBIND = 0x4e
|
||||||
IPV6_HDRINCL = 0x24
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
|
@ -954,6 +957,7 @@ const (
|
||||||
MAP_EXECUTABLE = 0x4000
|
MAP_EXECUTABLE = 0x4000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_FIXED_NOREPLACE = 0x100000
|
||||||
MAP_GROWSDOWN = 0x1000
|
MAP_GROWSDOWN = 0x1000
|
||||||
MAP_HUGETLB = 0x80000
|
MAP_HUGETLB = 0x80000
|
||||||
MAP_HUGE_MASK = 0x3f
|
MAP_HUGE_MASK = 0x3f
|
||||||
|
@ -965,6 +969,7 @@ const (
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_RENAME = 0x800
|
MAP_RENAME = 0x800
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x40000
|
MAP_STACK = 0x40000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
|
@ -1475,7 +1480,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1a
|
RTA_MAX = 0x1d
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1611,17 +1616,22 @@ const (
|
||||||
RTNH_F_UNRESOLVED = 0x20
|
RTNH_F_UNRESOLVED = 0x20
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
RTPROT_BABEL = 0x2a
|
RTPROT_BABEL = 0x2a
|
||||||
|
RTPROT_BGP = 0xba
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
RTPROT_DNROUTED = 0xd
|
RTPROT_DNROUTED = 0xd
|
||||||
|
RTPROT_EIGRP = 0xc0
|
||||||
RTPROT_GATED = 0x8
|
RTPROT_GATED = 0x8
|
||||||
|
RTPROT_ISIS = 0xbb
|
||||||
RTPROT_KERNEL = 0x2
|
RTPROT_KERNEL = 0x2
|
||||||
RTPROT_MROUTED = 0x11
|
RTPROT_MROUTED = 0x11
|
||||||
RTPROT_MRT = 0xa
|
RTPROT_MRT = 0xa
|
||||||
RTPROT_NTK = 0xf
|
RTPROT_NTK = 0xf
|
||||||
|
RTPROT_OSPF = 0xbc
|
||||||
RTPROT_RA = 0x9
|
RTPROT_RA = 0x9
|
||||||
RTPROT_REDIRECT = 0x1
|
RTPROT_REDIRECT = 0x1
|
||||||
|
RTPROT_RIP = 0xbd
|
||||||
RTPROT_STATIC = 0x4
|
RTPROT_STATIC = 0x4
|
||||||
RTPROT_UNSPEC = 0x0
|
RTPROT_UNSPEC = 0x0
|
||||||
RTPROT_XORP = 0xe
|
RTPROT_XORP = 0xe
|
||||||
|
@ -1944,6 +1954,8 @@ const (
|
||||||
TCP_DEFER_ACCEPT = 0x9
|
TCP_DEFER_ACCEPT = 0x9
|
||||||
TCP_FASTOPEN = 0x17
|
TCP_FASTOPEN = 0x17
|
||||||
TCP_FASTOPEN_CONNECT = 0x1e
|
TCP_FASTOPEN_CONNECT = 0x1e
|
||||||
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
|
|
16
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
16
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
|
@ -498,6 +498,8 @@ const (
|
||||||
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
FS_ENCRYPTION_MODE_INVALID = 0x0
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
||||||
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
||||||
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
||||||
|
@ -635,7 +637,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0x9
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -762,6 +764,7 @@ const (
|
||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_FREEBIND = 0x4e
|
||||||
IPV6_HDRINCL = 0x24
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
|
@ -954,6 +957,7 @@ const (
|
||||||
MAP_EXECUTABLE = 0x4000
|
MAP_EXECUTABLE = 0x4000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_FIXED_NOREPLACE = 0x100000
|
||||||
MAP_GROWSDOWN = 0x1000
|
MAP_GROWSDOWN = 0x1000
|
||||||
MAP_HUGETLB = 0x80000
|
MAP_HUGETLB = 0x80000
|
||||||
MAP_HUGE_MASK = 0x3f
|
MAP_HUGE_MASK = 0x3f
|
||||||
|
@ -965,6 +969,7 @@ const (
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_RENAME = 0x800
|
MAP_RENAME = 0x800
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x40000
|
MAP_STACK = 0x40000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
|
@ -1475,7 +1480,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1a
|
RTA_MAX = 0x1d
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1611,17 +1616,22 @@ const (
|
||||||
RTNH_F_UNRESOLVED = 0x20
|
RTNH_F_UNRESOLVED = 0x20
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
RTPROT_BABEL = 0x2a
|
RTPROT_BABEL = 0x2a
|
||||||
|
RTPROT_BGP = 0xba
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
RTPROT_DNROUTED = 0xd
|
RTPROT_DNROUTED = 0xd
|
||||||
|
RTPROT_EIGRP = 0xc0
|
||||||
RTPROT_GATED = 0x8
|
RTPROT_GATED = 0x8
|
||||||
|
RTPROT_ISIS = 0xbb
|
||||||
RTPROT_KERNEL = 0x2
|
RTPROT_KERNEL = 0x2
|
||||||
RTPROT_MROUTED = 0x11
|
RTPROT_MROUTED = 0x11
|
||||||
RTPROT_MRT = 0xa
|
RTPROT_MRT = 0xa
|
||||||
RTPROT_NTK = 0xf
|
RTPROT_NTK = 0xf
|
||||||
|
RTPROT_OSPF = 0xbc
|
||||||
RTPROT_RA = 0x9
|
RTPROT_RA = 0x9
|
||||||
RTPROT_REDIRECT = 0x1
|
RTPROT_REDIRECT = 0x1
|
||||||
|
RTPROT_RIP = 0xbd
|
||||||
RTPROT_STATIC = 0x4
|
RTPROT_STATIC = 0x4
|
||||||
RTPROT_UNSPEC = 0x0
|
RTPROT_UNSPEC = 0x0
|
||||||
RTPROT_XORP = 0xe
|
RTPROT_XORP = 0xe
|
||||||
|
@ -1944,6 +1954,8 @@ const (
|
||||||
TCP_DEFER_ACCEPT = 0x9
|
TCP_DEFER_ACCEPT = 0x9
|
||||||
TCP_FASTOPEN = 0x17
|
TCP_FASTOPEN = 0x17
|
||||||
TCP_FASTOPEN_CONNECT = 0x1e
|
TCP_FASTOPEN_CONNECT = 0x1e
|
||||||
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
|
|
16
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
16
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
|
@ -498,6 +498,8 @@ const (
|
||||||
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
FS_ENCRYPTION_MODE_INVALID = 0x0
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
||||||
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
||||||
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
||||||
|
@ -635,7 +637,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0x9
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -762,6 +764,7 @@ const (
|
||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_FREEBIND = 0x4e
|
||||||
IPV6_HDRINCL = 0x24
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
|
@ -954,6 +957,7 @@ const (
|
||||||
MAP_EXECUTABLE = 0x4000
|
MAP_EXECUTABLE = 0x4000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_FIXED_NOREPLACE = 0x100000
|
||||||
MAP_GROWSDOWN = 0x1000
|
MAP_GROWSDOWN = 0x1000
|
||||||
MAP_HUGETLB = 0x80000
|
MAP_HUGETLB = 0x80000
|
||||||
MAP_HUGE_MASK = 0x3f
|
MAP_HUGE_MASK = 0x3f
|
||||||
|
@ -965,6 +969,7 @@ const (
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_RENAME = 0x800
|
MAP_RENAME = 0x800
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x40000
|
MAP_STACK = 0x40000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
|
@ -1475,7 +1480,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1a
|
RTA_MAX = 0x1d
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1611,17 +1616,22 @@ const (
|
||||||
RTNH_F_UNRESOLVED = 0x20
|
RTNH_F_UNRESOLVED = 0x20
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
RTPROT_BABEL = 0x2a
|
RTPROT_BABEL = 0x2a
|
||||||
|
RTPROT_BGP = 0xba
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
RTPROT_DNROUTED = 0xd
|
RTPROT_DNROUTED = 0xd
|
||||||
|
RTPROT_EIGRP = 0xc0
|
||||||
RTPROT_GATED = 0x8
|
RTPROT_GATED = 0x8
|
||||||
|
RTPROT_ISIS = 0xbb
|
||||||
RTPROT_KERNEL = 0x2
|
RTPROT_KERNEL = 0x2
|
||||||
RTPROT_MROUTED = 0x11
|
RTPROT_MROUTED = 0x11
|
||||||
RTPROT_MRT = 0xa
|
RTPROT_MRT = 0xa
|
||||||
RTPROT_NTK = 0xf
|
RTPROT_NTK = 0xf
|
||||||
|
RTPROT_OSPF = 0xbc
|
||||||
RTPROT_RA = 0x9
|
RTPROT_RA = 0x9
|
||||||
RTPROT_REDIRECT = 0x1
|
RTPROT_REDIRECT = 0x1
|
||||||
|
RTPROT_RIP = 0xbd
|
||||||
RTPROT_STATIC = 0x4
|
RTPROT_STATIC = 0x4
|
||||||
RTPROT_UNSPEC = 0x0
|
RTPROT_UNSPEC = 0x0
|
||||||
RTPROT_XORP = 0xe
|
RTPROT_XORP = 0xe
|
||||||
|
@ -1944,6 +1954,8 @@ const (
|
||||||
TCP_DEFER_ACCEPT = 0x9
|
TCP_DEFER_ACCEPT = 0x9
|
||||||
TCP_FASTOPEN = 0x17
|
TCP_FASTOPEN = 0x17
|
||||||
TCP_FASTOPEN_CONNECT = 0x1e
|
TCP_FASTOPEN_CONNECT = 0x1e
|
||||||
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
|
|
16
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
16
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
|
@ -498,6 +498,8 @@ const (
|
||||||
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
FS_ENCRYPTION_MODE_INVALID = 0x0
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
||||||
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
||||||
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
||||||
|
@ -635,7 +637,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0x9
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -762,6 +764,7 @@ const (
|
||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_FREEBIND = 0x4e
|
||||||
IPV6_HDRINCL = 0x24
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
|
@ -954,6 +957,7 @@ const (
|
||||||
MAP_EXECUTABLE = 0x1000
|
MAP_EXECUTABLE = 0x1000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_FIXED_NOREPLACE = 0x100000
|
||||||
MAP_GROWSDOWN = 0x100
|
MAP_GROWSDOWN = 0x100
|
||||||
MAP_HUGETLB = 0x40000
|
MAP_HUGETLB = 0x40000
|
||||||
MAP_HUGE_MASK = 0x3f
|
MAP_HUGE_MASK = 0x3f
|
||||||
|
@ -964,6 +968,7 @@ const (
|
||||||
MAP_POPULATE = 0x8000
|
MAP_POPULATE = 0x8000
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
MCL_CURRENT = 0x2000
|
MCL_CURRENT = 0x2000
|
||||||
|
@ -1531,7 +1536,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1a
|
RTA_MAX = 0x1d
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1667,17 +1672,22 @@ const (
|
||||||
RTNH_F_UNRESOLVED = 0x20
|
RTNH_F_UNRESOLVED = 0x20
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
RTPROT_BABEL = 0x2a
|
RTPROT_BABEL = 0x2a
|
||||||
|
RTPROT_BGP = 0xba
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
RTPROT_DNROUTED = 0xd
|
RTPROT_DNROUTED = 0xd
|
||||||
|
RTPROT_EIGRP = 0xc0
|
||||||
RTPROT_GATED = 0x8
|
RTPROT_GATED = 0x8
|
||||||
|
RTPROT_ISIS = 0xbb
|
||||||
RTPROT_KERNEL = 0x2
|
RTPROT_KERNEL = 0x2
|
||||||
RTPROT_MROUTED = 0x11
|
RTPROT_MROUTED = 0x11
|
||||||
RTPROT_MRT = 0xa
|
RTPROT_MRT = 0xa
|
||||||
RTPROT_NTK = 0xf
|
RTPROT_NTK = 0xf
|
||||||
|
RTPROT_OSPF = 0xbc
|
||||||
RTPROT_RA = 0x9
|
RTPROT_RA = 0x9
|
||||||
RTPROT_REDIRECT = 0x1
|
RTPROT_REDIRECT = 0x1
|
||||||
|
RTPROT_RIP = 0xbd
|
||||||
RTPROT_STATIC = 0x4
|
RTPROT_STATIC = 0x4
|
||||||
RTPROT_UNSPEC = 0x0
|
RTPROT_UNSPEC = 0x0
|
||||||
RTPROT_XORP = 0xe
|
RTPROT_XORP = 0xe
|
||||||
|
@ -1998,6 +2008,8 @@ const (
|
||||||
TCP_DEFER_ACCEPT = 0x9
|
TCP_DEFER_ACCEPT = 0x9
|
||||||
TCP_FASTOPEN = 0x17
|
TCP_FASTOPEN = 0x17
|
||||||
TCP_FASTOPEN_CONNECT = 0x1e
|
TCP_FASTOPEN_CONNECT = 0x1e
|
||||||
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
|
|
16
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
16
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
|
@ -498,6 +498,8 @@ const (
|
||||||
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
FS_ENCRYPTION_MODE_INVALID = 0x0
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x800c6615
|
||||||
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x80106614
|
||||||
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x400c6613
|
||||||
|
@ -635,7 +637,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0x9
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -762,6 +764,7 @@ const (
|
||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_FREEBIND = 0x4e
|
||||||
IPV6_HDRINCL = 0x24
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
|
@ -954,6 +957,7 @@ const (
|
||||||
MAP_EXECUTABLE = 0x1000
|
MAP_EXECUTABLE = 0x1000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_FIXED_NOREPLACE = 0x100000
|
||||||
MAP_GROWSDOWN = 0x100
|
MAP_GROWSDOWN = 0x100
|
||||||
MAP_HUGETLB = 0x40000
|
MAP_HUGETLB = 0x40000
|
||||||
MAP_HUGE_MASK = 0x3f
|
MAP_HUGE_MASK = 0x3f
|
||||||
|
@ -964,6 +968,7 @@ const (
|
||||||
MAP_POPULATE = 0x8000
|
MAP_POPULATE = 0x8000
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
MCL_CURRENT = 0x2000
|
MCL_CURRENT = 0x2000
|
||||||
|
@ -1531,7 +1536,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1a
|
RTA_MAX = 0x1d
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1667,17 +1672,22 @@ const (
|
||||||
RTNH_F_UNRESOLVED = 0x20
|
RTNH_F_UNRESOLVED = 0x20
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
RTPROT_BABEL = 0x2a
|
RTPROT_BABEL = 0x2a
|
||||||
|
RTPROT_BGP = 0xba
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
RTPROT_DNROUTED = 0xd
|
RTPROT_DNROUTED = 0xd
|
||||||
|
RTPROT_EIGRP = 0xc0
|
||||||
RTPROT_GATED = 0x8
|
RTPROT_GATED = 0x8
|
||||||
|
RTPROT_ISIS = 0xbb
|
||||||
RTPROT_KERNEL = 0x2
|
RTPROT_KERNEL = 0x2
|
||||||
RTPROT_MROUTED = 0x11
|
RTPROT_MROUTED = 0x11
|
||||||
RTPROT_MRT = 0xa
|
RTPROT_MRT = 0xa
|
||||||
RTPROT_NTK = 0xf
|
RTPROT_NTK = 0xf
|
||||||
|
RTPROT_OSPF = 0xbc
|
||||||
RTPROT_RA = 0x9
|
RTPROT_RA = 0x9
|
||||||
RTPROT_REDIRECT = 0x1
|
RTPROT_REDIRECT = 0x1
|
||||||
|
RTPROT_RIP = 0xbd
|
||||||
RTPROT_STATIC = 0x4
|
RTPROT_STATIC = 0x4
|
||||||
RTPROT_UNSPEC = 0x0
|
RTPROT_UNSPEC = 0x0
|
||||||
RTPROT_XORP = 0xe
|
RTPROT_XORP = 0xe
|
||||||
|
@ -1998,6 +2008,8 @@ const (
|
||||||
TCP_DEFER_ACCEPT = 0x9
|
TCP_DEFER_ACCEPT = 0x9
|
||||||
TCP_FASTOPEN = 0x17
|
TCP_FASTOPEN = 0x17
|
||||||
TCP_FASTOPEN_CONNECT = 0x1e
|
TCP_FASTOPEN_CONNECT = 0x1e
|
||||||
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
|
|
17
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
17
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
|
@ -498,6 +498,8 @@ const (
|
||||||
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
FS_ENCRYPTION_MODE_AES_256_GCM = 0x2
|
||||||
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
FS_ENCRYPTION_MODE_AES_256_XTS = 0x1
|
||||||
FS_ENCRYPTION_MODE_INVALID = 0x0
|
FS_ENCRYPTION_MODE_INVALID = 0x0
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_CTS = 0x8
|
||||||
|
FS_ENCRYPTION_MODE_SPECK128_256_XTS = 0x7
|
||||||
FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
|
FS_IOC_GET_ENCRYPTION_POLICY = 0x400c6615
|
||||||
FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
|
FS_IOC_GET_ENCRYPTION_PWSALT = 0x40106614
|
||||||
FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
|
FS_IOC_SET_ENCRYPTION_POLICY = 0x800c6613
|
||||||
|
@ -635,7 +637,7 @@ const (
|
||||||
IFA_F_STABLE_PRIVACY = 0x800
|
IFA_F_STABLE_PRIVACY = 0x800
|
||||||
IFA_F_TEMPORARY = 0x1
|
IFA_F_TEMPORARY = 0x1
|
||||||
IFA_F_TENTATIVE = 0x40
|
IFA_F_TENTATIVE = 0x40
|
||||||
IFA_MAX = 0x8
|
IFA_MAX = 0x9
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ATTACH_QUEUE = 0x200
|
IFF_ATTACH_QUEUE = 0x200
|
||||||
IFF_AUTOMEDIA = 0x4000
|
IFF_AUTOMEDIA = 0x4000
|
||||||
|
@ -762,6 +764,7 @@ const (
|
||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DROP_MEMBERSHIP = 0x15
|
IPV6_DROP_MEMBERSHIP = 0x15
|
||||||
IPV6_DSTOPTS = 0x3b
|
IPV6_DSTOPTS = 0x3b
|
||||||
|
IPV6_FREEBIND = 0x4e
|
||||||
IPV6_HDRINCL = 0x24
|
IPV6_HDRINCL = 0x24
|
||||||
IPV6_HOPLIMIT = 0x34
|
IPV6_HOPLIMIT = 0x34
|
||||||
IPV6_HOPOPTS = 0x36
|
IPV6_HOPOPTS = 0x36
|
||||||
|
@ -954,6 +957,7 @@ const (
|
||||||
MAP_EXECUTABLE = 0x1000
|
MAP_EXECUTABLE = 0x1000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_FIXED_NOREPLACE = 0x100000
|
||||||
MAP_GROWSDOWN = 0x100
|
MAP_GROWSDOWN = 0x100
|
||||||
MAP_HUGETLB = 0x40000
|
MAP_HUGETLB = 0x40000
|
||||||
MAP_HUGE_MASK = 0x3f
|
MAP_HUGE_MASK = 0x3f
|
||||||
|
@ -964,7 +968,9 @@ const (
|
||||||
MAP_POPULATE = 0x8000
|
MAP_POPULATE = 0x8000
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
MAP_SHARED_VALIDATE = 0x3
|
||||||
MAP_STACK = 0x20000
|
MAP_STACK = 0x20000
|
||||||
|
MAP_SYNC = 0x80000
|
||||||
MAP_TYPE = 0xf
|
MAP_TYPE = 0xf
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
|
@ -1535,7 +1541,7 @@ const (
|
||||||
RTAX_UNSPEC = 0x0
|
RTAX_UNSPEC = 0x0
|
||||||
RTAX_WINDOW = 0x3
|
RTAX_WINDOW = 0x3
|
||||||
RTA_ALIGNTO = 0x4
|
RTA_ALIGNTO = 0x4
|
||||||
RTA_MAX = 0x1a
|
RTA_MAX = 0x1d
|
||||||
RTCF_DIRECTSRC = 0x4000000
|
RTCF_DIRECTSRC = 0x4000000
|
||||||
RTCF_DOREDIRECT = 0x1000000
|
RTCF_DOREDIRECT = 0x1000000
|
||||||
RTCF_LOG = 0x2000000
|
RTCF_LOG = 0x2000000
|
||||||
|
@ -1671,17 +1677,22 @@ const (
|
||||||
RTNH_F_UNRESOLVED = 0x20
|
RTNH_F_UNRESOLVED = 0x20
|
||||||
RTN_MAX = 0xb
|
RTN_MAX = 0xb
|
||||||
RTPROT_BABEL = 0x2a
|
RTPROT_BABEL = 0x2a
|
||||||
|
RTPROT_BGP = 0xba
|
||||||
RTPROT_BIRD = 0xc
|
RTPROT_BIRD = 0xc
|
||||||
RTPROT_BOOT = 0x3
|
RTPROT_BOOT = 0x3
|
||||||
RTPROT_DHCP = 0x10
|
RTPROT_DHCP = 0x10
|
||||||
RTPROT_DNROUTED = 0xd
|
RTPROT_DNROUTED = 0xd
|
||||||
|
RTPROT_EIGRP = 0xc0
|
||||||
RTPROT_GATED = 0x8
|
RTPROT_GATED = 0x8
|
||||||
|
RTPROT_ISIS = 0xbb
|
||||||
RTPROT_KERNEL = 0x2
|
RTPROT_KERNEL = 0x2
|
||||||
RTPROT_MROUTED = 0x11
|
RTPROT_MROUTED = 0x11
|
||||||
RTPROT_MRT = 0xa
|
RTPROT_MRT = 0xa
|
||||||
RTPROT_NTK = 0xf
|
RTPROT_NTK = 0xf
|
||||||
|
RTPROT_OSPF = 0xbc
|
||||||
RTPROT_RA = 0x9
|
RTPROT_RA = 0x9
|
||||||
RTPROT_REDIRECT = 0x1
|
RTPROT_REDIRECT = 0x1
|
||||||
|
RTPROT_RIP = 0xbd
|
||||||
RTPROT_STATIC = 0x4
|
RTPROT_STATIC = 0x4
|
||||||
RTPROT_UNSPEC = 0x0
|
RTPROT_UNSPEC = 0x0
|
||||||
RTPROT_XORP = 0xe
|
RTPROT_XORP = 0xe
|
||||||
|
@ -2004,6 +2015,8 @@ const (
|
||||||
TCP_DEFER_ACCEPT = 0x9
|
TCP_DEFER_ACCEPT = 0x9
|
||||||
TCP_FASTOPEN = 0x17
|
TCP_FASTOPEN = 0x17
|
||||||
TCP_FASTOPEN_CONNECT = 0x1e
|
TCP_FASTOPEN_CONNECT = 0x1e
|
||||||
|
TCP_FASTOPEN_KEY = 0x21
|
||||||
|
TCP_FASTOPEN_NO_COOKIE = 0x22
|
||||||
TCP_INFO = 0xb
|
TCP_INFO = 0xb
|
||||||
TCP_KEEPCNT = 0x6
|
TCP_KEEPCNT = 0x6
|
||||||
TCP_KEEPIDLE = 0x4
|
TCP_KEEPIDLE = 0x4
|
||||||
|
|
4
vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go
generated
vendored
|
@ -550,6 +550,10 @@ const (
|
||||||
EV_ONESHOT = 0x10
|
EV_ONESHOT = 0x10
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_SYSFLAGS = 0xf000
|
||||||
EXTA = 0x4b00
|
EXTA = 0x4b00
|
||||||
|
EXTATTR_CMD_START = 0x1
|
||||||
|
EXTATTR_CMD_STOP = 0x2
|
||||||
|
EXTATTR_NAMESPACE_SYSTEM = 0x2
|
||||||
|
EXTATTR_NAMESPACE_USER = 0x1
|
||||||
EXTB = 0x9600
|
EXTB = 0x9600
|
||||||
EXTPROC = 0x800
|
EXTPROC = 0x800
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
|
|
4
vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go
generated
vendored
|
@ -540,6 +540,10 @@ const (
|
||||||
EV_ONESHOT = 0x10
|
EV_ONESHOT = 0x10
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_SYSFLAGS = 0xf000
|
||||||
EXTA = 0x4b00
|
EXTA = 0x4b00
|
||||||
|
EXTATTR_CMD_START = 0x1
|
||||||
|
EXTATTR_CMD_STOP = 0x2
|
||||||
|
EXTATTR_NAMESPACE_SYSTEM = 0x2
|
||||||
|
EXTATTR_NAMESPACE_USER = 0x1
|
||||||
EXTB = 0x9600
|
EXTB = 0x9600
|
||||||
EXTPROC = 0x800
|
EXTPROC = 0x800
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
|
|
4
vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go
generated
vendored
4
vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go
generated
vendored
|
@ -532,6 +532,10 @@ const (
|
||||||
EV_ONESHOT = 0x10
|
EV_ONESHOT = 0x10
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_SYSFLAGS = 0xf000
|
||||||
EXTA = 0x4b00
|
EXTA = 0x4b00
|
||||||
|
EXTATTR_CMD_START = 0x1
|
||||||
|
EXTATTR_CMD_STOP = 0x2
|
||||||
|
EXTATTR_NAMESPACE_SYSTEM = 0x2
|
||||||
|
EXTATTR_NAMESPACE_USER = 0x1
|
||||||
EXTB = 0x9600
|
EXTB = 0x9600
|
||||||
EXTPROC = 0x800
|
EXTPROC = 0x800
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
|
|
28
vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
generated
vendored
28
vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go
generated
vendored
|
@ -1218,6 +1218,34 @@ const (
|
||||||
SO_TIMESTAMP = 0x800
|
SO_TIMESTAMP = 0x800
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
|
S_BLKSIZE = 0x200
|
||||||
|
S_IEXEC = 0x40
|
||||||
|
S_IFBLK = 0x6000
|
||||||
|
S_IFCHR = 0x2000
|
||||||
|
S_IFDIR = 0x4000
|
||||||
|
S_IFIFO = 0x1000
|
||||||
|
S_IFLNK = 0xa000
|
||||||
|
S_IFMT = 0xf000
|
||||||
|
S_IFREG = 0x8000
|
||||||
|
S_IFSOCK = 0xc000
|
||||||
|
S_IREAD = 0x100
|
||||||
|
S_IRGRP = 0x20
|
||||||
|
S_IROTH = 0x4
|
||||||
|
S_IRUSR = 0x100
|
||||||
|
S_IRWXG = 0x38
|
||||||
|
S_IRWXO = 0x7
|
||||||
|
S_IRWXU = 0x1c0
|
||||||
|
S_ISGID = 0x400
|
||||||
|
S_ISTXT = 0x200
|
||||||
|
S_ISUID = 0x800
|
||||||
|
S_ISVTX = 0x200
|
||||||
|
S_IWGRP = 0x10
|
||||||
|
S_IWOTH = 0x2
|
||||||
|
S_IWRITE = 0x80
|
||||||
|
S_IWUSR = 0x80
|
||||||
|
S_IXGRP = 0x8
|
||||||
|
S_IXOTH = 0x1
|
||||||
|
S_IXUSR = 0x40
|
||||||
TCIFLUSH = 0x1
|
TCIFLUSH = 0x1
|
||||||
TCIOFLUSH = 0x3
|
TCIOFLUSH = 0x3
|
||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
|
|
28
vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go
generated
vendored
28
vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go
generated
vendored
|
@ -1297,6 +1297,34 @@ const (
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
SO_ZEROIZE = 0x2000
|
SO_ZEROIZE = 0x2000
|
||||||
|
S_BLKSIZE = 0x200
|
||||||
|
S_IEXEC = 0x40
|
||||||
|
S_IFBLK = 0x6000
|
||||||
|
S_IFCHR = 0x2000
|
||||||
|
S_IFDIR = 0x4000
|
||||||
|
S_IFIFO = 0x1000
|
||||||
|
S_IFLNK = 0xa000
|
||||||
|
S_IFMT = 0xf000
|
||||||
|
S_IFREG = 0x8000
|
||||||
|
S_IFSOCK = 0xc000
|
||||||
|
S_IREAD = 0x100
|
||||||
|
S_IRGRP = 0x20
|
||||||
|
S_IROTH = 0x4
|
||||||
|
S_IRUSR = 0x100
|
||||||
|
S_IRWXG = 0x38
|
||||||
|
S_IRWXO = 0x7
|
||||||
|
S_IRWXU = 0x1c0
|
||||||
|
S_ISGID = 0x400
|
||||||
|
S_ISTXT = 0x200
|
||||||
|
S_ISUID = 0x800
|
||||||
|
S_ISVTX = 0x200
|
||||||
|
S_IWGRP = 0x10
|
||||||
|
S_IWOTH = 0x2
|
||||||
|
S_IWRITE = 0x80
|
||||||
|
S_IWUSR = 0x80
|
||||||
|
S_IXGRP = 0x8
|
||||||
|
S_IXOTH = 0x1
|
||||||
|
S_IXUSR = 0x40
|
||||||
TCIFLUSH = 0x1
|
TCIFLUSH = 0x1
|
||||||
TCIOFF = 0x3
|
TCIOFF = 0x3
|
||||||
TCIOFLUSH = 0x3
|
TCIOFLUSH = 0x3
|
||||||
|
|
28
vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go
generated
vendored
28
vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go
generated
vendored
|
@ -1221,6 +1221,34 @@ const (
|
||||||
SO_TIMESTAMP = 0x800
|
SO_TIMESTAMP = 0x800
|
||||||
SO_TYPE = 0x1008
|
SO_TYPE = 0x1008
|
||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
|
S_BLKSIZE = 0x200
|
||||||
|
S_IEXEC = 0x40
|
||||||
|
S_IFBLK = 0x6000
|
||||||
|
S_IFCHR = 0x2000
|
||||||
|
S_IFDIR = 0x4000
|
||||||
|
S_IFIFO = 0x1000
|
||||||
|
S_IFLNK = 0xa000
|
||||||
|
S_IFMT = 0xf000
|
||||||
|
S_IFREG = 0x8000
|
||||||
|
S_IFSOCK = 0xc000
|
||||||
|
S_IREAD = 0x100
|
||||||
|
S_IRGRP = 0x20
|
||||||
|
S_IROTH = 0x4
|
||||||
|
S_IRUSR = 0x100
|
||||||
|
S_IRWXG = 0x38
|
||||||
|
S_IRWXO = 0x7
|
||||||
|
S_IRWXU = 0x1c0
|
||||||
|
S_ISGID = 0x400
|
||||||
|
S_ISTXT = 0x200
|
||||||
|
S_ISUID = 0x800
|
||||||
|
S_ISVTX = 0x200
|
||||||
|
S_IWGRP = 0x10
|
||||||
|
S_IWOTH = 0x2
|
||||||
|
S_IWRITE = 0x80
|
||||||
|
S_IWUSR = 0x80
|
||||||
|
S_IXGRP = 0x8
|
||||||
|
S_IXOTH = 0x1
|
||||||
|
S_IXUSR = 0x40
|
||||||
TCIFLUSH = 0x1
|
TCIFLUSH = 0x1
|
||||||
TCIOFLUSH = 0x3
|
TCIOFLUSH = 0x3
|
||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
|
|
35
vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go
generated
vendored
35
vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go
generated
vendored
|
@ -996,6 +996,39 @@ const (
|
||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
SO_VRRP = 0x1017
|
SO_VRRP = 0x1017
|
||||||
SO_WROFF = 0x2
|
SO_WROFF = 0x2
|
||||||
|
S_ENFMT = 0x400
|
||||||
|
S_IAMB = 0x1ff
|
||||||
|
S_IEXEC = 0x40
|
||||||
|
S_IFBLK = 0x6000
|
||||||
|
S_IFCHR = 0x2000
|
||||||
|
S_IFDIR = 0x4000
|
||||||
|
S_IFDOOR = 0xd000
|
||||||
|
S_IFIFO = 0x1000
|
||||||
|
S_IFLNK = 0xa000
|
||||||
|
S_IFMT = 0xf000
|
||||||
|
S_IFNAM = 0x5000
|
||||||
|
S_IFPORT = 0xe000
|
||||||
|
S_IFREG = 0x8000
|
||||||
|
S_IFSOCK = 0xc000
|
||||||
|
S_INSEM = 0x1
|
||||||
|
S_INSHD = 0x2
|
||||||
|
S_IREAD = 0x100
|
||||||
|
S_IRGRP = 0x20
|
||||||
|
S_IROTH = 0x4
|
||||||
|
S_IRUSR = 0x100
|
||||||
|
S_IRWXG = 0x38
|
||||||
|
S_IRWXO = 0x7
|
||||||
|
S_IRWXU = 0x1c0
|
||||||
|
S_ISGID = 0x400
|
||||||
|
S_ISUID = 0x800
|
||||||
|
S_ISVTX = 0x200
|
||||||
|
S_IWGRP = 0x10
|
||||||
|
S_IWOTH = 0x2
|
||||||
|
S_IWRITE = 0x80
|
||||||
|
S_IWUSR = 0x80
|
||||||
|
S_IXGRP = 0x8
|
||||||
|
S_IXOTH = 0x1
|
||||||
|
S_IXUSR = 0x40
|
||||||
TAB0 = 0x0
|
TAB0 = 0x0
|
||||||
TAB1 = 0x800
|
TAB1 = 0x800
|
||||||
TAB2 = 0x1000
|
TAB2 = 0x1000
|
||||||
|
@ -1102,6 +1135,8 @@ const (
|
||||||
TIOCSTOP = 0x746f
|
TIOCSTOP = 0x746f
|
||||||
TIOCSWINSZ = 0x5467
|
TIOCSWINSZ = 0x5467
|
||||||
TOSTOP = 0x100
|
TOSTOP = 0x100
|
||||||
|
UTIME_NOW = -0x1
|
||||||
|
UTIME_OMIT = -0x2
|
||||||
VCEOF = 0x8
|
VCEOF = 0x8
|
||||||
VCEOL = 0x9
|
VCEOL = 0x9
|
||||||
VDISCARD = 0xd
|
VDISCARD = 0xd
|
||||||
|
|
214
vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
generated
vendored
214
vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
generated
vendored
|
@ -571,6 +571,220 @@ func Exit(code int) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(file)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(file)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(file)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(file)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
214
vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
generated
vendored
214
vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
generated
vendored
|
@ -571,6 +571,220 @@ func Exit(code int) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(file)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(file)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(file)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(file)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
214
vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
generated
vendored
214
vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
generated
vendored
|
@ -571,6 +571,220 @@ func Exit(code int) {
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrGetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrSetFd(fd int, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)), uintptr(data), uintptr(nbytes), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrDeleteFd(fd int, attrnamespace int, attrname string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_EXTATTR_DELETE_FD, uintptr(fd), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p0)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrListFd(fd int, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FD, uintptr(fd), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrGetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(file)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_GET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrSetFile(file string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(file)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_SET_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrDeleteFile(file string, attrnamespace int, attrname string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(file)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_EXTATTR_DELETE_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrListFile(file string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(file)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_FILE, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrGetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_GET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrSetLink(link string, attrnamespace int, attrname string, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_SET_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)), uintptr(data), uintptr(nbytes), 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(attrname)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_EXTATTR_DELETE_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(unsafe.Pointer(_p1)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_EXTATTR_LIST_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(attrnamespace), uintptr(data), uintptr(nbytes), 0, 0)
|
||||||
|
ret = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
|
50
vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go
generated
vendored
50
vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go
generated
vendored
|
@ -109,10 +109,15 @@ const (
|
||||||
SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \
|
SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \
|
||||||
SYS_SETSID = 147 // { int setsid(void); }
|
SYS_SETSID = 147 // { int setsid(void); }
|
||||||
SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \
|
SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \
|
||||||
|
SYS_NLM_SYSCALL = 154 // { int nlm_syscall(int debug_level, int grace_period, int addr_count, char **addrs); }
|
||||||
|
SYS_NFSSVC = 155 // { int nfssvc(int flag, caddr_t argp); }
|
||||||
SYS_LGETFH = 160 // { int lgetfh(char *fname, \
|
SYS_LGETFH = 160 // { int lgetfh(char *fname, \
|
||||||
SYS_GETFH = 161 // { int getfh(char *fname, \
|
SYS_GETFH = 161 // { int getfh(char *fname, \
|
||||||
SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); }
|
SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); }
|
||||||
SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \
|
SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \
|
||||||
|
SYS_SEMSYS = 169 // { int semsys(int which, int a2, int a3, \
|
||||||
|
SYS_MSGSYS = 170 // { int msgsys(int which, int a2, int a3, \
|
||||||
|
SYS_SHMSYS = 171 // { int shmsys(int which, int a2, int a3, \
|
||||||
SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, \
|
SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, \
|
||||||
SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, \
|
SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, \
|
||||||
SYS_SETFIB = 175 // { int setfib(int fibnum); }
|
SYS_SETFIB = 175 // { int setfib(int fibnum); }
|
||||||
|
@ -139,6 +144,14 @@ const (
|
||||||
SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); }
|
SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); }
|
||||||
SYS_GETPGID = 207 // { int getpgid(pid_t pid); }
|
SYS_GETPGID = 207 // { int getpgid(pid_t pid); }
|
||||||
SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \
|
SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \
|
||||||
|
SYS_SEMGET = 221 // { int semget(key_t key, int nsems, \
|
||||||
|
SYS_SEMOP = 222 // { int semop(int semid, struct sembuf *sops, \
|
||||||
|
SYS_MSGGET = 225 // { int msgget(key_t key, int msgflg); }
|
||||||
|
SYS_MSGSND = 226 // { int msgsnd(int msqid, const void *msgp, \
|
||||||
|
SYS_MSGRCV = 227 // { int msgrcv(int msqid, void *msgp, \
|
||||||
|
SYS_SHMAT = 228 // { int shmat(int shmid, const void *shmaddr, \
|
||||||
|
SYS_SHMDT = 230 // { int shmdt(const void *shmaddr); }
|
||||||
|
SYS_SHMGET = 231 // { int shmget(key_t key, size_t size, \
|
||||||
SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \
|
SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \
|
||||||
SYS_CLOCK_SETTIME = 233 // { int clock_settime( \
|
SYS_CLOCK_SETTIME = 233 // { int clock_settime( \
|
||||||
SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \
|
SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \
|
||||||
|
@ -158,6 +171,9 @@ const (
|
||||||
SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, \
|
SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, \
|
||||||
SYS_ISSETUGID = 253 // { int issetugid(void); }
|
SYS_ISSETUGID = 253 // { int issetugid(void); }
|
||||||
SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); }
|
SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); }
|
||||||
|
SYS_AIO_READ = 255 // { int aio_read(struct aiocb *aiocbp); }
|
||||||
|
SYS_AIO_WRITE = 256 // { int aio_write(struct aiocb *aiocbp); }
|
||||||
|
SYS_LIO_LISTIO = 257 // { int lio_listio(int mode, \
|
||||||
SYS_GETDENTS = 272 // { int getdents(int fd, char *buf, \
|
SYS_GETDENTS = 272 // { int getdents(int fd, char *buf, \
|
||||||
SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); }
|
SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); }
|
||||||
SYS_LUTIMES = 276 // { int lutimes(char *path, \
|
SYS_LUTIMES = 276 // { int lutimes(char *path, \
|
||||||
|
@ -181,6 +197,13 @@ const (
|
||||||
SYS_GETSID = 310 // { int getsid(pid_t pid); }
|
SYS_GETSID = 310 // { int getsid(pid_t pid); }
|
||||||
SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, \
|
SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, \
|
||||||
SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, \
|
SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, \
|
||||||
|
SYS_AIO_RETURN = 314 // { int aio_return(struct aiocb *aiocbp); }
|
||||||
|
SYS_AIO_SUSPEND = 315 // { int aio_suspend( \
|
||||||
|
SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, \
|
||||||
|
SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); }
|
||||||
|
SYS_OAIO_READ = 318 // { int oaio_read(struct oaiocb *aiocbp); }
|
||||||
|
SYS_OAIO_WRITE = 319 // { int oaio_write(struct oaiocb *aiocbp); }
|
||||||
|
SYS_OLIO_LISTIO = 320 // { int olio_listio(int mode, \
|
||||||
SYS_YIELD = 321 // { int yield(void); }
|
SYS_YIELD = 321 // { int yield(void); }
|
||||||
SYS_MLOCKALL = 324 // { int mlockall(int how); }
|
SYS_MLOCKALL = 324 // { int mlockall(int how); }
|
||||||
SYS_MUNLOCKALL = 325 // { int munlockall(void); }
|
SYS_MUNLOCKALL = 325 // { int munlockall(void); }
|
||||||
|
@ -213,6 +236,7 @@ const (
|
||||||
SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( \
|
SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( \
|
||||||
SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( \
|
SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( \
|
||||||
SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \
|
SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \
|
||||||
|
SYS_AIO_WAITCOMPLETE = 359 // { int aio_waitcomplete( \
|
||||||
SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \
|
SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \
|
||||||
SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \
|
SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \
|
||||||
SYS_KQUEUE = 362 // { int kqueue(void); }
|
SYS_KQUEUE = 362 // { int kqueue(void); }
|
||||||
|
@ -238,6 +262,15 @@ const (
|
||||||
SYS_STATFS = 396 // { int statfs(char *path, \
|
SYS_STATFS = 396 // { int statfs(char *path, \
|
||||||
SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); }
|
SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); }
|
||||||
SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, \
|
SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, \
|
||||||
|
SYS_KSEM_CLOSE = 400 // { int ksem_close(semid_t id); }
|
||||||
|
SYS_KSEM_POST = 401 // { int ksem_post(semid_t id); }
|
||||||
|
SYS_KSEM_WAIT = 402 // { int ksem_wait(semid_t id); }
|
||||||
|
SYS_KSEM_TRYWAIT = 403 // { int ksem_trywait(semid_t id); }
|
||||||
|
SYS_KSEM_INIT = 404 // { int ksem_init(semid_t *idp, \
|
||||||
|
SYS_KSEM_OPEN = 405 // { int ksem_open(semid_t *idp, \
|
||||||
|
SYS_KSEM_UNLINK = 406 // { int ksem_unlink(const char *name); }
|
||||||
|
SYS_KSEM_GETVALUE = 407 // { int ksem_getvalue(semid_t id, int *val); }
|
||||||
|
SYS_KSEM_DESTROY = 408 // { int ksem_destroy(semid_t id); }
|
||||||
SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, \
|
SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, \
|
||||||
SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, \
|
SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, \
|
||||||
SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, \
|
SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, \
|
||||||
|
@ -266,6 +299,7 @@ const (
|
||||||
SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, \
|
SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, \
|
||||||
SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( \
|
SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( \
|
||||||
SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link( \
|
SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link( \
|
||||||
|
SYS_KSEM_TIMEDWAIT = 441 // { int ksem_timedwait(semid_t id, \
|
||||||
SYS_THR_SUSPEND = 442 // { int thr_suspend( \
|
SYS_THR_SUSPEND = 442 // { int thr_suspend( \
|
||||||
SYS_THR_WAKE = 443 // { int thr_wake(long id); }
|
SYS_THR_WAKE = 443 // { int thr_wake(long id); }
|
||||||
SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); }
|
SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); }
|
||||||
|
@ -281,9 +315,20 @@ const (
|
||||||
SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, \
|
SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, \
|
||||||
SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, \
|
SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, \
|
||||||
SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); }
|
SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); }
|
||||||
|
SYS_KMQ_OPEN = 457 // { int kmq_open(const char *path, int flags, \
|
||||||
|
SYS_KMQ_SETATTR = 458 // { int kmq_setattr(int mqd, \
|
||||||
|
SYS_KMQ_TIMEDRECEIVE = 459 // { int kmq_timedreceive(int mqd, \
|
||||||
|
SYS_KMQ_TIMEDSEND = 460 // { int kmq_timedsend(int mqd, \
|
||||||
|
SYS_KMQ_NOTIFY = 461 // { int kmq_notify(int mqd, \
|
||||||
|
SYS_KMQ_UNLINK = 462 // { int kmq_unlink(const char *path); }
|
||||||
SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); }
|
SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); }
|
||||||
SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); }
|
SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); }
|
||||||
|
SYS_AIO_FSYNC = 465 // { int aio_fsync(int op, struct aiocb *aiocbp); }
|
||||||
SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \
|
SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \
|
||||||
|
SYS_SCTP_PEELOFF = 471 // { int sctp_peeloff(int sd, uint32_t name); }
|
||||||
|
SYS_SCTP_GENERIC_SENDMSG = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
|
||||||
|
SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
|
||||||
|
SYS_SCTP_GENERIC_RECVMSG = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
|
||||||
SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \
|
SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \
|
||||||
SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \
|
SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \
|
||||||
SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \
|
SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \
|
||||||
|
@ -314,10 +359,14 @@ const (
|
||||||
SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, \
|
SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, \
|
||||||
SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); }
|
SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); }
|
||||||
SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); }
|
SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); }
|
||||||
|
SYS_GSSD_SYSCALL = 505 // { int gssd_syscall(char *path); }
|
||||||
SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, \
|
SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, \
|
||||||
SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, \
|
SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, \
|
||||||
SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); }
|
SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); }
|
||||||
SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); }
|
SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); }
|
||||||
|
SYS___SEMCTL = 510 // { int __semctl(int semid, int semnum, \
|
||||||
|
SYS_MSGCTL = 511 // { int msgctl(int msqid, int cmd, \
|
||||||
|
SYS_SHMCTL = 512 // { int shmctl(int shmid, int cmd, \
|
||||||
SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); }
|
SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); }
|
||||||
SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, \
|
SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, \
|
||||||
SYS_CAP_ENTER = 516 // { int cap_enter(void); }
|
SYS_CAP_ENTER = 516 // { int cap_enter(void); }
|
||||||
|
@ -346,6 +395,7 @@ const (
|
||||||
SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \
|
SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \
|
||||||
SYS_ACCEPT4 = 541 // { int accept4(int s, \
|
SYS_ACCEPT4 = 541 // { int accept4(int s, \
|
||||||
SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); }
|
SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); }
|
||||||
|
SYS_AIO_MLOCK = 543 // { int aio_mlock(struct aiocb *aiocbp); }
|
||||||
SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \
|
SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \
|
||||||
SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \
|
SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \
|
||||||
SYS_FUTIMENS = 546 // { int futimens(int fd, \
|
SYS_FUTIMENS = 546 // { int futimens(int fd, \
|
||||||
|
|
50
vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go
generated
vendored
50
vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go
generated
vendored
|
@ -109,10 +109,15 @@ const (
|
||||||
SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \
|
SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \
|
||||||
SYS_SETSID = 147 // { int setsid(void); }
|
SYS_SETSID = 147 // { int setsid(void); }
|
||||||
SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \
|
SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \
|
||||||
|
SYS_NLM_SYSCALL = 154 // { int nlm_syscall(int debug_level, int grace_period, int addr_count, char **addrs); }
|
||||||
|
SYS_NFSSVC = 155 // { int nfssvc(int flag, caddr_t argp); }
|
||||||
SYS_LGETFH = 160 // { int lgetfh(char *fname, \
|
SYS_LGETFH = 160 // { int lgetfh(char *fname, \
|
||||||
SYS_GETFH = 161 // { int getfh(char *fname, \
|
SYS_GETFH = 161 // { int getfh(char *fname, \
|
||||||
SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); }
|
SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); }
|
||||||
SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \
|
SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \
|
||||||
|
SYS_SEMSYS = 169 // { int semsys(int which, int a2, int a3, \
|
||||||
|
SYS_MSGSYS = 170 // { int msgsys(int which, int a2, int a3, \
|
||||||
|
SYS_SHMSYS = 171 // { int shmsys(int which, int a2, int a3, \
|
||||||
SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, \
|
SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, \
|
||||||
SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, \
|
SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, \
|
||||||
SYS_SETFIB = 175 // { int setfib(int fibnum); }
|
SYS_SETFIB = 175 // { int setfib(int fibnum); }
|
||||||
|
@ -139,6 +144,14 @@ const (
|
||||||
SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); }
|
SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); }
|
||||||
SYS_GETPGID = 207 // { int getpgid(pid_t pid); }
|
SYS_GETPGID = 207 // { int getpgid(pid_t pid); }
|
||||||
SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \
|
SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \
|
||||||
|
SYS_SEMGET = 221 // { int semget(key_t key, int nsems, \
|
||||||
|
SYS_SEMOP = 222 // { int semop(int semid, struct sembuf *sops, \
|
||||||
|
SYS_MSGGET = 225 // { int msgget(key_t key, int msgflg); }
|
||||||
|
SYS_MSGSND = 226 // { int msgsnd(int msqid, const void *msgp, \
|
||||||
|
SYS_MSGRCV = 227 // { int msgrcv(int msqid, void *msgp, \
|
||||||
|
SYS_SHMAT = 228 // { int shmat(int shmid, const void *shmaddr, \
|
||||||
|
SYS_SHMDT = 230 // { int shmdt(const void *shmaddr); }
|
||||||
|
SYS_SHMGET = 231 // { int shmget(key_t key, size_t size, \
|
||||||
SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \
|
SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \
|
||||||
SYS_CLOCK_SETTIME = 233 // { int clock_settime( \
|
SYS_CLOCK_SETTIME = 233 // { int clock_settime( \
|
||||||
SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \
|
SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \
|
||||||
|
@ -158,6 +171,9 @@ const (
|
||||||
SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, \
|
SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, \
|
||||||
SYS_ISSETUGID = 253 // { int issetugid(void); }
|
SYS_ISSETUGID = 253 // { int issetugid(void); }
|
||||||
SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); }
|
SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); }
|
||||||
|
SYS_AIO_READ = 255 // { int aio_read(struct aiocb *aiocbp); }
|
||||||
|
SYS_AIO_WRITE = 256 // { int aio_write(struct aiocb *aiocbp); }
|
||||||
|
SYS_LIO_LISTIO = 257 // { int lio_listio(int mode, \
|
||||||
SYS_GETDENTS = 272 // { int getdents(int fd, char *buf, \
|
SYS_GETDENTS = 272 // { int getdents(int fd, char *buf, \
|
||||||
SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); }
|
SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); }
|
||||||
SYS_LUTIMES = 276 // { int lutimes(char *path, \
|
SYS_LUTIMES = 276 // { int lutimes(char *path, \
|
||||||
|
@ -181,6 +197,13 @@ const (
|
||||||
SYS_GETSID = 310 // { int getsid(pid_t pid); }
|
SYS_GETSID = 310 // { int getsid(pid_t pid); }
|
||||||
SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, \
|
SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, \
|
||||||
SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, \
|
SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, \
|
||||||
|
SYS_AIO_RETURN = 314 // { int aio_return(struct aiocb *aiocbp); }
|
||||||
|
SYS_AIO_SUSPEND = 315 // { int aio_suspend( \
|
||||||
|
SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, \
|
||||||
|
SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); }
|
||||||
|
SYS_OAIO_READ = 318 // { int oaio_read(struct oaiocb *aiocbp); }
|
||||||
|
SYS_OAIO_WRITE = 319 // { int oaio_write(struct oaiocb *aiocbp); }
|
||||||
|
SYS_OLIO_LISTIO = 320 // { int olio_listio(int mode, \
|
||||||
SYS_YIELD = 321 // { int yield(void); }
|
SYS_YIELD = 321 // { int yield(void); }
|
||||||
SYS_MLOCKALL = 324 // { int mlockall(int how); }
|
SYS_MLOCKALL = 324 // { int mlockall(int how); }
|
||||||
SYS_MUNLOCKALL = 325 // { int munlockall(void); }
|
SYS_MUNLOCKALL = 325 // { int munlockall(void); }
|
||||||
|
@ -213,6 +236,7 @@ const (
|
||||||
SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( \
|
SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( \
|
||||||
SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( \
|
SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( \
|
||||||
SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \
|
SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \
|
||||||
|
SYS_AIO_WAITCOMPLETE = 359 // { int aio_waitcomplete( \
|
||||||
SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \
|
SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \
|
||||||
SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \
|
SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \
|
||||||
SYS_KQUEUE = 362 // { int kqueue(void); }
|
SYS_KQUEUE = 362 // { int kqueue(void); }
|
||||||
|
@ -238,6 +262,15 @@ const (
|
||||||
SYS_STATFS = 396 // { int statfs(char *path, \
|
SYS_STATFS = 396 // { int statfs(char *path, \
|
||||||
SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); }
|
SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); }
|
||||||
SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, \
|
SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, \
|
||||||
|
SYS_KSEM_CLOSE = 400 // { int ksem_close(semid_t id); }
|
||||||
|
SYS_KSEM_POST = 401 // { int ksem_post(semid_t id); }
|
||||||
|
SYS_KSEM_WAIT = 402 // { int ksem_wait(semid_t id); }
|
||||||
|
SYS_KSEM_TRYWAIT = 403 // { int ksem_trywait(semid_t id); }
|
||||||
|
SYS_KSEM_INIT = 404 // { int ksem_init(semid_t *idp, \
|
||||||
|
SYS_KSEM_OPEN = 405 // { int ksem_open(semid_t *idp, \
|
||||||
|
SYS_KSEM_UNLINK = 406 // { int ksem_unlink(const char *name); }
|
||||||
|
SYS_KSEM_GETVALUE = 407 // { int ksem_getvalue(semid_t id, int *val); }
|
||||||
|
SYS_KSEM_DESTROY = 408 // { int ksem_destroy(semid_t id); }
|
||||||
SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, \
|
SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, \
|
||||||
SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, \
|
SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, \
|
||||||
SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, \
|
SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, \
|
||||||
|
@ -266,6 +299,7 @@ const (
|
||||||
SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, \
|
SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, \
|
||||||
SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( \
|
SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( \
|
||||||
SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link( \
|
SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link( \
|
||||||
|
SYS_KSEM_TIMEDWAIT = 441 // { int ksem_timedwait(semid_t id, \
|
||||||
SYS_THR_SUSPEND = 442 // { int thr_suspend( \
|
SYS_THR_SUSPEND = 442 // { int thr_suspend( \
|
||||||
SYS_THR_WAKE = 443 // { int thr_wake(long id); }
|
SYS_THR_WAKE = 443 // { int thr_wake(long id); }
|
||||||
SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); }
|
SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); }
|
||||||
|
@ -281,9 +315,20 @@ const (
|
||||||
SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, \
|
SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, \
|
||||||
SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, \
|
SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, \
|
||||||
SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); }
|
SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); }
|
||||||
|
SYS_KMQ_OPEN = 457 // { int kmq_open(const char *path, int flags, \
|
||||||
|
SYS_KMQ_SETATTR = 458 // { int kmq_setattr(int mqd, \
|
||||||
|
SYS_KMQ_TIMEDRECEIVE = 459 // { int kmq_timedreceive(int mqd, \
|
||||||
|
SYS_KMQ_TIMEDSEND = 460 // { int kmq_timedsend(int mqd, \
|
||||||
|
SYS_KMQ_NOTIFY = 461 // { int kmq_notify(int mqd, \
|
||||||
|
SYS_KMQ_UNLINK = 462 // { int kmq_unlink(const char *path); }
|
||||||
SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); }
|
SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); }
|
||||||
SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); }
|
SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); }
|
||||||
|
SYS_AIO_FSYNC = 465 // { int aio_fsync(int op, struct aiocb *aiocbp); }
|
||||||
SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \
|
SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \
|
||||||
|
SYS_SCTP_PEELOFF = 471 // { int sctp_peeloff(int sd, uint32_t name); }
|
||||||
|
SYS_SCTP_GENERIC_SENDMSG = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
|
||||||
|
SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
|
||||||
|
SYS_SCTP_GENERIC_RECVMSG = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
|
||||||
SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \
|
SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \
|
||||||
SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \
|
SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \
|
||||||
SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \
|
SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \
|
||||||
|
@ -314,10 +359,14 @@ const (
|
||||||
SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, \
|
SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, \
|
||||||
SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); }
|
SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); }
|
||||||
SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); }
|
SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); }
|
||||||
|
SYS_GSSD_SYSCALL = 505 // { int gssd_syscall(char *path); }
|
||||||
SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, \
|
SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, \
|
||||||
SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, \
|
SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, \
|
||||||
SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); }
|
SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); }
|
||||||
SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); }
|
SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); }
|
||||||
|
SYS___SEMCTL = 510 // { int __semctl(int semid, int semnum, \
|
||||||
|
SYS_MSGCTL = 511 // { int msgctl(int msqid, int cmd, \
|
||||||
|
SYS_SHMCTL = 512 // { int shmctl(int shmid, int cmd, \
|
||||||
SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); }
|
SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); }
|
||||||
SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, \
|
SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, \
|
||||||
SYS_CAP_ENTER = 516 // { int cap_enter(void); }
|
SYS_CAP_ENTER = 516 // { int cap_enter(void); }
|
||||||
|
@ -346,6 +395,7 @@ const (
|
||||||
SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \
|
SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \
|
||||||
SYS_ACCEPT4 = 541 // { int accept4(int s, \
|
SYS_ACCEPT4 = 541 // { int accept4(int s, \
|
||||||
SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); }
|
SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); }
|
||||||
|
SYS_AIO_MLOCK = 543 // { int aio_mlock(struct aiocb *aiocbp); }
|
||||||
SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \
|
SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \
|
||||||
SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \
|
SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \
|
||||||
SYS_FUTIMENS = 546 // { int futimens(int fd, \
|
SYS_FUTIMENS = 546 // { int futimens(int fd, \
|
||||||
|
|
50
vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go
generated
vendored
50
vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go
generated
vendored
|
@ -109,10 +109,15 @@ const (
|
||||||
SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \
|
SYS_ADJTIME = 140 // { int adjtime(struct timeval *delta, \
|
||||||
SYS_SETSID = 147 // { int setsid(void); }
|
SYS_SETSID = 147 // { int setsid(void); }
|
||||||
SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \
|
SYS_QUOTACTL = 148 // { int quotactl(char *path, int cmd, int uid, \
|
||||||
|
SYS_NLM_SYSCALL = 154 // { int nlm_syscall(int debug_level, int grace_period, int addr_count, char **addrs); }
|
||||||
|
SYS_NFSSVC = 155 // { int nfssvc(int flag, caddr_t argp); }
|
||||||
SYS_LGETFH = 160 // { int lgetfh(char *fname, \
|
SYS_LGETFH = 160 // { int lgetfh(char *fname, \
|
||||||
SYS_GETFH = 161 // { int getfh(char *fname, \
|
SYS_GETFH = 161 // { int getfh(char *fname, \
|
||||||
SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); }
|
SYS_SYSARCH = 165 // { int sysarch(int op, char *parms); }
|
||||||
SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \
|
SYS_RTPRIO = 166 // { int rtprio(int function, pid_t pid, \
|
||||||
|
SYS_SEMSYS = 169 // { int semsys(int which, int a2, int a3, \
|
||||||
|
SYS_MSGSYS = 170 // { int msgsys(int which, int a2, int a3, \
|
||||||
|
SYS_SHMSYS = 171 // { int shmsys(int which, int a2, int a3, \
|
||||||
SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, \
|
SYS_FREEBSD6_PREAD = 173 // { ssize_t freebsd6_pread(int fd, void *buf, \
|
||||||
SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, \
|
SYS_FREEBSD6_PWRITE = 174 // { ssize_t freebsd6_pwrite(int fd, \
|
||||||
SYS_SETFIB = 175 // { int setfib(int fibnum); }
|
SYS_SETFIB = 175 // { int setfib(int fibnum); }
|
||||||
|
@ -139,6 +144,14 @@ const (
|
||||||
SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); }
|
SYS_FUTIMES = 206 // { int futimes(int fd, struct timeval *tptr); }
|
||||||
SYS_GETPGID = 207 // { int getpgid(pid_t pid); }
|
SYS_GETPGID = 207 // { int getpgid(pid_t pid); }
|
||||||
SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \
|
SYS_POLL = 209 // { int poll(struct pollfd *fds, u_int nfds, \
|
||||||
|
SYS_SEMGET = 221 // { int semget(key_t key, int nsems, \
|
||||||
|
SYS_SEMOP = 222 // { int semop(int semid, struct sembuf *sops, \
|
||||||
|
SYS_MSGGET = 225 // { int msgget(key_t key, int msgflg); }
|
||||||
|
SYS_MSGSND = 226 // { int msgsnd(int msqid, const void *msgp, \
|
||||||
|
SYS_MSGRCV = 227 // { int msgrcv(int msqid, void *msgp, \
|
||||||
|
SYS_SHMAT = 228 // { int shmat(int shmid, const void *shmaddr, \
|
||||||
|
SYS_SHMDT = 230 // { int shmdt(const void *shmaddr); }
|
||||||
|
SYS_SHMGET = 231 // { int shmget(key_t key, size_t size, \
|
||||||
SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \
|
SYS_CLOCK_GETTIME = 232 // { int clock_gettime(clockid_t clock_id, \
|
||||||
SYS_CLOCK_SETTIME = 233 // { int clock_settime( \
|
SYS_CLOCK_SETTIME = 233 // { int clock_settime( \
|
||||||
SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \
|
SYS_CLOCK_GETRES = 234 // { int clock_getres(clockid_t clock_id, \
|
||||||
|
@ -158,6 +171,9 @@ const (
|
||||||
SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, \
|
SYS_OPENBSD_POLL = 252 // { int openbsd_poll(struct pollfd *fds, \
|
||||||
SYS_ISSETUGID = 253 // { int issetugid(void); }
|
SYS_ISSETUGID = 253 // { int issetugid(void); }
|
||||||
SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); }
|
SYS_LCHOWN = 254 // { int lchown(char *path, int uid, int gid); }
|
||||||
|
SYS_AIO_READ = 255 // { int aio_read(struct aiocb *aiocbp); }
|
||||||
|
SYS_AIO_WRITE = 256 // { int aio_write(struct aiocb *aiocbp); }
|
||||||
|
SYS_LIO_LISTIO = 257 // { int lio_listio(int mode, \
|
||||||
SYS_GETDENTS = 272 // { int getdents(int fd, char *buf, \
|
SYS_GETDENTS = 272 // { int getdents(int fd, char *buf, \
|
||||||
SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); }
|
SYS_LCHMOD = 274 // { int lchmod(char *path, mode_t mode); }
|
||||||
SYS_LUTIMES = 276 // { int lutimes(char *path, \
|
SYS_LUTIMES = 276 // { int lutimes(char *path, \
|
||||||
|
@ -181,6 +197,13 @@ const (
|
||||||
SYS_GETSID = 310 // { int getsid(pid_t pid); }
|
SYS_GETSID = 310 // { int getsid(pid_t pid); }
|
||||||
SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, \
|
SYS_SETRESUID = 311 // { int setresuid(uid_t ruid, uid_t euid, \
|
||||||
SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, \
|
SYS_SETRESGID = 312 // { int setresgid(gid_t rgid, gid_t egid, \
|
||||||
|
SYS_AIO_RETURN = 314 // { int aio_return(struct aiocb *aiocbp); }
|
||||||
|
SYS_AIO_SUSPEND = 315 // { int aio_suspend( \
|
||||||
|
SYS_AIO_CANCEL = 316 // { int aio_cancel(int fd, \
|
||||||
|
SYS_AIO_ERROR = 317 // { int aio_error(struct aiocb *aiocbp); }
|
||||||
|
SYS_OAIO_READ = 318 // { int oaio_read(struct oaiocb *aiocbp); }
|
||||||
|
SYS_OAIO_WRITE = 319 // { int oaio_write(struct oaiocb *aiocbp); }
|
||||||
|
SYS_OLIO_LISTIO = 320 // { int olio_listio(int mode, \
|
||||||
SYS_YIELD = 321 // { int yield(void); }
|
SYS_YIELD = 321 // { int yield(void); }
|
||||||
SYS_MLOCKALL = 324 // { int mlockall(int how); }
|
SYS_MLOCKALL = 324 // { int mlockall(int how); }
|
||||||
SYS_MUNLOCKALL = 325 // { int munlockall(void); }
|
SYS_MUNLOCKALL = 325 // { int munlockall(void); }
|
||||||
|
@ -213,6 +236,7 @@ const (
|
||||||
SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( \
|
SYS_EXTATTR_SET_FILE = 356 // { ssize_t extattr_set_file( \
|
||||||
SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( \
|
SYS_EXTATTR_GET_FILE = 357 // { ssize_t extattr_get_file( \
|
||||||
SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \
|
SYS_EXTATTR_DELETE_FILE = 358 // { int extattr_delete_file(const char *path, \
|
||||||
|
SYS_AIO_WAITCOMPLETE = 359 // { int aio_waitcomplete( \
|
||||||
SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \
|
SYS_GETRESUID = 360 // { int getresuid(uid_t *ruid, uid_t *euid, \
|
||||||
SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \
|
SYS_GETRESGID = 361 // { int getresgid(gid_t *rgid, gid_t *egid, \
|
||||||
SYS_KQUEUE = 362 // { int kqueue(void); }
|
SYS_KQUEUE = 362 // { int kqueue(void); }
|
||||||
|
@ -238,6 +262,15 @@ const (
|
||||||
SYS_STATFS = 396 // { int statfs(char *path, \
|
SYS_STATFS = 396 // { int statfs(char *path, \
|
||||||
SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); }
|
SYS_FSTATFS = 397 // { int fstatfs(int fd, struct statfs *buf); }
|
||||||
SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, \
|
SYS_FHSTATFS = 398 // { int fhstatfs(const struct fhandle *u_fhp, \
|
||||||
|
SYS_KSEM_CLOSE = 400 // { int ksem_close(semid_t id); }
|
||||||
|
SYS_KSEM_POST = 401 // { int ksem_post(semid_t id); }
|
||||||
|
SYS_KSEM_WAIT = 402 // { int ksem_wait(semid_t id); }
|
||||||
|
SYS_KSEM_TRYWAIT = 403 // { int ksem_trywait(semid_t id); }
|
||||||
|
SYS_KSEM_INIT = 404 // { int ksem_init(semid_t *idp, \
|
||||||
|
SYS_KSEM_OPEN = 405 // { int ksem_open(semid_t *idp, \
|
||||||
|
SYS_KSEM_UNLINK = 406 // { int ksem_unlink(const char *name); }
|
||||||
|
SYS_KSEM_GETVALUE = 407 // { int ksem_getvalue(semid_t id, int *val); }
|
||||||
|
SYS_KSEM_DESTROY = 408 // { int ksem_destroy(semid_t id); }
|
||||||
SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, \
|
SYS___MAC_GET_PID = 409 // { int __mac_get_pid(pid_t pid, \
|
||||||
SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, \
|
SYS___MAC_GET_LINK = 410 // { int __mac_get_link(const char *path_p, \
|
||||||
SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, \
|
SYS___MAC_SET_LINK = 411 // { int __mac_set_link(const char *path_p, \
|
||||||
|
@ -266,6 +299,7 @@ const (
|
||||||
SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, \
|
SYS_EXTATTR_LIST_FD = 437 // { ssize_t extattr_list_fd(int fd, \
|
||||||
SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( \
|
SYS_EXTATTR_LIST_FILE = 438 // { ssize_t extattr_list_file( \
|
||||||
SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link( \
|
SYS_EXTATTR_LIST_LINK = 439 // { ssize_t extattr_list_link( \
|
||||||
|
SYS_KSEM_TIMEDWAIT = 441 // { int ksem_timedwait(semid_t id, \
|
||||||
SYS_THR_SUSPEND = 442 // { int thr_suspend( \
|
SYS_THR_SUSPEND = 442 // { int thr_suspend( \
|
||||||
SYS_THR_WAKE = 443 // { int thr_wake(long id); }
|
SYS_THR_WAKE = 443 // { int thr_wake(long id); }
|
||||||
SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); }
|
SYS_KLDUNLOADF = 444 // { int kldunloadf(int fileid, int flags); }
|
||||||
|
@ -281,9 +315,20 @@ const (
|
||||||
SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, \
|
SYS__UMTX_OP = 454 // { int _umtx_op(void *obj, int op, \
|
||||||
SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, \
|
SYS_THR_NEW = 455 // { int thr_new(struct thr_param *param, \
|
||||||
SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); }
|
SYS_SIGQUEUE = 456 // { int sigqueue(pid_t pid, int signum, void *value); }
|
||||||
|
SYS_KMQ_OPEN = 457 // { int kmq_open(const char *path, int flags, \
|
||||||
|
SYS_KMQ_SETATTR = 458 // { int kmq_setattr(int mqd, \
|
||||||
|
SYS_KMQ_TIMEDRECEIVE = 459 // { int kmq_timedreceive(int mqd, \
|
||||||
|
SYS_KMQ_TIMEDSEND = 460 // { int kmq_timedsend(int mqd, \
|
||||||
|
SYS_KMQ_NOTIFY = 461 // { int kmq_notify(int mqd, \
|
||||||
|
SYS_KMQ_UNLINK = 462 // { int kmq_unlink(const char *path); }
|
||||||
SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); }
|
SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); }
|
||||||
SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); }
|
SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); }
|
||||||
|
SYS_AIO_FSYNC = 465 // { int aio_fsync(int op, struct aiocb *aiocbp); }
|
||||||
SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \
|
SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \
|
||||||
|
SYS_SCTP_PEELOFF = 471 // { int sctp_peeloff(int sd, uint32_t name); }
|
||||||
|
SYS_SCTP_GENERIC_SENDMSG = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
|
||||||
|
SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
|
||||||
|
SYS_SCTP_GENERIC_RECVMSG = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
|
||||||
SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \
|
SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \
|
||||||
SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \
|
SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \
|
||||||
SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \
|
SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \
|
||||||
|
@ -314,10 +359,14 @@ const (
|
||||||
SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, \
|
SYS_SYMLINKAT = 502 // { int symlinkat(char *path1, int fd, \
|
||||||
SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); }
|
SYS_UNLINKAT = 503 // { int unlinkat(int fd, char *path, int flag); }
|
||||||
SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); }
|
SYS_POSIX_OPENPT = 504 // { int posix_openpt(int flags); }
|
||||||
|
SYS_GSSD_SYSCALL = 505 // { int gssd_syscall(char *path); }
|
||||||
SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, \
|
SYS_JAIL_GET = 506 // { int jail_get(struct iovec *iovp, \
|
||||||
SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, \
|
SYS_JAIL_SET = 507 // { int jail_set(struct iovec *iovp, \
|
||||||
SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); }
|
SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); }
|
||||||
SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); }
|
SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); }
|
||||||
|
SYS___SEMCTL = 510 // { int __semctl(int semid, int semnum, \
|
||||||
|
SYS_MSGCTL = 511 // { int msgctl(int msqid, int cmd, \
|
||||||
|
SYS_SHMCTL = 512 // { int shmctl(int shmid, int cmd, \
|
||||||
SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); }
|
SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); }
|
||||||
SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, \
|
SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, \
|
||||||
SYS_CAP_ENTER = 516 // { int cap_enter(void); }
|
SYS_CAP_ENTER = 516 // { int cap_enter(void); }
|
||||||
|
@ -346,6 +395,7 @@ const (
|
||||||
SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \
|
SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \
|
||||||
SYS_ACCEPT4 = 541 // { int accept4(int s, \
|
SYS_ACCEPT4 = 541 // { int accept4(int s, \
|
||||||
SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); }
|
SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); }
|
||||||
|
SYS_AIO_MLOCK = 543 // { int aio_mlock(struct aiocb *aiocbp); }
|
||||||
SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \
|
SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \
|
||||||
SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \
|
SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \
|
||||||
SYS_FUTIMENS = 546 // { int futimens(int fd, \
|
SYS_FUTIMENS = 546 // { int futimens(int fd, \
|
||||||
|
|
2
vendor/golang.org/x/sys/unix/zsysnum_linux_386.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zsysnum_linux_386.go
generated
vendored
|
@ -387,4 +387,6 @@ const (
|
||||||
SYS_PKEY_FREE = 382
|
SYS_PKEY_FREE = 382
|
||||||
SYS_STATX = 383
|
SYS_STATX = 383
|
||||||
SYS_ARCH_PRCTL = 384
|
SYS_ARCH_PRCTL = 384
|
||||||
|
SYS_IO_PGETEVENTS = 385
|
||||||
|
SYS_RSEQ = 386
|
||||||
)
|
)
|
||||||
|
|
2
vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go
generated
vendored
|
@ -339,4 +339,6 @@ const (
|
||||||
SYS_PKEY_ALLOC = 330
|
SYS_PKEY_ALLOC = 330
|
||||||
SYS_PKEY_FREE = 331
|
SYS_PKEY_FREE = 331
|
||||||
SYS_STATX = 332
|
SYS_STATX = 332
|
||||||
|
SYS_IO_PGETEVENTS = 333
|
||||||
|
SYS_RSEQ = 334
|
||||||
)
|
)
|
||||||
|
|
1
vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go
generated
vendored
1
vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go
generated
vendored
|
@ -359,4 +359,5 @@ const (
|
||||||
SYS_PKEY_ALLOC = 395
|
SYS_PKEY_ALLOC = 395
|
||||||
SYS_PKEY_FREE = 396
|
SYS_PKEY_FREE = 396
|
||||||
SYS_STATX = 397
|
SYS_STATX = 397
|
||||||
|
SYS_RSEQ = 398
|
||||||
)
|
)
|
||||||
|
|
1
vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go
generated
vendored
1
vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go
generated
vendored
|
@ -283,4 +283,5 @@ const (
|
||||||
SYS_PKEY_ALLOC = 289
|
SYS_PKEY_ALLOC = 289
|
||||||
SYS_PKEY_FREE = 290
|
SYS_PKEY_FREE = 290
|
||||||
SYS_STATX = 291
|
SYS_STATX = 291
|
||||||
|
SYS_IO_PGETEVENTS = 292
|
||||||
)
|
)
|
||||||
|
|
2
vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go
generated
vendored
|
@ -372,4 +372,6 @@ const (
|
||||||
SYS_PKEY_ALLOC = 4364
|
SYS_PKEY_ALLOC = 4364
|
||||||
SYS_PKEY_FREE = 4365
|
SYS_PKEY_FREE = 4365
|
||||||
SYS_STATX = 4366
|
SYS_STATX = 4366
|
||||||
|
SYS_RSEQ = 4367
|
||||||
|
SYS_IO_PGETEVENTS = 4368
|
||||||
)
|
)
|
||||||
|
|
2
vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go
generated
vendored
|
@ -332,4 +332,6 @@ const (
|
||||||
SYS_PKEY_ALLOC = 5324
|
SYS_PKEY_ALLOC = 5324
|
||||||
SYS_PKEY_FREE = 5325
|
SYS_PKEY_FREE = 5325
|
||||||
SYS_STATX = 5326
|
SYS_STATX = 5326
|
||||||
|
SYS_RSEQ = 5327
|
||||||
|
SYS_IO_PGETEVENTS = 5328
|
||||||
)
|
)
|
||||||
|
|
2
vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go
generated
vendored
|
@ -332,4 +332,6 @@ const (
|
||||||
SYS_PKEY_ALLOC = 5324
|
SYS_PKEY_ALLOC = 5324
|
||||||
SYS_PKEY_FREE = 5325
|
SYS_PKEY_FREE = 5325
|
||||||
SYS_STATX = 5326
|
SYS_STATX = 5326
|
||||||
|
SYS_RSEQ = 5327
|
||||||
|
SYS_IO_PGETEVENTS = 5328
|
||||||
)
|
)
|
||||||
|
|
2
vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go
generated
vendored
|
@ -372,4 +372,6 @@ const (
|
||||||
SYS_PKEY_ALLOC = 4364
|
SYS_PKEY_ALLOC = 4364
|
||||||
SYS_PKEY_FREE = 4365
|
SYS_PKEY_FREE = 4365
|
||||||
SYS_STATX = 4366
|
SYS_STATX = 4366
|
||||||
|
SYS_RSEQ = 4367
|
||||||
|
SYS_IO_PGETEVENTS = 4368
|
||||||
)
|
)
|
||||||
|
|
2
vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go
generated
vendored
|
@ -370,4 +370,6 @@ const (
|
||||||
SYS_PKEY_ALLOC = 384
|
SYS_PKEY_ALLOC = 384
|
||||||
SYS_PKEY_FREE = 385
|
SYS_PKEY_FREE = 385
|
||||||
SYS_PKEY_MPROTECT = 386
|
SYS_PKEY_MPROTECT = 386
|
||||||
|
SYS_RSEQ = 387
|
||||||
|
SYS_IO_PGETEVENTS = 388
|
||||||
)
|
)
|
||||||
|
|
2
vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go
generated
vendored
|
@ -370,4 +370,6 @@ const (
|
||||||
SYS_PKEY_ALLOC = 384
|
SYS_PKEY_ALLOC = 384
|
||||||
SYS_PKEY_FREE = 385
|
SYS_PKEY_FREE = 385
|
||||||
SYS_PKEY_MPROTECT = 386
|
SYS_PKEY_MPROTECT = 386
|
||||||
|
SYS_RSEQ = 387
|
||||||
|
SYS_IO_PGETEVENTS = 388
|
||||||
)
|
)
|
||||||
|
|
2
vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go
generated
vendored
2
vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go
generated
vendored
|
@ -332,4 +332,6 @@ const (
|
||||||
SYS_STATX = 379
|
SYS_STATX = 379
|
||||||
SYS_S390_STHYI = 380
|
SYS_S390_STHYI = 380
|
||||||
SYS_KEXEC_FILE_LOAD = 381
|
SYS_KEXEC_FILE_LOAD = 381
|
||||||
|
SYS_IO_PGETEVENTS = 382
|
||||||
|
SYS_RSEQ = 383
|
||||||
)
|
)
|
||||||
|
|
17
vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go
generated
vendored
17
vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go
generated
vendored
|
@ -56,23 +56,6 @@ type Rlimit struct {
|
||||||
|
|
||||||
type _Gid_t uint32
|
type _Gid_t uint32
|
||||||
|
|
||||||
const (
|
|
||||||
S_IFMT = 0xf000
|
|
||||||
S_IFIFO = 0x1000
|
|
||||||
S_IFCHR = 0x2000
|
|
||||||
S_IFDIR = 0x4000
|
|
||||||
S_IFBLK = 0x6000
|
|
||||||
S_IFREG = 0x8000
|
|
||||||
S_IFLNK = 0xa000
|
|
||||||
S_IFSOCK = 0xc000
|
|
||||||
S_ISUID = 0x800
|
|
||||||
S_ISGID = 0x400
|
|
||||||
S_ISVTX = 0x200
|
|
||||||
S_IRUSR = 0x100
|
|
||||||
S_IWUSR = 0x80
|
|
||||||
S_IXUSR = 0x40
|
|
||||||
)
|
|
||||||
|
|
||||||
type Stat_t struct {
|
type Stat_t struct {
|
||||||
Ino uint64
|
Ino uint64
|
||||||
Nlink uint32
|
Nlink uint32
|
||||||
|
|
19
vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go
generated
vendored
19
vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go
generated
vendored
|
@ -56,25 +56,6 @@ type Rlimit struct {
|
||||||
|
|
||||||
type _Gid_t uint32
|
type _Gid_t uint32
|
||||||
|
|
||||||
const (
|
|
||||||
S_IFMT = 0xf000
|
|
||||||
S_IFIFO = 0x1000
|
|
||||||
S_IFCHR = 0x2000
|
|
||||||
S_IFDIR = 0x4000
|
|
||||||
S_IFBLK = 0x6000
|
|
||||||
S_IFREG = 0x8000
|
|
||||||
S_IFLNK = 0xa000
|
|
||||||
S_IFSOCK = 0xc000
|
|
||||||
S_ISUID = 0x800
|
|
||||||
S_ISGID = 0x400
|
|
||||||
S_ISVTX = 0x200
|
|
||||||
S_IRUSR = 0x100
|
|
||||||
S_IWUSR = 0x80
|
|
||||||
S_IXUSR = 0x40
|
|
||||||
S_IRWXG = 0x38
|
|
||||||
S_IRWXO = 0x7
|
|
||||||
)
|
|
||||||
|
|
||||||
type Stat_t struct {
|
type Stat_t struct {
|
||||||
Dev uint32
|
Dev uint32
|
||||||
Ino uint32
|
Ino uint32
|
||||||
|
|
19
vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go
generated
vendored
19
vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go
generated
vendored
|
@ -56,25 +56,6 @@ type Rlimit struct {
|
||||||
|
|
||||||
type _Gid_t uint32
|
type _Gid_t uint32
|
||||||
|
|
||||||
const (
|
|
||||||
S_IFMT = 0xf000
|
|
||||||
S_IFIFO = 0x1000
|
|
||||||
S_IFCHR = 0x2000
|
|
||||||
S_IFDIR = 0x4000
|
|
||||||
S_IFBLK = 0x6000
|
|
||||||
S_IFREG = 0x8000
|
|
||||||
S_IFLNK = 0xa000
|
|
||||||
S_IFSOCK = 0xc000
|
|
||||||
S_ISUID = 0x800
|
|
||||||
S_ISGID = 0x400
|
|
||||||
S_ISVTX = 0x200
|
|
||||||
S_IRUSR = 0x100
|
|
||||||
S_IWUSR = 0x80
|
|
||||||
S_IXUSR = 0x40
|
|
||||||
S_IRWXG = 0x38
|
|
||||||
S_IRWXO = 0x7
|
|
||||||
)
|
|
||||||
|
|
||||||
type Stat_t struct {
|
type Stat_t struct {
|
||||||
Dev uint32
|
Dev uint32
|
||||||
Ino uint32
|
Ino uint32
|
||||||
|
|
19
vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go
generated
vendored
19
vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go
generated
vendored
|
@ -58,25 +58,6 @@ type Rlimit struct {
|
||||||
|
|
||||||
type _Gid_t uint32
|
type _Gid_t uint32
|
||||||
|
|
||||||
const (
|
|
||||||
S_IFMT = 0xf000
|
|
||||||
S_IFIFO = 0x1000
|
|
||||||
S_IFCHR = 0x2000
|
|
||||||
S_IFDIR = 0x4000
|
|
||||||
S_IFBLK = 0x6000
|
|
||||||
S_IFREG = 0x8000
|
|
||||||
S_IFLNK = 0xa000
|
|
||||||
S_IFSOCK = 0xc000
|
|
||||||
S_ISUID = 0x800
|
|
||||||
S_ISGID = 0x400
|
|
||||||
S_ISVTX = 0x200
|
|
||||||
S_IRUSR = 0x100
|
|
||||||
S_IWUSR = 0x80
|
|
||||||
S_IXUSR = 0x40
|
|
||||||
S_IRWXG = 0x38
|
|
||||||
S_IRWXO = 0x7
|
|
||||||
)
|
|
||||||
|
|
||||||
type Stat_t struct {
|
type Stat_t struct {
|
||||||
Dev uint32
|
Dev uint32
|
||||||
Ino uint32
|
Ino uint32
|
||||||
|
|
17
vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go
generated
vendored
17
vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go
generated
vendored
|
@ -56,23 +56,6 @@ type Rlimit struct {
|
||||||
|
|
||||||
type _Gid_t uint32
|
type _Gid_t uint32
|
||||||
|
|
||||||
const (
|
|
||||||
S_IFMT = 0xf000
|
|
||||||
S_IFIFO = 0x1000
|
|
||||||
S_IFCHR = 0x2000
|
|
||||||
S_IFDIR = 0x4000
|
|
||||||
S_IFBLK = 0x6000
|
|
||||||
S_IFREG = 0x8000
|
|
||||||
S_IFLNK = 0xa000
|
|
||||||
S_IFSOCK = 0xc000
|
|
||||||
S_ISUID = 0x800
|
|
||||||
S_ISGID = 0x400
|
|
||||||
S_ISVTX = 0x200
|
|
||||||
S_IRUSR = 0x100
|
|
||||||
S_IWUSR = 0x80
|
|
||||||
S_IXUSR = 0x40
|
|
||||||
)
|
|
||||||
|
|
||||||
type Stat_t struct {
|
type Stat_t struct {
|
||||||
Mode uint32
|
Mode uint32
|
||||||
Dev int32
|
Dev int32
|
||||||
|
|
17
vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go
generated
vendored
17
vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go
generated
vendored
|
@ -56,23 +56,6 @@ type Rlimit struct {
|
||||||
|
|
||||||
type _Gid_t uint32
|
type _Gid_t uint32
|
||||||
|
|
||||||
const (
|
|
||||||
S_IFMT = 0xf000
|
|
||||||
S_IFIFO = 0x1000
|
|
||||||
S_IFCHR = 0x2000
|
|
||||||
S_IFDIR = 0x4000
|
|
||||||
S_IFBLK = 0x6000
|
|
||||||
S_IFREG = 0x8000
|
|
||||||
S_IFLNK = 0xa000
|
|
||||||
S_IFSOCK = 0xc000
|
|
||||||
S_ISUID = 0x800
|
|
||||||
S_ISGID = 0x400
|
|
||||||
S_ISVTX = 0x200
|
|
||||||
S_IRUSR = 0x100
|
|
||||||
S_IWUSR = 0x80
|
|
||||||
S_IXUSR = 0x40
|
|
||||||
)
|
|
||||||
|
|
||||||
type Stat_t struct {
|
type Stat_t struct {
|
||||||
Mode uint32
|
Mode uint32
|
||||||
Dev int32
|
Dev int32
|
||||||
|
|
17
vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go
generated
vendored
17
vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go
generated
vendored
|
@ -56,23 +56,6 @@ type Rlimit struct {
|
||||||
|
|
||||||
type _Gid_t uint32
|
type _Gid_t uint32
|
||||||
|
|
||||||
const (
|
|
||||||
S_IFMT = 0xf000
|
|
||||||
S_IFIFO = 0x1000
|
|
||||||
S_IFCHR = 0x2000
|
|
||||||
S_IFDIR = 0x4000
|
|
||||||
S_IFBLK = 0x6000
|
|
||||||
S_IFREG = 0x8000
|
|
||||||
S_IFLNK = 0xa000
|
|
||||||
S_IFSOCK = 0xc000
|
|
||||||
S_ISUID = 0x800
|
|
||||||
S_ISGID = 0x400
|
|
||||||
S_ISVTX = 0x200
|
|
||||||
S_IRUSR = 0x100
|
|
||||||
S_IWUSR = 0x80
|
|
||||||
S_IXUSR = 0x40
|
|
||||||
)
|
|
||||||
|
|
||||||
type Stat_t struct {
|
type Stat_t struct {
|
||||||
Mode uint32
|
Mode uint32
|
||||||
Dev int32
|
Dev int32
|
||||||
|
|
17
vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go
generated
vendored
17
vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go
generated
vendored
|
@ -75,23 +75,6 @@ type Rlimit struct {
|
||||||
|
|
||||||
type _Gid_t uint32
|
type _Gid_t uint32
|
||||||
|
|
||||||
const (
|
|
||||||
S_IFMT = 0xf000
|
|
||||||
S_IFIFO = 0x1000
|
|
||||||
S_IFCHR = 0x2000
|
|
||||||
S_IFDIR = 0x4000
|
|
||||||
S_IFBLK = 0x6000
|
|
||||||
S_IFREG = 0x8000
|
|
||||||
S_IFLNK = 0xa000
|
|
||||||
S_IFSOCK = 0xc000
|
|
||||||
S_ISUID = 0x800
|
|
||||||
S_ISGID = 0x400
|
|
||||||
S_ISVTX = 0x200
|
|
||||||
S_IRUSR = 0x100
|
|
||||||
S_IWUSR = 0x80
|
|
||||||
S_IXUSR = 0x40
|
|
||||||
)
|
|
||||||
|
|
||||||
type Stat_t struct {
|
type Stat_t struct {
|
||||||
Dev uint64
|
Dev uint64
|
||||||
Ino uint64
|
Ino uint64
|
||||||
|
|
105
vendor/golang.org/x/sys/windows/types_windows.go
generated
vendored
105
vendor/golang.org/x/sys/windows/types_windows.go
generated
vendored
|
@ -270,15 +270,87 @@ const (
|
||||||
USAGE_MATCH_TYPE_AND = 0
|
USAGE_MATCH_TYPE_AND = 0
|
||||||
USAGE_MATCH_TYPE_OR = 1
|
USAGE_MATCH_TYPE_OR = 1
|
||||||
|
|
||||||
|
/* msgAndCertEncodingType values for CertOpenStore function */
|
||||||
X509_ASN_ENCODING = 0x00000001
|
X509_ASN_ENCODING = 0x00000001
|
||||||
PKCS_7_ASN_ENCODING = 0x00010000
|
PKCS_7_ASN_ENCODING = 0x00010000
|
||||||
|
|
||||||
|
/* storeProvider values for CertOpenStore function */
|
||||||
|
CERT_STORE_PROV_MSG = 1
|
||||||
CERT_STORE_PROV_MEMORY = 2
|
CERT_STORE_PROV_MEMORY = 2
|
||||||
|
CERT_STORE_PROV_FILE = 3
|
||||||
|
CERT_STORE_PROV_REG = 4
|
||||||
|
CERT_STORE_PROV_PKCS7 = 5
|
||||||
|
CERT_STORE_PROV_SERIALIZED = 6
|
||||||
|
CERT_STORE_PROV_FILENAME_A = 7
|
||||||
|
CERT_STORE_PROV_FILENAME_W = 8
|
||||||
|
CERT_STORE_PROV_FILENAME = CERT_STORE_PROV_FILENAME_W
|
||||||
|
CERT_STORE_PROV_SYSTEM_A = 9
|
||||||
|
CERT_STORE_PROV_SYSTEM_W = 10
|
||||||
|
CERT_STORE_PROV_SYSTEM = CERT_STORE_PROV_SYSTEM_W
|
||||||
|
CERT_STORE_PROV_COLLECTION = 11
|
||||||
|
CERT_STORE_PROV_SYSTEM_REGISTRY_A = 12
|
||||||
|
CERT_STORE_PROV_SYSTEM_REGISTRY_W = 13
|
||||||
|
CERT_STORE_PROV_SYSTEM_REGISTRY = CERT_STORE_PROV_SYSTEM_REGISTRY_W
|
||||||
|
CERT_STORE_PROV_PHYSICAL_W = 14
|
||||||
|
CERT_STORE_PROV_PHYSICAL = CERT_STORE_PROV_PHYSICAL_W
|
||||||
|
CERT_STORE_PROV_SMART_CARD_W = 15
|
||||||
|
CERT_STORE_PROV_SMART_CARD = CERT_STORE_PROV_SMART_CARD_W
|
||||||
|
CERT_STORE_PROV_LDAP_W = 16
|
||||||
|
CERT_STORE_PROV_LDAP = CERT_STORE_PROV_LDAP_W
|
||||||
|
CERT_STORE_PROV_PKCS12 = 17
|
||||||
|
|
||||||
CERT_STORE_ADD_ALWAYS = 4
|
/* store characteristics (low WORD of flag) for CertOpenStore function */
|
||||||
|
CERT_STORE_NO_CRYPT_RELEASE_FLAG = 0x00000001
|
||||||
|
CERT_STORE_SET_LOCALIZED_NAME_FLAG = 0x00000002
|
||||||
CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG = 0x00000004
|
CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG = 0x00000004
|
||||||
|
CERT_STORE_DELETE_FLAG = 0x00000010
|
||||||
|
CERT_STORE_UNSAFE_PHYSICAL_FLAG = 0x00000020
|
||||||
|
CERT_STORE_SHARE_STORE_FLAG = 0x00000040
|
||||||
|
CERT_STORE_SHARE_CONTEXT_FLAG = 0x00000080
|
||||||
|
CERT_STORE_MANIFOLD_FLAG = 0x00000100
|
||||||
|
CERT_STORE_ENUM_ARCHIVED_FLAG = 0x00000200
|
||||||
|
CERT_STORE_UPDATE_KEYID_FLAG = 0x00000400
|
||||||
|
CERT_STORE_BACKUP_RESTORE_FLAG = 0x00000800
|
||||||
|
CERT_STORE_MAXIMUM_ALLOWED_FLAG = 0x00001000
|
||||||
|
CERT_STORE_CREATE_NEW_FLAG = 0x00002000
|
||||||
|
CERT_STORE_OPEN_EXISTING_FLAG = 0x00004000
|
||||||
|
CERT_STORE_READONLY_FLAG = 0x00008000
|
||||||
|
|
||||||
|
/* store locations (high WORD of flag) for CertOpenStore function */
|
||||||
|
CERT_SYSTEM_STORE_CURRENT_USER = 0x00010000
|
||||||
|
CERT_SYSTEM_STORE_LOCAL_MACHINE = 0x00020000
|
||||||
|
CERT_SYSTEM_STORE_CURRENT_SERVICE = 0x00040000
|
||||||
|
CERT_SYSTEM_STORE_SERVICES = 0x00050000
|
||||||
|
CERT_SYSTEM_STORE_USERS = 0x00060000
|
||||||
|
CERT_SYSTEM_STORE_CURRENT_USER_GROUP_POLICY = 0x00070000
|
||||||
|
CERT_SYSTEM_STORE_LOCAL_MACHINE_GROUP_POLICY = 0x00080000
|
||||||
|
CERT_SYSTEM_STORE_LOCAL_MACHINE_ENTERPRISE = 0x00090000
|
||||||
|
CERT_SYSTEM_STORE_UNPROTECTED_FLAG = 0x40000000
|
||||||
|
CERT_SYSTEM_STORE_RELOCATE_FLAG = 0x80000000
|
||||||
|
|
||||||
|
/* Miscellaneous high-WORD flags for CertOpenStore function */
|
||||||
|
CERT_REGISTRY_STORE_REMOTE_FLAG = 0x00010000
|
||||||
|
CERT_REGISTRY_STORE_SERIALIZED_FLAG = 0x00020000
|
||||||
|
CERT_REGISTRY_STORE_ROAMING_FLAG = 0x00040000
|
||||||
|
CERT_REGISTRY_STORE_MY_IE_DIRTY_FLAG = 0x00080000
|
||||||
|
CERT_REGISTRY_STORE_LM_GPT_FLAG = 0x01000000
|
||||||
|
CERT_REGISTRY_STORE_CLIENT_GPT_FLAG = 0x80000000
|
||||||
|
CERT_FILE_STORE_COMMIT_ENABLE_FLAG = 0x00010000
|
||||||
|
CERT_LDAP_STORE_SIGN_FLAG = 0x00010000
|
||||||
|
CERT_LDAP_STORE_AREC_EXCLUSIVE_FLAG = 0x00020000
|
||||||
|
CERT_LDAP_STORE_OPENED_FLAG = 0x00040000
|
||||||
|
CERT_LDAP_STORE_UNBIND_FLAG = 0x00080000
|
||||||
|
|
||||||
|
/* addDisposition values for CertAddCertificateContextToStore function */
|
||||||
|
CERT_STORE_ADD_NEW = 1
|
||||||
|
CERT_STORE_ADD_USE_EXISTING = 2
|
||||||
|
CERT_STORE_ADD_REPLACE_EXISTING = 3
|
||||||
|
CERT_STORE_ADD_ALWAYS = 4
|
||||||
|
CERT_STORE_ADD_REPLACE_EXISTING_INHERIT_PROPERTIES = 5
|
||||||
|
CERT_STORE_ADD_NEWER = 6
|
||||||
|
CERT_STORE_ADD_NEWER_INHERIT_PROPERTIES = 7
|
||||||
|
|
||||||
|
/* ErrorStatus values for CertTrustStatus struct */
|
||||||
CERT_TRUST_NO_ERROR = 0x00000000
|
CERT_TRUST_NO_ERROR = 0x00000000
|
||||||
CERT_TRUST_IS_NOT_TIME_VALID = 0x00000001
|
CERT_TRUST_IS_NOT_TIME_VALID = 0x00000001
|
||||||
CERT_TRUST_IS_REVOKED = 0x00000004
|
CERT_TRUST_IS_REVOKED = 0x00000004
|
||||||
|
@ -295,11 +367,31 @@ const (
|
||||||
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT = 0x00002000
|
CERT_TRUST_HAS_NOT_DEFINED_NAME_CONSTRAINT = 0x00002000
|
||||||
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT = 0x00004000
|
CERT_TRUST_HAS_NOT_PERMITTED_NAME_CONSTRAINT = 0x00004000
|
||||||
CERT_TRUST_HAS_EXCLUDED_NAME_CONSTRAINT = 0x00008000
|
CERT_TRUST_HAS_EXCLUDED_NAME_CONSTRAINT = 0x00008000
|
||||||
|
CERT_TRUST_IS_PARTIAL_CHAIN = 0x00010000
|
||||||
|
CERT_TRUST_CTL_IS_NOT_TIME_VALID = 0x00020000
|
||||||
|
CERT_TRUST_CTL_IS_NOT_SIGNATURE_VALID = 0x00040000
|
||||||
|
CERT_TRUST_CTL_IS_NOT_VALID_FOR_USAGE = 0x00080000
|
||||||
|
CERT_TRUST_HAS_WEAK_SIGNATURE = 0x00100000
|
||||||
CERT_TRUST_IS_OFFLINE_REVOCATION = 0x01000000
|
CERT_TRUST_IS_OFFLINE_REVOCATION = 0x01000000
|
||||||
CERT_TRUST_NO_ISSUANCE_CHAIN_POLICY = 0x02000000
|
CERT_TRUST_NO_ISSUANCE_CHAIN_POLICY = 0x02000000
|
||||||
CERT_TRUST_IS_EXPLICIT_DISTRUST = 0x04000000
|
CERT_TRUST_IS_EXPLICIT_DISTRUST = 0x04000000
|
||||||
CERT_TRUST_HAS_NOT_SUPPORTED_CRITICAL_EXT = 0x08000000
|
CERT_TRUST_HAS_NOT_SUPPORTED_CRITICAL_EXT = 0x08000000
|
||||||
|
|
||||||
|
/* InfoStatus values for CertTrustStatus struct */
|
||||||
|
CERT_TRUST_HAS_EXACT_MATCH_ISSUER = 0x00000001
|
||||||
|
CERT_TRUST_HAS_KEY_MATCH_ISSUER = 0x00000002
|
||||||
|
CERT_TRUST_HAS_NAME_MATCH_ISSUER = 0x00000004
|
||||||
|
CERT_TRUST_IS_SELF_SIGNED = 0x00000008
|
||||||
|
CERT_TRUST_HAS_PREFERRED_ISSUER = 0x00000100
|
||||||
|
CERT_TRUST_HAS_ISSUANCE_CHAIN_POLICY = 0x00000400
|
||||||
|
CERT_TRUST_HAS_VALID_NAME_CONSTRAINTS = 0x00000400
|
||||||
|
CERT_TRUST_IS_PEER_TRUSTED = 0x00000800
|
||||||
|
CERT_TRUST_HAS_CRL_VALIDITY_EXTENDED = 0x00001000
|
||||||
|
CERT_TRUST_IS_FROM_EXCLUSIVE_TRUST_STORE = 0x00002000
|
||||||
|
CERT_TRUST_IS_CA_TRUSTED = 0x00004000
|
||||||
|
CERT_TRUST_IS_COMPLEX_CHAIN = 0x00010000
|
||||||
|
|
||||||
|
/* policyOID values for CertVerifyCertificateChainPolicy function */
|
||||||
CERT_CHAIN_POLICY_BASE = 1
|
CERT_CHAIN_POLICY_BASE = 1
|
||||||
CERT_CHAIN_POLICY_AUTHENTICODE = 2
|
CERT_CHAIN_POLICY_AUTHENTICODE = 2
|
||||||
CERT_CHAIN_POLICY_AUTHENTICODE_TS = 3
|
CERT_CHAIN_POLICY_AUTHENTICODE_TS = 3
|
||||||
|
@ -308,6 +400,7 @@ const (
|
||||||
CERT_CHAIN_POLICY_NT_AUTH = 6
|
CERT_CHAIN_POLICY_NT_AUTH = 6
|
||||||
CERT_CHAIN_POLICY_MICROSOFT_ROOT = 7
|
CERT_CHAIN_POLICY_MICROSOFT_ROOT = 7
|
||||||
CERT_CHAIN_POLICY_EV = 8
|
CERT_CHAIN_POLICY_EV = 8
|
||||||
|
CERT_CHAIN_POLICY_SSL_F12 = 9
|
||||||
|
|
||||||
CERT_E_EXPIRED = 0x800B0101
|
CERT_E_EXPIRED = 0x800B0101
|
||||||
CERT_E_ROLE = 0x800B0103
|
CERT_E_ROLE = 0x800B0103
|
||||||
|
@ -315,8 +408,16 @@ const (
|
||||||
CERT_E_UNTRUSTEDROOT = 0x800B0109
|
CERT_E_UNTRUSTEDROOT = 0x800B0109
|
||||||
CERT_E_CN_NO_MATCH = 0x800B010F
|
CERT_E_CN_NO_MATCH = 0x800B010F
|
||||||
|
|
||||||
|
/* AuthType values for SSLExtraCertChainPolicyPara struct */
|
||||||
AUTHTYPE_CLIENT = 1
|
AUTHTYPE_CLIENT = 1
|
||||||
AUTHTYPE_SERVER = 2
|
AUTHTYPE_SERVER = 2
|
||||||
|
|
||||||
|
/* Checks values for SSLExtraCertChainPolicyPara struct */
|
||||||
|
SECURITY_FLAG_IGNORE_REVOCATION = 0x00000080
|
||||||
|
SECURITY_FLAG_IGNORE_UNKNOWN_CA = 0x00000100
|
||||||
|
SECURITY_FLAG_IGNORE_WRONG_USAGE = 0x00000200
|
||||||
|
SECURITY_FLAG_IGNORE_CERT_CN_INVALID = 0x00001000
|
||||||
|
SECURITY_FLAG_IGNORE_CERT_DATE_INVALID = 0x00002000
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue