mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-06 08:43:56 +00:00
update pkg to newest
This commit is contained in:
parent
7a0ed03500
commit
9ae6598e84
13
vendor/github.com/BurntSushi/xgb/xgbgen/COPYING
generated
vendored
13
vendor/github.com/BurntSushi/xgb/xgbgen/COPYING
generated
vendored
@ -1,13 +0,0 @@
|
|||||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
|
||||||
Version 2, December 2004
|
|
||||||
|
|
||||||
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
|
||||||
|
|
||||||
Everyone is permitted to copy and distribute verbatim or modified
|
|
||||||
copies of this license document, and changing it is allowed as long
|
|
||||||
as the name is changed.
|
|
||||||
|
|
||||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
|
||||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
|
||||||
|
|
||||||
0. You just DO WHAT THE FUCK YOU WANT TO.
|
|
2
vendor/github.com/StackExchange/wmi/swbemservices.go
generated
vendored
2
vendor/github.com/StackExchange/wmi/swbemservices.go
generated
vendored
@ -77,7 +77,7 @@ func (s *SWbemServices) process(initError chan error) {
|
|||||||
//fmt.Println("process: starting background thread initialization")
|
//fmt.Println("process: starting background thread initialization")
|
||||||
//All OLE/WMI calls must happen on the same initialized thead, so lock this goroutine
|
//All OLE/WMI calls must happen on the same initialized thead, so lock this goroutine
|
||||||
runtime.LockOSThread()
|
runtime.LockOSThread()
|
||||||
defer runtime.LockOSThread()
|
defer runtime.UnlockOSThread()
|
||||||
|
|
||||||
err := ole.CoInitializeEx(0, ole.COINIT_MULTITHREADED)
|
err := ole.CoInitializeEx(0, ole.COINIT_MULTITHREADED)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
4
vendor/github.com/StackExchange/wmi/wmi.go
generated
vendored
4
vendor/github.com/StackExchange/wmi/wmi.go
generated
vendored
@ -285,6 +285,10 @@ func (c *Client) loadEntity(dst interface{}, src *ole.IDispatch) (errFieldMismat
|
|||||||
}
|
}
|
||||||
defer prop.Clear()
|
defer prop.Clear()
|
||||||
|
|
||||||
|
if prop.Value() == nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
switch val := prop.Value().(type) {
|
switch val := prop.Value().(type) {
|
||||||
case int8, int16, int32, int64, int:
|
case int8, int16, int32, int64, int:
|
||||||
v := reflect.ValueOf(val).Int()
|
v := reflect.ValueOf(val).Int()
|
||||||
|
2
vendor/github.com/robotn/gohook/appveyor.yml
generated
vendored
2
vendor/github.com/robotn/gohook/appveyor.yml
generated
vendored
@ -34,7 +34,7 @@ environment:
|
|||||||
PATH: C:\msys64\mingw32\bin\;C:\Program Files (x86)\NSIS\;%PATH%
|
PATH: C:\msys64\mingw32\bin\;C:\Program Files (x86)\NSIS\;%PATH%
|
||||||
# - COMPILER: MINGW_W64
|
# - COMPILER: MINGW_W64
|
||||||
# ARCHITECTURE: x64
|
# ARCHITECTURE: x64
|
||||||
GOVERSION: 1.10.4
|
GOVERSION: 1.11.2
|
||||||
# GOPATH: c:\gopath
|
# GOPATH: c:\gopath
|
||||||
|
|
||||||
# scripts that run after cloning repository
|
# scripts that run after cloning repository
|
||||||
|
6
vendor/github.com/robotn/gohook/event/goEvent.h
generated
vendored
6
vendor/github.com/robotn/gohook/event/goEvent.h
generated
vendored
@ -49,7 +49,7 @@ void dispatch_proc(iohook_event * const event) {
|
|||||||
snprintf(buffer + length, sizeof(buffer) - length,
|
snprintf(buffer + length, sizeof(buffer) - length,
|
||||||
",keycode=%u,rawcode=0x%X",
|
",keycode=%u,rawcode=0x%X",
|
||||||
event->data.keyboard.keycode, event->data.keyboard.rawcode);
|
event->data.keyboard.keycode, event->data.keyboard.rawcode);
|
||||||
int akeyCode = (uint16_t) event->data.keyboard.keycode;
|
int key_code = (uint16_t) event->data.keyboard.keycode;
|
||||||
|
|
||||||
if (event->data.keyboard.keycode == VC_ESCAPE
|
if (event->data.keyboard.keycode == VC_ESCAPE
|
||||||
&& atoi(cevent) == 11) {
|
&& atoi(cevent) == 11) {
|
||||||
@ -59,7 +59,7 @@ void dispatch_proc(iohook_event * const event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// printf("atoi(str)---%d\n", atoi(cevent));
|
// printf("atoi(str)---%d\n", atoi(cevent));
|
||||||
if (akeyCode == atoi(cevent)) {
|
if (key_code == atoi(cevent)) {
|
||||||
int stopEvent = stop_event();
|
int stopEvent = stop_event();
|
||||||
// printf("%d\n", stopEvent);
|
// printf("%d\n", stopEvent);
|
||||||
cstatus = 0;
|
cstatus = 0;
|
||||||
@ -149,7 +149,7 @@ int add_event(char *key_event) {
|
|||||||
// (uint16_t *)
|
// (uint16_t *)
|
||||||
cevent = key_event;
|
cevent = key_event;
|
||||||
// Set the logger callback for library output.
|
// Set the logger callback for library output.
|
||||||
hookSetlogger(&loggerProc);
|
hook_set_logger(&loggerProc);
|
||||||
|
|
||||||
// Set the event callback for IOhook events.
|
// Set the event callback for IOhook events.
|
||||||
hook_set_dispatch_proc(&dispatch_proc);
|
hook_set_dispatch_proc(&dispatch_proc);
|
||||||
|
1
vendor/github.com/robotn/gohook/event/pub.h
generated
vendored
1
vendor/github.com/robotn/gohook/event/pub.h
generated
vendored
@ -43,6 +43,7 @@ char *cevent;
|
|||||||
int rrevent;
|
int rrevent;
|
||||||
// uint16_t *cevent;
|
// uint16_t *cevent;
|
||||||
int cstatus = 1;
|
int cstatus = 1;
|
||||||
|
int event_status;
|
||||||
|
|
||||||
|
|
||||||
int stop_event();
|
int stop_event();
|
||||||
|
2
vendor/github.com/robotn/gohook/hook/logger_c.h
generated
vendored
2
vendor/github.com/robotn/gohook/hook/logger_c.h
generated
vendored
@ -50,7 +50,7 @@ static bool default_logger(unsigned int level, const char *format, ...) {
|
|||||||
logger_t logger = &default_logger;
|
logger_t logger = &default_logger;
|
||||||
|
|
||||||
|
|
||||||
IOHOOK_API void hookSetlogger(logger_t logger_proc) {
|
IOHOOK_API void hook_set_logger(logger_t logger_proc) {
|
||||||
if (logger_proc == NULL) {
|
if (logger_proc == NULL) {
|
||||||
logger = &default_logger;
|
logger = &default_logger;
|
||||||
}
|
}
|
||||||
|
25
vendor/github.com/shirou/gopsutil/cpu/cpu_linux.go
generated
vendored
25
vendor/github.com/shirou/gopsutil/cpu/cpu_linux.go
generated
vendored
@ -13,7 +13,7 @@ import (
|
|||||||
"github.com/shirou/gopsutil/internal/common"
|
"github.com/shirou/gopsutil/internal/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
var cpu_tick = float64(100)
|
var CPUTick = float64(100)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
getconf, err := exec.LookPath("/usr/bin/getconf")
|
getconf, err := exec.LookPath("/usr/bin/getconf")
|
||||||
@ -25,7 +25,7 @@ func init() {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
i, err := strconv.ParseFloat(strings.TrimSpace(string(out)), 64)
|
i, err := strconv.ParseFloat(strings.TrimSpace(string(out)), 64)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
cpu_tick = float64(i)
|
CPUTick = i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -212,7 +212,6 @@ func parseStatLine(line string) (*TimesStat, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if strings.HasPrefix(fields[0], "cpu") == false {
|
if strings.HasPrefix(fields[0], "cpu") == false {
|
||||||
// return CPUTimesStat{}, e
|
|
||||||
return nil, errors.New("not contain cpu")
|
return nil, errors.New("not contain cpu")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -251,34 +250,34 @@ func parseStatLine(line string) (*TimesStat, error) {
|
|||||||
|
|
||||||
ct := &TimesStat{
|
ct := &TimesStat{
|
||||||
CPU: cpu,
|
CPU: cpu,
|
||||||
User: float64(user) / cpu_tick,
|
User: user / CPUTick,
|
||||||
Nice: float64(nice) / cpu_tick,
|
Nice: nice / CPUTick,
|
||||||
System: float64(system) / cpu_tick,
|
System: system / CPUTick,
|
||||||
Idle: float64(idle) / cpu_tick,
|
Idle: idle / CPUTick,
|
||||||
Iowait: float64(iowait) / cpu_tick,
|
Iowait: iowait / CPUTick,
|
||||||
Irq: float64(irq) / cpu_tick,
|
Irq: irq / CPUTick,
|
||||||
Softirq: float64(softirq) / cpu_tick,
|
Softirq: softirq / CPUTick,
|
||||||
}
|
}
|
||||||
if len(fields) > 8 { // Linux >= 2.6.11
|
if len(fields) > 8 { // Linux >= 2.6.11
|
||||||
steal, err := strconv.ParseFloat(fields[8], 64)
|
steal, err := strconv.ParseFloat(fields[8], 64)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
ct.Steal = float64(steal) / cpu_tick
|
ct.Steal = steal / CPUTick
|
||||||
}
|
}
|
||||||
if len(fields) > 9 { // Linux >= 2.6.24
|
if len(fields) > 9 { // Linux >= 2.6.24
|
||||||
guest, err := strconv.ParseFloat(fields[9], 64)
|
guest, err := strconv.ParseFloat(fields[9], 64)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
ct.Guest = float64(guest) / cpu_tick
|
ct.Guest = guest / CPUTick
|
||||||
}
|
}
|
||||||
if len(fields) > 10 { // Linux >= 3.2.0
|
if len(fields) > 10 { // Linux >= 3.2.0
|
||||||
guestNice, err := strconv.ParseFloat(fields[10], 64)
|
guestNice, err := strconv.ParseFloat(fields[10], 64)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
ct.GuestNice = float64(guestNice) / cpu_tick
|
ct.GuestNice = guestNice / CPUTick
|
||||||
}
|
}
|
||||||
|
|
||||||
return ct, nil
|
return ct, nil
|
||||||
|
17
vendor/github.com/shirou/gopsutil/host/host_darwin.go
generated
vendored
17
vendor/github.com/shirou/gopsutil/host/host_darwin.go
generated
vendored
@ -38,12 +38,9 @@ func InfoWithContext(ctx context.Context) (*InfoStat, error) {
|
|||||||
ret.Hostname = hostname
|
ret.Hostname = hostname
|
||||||
}
|
}
|
||||||
|
|
||||||
uname, err := exec.LookPath("uname")
|
kernelVersion, err := KernelVersionWithContext(ctx)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
out, err := invoke.CommandWithContext(ctx, uname, "-r")
|
ret.KernelVersion = kernelVersion
|
||||||
if err == nil {
|
|
||||||
ret.KernelVersion = strings.ToLower(strings.TrimSpace(string(out)))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
platform, family, pver, err := PlatformInformation()
|
platform, family, pver, err := PlatformInformation()
|
||||||
@ -214,7 +211,15 @@ func KernelVersion() (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func KernelVersionWithContext(ctx context.Context) (string, error) {
|
func KernelVersionWithContext(ctx context.Context) (string, error) {
|
||||||
_, _, version, err := PlatformInformation()
|
uname, err := exec.LookPath("uname")
|
||||||
|
if err != nil {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
|
out, err := invoke.CommandWithContext(ctx, uname, "-r")
|
||||||
|
if err != nil {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
|
version := strings.ToLower(strings.TrimSpace(string(out)))
|
||||||
return version, err
|
return version, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
8
vendor/github.com/shirou/gopsutil/internal/common/common_windows.go
generated
vendored
8
vendor/github.com/shirou/gopsutil/internal/common/common_windows.go
generated
vendored
@ -47,10 +47,10 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
Modkernel32 = windows.NewLazyDLL("kernel32.dll")
|
Modkernel32 = windows.NewLazySystemDLL("kernel32.dll")
|
||||||
ModNt = windows.NewLazyDLL("ntdll.dll")
|
ModNt = windows.NewLazySystemDLL("ntdll.dll")
|
||||||
ModPdh = windows.NewLazyDLL("pdh.dll")
|
ModPdh = windows.NewLazySystemDLL("pdh.dll")
|
||||||
ModPsapi = windows.NewLazyDLL("psapi.dll")
|
ModPsapi = windows.NewLazySystemDLL("psapi.dll")
|
||||||
|
|
||||||
ProcGetSystemTimes = Modkernel32.NewProc("GetSystemTimes")
|
ProcGetSystemTimes = Modkernel32.NewProc("GetSystemTimes")
|
||||||
ProcNtQuerySystemInformation = ModNt.NewProc("NtQuerySystemInformation")
|
ProcNtQuerySystemInformation = ModNt.NewProc("NtQuerySystemInformation")
|
||||||
|
4
vendor/github.com/shirou/gopsutil/mem/mem.go
generated
vendored
4
vendor/github.com/shirou/gopsutil/mem/mem.go
generated
vendored
@ -42,6 +42,10 @@ type VirtualMemoryStat struct {
|
|||||||
Inactive uint64 `json:"inactive"`
|
Inactive uint64 `json:"inactive"`
|
||||||
Wired uint64 `json:"wired"`
|
Wired uint64 `json:"wired"`
|
||||||
|
|
||||||
|
// FreeBSD specific numbers:
|
||||||
|
// https://reviews.freebsd.org/D8467
|
||||||
|
Laundry uint64 `json:"laundry"`
|
||||||
|
|
||||||
// Linux specific numbers
|
// Linux specific numbers
|
||||||
// https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s2-proc-meminfo.html
|
// https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s2-proc-meminfo.html
|
||||||
// https://www.kernel.org/doc/Documentation/filesystems/proc.txt
|
// https://www.kernel.org/doc/Documentation/filesystems/proc.txt
|
||||||
|
24
vendor/github.com/shirou/gopsutil/mem/mem_freebsd.go
generated
vendored
24
vendor/github.com/shirou/gopsutil/mem/mem_freebsd.go
generated
vendored
@ -19,7 +19,7 @@ func VirtualMemoryWithContext(ctx context.Context) (*VirtualMemoryStat, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
pageCount, err := unix.SysctlUint32("vm.stats.vm.v_page_count")
|
physmem, err := unix.SysctlUint64("hw.physmem")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
@ -35,10 +35,6 @@ func VirtualMemoryWithContext(ctx context.Context) (*VirtualMemoryStat, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
cached, err := unix.SysctlUint32("vm.stats.vm.v_cache_count")
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
buffers, err := unix.SysctlUint64("vfs.bufspace")
|
buffers, err := unix.SysctlUint64("vfs.bufspace")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
@ -47,19 +43,33 @@ func VirtualMemoryWithContext(ctx context.Context) (*VirtualMemoryStat, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
var cached, laundry uint32
|
||||||
|
osreldate, _ := unix.SysctlUint32("kern.osreldate")
|
||||||
|
if osreldate < 1102000 {
|
||||||
|
cached, err = unix.SysctlUint32("vm.stats.vm.v_cache_count")
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
laundry, err = unix.SysctlUint32("vm.stats.vm.v_laundry_count")
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
p := uint64(pageSize)
|
p := uint64(pageSize)
|
||||||
ret := &VirtualMemoryStat{
|
ret := &VirtualMemoryStat{
|
||||||
Total: uint64(pageCount) * p,
|
Total: uint64(physmem),
|
||||||
Free: uint64(free) * p,
|
Free: uint64(free) * p,
|
||||||
Active: uint64(active) * p,
|
Active: uint64(active) * p,
|
||||||
Inactive: uint64(inactive) * p,
|
Inactive: uint64(inactive) * p,
|
||||||
Cached: uint64(cached) * p,
|
Cached: uint64(cached) * p,
|
||||||
Buffers: uint64(buffers),
|
Buffers: uint64(buffers),
|
||||||
Wired: uint64(wired) * p,
|
Wired: uint64(wired) * p,
|
||||||
|
Laundry: uint64(laundry) * p,
|
||||||
}
|
}
|
||||||
|
|
||||||
ret.Available = ret.Inactive + ret.Cached + ret.Free
|
ret.Available = ret.Inactive + ret.Cached + ret.Free + ret.Laundry
|
||||||
ret.Used = ret.Total - ret.Available
|
ret.Used = ret.Total - ret.Available
|
||||||
ret.UsedPercent = float64(ret.Used) / float64(ret.Total) * 100.0
|
ret.UsedPercent = float64(ret.Used) / float64(ret.Total) * 100.0
|
||||||
|
|
||||||
|
4
vendor/github.com/shirou/gopsutil/net/net_linux.go
generated
vendored
4
vendor/github.com/shirou/gopsutil/net/net_linux.go
generated
vendored
@ -395,9 +395,7 @@ func statsFromInodes(root string, pid int32, tmap []netConnectionKindType, inode
|
|||||||
var ls []connTmp
|
var ls []connTmp
|
||||||
path = fmt.Sprintf("%s/net/%s", root, t.filename)
|
path = fmt.Sprintf("%s/net/%s", root, t.filename)
|
||||||
switch t.family {
|
switch t.family {
|
||||||
case syscall.AF_INET:
|
case syscall.AF_INET, syscall.AF_INET6:
|
||||||
fallthrough
|
|
||||||
case syscall.AF_INET6:
|
|
||||||
ls, err = processInet(path, t, inodes, pid)
|
ls, err = processInet(path, t, inodes, pid)
|
||||||
case syscall.AF_UNIX:
|
case syscall.AF_UNIX:
|
||||||
ls, err = processUnix(path, t, inodes, pid)
|
ls, err = processUnix(path, t, inodes, pid)
|
||||||
|
533
vendor/github.com/shirou/gopsutil/net/net_windows.go
generated
vendored
533
vendor/github.com/shirou/gopsutil/net/net_windows.go
generated
vendored
@ -5,15 +5,18 @@ package net
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
"os"
|
"os"
|
||||||
|
"syscall"
|
||||||
|
"unsafe"
|
||||||
|
|
||||||
"github.com/shirou/gopsutil/internal/common"
|
"github.com/shirou/gopsutil/internal/common"
|
||||||
"golang.org/x/sys/windows"
|
"golang.org/x/sys/windows"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
modiphlpapi = windows.NewLazyDLL("iphlpapi.dll")
|
modiphlpapi = windows.NewLazySystemDLL("iphlpapi.dll")
|
||||||
procGetExtendedTCPTable = modiphlpapi.NewProc("GetExtendedTcpTable")
|
procGetExtendedTCPTable = modiphlpapi.NewProc("GetExtendedTcpTable")
|
||||||
procGetExtendedUDPTable = modiphlpapi.NewProc("GetExtendedUdpTable")
|
procGetExtendedUDPTable = modiphlpapi.NewProc("GetExtendedUdpTable")
|
||||||
)
|
)
|
||||||
@ -30,6 +33,46 @@ const (
|
|||||||
TCPTableOwnerModuleAll
|
TCPTableOwnerModuleAll
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type netConnectionKindType struct {
|
||||||
|
family uint32
|
||||||
|
sockType uint32
|
||||||
|
filename string
|
||||||
|
}
|
||||||
|
|
||||||
|
var kindTCP4 = netConnectionKindType{
|
||||||
|
family: syscall.AF_INET,
|
||||||
|
sockType: syscall.SOCK_STREAM,
|
||||||
|
filename: "tcp",
|
||||||
|
}
|
||||||
|
var kindTCP6 = netConnectionKindType{
|
||||||
|
family: syscall.AF_INET6,
|
||||||
|
sockType: syscall.SOCK_STREAM,
|
||||||
|
filename: "tcp6",
|
||||||
|
}
|
||||||
|
var kindUDP4 = netConnectionKindType{
|
||||||
|
family: syscall.AF_INET,
|
||||||
|
sockType: syscall.SOCK_DGRAM,
|
||||||
|
filename: "udp",
|
||||||
|
}
|
||||||
|
var kindUDP6 = netConnectionKindType{
|
||||||
|
family: syscall.AF_INET6,
|
||||||
|
sockType: syscall.SOCK_DGRAM,
|
||||||
|
filename: "udp6",
|
||||||
|
}
|
||||||
|
|
||||||
|
var netConnectionKindMap = map[string][]netConnectionKindType{
|
||||||
|
"all": {kindTCP4, kindTCP6, kindUDP4, kindUDP6},
|
||||||
|
"tcp": {kindTCP4, kindTCP6},
|
||||||
|
"tcp4": {kindTCP4},
|
||||||
|
"tcp6": {kindTCP6},
|
||||||
|
"udp": {kindUDP4, kindUDP6},
|
||||||
|
"udp4": {kindUDP4},
|
||||||
|
"udp6": {kindUDP6},
|
||||||
|
"inet": {kindTCP4, kindTCP6, kindUDP4, kindUDP6},
|
||||||
|
"inet4": {kindTCP4, kindUDP4},
|
||||||
|
"inet6": {kindTCP6, kindUDP6},
|
||||||
|
}
|
||||||
|
|
||||||
func IOCounters(pernic bool) ([]IOCountersStat, error) {
|
func IOCounters(pernic bool) ([]IOCountersStat, error) {
|
||||||
return IOCountersWithContext(context.Background(), pernic)
|
return IOCountersWithContext(context.Background(), pernic)
|
||||||
}
|
}
|
||||||
@ -78,15 +121,71 @@ func IOCountersByFileWithContext(ctx context.Context, pernic bool, filename stri
|
|||||||
return IOCounters(pernic)
|
return IOCounters(pernic)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return a list of network connections opened by a process
|
// Return a list of network connections
|
||||||
|
// Available kind:
|
||||||
|
// reference to netConnectionKindMap
|
||||||
func Connections(kind string) ([]ConnectionStat, error) {
|
func Connections(kind string) ([]ConnectionStat, error) {
|
||||||
return ConnectionsWithContext(context.Background(), kind)
|
return ConnectionsWithContext(context.Background(), kind)
|
||||||
}
|
}
|
||||||
|
|
||||||
func ConnectionsWithContext(ctx context.Context, kind string) ([]ConnectionStat, error) {
|
func ConnectionsWithContext(ctx context.Context, kind string) ([]ConnectionStat, error) {
|
||||||
var ret []ConnectionStat
|
return ConnectionsPidWithContext(ctx, kind, 0)
|
||||||
|
}
|
||||||
|
|
||||||
return ret, common.ErrNotImplementedError
|
// ConnectionsPid Return a list of network connections opened by a process
|
||||||
|
func ConnectionsPid(kind string, pid int32) ([]ConnectionStat, error) {
|
||||||
|
return ConnectionsPidWithContext(context.Background(), kind, pid)
|
||||||
|
}
|
||||||
|
|
||||||
|
func ConnectionsPidWithContext(ctx context.Context, kind string, pid int32) ([]ConnectionStat, error) {
|
||||||
|
tmap, ok := netConnectionKindMap[kind]
|
||||||
|
if !ok {
|
||||||
|
return nil, fmt.Errorf("invalid kind, %s", kind)
|
||||||
|
}
|
||||||
|
return getProcInet(tmap, pid)
|
||||||
|
}
|
||||||
|
|
||||||
|
func getProcInet(kinds []netConnectionKindType, pid int32) ([]ConnectionStat, error) {
|
||||||
|
stats := make([]ConnectionStat, 0)
|
||||||
|
|
||||||
|
for _, kind := range kinds {
|
||||||
|
s, err := getNetStatWithKind(kind)
|
||||||
|
if err != nil {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
if pid == 0 {
|
||||||
|
stats = append(stats, s...)
|
||||||
|
} else {
|
||||||
|
for _, ns := range s {
|
||||||
|
if ns.Pid != pid {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
stats = append(stats, ns)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return stats, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func getNetStatWithKind(kindType netConnectionKindType) ([]ConnectionStat, error) {
|
||||||
|
if kindType.filename == "" {
|
||||||
|
return nil, fmt.Errorf("kind filename must be required")
|
||||||
|
}
|
||||||
|
|
||||||
|
switch kindType.filename {
|
||||||
|
case kindTCP4.filename:
|
||||||
|
return getTCPConnections(kindTCP4.family)
|
||||||
|
case kindTCP6.filename:
|
||||||
|
return getTCPConnections(kindTCP6.family)
|
||||||
|
case kindUDP4.filename:
|
||||||
|
return getUDPConnections(kindUDP4.family)
|
||||||
|
case kindUDP6.filename:
|
||||||
|
return getUDPConnections(kindUDP6.family)
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil, fmt.Errorf("invalid kind filename, %s", kindType.filename)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return a list of network connections opened returning at most `max`
|
// Return a list of network connections opened returning at most `max`
|
||||||
@ -118,3 +217,429 @@ func ProtoCounters(protocols []string) ([]ProtoCountersStat, error) {
|
|||||||
func ProtoCountersWithContext(ctx context.Context, protocols []string) ([]ProtoCountersStat, error) {
|
func ProtoCountersWithContext(ctx context.Context, protocols []string) ([]ProtoCountersStat, error) {
|
||||||
return nil, errors.New("NetProtoCounters not implemented for windows")
|
return nil, errors.New("NetProtoCounters not implemented for windows")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func getTableUintptr(family uint32, buf []byte) uintptr {
|
||||||
|
var (
|
||||||
|
pmibTCPTable pmibTCPTableOwnerPidAll
|
||||||
|
pmibTCP6Table pmibTCP6TableOwnerPidAll
|
||||||
|
|
||||||
|
p uintptr
|
||||||
|
)
|
||||||
|
switch family {
|
||||||
|
case kindTCP4.family:
|
||||||
|
if len(buf) > 0 {
|
||||||
|
pmibTCPTable = (*mibTCPTableOwnerPid)(unsafe.Pointer(&buf[0]))
|
||||||
|
p = uintptr(unsafe.Pointer(pmibTCPTable))
|
||||||
|
} else {
|
||||||
|
p = uintptr(unsafe.Pointer(pmibTCPTable))
|
||||||
|
}
|
||||||
|
case kindTCP6.family:
|
||||||
|
if len(buf) > 0 {
|
||||||
|
pmibTCP6Table = (*mibTCP6TableOwnerPid)(unsafe.Pointer(&buf[0]))
|
||||||
|
p = uintptr(unsafe.Pointer(pmibTCP6Table))
|
||||||
|
} else {
|
||||||
|
p = uintptr(unsafe.Pointer(pmibTCP6Table))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return p
|
||||||
|
}
|
||||||
|
|
||||||
|
func getTableInfo(filename string, table interface{}) (index, step, length int) {
|
||||||
|
switch filename {
|
||||||
|
case kindTCP4.filename:
|
||||||
|
index = int(unsafe.Sizeof(table.(pmibTCPTableOwnerPidAll).DwNumEntries))
|
||||||
|
step = int(unsafe.Sizeof(table.(pmibTCPTableOwnerPidAll).Table))
|
||||||
|
length = int(table.(pmibTCPTableOwnerPidAll).DwNumEntries)
|
||||||
|
case kindTCP6.filename:
|
||||||
|
index = int(unsafe.Sizeof(table.(pmibTCP6TableOwnerPidAll).DwNumEntries))
|
||||||
|
step = int(unsafe.Sizeof(table.(pmibTCP6TableOwnerPidAll).Table))
|
||||||
|
length = int(table.(pmibTCP6TableOwnerPidAll).DwNumEntries)
|
||||||
|
case kindUDP4.filename:
|
||||||
|
index = int(unsafe.Sizeof(table.(pmibUDPTableOwnerPid).DwNumEntries))
|
||||||
|
step = int(unsafe.Sizeof(table.(pmibUDPTableOwnerPid).Table))
|
||||||
|
length = int(table.(pmibUDPTableOwnerPid).DwNumEntries)
|
||||||
|
case kindUDP6.filename:
|
||||||
|
index = int(unsafe.Sizeof(table.(pmibUDP6TableOwnerPid).DwNumEntries))
|
||||||
|
step = int(unsafe.Sizeof(table.(pmibUDP6TableOwnerPid).Table))
|
||||||
|
length = int(table.(pmibUDP6TableOwnerPid).DwNumEntries)
|
||||||
|
}
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func getTCPConnections(family uint32) ([]ConnectionStat, error) {
|
||||||
|
var (
|
||||||
|
p uintptr
|
||||||
|
buf []byte
|
||||||
|
size uint32
|
||||||
|
|
||||||
|
pmibTCPTable pmibTCPTableOwnerPidAll
|
||||||
|
pmibTCP6Table pmibTCP6TableOwnerPidAll
|
||||||
|
)
|
||||||
|
|
||||||
|
if family == 0 {
|
||||||
|
return nil, fmt.Errorf("faimly must be required")
|
||||||
|
}
|
||||||
|
|
||||||
|
for {
|
||||||
|
switch family {
|
||||||
|
case kindTCP4.family:
|
||||||
|
if len(buf) > 0 {
|
||||||
|
pmibTCPTable = (*mibTCPTableOwnerPid)(unsafe.Pointer(&buf[0]))
|
||||||
|
p = uintptr(unsafe.Pointer(pmibTCPTable))
|
||||||
|
} else {
|
||||||
|
p = uintptr(unsafe.Pointer(pmibTCPTable))
|
||||||
|
}
|
||||||
|
case kindTCP6.family:
|
||||||
|
if len(buf) > 0 {
|
||||||
|
pmibTCP6Table = (*mibTCP6TableOwnerPid)(unsafe.Pointer(&buf[0]))
|
||||||
|
p = uintptr(unsafe.Pointer(pmibTCP6Table))
|
||||||
|
} else {
|
||||||
|
p = uintptr(unsafe.Pointer(pmibTCP6Table))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
err := getExtendedTcpTable(p,
|
||||||
|
&size,
|
||||||
|
true,
|
||||||
|
family,
|
||||||
|
tcpTableOwnerPidAll,
|
||||||
|
0)
|
||||||
|
if err == nil {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
if err != windows.ERROR_INSUFFICIENT_BUFFER {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
buf = make([]byte, size)
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
index, step int
|
||||||
|
length int
|
||||||
|
)
|
||||||
|
|
||||||
|
stats := make([]ConnectionStat, 0)
|
||||||
|
switch family {
|
||||||
|
case kindTCP4.family:
|
||||||
|
index, step, length = getTableInfo(kindTCP4.filename, pmibTCPTable)
|
||||||
|
case kindTCP6.family:
|
||||||
|
index, step, length = getTableInfo(kindTCP6.filename, pmibTCP6Table)
|
||||||
|
}
|
||||||
|
|
||||||
|
if length == 0 {
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
for i := 0; i < length; i++ {
|
||||||
|
switch family {
|
||||||
|
case kindTCP4.family:
|
||||||
|
mibs := (*mibTCPRowOwnerPid)(unsafe.Pointer(&buf[index]))
|
||||||
|
ns := mibs.convertToConnectionStat()
|
||||||
|
stats = append(stats, ns)
|
||||||
|
case kindTCP6.family:
|
||||||
|
mibs := (*mibTCP6RowOwnerPid)(unsafe.Pointer(&buf[index]))
|
||||||
|
ns := mibs.convertToConnectionStat()
|
||||||
|
stats = append(stats, ns)
|
||||||
|
}
|
||||||
|
|
||||||
|
index += step
|
||||||
|
}
|
||||||
|
return stats, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func getUDPConnections(family uint32) ([]ConnectionStat, error) {
|
||||||
|
var (
|
||||||
|
p uintptr
|
||||||
|
buf []byte
|
||||||
|
size uint32
|
||||||
|
|
||||||
|
pmibUDPTable pmibUDPTableOwnerPid
|
||||||
|
pmibUDP6Table pmibUDP6TableOwnerPid
|
||||||
|
)
|
||||||
|
|
||||||
|
if family == 0 {
|
||||||
|
return nil, fmt.Errorf("faimly must be required")
|
||||||
|
}
|
||||||
|
|
||||||
|
for {
|
||||||
|
switch family {
|
||||||
|
case kindUDP4.family:
|
||||||
|
if len(buf) > 0 {
|
||||||
|
pmibUDPTable = (*mibUDPTableOwnerPid)(unsafe.Pointer(&buf[0]))
|
||||||
|
p = uintptr(unsafe.Pointer(pmibUDPTable))
|
||||||
|
} else {
|
||||||
|
p = uintptr(unsafe.Pointer(pmibUDPTable))
|
||||||
|
}
|
||||||
|
case kindUDP6.family:
|
||||||
|
if len(buf) > 0 {
|
||||||
|
pmibUDP6Table = (*mibUDP6TableOwnerPid)(unsafe.Pointer(&buf[0]))
|
||||||
|
p = uintptr(unsafe.Pointer(pmibUDP6Table))
|
||||||
|
} else {
|
||||||
|
p = uintptr(unsafe.Pointer(pmibUDP6Table))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
err := getExtendedUdpTable(
|
||||||
|
p,
|
||||||
|
&size,
|
||||||
|
true,
|
||||||
|
family,
|
||||||
|
udpTableOwnerPid,
|
||||||
|
0,
|
||||||
|
)
|
||||||
|
if err == nil {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
if err != windows.ERROR_INSUFFICIENT_BUFFER {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
buf = make([]byte, size)
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
index, step, length int
|
||||||
|
)
|
||||||
|
|
||||||
|
stats := make([]ConnectionStat, 0)
|
||||||
|
switch family {
|
||||||
|
case kindUDP4.family:
|
||||||
|
index, step, length = getTableInfo(kindUDP4.filename, pmibUDPTable)
|
||||||
|
case kindUDP6.family:
|
||||||
|
index, step, length = getTableInfo(kindUDP6.filename, pmibUDP6Table)
|
||||||
|
}
|
||||||
|
|
||||||
|
if length == 0 {
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
for i := 0; i < length; i++ {
|
||||||
|
switch family {
|
||||||
|
case kindUDP4.family:
|
||||||
|
mibs := (*mibUDPRowOwnerPid)(unsafe.Pointer(&buf[index]))
|
||||||
|
ns := mibs.convertToConnectionStat()
|
||||||
|
stats = append(stats, ns)
|
||||||
|
case kindUDP4.family:
|
||||||
|
mibs := (*mibUDP6RowOwnerPid)(unsafe.Pointer(&buf[index]))
|
||||||
|
ns := mibs.convertToConnectionStat()
|
||||||
|
stats = append(stats, ns)
|
||||||
|
}
|
||||||
|
|
||||||
|
index += step
|
||||||
|
}
|
||||||
|
return stats, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// tcpStatuses https://msdn.microsoft.com/en-us/library/windows/desktop/bb485761(v=vs.85).aspx
|
||||||
|
var tcpStatuses = map[mibTCPState]string{
|
||||||
|
1: "CLOSED",
|
||||||
|
2: "LISTEN",
|
||||||
|
3: "SYN_SENT",
|
||||||
|
4: "SYN_RECEIVED",
|
||||||
|
5: "ESTABLISHED",
|
||||||
|
6: "FIN_WAIT_1",
|
||||||
|
7: "FIN_WAIT_2",
|
||||||
|
8: "CLOSE_WAIT",
|
||||||
|
9: "CLOSING",
|
||||||
|
10: "LAST_ACK",
|
||||||
|
11: "TIME_WAIT",
|
||||||
|
12: "DELETE",
|
||||||
|
}
|
||||||
|
|
||||||
|
func getExtendedTcpTable(pTcpTable uintptr, pdwSize *uint32, bOrder bool, ulAf uint32, tableClass tcpTableClass, reserved uint32) (errcode error) {
|
||||||
|
r1, _, _ := syscall.Syscall6(procGetExtendedTCPTable.Addr(), 6, pTcpTable, uintptr(unsafe.Pointer(pdwSize)), getUintptrFromBool(bOrder), uintptr(ulAf), uintptr(tableClass), uintptr(reserved))
|
||||||
|
if r1 != 0 {
|
||||||
|
errcode = syscall.Errno(r1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func getExtendedUdpTable(pUdpTable uintptr, pdwSize *uint32, bOrder bool, ulAf uint32, tableClass udpTableClass, reserved uint32) (errcode error) {
|
||||||
|
r1, _, _ := syscall.Syscall6(procGetExtendedUDPTable.Addr(), 6, pUdpTable, uintptr(unsafe.Pointer(pdwSize)), getUintptrFromBool(bOrder), uintptr(ulAf), uintptr(tableClass), uintptr(reserved))
|
||||||
|
if r1 != 0 {
|
||||||
|
errcode = syscall.Errno(r1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func getUintptrFromBool(b bool) uintptr {
|
||||||
|
if b {
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
const anySize = 1
|
||||||
|
|
||||||
|
// type MIB_TCP_STATE int32
|
||||||
|
type mibTCPState int32
|
||||||
|
|
||||||
|
type tcpTableClass int32
|
||||||
|
|
||||||
|
const (
|
||||||
|
tcpTableBasicListener tcpTableClass = iota
|
||||||
|
tcpTableBasicConnections
|
||||||
|
tcpTableBasicAll
|
||||||
|
tcpTableOwnerPidListener
|
||||||
|
tcpTableOwnerPidConnections
|
||||||
|
tcpTableOwnerPidAll
|
||||||
|
tcpTableOwnerModuleListener
|
||||||
|
tcpTableOwnerModuleConnections
|
||||||
|
tcpTableOwnerModuleAll
|
||||||
|
)
|
||||||
|
|
||||||
|
type udpTableClass int32
|
||||||
|
|
||||||
|
const (
|
||||||
|
udpTableBasic udpTableClass = iota
|
||||||
|
udpTableOwnerPid
|
||||||
|
udpTableOwnerModule
|
||||||
|
)
|
||||||
|
|
||||||
|
// TCP
|
||||||
|
|
||||||
|
type mibTCPRowOwnerPid struct {
|
||||||
|
DwState uint32
|
||||||
|
DwLocalAddr uint32
|
||||||
|
DwLocalPort uint32
|
||||||
|
DwRemoteAddr uint32
|
||||||
|
DwRemotePort uint32
|
||||||
|
DwOwningPid uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *mibTCPRowOwnerPid) convertToConnectionStat() ConnectionStat {
|
||||||
|
ns := ConnectionStat{
|
||||||
|
Family: kindTCP4.family,
|
||||||
|
Type: kindTCP4.sockType,
|
||||||
|
Laddr: Addr{
|
||||||
|
IP: parseIPv4HexString(m.DwLocalAddr),
|
||||||
|
Port: uint32(decodePort(m.DwLocalPort)),
|
||||||
|
},
|
||||||
|
Raddr: Addr{
|
||||||
|
IP: parseIPv4HexString(m.DwRemoteAddr),
|
||||||
|
Port: uint32(decodePort(m.DwRemotePort)),
|
||||||
|
},
|
||||||
|
Pid: int32(m.DwOwningPid),
|
||||||
|
Status: tcpStatuses[mibTCPState(m.DwState)],
|
||||||
|
}
|
||||||
|
|
||||||
|
return ns
|
||||||
|
}
|
||||||
|
|
||||||
|
type mibTCPTableOwnerPid struct {
|
||||||
|
DwNumEntries uint32
|
||||||
|
Table [anySize]mibTCPRowOwnerPid
|
||||||
|
}
|
||||||
|
|
||||||
|
type mibTCP6RowOwnerPid struct {
|
||||||
|
UcLocalAddr [16]byte
|
||||||
|
DwLocalScopeId uint32
|
||||||
|
DwLocalPort uint32
|
||||||
|
UcRemoteAddr [16]byte
|
||||||
|
DwRemoteScopeId uint32
|
||||||
|
DwRemotePort uint32
|
||||||
|
DwState uint32
|
||||||
|
DwOwningPid uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *mibTCP6RowOwnerPid) convertToConnectionStat() ConnectionStat {
|
||||||
|
ns := ConnectionStat{
|
||||||
|
Family: kindTCP6.family,
|
||||||
|
Type: kindTCP6.sockType,
|
||||||
|
Laddr: Addr{
|
||||||
|
IP: parseIPv6HexString(m.UcLocalAddr),
|
||||||
|
Port: uint32(decodePort(m.DwLocalPort)),
|
||||||
|
},
|
||||||
|
Raddr: Addr{
|
||||||
|
IP: parseIPv6HexString(m.UcRemoteAddr),
|
||||||
|
Port: uint32(decodePort(m.DwRemotePort)),
|
||||||
|
},
|
||||||
|
Pid: int32(m.DwOwningPid),
|
||||||
|
Status: tcpStatuses[mibTCPState(m.DwState)],
|
||||||
|
}
|
||||||
|
|
||||||
|
return ns
|
||||||
|
}
|
||||||
|
|
||||||
|
type mibTCP6TableOwnerPid struct {
|
||||||
|
DwNumEntries uint32
|
||||||
|
Table [anySize]mibTCP6RowOwnerPid
|
||||||
|
}
|
||||||
|
|
||||||
|
type pmibTCPTableOwnerPidAll *mibTCPTableOwnerPid
|
||||||
|
type pmibTCP6TableOwnerPidAll *mibTCP6TableOwnerPid
|
||||||
|
|
||||||
|
// UDP
|
||||||
|
|
||||||
|
type mibUDPRowOwnerPid struct {
|
||||||
|
DwLocalAddr uint32
|
||||||
|
DwLocalPort uint32
|
||||||
|
DwOwningPid uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *mibUDPRowOwnerPid) convertToConnectionStat() ConnectionStat {
|
||||||
|
ns := ConnectionStat{
|
||||||
|
Family: kindUDP4.family,
|
||||||
|
Type: kindUDP4.sockType,
|
||||||
|
Laddr: Addr{
|
||||||
|
IP: parseIPv4HexString(m.DwLocalAddr),
|
||||||
|
Port: uint32(decodePort(m.DwLocalPort)),
|
||||||
|
},
|
||||||
|
Pid: int32(m.DwOwningPid),
|
||||||
|
}
|
||||||
|
|
||||||
|
return ns
|
||||||
|
}
|
||||||
|
|
||||||
|
type mibUDPTableOwnerPid struct {
|
||||||
|
DwNumEntries uint32
|
||||||
|
Table [anySize]mibUDPRowOwnerPid
|
||||||
|
}
|
||||||
|
|
||||||
|
type mibUDP6RowOwnerPid struct {
|
||||||
|
UcLocalAddr [16]byte
|
||||||
|
DwLocalScopeId uint32
|
||||||
|
DwLocalPort uint32
|
||||||
|
DwOwningPid uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *mibUDP6RowOwnerPid) convertToConnectionStat() ConnectionStat {
|
||||||
|
ns := ConnectionStat{
|
||||||
|
Family: kindUDP6.family,
|
||||||
|
Type: kindUDP6.sockType,
|
||||||
|
Laddr: Addr{
|
||||||
|
IP: parseIPv6HexString(m.UcLocalAddr),
|
||||||
|
Port: uint32(decodePort(m.DwLocalPort)),
|
||||||
|
},
|
||||||
|
Pid: int32(m.DwOwningPid),
|
||||||
|
}
|
||||||
|
|
||||||
|
return ns
|
||||||
|
}
|
||||||
|
|
||||||
|
type mibUDP6TableOwnerPid struct {
|
||||||
|
DwNumEntries uint32
|
||||||
|
Table [anySize]mibUDP6RowOwnerPid
|
||||||
|
}
|
||||||
|
|
||||||
|
type pmibUDPTableOwnerPid *mibUDPTableOwnerPid
|
||||||
|
type pmibUDP6TableOwnerPid *mibUDP6TableOwnerPid
|
||||||
|
|
||||||
|
func decodePort(port uint32) uint16 {
|
||||||
|
return syscall.Ntohs(uint16(port))
|
||||||
|
}
|
||||||
|
|
||||||
|
func parseIPv4HexString(addr uint32) string {
|
||||||
|
return fmt.Sprintf("%d.%d.%d.%d", addr&255, addr>>8&255, addr>>16&255, addr>>24&255)
|
||||||
|
}
|
||||||
|
|
||||||
|
func parseIPv6HexString(addr [16]byte) string {
|
||||||
|
var ret [16]byte
|
||||||
|
for i := 0; i < 16; i++ {
|
||||||
|
ret[i] = uint8(addr[i])
|
||||||
|
}
|
||||||
|
|
||||||
|
// convert []byte to net.IP
|
||||||
|
ip := net.IP(ret[:])
|
||||||
|
return ip.String()
|
||||||
|
}
|
||||||
|
26
vendor/github.com/shirou/gopsutil/process/process_darwin.go
generated
vendored
26
vendor/github.com/shirou/gopsutil/process/process_darwin.go
generated
vendored
@ -527,34 +527,22 @@ func Processes() ([]*Process, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func ProcessesWithContext(ctx context.Context) ([]*Process, error) {
|
func ProcessesWithContext(ctx context.Context) ([]*Process, error) {
|
||||||
results := []*Process{}
|
out := []*Process{}
|
||||||
|
|
||||||
mib := []int32{CTLKern, KernProc, KernProcAll, 0}
|
pids, err := PidsWithContext(ctx)
|
||||||
buf, length, err := common.CallSyscall(mib)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return results, err
|
return out, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// get kinfo_proc size
|
for _, pid := range pids {
|
||||||
k := KinfoProc{}
|
p, err := NewProcess(pid)
|
||||||
procinfoLen := int(unsafe.Sizeof(k))
|
|
||||||
count := int(length / uint64(procinfoLen))
|
|
||||||
|
|
||||||
// parse buf to procs
|
|
||||||
for i := 0; i < count; i++ {
|
|
||||||
b := buf[i*procinfoLen : i*procinfoLen+procinfoLen]
|
|
||||||
k, err := parseKinfoProc(b)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
p, err := NewProcess(int32(k.Proc.P_pid))
|
out = append(out, p)
|
||||||
if err != nil {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
results = append(results, p)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return results, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseKinfoProc(buf []byte) (KinfoProc, error) {
|
func parseKinfoProc(buf []byte) (KinfoProc, error) {
|
||||||
|
2
vendor/github.com/shirou/gopsutil/process/process_linux.go
generated
vendored
2
vendor/github.com/shirou/gopsutil/process/process_linux.go
generated
vendored
@ -1220,7 +1220,7 @@ func Processes() ([]*Process, error) {
|
|||||||
func ProcessesWithContext(ctx context.Context) ([]*Process, error) {
|
func ProcessesWithContext(ctx context.Context) ([]*Process, error) {
|
||||||
out := []*Process{}
|
out := []*Process{}
|
||||||
|
|
||||||
pids, err := Pids()
|
pids, err := PidsWithContext(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return out, err
|
return out, err
|
||||||
}
|
}
|
||||||
|
15
vendor/github.com/shirou/gopsutil/process/process_windows.go
generated
vendored
15
vendor/github.com/shirou/gopsutil/process/process_windows.go
generated
vendored
@ -25,7 +25,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
modpsapi = windows.NewLazyDLL("psapi.dll")
|
modpsapi = windows.NewLazySystemDLL("psapi.dll")
|
||||||
procGetProcessMemoryInfo = modpsapi.NewProc("GetProcessMemoryInfo")
|
procGetProcessMemoryInfo = modpsapi.NewProc("GetProcessMemoryInfo")
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -603,21 +603,22 @@ func Processes() ([]*Process, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func ProcessesWithContext(ctx context.Context) ([]*Process, error) {
|
func ProcessesWithContext(ctx context.Context) ([]*Process, error) {
|
||||||
pids, err := Pids()
|
out := []*Process{}
|
||||||
|
|
||||||
|
pids, err := PidsWithContext(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return []*Process{}, fmt.Errorf("could not get Processes %s", err)
|
return out, fmt.Errorf("could not get Processes %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
results := []*Process{}
|
|
||||||
for _, pid := range pids {
|
for _, pid := range pids {
|
||||||
p, err := NewProcess(int32(pid))
|
p, err := NewProcess(pid)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
results = append(results, p)
|
out = append(out, p)
|
||||||
}
|
}
|
||||||
|
|
||||||
return results, nil
|
return out, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func getProcInfo(pid int32) (*SystemProcessInformation, error) {
|
func getProcInfo(pid int32) (*SystemProcessInformation, error) {
|
||||||
|
12
vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s
generated
vendored
12
vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s
generated
vendored
@ -15,12 +15,6 @@
|
|||||||
// Just jump to package syscall's implementation for all these functions.
|
// Just jump to package syscall's implementation for all these functions.
|
||||||
// The runtime may know about them.
|
// The runtime may know about them.
|
||||||
|
|
||||||
TEXT ·Syscall(SB),NOSPLIT,$0-56
|
|
||||||
BR syscall·Syscall(SB)
|
|
||||||
|
|
||||||
TEXT ·Syscall6(SB),NOSPLIT,$0-80
|
|
||||||
BR syscall·Syscall6(SB)
|
|
||||||
|
|
||||||
TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
|
TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
|
||||||
BL runtime·entersyscall(SB)
|
BL runtime·entersyscall(SB)
|
||||||
MOVD a1+8(FP), R3
|
MOVD a1+8(FP), R3
|
||||||
@ -36,12 +30,6 @@ TEXT ·SyscallNoError(SB),NOSPLIT,$0-48
|
|||||||
BL runtime·exitsyscall(SB)
|
BL runtime·exitsyscall(SB)
|
||||||
RET
|
RET
|
||||||
|
|
||||||
TEXT ·RawSyscall(SB),NOSPLIT,$0-56
|
|
||||||
BR syscall·RawSyscall(SB)
|
|
||||||
|
|
||||||
TEXT ·RawSyscall6(SB),NOSPLIT,$0-80
|
|
||||||
BR syscall·RawSyscall6(SB)
|
|
||||||
|
|
||||||
TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48
|
TEXT ·RawSyscallNoError(SB),NOSPLIT,$0-48
|
||||||
MOVD a1+8(FP), R3
|
MOVD a1+8(FP), R3
|
||||||
MOVD a2+16(FP), R4
|
MOVD a2+16(FP), R4
|
||||||
|
0
vendor/golang.org/x/sys/unix/mkall.sh
generated
vendored
Executable file → Normal file
0
vendor/golang.org/x/sys/unix/mkall.sh
generated
vendored
Executable file → Normal file
4
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
Executable file → Normal file
4
vendor/golang.org/x/sys/unix/mkerrors.sh
generated
vendored
Executable file → Normal file
@ -101,7 +101,7 @@ includes_DragonFly='
|
|||||||
'
|
'
|
||||||
|
|
||||||
includes_FreeBSD='
|
includes_FreeBSD='
|
||||||
#include <sys/capability.h>
|
#include <sys/capsicum.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/event.h>
|
#include <sys/event.h>
|
||||||
@ -187,6 +187,7 @@ struct ltchars {
|
|||||||
#include <linux/if_alg.h>
|
#include <linux/if_alg.h>
|
||||||
#include <linux/if_arp.h>
|
#include <linux/if_arp.h>
|
||||||
#include <linux/if_ether.h>
|
#include <linux/if_ether.h>
|
||||||
|
#include <linux/if_ppp.h>
|
||||||
#include <linux/if_tun.h>
|
#include <linux/if_tun.h>
|
||||||
#include <linux/if_packet.h>
|
#include <linux/if_packet.h>
|
||||||
#include <linux/if_addr.h>
|
#include <linux/if_addr.h>
|
||||||
@ -500,6 +501,7 @@ ccflags="$@"
|
|||||||
$2 ~ /^(HDIO|WIN|SMART)_/ ||
|
$2 ~ /^(HDIO|WIN|SMART)_/ ||
|
||||||
$2 !~ "WMESGLEN" &&
|
$2 !~ "WMESGLEN" &&
|
||||||
$2 ~ /^W[A-Z0-9]+$/ ||
|
$2 ~ /^W[A-Z0-9]+$/ ||
|
||||||
|
$2 ~/^PPPIOC/ ||
|
||||||
$2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE)/ {printf("\t%s = C.%s\n", $2, $2)}
|
$2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE)/ {printf("\t%s = C.%s\n", $2, $2)}
|
||||||
$2 ~ /^__WCOREFLAG$/ {next}
|
$2 ~ /^__WCOREFLAG$/ {next}
|
||||||
$2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)}
|
$2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)}
|
||||||
|
8
vendor/golang.org/x/sys/unix/mkpost.go
generated
vendored
8
vendor/golang.org/x/sys/unix/mkpost.go
generated
vendored
@ -46,6 +46,10 @@ func main() {
|
|||||||
valRegex := regexp.MustCompile(`type (Fsid|Sigset_t) struct {(\s+)X__val(\s+\S+\s+)}`)
|
valRegex := regexp.MustCompile(`type (Fsid|Sigset_t) struct {(\s+)X__val(\s+\S+\s+)}`)
|
||||||
b = valRegex.ReplaceAll(b, []byte("type $1 struct {${2}Val$3}"))
|
b = valRegex.ReplaceAll(b, []byte("type $1 struct {${2}Val$3}"))
|
||||||
|
|
||||||
|
// Intentionally export __fds_bits field in FdSet
|
||||||
|
fdSetRegex := regexp.MustCompile(`type (FdSet) struct {(\s+)X__fds_bits(\s+\S+\s+)}`)
|
||||||
|
b = fdSetRegex.ReplaceAll(b, []byte("type $1 struct {${2}Bits$3}"))
|
||||||
|
|
||||||
// If we have empty Ptrace structs, we should delete them. Only s390x emits
|
// If we have empty Ptrace structs, we should delete them. Only s390x emits
|
||||||
// nonempty Ptrace structs.
|
// nonempty Ptrace structs.
|
||||||
ptraceRexexp := regexp.MustCompile(`type Ptrace((Psw|Fpregs|Per) struct {\s*})`)
|
ptraceRexexp := regexp.MustCompile(`type Ptrace((Psw|Fpregs|Per) struct {\s*})`)
|
||||||
@ -65,6 +69,10 @@ func main() {
|
|||||||
convertUtsnameRegex := regexp.MustCompile(`((Sys|Node|Domain)name|Release|Version|Machine)(\s+)\[(\d+)\]u?int8`)
|
convertUtsnameRegex := regexp.MustCompile(`((Sys|Node|Domain)name|Release|Version|Machine)(\s+)\[(\d+)\]u?int8`)
|
||||||
b = convertUtsnameRegex.ReplaceAll(b, []byte("$1$3[$4]byte"))
|
b = convertUtsnameRegex.ReplaceAll(b, []byte("$1$3[$4]byte"))
|
||||||
|
|
||||||
|
// Convert [1024]int8 to [1024]byte in Ptmget members
|
||||||
|
convertPtmget := regexp.MustCompile(`([SC]n)(\s+)\[(\d+)\]u?int8`)
|
||||||
|
b = convertPtmget.ReplaceAll(b, []byte("$1[$3]byte"))
|
||||||
|
|
||||||
// Remove spare fields (e.g. in Statx_t)
|
// Remove spare fields (e.g. in Statx_t)
|
||||||
spareFieldsRegex := regexp.MustCompile(`X__spare\S*`)
|
spareFieldsRegex := regexp.MustCompile(`X__spare\S*`)
|
||||||
b = spareFieldsRegex.ReplaceAll(b, []byte("_"))
|
b = spareFieldsRegex.ReplaceAll(b, []byte("_"))
|
||||||
|
0
vendor/golang.org/x/sys/unix/mksyscall.pl
generated
vendored
Executable file → Normal file
0
vendor/golang.org/x/sys/unix/mksyscall.pl
generated
vendored
Executable file → Normal file
0
vendor/golang.org/x/sys/unix/mksyscall_aix_ppc.pl
generated
vendored
Executable file → Normal file
0
vendor/golang.org/x/sys/unix/mksyscall_aix_ppc.pl
generated
vendored
Executable file → Normal file
0
vendor/golang.org/x/sys/unix/mksyscall_aix_ppc64.pl
generated
vendored
Executable file → Normal file
0
vendor/golang.org/x/sys/unix/mksyscall_aix_ppc64.pl
generated
vendored
Executable file → Normal file
0
vendor/golang.org/x/sys/unix/mksyscall_solaris.pl
generated
vendored
Executable file → Normal file
0
vendor/golang.org/x/sys/unix/mksyscall_solaris.pl
generated
vendored
Executable file → Normal file
0
vendor/golang.org/x/sys/unix/mksysctl_openbsd.pl
generated
vendored
Executable file → Normal file
0
vendor/golang.org/x/sys/unix/mksysctl_openbsd.pl
generated
vendored
Executable file → Normal file
0
vendor/golang.org/x/sys/unix/mksysnum_darwin.pl
generated
vendored
Executable file → Normal file
0
vendor/golang.org/x/sys/unix/mksysnum_darwin.pl
generated
vendored
Executable file → Normal file
0
vendor/golang.org/x/sys/unix/mksysnum_dragonfly.pl
generated
vendored
Executable file → Normal file
0
vendor/golang.org/x/sys/unix/mksysnum_dragonfly.pl
generated
vendored
Executable file → Normal file
0
vendor/golang.org/x/sys/unix/mksysnum_freebsd.pl
generated
vendored
Executable file → Normal file
0
vendor/golang.org/x/sys/unix/mksysnum_freebsd.pl
generated
vendored
Executable file → Normal file
0
vendor/golang.org/x/sys/unix/mksysnum_netbsd.pl
generated
vendored
Executable file → Normal file
0
vendor/golang.org/x/sys/unix/mksysnum_netbsd.pl
generated
vendored
Executable file → Normal file
0
vendor/golang.org/x/sys/unix/mksysnum_openbsd.pl
generated
vendored
Executable file → Normal file
0
vendor/golang.org/x/sys/unix/mksysnum_openbsd.pl
generated
vendored
Executable file → Normal file
7
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
7
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
@ -248,11 +248,13 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Dup(fd int) (nfd int, err error)
|
//sys Dup(fd int) (nfd int, err error)
|
||||||
//sys Dup2(from int, to int) (err error)
|
//sys Dup2(from int, to int) (err error)
|
||||||
//sys Exit(code int)
|
//sys Exit(code int)
|
||||||
|
//sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||||
//sys Fchdir(fd int) (err error)
|
//sys Fchdir(fd int) (err error)
|
||||||
//sys Fchflags(fd int, flags int) (err error)
|
//sys Fchflags(fd int, flags int) (err error)
|
||||||
//sys Fchmod(fd int, mode uint32) (err error)
|
//sys Fchmod(fd int, mode uint32) (err error)
|
||||||
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||||
//sys Fchown(fd int, uid int, gid int) (err error)
|
//sys Fchown(fd int, uid int, gid int) (err error)
|
||||||
|
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
||||||
//sys Flock(fd int, how int) (err error)
|
//sys Flock(fd int, how int) (err error)
|
||||||
//sys Fpathconf(fd int, name int) (val int, err error)
|
//sys Fpathconf(fd int, name int) (val int, err error)
|
||||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||||
@ -280,11 +282,14 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Kqueue() (fd int, err error)
|
//sys Kqueue() (fd int, err error)
|
||||||
//sys Lchown(path string, uid int, gid int) (err error)
|
//sys Lchown(path string, uid int, gid int) (err error)
|
||||||
//sys Link(path string, link string) (err error)
|
//sys Link(path string, link string) (err error)
|
||||||
|
//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error)
|
||||||
//sys Listen(s int, backlog int) (err error)
|
//sys Listen(s int, backlog int) (err error)
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error)
|
//sys Lstat(path string, stat *Stat_t) (err error)
|
||||||
//sys Mkdir(path string, mode uint32) (err error)
|
//sys Mkdir(path string, mode uint32) (err error)
|
||||||
|
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mkfifo(path string, mode uint32) (err error)
|
//sys Mkfifo(path string, mode uint32) (err error)
|
||||||
//sys Mknod(path string, mode uint32, dev int) (err error)
|
//sys Mknod(path string, mode uint32, dev int) (err error)
|
||||||
|
//sys Mknodat(fd int, path string, mode uint32, dev int) (err error)
|
||||||
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
||||||
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
||||||
//sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error)
|
//sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error)
|
||||||
@ -313,11 +318,13 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Stat(path string, stat *Stat_t) (err error)
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
//sys Statfs(path string, stat *Statfs_t) (err error)
|
//sys Statfs(path string, stat *Statfs_t) (err error)
|
||||||
//sys Symlink(path string, link string) (err error)
|
//sys Symlink(path string, link string) (err error)
|
||||||
|
//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Sync() (err error)
|
//sys Sync() (err error)
|
||||||
//sys Truncate(path string, length int64) (err error)
|
//sys Truncate(path string, length int64) (err error)
|
||||||
//sys Umask(newmask int) (oldmask int)
|
//sys Umask(newmask int) (oldmask int)
|
||||||
//sys Undelete(path string) (err error)
|
//sys Undelete(path string) (err error)
|
||||||
//sys Unlink(path string) (err error)
|
//sys Unlink(path string) (err error)
|
||||||
|
//sys Unlinkat(dirfd int, path string, flags int) (err error)
|
||||||
//sys Unmount(path string, flags int) (err error)
|
//sys Unmount(path string, flags int) (err error)
|
||||||
//sys write(fd int, p []byte) (n int, err error)
|
//sys write(fd int, p []byte) (n int, err error)
|
||||||
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
|
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
|
||||||
|
72
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
72
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
@ -12,6 +12,8 @@
|
|||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"encoding/binary"
|
||||||
|
"net"
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
@ -55,6 +57,15 @@ func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
|||||||
// ioctl itself should not be exposed directly, but additional get/set
|
// ioctl itself should not be exposed directly, but additional get/set
|
||||||
// functions for specific types are permissible.
|
// functions for specific types are permissible.
|
||||||
|
|
||||||
|
// IoctlSetPointerInt performs an ioctl operation which sets an
|
||||||
|
// integer value on fd, using the specified request number. The ioctl
|
||||||
|
// argument is called with a pointer to the integer value, rather than
|
||||||
|
// passing the integer value directly.
|
||||||
|
func IoctlSetPointerInt(fd int, req uint, value int) error {
|
||||||
|
v := int32(value)
|
||||||
|
return ioctl(fd, req, uintptr(unsafe.Pointer(&v)))
|
||||||
|
}
|
||||||
|
|
||||||
// IoctlSetInt performs an ioctl operation which sets an integer value
|
// IoctlSetInt performs an ioctl operation which sets an integer value
|
||||||
// on fd, using the specified request number.
|
// on fd, using the specified request number.
|
||||||
func IoctlSetInt(fd int, req uint, value int) error {
|
func IoctlSetInt(fd int, req uint, value int) error {
|
||||||
@ -710,6 +721,51 @@ func (sa *SockaddrXDP) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
|||||||
return unsafe.Pointer(&sa.raw), SizeofSockaddrXDP, nil
|
return unsafe.Pointer(&sa.raw), SizeofSockaddrXDP, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This constant mirrors the #define of PX_PROTO_OE in
|
||||||
|
// linux/if_pppox.h. We're defining this by hand here instead of
|
||||||
|
// autogenerating through mkerrors.sh because including
|
||||||
|
// linux/if_pppox.h causes some declaration conflicts with other
|
||||||
|
// includes (linux/if_pppox.h includes linux/in.h, which conflicts
|
||||||
|
// with netinet/in.h). Given that we only need a single zero constant
|
||||||
|
// out of that file, it's cleaner to just define it by hand here.
|
||||||
|
const px_proto_oe = 0
|
||||||
|
|
||||||
|
type SockaddrPPPoE struct {
|
||||||
|
SID uint16
|
||||||
|
Remote net.HardwareAddr
|
||||||
|
Dev string
|
||||||
|
raw RawSockaddrPPPoX
|
||||||
|
}
|
||||||
|
|
||||||
|
func (sa *SockaddrPPPoE) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
|
if len(sa.Remote) != 6 {
|
||||||
|
return nil, 0, EINVAL
|
||||||
|
}
|
||||||
|
if len(sa.Dev) > IFNAMSIZ-1 {
|
||||||
|
return nil, 0, EINVAL
|
||||||
|
}
|
||||||
|
|
||||||
|
*(*uint16)(unsafe.Pointer(&sa.raw[0])) = AF_PPPOX
|
||||||
|
// This next field is in host-endian byte order. We can't use the
|
||||||
|
// same unsafe pointer cast as above, because this value is not
|
||||||
|
// 32-bit aligned and some architectures don't allow unaligned
|
||||||
|
// access.
|
||||||
|
//
|
||||||
|
// However, the value of px_proto_oe is 0, so we can use
|
||||||
|
// encoding/binary helpers to write the bytes without worrying
|
||||||
|
// about the ordering.
|
||||||
|
binary.BigEndian.PutUint32(sa.raw[2:6], px_proto_oe)
|
||||||
|
// This field is deliberately big-endian, unlike the previous
|
||||||
|
// one. The kernel expects SID to be in network byte order.
|
||||||
|
binary.BigEndian.PutUint16(sa.raw[6:8], sa.SID)
|
||||||
|
copy(sa.raw[8:14], sa.Remote)
|
||||||
|
for i := 14; i < 14+IFNAMSIZ; i++ {
|
||||||
|
sa.raw[i] = 0
|
||||||
|
}
|
||||||
|
copy(sa.raw[14:], sa.Dev)
|
||||||
|
return unsafe.Pointer(&sa.raw), SizeofSockaddrPPPoX, nil
|
||||||
|
}
|
||||||
|
|
||||||
func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||||
switch rsa.Addr.Family {
|
switch rsa.Addr.Family {
|
||||||
case AF_NETLINK:
|
case AF_NETLINK:
|
||||||
@ -820,6 +876,22 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
|||||||
SharedUmemFD: pp.Shared_umem_fd,
|
SharedUmemFD: pp.Shared_umem_fd,
|
||||||
}
|
}
|
||||||
return sa, nil
|
return sa, nil
|
||||||
|
case AF_PPPOX:
|
||||||
|
pp := (*RawSockaddrPPPoX)(unsafe.Pointer(rsa))
|
||||||
|
if binary.BigEndian.Uint32(pp[2:6]) != px_proto_oe {
|
||||||
|
return nil, EINVAL
|
||||||
|
}
|
||||||
|
sa := &SockaddrPPPoE{
|
||||||
|
SID: binary.BigEndian.Uint16(pp[6:8]),
|
||||||
|
Remote: net.HardwareAddr(pp[8:14]),
|
||||||
|
}
|
||||||
|
for i := 14; i < 14+IFNAMSIZ; i++ {
|
||||||
|
if pp[i] == 0 {
|
||||||
|
sa.Dev = string(pp[14:i])
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return sa, nil
|
||||||
}
|
}
|
||||||
return nil, EAFNOSUPPORT
|
return nil, EAFNOSUPPORT
|
||||||
}
|
}
|
||||||
|
17
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
17
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
@ -13,6 +13,7 @@
|
|||||||
package unix
|
package unix
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"runtime"
|
||||||
"syscall"
|
"syscall"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
@ -190,6 +191,13 @@ func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
|||||||
return &value, err
|
return &value, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func IoctlGetPtmget(fd int, req uint) (*Ptmget, error) {
|
||||||
|
var value Ptmget
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
runtime.KeepAlive(value)
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
func Uname(uname *Utsname) error {
|
func Uname(uname *Utsname) error {
|
||||||
mib := []_C_int{CTL_KERN, KERN_OSTYPE}
|
mib := []_C_int{CTL_KERN, KERN_OSTYPE}
|
||||||
n := unsafe.Sizeof(uname.Sysname)
|
n := unsafe.Sizeof(uname.Sysname)
|
||||||
@ -269,6 +277,7 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Fchmod(fd int, mode uint32) (err error)
|
//sys Fchmod(fd int, mode uint32) (err error)
|
||||||
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||||
//sys Fchown(fd int, uid int, gid int) (err error)
|
//sys Fchown(fd int, uid int, gid int) (err error)
|
||||||
|
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
||||||
//sys Flock(fd int, how int) (err error)
|
//sys Flock(fd int, how int) (err error)
|
||||||
//sys Fpathconf(fd int, name int) (val int, err error)
|
//sys Fpathconf(fd int, name int) (val int, err error)
|
||||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||||
@ -293,11 +302,15 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Kqueue() (fd int, err error)
|
//sys Kqueue() (fd int, err error)
|
||||||
//sys Lchown(path string, uid int, gid int) (err error)
|
//sys Lchown(path string, uid int, gid int) (err error)
|
||||||
//sys Link(path string, link string) (err error)
|
//sys Link(path string, link string) (err error)
|
||||||
|
//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error)
|
||||||
//sys Listen(s int, backlog int) (err error)
|
//sys Listen(s int, backlog int) (err error)
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error)
|
//sys Lstat(path string, stat *Stat_t) (err error)
|
||||||
//sys Mkdir(path string, mode uint32) (err error)
|
//sys Mkdir(path string, mode uint32) (err error)
|
||||||
|
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mkfifo(path string, mode uint32) (err error)
|
//sys Mkfifo(path string, mode uint32) (err error)
|
||||||
|
//sys Mkfifoat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mknod(path string, mode uint32, dev int) (err error)
|
//sys Mknod(path string, mode uint32, dev int) (err error)
|
||||||
|
//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
|
||||||
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
||||||
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
||||||
//sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error)
|
//sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error)
|
||||||
@ -306,7 +319,9 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
|
||||||
//sys read(fd int, p []byte) (n int, err error)
|
//sys read(fd int, p []byte) (n int, err error)
|
||||||
//sys Readlink(path string, buf []byte) (n int, err error)
|
//sys Readlink(path string, buf []byte) (n int, err error)
|
||||||
|
//sys Readlinkat(dirfd int, path string, buf []byte) (n int, err error)
|
||||||
//sys Rename(from string, to string) (err error)
|
//sys Rename(from string, to string) (err error)
|
||||||
|
//sys Renameat(fromfd int, from string, tofd int, to string) (err error)
|
||||||
//sys Revoke(path string) (err error)
|
//sys Revoke(path string) (err error)
|
||||||
//sys Rmdir(path string) (err error)
|
//sys Rmdir(path string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
||||||
@ -324,10 +339,12 @@ func Uname(uname *Utsname) error {
|
|||||||
//sysnb Setuid(uid int) (err error)
|
//sysnb Setuid(uid int) (err error)
|
||||||
//sys Stat(path string, stat *Stat_t) (err error)
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
//sys Symlink(path string, link string) (err error)
|
//sys Symlink(path string, link string) (err error)
|
||||||
|
//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Sync() (err error)
|
//sys Sync() (err error)
|
||||||
//sys Truncate(path string, length int64) (err error)
|
//sys Truncate(path string, length int64) (err error)
|
||||||
//sys Umask(newmask int) (oldmask int)
|
//sys Umask(newmask int) (oldmask int)
|
||||||
//sys Unlink(path string) (err error)
|
//sys Unlink(path string) (err error)
|
||||||
|
//sys Unlinkat(dirfd int, path string, flags int) (err error)
|
||||||
//sys Unmount(path string, flags int) (err error)
|
//sys Unmount(path string, flags int) (err error)
|
||||||
//sys write(fd int, p []byte) (n int, err error)
|
//sys write(fd int, p []byte) (n int, err error)
|
||||||
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
|
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
|
||||||
|
20
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
20
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
@ -233,6 +233,7 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Fchmod(fd int, mode uint32) (err error)
|
//sys Fchmod(fd int, mode uint32) (err error)
|
||||||
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
||||||
//sys Fchown(fd int, uid int, gid int) (err error)
|
//sys Fchown(fd int, uid int, gid int) (err error)
|
||||||
|
//sys Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
||||||
//sys Flock(fd int, how int) (err error)
|
//sys Flock(fd int, how int) (err error)
|
||||||
//sys Fpathconf(fd int, name int) (val int, err error)
|
//sys Fpathconf(fd int, name int) (val int, err error)
|
||||||
//sys Fstat(fd int, stat *Stat_t) (err error)
|
//sys Fstat(fd int, stat *Stat_t) (err error)
|
||||||
@ -259,11 +260,15 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Kqueue() (fd int, err error)
|
//sys Kqueue() (fd int, err error)
|
||||||
//sys Lchown(path string, uid int, gid int) (err error)
|
//sys Lchown(path string, uid int, gid int) (err error)
|
||||||
//sys Link(path string, link string) (err error)
|
//sys Link(path string, link string) (err error)
|
||||||
|
//sys Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error)
|
||||||
//sys Listen(s int, backlog int) (err error)
|
//sys Listen(s int, backlog int) (err error)
|
||||||
//sys Lstat(path string, stat *Stat_t) (err error)
|
//sys Lstat(path string, stat *Stat_t) (err error)
|
||||||
//sys Mkdir(path string, mode uint32) (err error)
|
//sys Mkdir(path string, mode uint32) (err error)
|
||||||
|
//sys Mkdirat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mkfifo(path string, mode uint32) (err error)
|
//sys Mkfifo(path string, mode uint32) (err error)
|
||||||
|
//sys Mkfifoat(dirfd int, path string, mode uint32) (err error)
|
||||||
//sys Mknod(path string, mode uint32, dev int) (err error)
|
//sys Mknod(path string, mode uint32, dev int) (err error)
|
||||||
|
//sys Mknodat(dirfd int, path string, mode uint32, dev int) (err error)
|
||||||
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
//sys Nanosleep(time *Timespec, leftover *Timespec) (err error)
|
||||||
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
//sys Open(path string, mode int, perm uint32) (fd int, err error)
|
||||||
//sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error)
|
//sys Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error)
|
||||||
@ -272,7 +277,9 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
|
//sys Pwrite(fd int, p []byte, offset int64) (n int, err error)
|
||||||
//sys read(fd int, p []byte) (n int, err error)
|
//sys read(fd int, p []byte) (n int, err error)
|
||||||
//sys Readlink(path string, buf []byte) (n int, err error)
|
//sys Readlink(path string, buf []byte) (n int, err error)
|
||||||
|
//sys Readlinkat(dirfd int, path string, buf []byte) (n int, err error)
|
||||||
//sys Rename(from string, to string) (err error)
|
//sys Rename(from string, to string) (err error)
|
||||||
|
//sys Renameat(fromfd int, from string, tofd int, to string) (err error)
|
||||||
//sys Revoke(path string) (err error)
|
//sys Revoke(path string) (err error)
|
||||||
//sys Rmdir(path string) (err error)
|
//sys Rmdir(path string) (err error)
|
||||||
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
//sys Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_LSEEK
|
||||||
@ -295,10 +302,12 @@ func Uname(uname *Utsname) error {
|
|||||||
//sys Stat(path string, stat *Stat_t) (err error)
|
//sys Stat(path string, stat *Stat_t) (err error)
|
||||||
//sys Statfs(path string, stat *Statfs_t) (err error)
|
//sys Statfs(path string, stat *Statfs_t) (err error)
|
||||||
//sys Symlink(path string, link string) (err error)
|
//sys Symlink(path string, link string) (err error)
|
||||||
|
//sys Symlinkat(oldpath string, newdirfd int, newpath string) (err error)
|
||||||
//sys Sync() (err error)
|
//sys Sync() (err error)
|
||||||
//sys Truncate(path string, length int64) (err error)
|
//sys Truncate(path string, length int64) (err error)
|
||||||
//sys Umask(newmask int) (oldmask int)
|
//sys Umask(newmask int) (oldmask int)
|
||||||
//sys Unlink(path string) (err error)
|
//sys Unlink(path string) (err error)
|
||||||
|
//sys Unlinkat(dirfd int, path string, flags int) (err error)
|
||||||
//sys Unmount(path string, flags int) (err error)
|
//sys Unmount(path string, flags int) (err error)
|
||||||
//sys write(fd int, p []byte) (n int, err error)
|
//sys write(fd int, p []byte) (n int, err error)
|
||||||
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
|
//sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
|
||||||
@ -321,15 +330,11 @@ func Uname(uname *Utsname) error {
|
|||||||
// clock_settime
|
// clock_settime
|
||||||
// closefrom
|
// closefrom
|
||||||
// execve
|
// execve
|
||||||
// faccessat
|
|
||||||
// fchmodat
|
|
||||||
// fchownat
|
|
||||||
// fcntl
|
// fcntl
|
||||||
// fhopen
|
// fhopen
|
||||||
// fhstat
|
// fhstat
|
||||||
// fhstatfs
|
// fhstatfs
|
||||||
// fork
|
// fork
|
||||||
// fstatat
|
|
||||||
// futimens
|
// futimens
|
||||||
// getfh
|
// getfh
|
||||||
// getgid
|
// getgid
|
||||||
@ -343,12 +348,8 @@ func Uname(uname *Utsname) error {
|
|||||||
// lfs_markv
|
// lfs_markv
|
||||||
// lfs_segclean
|
// lfs_segclean
|
||||||
// lfs_segwait
|
// lfs_segwait
|
||||||
// linkat
|
|
||||||
// mincore
|
// mincore
|
||||||
// minherit
|
// minherit
|
||||||
// mkdirat
|
|
||||||
// mkfifoat
|
|
||||||
// mknodat
|
|
||||||
// mount
|
// mount
|
||||||
// mquery
|
// mquery
|
||||||
// msgctl
|
// msgctl
|
||||||
@ -361,7 +362,6 @@ func Uname(uname *Utsname) error {
|
|||||||
// profil
|
// profil
|
||||||
// pwritev
|
// pwritev
|
||||||
// quotactl
|
// quotactl
|
||||||
// readlinkat
|
|
||||||
// readv
|
// readv
|
||||||
// reboot
|
// reboot
|
||||||
// renameat
|
// renameat
|
||||||
@ -382,13 +382,11 @@ func Uname(uname *Utsname) error {
|
|||||||
// sigprocmask
|
// sigprocmask
|
||||||
// sigreturn
|
// sigreturn
|
||||||
// sigsuspend
|
// sigsuspend
|
||||||
// symlinkat
|
|
||||||
// sysarch
|
// sysarch
|
||||||
// syscall
|
// syscall
|
||||||
// threxit
|
// threxit
|
||||||
// thrsigdivert
|
// thrsigdivert
|
||||||
// thrsleep
|
// thrsleep
|
||||||
// thrwakeup
|
// thrwakeup
|
||||||
// unlinkat
|
|
||||||
// vfork
|
// vfork
|
||||||
// writev
|
// writev
|
||||||
|
2
vendor/golang.org/x/sys/unix/syscall_unix_gc.go
generated
vendored
2
vendor/golang.org/x/sys/unix/syscall_unix_gc.go
generated
vendored
@ -3,7 +3,7 @@
|
|||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||||
// +build !gccgo
|
// +build !gccgo,!ppc64le,!ppc64
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
24
vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go
generated
vendored
Normal file
24
vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
// Copyright 2018 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build linux
|
||||||
|
// +build ppc64le ppc64
|
||||||
|
// +build !gccgo
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import "syscall"
|
||||||
|
|
||||||
|
func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) {
|
||||||
|
return syscall.Syscall(trap, a1, a2, a3)
|
||||||
|
}
|
||||||
|
func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) {
|
||||||
|
return syscall.Syscall6(trap, a1, a2, a3, a4, a5, a6)
|
||||||
|
}
|
||||||
|
func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) {
|
||||||
|
return syscall.RawSyscall(trap, a1, a2, a3)
|
||||||
|
}
|
||||||
|
func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) {
|
||||||
|
return syscall.RawSyscall6(trap, a1, a2, a3, a4, a5, a6)
|
||||||
|
}
|
2
vendor/golang.org/x/sys/unix/types_freebsd.go
generated
vendored
2
vendor/golang.org/x/sys/unix/types_freebsd.go
generated
vendored
@ -26,7 +26,7 @@ package unix
|
|||||||
#include <termios.h>
|
#include <termios.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/capability.h>
|
#include <sys/capsicum.h>
|
||||||
#include <sys/event.h>
|
#include <sys/event.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
|
2
vendor/golang.org/x/sys/unix/types_netbsd.go
generated
vendored
2
vendor/golang.org/x/sys/unix/types_netbsd.go
generated
vendored
@ -248,6 +248,8 @@ type Termios C.struct_termios
|
|||||||
|
|
||||||
type Winsize C.struct_winsize
|
type Winsize C.struct_winsize
|
||||||
|
|
||||||
|
type Ptmget C.struct_ptmget
|
||||||
|
|
||||||
// fchmodat-like syscalls.
|
// fchmodat-like syscalls.
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
15
vendor/golang.org/x/sys/unix/xattr_bsd.go
generated
vendored
15
vendor/golang.org/x/sys/unix/xattr_bsd.go
generated
vendored
@ -81,7 +81,10 @@ func Lgetxattr(link string, attr string, dest []byte) (sz int, err error) {
|
|||||||
// flags are unused on FreeBSD
|
// flags are unused on FreeBSD
|
||||||
|
|
||||||
func Fsetxattr(fd int, attr string, data []byte, flags int) (err error) {
|
func Fsetxattr(fd int, attr string, data []byte, flags int) (err error) {
|
||||||
d := unsafe.Pointer(&data[0])
|
var d unsafe.Pointer
|
||||||
|
if len(data) > 0 {
|
||||||
|
d = unsafe.Pointer(&data[0])
|
||||||
|
}
|
||||||
datasiz := len(data)
|
datasiz := len(data)
|
||||||
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
nsid, a, err := xattrnamespace(attr)
|
||||||
@ -94,7 +97,10 @@ func Fsetxattr(fd int, attr string, data []byte, flags int) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Setxattr(file string, attr string, data []byte, flags int) (err error) {
|
func Setxattr(file string, attr string, data []byte, flags int) (err error) {
|
||||||
d := unsafe.Pointer(&data[0])
|
var d unsafe.Pointer
|
||||||
|
if len(data) > 0 {
|
||||||
|
d = unsafe.Pointer(&data[0])
|
||||||
|
}
|
||||||
datasiz := len(data)
|
datasiz := len(data)
|
||||||
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
nsid, a, err := xattrnamespace(attr)
|
||||||
@ -107,7 +113,10 @@ func Setxattr(file string, attr string, data []byte, flags int) (err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Lsetxattr(link string, attr string, data []byte, flags int) (err error) {
|
func Lsetxattr(link string, attr string, data []byte, flags int) (err error) {
|
||||||
d := unsafe.Pointer(&data[0])
|
var d unsafe.Pointer
|
||||||
|
if len(data) > 0 {
|
||||||
|
d = unsafe.Pointer(&data[0])
|
||||||
|
}
|
||||||
datasiz := len(data)
|
datasiz := len(data)
|
||||||
|
|
||||||
nsid, a, err := xattrnamespace(attr)
|
nsid, a, err := xattrnamespace(attr)
|
||||||
|
34
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
34
vendor/golang.org/x/sys/unix/zerrors_linux_386.go
generated
vendored
@ -1293,6 +1293,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x40042406
|
PERF_EVENT_IOC_SET_FILTER = 0x40042406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x4004743d
|
||||||
|
PPPIOCATTCHAN = 0x40047438
|
||||||
|
PPPIOCCONNECT = 0x4004743a
|
||||||
|
PPPIOCDETACH = 0x4004743c
|
||||||
|
PPPIOCDISCONN = 0x7439
|
||||||
|
PPPIOCGASYNCMAP = 0x80047458
|
||||||
|
PPPIOCGCHAN = 0x80047437
|
||||||
|
PPPIOCGDEBUG = 0x80047441
|
||||||
|
PPPIOCGFLAGS = 0x8004745a
|
||||||
|
PPPIOCGIDLE = 0x8008743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x80487436
|
||||||
|
PPPIOCGMRU = 0x80047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x80047455
|
||||||
|
PPPIOCGUNIT = 0x80047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x80207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x40087446
|
||||||
|
PPPIOCSASYNCMAP = 0x40047457
|
||||||
|
PPPIOCSCOMPRESS = 0x400c744d
|
||||||
|
PPPIOCSDEBUG = 0x40047440
|
||||||
|
PPPIOCSFLAGS = 0x40047459
|
||||||
|
PPPIOCSMAXCID = 0x40047451
|
||||||
|
PPPIOCSMRRU = 0x4004743b
|
||||||
|
PPPIOCSMRU = 0x40047452
|
||||||
|
PPPIOCSNPMODE = 0x4008744b
|
||||||
|
PPPIOCSPASS = 0x40087447
|
||||||
|
PPPIOCSRASYNCMAP = 0x40047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x4020744f
|
||||||
|
PPPIOCXFERUNIT = 0x744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@ -1696,6 +1726,7 @@ const (
|
|||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
SCM_TXTIME = 0x3d
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
@ -1751,6 +1782,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
|
34
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
34
vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
generated
vendored
@ -1293,6 +1293,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x40082406
|
PERF_EVENT_IOC_SET_FILTER = 0x40082406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x4004743d
|
||||||
|
PPPIOCATTCHAN = 0x40047438
|
||||||
|
PPPIOCCONNECT = 0x4004743a
|
||||||
|
PPPIOCDETACH = 0x4004743c
|
||||||
|
PPPIOCDISCONN = 0x7439
|
||||||
|
PPPIOCGASYNCMAP = 0x80047458
|
||||||
|
PPPIOCGCHAN = 0x80047437
|
||||||
|
PPPIOCGDEBUG = 0x80047441
|
||||||
|
PPPIOCGFLAGS = 0x8004745a
|
||||||
|
PPPIOCGIDLE = 0x8010743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x80487436
|
||||||
|
PPPIOCGMRU = 0x80047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x80047455
|
||||||
|
PPPIOCGUNIT = 0x80047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x80207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x40107446
|
||||||
|
PPPIOCSASYNCMAP = 0x40047457
|
||||||
|
PPPIOCSCOMPRESS = 0x4010744d
|
||||||
|
PPPIOCSDEBUG = 0x40047440
|
||||||
|
PPPIOCSFLAGS = 0x40047459
|
||||||
|
PPPIOCSMAXCID = 0x40047451
|
||||||
|
PPPIOCSMRRU = 0x4004743b
|
||||||
|
PPPIOCSMRU = 0x40047452
|
||||||
|
PPPIOCSNPMODE = 0x4008744b
|
||||||
|
PPPIOCSPASS = 0x40107447
|
||||||
|
PPPIOCSRASYNCMAP = 0x40047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x4020744f
|
||||||
|
PPPIOCXFERUNIT = 0x744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@ -1697,6 +1727,7 @@ const (
|
|||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
SCM_TXTIME = 0x3d
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
@ -1752,6 +1783,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
|
34
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
34
vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
generated
vendored
@ -1291,6 +1291,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x40042406
|
PERF_EVENT_IOC_SET_FILTER = 0x40042406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x4004743d
|
||||||
|
PPPIOCATTCHAN = 0x40047438
|
||||||
|
PPPIOCCONNECT = 0x4004743a
|
||||||
|
PPPIOCDETACH = 0x4004743c
|
||||||
|
PPPIOCDISCONN = 0x7439
|
||||||
|
PPPIOCGASYNCMAP = 0x80047458
|
||||||
|
PPPIOCGCHAN = 0x80047437
|
||||||
|
PPPIOCGDEBUG = 0x80047441
|
||||||
|
PPPIOCGFLAGS = 0x8004745a
|
||||||
|
PPPIOCGIDLE = 0x8008743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x80487436
|
||||||
|
PPPIOCGMRU = 0x80047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x80047455
|
||||||
|
PPPIOCGUNIT = 0x80047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x80207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x40087446
|
||||||
|
PPPIOCSASYNCMAP = 0x40047457
|
||||||
|
PPPIOCSCOMPRESS = 0x400c744d
|
||||||
|
PPPIOCSDEBUG = 0x40047440
|
||||||
|
PPPIOCSFLAGS = 0x40047459
|
||||||
|
PPPIOCSMAXCID = 0x40047451
|
||||||
|
PPPIOCSMRRU = 0x4004743b
|
||||||
|
PPPIOCSMRU = 0x40047452
|
||||||
|
PPPIOCSNPMODE = 0x4008744b
|
||||||
|
PPPIOCSPASS = 0x40087447
|
||||||
|
PPPIOCSRASYNCMAP = 0x40047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x4020744f
|
||||||
|
PPPIOCXFERUNIT = 0x744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@ -1703,6 +1733,7 @@ const (
|
|||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
SCM_TXTIME = 0x3d
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
@ -1758,6 +1789,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
|
34
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
34
vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
generated
vendored
@ -1294,6 +1294,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x40082406
|
PERF_EVENT_IOC_SET_FILTER = 0x40082406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x4004743d
|
||||||
|
PPPIOCATTCHAN = 0x40047438
|
||||||
|
PPPIOCCONNECT = 0x4004743a
|
||||||
|
PPPIOCDETACH = 0x4004743c
|
||||||
|
PPPIOCDISCONN = 0x7439
|
||||||
|
PPPIOCGASYNCMAP = 0x80047458
|
||||||
|
PPPIOCGCHAN = 0x80047437
|
||||||
|
PPPIOCGDEBUG = 0x80047441
|
||||||
|
PPPIOCGFLAGS = 0x8004745a
|
||||||
|
PPPIOCGIDLE = 0x8010743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x80487436
|
||||||
|
PPPIOCGMRU = 0x80047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x80047455
|
||||||
|
PPPIOCGUNIT = 0x80047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x80207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x40107446
|
||||||
|
PPPIOCSASYNCMAP = 0x40047457
|
||||||
|
PPPIOCSCOMPRESS = 0x4010744d
|
||||||
|
PPPIOCSDEBUG = 0x40047440
|
||||||
|
PPPIOCSFLAGS = 0x40047459
|
||||||
|
PPPIOCSMAXCID = 0x40047451
|
||||||
|
PPPIOCSMRRU = 0x4004743b
|
||||||
|
PPPIOCSMRU = 0x40047452
|
||||||
|
PPPIOCSNPMODE = 0x4008744b
|
||||||
|
PPPIOCSPASS = 0x40107447
|
||||||
|
PPPIOCSRASYNCMAP = 0x40047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x4020744f
|
||||||
|
PPPIOCXFERUNIT = 0x744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@ -1687,6 +1717,7 @@ const (
|
|||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
SCM_TXTIME = 0x3d
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
@ -1742,6 +1773,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
|
34
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
34
vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
generated
vendored
@ -1291,6 +1291,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x80042406
|
PERF_EVENT_IOC_SET_FILTER = 0x80042406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x8004743d
|
||||||
|
PPPIOCATTCHAN = 0x80047438
|
||||||
|
PPPIOCCONNECT = 0x8004743a
|
||||||
|
PPPIOCDETACH = 0x8004743c
|
||||||
|
PPPIOCDISCONN = 0x20007439
|
||||||
|
PPPIOCGASYNCMAP = 0x40047458
|
||||||
|
PPPIOCGCHAN = 0x40047437
|
||||||
|
PPPIOCGDEBUG = 0x40047441
|
||||||
|
PPPIOCGFLAGS = 0x4004745a
|
||||||
|
PPPIOCGIDLE = 0x4008743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x40487436
|
||||||
|
PPPIOCGMRU = 0x40047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x40047455
|
||||||
|
PPPIOCGUNIT = 0x40047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x40207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x80087446
|
||||||
|
PPPIOCSASYNCMAP = 0x80047457
|
||||||
|
PPPIOCSCOMPRESS = 0x800c744d
|
||||||
|
PPPIOCSDEBUG = 0x80047440
|
||||||
|
PPPIOCSFLAGS = 0x80047459
|
||||||
|
PPPIOCSMAXCID = 0x80047451
|
||||||
|
PPPIOCSMRRU = 0x8004743b
|
||||||
|
PPPIOCSMRU = 0x80047452
|
||||||
|
PPPIOCSNPMODE = 0x8008744b
|
||||||
|
PPPIOCSPASS = 0x80087447
|
||||||
|
PPPIOCSRASYNCMAP = 0x80047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x8020744f
|
||||||
|
PPPIOCXFERUNIT = 0x2000744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@ -1696,6 +1726,7 @@ const (
|
|||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
SCM_TXTIME = 0x3d
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
@ -1751,6 +1782,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
|
34
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
34
vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
generated
vendored
@ -1291,6 +1291,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x8004743d
|
||||||
|
PPPIOCATTCHAN = 0x80047438
|
||||||
|
PPPIOCCONNECT = 0x8004743a
|
||||||
|
PPPIOCDETACH = 0x8004743c
|
||||||
|
PPPIOCDISCONN = 0x20007439
|
||||||
|
PPPIOCGASYNCMAP = 0x40047458
|
||||||
|
PPPIOCGCHAN = 0x40047437
|
||||||
|
PPPIOCGDEBUG = 0x40047441
|
||||||
|
PPPIOCGFLAGS = 0x4004745a
|
||||||
|
PPPIOCGIDLE = 0x4010743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x40487436
|
||||||
|
PPPIOCGMRU = 0x40047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x40047455
|
||||||
|
PPPIOCGUNIT = 0x40047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x40207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x80107446
|
||||||
|
PPPIOCSASYNCMAP = 0x80047457
|
||||||
|
PPPIOCSCOMPRESS = 0x8010744d
|
||||||
|
PPPIOCSDEBUG = 0x80047440
|
||||||
|
PPPIOCSFLAGS = 0x80047459
|
||||||
|
PPPIOCSMAXCID = 0x80047451
|
||||||
|
PPPIOCSMRRU = 0x8004743b
|
||||||
|
PPPIOCSMRU = 0x80047452
|
||||||
|
PPPIOCSNPMODE = 0x8008744b
|
||||||
|
PPPIOCSPASS = 0x80107447
|
||||||
|
PPPIOCSRASYNCMAP = 0x80047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x8020744f
|
||||||
|
PPPIOCXFERUNIT = 0x2000744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@ -1696,6 +1726,7 @@ const (
|
|||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
SCM_TXTIME = 0x3d
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
@ -1751,6 +1782,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
|
34
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
34
vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
generated
vendored
@ -1291,6 +1291,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x8004743d
|
||||||
|
PPPIOCATTCHAN = 0x80047438
|
||||||
|
PPPIOCCONNECT = 0x8004743a
|
||||||
|
PPPIOCDETACH = 0x8004743c
|
||||||
|
PPPIOCDISCONN = 0x20007439
|
||||||
|
PPPIOCGASYNCMAP = 0x40047458
|
||||||
|
PPPIOCGCHAN = 0x40047437
|
||||||
|
PPPIOCGDEBUG = 0x40047441
|
||||||
|
PPPIOCGFLAGS = 0x4004745a
|
||||||
|
PPPIOCGIDLE = 0x4010743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x40487436
|
||||||
|
PPPIOCGMRU = 0x40047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x40047455
|
||||||
|
PPPIOCGUNIT = 0x40047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x40207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x80107446
|
||||||
|
PPPIOCSASYNCMAP = 0x80047457
|
||||||
|
PPPIOCSCOMPRESS = 0x8010744d
|
||||||
|
PPPIOCSDEBUG = 0x80047440
|
||||||
|
PPPIOCSFLAGS = 0x80047459
|
||||||
|
PPPIOCSMAXCID = 0x80047451
|
||||||
|
PPPIOCSMRRU = 0x8004743b
|
||||||
|
PPPIOCSMRU = 0x80047452
|
||||||
|
PPPIOCSNPMODE = 0x8008744b
|
||||||
|
PPPIOCSPASS = 0x80107447
|
||||||
|
PPPIOCSRASYNCMAP = 0x80047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x8020744f
|
||||||
|
PPPIOCXFERUNIT = 0x2000744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@ -1696,6 +1726,7 @@ const (
|
|||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
SCM_TXTIME = 0x3d
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
@ -1751,6 +1782,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
|
34
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
34
vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
generated
vendored
@ -1291,6 +1291,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x80042406
|
PERF_EVENT_IOC_SET_FILTER = 0x80042406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x8004743d
|
||||||
|
PPPIOCATTCHAN = 0x80047438
|
||||||
|
PPPIOCCONNECT = 0x8004743a
|
||||||
|
PPPIOCDETACH = 0x8004743c
|
||||||
|
PPPIOCDISCONN = 0x20007439
|
||||||
|
PPPIOCGASYNCMAP = 0x40047458
|
||||||
|
PPPIOCGCHAN = 0x40047437
|
||||||
|
PPPIOCGDEBUG = 0x40047441
|
||||||
|
PPPIOCGFLAGS = 0x4004745a
|
||||||
|
PPPIOCGIDLE = 0x4008743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x40487436
|
||||||
|
PPPIOCGMRU = 0x40047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x40047455
|
||||||
|
PPPIOCGUNIT = 0x40047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x40207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x80087446
|
||||||
|
PPPIOCSASYNCMAP = 0x80047457
|
||||||
|
PPPIOCSCOMPRESS = 0x800c744d
|
||||||
|
PPPIOCSDEBUG = 0x80047440
|
||||||
|
PPPIOCSFLAGS = 0x80047459
|
||||||
|
PPPIOCSMAXCID = 0x80047451
|
||||||
|
PPPIOCSMRRU = 0x8004743b
|
||||||
|
PPPIOCSMRU = 0x80047452
|
||||||
|
PPPIOCSNPMODE = 0x8008744b
|
||||||
|
PPPIOCSPASS = 0x80087447
|
||||||
|
PPPIOCSRASYNCMAP = 0x80047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x8020744f
|
||||||
|
PPPIOCXFERUNIT = 0x2000744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@ -1696,6 +1726,7 @@ const (
|
|||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
SCM_TXTIME = 0x3d
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
@ -1751,6 +1782,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
|
34
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
34
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
generated
vendored
@ -1292,6 +1292,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x8004743d
|
||||||
|
PPPIOCATTCHAN = 0x80047438
|
||||||
|
PPPIOCCONNECT = 0x8004743a
|
||||||
|
PPPIOCDETACH = 0x8004743c
|
||||||
|
PPPIOCDISCONN = 0x20007439
|
||||||
|
PPPIOCGASYNCMAP = 0x40047458
|
||||||
|
PPPIOCGCHAN = 0x40047437
|
||||||
|
PPPIOCGDEBUG = 0x40047441
|
||||||
|
PPPIOCGFLAGS = 0x4004745a
|
||||||
|
PPPIOCGIDLE = 0x4010743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x40487436
|
||||||
|
PPPIOCGMRU = 0x40047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x40047455
|
||||||
|
PPPIOCGUNIT = 0x40047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x40207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x80107446
|
||||||
|
PPPIOCSASYNCMAP = 0x80047457
|
||||||
|
PPPIOCSCOMPRESS = 0x8010744d
|
||||||
|
PPPIOCSDEBUG = 0x80047440
|
||||||
|
PPPIOCSFLAGS = 0x80047459
|
||||||
|
PPPIOCSMAXCID = 0x80047451
|
||||||
|
PPPIOCSMRRU = 0x8004743b
|
||||||
|
PPPIOCSMRU = 0x80047452
|
||||||
|
PPPIOCSNPMODE = 0x8008744b
|
||||||
|
PPPIOCSPASS = 0x80107447
|
||||||
|
PPPIOCSRASYNCMAP = 0x80047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x8020744f
|
||||||
|
PPPIOCXFERUNIT = 0x2000744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@ -1752,6 +1782,7 @@ const (
|
|||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
SCM_TXTIME = 0x3d
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
@ -1807,6 +1838,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
|
34
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
34
vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
generated
vendored
@ -1292,6 +1292,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
PERF_EVENT_IOC_SET_FILTER = 0x80082406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x20002405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x8004743d
|
||||||
|
PPPIOCATTCHAN = 0x80047438
|
||||||
|
PPPIOCCONNECT = 0x8004743a
|
||||||
|
PPPIOCDETACH = 0x8004743c
|
||||||
|
PPPIOCDISCONN = 0x20007439
|
||||||
|
PPPIOCGASYNCMAP = 0x40047458
|
||||||
|
PPPIOCGCHAN = 0x40047437
|
||||||
|
PPPIOCGDEBUG = 0x40047441
|
||||||
|
PPPIOCGFLAGS = 0x4004745a
|
||||||
|
PPPIOCGIDLE = 0x4010743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x40487436
|
||||||
|
PPPIOCGMRU = 0x40047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x40047455
|
||||||
|
PPPIOCGUNIT = 0x40047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x40207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x80107446
|
||||||
|
PPPIOCSASYNCMAP = 0x80047457
|
||||||
|
PPPIOCSCOMPRESS = 0x8010744d
|
||||||
|
PPPIOCSDEBUG = 0x80047440
|
||||||
|
PPPIOCSFLAGS = 0x80047459
|
||||||
|
PPPIOCSMAXCID = 0x80047451
|
||||||
|
PPPIOCSMRRU = 0x8004743b
|
||||||
|
PPPIOCSMRU = 0x80047452
|
||||||
|
PPPIOCSNPMODE = 0x8008744b
|
||||||
|
PPPIOCSPASS = 0x80107447
|
||||||
|
PPPIOCSRASYNCMAP = 0x80047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x8020744f
|
||||||
|
PPPIOCXFERUNIT = 0x2000744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@ -1752,6 +1782,7 @@ const (
|
|||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
SCM_TXTIME = 0x3d
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
@ -1807,6 +1838,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
|
34
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
generated
vendored
34
vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
generated
vendored
@ -1291,6 +1291,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x40082406
|
PERF_EVENT_IOC_SET_FILTER = 0x40082406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x4004743d
|
||||||
|
PPPIOCATTCHAN = 0x40047438
|
||||||
|
PPPIOCCONNECT = 0x4004743a
|
||||||
|
PPPIOCDETACH = 0x4004743c
|
||||||
|
PPPIOCDISCONN = 0x7439
|
||||||
|
PPPIOCGASYNCMAP = 0x80047458
|
||||||
|
PPPIOCGCHAN = 0x80047437
|
||||||
|
PPPIOCGDEBUG = 0x80047441
|
||||||
|
PPPIOCGFLAGS = 0x8004745a
|
||||||
|
PPPIOCGIDLE = 0x8010743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x80487436
|
||||||
|
PPPIOCGMRU = 0x80047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x80047455
|
||||||
|
PPPIOCGUNIT = 0x80047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x80207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x40107446
|
||||||
|
PPPIOCSASYNCMAP = 0x40047457
|
||||||
|
PPPIOCSCOMPRESS = 0x4010744d
|
||||||
|
PPPIOCSDEBUG = 0x40047440
|
||||||
|
PPPIOCSFLAGS = 0x40047459
|
||||||
|
PPPIOCSMAXCID = 0x40047451
|
||||||
|
PPPIOCSMRRU = 0x4004743b
|
||||||
|
PPPIOCSMRU = 0x40047452
|
||||||
|
PPPIOCSNPMODE = 0x4008744b
|
||||||
|
PPPIOCSPASS = 0x40107447
|
||||||
|
PPPIOCSRASYNCMAP = 0x40047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x4020744f
|
||||||
|
PPPIOCXFERUNIT = 0x744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@ -1684,6 +1714,7 @@ const (
|
|||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
SCM_TXTIME = 0x3d
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
@ -1739,6 +1770,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
|
34
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
34
vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
generated
vendored
@ -1291,6 +1291,36 @@ const (
|
|||||||
PERF_EVENT_IOC_SET_FILTER = 0x40082406
|
PERF_EVENT_IOC_SET_FILTER = 0x40082406
|
||||||
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
PERF_EVENT_IOC_SET_OUTPUT = 0x2405
|
||||||
PIPEFS_MAGIC = 0x50495045
|
PIPEFS_MAGIC = 0x50495045
|
||||||
|
PPPIOCATTACH = 0x4004743d
|
||||||
|
PPPIOCATTCHAN = 0x40047438
|
||||||
|
PPPIOCCONNECT = 0x4004743a
|
||||||
|
PPPIOCDETACH = 0x4004743c
|
||||||
|
PPPIOCDISCONN = 0x7439
|
||||||
|
PPPIOCGASYNCMAP = 0x80047458
|
||||||
|
PPPIOCGCHAN = 0x80047437
|
||||||
|
PPPIOCGDEBUG = 0x80047441
|
||||||
|
PPPIOCGFLAGS = 0x8004745a
|
||||||
|
PPPIOCGIDLE = 0x8010743f
|
||||||
|
PPPIOCGL2TPSTATS = 0x80487436
|
||||||
|
PPPIOCGMRU = 0x80047453
|
||||||
|
PPPIOCGNPMODE = 0xc008744c
|
||||||
|
PPPIOCGRASYNCMAP = 0x80047455
|
||||||
|
PPPIOCGUNIT = 0x80047456
|
||||||
|
PPPIOCGXASYNCMAP = 0x80207450
|
||||||
|
PPPIOCNEWUNIT = 0xc004743e
|
||||||
|
PPPIOCSACTIVE = 0x40107446
|
||||||
|
PPPIOCSASYNCMAP = 0x40047457
|
||||||
|
PPPIOCSCOMPRESS = 0x4010744d
|
||||||
|
PPPIOCSDEBUG = 0x40047440
|
||||||
|
PPPIOCSFLAGS = 0x40047459
|
||||||
|
PPPIOCSMAXCID = 0x40047451
|
||||||
|
PPPIOCSMRRU = 0x4004743b
|
||||||
|
PPPIOCSMRU = 0x40047452
|
||||||
|
PPPIOCSNPMODE = 0x4008744b
|
||||||
|
PPPIOCSPASS = 0x40107447
|
||||||
|
PPPIOCSRASYNCMAP = 0x40047454
|
||||||
|
PPPIOCSXASYNCMAP = 0x4020744f
|
||||||
|
PPPIOCXFERUNIT = 0x744e
|
||||||
PRIO_PGRP = 0x1
|
PRIO_PGRP = 0x1
|
||||||
PRIO_PROCESS = 0x0
|
PRIO_PROCESS = 0x0
|
||||||
PRIO_USER = 0x2
|
PRIO_USER = 0x2
|
||||||
@ -1757,6 +1787,7 @@ const (
|
|||||||
SCM_TIMESTAMPNS = 0x23
|
SCM_TIMESTAMPNS = 0x23
|
||||||
SCM_TXTIME = 0x3d
|
SCM_TXTIME = 0x3d
|
||||||
SCM_WIFI_STATUS = 0x29
|
SCM_WIFI_STATUS = 0x29
|
||||||
|
SC_LOG_FLUSH = 0x100000
|
||||||
SECCOMP_MODE_DISABLED = 0x0
|
SECCOMP_MODE_DISABLED = 0x0
|
||||||
SECCOMP_MODE_FILTER = 0x2
|
SECCOMP_MODE_FILTER = 0x2
|
||||||
SECCOMP_MODE_STRICT = 0x1
|
SECCOMP_MODE_STRICT = 0x1
|
||||||
@ -1812,6 +1843,9 @@ const (
|
|||||||
SIOCGMIIPHY = 0x8947
|
SIOCGMIIPHY = 0x8947
|
||||||
SIOCGMIIREG = 0x8948
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
|
SIOCGPPPCSTATS = 0x89f2
|
||||||
|
SIOCGPPPSTATS = 0x89f0
|
||||||
|
SIOCGPPPVER = 0x89f1
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
SIOCGSKNS = 0x894c
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
|
115
vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
generated
vendored
115
vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go
generated
vendored
@ -588,6 +588,21 @@ 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 Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Fchdir(fd int) (err error) {
|
func Fchdir(fd int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
|
_, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -643,6 +658,21 @@ func Fchown(fd int, uid int, gid int) (err error) {
|
|||||||
|
|
||||||
// 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 Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Flock(fd int, how int) (err error) {
|
func Flock(fd int, how int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
|
_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -927,6 +957,26 @@ func Link(path string, link string) (err error) {
|
|||||||
|
|
||||||
// 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 Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Listen(s int, backlog int) (err error) {
|
func Listen(s int, backlog int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
|
_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -967,6 +1017,21 @@ func Mkdir(path string, mode uint32) (err error) {
|
|||||||
|
|
||||||
// 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 Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mkfifo(path string, mode uint32) (err error) {
|
func Mkfifo(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -997,6 +1062,21 @@ func Mknod(path string, mode uint32, dev int) (err error) {
|
|||||||
|
|
||||||
// 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 Mknodat(fd int, path string, mode uint32, dev int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -1361,6 +1441,26 @@ func Symlink(path string, link string) (err error) {
|
|||||||
|
|
||||||
// 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 Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(oldpath)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(newpath)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), 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 Sync() (err error) {
|
func Sync() (err error) {
|
||||||
_, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
|
_, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -1424,6 +1524,21 @@ func Unlink(path string) (err error) {
|
|||||||
|
|
||||||
// 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 Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Unmount(path string, flags int) (err error) {
|
func Unmount(path string, flags int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
157
vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
generated
vendored
157
vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go
generated
vendored
@ -865,6 +865,21 @@ func Fchown(fd int, uid int, gid int) (err error) {
|
|||||||
|
|
||||||
// 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 Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Flock(fd int, how int) (err error) {
|
func Flock(fd int, how int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
|
_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -1114,6 +1129,26 @@ func Link(path string, link string) (err error) {
|
|||||||
|
|
||||||
// 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 Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Listen(s int, backlog int) (err error) {
|
func Listen(s int, backlog int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
|
_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -1154,6 +1189,21 @@ func Mkdir(path string, mode uint32) (err error) {
|
|||||||
|
|
||||||
// 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 Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mkfifo(path string, mode uint32) (err error) {
|
func Mkfifo(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1169,6 +1219,21 @@ func Mkfifo(path string, mode uint32) (err error) {
|
|||||||
|
|
||||||
// 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 Mkfifoat(dirfd int, path string, mode uint32) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MKFIFOAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mknod(path string, mode uint32, dev int) (err error) {
|
func Mknod(path string, mode uint32, dev int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1184,6 +1249,21 @@ func Mknod(path string, mode uint32, dev int) (err error) {
|
|||||||
|
|
||||||
// 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 Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -1315,6 +1395,28 @@ func Readlink(path string, buf []byte) (n int, err error) {
|
|||||||
|
|
||||||
// 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 Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p1 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p1 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Rename(from string, to string) (err error) {
|
func Rename(from string, to string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(from)
|
_p0, err = BytePtrFromString(from)
|
||||||
@ -1335,6 +1437,26 @@ func Rename(from string, to string) (err error) {
|
|||||||
|
|
||||||
// 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 Renameat(fromfd int, from string, tofd int, to string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(from)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(to)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Revoke(path string) (err error) {
|
func Revoke(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1532,6 +1654,26 @@ func Symlink(path string, link string) (err error) {
|
|||||||
|
|
||||||
// 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 Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(oldpath)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(newpath)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), 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 Sync() (err error) {
|
func Sync() (err error) {
|
||||||
_, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
|
_, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -1580,6 +1722,21 @@ func Unlink(path string) (err error) {
|
|||||||
|
|
||||||
// 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 Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Unmount(path string, flags int) (err error) {
|
func Unmount(path string, flags int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
157
vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
generated
vendored
157
vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go
generated
vendored
@ -865,6 +865,21 @@ func Fchown(fd int, uid int, gid int) (err error) {
|
|||||||
|
|
||||||
// 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 Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Flock(fd int, how int) (err error) {
|
func Flock(fd int, how int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
|
_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -1114,6 +1129,26 @@ func Link(path string, link string) (err error) {
|
|||||||
|
|
||||||
// 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 Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Listen(s int, backlog int) (err error) {
|
func Listen(s int, backlog int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
|
_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -1154,6 +1189,21 @@ func Mkdir(path string, mode uint32) (err error) {
|
|||||||
|
|
||||||
// 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 Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mkfifo(path string, mode uint32) (err error) {
|
func Mkfifo(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1169,6 +1219,21 @@ func Mkfifo(path string, mode uint32) (err error) {
|
|||||||
|
|
||||||
// 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 Mkfifoat(dirfd int, path string, mode uint32) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MKFIFOAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mknod(path string, mode uint32, dev int) (err error) {
|
func Mknod(path string, mode uint32, dev int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1184,6 +1249,21 @@ func Mknod(path string, mode uint32, dev int) (err error) {
|
|||||||
|
|
||||||
// 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 Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -1315,6 +1395,28 @@ func Readlink(path string, buf []byte) (n int, err error) {
|
|||||||
|
|
||||||
// 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 Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p1 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p1 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Rename(from string, to string) (err error) {
|
func Rename(from string, to string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(from)
|
_p0, err = BytePtrFromString(from)
|
||||||
@ -1335,6 +1437,26 @@ func Rename(from string, to string) (err error) {
|
|||||||
|
|
||||||
// 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 Renameat(fromfd int, from string, tofd int, to string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(from)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(to)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Revoke(path string) (err error) {
|
func Revoke(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1532,6 +1654,26 @@ func Symlink(path string, link string) (err error) {
|
|||||||
|
|
||||||
// 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 Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(oldpath)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(newpath)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), 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 Sync() (err error) {
|
func Sync() (err error) {
|
||||||
_, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
|
_, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -1580,6 +1722,21 @@ func Unlink(path string) (err error) {
|
|||||||
|
|
||||||
// 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 Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Unmount(path string, flags int) (err error) {
|
func Unmount(path string, flags int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
157
vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
generated
vendored
157
vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go
generated
vendored
@ -865,6 +865,21 @@ func Fchown(fd int, uid int, gid int) (err error) {
|
|||||||
|
|
||||||
// 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 Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Flock(fd int, how int) (err error) {
|
func Flock(fd int, how int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
|
_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -1114,6 +1129,26 @@ func Link(path string, link string) (err error) {
|
|||||||
|
|
||||||
// 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 Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Listen(s int, backlog int) (err error) {
|
func Listen(s int, backlog int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
|
_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -1154,6 +1189,21 @@ func Mkdir(path string, mode uint32) (err error) {
|
|||||||
|
|
||||||
// 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 Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mkfifo(path string, mode uint32) (err error) {
|
func Mkfifo(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1169,6 +1219,21 @@ func Mkfifo(path string, mode uint32) (err error) {
|
|||||||
|
|
||||||
// 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 Mkfifoat(dirfd int, path string, mode uint32) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MKFIFOAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mknod(path string, mode uint32, dev int) (err error) {
|
func Mknod(path string, mode uint32, dev int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1184,6 +1249,21 @@ func Mknod(path string, mode uint32, dev int) (err error) {
|
|||||||
|
|
||||||
// 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 Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -1315,6 +1395,28 @@ func Readlink(path string, buf []byte) (n int, err error) {
|
|||||||
|
|
||||||
// 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 Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p1 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p1 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Rename(from string, to string) (err error) {
|
func Rename(from string, to string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(from)
|
_p0, err = BytePtrFromString(from)
|
||||||
@ -1335,6 +1437,26 @@ func Rename(from string, to string) (err error) {
|
|||||||
|
|
||||||
// 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 Renameat(fromfd int, from string, tofd int, to string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(from)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(to)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Revoke(path string) (err error) {
|
func Revoke(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1532,6 +1654,26 @@ func Symlink(path string, link string) (err error) {
|
|||||||
|
|
||||||
// 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 Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(oldpath)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(newpath)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), 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 Sync() (err error) {
|
func Sync() (err error) {
|
||||||
_, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
|
_, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -1580,6 +1722,21 @@ func Unlink(path string) (err error) {
|
|||||||
|
|
||||||
// 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 Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Unmount(path string, flags int) (err error) {
|
func Unmount(path string, flags int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
157
vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go
generated
vendored
157
vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go
generated
vendored
@ -650,6 +650,21 @@ func Fchown(fd int, uid int, gid int) (err error) {
|
|||||||
|
|
||||||
// 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 Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Flock(fd int, how int) (err error) {
|
func Flock(fd int, how int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
|
_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -920,6 +935,26 @@ func Link(path string, link string) (err error) {
|
|||||||
|
|
||||||
// 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 Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Listen(s int, backlog int) (err error) {
|
func Listen(s int, backlog int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
|
_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -960,6 +995,21 @@ func Mkdir(path string, mode uint32) (err error) {
|
|||||||
|
|
||||||
// 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 Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mkfifo(path string, mode uint32) (err error) {
|
func Mkfifo(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -975,6 +1025,21 @@ func Mkfifo(path string, mode uint32) (err error) {
|
|||||||
|
|
||||||
// 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 Mkfifoat(dirfd int, path string, mode uint32) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MKFIFOAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mknod(path string, mode uint32, dev int) (err error) {
|
func Mknod(path string, mode uint32, dev int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -990,6 +1055,21 @@ func Mknod(path string, mode uint32, dev int) (err error) {
|
|||||||
|
|
||||||
// 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 Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -1121,6 +1201,28 @@ func Readlink(path string, buf []byte) (n int, err error) {
|
|||||||
|
|
||||||
// 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 Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p1 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p1 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Rename(from string, to string) (err error) {
|
func Rename(from string, to string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(from)
|
_p0, err = BytePtrFromString(from)
|
||||||
@ -1141,6 +1243,26 @@ func Rename(from string, to string) (err error) {
|
|||||||
|
|
||||||
// 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 Renameat(fromfd int, from string, tofd int, to string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(from)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(to)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Revoke(path string) (err error) {
|
func Revoke(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1398,6 +1520,26 @@ func Symlink(path string, link string) (err error) {
|
|||||||
|
|
||||||
// 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 Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(oldpath)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(newpath)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), 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 Sync() (err error) {
|
func Sync() (err error) {
|
||||||
_, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
|
_, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -1446,6 +1588,21 @@ func Unlink(path string) (err error) {
|
|||||||
|
|
||||||
// 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 Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Unmount(path string, flags int) (err error) {
|
func Unmount(path string, flags int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
157
vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go
generated
vendored
157
vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go
generated
vendored
@ -650,6 +650,21 @@ func Fchown(fd int, uid int, gid int) (err error) {
|
|||||||
|
|
||||||
// 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 Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Flock(fd int, how int) (err error) {
|
func Flock(fd int, how int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
|
_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -920,6 +935,26 @@ func Link(path string, link string) (err error) {
|
|||||||
|
|
||||||
// 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 Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Listen(s int, backlog int) (err error) {
|
func Listen(s int, backlog int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
|
_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -960,6 +995,21 @@ func Mkdir(path string, mode uint32) (err error) {
|
|||||||
|
|
||||||
// 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 Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mkfifo(path string, mode uint32) (err error) {
|
func Mkfifo(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -975,6 +1025,21 @@ func Mkfifo(path string, mode uint32) (err error) {
|
|||||||
|
|
||||||
// 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 Mkfifoat(dirfd int, path string, mode uint32) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MKFIFOAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mknod(path string, mode uint32, dev int) (err error) {
|
func Mknod(path string, mode uint32, dev int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -990,6 +1055,21 @@ func Mknod(path string, mode uint32, dev int) (err error) {
|
|||||||
|
|
||||||
// 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 Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -1121,6 +1201,28 @@ func Readlink(path string, buf []byte) (n int, err error) {
|
|||||||
|
|
||||||
// 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 Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p1 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p1 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Rename(from string, to string) (err error) {
|
func Rename(from string, to string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(from)
|
_p0, err = BytePtrFromString(from)
|
||||||
@ -1141,6 +1243,26 @@ func Rename(from string, to string) (err error) {
|
|||||||
|
|
||||||
// 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 Renameat(fromfd int, from string, tofd int, to string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(from)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(to)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Revoke(path string) (err error) {
|
func Revoke(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1398,6 +1520,26 @@ func Symlink(path string, link string) (err error) {
|
|||||||
|
|
||||||
// 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 Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(oldpath)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(newpath)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), 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 Sync() (err error) {
|
func Sync() (err error) {
|
||||||
_, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
|
_, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -1446,6 +1588,21 @@ func Unlink(path string) (err error) {
|
|||||||
|
|
||||||
// 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 Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Unmount(path string, flags int) (err error) {
|
func Unmount(path string, flags int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
157
vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go
generated
vendored
157
vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go
generated
vendored
@ -650,6 +650,21 @@ func Fchown(fd int, uid int, gid int) (err error) {
|
|||||||
|
|
||||||
// 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 Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Flock(fd int, how int) (err error) {
|
func Flock(fd int, how int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
|
_, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -920,6 +935,26 @@ func Link(path string, link string) (err error) {
|
|||||||
|
|
||||||
// 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 Linkat(pathfd int, path string, linkfd int, link string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(link)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Listen(s int, backlog int) (err error) {
|
func Listen(s int, backlog int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
|
_, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -960,6 +995,21 @@ func Mkdir(path string, mode uint32) (err error) {
|
|||||||
|
|
||||||
// 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 Mkdirat(dirfd int, path string, mode uint32) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mkfifo(path string, mode uint32) (err error) {
|
func Mkfifo(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -975,6 +1025,21 @@ func Mkfifo(path string, mode uint32) (err error) {
|
|||||||
|
|
||||||
// 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 Mkfifoat(dirfd int, path string, mode uint32) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MKFIFOAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Mknod(path string, mode uint32, dev int) (err error) {
|
func Mknod(path string, mode uint32, dev int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -990,6 +1055,21 @@ func Mknod(path string, mode uint32, dev int) (err error) {
|
|||||||
|
|
||||||
// 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 Mknodat(dirfd int, path string, mode uint32, dev int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
func Nanosleep(time *Timespec, leftover *Timespec) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
_, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -1121,6 +1201,28 @@ func Readlink(path string, buf []byte) (n int, err error) {
|
|||||||
|
|
||||||
// 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 Readlinkat(dirfd int, path string, buf []byte) (n int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 unsafe.Pointer
|
||||||
|
if len(buf) > 0 {
|
||||||
|
_p1 = unsafe.Pointer(&buf[0])
|
||||||
|
} else {
|
||||||
|
_p1 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)
|
||||||
|
n = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Rename(from string, to string) (err error) {
|
func Rename(from string, to string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(from)
|
_p0, err = BytePtrFromString(from)
|
||||||
@ -1141,6 +1243,26 @@ func Rename(from string, to string) (err error) {
|
|||||||
|
|
||||||
// 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 Renameat(fromfd int, from string, tofd int, to string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(from)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(to)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Revoke(path string) (err error) {
|
func Revoke(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
@ -1398,6 +1520,26 @@ func Symlink(path string, link string) (err error) {
|
|||||||
|
|
||||||
// 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 Symlinkat(oldpath string, newdirfd int, newpath string) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(oldpath)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = BytePtrFromString(newpath)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), 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 Sync() (err error) {
|
func Sync() (err error) {
|
||||||
_, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
|
_, _, e1 := Syscall(SYS_SYNC, 0, 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
@ -1446,6 +1588,21 @@ func Unlink(path string) (err error) {
|
|||||||
|
|
||||||
// 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 Unlinkat(dirfd int, path string, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Unmount(path string, flags int) (err error) {
|
func Unmount(path string, flags int) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
2
vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go
generated
vendored
2
vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go
generated
vendored
@ -339,7 +339,7 @@ type Kevent_t struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type FdSet struct {
|
type FdSet struct {
|
||||||
_ [32]uint32
|
Bits [32]uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
2
vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go
generated
vendored
2
vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go
generated
vendored
@ -337,7 +337,7 @@ type Kevent_t struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type FdSet struct {
|
type FdSet struct {
|
||||||
_ [16]uint64
|
Bits [16]uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
2
vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go
generated
vendored
2
vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go
generated
vendored
@ -337,7 +337,7 @@ type Kevent_t struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type FdSet struct {
|
type FdSet struct {
|
||||||
_ [32]uint32
|
Bits [32]uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
3
vendor/golang.org/x/sys/unix/ztypes_linux_386.go
generated
vendored
3
vendor/golang.org/x/sys/unix/ztypes_linux_386.go
generated
vendored
@ -286,6 +286,8 @@ type RawSockaddrXDP struct {
|
|||||||
Shared_umem_fd uint32
|
Shared_umem_fd uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type RawSockaddrPPPoX [0x1e]byte
|
||||||
|
|
||||||
type RawSockaddr struct {
|
type RawSockaddr struct {
|
||||||
Family uint16
|
Family uint16
|
||||||
Data [14]int8
|
Data [14]int8
|
||||||
@ -421,6 +423,7 @@ const (
|
|||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofSockaddrXDP = 0x10
|
SizeofSockaddrXDP = 0x10
|
||||||
|
SizeofSockaddrPPPoX = 0x1e
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
SizeofIovec = 0x8
|
SizeofIovec = 0x8
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
|
3
vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
generated
vendored
3
vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
generated
vendored
@ -288,6 +288,8 @@ type RawSockaddrXDP struct {
|
|||||||
Shared_umem_fd uint32
|
Shared_umem_fd uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type RawSockaddrPPPoX [0x1e]byte
|
||||||
|
|
||||||
type RawSockaddr struct {
|
type RawSockaddr struct {
|
||||||
Family uint16
|
Family uint16
|
||||||
Data [14]int8
|
Data [14]int8
|
||||||
@ -425,6 +427,7 @@ const (
|
|||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofSockaddrXDP = 0x10
|
SizeofSockaddrXDP = 0x10
|
||||||
|
SizeofSockaddrPPPoX = 0x1e
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
SizeofIovec = 0x10
|
SizeofIovec = 0x10
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
|
3
vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
generated
vendored
3
vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
generated
vendored
@ -289,6 +289,8 @@ type RawSockaddrXDP struct {
|
|||||||
Shared_umem_fd uint32
|
Shared_umem_fd uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type RawSockaddrPPPoX [0x1e]byte
|
||||||
|
|
||||||
type RawSockaddr struct {
|
type RawSockaddr struct {
|
||||||
Family uint16
|
Family uint16
|
||||||
Data [14]uint8
|
Data [14]uint8
|
||||||
@ -424,6 +426,7 @@ const (
|
|||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofSockaddrXDP = 0x10
|
SizeofSockaddrXDP = 0x10
|
||||||
|
SizeofSockaddrPPPoX = 0x1e
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
SizeofIovec = 0x8
|
SizeofIovec = 0x8
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
|
3
vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
generated
vendored
3
vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
generated
vendored
@ -289,6 +289,8 @@ type RawSockaddrXDP struct {
|
|||||||
Shared_umem_fd uint32
|
Shared_umem_fd uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type RawSockaddrPPPoX [0x1e]byte
|
||||||
|
|
||||||
type RawSockaddr struct {
|
type RawSockaddr struct {
|
||||||
Family uint16
|
Family uint16
|
||||||
Data [14]int8
|
Data [14]int8
|
||||||
@ -426,6 +428,7 @@ const (
|
|||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofSockaddrXDP = 0x10
|
SizeofSockaddrXDP = 0x10
|
||||||
|
SizeofSockaddrPPPoX = 0x1e
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
SizeofIovec = 0x10
|
SizeofIovec = 0x10
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
|
3
vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
generated
vendored
3
vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
generated
vendored
@ -287,6 +287,8 @@ type RawSockaddrXDP struct {
|
|||||||
Shared_umem_fd uint32
|
Shared_umem_fd uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type RawSockaddrPPPoX [0x1e]byte
|
||||||
|
|
||||||
type RawSockaddr struct {
|
type RawSockaddr struct {
|
||||||
Family uint16
|
Family uint16
|
||||||
Data [14]int8
|
Data [14]int8
|
||||||
@ -422,6 +424,7 @@ const (
|
|||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofSockaddrXDP = 0x10
|
SizeofSockaddrXDP = 0x10
|
||||||
|
SizeofSockaddrPPPoX = 0x1e
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
SizeofIovec = 0x8
|
SizeofIovec = 0x8
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
|
3
vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
generated
vendored
3
vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
generated
vendored
@ -289,6 +289,8 @@ type RawSockaddrXDP struct {
|
|||||||
Shared_umem_fd uint32
|
Shared_umem_fd uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type RawSockaddrPPPoX [0x1e]byte
|
||||||
|
|
||||||
type RawSockaddr struct {
|
type RawSockaddr struct {
|
||||||
Family uint16
|
Family uint16
|
||||||
Data [14]int8
|
Data [14]int8
|
||||||
@ -426,6 +428,7 @@ const (
|
|||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofSockaddrXDP = 0x10
|
SizeofSockaddrXDP = 0x10
|
||||||
|
SizeofSockaddrPPPoX = 0x1e
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
SizeofIovec = 0x10
|
SizeofIovec = 0x10
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
|
3
vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
generated
vendored
3
vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
generated
vendored
@ -289,6 +289,8 @@ type RawSockaddrXDP struct {
|
|||||||
Shared_umem_fd uint32
|
Shared_umem_fd uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type RawSockaddrPPPoX [0x1e]byte
|
||||||
|
|
||||||
type RawSockaddr struct {
|
type RawSockaddr struct {
|
||||||
Family uint16
|
Family uint16
|
||||||
Data [14]int8
|
Data [14]int8
|
||||||
@ -426,6 +428,7 @@ const (
|
|||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofSockaddrXDP = 0x10
|
SizeofSockaddrXDP = 0x10
|
||||||
|
SizeofSockaddrPPPoX = 0x1e
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
SizeofIovec = 0x10
|
SizeofIovec = 0x10
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
|
3
vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
generated
vendored
3
vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
generated
vendored
@ -287,6 +287,8 @@ type RawSockaddrXDP struct {
|
|||||||
Shared_umem_fd uint32
|
Shared_umem_fd uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type RawSockaddrPPPoX [0x1e]byte
|
||||||
|
|
||||||
type RawSockaddr struct {
|
type RawSockaddr struct {
|
||||||
Family uint16
|
Family uint16
|
||||||
Data [14]int8
|
Data [14]int8
|
||||||
@ -422,6 +424,7 @@ const (
|
|||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofSockaddrXDP = 0x10
|
SizeofSockaddrXDP = 0x10
|
||||||
|
SizeofSockaddrPPPoX = 0x1e
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
SizeofIovec = 0x8
|
SizeofIovec = 0x8
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
|
3
vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
generated
vendored
3
vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
generated
vendored
@ -290,6 +290,8 @@ type RawSockaddrXDP struct {
|
|||||||
Shared_umem_fd uint32
|
Shared_umem_fd uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type RawSockaddrPPPoX [0x1e]byte
|
||||||
|
|
||||||
type RawSockaddr struct {
|
type RawSockaddr struct {
|
||||||
Family uint16
|
Family uint16
|
||||||
Data [14]uint8
|
Data [14]uint8
|
||||||
@ -427,6 +429,7 @@ const (
|
|||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofSockaddrXDP = 0x10
|
SizeofSockaddrXDP = 0x10
|
||||||
|
SizeofSockaddrPPPoX = 0x1e
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
SizeofIovec = 0x10
|
SizeofIovec = 0x10
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
|
3
vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
generated
vendored
3
vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
generated
vendored
@ -290,6 +290,8 @@ type RawSockaddrXDP struct {
|
|||||||
Shared_umem_fd uint32
|
Shared_umem_fd uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type RawSockaddrPPPoX [0x1e]byte
|
||||||
|
|
||||||
type RawSockaddr struct {
|
type RawSockaddr struct {
|
||||||
Family uint16
|
Family uint16
|
||||||
Data [14]uint8
|
Data [14]uint8
|
||||||
@ -427,6 +429,7 @@ const (
|
|||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofSockaddrXDP = 0x10
|
SizeofSockaddrXDP = 0x10
|
||||||
|
SizeofSockaddrPPPoX = 0x1e
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
SizeofIovec = 0x10
|
SizeofIovec = 0x10
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
|
3
vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
generated
vendored
3
vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
generated
vendored
@ -289,6 +289,8 @@ type RawSockaddrXDP struct {
|
|||||||
Shared_umem_fd uint32
|
Shared_umem_fd uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type RawSockaddrPPPoX [0x1e]byte
|
||||||
|
|
||||||
type RawSockaddr struct {
|
type RawSockaddr struct {
|
||||||
Family uint16
|
Family uint16
|
||||||
Data [14]uint8
|
Data [14]uint8
|
||||||
@ -426,6 +428,7 @@ const (
|
|||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofSockaddrXDP = 0x10
|
SizeofSockaddrXDP = 0x10
|
||||||
|
SizeofSockaddrPPPoX = 0x1e
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
SizeofIovec = 0x10
|
SizeofIovec = 0x10
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
|
3
vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
generated
vendored
3
vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
generated
vendored
@ -288,6 +288,8 @@ type RawSockaddrXDP struct {
|
|||||||
Shared_umem_fd uint32
|
Shared_umem_fd uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type RawSockaddrPPPoX [0x1e]byte
|
||||||
|
|
||||||
type RawSockaddr struct {
|
type RawSockaddr struct {
|
||||||
Family uint16
|
Family uint16
|
||||||
Data [14]int8
|
Data [14]int8
|
||||||
@ -425,6 +427,7 @@ const (
|
|||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofSockaddrXDP = 0x10
|
SizeofSockaddrXDP = 0x10
|
||||||
|
SizeofSockaddrPPPoX = 0x1e
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
SizeofIovec = 0x10
|
SizeofIovec = 0x10
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
|
7
vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go
generated
vendored
7
vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go
generated
vendored
@ -402,6 +402,13 @@ type Winsize struct {
|
|||||||
Ypixel uint16
|
Ypixel uint16
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Ptmget struct {
|
||||||
|
Cfd int32
|
||||||
|
Sfd int32
|
||||||
|
Cn [1024]byte
|
||||||
|
Sn [1024]byte
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
AT_FDCWD = -0x64
|
AT_FDCWD = -0x64
|
||||||
AT_SYMLINK_NOFOLLOW = 0x200
|
AT_SYMLINK_NOFOLLOW = 0x200
|
||||||
|
7
vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go
generated
vendored
7
vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go
generated
vendored
@ -409,6 +409,13 @@ type Winsize struct {
|
|||||||
Ypixel uint16
|
Ypixel uint16
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Ptmget struct {
|
||||||
|
Cfd int32
|
||||||
|
Sfd int32
|
||||||
|
Cn [1024]byte
|
||||||
|
Sn [1024]byte
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
AT_FDCWD = -0x64
|
AT_FDCWD = -0x64
|
||||||
AT_SYMLINK_NOFOLLOW = 0x200
|
AT_SYMLINK_NOFOLLOW = 0x200
|
||||||
|
7
vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go
generated
vendored
7
vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go
generated
vendored
@ -407,6 +407,13 @@ type Winsize struct {
|
|||||||
Ypixel uint16
|
Ypixel uint16
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Ptmget struct {
|
||||||
|
Cfd int32
|
||||||
|
Sfd int32
|
||||||
|
Cn [1024]byte
|
||||||
|
Sn [1024]byte
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
AT_FDCWD = -0x64
|
AT_FDCWD = -0x64
|
||||||
AT_SYMLINK_NOFOLLOW = 0x200
|
AT_SYMLINK_NOFOLLOW = 0x200
|
||||||
|
37
vendor/modules.txt
vendored
Normal file
37
vendor/modules.txt
vendored
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
# github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802
|
||||||
|
github.com/BurntSushi/xgb/xproto
|
||||||
|
github.com/BurntSushi/xgb
|
||||||
|
github.com/BurntSushi/xgb/xinerama
|
||||||
|
github.com/BurntSushi/xgb/shape
|
||||||
|
# github.com/BurntSushi/xgbutil v0.0.0-20160919175755-f7c97cef3b4e
|
||||||
|
github.com/BurntSushi/xgbutil
|
||||||
|
github.com/BurntSushi/xgbutil/ewmh
|
||||||
|
github.com/BurntSushi/xgbutil/xevent
|
||||||
|
github.com/BurntSushi/xgbutil/xprop
|
||||||
|
# github.com/StackExchange/wmi v0.0.0-20180725035823-b12b22c5341f
|
||||||
|
github.com/StackExchange/wmi
|
||||||
|
# github.com/go-ole/go-ole v1.2.1
|
||||||
|
github.com/go-ole/go-ole
|
||||||
|
github.com/go-ole/go-ole/oleutil
|
||||||
|
# github.com/lxn/win v0.0.0-20181015143721-a7f87360b10e
|
||||||
|
github.com/lxn/win
|
||||||
|
# github.com/otiai10/gosseract v2.2.0+incompatible
|
||||||
|
github.com/otiai10/gosseract
|
||||||
|
# github.com/robotn/gohook v0.0.0-20181113164304-f27e2e52653b
|
||||||
|
github.com/robotn/gohook
|
||||||
|
# github.com/shirou/gopsutil v2.18.10+incompatible
|
||||||
|
github.com/shirou/gopsutil/process
|
||||||
|
github.com/shirou/gopsutil/cpu
|
||||||
|
github.com/shirou/gopsutil/host
|
||||||
|
github.com/shirou/gopsutil/internal/common
|
||||||
|
github.com/shirou/gopsutil/mem
|
||||||
|
github.com/shirou/gopsutil/net
|
||||||
|
# github.com/shirou/w32 v0.0.0-20160930032740-bb4de0191aa4
|
||||||
|
github.com/shirou/w32
|
||||||
|
# github.com/vcaesar/imgo v0.0.0-20181001170449-7a535c786a55
|
||||||
|
github.com/vcaesar/imgo
|
||||||
|
# golang.org/x/image v0.0.0-20181116024801-cd38e8056d9b
|
||||||
|
golang.org/x/image/bmp
|
||||||
|
# golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b
|
||||||
|
golang.org/x/sys/unix
|
||||||
|
golang.org/x/sys/windows
|
Loading…
Reference in New Issue
Block a user