mirror of https://github.com/docker/cli.git
vndr golang.org/x/sys to 07c1829
To satisfy requirements of the vndr of docker/docker Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
This commit is contained in:
parent
ef027b6d72
commit
50696bbf72
|
@ -48,7 +48,7 @@ github.com/xeipuuv/gojsonschema 93e72a773fade158921402d6a24c819b48aba29d
|
||||||
golang.org/x/crypto 3fbbcd23f1cb824e69491a5930cfeff09b12f4d2
|
golang.org/x/crypto 3fbbcd23f1cb824e69491a5930cfeff09b12f4d2
|
||||||
golang.org/x/net 7dcfb8076726a3fdd9353b6b8a1f1b6be6811bd6
|
golang.org/x/net 7dcfb8076726a3fdd9353b6b8a1f1b6be6811bd6
|
||||||
golang.org/x/sync 450f422ab23cf9881c94e2db30cac0eb1b7cf80c
|
golang.org/x/sync 450f422ab23cf9881c94e2db30cac0eb1b7cf80c
|
||||||
golang.org/x/sys 739734461d1c916b6c72a63d7efda2b27edb369f
|
golang.org/x/sys 07c182904dbd53199946ba614a412c61d3c548f5
|
||||||
golang.org/x/text f72d8390a633d5dfb0cc84043294db9f6c935756
|
golang.org/x/text f72d8390a633d5dfb0cc84043294db9f6c935756
|
||||||
golang.org/x/time a4bde12657593d5e90d0533a3e4fd95e635124cb
|
golang.org/x/time a4bde12657593d5e90d0533a3e4fd95e635124cb
|
||||||
google.golang.org/genproto d80a6e20e776b0b17a324d0ba1ab50a39c8e8944
|
google.golang.org/genproto d80a6e20e776b0b17a324d0ba1ab50a39c8e8944
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
// Copyright 2017 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 !gccgo
|
||||||
|
|
||||||
|
#include "textflag.h"
|
||||||
|
|
||||||
|
//
|
||||||
|
// System call support for ARM, OpenBSD
|
||||||
|
//
|
||||||
|
|
||||||
|
// Just jump to package syscall's implementation for all these functions.
|
||||||
|
// The runtime may know about them.
|
||||||
|
|
||||||
|
TEXT ·Syscall(SB),NOSPLIT,$0-28
|
||||||
|
B syscall·Syscall(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall6(SB),NOSPLIT,$0-40
|
||||||
|
B syscall·Syscall6(SB)
|
||||||
|
|
||||||
|
TEXT ·Syscall9(SB),NOSPLIT,$0-52
|
||||||
|
B syscall·Syscall9(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall(SB),NOSPLIT,$0-28
|
||||||
|
B syscall·RawSyscall(SB)
|
||||||
|
|
||||||
|
TEXT ·RawSyscall6(SB),NOSPLIT,$0-40
|
||||||
|
B syscall·RawSyscall6(SB)
|
|
@ -0,0 +1,195 @@
|
||||||
|
// Copyright 2017 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// +build freebsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
errorspkg "errors"
|
||||||
|
"fmt"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Go implementation of C mostly found in /usr/src/sys/kern/subr_capability.c
|
||||||
|
|
||||||
|
const (
|
||||||
|
// This is the version of CapRights this package understands. See C implementation for parallels.
|
||||||
|
capRightsGoVersion = CAP_RIGHTS_VERSION_00
|
||||||
|
capArSizeMin = CAP_RIGHTS_VERSION_00 + 2
|
||||||
|
capArSizeMax = capRightsGoVersion + 2
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
bit2idx = []int{
|
||||||
|
-1, 0, 1, -1, 2, -1, -1, -1, 3, -1, -1, -1, -1, -1, -1, -1,
|
||||||
|
4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
func capidxbit(right uint64) int {
|
||||||
|
return int((right >> 57) & 0x1f)
|
||||||
|
}
|
||||||
|
|
||||||
|
func rightToIndex(right uint64) (int, error) {
|
||||||
|
idx := capidxbit(right)
|
||||||
|
if idx < 0 || idx >= len(bit2idx) {
|
||||||
|
return -2, fmt.Errorf("index for right 0x%x out of range", right)
|
||||||
|
}
|
||||||
|
return bit2idx[idx], nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func caprver(right uint64) int {
|
||||||
|
return int(right >> 62)
|
||||||
|
}
|
||||||
|
|
||||||
|
func capver(rights *CapRights) int {
|
||||||
|
return caprver(rights.Rights[0])
|
||||||
|
}
|
||||||
|
|
||||||
|
func caparsize(rights *CapRights) int {
|
||||||
|
return capver(rights) + 2
|
||||||
|
}
|
||||||
|
|
||||||
|
// CapRightsSet sets the permissions in setrights in rights.
|
||||||
|
func CapRightsSet(rights *CapRights, setrights []uint64) error {
|
||||||
|
// This is essentially a copy of cap_rights_vset()
|
||||||
|
if capver(rights) != CAP_RIGHTS_VERSION_00 {
|
||||||
|
return fmt.Errorf("bad rights version %d", capver(rights))
|
||||||
|
}
|
||||||
|
|
||||||
|
n := caparsize(rights)
|
||||||
|
if n < capArSizeMin || n > capArSizeMax {
|
||||||
|
return errorspkg.New("bad rights size")
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, right := range setrights {
|
||||||
|
if caprver(right) != CAP_RIGHTS_VERSION_00 {
|
||||||
|
return errorspkg.New("bad right version")
|
||||||
|
}
|
||||||
|
i, err := rightToIndex(right)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if i >= n {
|
||||||
|
return errorspkg.New("index overflow")
|
||||||
|
}
|
||||||
|
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||||
|
return errorspkg.New("index mismatch")
|
||||||
|
}
|
||||||
|
rights.Rights[i] |= right
|
||||||
|
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||||
|
return errorspkg.New("index mismatch (after assign)")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// CapRightsClear clears the permissions in clearrights from rights.
|
||||||
|
func CapRightsClear(rights *CapRights, clearrights []uint64) error {
|
||||||
|
// This is essentially a copy of cap_rights_vclear()
|
||||||
|
if capver(rights) != CAP_RIGHTS_VERSION_00 {
|
||||||
|
return fmt.Errorf("bad rights version %d", capver(rights))
|
||||||
|
}
|
||||||
|
|
||||||
|
n := caparsize(rights)
|
||||||
|
if n < capArSizeMin || n > capArSizeMax {
|
||||||
|
return errorspkg.New("bad rights size")
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, right := range clearrights {
|
||||||
|
if caprver(right) != CAP_RIGHTS_VERSION_00 {
|
||||||
|
return errorspkg.New("bad right version")
|
||||||
|
}
|
||||||
|
i, err := rightToIndex(right)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
if i >= n {
|
||||||
|
return errorspkg.New("index overflow")
|
||||||
|
}
|
||||||
|
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||||
|
return errorspkg.New("index mismatch")
|
||||||
|
}
|
||||||
|
rights.Rights[i] &= ^(right & 0x01FFFFFFFFFFFFFF)
|
||||||
|
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||||
|
return errorspkg.New("index mismatch (after assign)")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// CapRightsIsSet checks whether all the permissions in setrights are present in rights.
|
||||||
|
func CapRightsIsSet(rights *CapRights, setrights []uint64) (bool, error) {
|
||||||
|
// This is essentially a copy of cap_rights_is_vset()
|
||||||
|
if capver(rights) != CAP_RIGHTS_VERSION_00 {
|
||||||
|
return false, fmt.Errorf("bad rights version %d", capver(rights))
|
||||||
|
}
|
||||||
|
|
||||||
|
n := caparsize(rights)
|
||||||
|
if n < capArSizeMin || n > capArSizeMax {
|
||||||
|
return false, errorspkg.New("bad rights size")
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, right := range setrights {
|
||||||
|
if caprver(right) != CAP_RIGHTS_VERSION_00 {
|
||||||
|
return false, errorspkg.New("bad right version")
|
||||||
|
}
|
||||||
|
i, err := rightToIndex(right)
|
||||||
|
if err != nil {
|
||||||
|
return false, err
|
||||||
|
}
|
||||||
|
if i >= n {
|
||||||
|
return false, errorspkg.New("index overflow")
|
||||||
|
}
|
||||||
|
if capidxbit(rights.Rights[i]) != capidxbit(right) {
|
||||||
|
return false, errorspkg.New("index mismatch")
|
||||||
|
}
|
||||||
|
if (rights.Rights[i] & right) != right {
|
||||||
|
return false, nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return true, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func capright(idx uint64, bit uint64) uint64 {
|
||||||
|
return ((1 << (57 + idx)) | bit)
|
||||||
|
}
|
||||||
|
|
||||||
|
// CapRightsInit returns a pointer to an initialised CapRights structure filled with rights.
|
||||||
|
// See man cap_rights_init(3) and rights(4).
|
||||||
|
func CapRightsInit(rights []uint64) (*CapRights, error) {
|
||||||
|
var r CapRights
|
||||||
|
r.Rights[0] = (capRightsGoVersion << 62) | capright(0, 0)
|
||||||
|
r.Rights[1] = capright(1, 0)
|
||||||
|
|
||||||
|
err := CapRightsSet(&r, rights)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return &r, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// CapRightsLimit reduces the operations permitted on fd to at most those contained in rights.
|
||||||
|
// The capability rights on fd can never be increased by CapRightsLimit.
|
||||||
|
// See man cap_rights_limit(2) and rights(4).
|
||||||
|
func CapRightsLimit(fd uintptr, rights *CapRights) error {
|
||||||
|
return capRightsLimit(int(fd), rights)
|
||||||
|
}
|
||||||
|
|
||||||
|
// CapRightsGet returns a CapRights structure containing the operations permitted on fd.
|
||||||
|
// See man cap_rights_get(3) and rights(4).
|
||||||
|
func CapRightsGet(fd uintptr) (*CapRights, error) {
|
||||||
|
r, err := CapRightsInit(nil)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
err = capRightsGet(capRightsGoVersion, int(fd), r)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return r, nil
|
||||||
|
}
|
|
@ -0,0 +1,42 @@
|
||||||
|
// Copyright 2017 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.
|
||||||
|
|
||||||
|
// Functions to access/create device major and minor numbers matching the
|
||||||
|
// encoding used by the Linux kernel and glibc.
|
||||||
|
//
|
||||||
|
// The information below is extracted and adapted from bits/sysmacros.h in the
|
||||||
|
// glibc sources:
|
||||||
|
//
|
||||||
|
// dev_t in glibc is 64-bit, with 32-bit major and minor numbers. glibc's
|
||||||
|
// default encoding is MMMM Mmmm mmmM MMmm, where M is a hex digit of the major
|
||||||
|
// number and m is a hex digit of the minor number. This is backward compatible
|
||||||
|
// with legacy systems where dev_t is 16 bits wide, encoded as MMmm. It is also
|
||||||
|
// backward compatible with the Linux kernel, which for some architectures uses
|
||||||
|
// 32-bit dev_t, encoded as mmmM MMmm.
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
// Major returns the major component of a Linux device number.
|
||||||
|
func Major(dev uint64) uint32 {
|
||||||
|
major := uint32((dev & 0x00000000000fff00) >> 8)
|
||||||
|
major |= uint32((dev & 0xfffff00000000000) >> 32)
|
||||||
|
return major
|
||||||
|
}
|
||||||
|
|
||||||
|
// Minor returns the minor component of a Linux device number.
|
||||||
|
func Minor(dev uint64) uint32 {
|
||||||
|
minor := uint32((dev & 0x00000000000000ff) >> 0)
|
||||||
|
minor |= uint32((dev & 0x00000ffffff00000) >> 12)
|
||||||
|
return minor
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mkdev returns a Linux device number generated from the given major and minor
|
||||||
|
// components.
|
||||||
|
func Mkdev(major, minor uint32) uint64 {
|
||||||
|
dev := uint64((major & 0x00000fff) << 8)
|
||||||
|
dev |= uint64((major & 0xfffff000) << 32)
|
||||||
|
dev |= uint64((minor & 0x000000ff) << 0)
|
||||||
|
dev |= uint64((minor & 0xffffff00) << 12)
|
||||||
|
return dev
|
||||||
|
}
|
|
@ -0,0 +1,227 @@
|
||||||
|
// Copyright 2017 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.
|
||||||
|
|
||||||
|
// Constants that were deprecated or moved to enums in the FreeBSD headers. Keep
|
||||||
|
// them here for backwards compatibility.
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
const (
|
||||||
|
IFF_SMART = 0x20
|
||||||
|
IFT_1822 = 0x2
|
||||||
|
IFT_A12MPPSWITCH = 0x82
|
||||||
|
IFT_AAL2 = 0xbb
|
||||||
|
IFT_AAL5 = 0x31
|
||||||
|
IFT_ADSL = 0x5e
|
||||||
|
IFT_AFLANE8023 = 0x3b
|
||||||
|
IFT_AFLANE8025 = 0x3c
|
||||||
|
IFT_ARAP = 0x58
|
||||||
|
IFT_ARCNET = 0x23
|
||||||
|
IFT_ARCNETPLUS = 0x24
|
||||||
|
IFT_ASYNC = 0x54
|
||||||
|
IFT_ATM = 0x25
|
||||||
|
IFT_ATMDXI = 0x69
|
||||||
|
IFT_ATMFUNI = 0x6a
|
||||||
|
IFT_ATMIMA = 0x6b
|
||||||
|
IFT_ATMLOGICAL = 0x50
|
||||||
|
IFT_ATMRADIO = 0xbd
|
||||||
|
IFT_ATMSUBINTERFACE = 0x86
|
||||||
|
IFT_ATMVCIENDPT = 0xc2
|
||||||
|
IFT_ATMVIRTUAL = 0x95
|
||||||
|
IFT_BGPPOLICYACCOUNTING = 0xa2
|
||||||
|
IFT_BSC = 0x53
|
||||||
|
IFT_CCTEMUL = 0x3d
|
||||||
|
IFT_CEPT = 0x13
|
||||||
|
IFT_CES = 0x85
|
||||||
|
IFT_CHANNEL = 0x46
|
||||||
|
IFT_CNR = 0x55
|
||||||
|
IFT_COFFEE = 0x84
|
||||||
|
IFT_COMPOSITELINK = 0x9b
|
||||||
|
IFT_DCN = 0x8d
|
||||||
|
IFT_DIGITALPOWERLINE = 0x8a
|
||||||
|
IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba
|
||||||
|
IFT_DLSW = 0x4a
|
||||||
|
IFT_DOCSCABLEDOWNSTREAM = 0x80
|
||||||
|
IFT_DOCSCABLEMACLAYER = 0x7f
|
||||||
|
IFT_DOCSCABLEUPSTREAM = 0x81
|
||||||
|
IFT_DS0 = 0x51
|
||||||
|
IFT_DS0BUNDLE = 0x52
|
||||||
|
IFT_DS1FDL = 0xaa
|
||||||
|
IFT_DS3 = 0x1e
|
||||||
|
IFT_DTM = 0x8c
|
||||||
|
IFT_DVBASILN = 0xac
|
||||||
|
IFT_DVBASIOUT = 0xad
|
||||||
|
IFT_DVBRCCDOWNSTREAM = 0x93
|
||||||
|
IFT_DVBRCCMACLAYER = 0x92
|
||||||
|
IFT_DVBRCCUPSTREAM = 0x94
|
||||||
|
IFT_ENC = 0xf4
|
||||||
|
IFT_EON = 0x19
|
||||||
|
IFT_EPLRS = 0x57
|
||||||
|
IFT_ESCON = 0x49
|
||||||
|
IFT_ETHER = 0x6
|
||||||
|
IFT_FAITH = 0xf2
|
||||||
|
IFT_FAST = 0x7d
|
||||||
|
IFT_FASTETHER = 0x3e
|
||||||
|
IFT_FASTETHERFX = 0x45
|
||||||
|
IFT_FDDI = 0xf
|
||||||
|
IFT_FIBRECHANNEL = 0x38
|
||||||
|
IFT_FRAMERELAYINTERCONNECT = 0x3a
|
||||||
|
IFT_FRAMERELAYMPI = 0x5c
|
||||||
|
IFT_FRDLCIENDPT = 0xc1
|
||||||
|
IFT_FRELAY = 0x20
|
||||||
|
IFT_FRELAYDCE = 0x2c
|
||||||
|
IFT_FRF16MFRBUNDLE = 0xa3
|
||||||
|
IFT_FRFORWARD = 0x9e
|
||||||
|
IFT_G703AT2MB = 0x43
|
||||||
|
IFT_G703AT64K = 0x42
|
||||||
|
IFT_GIF = 0xf0
|
||||||
|
IFT_GIGABITETHERNET = 0x75
|
||||||
|
IFT_GR303IDT = 0xb2
|
||||||
|
IFT_GR303RDT = 0xb1
|
||||||
|
IFT_H323GATEKEEPER = 0xa4
|
||||||
|
IFT_H323PROXY = 0xa5
|
||||||
|
IFT_HDH1822 = 0x3
|
||||||
|
IFT_HDLC = 0x76
|
||||||
|
IFT_HDSL2 = 0xa8
|
||||||
|
IFT_HIPERLAN2 = 0xb7
|
||||||
|
IFT_HIPPI = 0x2f
|
||||||
|
IFT_HIPPIINTERFACE = 0x39
|
||||||
|
IFT_HOSTPAD = 0x5a
|
||||||
|
IFT_HSSI = 0x2e
|
||||||
|
IFT_HY = 0xe
|
||||||
|
IFT_IBM370PARCHAN = 0x48
|
||||||
|
IFT_IDSL = 0x9a
|
||||||
|
IFT_IEEE80211 = 0x47
|
||||||
|
IFT_IEEE80212 = 0x37
|
||||||
|
IFT_IEEE8023ADLAG = 0xa1
|
||||||
|
IFT_IFGSN = 0x91
|
||||||
|
IFT_IMT = 0xbe
|
||||||
|
IFT_INTERLEAVE = 0x7c
|
||||||
|
IFT_IP = 0x7e
|
||||||
|
IFT_IPFORWARD = 0x8e
|
||||||
|
IFT_IPOVERATM = 0x72
|
||||||
|
IFT_IPOVERCDLC = 0x6d
|
||||||
|
IFT_IPOVERCLAW = 0x6e
|
||||||
|
IFT_IPSWITCH = 0x4e
|
||||||
|
IFT_IPXIP = 0xf9
|
||||||
|
IFT_ISDN = 0x3f
|
||||||
|
IFT_ISDNBASIC = 0x14
|
||||||
|
IFT_ISDNPRIMARY = 0x15
|
||||||
|
IFT_ISDNS = 0x4b
|
||||||
|
IFT_ISDNU = 0x4c
|
||||||
|
IFT_ISO88022LLC = 0x29
|
||||||
|
IFT_ISO88023 = 0x7
|
||||||
|
IFT_ISO88024 = 0x8
|
||||||
|
IFT_ISO88025 = 0x9
|
||||||
|
IFT_ISO88025CRFPINT = 0x62
|
||||||
|
IFT_ISO88025DTR = 0x56
|
||||||
|
IFT_ISO88025FIBER = 0x73
|
||||||
|
IFT_ISO88026 = 0xa
|
||||||
|
IFT_ISUP = 0xb3
|
||||||
|
IFT_L3IPXVLAN = 0x89
|
||||||
|
IFT_LAPB = 0x10
|
||||||
|
IFT_LAPD = 0x4d
|
||||||
|
IFT_LAPF = 0x77
|
||||||
|
IFT_LOCALTALK = 0x2a
|
||||||
|
IFT_LOOP = 0x18
|
||||||
|
IFT_MEDIAMAILOVERIP = 0x8b
|
||||||
|
IFT_MFSIGLINK = 0xa7
|
||||||
|
IFT_MIOX25 = 0x26
|
||||||
|
IFT_MODEM = 0x30
|
||||||
|
IFT_MPC = 0x71
|
||||||
|
IFT_MPLS = 0xa6
|
||||||
|
IFT_MPLSTUNNEL = 0x96
|
||||||
|
IFT_MSDSL = 0x8f
|
||||||
|
IFT_MVL = 0xbf
|
||||||
|
IFT_MYRINET = 0x63
|
||||||
|
IFT_NFAS = 0xaf
|
||||||
|
IFT_NSIP = 0x1b
|
||||||
|
IFT_OPTICALCHANNEL = 0xc3
|
||||||
|
IFT_OPTICALTRANSPORT = 0xc4
|
||||||
|
IFT_OTHER = 0x1
|
||||||
|
IFT_P10 = 0xc
|
||||||
|
IFT_P80 = 0xd
|
||||||
|
IFT_PARA = 0x22
|
||||||
|
IFT_PFLOG = 0xf6
|
||||||
|
IFT_PFSYNC = 0xf7
|
||||||
|
IFT_PLC = 0xae
|
||||||
|
IFT_POS = 0xab
|
||||||
|
IFT_PPPMULTILINKBUNDLE = 0x6c
|
||||||
|
IFT_PROPBWAP2MP = 0xb8
|
||||||
|
IFT_PROPCNLS = 0x59
|
||||||
|
IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5
|
||||||
|
IFT_PROPDOCSWIRELESSMACLAYER = 0xb4
|
||||||
|
IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6
|
||||||
|
IFT_PROPMUX = 0x36
|
||||||
|
IFT_PROPWIRELESSP2P = 0x9d
|
||||||
|
IFT_PTPSERIAL = 0x16
|
||||||
|
IFT_PVC = 0xf1
|
||||||
|
IFT_QLLC = 0x44
|
||||||
|
IFT_RADIOMAC = 0xbc
|
||||||
|
IFT_RADSL = 0x5f
|
||||||
|
IFT_REACHDSL = 0xc0
|
||||||
|
IFT_RFC1483 = 0x9f
|
||||||
|
IFT_RS232 = 0x21
|
||||||
|
IFT_RSRB = 0x4f
|
||||||
|
IFT_SDLC = 0x11
|
||||||
|
IFT_SDSL = 0x60
|
||||||
|
IFT_SHDSL = 0xa9
|
||||||
|
IFT_SIP = 0x1f
|
||||||
|
IFT_SLIP = 0x1c
|
||||||
|
IFT_SMDSDXI = 0x2b
|
||||||
|
IFT_SMDSICIP = 0x34
|
||||||
|
IFT_SONET = 0x27
|
||||||
|
IFT_SONETOVERHEADCHANNEL = 0xb9
|
||||||
|
IFT_SONETPATH = 0x32
|
||||||
|
IFT_SONETVT = 0x33
|
||||||
|
IFT_SRP = 0x97
|
||||||
|
IFT_SS7SIGLINK = 0x9c
|
||||||
|
IFT_STACKTOSTACK = 0x6f
|
||||||
|
IFT_STARLAN = 0xb
|
||||||
|
IFT_STF = 0xd7
|
||||||
|
IFT_T1 = 0x12
|
||||||
|
IFT_TDLC = 0x74
|
||||||
|
IFT_TERMPAD = 0x5b
|
||||||
|
IFT_TR008 = 0xb0
|
||||||
|
IFT_TRANSPHDLC = 0x7b
|
||||||
|
IFT_TUNNEL = 0x83
|
||||||
|
IFT_ULTRA = 0x1d
|
||||||
|
IFT_USB = 0xa0
|
||||||
|
IFT_V11 = 0x40
|
||||||
|
IFT_V35 = 0x2d
|
||||||
|
IFT_V36 = 0x41
|
||||||
|
IFT_V37 = 0x78
|
||||||
|
IFT_VDSL = 0x61
|
||||||
|
IFT_VIRTUALIPADDRESS = 0x70
|
||||||
|
IFT_VOICEEM = 0x64
|
||||||
|
IFT_VOICEENCAP = 0x67
|
||||||
|
IFT_VOICEFXO = 0x65
|
||||||
|
IFT_VOICEFXS = 0x66
|
||||||
|
IFT_VOICEOVERATM = 0x98
|
||||||
|
IFT_VOICEOVERFRAMERELAY = 0x99
|
||||||
|
IFT_VOICEOVERIP = 0x68
|
||||||
|
IFT_X213 = 0x5d
|
||||||
|
IFT_X25 = 0x5
|
||||||
|
IFT_X25DDN = 0x4
|
||||||
|
IFT_X25HUNTGROUP = 0x7a
|
||||||
|
IFT_X25MLP = 0x79
|
||||||
|
IFT_X25PLE = 0x28
|
||||||
|
IFT_XETHER = 0x1a
|
||||||
|
IPPROTO_MAXID = 0x34
|
||||||
|
IPV6_FAITH = 0x1d
|
||||||
|
IP_FAITH = 0x16
|
||||||
|
MAP_NORESERVE = 0x40
|
||||||
|
MAP_RENAME = 0x20
|
||||||
|
NET_RT_MAXID = 0x6
|
||||||
|
RTF_PRCLONING = 0x10000
|
||||||
|
RTM_OLDADD = 0x9
|
||||||
|
RTM_OLDDEL = 0xa
|
||||||
|
SIOCADDRT = 0x8030720a
|
||||||
|
SIOCALIFADDR = 0x8118691b
|
||||||
|
SIOCDELRT = 0x8030720b
|
||||||
|
SIOCDLIFADDR = 0x8118691d
|
||||||
|
SIOCGLIFADDR = 0xc118691c
|
||||||
|
SIOCGLIFPHYADDR = 0xc118694b
|
||||||
|
SIOCSLIFPHYADDR = 0x8118694a
|
||||||
|
)
|
|
@ -0,0 +1,227 @@
|
||||||
|
// Copyright 2017 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.
|
||||||
|
|
||||||
|
// Constants that were deprecated or moved to enums in the FreeBSD headers. Keep
|
||||||
|
// them here for backwards compatibility.
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
const (
|
||||||
|
IFF_SMART = 0x20
|
||||||
|
IFT_1822 = 0x2
|
||||||
|
IFT_A12MPPSWITCH = 0x82
|
||||||
|
IFT_AAL2 = 0xbb
|
||||||
|
IFT_AAL5 = 0x31
|
||||||
|
IFT_ADSL = 0x5e
|
||||||
|
IFT_AFLANE8023 = 0x3b
|
||||||
|
IFT_AFLANE8025 = 0x3c
|
||||||
|
IFT_ARAP = 0x58
|
||||||
|
IFT_ARCNET = 0x23
|
||||||
|
IFT_ARCNETPLUS = 0x24
|
||||||
|
IFT_ASYNC = 0x54
|
||||||
|
IFT_ATM = 0x25
|
||||||
|
IFT_ATMDXI = 0x69
|
||||||
|
IFT_ATMFUNI = 0x6a
|
||||||
|
IFT_ATMIMA = 0x6b
|
||||||
|
IFT_ATMLOGICAL = 0x50
|
||||||
|
IFT_ATMRADIO = 0xbd
|
||||||
|
IFT_ATMSUBINTERFACE = 0x86
|
||||||
|
IFT_ATMVCIENDPT = 0xc2
|
||||||
|
IFT_ATMVIRTUAL = 0x95
|
||||||
|
IFT_BGPPOLICYACCOUNTING = 0xa2
|
||||||
|
IFT_BSC = 0x53
|
||||||
|
IFT_CCTEMUL = 0x3d
|
||||||
|
IFT_CEPT = 0x13
|
||||||
|
IFT_CES = 0x85
|
||||||
|
IFT_CHANNEL = 0x46
|
||||||
|
IFT_CNR = 0x55
|
||||||
|
IFT_COFFEE = 0x84
|
||||||
|
IFT_COMPOSITELINK = 0x9b
|
||||||
|
IFT_DCN = 0x8d
|
||||||
|
IFT_DIGITALPOWERLINE = 0x8a
|
||||||
|
IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba
|
||||||
|
IFT_DLSW = 0x4a
|
||||||
|
IFT_DOCSCABLEDOWNSTREAM = 0x80
|
||||||
|
IFT_DOCSCABLEMACLAYER = 0x7f
|
||||||
|
IFT_DOCSCABLEUPSTREAM = 0x81
|
||||||
|
IFT_DS0 = 0x51
|
||||||
|
IFT_DS0BUNDLE = 0x52
|
||||||
|
IFT_DS1FDL = 0xaa
|
||||||
|
IFT_DS3 = 0x1e
|
||||||
|
IFT_DTM = 0x8c
|
||||||
|
IFT_DVBASILN = 0xac
|
||||||
|
IFT_DVBASIOUT = 0xad
|
||||||
|
IFT_DVBRCCDOWNSTREAM = 0x93
|
||||||
|
IFT_DVBRCCMACLAYER = 0x92
|
||||||
|
IFT_DVBRCCUPSTREAM = 0x94
|
||||||
|
IFT_ENC = 0xf4
|
||||||
|
IFT_EON = 0x19
|
||||||
|
IFT_EPLRS = 0x57
|
||||||
|
IFT_ESCON = 0x49
|
||||||
|
IFT_ETHER = 0x6
|
||||||
|
IFT_FAITH = 0xf2
|
||||||
|
IFT_FAST = 0x7d
|
||||||
|
IFT_FASTETHER = 0x3e
|
||||||
|
IFT_FASTETHERFX = 0x45
|
||||||
|
IFT_FDDI = 0xf
|
||||||
|
IFT_FIBRECHANNEL = 0x38
|
||||||
|
IFT_FRAMERELAYINTERCONNECT = 0x3a
|
||||||
|
IFT_FRAMERELAYMPI = 0x5c
|
||||||
|
IFT_FRDLCIENDPT = 0xc1
|
||||||
|
IFT_FRELAY = 0x20
|
||||||
|
IFT_FRELAYDCE = 0x2c
|
||||||
|
IFT_FRF16MFRBUNDLE = 0xa3
|
||||||
|
IFT_FRFORWARD = 0x9e
|
||||||
|
IFT_G703AT2MB = 0x43
|
||||||
|
IFT_G703AT64K = 0x42
|
||||||
|
IFT_GIF = 0xf0
|
||||||
|
IFT_GIGABITETHERNET = 0x75
|
||||||
|
IFT_GR303IDT = 0xb2
|
||||||
|
IFT_GR303RDT = 0xb1
|
||||||
|
IFT_H323GATEKEEPER = 0xa4
|
||||||
|
IFT_H323PROXY = 0xa5
|
||||||
|
IFT_HDH1822 = 0x3
|
||||||
|
IFT_HDLC = 0x76
|
||||||
|
IFT_HDSL2 = 0xa8
|
||||||
|
IFT_HIPERLAN2 = 0xb7
|
||||||
|
IFT_HIPPI = 0x2f
|
||||||
|
IFT_HIPPIINTERFACE = 0x39
|
||||||
|
IFT_HOSTPAD = 0x5a
|
||||||
|
IFT_HSSI = 0x2e
|
||||||
|
IFT_HY = 0xe
|
||||||
|
IFT_IBM370PARCHAN = 0x48
|
||||||
|
IFT_IDSL = 0x9a
|
||||||
|
IFT_IEEE80211 = 0x47
|
||||||
|
IFT_IEEE80212 = 0x37
|
||||||
|
IFT_IEEE8023ADLAG = 0xa1
|
||||||
|
IFT_IFGSN = 0x91
|
||||||
|
IFT_IMT = 0xbe
|
||||||
|
IFT_INTERLEAVE = 0x7c
|
||||||
|
IFT_IP = 0x7e
|
||||||
|
IFT_IPFORWARD = 0x8e
|
||||||
|
IFT_IPOVERATM = 0x72
|
||||||
|
IFT_IPOVERCDLC = 0x6d
|
||||||
|
IFT_IPOVERCLAW = 0x6e
|
||||||
|
IFT_IPSWITCH = 0x4e
|
||||||
|
IFT_IPXIP = 0xf9
|
||||||
|
IFT_ISDN = 0x3f
|
||||||
|
IFT_ISDNBASIC = 0x14
|
||||||
|
IFT_ISDNPRIMARY = 0x15
|
||||||
|
IFT_ISDNS = 0x4b
|
||||||
|
IFT_ISDNU = 0x4c
|
||||||
|
IFT_ISO88022LLC = 0x29
|
||||||
|
IFT_ISO88023 = 0x7
|
||||||
|
IFT_ISO88024 = 0x8
|
||||||
|
IFT_ISO88025 = 0x9
|
||||||
|
IFT_ISO88025CRFPINT = 0x62
|
||||||
|
IFT_ISO88025DTR = 0x56
|
||||||
|
IFT_ISO88025FIBER = 0x73
|
||||||
|
IFT_ISO88026 = 0xa
|
||||||
|
IFT_ISUP = 0xb3
|
||||||
|
IFT_L3IPXVLAN = 0x89
|
||||||
|
IFT_LAPB = 0x10
|
||||||
|
IFT_LAPD = 0x4d
|
||||||
|
IFT_LAPF = 0x77
|
||||||
|
IFT_LOCALTALK = 0x2a
|
||||||
|
IFT_LOOP = 0x18
|
||||||
|
IFT_MEDIAMAILOVERIP = 0x8b
|
||||||
|
IFT_MFSIGLINK = 0xa7
|
||||||
|
IFT_MIOX25 = 0x26
|
||||||
|
IFT_MODEM = 0x30
|
||||||
|
IFT_MPC = 0x71
|
||||||
|
IFT_MPLS = 0xa6
|
||||||
|
IFT_MPLSTUNNEL = 0x96
|
||||||
|
IFT_MSDSL = 0x8f
|
||||||
|
IFT_MVL = 0xbf
|
||||||
|
IFT_MYRINET = 0x63
|
||||||
|
IFT_NFAS = 0xaf
|
||||||
|
IFT_NSIP = 0x1b
|
||||||
|
IFT_OPTICALCHANNEL = 0xc3
|
||||||
|
IFT_OPTICALTRANSPORT = 0xc4
|
||||||
|
IFT_OTHER = 0x1
|
||||||
|
IFT_P10 = 0xc
|
||||||
|
IFT_P80 = 0xd
|
||||||
|
IFT_PARA = 0x22
|
||||||
|
IFT_PFLOG = 0xf6
|
||||||
|
IFT_PFSYNC = 0xf7
|
||||||
|
IFT_PLC = 0xae
|
||||||
|
IFT_POS = 0xab
|
||||||
|
IFT_PPPMULTILINKBUNDLE = 0x6c
|
||||||
|
IFT_PROPBWAP2MP = 0xb8
|
||||||
|
IFT_PROPCNLS = 0x59
|
||||||
|
IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5
|
||||||
|
IFT_PROPDOCSWIRELESSMACLAYER = 0xb4
|
||||||
|
IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6
|
||||||
|
IFT_PROPMUX = 0x36
|
||||||
|
IFT_PROPWIRELESSP2P = 0x9d
|
||||||
|
IFT_PTPSERIAL = 0x16
|
||||||
|
IFT_PVC = 0xf1
|
||||||
|
IFT_QLLC = 0x44
|
||||||
|
IFT_RADIOMAC = 0xbc
|
||||||
|
IFT_RADSL = 0x5f
|
||||||
|
IFT_REACHDSL = 0xc0
|
||||||
|
IFT_RFC1483 = 0x9f
|
||||||
|
IFT_RS232 = 0x21
|
||||||
|
IFT_RSRB = 0x4f
|
||||||
|
IFT_SDLC = 0x11
|
||||||
|
IFT_SDSL = 0x60
|
||||||
|
IFT_SHDSL = 0xa9
|
||||||
|
IFT_SIP = 0x1f
|
||||||
|
IFT_SLIP = 0x1c
|
||||||
|
IFT_SMDSDXI = 0x2b
|
||||||
|
IFT_SMDSICIP = 0x34
|
||||||
|
IFT_SONET = 0x27
|
||||||
|
IFT_SONETOVERHEADCHANNEL = 0xb9
|
||||||
|
IFT_SONETPATH = 0x32
|
||||||
|
IFT_SONETVT = 0x33
|
||||||
|
IFT_SRP = 0x97
|
||||||
|
IFT_SS7SIGLINK = 0x9c
|
||||||
|
IFT_STACKTOSTACK = 0x6f
|
||||||
|
IFT_STARLAN = 0xb
|
||||||
|
IFT_STF = 0xd7
|
||||||
|
IFT_T1 = 0x12
|
||||||
|
IFT_TDLC = 0x74
|
||||||
|
IFT_TERMPAD = 0x5b
|
||||||
|
IFT_TR008 = 0xb0
|
||||||
|
IFT_TRANSPHDLC = 0x7b
|
||||||
|
IFT_TUNNEL = 0x83
|
||||||
|
IFT_ULTRA = 0x1d
|
||||||
|
IFT_USB = 0xa0
|
||||||
|
IFT_V11 = 0x40
|
||||||
|
IFT_V35 = 0x2d
|
||||||
|
IFT_V36 = 0x41
|
||||||
|
IFT_V37 = 0x78
|
||||||
|
IFT_VDSL = 0x61
|
||||||
|
IFT_VIRTUALIPADDRESS = 0x70
|
||||||
|
IFT_VOICEEM = 0x64
|
||||||
|
IFT_VOICEENCAP = 0x67
|
||||||
|
IFT_VOICEFXO = 0x65
|
||||||
|
IFT_VOICEFXS = 0x66
|
||||||
|
IFT_VOICEOVERATM = 0x98
|
||||||
|
IFT_VOICEOVERFRAMERELAY = 0x99
|
||||||
|
IFT_VOICEOVERIP = 0x68
|
||||||
|
IFT_X213 = 0x5d
|
||||||
|
IFT_X25 = 0x5
|
||||||
|
IFT_X25DDN = 0x4
|
||||||
|
IFT_X25HUNTGROUP = 0x7a
|
||||||
|
IFT_X25MLP = 0x79
|
||||||
|
IFT_X25PLE = 0x28
|
||||||
|
IFT_XETHER = 0x1a
|
||||||
|
IPPROTO_MAXID = 0x34
|
||||||
|
IPV6_FAITH = 0x1d
|
||||||
|
IP_FAITH = 0x16
|
||||||
|
MAP_NORESERVE = 0x40
|
||||||
|
MAP_RENAME = 0x20
|
||||||
|
NET_RT_MAXID = 0x6
|
||||||
|
RTF_PRCLONING = 0x10000
|
||||||
|
RTM_OLDADD = 0x9
|
||||||
|
RTM_OLDDEL = 0xa
|
||||||
|
SIOCADDRT = 0x8040720a
|
||||||
|
SIOCALIFADDR = 0x8118691b
|
||||||
|
SIOCDELRT = 0x8040720b
|
||||||
|
SIOCDLIFADDR = 0x8118691d
|
||||||
|
SIOCGLIFADDR = 0xc118691c
|
||||||
|
SIOCGLIFPHYADDR = 0xc118694b
|
||||||
|
SIOCSLIFPHYADDR = 0x8118694a
|
||||||
|
)
|
|
@ -0,0 +1,226 @@
|
||||||
|
// Copyright 2017 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
const (
|
||||||
|
IFT_1822 = 0x2
|
||||||
|
IFT_A12MPPSWITCH = 0x82
|
||||||
|
IFT_AAL2 = 0xbb
|
||||||
|
IFT_AAL5 = 0x31
|
||||||
|
IFT_ADSL = 0x5e
|
||||||
|
IFT_AFLANE8023 = 0x3b
|
||||||
|
IFT_AFLANE8025 = 0x3c
|
||||||
|
IFT_ARAP = 0x58
|
||||||
|
IFT_ARCNET = 0x23
|
||||||
|
IFT_ARCNETPLUS = 0x24
|
||||||
|
IFT_ASYNC = 0x54
|
||||||
|
IFT_ATM = 0x25
|
||||||
|
IFT_ATMDXI = 0x69
|
||||||
|
IFT_ATMFUNI = 0x6a
|
||||||
|
IFT_ATMIMA = 0x6b
|
||||||
|
IFT_ATMLOGICAL = 0x50
|
||||||
|
IFT_ATMRADIO = 0xbd
|
||||||
|
IFT_ATMSUBINTERFACE = 0x86
|
||||||
|
IFT_ATMVCIENDPT = 0xc2
|
||||||
|
IFT_ATMVIRTUAL = 0x95
|
||||||
|
IFT_BGPPOLICYACCOUNTING = 0xa2
|
||||||
|
IFT_BSC = 0x53
|
||||||
|
IFT_CCTEMUL = 0x3d
|
||||||
|
IFT_CEPT = 0x13
|
||||||
|
IFT_CES = 0x85
|
||||||
|
IFT_CHANNEL = 0x46
|
||||||
|
IFT_CNR = 0x55
|
||||||
|
IFT_COFFEE = 0x84
|
||||||
|
IFT_COMPOSITELINK = 0x9b
|
||||||
|
IFT_DCN = 0x8d
|
||||||
|
IFT_DIGITALPOWERLINE = 0x8a
|
||||||
|
IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba
|
||||||
|
IFT_DLSW = 0x4a
|
||||||
|
IFT_DOCSCABLEDOWNSTREAM = 0x80
|
||||||
|
IFT_DOCSCABLEMACLAYER = 0x7f
|
||||||
|
IFT_DOCSCABLEUPSTREAM = 0x81
|
||||||
|
IFT_DS0 = 0x51
|
||||||
|
IFT_DS0BUNDLE = 0x52
|
||||||
|
IFT_DS1FDL = 0xaa
|
||||||
|
IFT_DS3 = 0x1e
|
||||||
|
IFT_DTM = 0x8c
|
||||||
|
IFT_DVBASILN = 0xac
|
||||||
|
IFT_DVBASIOUT = 0xad
|
||||||
|
IFT_DVBRCCDOWNSTREAM = 0x93
|
||||||
|
IFT_DVBRCCMACLAYER = 0x92
|
||||||
|
IFT_DVBRCCUPSTREAM = 0x94
|
||||||
|
IFT_ENC = 0xf4
|
||||||
|
IFT_EON = 0x19
|
||||||
|
IFT_EPLRS = 0x57
|
||||||
|
IFT_ESCON = 0x49
|
||||||
|
IFT_ETHER = 0x6
|
||||||
|
IFT_FAST = 0x7d
|
||||||
|
IFT_FASTETHER = 0x3e
|
||||||
|
IFT_FASTETHERFX = 0x45
|
||||||
|
IFT_FDDI = 0xf
|
||||||
|
IFT_FIBRECHANNEL = 0x38
|
||||||
|
IFT_FRAMERELAYINTERCONNECT = 0x3a
|
||||||
|
IFT_FRAMERELAYMPI = 0x5c
|
||||||
|
IFT_FRDLCIENDPT = 0xc1
|
||||||
|
IFT_FRELAY = 0x20
|
||||||
|
IFT_FRELAYDCE = 0x2c
|
||||||
|
IFT_FRF16MFRBUNDLE = 0xa3
|
||||||
|
IFT_FRFORWARD = 0x9e
|
||||||
|
IFT_G703AT2MB = 0x43
|
||||||
|
IFT_G703AT64K = 0x42
|
||||||
|
IFT_GIF = 0xf0
|
||||||
|
IFT_GIGABITETHERNET = 0x75
|
||||||
|
IFT_GR303IDT = 0xb2
|
||||||
|
IFT_GR303RDT = 0xb1
|
||||||
|
IFT_H323GATEKEEPER = 0xa4
|
||||||
|
IFT_H323PROXY = 0xa5
|
||||||
|
IFT_HDH1822 = 0x3
|
||||||
|
IFT_HDLC = 0x76
|
||||||
|
IFT_HDSL2 = 0xa8
|
||||||
|
IFT_HIPERLAN2 = 0xb7
|
||||||
|
IFT_HIPPI = 0x2f
|
||||||
|
IFT_HIPPIINTERFACE = 0x39
|
||||||
|
IFT_HOSTPAD = 0x5a
|
||||||
|
IFT_HSSI = 0x2e
|
||||||
|
IFT_HY = 0xe
|
||||||
|
IFT_IBM370PARCHAN = 0x48
|
||||||
|
IFT_IDSL = 0x9a
|
||||||
|
IFT_IEEE80211 = 0x47
|
||||||
|
IFT_IEEE80212 = 0x37
|
||||||
|
IFT_IEEE8023ADLAG = 0xa1
|
||||||
|
IFT_IFGSN = 0x91
|
||||||
|
IFT_IMT = 0xbe
|
||||||
|
IFT_INTERLEAVE = 0x7c
|
||||||
|
IFT_IP = 0x7e
|
||||||
|
IFT_IPFORWARD = 0x8e
|
||||||
|
IFT_IPOVERATM = 0x72
|
||||||
|
IFT_IPOVERCDLC = 0x6d
|
||||||
|
IFT_IPOVERCLAW = 0x6e
|
||||||
|
IFT_IPSWITCH = 0x4e
|
||||||
|
IFT_ISDN = 0x3f
|
||||||
|
IFT_ISDNBASIC = 0x14
|
||||||
|
IFT_ISDNPRIMARY = 0x15
|
||||||
|
IFT_ISDNS = 0x4b
|
||||||
|
IFT_ISDNU = 0x4c
|
||||||
|
IFT_ISO88022LLC = 0x29
|
||||||
|
IFT_ISO88023 = 0x7
|
||||||
|
IFT_ISO88024 = 0x8
|
||||||
|
IFT_ISO88025 = 0x9
|
||||||
|
IFT_ISO88025CRFPINT = 0x62
|
||||||
|
IFT_ISO88025DTR = 0x56
|
||||||
|
IFT_ISO88025FIBER = 0x73
|
||||||
|
IFT_ISO88026 = 0xa
|
||||||
|
IFT_ISUP = 0xb3
|
||||||
|
IFT_L3IPXVLAN = 0x89
|
||||||
|
IFT_LAPB = 0x10
|
||||||
|
IFT_LAPD = 0x4d
|
||||||
|
IFT_LAPF = 0x77
|
||||||
|
IFT_LOCALTALK = 0x2a
|
||||||
|
IFT_LOOP = 0x18
|
||||||
|
IFT_MEDIAMAILOVERIP = 0x8b
|
||||||
|
IFT_MFSIGLINK = 0xa7
|
||||||
|
IFT_MIOX25 = 0x26
|
||||||
|
IFT_MODEM = 0x30
|
||||||
|
IFT_MPC = 0x71
|
||||||
|
IFT_MPLS = 0xa6
|
||||||
|
IFT_MPLSTUNNEL = 0x96
|
||||||
|
IFT_MSDSL = 0x8f
|
||||||
|
IFT_MVL = 0xbf
|
||||||
|
IFT_MYRINET = 0x63
|
||||||
|
IFT_NFAS = 0xaf
|
||||||
|
IFT_NSIP = 0x1b
|
||||||
|
IFT_OPTICALCHANNEL = 0xc3
|
||||||
|
IFT_OPTICALTRANSPORT = 0xc4
|
||||||
|
IFT_OTHER = 0x1
|
||||||
|
IFT_P10 = 0xc
|
||||||
|
IFT_P80 = 0xd
|
||||||
|
IFT_PARA = 0x22
|
||||||
|
IFT_PFLOG = 0xf6
|
||||||
|
IFT_PFSYNC = 0xf7
|
||||||
|
IFT_PLC = 0xae
|
||||||
|
IFT_POS = 0xab
|
||||||
|
IFT_PPPMULTILINKBUNDLE = 0x6c
|
||||||
|
IFT_PROPBWAP2MP = 0xb8
|
||||||
|
IFT_PROPCNLS = 0x59
|
||||||
|
IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5
|
||||||
|
IFT_PROPDOCSWIRELESSMACLAYER = 0xb4
|
||||||
|
IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6
|
||||||
|
IFT_PROPMUX = 0x36
|
||||||
|
IFT_PROPWIRELESSP2P = 0x9d
|
||||||
|
IFT_PTPSERIAL = 0x16
|
||||||
|
IFT_PVC = 0xf1
|
||||||
|
IFT_QLLC = 0x44
|
||||||
|
IFT_RADIOMAC = 0xbc
|
||||||
|
IFT_RADSL = 0x5f
|
||||||
|
IFT_REACHDSL = 0xc0
|
||||||
|
IFT_RFC1483 = 0x9f
|
||||||
|
IFT_RS232 = 0x21
|
||||||
|
IFT_RSRB = 0x4f
|
||||||
|
IFT_SDLC = 0x11
|
||||||
|
IFT_SDSL = 0x60
|
||||||
|
IFT_SHDSL = 0xa9
|
||||||
|
IFT_SIP = 0x1f
|
||||||
|
IFT_SLIP = 0x1c
|
||||||
|
IFT_SMDSDXI = 0x2b
|
||||||
|
IFT_SMDSICIP = 0x34
|
||||||
|
IFT_SONET = 0x27
|
||||||
|
IFT_SONETOVERHEADCHANNEL = 0xb9
|
||||||
|
IFT_SONETPATH = 0x32
|
||||||
|
IFT_SONETVT = 0x33
|
||||||
|
IFT_SRP = 0x97
|
||||||
|
IFT_SS7SIGLINK = 0x9c
|
||||||
|
IFT_STACKTOSTACK = 0x6f
|
||||||
|
IFT_STARLAN = 0xb
|
||||||
|
IFT_STF = 0xd7
|
||||||
|
IFT_T1 = 0x12
|
||||||
|
IFT_TDLC = 0x74
|
||||||
|
IFT_TERMPAD = 0x5b
|
||||||
|
IFT_TR008 = 0xb0
|
||||||
|
IFT_TRANSPHDLC = 0x7b
|
||||||
|
IFT_TUNNEL = 0x83
|
||||||
|
IFT_ULTRA = 0x1d
|
||||||
|
IFT_USB = 0xa0
|
||||||
|
IFT_V11 = 0x40
|
||||||
|
IFT_V35 = 0x2d
|
||||||
|
IFT_V36 = 0x41
|
||||||
|
IFT_V37 = 0x78
|
||||||
|
IFT_VDSL = 0x61
|
||||||
|
IFT_VIRTUALIPADDRESS = 0x70
|
||||||
|
IFT_VOICEEM = 0x64
|
||||||
|
IFT_VOICEENCAP = 0x67
|
||||||
|
IFT_VOICEFXO = 0x65
|
||||||
|
IFT_VOICEFXS = 0x66
|
||||||
|
IFT_VOICEOVERATM = 0x98
|
||||||
|
IFT_VOICEOVERFRAMERELAY = 0x99
|
||||||
|
IFT_VOICEOVERIP = 0x68
|
||||||
|
IFT_X213 = 0x5d
|
||||||
|
IFT_X25 = 0x5
|
||||||
|
IFT_X25DDN = 0x4
|
||||||
|
IFT_X25HUNTGROUP = 0x7a
|
||||||
|
IFT_X25MLP = 0x79
|
||||||
|
IFT_X25PLE = 0x28
|
||||||
|
IFT_XETHER = 0x1a
|
||||||
|
|
||||||
|
// missing constants on FreeBSD-11.1-RELEASE, copied from old values in ztypes_freebsd_arm.go
|
||||||
|
IFF_SMART = 0x20
|
||||||
|
IFT_FAITH = 0xf2
|
||||||
|
IFT_IPXIP = 0xf9
|
||||||
|
IPPROTO_MAXID = 0x34
|
||||||
|
IPV6_FAITH = 0x1d
|
||||||
|
IP_FAITH = 0x16
|
||||||
|
MAP_NORESERVE = 0x40
|
||||||
|
MAP_RENAME = 0x20
|
||||||
|
NET_RT_MAXID = 0x6
|
||||||
|
RTF_PRCLONING = 0x10000
|
||||||
|
RTM_OLDADD = 0x9
|
||||||
|
RTM_OLDDEL = 0xa
|
||||||
|
SIOCADDRT = 0x8030720a
|
||||||
|
SIOCALIFADDR = 0x8118691b
|
||||||
|
SIOCDELRT = 0x8030720b
|
||||||
|
SIOCDLIFADDR = 0x8118691d
|
||||||
|
SIOCGLIFADDR = 0xc118691c
|
||||||
|
SIOCGLIFPHYADDR = 0xc118694b
|
||||||
|
SIOCSLIFPHYADDR = 0x8118694a
|
||||||
|
)
|
|
@ -0,0 +1,27 @@
|
||||||
|
// Copyright 2017 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import (
|
||||||
|
"os"
|
||||||
|
"syscall"
|
||||||
|
)
|
||||||
|
|
||||||
|
// FIXME: unexported function from os
|
||||||
|
// syscallMode returns the syscall-specific mode bits from Go's portable mode bits.
|
||||||
|
func syscallMode(i os.FileMode) (o uint32) {
|
||||||
|
o |= uint32(i.Perm())
|
||||||
|
if i&os.ModeSetuid != 0 {
|
||||||
|
o |= syscall.S_ISUID
|
||||||
|
}
|
||||||
|
if i&os.ModeSetgid != 0 {
|
||||||
|
o |= syscall.S_ISGID
|
||||||
|
}
|
||||||
|
if i&os.ModeSticky != 0 {
|
||||||
|
o |= syscall.S_ISVTX
|
||||||
|
}
|
||||||
|
// No mapping for Go's ModeTemporary (plan9 only).
|
||||||
|
return
|
||||||
|
}
|
|
@ -1,5 +1,3 @@
|
||||||
// +build linux darwin freebsd openbsd netbsd dragonfly
|
|
||||||
|
|
||||||
// Copyright 2014 The Go Authors. All rights reserved.
|
// Copyright 2014 The Go Authors. All rights reserved.
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
|
@ -561,13 +561,19 @@ func Utimes(path string, tv []Timeval) error {
|
||||||
|
|
||||||
func UtimesNano(path string, ts []Timespec) error {
|
func UtimesNano(path string, ts []Timespec) error {
|
||||||
if ts == nil {
|
if ts == nil {
|
||||||
|
err := utimensat(AT_FDCWD, path, nil, 0)
|
||||||
|
if err != ENOSYS {
|
||||||
|
return err
|
||||||
|
}
|
||||||
return utimes(path, nil)
|
return utimes(path, nil)
|
||||||
}
|
}
|
||||||
// TODO: The BSDs can do utimensat with SYS_UTIMENSAT but it
|
|
||||||
// isn't supported by darwin so this uses utimes instead
|
|
||||||
if len(ts) != 2 {
|
if len(ts) != 2 {
|
||||||
return EINVAL
|
return EINVAL
|
||||||
}
|
}
|
||||||
|
err := utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
|
||||||
|
if err != ENOSYS {
|
||||||
|
return err
|
||||||
|
}
|
||||||
// Not as efficient as it could be because Timespec and
|
// Not as efficient as it could be because Timespec and
|
||||||
// Timeval have different types in the different OSes
|
// Timeval have different types in the different OSes
|
||||||
tv := [2]Timeval{
|
tv := [2]Timeval{
|
||||||
|
@ -577,6 +583,16 @@ func UtimesNano(path string, ts []Timespec) error {
|
||||||
return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
|
return utimes(path, (*[2]Timeval)(unsafe.Pointer(&tv[0])))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error {
|
||||||
|
if ts == nil {
|
||||||
|
return utimensat(dirfd, path, nil, flags)
|
||||||
|
}
|
||||||
|
if len(ts) != 2 {
|
||||||
|
return EINVAL
|
||||||
|
}
|
||||||
|
return utimensat(dirfd, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), flags)
|
||||||
|
}
|
||||||
|
|
||||||
//sys futimes(fd int, timeval *[2]Timeval) (err error)
|
//sys futimes(fd int, timeval *[2]Timeval) (err error)
|
||||||
|
|
||||||
func Futimes(fd int, tv []Timeval) error {
|
func Futimes(fd int, tv []Timeval) error {
|
||||||
|
@ -594,9 +610,6 @@ func Futimes(fd int, tv []Timeval) error {
|
||||||
// TODO: wrap
|
// TODO: wrap
|
||||||
// Acct(name nil-string) (err error)
|
// Acct(name nil-string) (err error)
|
||||||
// Gethostuuid(uuid *byte, timeout *Timespec) (err error)
|
// Gethostuuid(uuid *byte, timeout *Timespec) (err error)
|
||||||
// Madvise(addr *byte, len int, behav int) (err error)
|
|
||||||
// Mprotect(addr *byte, len int, prot int) (err error)
|
|
||||||
// Msync(addr *byte, len int, flags int) (err error)
|
|
||||||
// Ptrace(req int, pid int, addr uintptr, data int) (ret uintptr, err error)
|
// Ptrace(req int, pid int, addr uintptr, data int) (ret uintptr, err error)
|
||||||
|
|
||||||
var mapper = &mmapper{
|
var mapper = &mmapper{
|
||||||
|
@ -612,3 +625,11 @@ func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, e
|
||||||
func Munmap(b []byte) (err error) {
|
func Munmap(b []byte) (err error) {
|
||||||
return mapper.Munmap(b)
|
return mapper.Munmap(b)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys Madvise(b []byte, behav int) (err error)
|
||||||
|
//sys Mlock(b []byte) (err error)
|
||||||
|
//sys Mlockall(flags int) (err error)
|
||||||
|
//sys Mprotect(b []byte, prot int) (err error)
|
||||||
|
//sys Msync(b []byte, flags int) (err error)
|
||||||
|
//sys Munlock(b []byte) (err error)
|
||||||
|
//sys Munlockall() (err error)
|
||||||
|
|
|
@ -187,6 +187,11 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) error {
|
||||||
|
// Darwin doesn't support SYS_UTIMENSAT
|
||||||
|
return ENOSYS
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Wrapped
|
* Wrapped
|
||||||
*/
|
*/
|
||||||
|
@ -195,6 +200,45 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
||||||
|
|
||||||
func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(signum), 1) }
|
func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(signum), 1) }
|
||||||
|
|
||||||
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||||
|
|
||||||
|
// ioctl itself should not be exposed directly, but additional get/set
|
||||||
|
// functions for specific types are permissible.
|
||||||
|
|
||||||
|
// IoctlSetInt performs an ioctl operation which sets an integer value
|
||||||
|
// on fd, using the specified request number.
|
||||||
|
func IoctlSetInt(fd int, req uint, value int) error {
|
||||||
|
return ioctl(fd, req, uintptr(value))
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||||
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlSetTermios(fd int, req uint, value *Termios) error {
|
||||||
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
|
}
|
||||||
|
|
||||||
|
// IoctlGetInt performs an ioctl operation which gets an integer value
|
||||||
|
// from fd, using the specified request number.
|
||||||
|
func IoctlGetInt(fd int, req uint) (int, error) {
|
||||||
|
var value int
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
||||||
|
var value Winsize
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||||
|
var value Termios
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exposed directly
|
* Exposed directly
|
||||||
*/
|
*/
|
||||||
|
@ -210,10 +254,13 @@ func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(sig
|
||||||
//sys Dup2(from int, to int) (err error)
|
//sys Dup2(from int, to int) (err error)
|
||||||
//sys Exchangedata(path1 string, path2 string, options int) (err error)
|
//sys Exchangedata(path1 string, path2 string, options 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 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_FSTAT64
|
//sys Fstat(fd int, stat *Stat_t) (err error) = SYS_FSTAT64
|
||||||
|
@ -238,23 +285,23 @@ func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(sig
|
||||||
//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_LSTAT64
|
//sys Lstat(path string, stat *Stat_t) (err error) = SYS_LSTAT64
|
||||||
//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 Mlock(b []byte) (err error)
|
|
||||||
//sys Mlockall(flags int) (err error)
|
|
||||||
//sys Mprotect(b []byte, prot int) (err error)
|
|
||||||
//sys Munlock(b []byte) (err error)
|
|
||||||
//sys Munlockall() (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 Pathconf(path string, name int) (val int, err error)
|
//sys Pathconf(path string, name int) (val int, err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error)
|
//sys Pread(fd int, p []byte, offset int64) (n int, err 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
|
||||||
|
@ -275,11 +322,13 @@ func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(sig
|
||||||
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
//sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
|
||||||
//sys Statfs(path string, stat *Statfs_t) (err error) = SYS_STATFS64
|
//sys Statfs(path string, stat *Statfs_t) (err error) = SYS_STATFS64
|
||||||
//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)
|
||||||
|
@ -319,9 +368,6 @@ func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(sig
|
||||||
// Add_profil
|
// Add_profil
|
||||||
// Kdebug_trace
|
// Kdebug_trace
|
||||||
// Sigreturn
|
// Sigreturn
|
||||||
// Mmap
|
|
||||||
// Mlock
|
|
||||||
// Munlock
|
|
||||||
// Atsocket
|
// Atsocket
|
||||||
// Kqueue_from_portset_np
|
// Kqueue_from_portset_np
|
||||||
// Kqueue_portset
|
// Kqueue_portset
|
||||||
|
@ -414,8 +460,6 @@ func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(sig
|
||||||
// Lio_listio
|
// Lio_listio
|
||||||
// __pthread_cond_wait
|
// __pthread_cond_wait
|
||||||
// Iopolicysys
|
// Iopolicysys
|
||||||
// Mlockall
|
|
||||||
// Munlockall
|
|
||||||
// __pthread_kill
|
// __pthread_kill
|
||||||
// __pthread_sigmask
|
// __pthread_sigmask
|
||||||
// __sigwait
|
// __sigwait
|
||||||
|
@ -469,7 +513,6 @@ func Kill(pid int, signum syscall.Signal) (err error) { return kill(pid, int(sig
|
||||||
// Sendmsg_nocancel
|
// Sendmsg_nocancel
|
||||||
// Recvfrom_nocancel
|
// Recvfrom_nocancel
|
||||||
// Accept_nocancel
|
// Accept_nocancel
|
||||||
// Msync_nocancel
|
|
||||||
// Fcntl_nocancel
|
// Fcntl_nocancel
|
||||||
// Select_nocancel
|
// Select_nocancel
|
||||||
// Fsync_nocancel
|
// Fsync_nocancel
|
||||||
|
|
|
@ -11,8 +11,6 @@ import (
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
//sys Fchmodat(dirfd int, path string, mode uint32, flags int) (err error)
|
|
||||||
|
|
||||||
func Getpagesize() int { return 4096 }
|
func Getpagesize() int { return 4096 }
|
||||||
|
|
||||||
func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
|
func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
|
||||||
|
|
|
@ -174,11 +174,6 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
||||||
//sys Mkdir(path string, mode uint32) (err error)
|
//sys Mkdir(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 Mlock(b []byte) (err error)
|
|
||||||
//sys Mlockall(flags int) (err error)
|
|
||||||
//sys Mprotect(b []byte, prot int) (err error)
|
|
||||||
//sys Munlock(b []byte) (err error)
|
|
||||||
//sys Munlockall() (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 Pathconf(path string, name int) (val int, err error)
|
//sys Pathconf(path string, name int) (val int, err error)
|
||||||
|
@ -218,6 +213,7 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
||||||
//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ
|
//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ
|
||||||
//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE
|
//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE
|
||||||
//sys accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error)
|
//sys accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error)
|
||||||
|
//sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unimplemented
|
* Unimplemented
|
||||||
|
@ -252,9 +248,6 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
||||||
// Add_profil
|
// Add_profil
|
||||||
// Kdebug_trace
|
// Kdebug_trace
|
||||||
// Sigreturn
|
// Sigreturn
|
||||||
// Mmap
|
|
||||||
// Mlock
|
|
||||||
// Munlock
|
|
||||||
// Atsocket
|
// Atsocket
|
||||||
// Kqueue_from_portset_np
|
// Kqueue_from_portset_np
|
||||||
// Kqueue_portset
|
// Kqueue_portset
|
||||||
|
@ -347,8 +340,6 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
||||||
// Lio_listio
|
// Lio_listio
|
||||||
// __pthread_cond_wait
|
// __pthread_cond_wait
|
||||||
// Iopolicysys
|
// Iopolicysys
|
||||||
// Mlockall
|
|
||||||
// Munlockall
|
|
||||||
// __pthread_kill
|
// __pthread_kill
|
||||||
// __pthread_sigmask
|
// __pthread_sigmask
|
||||||
// __sigwait
|
// __sigwait
|
||||||
|
@ -401,7 +392,6 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
||||||
// Sendmsg_nocancel
|
// Sendmsg_nocancel
|
||||||
// Recvfrom_nocancel
|
// Recvfrom_nocancel
|
||||||
// Accept_nocancel
|
// Accept_nocancel
|
||||||
// Msync_nocancel
|
|
||||||
// Fcntl_nocancel
|
// Fcntl_nocancel
|
||||||
// Select_nocancel
|
// Select_nocancel
|
||||||
// Fsync_nocancel
|
// Fsync_nocancel
|
||||||
|
|
|
@ -352,11 +352,53 @@ func Llistxattr(link string, dest []byte) (sz int, err error) {
|
||||||
return s, e
|
return s, e
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//sys ioctl(fd int, req uint, arg uintptr) (err error)
|
||||||
|
|
||||||
|
// ioctl itself should not be exposed directly, but additional get/set
|
||||||
|
// functions for specific types are permissible.
|
||||||
|
|
||||||
|
// IoctlSetInt performs an ioctl operation which sets an integer value
|
||||||
|
// on fd, using the specified request number.
|
||||||
|
func IoctlSetInt(fd int, req uint, value int) error {
|
||||||
|
return ioctl(fd, req, uintptr(value))
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||||
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlSetTermios(fd int, req uint, value *Termios) error {
|
||||||
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
|
}
|
||||||
|
|
||||||
|
// IoctlGetInt performs an ioctl operation which gets an integer value
|
||||||
|
// from fd, using the specified request number.
|
||||||
|
func IoctlGetInt(fd int, req uint) (int, error) {
|
||||||
|
var value int
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
||||||
|
var value Winsize
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||||
|
var value Termios
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exposed directly
|
* Exposed directly
|
||||||
*/
|
*/
|
||||||
//sys Access(path string, mode uint32) (err error)
|
//sys Access(path string, mode uint32) (err error)
|
||||||
//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error)
|
//sys Adjtime(delta *Timeval, olddelta *Timeval) (err error)
|
||||||
|
//sys CapEnter() (err error)
|
||||||
|
//sys capRightsGet(version int, fd int, rightsp *CapRights) (err error) = SYS___CAP_RIGHTS_GET
|
||||||
|
//sys capRightsLimit(fd int, rightsp *CapRights) (err error)
|
||||||
//sys Chdir(path string) (err error)
|
//sys Chdir(path string) (err error)
|
||||||
//sys Chflags(path string, flags int) (err error)
|
//sys Chflags(path string, flags int) (err error)
|
||||||
//sys Chmod(path string, mode uint32) (err error)
|
//sys Chmod(path string, mode uint32) (err error)
|
||||||
|
@ -379,10 +421,13 @@ func Llistxattr(link string, dest []byte) (sz int, err error) {
|
||||||
//sys ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error)
|
//sys ExtattrDeleteLink(link string, attrnamespace int, attrname string) (err error)
|
||||||
//sys ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error)
|
//sys ExtattrListLink(link string, attrnamespace int, data uintptr, nbytes int) (ret int, err error)
|
||||||
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_POSIX_FADVISE
|
//sys Fadvise(fd int, offset int64, length int64, advice int) (err error) = SYS_POSIX_FADVISE
|
||||||
|
//sys 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 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)
|
||||||
|
@ -409,24 +454,24 @@ func Llistxattr(link string, dest []byte) (sz int, err 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 Mlock(b []byte) (err error)
|
|
||||||
//sys Mlockall(flags int) (err error)
|
|
||||||
//sys Mprotect(b []byte, prot int) (err error)
|
|
||||||
//sys Munlock(b []byte) (err error)
|
|
||||||
//sys Munlockall() (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(fdat int, path string, mode int, perm uint32) (fd int, err error)
|
||||||
//sys Pathconf(path string, name int) (val int, err error)
|
//sys Pathconf(path string, name int) (val int, err error)
|
||||||
//sys Pread(fd int, p []byte, offset int64) (n int, err error)
|
//sys Pread(fd int, p []byte, offset int64) (n int, err 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
|
||||||
|
@ -448,11 +493,13 @@ func Llistxattr(link string, dest []byte) (sz int, err 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)
|
||||||
|
@ -460,6 +507,7 @@ func Llistxattr(link string, dest []byte) (sz int, err error) {
|
||||||
//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ
|
//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ
|
||||||
//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE
|
//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE
|
||||||
//sys accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error)
|
//sys accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int, err error)
|
||||||
|
//sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unimplemented
|
* Unimplemented
|
||||||
|
@ -493,9 +541,6 @@ func Llistxattr(link string, dest []byte) (sz int, err error) {
|
||||||
// Add_profil
|
// Add_profil
|
||||||
// Kdebug_trace
|
// Kdebug_trace
|
||||||
// Sigreturn
|
// Sigreturn
|
||||||
// Mmap
|
|
||||||
// Mlock
|
|
||||||
// Munlock
|
|
||||||
// Atsocket
|
// Atsocket
|
||||||
// Kqueue_from_portset_np
|
// Kqueue_from_portset_np
|
||||||
// Kqueue_portset
|
// Kqueue_portset
|
||||||
|
@ -588,8 +633,6 @@ func Llistxattr(link string, dest []byte) (sz int, err error) {
|
||||||
// Lio_listio
|
// Lio_listio
|
||||||
// __pthread_cond_wait
|
// __pthread_cond_wait
|
||||||
// Iopolicysys
|
// Iopolicysys
|
||||||
// Mlockall
|
|
||||||
// Munlockall
|
|
||||||
// __pthread_kill
|
// __pthread_kill
|
||||||
// __pthread_sigmask
|
// __pthread_sigmask
|
||||||
// __sigwait
|
// __sigwait
|
||||||
|
@ -642,7 +685,6 @@ func Llistxattr(link string, dest []byte) (sz int, err error) {
|
||||||
// Sendmsg_nocancel
|
// Sendmsg_nocancel
|
||||||
// Recvfrom_nocancel
|
// Recvfrom_nocancel
|
||||||
// Accept_nocancel
|
// Accept_nocancel
|
||||||
// Msync_nocancel
|
|
||||||
// Fcntl_nocancel
|
// Fcntl_nocancel
|
||||||
// Select_nocancel
|
// Select_nocancel
|
||||||
// Fsync_nocancel
|
// Fsync_nocancel
|
||||||
|
|
|
@ -57,11 +57,15 @@ func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
|
|
||||||
// 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) (err error) {
|
func IoctlSetInt(fd int, req uint, value int) error {
|
||||||
return ioctl(fd, req, uintptr(value))
|
return ioctl(fd, req, uintptr(value))
|
||||||
}
|
}
|
||||||
|
|
||||||
func IoctlSetTermios(fd int, req uint, value *Termios) (err error) {
|
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||||
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
|
}
|
||||||
|
|
||||||
|
func IoctlSetTermios(fd int, req uint, value *Termios) error {
|
||||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,6 +77,12 @@ func IoctlGetInt(fd int, req uint) (int, error) {
|
||||||
return value, err
|
return value, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func IoctlGetWinsize(fd int, req uint) (*Winsize, error) {
|
||||||
|
var value Winsize
|
||||||
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
return &value, err
|
||||||
|
}
|
||||||
|
|
||||||
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
func IoctlGetTermios(fd int, req uint) (*Termios, error) {
|
||||||
var value Termios
|
var value Termios
|
||||||
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
err := ioctl(fd, req, uintptr(unsafe.Pointer(&value)))
|
||||||
|
@ -342,10 +352,14 @@ func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int,
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func Mkfifo(path string, mode uint32) (err error) {
|
func Mkfifo(path string, mode uint32) error {
|
||||||
return Mknod(path, mode|S_IFIFO, 0)
|
return Mknod(path, mode|S_IFIFO, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Mkfifoat(dirfd int, path string, mode uint32) error {
|
||||||
|
return Mknodat(dirfd, path, mode|S_IFIFO, 0)
|
||||||
|
}
|
||||||
|
|
||||||
func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
func (sa *SockaddrInet4) sockaddr() (unsafe.Pointer, _Socklen, error) {
|
||||||
if sa.Port < 0 || sa.Port > 0xFFFF {
|
if sa.Port < 0 || sa.Port > 0xFFFF {
|
||||||
return nil, 0, EINVAL
|
return nil, 0, EINVAL
|
||||||
|
@ -1265,6 +1279,7 @@ func Setgid(uid int) (err error) {
|
||||||
//sys Setpriority(which int, who int, prio int) (err error)
|
//sys Setpriority(which int, who int, prio int) (err error)
|
||||||
//sys Setxattr(path string, attr string, data []byte, flags int) (err error)
|
//sys Setxattr(path string, attr string, data []byte, flags int) (err error)
|
||||||
//sys Sync()
|
//sys Sync()
|
||||||
|
//sys Syncfs(fd int) (err error)
|
||||||
//sysnb Sysinfo(info *Sysinfo_t) (err error)
|
//sysnb Sysinfo(info *Sysinfo_t) (err error)
|
||||||
//sys Tee(rfd int, wfd int, len int, flags int) (n int64, err error)
|
//sys Tee(rfd int, wfd int, len int, flags int) (n int64, err error)
|
||||||
//sysnb Tgkill(tgid int, tid int, sig syscall.Signal) (err error)
|
//sysnb Tgkill(tgid int, tid int, sig syscall.Signal) (err error)
|
||||||
|
@ -1299,8 +1314,9 @@ func Munmap(b []byte) (err error) {
|
||||||
//sys Madvise(b []byte, advice int) (err error)
|
//sys Madvise(b []byte, advice int) (err error)
|
||||||
//sys Mprotect(b []byte, prot int) (err error)
|
//sys Mprotect(b []byte, prot int) (err error)
|
||||||
//sys Mlock(b []byte) (err error)
|
//sys Mlock(b []byte) (err error)
|
||||||
//sys Munlock(b []byte) (err error)
|
|
||||||
//sys Mlockall(flags int) (err error)
|
//sys Mlockall(flags int) (err error)
|
||||||
|
//sys Msync(b []byte, flags int) (err error)
|
||||||
|
//sys Munlock(b []byte) (err error)
|
||||||
//sys Munlockall() (err error)
|
//sys Munlockall() (err error)
|
||||||
|
|
||||||
// Vmsplice splices user pages from a slice of Iovecs into a pipe specified by fd,
|
// Vmsplice splices user pages from a slice of Iovecs into a pipe specified by fd,
|
||||||
|
@ -1368,7 +1384,6 @@ func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) {
|
||||||
// ModifyLdt
|
// ModifyLdt
|
||||||
// Mount
|
// Mount
|
||||||
// MovePages
|
// MovePages
|
||||||
// Mprotect
|
|
||||||
// MqGetsetattr
|
// MqGetsetattr
|
||||||
// MqNotify
|
// MqNotify
|
||||||
// MqOpen
|
// MqOpen
|
||||||
|
@ -1380,7 +1395,6 @@ func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) {
|
||||||
// Msgget
|
// Msgget
|
||||||
// Msgrcv
|
// Msgrcv
|
||||||
// Msgsnd
|
// Msgsnd
|
||||||
// Msync
|
|
||||||
// Newfstatat
|
// Newfstatat
|
||||||
// Nfsservctl
|
// Nfsservctl
|
||||||
// Personality
|
// Personality
|
||||||
|
|
|
@ -170,11 +170,6 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
||||||
//sys Mkdir(path string, mode uint32) (err error)
|
//sys Mkdir(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 Mlock(b []byte) (err error)
|
|
||||||
//sys Mlockall(flags int) (err error)
|
|
||||||
//sys Mprotect(b []byte, prot int) (err error)
|
|
||||||
//sys Munlock(b []byte) (err error)
|
|
||||||
//sys Munlockall() (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 Pathconf(path string, name int) (val int, err error)
|
//sys Pathconf(path string, name int) (val int, err error)
|
||||||
|
@ -210,6 +205,7 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
||||||
//sys munmap(addr uintptr, length uintptr) (err error)
|
//sys munmap(addr uintptr, length uintptr) (err error)
|
||||||
//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ
|
//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ
|
||||||
//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE
|
//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE
|
||||||
|
//sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unimplemented
|
* Unimplemented
|
||||||
|
|
|
@ -149,11 +149,6 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
||||||
//sys Mkdir(path string, mode uint32) (err error)
|
//sys Mkdir(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 Mlock(b []byte) (err error)
|
|
||||||
//sys Mlockall(flags int) (err error)
|
|
||||||
//sys Mprotect(b []byte, prot int) (err error)
|
|
||||||
//sys Munlock(b []byte) (err error)
|
|
||||||
//sys Munlockall() (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 Pathconf(path string, name int) (val int, err error)
|
//sys Pathconf(path string, name int) (val int, err error)
|
||||||
|
@ -193,6 +188,7 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
||||||
//sys munmap(addr uintptr, length uintptr) (err error)
|
//sys munmap(addr uintptr, length uintptr) (err error)
|
||||||
//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ
|
//sys readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_READ
|
||||||
//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE
|
//sys writelen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_WRITE
|
||||||
|
//sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Unimplemented
|
* Unimplemented
|
||||||
|
@ -282,6 +278,5 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
||||||
// thrsleep
|
// thrsleep
|
||||||
// thrwakeup
|
// thrwakeup
|
||||||
// unlinkat
|
// unlinkat
|
||||||
// utimensat
|
|
||||||
// vfork
|
// vfork
|
||||||
// writev
|
// writev
|
||||||
|
|
|
@ -0,0 +1,44 @@
|
||||||
|
// Copyright 2017 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 arm,openbsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
import "syscall"
|
||||||
|
|
||||||
|
func Getpagesize() int { return syscall.Getpagesize() }
|
||||||
|
|
||||||
|
func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
|
||||||
|
|
||||||
|
func NsecToTimespec(nsec int64) (ts Timespec) {
|
||||||
|
ts.Sec = int64(nsec / 1e9)
|
||||||
|
ts.Nsec = int32(nsec % 1e9)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func NsecToTimeval(nsec int64) (tv Timeval) {
|
||||||
|
nsec += 999 // round up to microsecond
|
||||||
|
tv.Usec = int32(nsec % 1e9 / 1e3)
|
||||||
|
tv.Sec = int64(nsec / 1e9)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func SetKevent(k *Kevent_t, fd, mode, flags int) {
|
||||||
|
k.Ident = uint32(fd)
|
||||||
|
k.Filter = int16(mode)
|
||||||
|
k.Flags = uint16(flags)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (iov *Iovec) SetLen(length int) {
|
||||||
|
iov.Len = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (msghdr *Msghdr) SetControllen(length int) {
|
||||||
|
msghdr.Controllen = uint32(length)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (cmsg *Cmsghdr) SetLen(length int) {
|
||||||
|
cmsg.Len = uint32(length)
|
||||||
|
}
|
|
@ -581,6 +581,7 @@ func IoctlGetTermio(fd int, req uint) (*Termio, 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 Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
|
||||||
//sys Fdatasync(fd int) (err error)
|
//sys Fdatasync(fd 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)
|
||||||
//sys Fstatvfs(fd int, vfsstat *Statvfs_t) (err error)
|
//sys Fstatvfs(fd int, vfsstat *Statvfs_t) (err error)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mkerrors.sh -m32
|
// mkerrors.sh -m32
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build 386,darwin
|
// +build 386,darwin
|
||||||
|
|
||||||
|
@ -48,6 +48,7 @@ const (
|
||||||
AF_UNIX = 0x1
|
AF_UNIX = 0x1
|
||||||
AF_UNSPEC = 0x0
|
AF_UNSPEC = 0x0
|
||||||
AF_UTUN = 0x26
|
AF_UTUN = 0x26
|
||||||
|
ALTWERASE = 0x200
|
||||||
B0 = 0x0
|
B0 = 0x0
|
||||||
B110 = 0x6e
|
B110 = 0x6e
|
||||||
B115200 = 0x1c200
|
B115200 = 0x1c200
|
||||||
|
@ -138,9 +139,26 @@ const (
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
|
BS0 = 0x0
|
||||||
|
BS1 = 0x8000
|
||||||
|
BSDLY = 0x8000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
CLOCAL = 0x8000
|
CLOCAL = 0x8000
|
||||||
|
CLOCK_MONOTONIC = 0x6
|
||||||
|
CLOCK_MONOTONIC_RAW = 0x4
|
||||||
|
CLOCK_MONOTONIC_RAW_APPROX = 0x5
|
||||||
|
CLOCK_PROCESS_CPUTIME_ID = 0xc
|
||||||
|
CLOCK_REALTIME = 0x0
|
||||||
|
CLOCK_THREAD_CPUTIME_ID = 0x10
|
||||||
|
CLOCK_UPTIME_RAW = 0x8
|
||||||
|
CLOCK_UPTIME_RAW_APPROX = 0x9
|
||||||
|
CR0 = 0x0
|
||||||
|
CR1 = 0x1000
|
||||||
|
CR2 = 0x2000
|
||||||
|
CR3 = 0x3000
|
||||||
|
CRDLY = 0x3000
|
||||||
CREAD = 0x800
|
CREAD = 0x800
|
||||||
|
CRTSCTS = 0x30000
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x100
|
CS6 = 0x100
|
||||||
CS7 = 0x200
|
CS7 = 0x200
|
||||||
|
@ -332,13 +350,14 @@ const (
|
||||||
ECHONL = 0x10
|
ECHONL = 0x10
|
||||||
ECHOPRT = 0x20
|
ECHOPRT = 0x20
|
||||||
EVFILT_AIO = -0x3
|
EVFILT_AIO = -0x3
|
||||||
|
EVFILT_EXCEPT = -0xf
|
||||||
EVFILT_FS = -0x9
|
EVFILT_FS = -0x9
|
||||||
EVFILT_MACHPORT = -0x8
|
EVFILT_MACHPORT = -0x8
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0xe
|
EVFILT_SYSCOUNT = 0xf
|
||||||
EVFILT_THREADMARKER = 0xe
|
EVFILT_THREADMARKER = 0xf
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
EVFILT_USER = -0xa
|
EVFILT_USER = -0xa
|
||||||
EVFILT_VM = -0xc
|
EVFILT_VM = -0xc
|
||||||
|
@ -349,6 +368,7 @@ const (
|
||||||
EV_DELETE = 0x2
|
EV_DELETE = 0x2
|
||||||
EV_DISABLE = 0x8
|
EV_DISABLE = 0x8
|
||||||
EV_DISPATCH = 0x80
|
EV_DISPATCH = 0x80
|
||||||
|
EV_DISPATCH2 = 0x180
|
||||||
EV_ENABLE = 0x4
|
EV_ENABLE = 0x4
|
||||||
EV_EOF = 0x8000
|
EV_EOF = 0x8000
|
||||||
EV_ERROR = 0x4000
|
EV_ERROR = 0x4000
|
||||||
|
@ -359,16 +379,25 @@ const (
|
||||||
EV_POLL = 0x1000
|
EV_POLL = 0x1000
|
||||||
EV_RECEIPT = 0x40
|
EV_RECEIPT = 0x40
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_SYSFLAGS = 0xf000
|
||||||
|
EV_UDATA_SPECIFIC = 0x100
|
||||||
|
EV_VANISHED = 0x200
|
||||||
EXTA = 0x4b00
|
EXTA = 0x4b00
|
||||||
EXTB = 0x9600
|
EXTB = 0x9600
|
||||||
EXTPROC = 0x800
|
EXTPROC = 0x800
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
|
FF0 = 0x0
|
||||||
|
FF1 = 0x4000
|
||||||
|
FFDLY = 0x4000
|
||||||
FLUSHO = 0x800000
|
FLUSHO = 0x800000
|
||||||
F_ADDFILESIGS = 0x3d
|
F_ADDFILESIGS = 0x3d
|
||||||
|
F_ADDFILESIGS_FOR_DYLD_SIM = 0x53
|
||||||
|
F_ADDFILESIGS_RETURN = 0x61
|
||||||
F_ADDSIGS = 0x3b
|
F_ADDSIGS = 0x3b
|
||||||
F_ALLOCATEALL = 0x4
|
F_ALLOCATEALL = 0x4
|
||||||
F_ALLOCATECONTIG = 0x2
|
F_ALLOCATECONTIG = 0x2
|
||||||
|
F_BARRIERFSYNC = 0x55
|
||||||
|
F_CHECK_LV = 0x62
|
||||||
F_CHKCLEAN = 0x29
|
F_CHKCLEAN = 0x29
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
F_DUPFD_CLOEXEC = 0x43
|
F_DUPFD_CLOEXEC = 0x43
|
||||||
|
@ -770,11 +799,13 @@ const (
|
||||||
MADV_FREE_REUSABLE = 0x7
|
MADV_FREE_REUSABLE = 0x7
|
||||||
MADV_FREE_REUSE = 0x8
|
MADV_FREE_REUSE = 0x8
|
||||||
MADV_NORMAL = 0x0
|
MADV_NORMAL = 0x0
|
||||||
|
MADV_PAGEOUT = 0xa
|
||||||
MADV_RANDOM = 0x1
|
MADV_RANDOM = 0x1
|
||||||
MADV_SEQUENTIAL = 0x2
|
MADV_SEQUENTIAL = 0x2
|
||||||
MADV_WILLNEED = 0x3
|
MADV_WILLNEED = 0x3
|
||||||
MADV_ZERO_WIRED_PAGES = 0x6
|
MADV_ZERO_WIRED_PAGES = 0x6
|
||||||
MAP_ANON = 0x1000
|
MAP_ANON = 0x1000
|
||||||
|
MAP_ANONYMOUS = 0x1000
|
||||||
MAP_COPY = 0x2
|
MAP_COPY = 0x2
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
@ -786,9 +817,43 @@ const (
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_RENAME = 0x20
|
MAP_RENAME = 0x20
|
||||||
MAP_RESERVED0080 = 0x80
|
MAP_RESERVED0080 = 0x80
|
||||||
|
MAP_RESILIENT_CODESIGN = 0x2000
|
||||||
|
MAP_RESILIENT_MEDIA = 0x4000
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
|
MNT_ASYNC = 0x40
|
||||||
|
MNT_AUTOMOUNTED = 0x400000
|
||||||
|
MNT_CMDFLAGS = 0xf0000
|
||||||
|
MNT_CPROTECT = 0x80
|
||||||
|
MNT_DEFWRITE = 0x2000000
|
||||||
|
MNT_DONTBROWSE = 0x100000
|
||||||
|
MNT_DOVOLFS = 0x8000
|
||||||
|
MNT_DWAIT = 0x4
|
||||||
|
MNT_EXPORTED = 0x100
|
||||||
|
MNT_FORCE = 0x80000
|
||||||
|
MNT_IGNORE_OWNERSHIP = 0x200000
|
||||||
|
MNT_JOURNALED = 0x800000
|
||||||
|
MNT_LOCAL = 0x1000
|
||||||
|
MNT_MULTILABEL = 0x4000000
|
||||||
|
MNT_NOATIME = 0x10000000
|
||||||
|
MNT_NOBLOCK = 0x20000
|
||||||
|
MNT_NODEV = 0x10
|
||||||
|
MNT_NOEXEC = 0x4
|
||||||
|
MNT_NOSUID = 0x8
|
||||||
|
MNT_NOUSERXATTR = 0x1000000
|
||||||
|
MNT_NOWAIT = 0x2
|
||||||
|
MNT_QUARANTINE = 0x400
|
||||||
|
MNT_QUOTA = 0x2000
|
||||||
|
MNT_RDONLY = 0x1
|
||||||
|
MNT_RELOAD = 0x40000
|
||||||
|
MNT_ROOTFS = 0x4000
|
||||||
|
MNT_SYNCHRONOUS = 0x2
|
||||||
|
MNT_UNION = 0x20
|
||||||
|
MNT_UNKNOWNPERMISSIONS = 0x200000
|
||||||
|
MNT_UPDATE = 0x10000
|
||||||
|
MNT_VISFLAGMASK = 0x17f0f5ff
|
||||||
|
MNT_WAIT = 0x1
|
||||||
MSG_CTRUNC = 0x20
|
MSG_CTRUNC = 0x20
|
||||||
MSG_DONTROUTE = 0x4
|
MSG_DONTROUTE = 0x4
|
||||||
MSG_DONTWAIT = 0x80
|
MSG_DONTWAIT = 0x80
|
||||||
|
@ -819,7 +884,13 @@ const (
|
||||||
NET_RT_MAXID = 0xa
|
NET_RT_MAXID = 0xa
|
||||||
NET_RT_STAT = 0x4
|
NET_RT_STAT = 0x4
|
||||||
NET_RT_TRASH = 0x5
|
NET_RT_TRASH = 0x5
|
||||||
|
NL0 = 0x0
|
||||||
|
NL1 = 0x100
|
||||||
|
NL2 = 0x200
|
||||||
|
NL3 = 0x300
|
||||||
|
NLDLY = 0x300
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
|
NOKERNINFO = 0x2000000
|
||||||
NOTE_ABSOLUTE = 0x8
|
NOTE_ABSOLUTE = 0x8
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
NOTE_BACKGROUND = 0x40
|
NOTE_BACKGROUND = 0x40
|
||||||
|
@ -843,11 +914,14 @@ const (
|
||||||
NOTE_FFNOP = 0x0
|
NOTE_FFNOP = 0x0
|
||||||
NOTE_FFOR = 0x80000000
|
NOTE_FFOR = 0x80000000
|
||||||
NOTE_FORK = 0x40000000
|
NOTE_FORK = 0x40000000
|
||||||
|
NOTE_FUNLOCK = 0x100
|
||||||
NOTE_LEEWAY = 0x10
|
NOTE_LEEWAY = 0x10
|
||||||
NOTE_LINK = 0x10
|
NOTE_LINK = 0x10
|
||||||
NOTE_LOWAT = 0x1
|
NOTE_LOWAT = 0x1
|
||||||
|
NOTE_MACH_CONTINUOUS_TIME = 0x80
|
||||||
NOTE_NONE = 0x80
|
NOTE_NONE = 0x80
|
||||||
NOTE_NSECONDS = 0x4
|
NOTE_NSECONDS = 0x4
|
||||||
|
NOTE_OOB = 0x2
|
||||||
NOTE_PCTRLMASK = -0x100000
|
NOTE_PCTRLMASK = -0x100000
|
||||||
NOTE_PDATAMASK = 0xfffff
|
NOTE_PDATAMASK = 0xfffff
|
||||||
NOTE_REAP = 0x10000000
|
NOTE_REAP = 0x10000000
|
||||||
|
@ -872,6 +946,7 @@ const (
|
||||||
ONOCR = 0x20
|
ONOCR = 0x20
|
||||||
ONOEOT = 0x8
|
ONOEOT = 0x8
|
||||||
OPOST = 0x1
|
OPOST = 0x1
|
||||||
|
OXTABS = 0x4
|
||||||
O_ACCMODE = 0x3
|
O_ACCMODE = 0x3
|
||||||
O_ALERT = 0x20000000
|
O_ALERT = 0x20000000
|
||||||
O_APPEND = 0x8
|
O_APPEND = 0x8
|
||||||
|
@ -880,6 +955,7 @@ const (
|
||||||
O_CREAT = 0x200
|
O_CREAT = 0x200
|
||||||
O_DIRECTORY = 0x100000
|
O_DIRECTORY = 0x100000
|
||||||
O_DP_GETRAWENCRYPTED = 0x1
|
O_DP_GETRAWENCRYPTED = 0x1
|
||||||
|
O_DP_GETRAWUNENCRYPTED = 0x2
|
||||||
O_DSYNC = 0x400000
|
O_DSYNC = 0x400000
|
||||||
O_EVTONLY = 0x8000
|
O_EVTONLY = 0x8000
|
||||||
O_EXCL = 0x800
|
O_EXCL = 0x800
|
||||||
|
@ -932,7 +1008,10 @@ const (
|
||||||
RLIMIT_CPU_USAGE_MONITOR = 0x2
|
RLIMIT_CPU_USAGE_MONITOR = 0x2
|
||||||
RLIMIT_DATA = 0x2
|
RLIMIT_DATA = 0x2
|
||||||
RLIMIT_FSIZE = 0x1
|
RLIMIT_FSIZE = 0x1
|
||||||
|
RLIMIT_MEMLOCK = 0x6
|
||||||
RLIMIT_NOFILE = 0x8
|
RLIMIT_NOFILE = 0x8
|
||||||
|
RLIMIT_NPROC = 0x7
|
||||||
|
RLIMIT_RSS = 0x5
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0x7fffffffffffffff
|
RLIM_INFINITY = 0x7fffffffffffffff
|
||||||
RTAX_AUTHOR = 0x6
|
RTAX_AUTHOR = 0x6
|
||||||
|
@ -1102,6 +1181,8 @@ const (
|
||||||
SO_LABEL = 0x1010
|
SO_LABEL = 0x1010
|
||||||
SO_LINGER = 0x80
|
SO_LINGER = 0x80
|
||||||
SO_LINGER_SEC = 0x1080
|
SO_LINGER_SEC = 0x1080
|
||||||
|
SO_NETSVC_MARKING_LEVEL = 0x1119
|
||||||
|
SO_NET_SERVICE_TYPE = 0x1116
|
||||||
SO_NKE = 0x1021
|
SO_NKE = 0x1021
|
||||||
SO_NOADDRERR = 0x1023
|
SO_NOADDRERR = 0x1023
|
||||||
SO_NOSIGPIPE = 0x1022
|
SO_NOSIGPIPE = 0x1022
|
||||||
|
@ -1157,11 +1238,22 @@ const (
|
||||||
S_IXGRP = 0x8
|
S_IXGRP = 0x8
|
||||||
S_IXOTH = 0x1
|
S_IXOTH = 0x1
|
||||||
S_IXUSR = 0x40
|
S_IXUSR = 0x40
|
||||||
|
TAB0 = 0x0
|
||||||
|
TAB1 = 0x400
|
||||||
|
TAB2 = 0x800
|
||||||
|
TAB3 = 0x4
|
||||||
|
TABDLY = 0xc04
|
||||||
TCIFLUSH = 0x1
|
TCIFLUSH = 0x1
|
||||||
|
TCIOFF = 0x3
|
||||||
TCIOFLUSH = 0x3
|
TCIOFLUSH = 0x3
|
||||||
|
TCION = 0x4
|
||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
|
TCOOFF = 0x1
|
||||||
|
TCOON = 0x2
|
||||||
TCP_CONNECTIONTIMEOUT = 0x20
|
TCP_CONNECTIONTIMEOUT = 0x20
|
||||||
|
TCP_CONNECTION_INFO = 0x106
|
||||||
TCP_ENABLE_ECN = 0x104
|
TCP_ENABLE_ECN = 0x104
|
||||||
|
TCP_FASTOPEN = 0x105
|
||||||
TCP_KEEPALIVE = 0x10
|
TCP_KEEPALIVE = 0x10
|
||||||
TCP_KEEPCNT = 0x102
|
TCP_KEEPCNT = 0x102
|
||||||
TCP_KEEPINTVL = 0x101
|
TCP_KEEPINTVL = 0x101
|
||||||
|
@ -1261,6 +1353,11 @@ const (
|
||||||
VKILL = 0x5
|
VKILL = 0x5
|
||||||
VLNEXT = 0xe
|
VLNEXT = 0xe
|
||||||
VMIN = 0x10
|
VMIN = 0x10
|
||||||
|
VM_LOADAVG = 0x2
|
||||||
|
VM_MACHFACTOR = 0x4
|
||||||
|
VM_MAXID = 0x6
|
||||||
|
VM_METER = 0x1
|
||||||
|
VM_SWAPUSAGE = 0x5
|
||||||
VQUIT = 0x9
|
VQUIT = 0x9
|
||||||
VREPRINT = 0x6
|
VREPRINT = 0x6
|
||||||
VSTART = 0xc
|
VSTART = 0xc
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mkerrors.sh -m64
|
// mkerrors.sh -m64
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build amd64,darwin
|
// +build amd64,darwin
|
||||||
|
|
||||||
|
@ -48,6 +48,7 @@ const (
|
||||||
AF_UNIX = 0x1
|
AF_UNIX = 0x1
|
||||||
AF_UNSPEC = 0x0
|
AF_UNSPEC = 0x0
|
||||||
AF_UTUN = 0x26
|
AF_UTUN = 0x26
|
||||||
|
ALTWERASE = 0x200
|
||||||
B0 = 0x0
|
B0 = 0x0
|
||||||
B110 = 0x6e
|
B110 = 0x6e
|
||||||
B115200 = 0x1c200
|
B115200 = 0x1c200
|
||||||
|
@ -138,9 +139,26 @@ const (
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
|
BS0 = 0x0
|
||||||
|
BS1 = 0x8000
|
||||||
|
BSDLY = 0x8000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
CLOCAL = 0x8000
|
CLOCAL = 0x8000
|
||||||
|
CLOCK_MONOTONIC = 0x6
|
||||||
|
CLOCK_MONOTONIC_RAW = 0x4
|
||||||
|
CLOCK_MONOTONIC_RAW_APPROX = 0x5
|
||||||
|
CLOCK_PROCESS_CPUTIME_ID = 0xc
|
||||||
|
CLOCK_REALTIME = 0x0
|
||||||
|
CLOCK_THREAD_CPUTIME_ID = 0x10
|
||||||
|
CLOCK_UPTIME_RAW = 0x8
|
||||||
|
CLOCK_UPTIME_RAW_APPROX = 0x9
|
||||||
|
CR0 = 0x0
|
||||||
|
CR1 = 0x1000
|
||||||
|
CR2 = 0x2000
|
||||||
|
CR3 = 0x3000
|
||||||
|
CRDLY = 0x3000
|
||||||
CREAD = 0x800
|
CREAD = 0x800
|
||||||
|
CRTSCTS = 0x30000
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x100
|
CS6 = 0x100
|
||||||
CS7 = 0x200
|
CS7 = 0x200
|
||||||
|
@ -332,13 +350,14 @@ const (
|
||||||
ECHONL = 0x10
|
ECHONL = 0x10
|
||||||
ECHOPRT = 0x20
|
ECHOPRT = 0x20
|
||||||
EVFILT_AIO = -0x3
|
EVFILT_AIO = -0x3
|
||||||
|
EVFILT_EXCEPT = -0xf
|
||||||
EVFILT_FS = -0x9
|
EVFILT_FS = -0x9
|
||||||
EVFILT_MACHPORT = -0x8
|
EVFILT_MACHPORT = -0x8
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0xe
|
EVFILT_SYSCOUNT = 0xf
|
||||||
EVFILT_THREADMARKER = 0xe
|
EVFILT_THREADMARKER = 0xf
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
EVFILT_USER = -0xa
|
EVFILT_USER = -0xa
|
||||||
EVFILT_VM = -0xc
|
EVFILT_VM = -0xc
|
||||||
|
@ -349,6 +368,7 @@ const (
|
||||||
EV_DELETE = 0x2
|
EV_DELETE = 0x2
|
||||||
EV_DISABLE = 0x8
|
EV_DISABLE = 0x8
|
||||||
EV_DISPATCH = 0x80
|
EV_DISPATCH = 0x80
|
||||||
|
EV_DISPATCH2 = 0x180
|
||||||
EV_ENABLE = 0x4
|
EV_ENABLE = 0x4
|
||||||
EV_EOF = 0x8000
|
EV_EOF = 0x8000
|
||||||
EV_ERROR = 0x4000
|
EV_ERROR = 0x4000
|
||||||
|
@ -359,16 +379,25 @@ const (
|
||||||
EV_POLL = 0x1000
|
EV_POLL = 0x1000
|
||||||
EV_RECEIPT = 0x40
|
EV_RECEIPT = 0x40
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_SYSFLAGS = 0xf000
|
||||||
|
EV_UDATA_SPECIFIC = 0x100
|
||||||
|
EV_VANISHED = 0x200
|
||||||
EXTA = 0x4b00
|
EXTA = 0x4b00
|
||||||
EXTB = 0x9600
|
EXTB = 0x9600
|
||||||
EXTPROC = 0x800
|
EXTPROC = 0x800
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
|
FF0 = 0x0
|
||||||
|
FF1 = 0x4000
|
||||||
|
FFDLY = 0x4000
|
||||||
FLUSHO = 0x800000
|
FLUSHO = 0x800000
|
||||||
F_ADDFILESIGS = 0x3d
|
F_ADDFILESIGS = 0x3d
|
||||||
|
F_ADDFILESIGS_FOR_DYLD_SIM = 0x53
|
||||||
|
F_ADDFILESIGS_RETURN = 0x61
|
||||||
F_ADDSIGS = 0x3b
|
F_ADDSIGS = 0x3b
|
||||||
F_ALLOCATEALL = 0x4
|
F_ALLOCATEALL = 0x4
|
||||||
F_ALLOCATECONTIG = 0x2
|
F_ALLOCATECONTIG = 0x2
|
||||||
|
F_BARRIERFSYNC = 0x55
|
||||||
|
F_CHECK_LV = 0x62
|
||||||
F_CHKCLEAN = 0x29
|
F_CHKCLEAN = 0x29
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
F_DUPFD_CLOEXEC = 0x43
|
F_DUPFD_CLOEXEC = 0x43
|
||||||
|
@ -770,11 +799,13 @@ const (
|
||||||
MADV_FREE_REUSABLE = 0x7
|
MADV_FREE_REUSABLE = 0x7
|
||||||
MADV_FREE_REUSE = 0x8
|
MADV_FREE_REUSE = 0x8
|
||||||
MADV_NORMAL = 0x0
|
MADV_NORMAL = 0x0
|
||||||
|
MADV_PAGEOUT = 0xa
|
||||||
MADV_RANDOM = 0x1
|
MADV_RANDOM = 0x1
|
||||||
MADV_SEQUENTIAL = 0x2
|
MADV_SEQUENTIAL = 0x2
|
||||||
MADV_WILLNEED = 0x3
|
MADV_WILLNEED = 0x3
|
||||||
MADV_ZERO_WIRED_PAGES = 0x6
|
MADV_ZERO_WIRED_PAGES = 0x6
|
||||||
MAP_ANON = 0x1000
|
MAP_ANON = 0x1000
|
||||||
|
MAP_ANONYMOUS = 0x1000
|
||||||
MAP_COPY = 0x2
|
MAP_COPY = 0x2
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
@ -786,9 +817,43 @@ const (
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_RENAME = 0x20
|
MAP_RENAME = 0x20
|
||||||
MAP_RESERVED0080 = 0x80
|
MAP_RESERVED0080 = 0x80
|
||||||
|
MAP_RESILIENT_CODESIGN = 0x2000
|
||||||
|
MAP_RESILIENT_MEDIA = 0x4000
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
|
MNT_ASYNC = 0x40
|
||||||
|
MNT_AUTOMOUNTED = 0x400000
|
||||||
|
MNT_CMDFLAGS = 0xf0000
|
||||||
|
MNT_CPROTECT = 0x80
|
||||||
|
MNT_DEFWRITE = 0x2000000
|
||||||
|
MNT_DONTBROWSE = 0x100000
|
||||||
|
MNT_DOVOLFS = 0x8000
|
||||||
|
MNT_DWAIT = 0x4
|
||||||
|
MNT_EXPORTED = 0x100
|
||||||
|
MNT_FORCE = 0x80000
|
||||||
|
MNT_IGNORE_OWNERSHIP = 0x200000
|
||||||
|
MNT_JOURNALED = 0x800000
|
||||||
|
MNT_LOCAL = 0x1000
|
||||||
|
MNT_MULTILABEL = 0x4000000
|
||||||
|
MNT_NOATIME = 0x10000000
|
||||||
|
MNT_NOBLOCK = 0x20000
|
||||||
|
MNT_NODEV = 0x10
|
||||||
|
MNT_NOEXEC = 0x4
|
||||||
|
MNT_NOSUID = 0x8
|
||||||
|
MNT_NOUSERXATTR = 0x1000000
|
||||||
|
MNT_NOWAIT = 0x2
|
||||||
|
MNT_QUARANTINE = 0x400
|
||||||
|
MNT_QUOTA = 0x2000
|
||||||
|
MNT_RDONLY = 0x1
|
||||||
|
MNT_RELOAD = 0x40000
|
||||||
|
MNT_ROOTFS = 0x4000
|
||||||
|
MNT_SYNCHRONOUS = 0x2
|
||||||
|
MNT_UNION = 0x20
|
||||||
|
MNT_UNKNOWNPERMISSIONS = 0x200000
|
||||||
|
MNT_UPDATE = 0x10000
|
||||||
|
MNT_VISFLAGMASK = 0x17f0f5ff
|
||||||
|
MNT_WAIT = 0x1
|
||||||
MSG_CTRUNC = 0x20
|
MSG_CTRUNC = 0x20
|
||||||
MSG_DONTROUTE = 0x4
|
MSG_DONTROUTE = 0x4
|
||||||
MSG_DONTWAIT = 0x80
|
MSG_DONTWAIT = 0x80
|
||||||
|
@ -819,7 +884,13 @@ const (
|
||||||
NET_RT_MAXID = 0xa
|
NET_RT_MAXID = 0xa
|
||||||
NET_RT_STAT = 0x4
|
NET_RT_STAT = 0x4
|
||||||
NET_RT_TRASH = 0x5
|
NET_RT_TRASH = 0x5
|
||||||
|
NL0 = 0x0
|
||||||
|
NL1 = 0x100
|
||||||
|
NL2 = 0x200
|
||||||
|
NL3 = 0x300
|
||||||
|
NLDLY = 0x300
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
|
NOKERNINFO = 0x2000000
|
||||||
NOTE_ABSOLUTE = 0x8
|
NOTE_ABSOLUTE = 0x8
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
NOTE_BACKGROUND = 0x40
|
NOTE_BACKGROUND = 0x40
|
||||||
|
@ -843,11 +914,14 @@ const (
|
||||||
NOTE_FFNOP = 0x0
|
NOTE_FFNOP = 0x0
|
||||||
NOTE_FFOR = 0x80000000
|
NOTE_FFOR = 0x80000000
|
||||||
NOTE_FORK = 0x40000000
|
NOTE_FORK = 0x40000000
|
||||||
|
NOTE_FUNLOCK = 0x100
|
||||||
NOTE_LEEWAY = 0x10
|
NOTE_LEEWAY = 0x10
|
||||||
NOTE_LINK = 0x10
|
NOTE_LINK = 0x10
|
||||||
NOTE_LOWAT = 0x1
|
NOTE_LOWAT = 0x1
|
||||||
|
NOTE_MACH_CONTINUOUS_TIME = 0x80
|
||||||
NOTE_NONE = 0x80
|
NOTE_NONE = 0x80
|
||||||
NOTE_NSECONDS = 0x4
|
NOTE_NSECONDS = 0x4
|
||||||
|
NOTE_OOB = 0x2
|
||||||
NOTE_PCTRLMASK = -0x100000
|
NOTE_PCTRLMASK = -0x100000
|
||||||
NOTE_PDATAMASK = 0xfffff
|
NOTE_PDATAMASK = 0xfffff
|
||||||
NOTE_REAP = 0x10000000
|
NOTE_REAP = 0x10000000
|
||||||
|
@ -872,6 +946,7 @@ const (
|
||||||
ONOCR = 0x20
|
ONOCR = 0x20
|
||||||
ONOEOT = 0x8
|
ONOEOT = 0x8
|
||||||
OPOST = 0x1
|
OPOST = 0x1
|
||||||
|
OXTABS = 0x4
|
||||||
O_ACCMODE = 0x3
|
O_ACCMODE = 0x3
|
||||||
O_ALERT = 0x20000000
|
O_ALERT = 0x20000000
|
||||||
O_APPEND = 0x8
|
O_APPEND = 0x8
|
||||||
|
@ -880,6 +955,7 @@ const (
|
||||||
O_CREAT = 0x200
|
O_CREAT = 0x200
|
||||||
O_DIRECTORY = 0x100000
|
O_DIRECTORY = 0x100000
|
||||||
O_DP_GETRAWENCRYPTED = 0x1
|
O_DP_GETRAWENCRYPTED = 0x1
|
||||||
|
O_DP_GETRAWUNENCRYPTED = 0x2
|
||||||
O_DSYNC = 0x400000
|
O_DSYNC = 0x400000
|
||||||
O_EVTONLY = 0x8000
|
O_EVTONLY = 0x8000
|
||||||
O_EXCL = 0x800
|
O_EXCL = 0x800
|
||||||
|
@ -932,7 +1008,10 @@ const (
|
||||||
RLIMIT_CPU_USAGE_MONITOR = 0x2
|
RLIMIT_CPU_USAGE_MONITOR = 0x2
|
||||||
RLIMIT_DATA = 0x2
|
RLIMIT_DATA = 0x2
|
||||||
RLIMIT_FSIZE = 0x1
|
RLIMIT_FSIZE = 0x1
|
||||||
|
RLIMIT_MEMLOCK = 0x6
|
||||||
RLIMIT_NOFILE = 0x8
|
RLIMIT_NOFILE = 0x8
|
||||||
|
RLIMIT_NPROC = 0x7
|
||||||
|
RLIMIT_RSS = 0x5
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0x7fffffffffffffff
|
RLIM_INFINITY = 0x7fffffffffffffff
|
||||||
RTAX_AUTHOR = 0x6
|
RTAX_AUTHOR = 0x6
|
||||||
|
@ -1102,6 +1181,8 @@ const (
|
||||||
SO_LABEL = 0x1010
|
SO_LABEL = 0x1010
|
||||||
SO_LINGER = 0x80
|
SO_LINGER = 0x80
|
||||||
SO_LINGER_SEC = 0x1080
|
SO_LINGER_SEC = 0x1080
|
||||||
|
SO_NETSVC_MARKING_LEVEL = 0x1119
|
||||||
|
SO_NET_SERVICE_TYPE = 0x1116
|
||||||
SO_NKE = 0x1021
|
SO_NKE = 0x1021
|
||||||
SO_NOADDRERR = 0x1023
|
SO_NOADDRERR = 0x1023
|
||||||
SO_NOSIGPIPE = 0x1022
|
SO_NOSIGPIPE = 0x1022
|
||||||
|
@ -1157,11 +1238,22 @@ const (
|
||||||
S_IXGRP = 0x8
|
S_IXGRP = 0x8
|
||||||
S_IXOTH = 0x1
|
S_IXOTH = 0x1
|
||||||
S_IXUSR = 0x40
|
S_IXUSR = 0x40
|
||||||
|
TAB0 = 0x0
|
||||||
|
TAB1 = 0x400
|
||||||
|
TAB2 = 0x800
|
||||||
|
TAB3 = 0x4
|
||||||
|
TABDLY = 0xc04
|
||||||
TCIFLUSH = 0x1
|
TCIFLUSH = 0x1
|
||||||
|
TCIOFF = 0x3
|
||||||
TCIOFLUSH = 0x3
|
TCIOFLUSH = 0x3
|
||||||
|
TCION = 0x4
|
||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
|
TCOOFF = 0x1
|
||||||
|
TCOON = 0x2
|
||||||
TCP_CONNECTIONTIMEOUT = 0x20
|
TCP_CONNECTIONTIMEOUT = 0x20
|
||||||
|
TCP_CONNECTION_INFO = 0x106
|
||||||
TCP_ENABLE_ECN = 0x104
|
TCP_ENABLE_ECN = 0x104
|
||||||
|
TCP_FASTOPEN = 0x105
|
||||||
TCP_KEEPALIVE = 0x10
|
TCP_KEEPALIVE = 0x10
|
||||||
TCP_KEEPCNT = 0x102
|
TCP_KEEPCNT = 0x102
|
||||||
TCP_KEEPINTVL = 0x101
|
TCP_KEEPINTVL = 0x101
|
||||||
|
@ -1261,6 +1353,11 @@ const (
|
||||||
VKILL = 0x5
|
VKILL = 0x5
|
||||||
VLNEXT = 0xe
|
VLNEXT = 0xe
|
||||||
VMIN = 0x10
|
VMIN = 0x10
|
||||||
|
VM_LOADAVG = 0x2
|
||||||
|
VM_MACHFACTOR = 0x4
|
||||||
|
VM_MAXID = 0x6
|
||||||
|
VM_METER = 0x1
|
||||||
|
VM_SWAPUSAGE = 0x5
|
||||||
VQUIT = 0x9
|
VQUIT = 0x9
|
||||||
VREPRINT = 0x6
|
VREPRINT = 0x6
|
||||||
VSTART = 0xc
|
VSTART = 0xc
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
// mkerrors.sh
|
// mkerrors.sh
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
|
// +build arm,darwin
|
||||||
|
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// Created by cgo -godefs - DO NOT EDIT
|
||||||
// cgo -godefs -- _const.go
|
// cgo -godefs -- _const.go
|
||||||
|
|
||||||
// +build arm,darwin
|
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
import "syscall"
|
import "syscall"
|
||||||
|
@ -48,6 +48,7 @@ const (
|
||||||
AF_UNIX = 0x1
|
AF_UNIX = 0x1
|
||||||
AF_UNSPEC = 0x0
|
AF_UNSPEC = 0x0
|
||||||
AF_UTUN = 0x26
|
AF_UTUN = 0x26
|
||||||
|
ALTWERASE = 0x200
|
||||||
B0 = 0x0
|
B0 = 0x0
|
||||||
B110 = 0x6e
|
B110 = 0x6e
|
||||||
B115200 = 0x1c200
|
B115200 = 0x1c200
|
||||||
|
@ -86,6 +87,7 @@ const (
|
||||||
BIOCSBLEN = 0xc0044266
|
BIOCSBLEN = 0xc0044266
|
||||||
BIOCSDLT = 0x80044278
|
BIOCSDLT = 0x80044278
|
||||||
BIOCSETF = 0x80104267
|
BIOCSETF = 0x80104267
|
||||||
|
BIOCSETFNR = 0x8010427e
|
||||||
BIOCSETIF = 0x8020426c
|
BIOCSETIF = 0x8020426c
|
||||||
BIOCSHDRCMPLT = 0x80044275
|
BIOCSHDRCMPLT = 0x80044275
|
||||||
BIOCSRSIG = 0x80044273
|
BIOCSRSIG = 0x80044273
|
||||||
|
@ -137,9 +139,26 @@ const (
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
|
BS0 = 0x0
|
||||||
|
BS1 = 0x8000
|
||||||
|
BSDLY = 0x8000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
CLOCAL = 0x8000
|
CLOCAL = 0x8000
|
||||||
|
CLOCK_MONOTONIC = 0x6
|
||||||
|
CLOCK_MONOTONIC_RAW = 0x4
|
||||||
|
CLOCK_MONOTONIC_RAW_APPROX = 0x5
|
||||||
|
CLOCK_PROCESS_CPUTIME_ID = 0xc
|
||||||
|
CLOCK_REALTIME = 0x0
|
||||||
|
CLOCK_THREAD_CPUTIME_ID = 0x10
|
||||||
|
CLOCK_UPTIME_RAW = 0x8
|
||||||
|
CLOCK_UPTIME_RAW_APPROX = 0x9
|
||||||
|
CR0 = 0x0
|
||||||
|
CR1 = 0x1000
|
||||||
|
CR2 = 0x2000
|
||||||
|
CR3 = 0x3000
|
||||||
|
CRDLY = 0x3000
|
||||||
CREAD = 0x800
|
CREAD = 0x800
|
||||||
|
CRTSCTS = 0x30000
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x100
|
CS6 = 0x100
|
||||||
CS7 = 0x200
|
CS7 = 0x200
|
||||||
|
@ -152,33 +171,168 @@ const (
|
||||||
CSUSP = 0x1a
|
CSUSP = 0x1a
|
||||||
CTL_MAXNAME = 0xc
|
CTL_MAXNAME = 0xc
|
||||||
CTL_NET = 0x4
|
CTL_NET = 0x4
|
||||||
|
DLT_A429 = 0xb8
|
||||||
|
DLT_A653_ICM = 0xb9
|
||||||
|
DLT_AIRONET_HEADER = 0x78
|
||||||
|
DLT_AOS = 0xde
|
||||||
DLT_APPLE_IP_OVER_IEEE1394 = 0x8a
|
DLT_APPLE_IP_OVER_IEEE1394 = 0x8a
|
||||||
DLT_ARCNET = 0x7
|
DLT_ARCNET = 0x7
|
||||||
|
DLT_ARCNET_LINUX = 0x81
|
||||||
DLT_ATM_CLIP = 0x13
|
DLT_ATM_CLIP = 0x13
|
||||||
DLT_ATM_RFC1483 = 0xb
|
DLT_ATM_RFC1483 = 0xb
|
||||||
|
DLT_AURORA = 0x7e
|
||||||
DLT_AX25 = 0x3
|
DLT_AX25 = 0x3
|
||||||
|
DLT_AX25_KISS = 0xca
|
||||||
|
DLT_BACNET_MS_TP = 0xa5
|
||||||
|
DLT_BLUETOOTH_HCI_H4 = 0xbb
|
||||||
|
DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
|
||||||
|
DLT_CAN20B = 0xbe
|
||||||
|
DLT_CAN_SOCKETCAN = 0xe3
|
||||||
DLT_CHAOS = 0x5
|
DLT_CHAOS = 0x5
|
||||||
DLT_CHDLC = 0x68
|
DLT_CHDLC = 0x68
|
||||||
|
DLT_CISCO_IOS = 0x76
|
||||||
DLT_C_HDLC = 0x68
|
DLT_C_HDLC = 0x68
|
||||||
|
DLT_C_HDLC_WITH_DIR = 0xcd
|
||||||
|
DLT_DBUS = 0xe7
|
||||||
|
DLT_DECT = 0xdd
|
||||||
|
DLT_DOCSIS = 0x8f
|
||||||
|
DLT_DVB_CI = 0xeb
|
||||||
|
DLT_ECONET = 0x73
|
||||||
DLT_EN10MB = 0x1
|
DLT_EN10MB = 0x1
|
||||||
DLT_EN3MB = 0x2
|
DLT_EN3MB = 0x2
|
||||||
|
DLT_ENC = 0x6d
|
||||||
|
DLT_ERF = 0xc5
|
||||||
|
DLT_ERF_ETH = 0xaf
|
||||||
|
DLT_ERF_POS = 0xb0
|
||||||
|
DLT_FC_2 = 0xe0
|
||||||
|
DLT_FC_2_WITH_FRAME_DELIMS = 0xe1
|
||||||
DLT_FDDI = 0xa
|
DLT_FDDI = 0xa
|
||||||
|
DLT_FLEXRAY = 0xd2
|
||||||
|
DLT_FRELAY = 0x6b
|
||||||
|
DLT_FRELAY_WITH_DIR = 0xce
|
||||||
|
DLT_GCOM_SERIAL = 0xad
|
||||||
|
DLT_GCOM_T1E1 = 0xac
|
||||||
|
DLT_GPF_F = 0xab
|
||||||
|
DLT_GPF_T = 0xaa
|
||||||
|
DLT_GPRS_LLC = 0xa9
|
||||||
|
DLT_GSMTAP_ABIS = 0xda
|
||||||
|
DLT_GSMTAP_UM = 0xd9
|
||||||
|
DLT_HHDLC = 0x79
|
||||||
|
DLT_IBM_SN = 0x92
|
||||||
|
DLT_IBM_SP = 0x91
|
||||||
DLT_IEEE802 = 0x6
|
DLT_IEEE802 = 0x6
|
||||||
DLT_IEEE802_11 = 0x69
|
DLT_IEEE802_11 = 0x69
|
||||||
DLT_IEEE802_11_RADIO = 0x7f
|
DLT_IEEE802_11_RADIO = 0x7f
|
||||||
DLT_IEEE802_11_RADIO_AVS = 0xa3
|
DLT_IEEE802_11_RADIO_AVS = 0xa3
|
||||||
|
DLT_IEEE802_15_4 = 0xc3
|
||||||
|
DLT_IEEE802_15_4_LINUX = 0xbf
|
||||||
|
DLT_IEEE802_15_4_NOFCS = 0xe6
|
||||||
|
DLT_IEEE802_15_4_NONASK_PHY = 0xd7
|
||||||
|
DLT_IEEE802_16_MAC_CPS = 0xbc
|
||||||
|
DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
|
||||||
|
DLT_IPFILTER = 0x74
|
||||||
|
DLT_IPMB = 0xc7
|
||||||
|
DLT_IPMB_LINUX = 0xd1
|
||||||
|
DLT_IPNET = 0xe2
|
||||||
|
DLT_IPOIB = 0xf2
|
||||||
|
DLT_IPV4 = 0xe4
|
||||||
|
DLT_IPV6 = 0xe5
|
||||||
|
DLT_IP_OVER_FC = 0x7a
|
||||||
|
DLT_JUNIPER_ATM1 = 0x89
|
||||||
|
DLT_JUNIPER_ATM2 = 0x87
|
||||||
|
DLT_JUNIPER_ATM_CEMIC = 0xee
|
||||||
|
DLT_JUNIPER_CHDLC = 0xb5
|
||||||
|
DLT_JUNIPER_ES = 0x84
|
||||||
|
DLT_JUNIPER_ETHER = 0xb2
|
||||||
|
DLT_JUNIPER_FIBRECHANNEL = 0xea
|
||||||
|
DLT_JUNIPER_FRELAY = 0xb4
|
||||||
|
DLT_JUNIPER_GGSN = 0x85
|
||||||
|
DLT_JUNIPER_ISM = 0xc2
|
||||||
|
DLT_JUNIPER_MFR = 0x86
|
||||||
|
DLT_JUNIPER_MLFR = 0x83
|
||||||
|
DLT_JUNIPER_MLPPP = 0x82
|
||||||
|
DLT_JUNIPER_MONITOR = 0xa4
|
||||||
|
DLT_JUNIPER_PIC_PEER = 0xae
|
||||||
|
DLT_JUNIPER_PPP = 0xb3
|
||||||
|
DLT_JUNIPER_PPPOE = 0xa7
|
||||||
|
DLT_JUNIPER_PPPOE_ATM = 0xa8
|
||||||
|
DLT_JUNIPER_SERVICES = 0x88
|
||||||
|
DLT_JUNIPER_SRX_E2E = 0xe9
|
||||||
|
DLT_JUNIPER_ST = 0xc8
|
||||||
|
DLT_JUNIPER_VP = 0xb7
|
||||||
|
DLT_JUNIPER_VS = 0xe8
|
||||||
|
DLT_LAPB_WITH_DIR = 0xcf
|
||||||
|
DLT_LAPD = 0xcb
|
||||||
|
DLT_LIN = 0xd4
|
||||||
|
DLT_LINUX_EVDEV = 0xd8
|
||||||
|
DLT_LINUX_IRDA = 0x90
|
||||||
|
DLT_LINUX_LAPD = 0xb1
|
||||||
|
DLT_LINUX_PPP_WITHDIRECTION = 0xa6
|
||||||
DLT_LINUX_SLL = 0x71
|
DLT_LINUX_SLL = 0x71
|
||||||
DLT_LOOP = 0x6c
|
DLT_LOOP = 0x6c
|
||||||
|
DLT_LTALK = 0x72
|
||||||
|
DLT_MATCHING_MAX = 0xf5
|
||||||
|
DLT_MATCHING_MIN = 0x68
|
||||||
|
DLT_MFR = 0xb6
|
||||||
|
DLT_MOST = 0xd3
|
||||||
|
DLT_MPEG_2_TS = 0xf3
|
||||||
|
DLT_MPLS = 0xdb
|
||||||
|
DLT_MTP2 = 0x8c
|
||||||
|
DLT_MTP2_WITH_PHDR = 0x8b
|
||||||
|
DLT_MTP3 = 0x8d
|
||||||
|
DLT_MUX27010 = 0xec
|
||||||
|
DLT_NETANALYZER = 0xf0
|
||||||
|
DLT_NETANALYZER_TRANSPARENT = 0xf1
|
||||||
|
DLT_NFC_LLCP = 0xf5
|
||||||
|
DLT_NFLOG = 0xef
|
||||||
|
DLT_NG40 = 0xf4
|
||||||
DLT_NULL = 0x0
|
DLT_NULL = 0x0
|
||||||
|
DLT_PCI_EXP = 0x7d
|
||||||
DLT_PFLOG = 0x75
|
DLT_PFLOG = 0x75
|
||||||
DLT_PFSYNC = 0x12
|
DLT_PFSYNC = 0x12
|
||||||
|
DLT_PPI = 0xc0
|
||||||
DLT_PPP = 0x9
|
DLT_PPP = 0x9
|
||||||
DLT_PPP_BSDOS = 0x10
|
DLT_PPP_BSDOS = 0x10
|
||||||
|
DLT_PPP_ETHER = 0x33
|
||||||
|
DLT_PPP_PPPD = 0xa6
|
||||||
DLT_PPP_SERIAL = 0x32
|
DLT_PPP_SERIAL = 0x32
|
||||||
|
DLT_PPP_WITH_DIR = 0xcc
|
||||||
|
DLT_PPP_WITH_DIRECTION = 0xa6
|
||||||
|
DLT_PRISM_HEADER = 0x77
|
||||||
DLT_PRONET = 0x4
|
DLT_PRONET = 0x4
|
||||||
|
DLT_RAIF1 = 0xc6
|
||||||
DLT_RAW = 0xc
|
DLT_RAW = 0xc
|
||||||
|
DLT_RIO = 0x7c
|
||||||
|
DLT_SCCP = 0x8e
|
||||||
|
DLT_SITA = 0xc4
|
||||||
DLT_SLIP = 0x8
|
DLT_SLIP = 0x8
|
||||||
DLT_SLIP_BSDOS = 0xf
|
DLT_SLIP_BSDOS = 0xf
|
||||||
|
DLT_STANAG_5066_D_PDU = 0xed
|
||||||
|
DLT_SUNATM = 0x7b
|
||||||
|
DLT_SYMANTEC_FIREWALL = 0x63
|
||||||
|
DLT_TZSP = 0x80
|
||||||
|
DLT_USB = 0xba
|
||||||
|
DLT_USB_LINUX = 0xbd
|
||||||
|
DLT_USB_LINUX_MMAPPED = 0xdc
|
||||||
|
DLT_USER0 = 0x93
|
||||||
|
DLT_USER1 = 0x94
|
||||||
|
DLT_USER10 = 0x9d
|
||||||
|
DLT_USER11 = 0x9e
|
||||||
|
DLT_USER12 = 0x9f
|
||||||
|
DLT_USER13 = 0xa0
|
||||||
|
DLT_USER14 = 0xa1
|
||||||
|
DLT_USER15 = 0xa2
|
||||||
|
DLT_USER2 = 0x95
|
||||||
|
DLT_USER3 = 0x96
|
||||||
|
DLT_USER4 = 0x97
|
||||||
|
DLT_USER5 = 0x98
|
||||||
|
DLT_USER6 = 0x99
|
||||||
|
DLT_USER7 = 0x9a
|
||||||
|
DLT_USER8 = 0x9b
|
||||||
|
DLT_USER9 = 0x9c
|
||||||
|
DLT_WIHART = 0xdf
|
||||||
|
DLT_X2E_SERIAL = 0xd5
|
||||||
|
DLT_X2E_XORAYA = 0xd6
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -196,13 +350,14 @@ const (
|
||||||
ECHONL = 0x10
|
ECHONL = 0x10
|
||||||
ECHOPRT = 0x20
|
ECHOPRT = 0x20
|
||||||
EVFILT_AIO = -0x3
|
EVFILT_AIO = -0x3
|
||||||
|
EVFILT_EXCEPT = -0xf
|
||||||
EVFILT_FS = -0x9
|
EVFILT_FS = -0x9
|
||||||
EVFILT_MACHPORT = -0x8
|
EVFILT_MACHPORT = -0x8
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0xe
|
EVFILT_SYSCOUNT = 0xf
|
||||||
EVFILT_THREADMARKER = 0xe
|
EVFILT_THREADMARKER = 0xf
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
EVFILT_USER = -0xa
|
EVFILT_USER = -0xa
|
||||||
EVFILT_VM = -0xc
|
EVFILT_VM = -0xc
|
||||||
|
@ -213,6 +368,7 @@ const (
|
||||||
EV_DELETE = 0x2
|
EV_DELETE = 0x2
|
||||||
EV_DISABLE = 0x8
|
EV_DISABLE = 0x8
|
||||||
EV_DISPATCH = 0x80
|
EV_DISPATCH = 0x80
|
||||||
|
EV_DISPATCH2 = 0x180
|
||||||
EV_ENABLE = 0x4
|
EV_ENABLE = 0x4
|
||||||
EV_EOF = 0x8000
|
EV_EOF = 0x8000
|
||||||
EV_ERROR = 0x4000
|
EV_ERROR = 0x4000
|
||||||
|
@ -223,16 +379,25 @@ const (
|
||||||
EV_POLL = 0x1000
|
EV_POLL = 0x1000
|
||||||
EV_RECEIPT = 0x40
|
EV_RECEIPT = 0x40
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_SYSFLAGS = 0xf000
|
||||||
|
EV_UDATA_SPECIFIC = 0x100
|
||||||
|
EV_VANISHED = 0x200
|
||||||
EXTA = 0x4b00
|
EXTA = 0x4b00
|
||||||
EXTB = 0x9600
|
EXTB = 0x9600
|
||||||
EXTPROC = 0x800
|
EXTPROC = 0x800
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
|
FF0 = 0x0
|
||||||
|
FF1 = 0x4000
|
||||||
|
FFDLY = 0x4000
|
||||||
FLUSHO = 0x800000
|
FLUSHO = 0x800000
|
||||||
F_ADDFILESIGS = 0x3d
|
F_ADDFILESIGS = 0x3d
|
||||||
|
F_ADDFILESIGS_FOR_DYLD_SIM = 0x53
|
||||||
|
F_ADDFILESIGS_RETURN = 0x61
|
||||||
F_ADDSIGS = 0x3b
|
F_ADDSIGS = 0x3b
|
||||||
F_ALLOCATEALL = 0x4
|
F_ALLOCATEALL = 0x4
|
||||||
F_ALLOCATECONTIG = 0x2
|
F_ALLOCATECONTIG = 0x2
|
||||||
|
F_BARRIERFSYNC = 0x55
|
||||||
|
F_CHECK_LV = 0x62
|
||||||
F_CHKCLEAN = 0x29
|
F_CHKCLEAN = 0x29
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
F_DUPFD_CLOEXEC = 0x43
|
F_DUPFD_CLOEXEC = 0x43
|
||||||
|
@ -347,6 +512,7 @@ const (
|
||||||
IFT_PDP = 0xff
|
IFT_PDP = 0xff
|
||||||
IFT_PFLOG = 0xf5
|
IFT_PFLOG = 0xf5
|
||||||
IFT_PFSYNC = 0xf6
|
IFT_PFSYNC = 0xf6
|
||||||
|
IFT_PKTAP = 0xfe
|
||||||
IFT_PPP = 0x17
|
IFT_PPP = 0x17
|
||||||
IFT_PROPMUX = 0x36
|
IFT_PROPMUX = 0x36
|
||||||
IFT_PROPVIRTUAL = 0x35
|
IFT_PROPVIRTUAL = 0x35
|
||||||
|
@ -515,7 +681,7 @@ const (
|
||||||
IPV6_FAITH = 0x1d
|
IPV6_FAITH = 0x1d
|
||||||
IPV6_FLOWINFO_MASK = 0xffffff0f
|
IPV6_FLOWINFO_MASK = 0xffffff0f
|
||||||
IPV6_FLOWLABEL_MASK = 0xffff0f00
|
IPV6_FLOWLABEL_MASK = 0xffff0f00
|
||||||
IPV6_FRAGTTL = 0x78
|
IPV6_FRAGTTL = 0x3c
|
||||||
IPV6_FW_ADD = 0x1e
|
IPV6_FW_ADD = 0x1e
|
||||||
IPV6_FW_DEL = 0x1f
|
IPV6_FW_DEL = 0x1f
|
||||||
IPV6_FW_FLUSH = 0x20
|
IPV6_FW_FLUSH = 0x20
|
||||||
|
@ -633,11 +799,13 @@ const (
|
||||||
MADV_FREE_REUSABLE = 0x7
|
MADV_FREE_REUSABLE = 0x7
|
||||||
MADV_FREE_REUSE = 0x8
|
MADV_FREE_REUSE = 0x8
|
||||||
MADV_NORMAL = 0x0
|
MADV_NORMAL = 0x0
|
||||||
|
MADV_PAGEOUT = 0xa
|
||||||
MADV_RANDOM = 0x1
|
MADV_RANDOM = 0x1
|
||||||
MADV_SEQUENTIAL = 0x2
|
MADV_SEQUENTIAL = 0x2
|
||||||
MADV_WILLNEED = 0x3
|
MADV_WILLNEED = 0x3
|
||||||
MADV_ZERO_WIRED_PAGES = 0x6
|
MADV_ZERO_WIRED_PAGES = 0x6
|
||||||
MAP_ANON = 0x1000
|
MAP_ANON = 0x1000
|
||||||
|
MAP_ANONYMOUS = 0x1000
|
||||||
MAP_COPY = 0x2
|
MAP_COPY = 0x2
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
@ -649,9 +817,43 @@ const (
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_RENAME = 0x20
|
MAP_RENAME = 0x20
|
||||||
MAP_RESERVED0080 = 0x80
|
MAP_RESERVED0080 = 0x80
|
||||||
|
MAP_RESILIENT_CODESIGN = 0x2000
|
||||||
|
MAP_RESILIENT_MEDIA = 0x4000
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
|
MNT_ASYNC = 0x40
|
||||||
|
MNT_AUTOMOUNTED = 0x400000
|
||||||
|
MNT_CMDFLAGS = 0xf0000
|
||||||
|
MNT_CPROTECT = 0x80
|
||||||
|
MNT_DEFWRITE = 0x2000000
|
||||||
|
MNT_DONTBROWSE = 0x100000
|
||||||
|
MNT_DOVOLFS = 0x8000
|
||||||
|
MNT_DWAIT = 0x4
|
||||||
|
MNT_EXPORTED = 0x100
|
||||||
|
MNT_FORCE = 0x80000
|
||||||
|
MNT_IGNORE_OWNERSHIP = 0x200000
|
||||||
|
MNT_JOURNALED = 0x800000
|
||||||
|
MNT_LOCAL = 0x1000
|
||||||
|
MNT_MULTILABEL = 0x4000000
|
||||||
|
MNT_NOATIME = 0x10000000
|
||||||
|
MNT_NOBLOCK = 0x20000
|
||||||
|
MNT_NODEV = 0x10
|
||||||
|
MNT_NOEXEC = 0x4
|
||||||
|
MNT_NOSUID = 0x8
|
||||||
|
MNT_NOUSERXATTR = 0x1000000
|
||||||
|
MNT_NOWAIT = 0x2
|
||||||
|
MNT_QUARANTINE = 0x400
|
||||||
|
MNT_QUOTA = 0x2000
|
||||||
|
MNT_RDONLY = 0x1
|
||||||
|
MNT_RELOAD = 0x40000
|
||||||
|
MNT_ROOTFS = 0x4000
|
||||||
|
MNT_SYNCHRONOUS = 0x2
|
||||||
|
MNT_UNION = 0x20
|
||||||
|
MNT_UNKNOWNPERMISSIONS = 0x200000
|
||||||
|
MNT_UPDATE = 0x10000
|
||||||
|
MNT_VISFLAGMASK = 0x17f0f5ff
|
||||||
|
MNT_WAIT = 0x1
|
||||||
MSG_CTRUNC = 0x20
|
MSG_CTRUNC = 0x20
|
||||||
MSG_DONTROUTE = 0x4
|
MSG_DONTROUTE = 0x4
|
||||||
MSG_DONTWAIT = 0x80
|
MSG_DONTWAIT = 0x80
|
||||||
|
@ -682,7 +884,13 @@ const (
|
||||||
NET_RT_MAXID = 0xa
|
NET_RT_MAXID = 0xa
|
||||||
NET_RT_STAT = 0x4
|
NET_RT_STAT = 0x4
|
||||||
NET_RT_TRASH = 0x5
|
NET_RT_TRASH = 0x5
|
||||||
|
NL0 = 0x0
|
||||||
|
NL1 = 0x100
|
||||||
|
NL2 = 0x200
|
||||||
|
NL3 = 0x300
|
||||||
|
NLDLY = 0x300
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
|
NOKERNINFO = 0x2000000
|
||||||
NOTE_ABSOLUTE = 0x8
|
NOTE_ABSOLUTE = 0x8
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
NOTE_BACKGROUND = 0x40
|
NOTE_BACKGROUND = 0x40
|
||||||
|
@ -706,11 +914,14 @@ const (
|
||||||
NOTE_FFNOP = 0x0
|
NOTE_FFNOP = 0x0
|
||||||
NOTE_FFOR = 0x80000000
|
NOTE_FFOR = 0x80000000
|
||||||
NOTE_FORK = 0x40000000
|
NOTE_FORK = 0x40000000
|
||||||
|
NOTE_FUNLOCK = 0x100
|
||||||
NOTE_LEEWAY = 0x10
|
NOTE_LEEWAY = 0x10
|
||||||
NOTE_LINK = 0x10
|
NOTE_LINK = 0x10
|
||||||
NOTE_LOWAT = 0x1
|
NOTE_LOWAT = 0x1
|
||||||
|
NOTE_MACH_CONTINUOUS_TIME = 0x80
|
||||||
NOTE_NONE = 0x80
|
NOTE_NONE = 0x80
|
||||||
NOTE_NSECONDS = 0x4
|
NOTE_NSECONDS = 0x4
|
||||||
|
NOTE_OOB = 0x2
|
||||||
NOTE_PCTRLMASK = -0x100000
|
NOTE_PCTRLMASK = -0x100000
|
||||||
NOTE_PDATAMASK = 0xfffff
|
NOTE_PDATAMASK = 0xfffff
|
||||||
NOTE_REAP = 0x10000000
|
NOTE_REAP = 0x10000000
|
||||||
|
@ -735,6 +946,7 @@ const (
|
||||||
ONOCR = 0x20
|
ONOCR = 0x20
|
||||||
ONOEOT = 0x8
|
ONOEOT = 0x8
|
||||||
OPOST = 0x1
|
OPOST = 0x1
|
||||||
|
OXTABS = 0x4
|
||||||
O_ACCMODE = 0x3
|
O_ACCMODE = 0x3
|
||||||
O_ALERT = 0x20000000
|
O_ALERT = 0x20000000
|
||||||
O_APPEND = 0x8
|
O_APPEND = 0x8
|
||||||
|
@ -743,6 +955,7 @@ const (
|
||||||
O_CREAT = 0x200
|
O_CREAT = 0x200
|
||||||
O_DIRECTORY = 0x100000
|
O_DIRECTORY = 0x100000
|
||||||
O_DP_GETRAWENCRYPTED = 0x1
|
O_DP_GETRAWENCRYPTED = 0x1
|
||||||
|
O_DP_GETRAWUNENCRYPTED = 0x2
|
||||||
O_DSYNC = 0x400000
|
O_DSYNC = 0x400000
|
||||||
O_EVTONLY = 0x8000
|
O_EVTONLY = 0x8000
|
||||||
O_EXCL = 0x800
|
O_EXCL = 0x800
|
||||||
|
@ -795,7 +1008,10 @@ const (
|
||||||
RLIMIT_CPU_USAGE_MONITOR = 0x2
|
RLIMIT_CPU_USAGE_MONITOR = 0x2
|
||||||
RLIMIT_DATA = 0x2
|
RLIMIT_DATA = 0x2
|
||||||
RLIMIT_FSIZE = 0x1
|
RLIMIT_FSIZE = 0x1
|
||||||
|
RLIMIT_MEMLOCK = 0x6
|
||||||
RLIMIT_NOFILE = 0x8
|
RLIMIT_NOFILE = 0x8
|
||||||
|
RLIMIT_NPROC = 0x7
|
||||||
|
RLIMIT_RSS = 0x5
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0x7fffffffffffffff
|
RLIM_INFINITY = 0x7fffffffffffffff
|
||||||
RTAX_AUTHOR = 0x6
|
RTAX_AUTHOR = 0x6
|
||||||
|
@ -830,6 +1046,7 @@ const (
|
||||||
RTF_LOCAL = 0x200000
|
RTF_LOCAL = 0x200000
|
||||||
RTF_MODIFIED = 0x20
|
RTF_MODIFIED = 0x20
|
||||||
RTF_MULTICAST = 0x800000
|
RTF_MULTICAST = 0x800000
|
||||||
|
RTF_NOIFREF = 0x2000
|
||||||
RTF_PINNED = 0x100000
|
RTF_PINNED = 0x100000
|
||||||
RTF_PRCLONING = 0x10000
|
RTF_PRCLONING = 0x10000
|
||||||
RTF_PROTO1 = 0x8000
|
RTF_PROTO1 = 0x8000
|
||||||
|
@ -964,6 +1181,8 @@ const (
|
||||||
SO_LABEL = 0x1010
|
SO_LABEL = 0x1010
|
||||||
SO_LINGER = 0x80
|
SO_LINGER = 0x80
|
||||||
SO_LINGER_SEC = 0x1080
|
SO_LINGER_SEC = 0x1080
|
||||||
|
SO_NETSVC_MARKING_LEVEL = 0x1119
|
||||||
|
SO_NET_SERVICE_TYPE = 0x1116
|
||||||
SO_NKE = 0x1021
|
SO_NKE = 0x1021
|
||||||
SO_NOADDRERR = 0x1023
|
SO_NOADDRERR = 0x1023
|
||||||
SO_NOSIGPIPE = 0x1022
|
SO_NOSIGPIPE = 0x1022
|
||||||
|
@ -1019,11 +1238,22 @@ const (
|
||||||
S_IXGRP = 0x8
|
S_IXGRP = 0x8
|
||||||
S_IXOTH = 0x1
|
S_IXOTH = 0x1
|
||||||
S_IXUSR = 0x40
|
S_IXUSR = 0x40
|
||||||
|
TAB0 = 0x0
|
||||||
|
TAB1 = 0x400
|
||||||
|
TAB2 = 0x800
|
||||||
|
TAB3 = 0x4
|
||||||
|
TABDLY = 0xc04
|
||||||
TCIFLUSH = 0x1
|
TCIFLUSH = 0x1
|
||||||
|
TCIOFF = 0x3
|
||||||
TCIOFLUSH = 0x3
|
TCIOFLUSH = 0x3
|
||||||
|
TCION = 0x4
|
||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
|
TCOOFF = 0x1
|
||||||
|
TCOON = 0x2
|
||||||
TCP_CONNECTIONTIMEOUT = 0x20
|
TCP_CONNECTIONTIMEOUT = 0x20
|
||||||
|
TCP_CONNECTION_INFO = 0x106
|
||||||
TCP_ENABLE_ECN = 0x104
|
TCP_ENABLE_ECN = 0x104
|
||||||
|
TCP_FASTOPEN = 0x105
|
||||||
TCP_KEEPALIVE = 0x10
|
TCP_KEEPALIVE = 0x10
|
||||||
TCP_KEEPCNT = 0x102
|
TCP_KEEPCNT = 0x102
|
||||||
TCP_KEEPINTVL = 0x101
|
TCP_KEEPINTVL = 0x101
|
||||||
|
@ -1123,6 +1353,11 @@ const (
|
||||||
VKILL = 0x5
|
VKILL = 0x5
|
||||||
VLNEXT = 0xe
|
VLNEXT = 0xe
|
||||||
VMIN = 0x10
|
VMIN = 0x10
|
||||||
|
VM_LOADAVG = 0x2
|
||||||
|
VM_MACHFACTOR = 0x4
|
||||||
|
VM_MAXID = 0x6
|
||||||
|
VM_METER = 0x1
|
||||||
|
VM_SWAPUSAGE = 0x5
|
||||||
VQUIT = 0x9
|
VQUIT = 0x9
|
||||||
VREPRINT = 0x6
|
VREPRINT = 0x6
|
||||||
VSTART = 0xc
|
VSTART = 0xc
|
||||||
|
@ -1291,3 +1526,148 @@ const (
|
||||||
SIGXCPU = syscall.Signal(0x18)
|
SIGXCPU = syscall.Signal(0x18)
|
||||||
SIGXFSZ = syscall.Signal(0x19)
|
SIGXFSZ = syscall.Signal(0x19)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Error table
|
||||||
|
var errors = [...]string{
|
||||||
|
1: "operation not permitted",
|
||||||
|
2: "no such file or directory",
|
||||||
|
3: "no such process",
|
||||||
|
4: "interrupted system call",
|
||||||
|
5: "input/output error",
|
||||||
|
6: "device not configured",
|
||||||
|
7: "argument list too long",
|
||||||
|
8: "exec format error",
|
||||||
|
9: "bad file descriptor",
|
||||||
|
10: "no child processes",
|
||||||
|
11: "resource deadlock avoided",
|
||||||
|
12: "cannot allocate memory",
|
||||||
|
13: "permission denied",
|
||||||
|
14: "bad address",
|
||||||
|
15: "block device required",
|
||||||
|
16: "resource busy",
|
||||||
|
17: "file exists",
|
||||||
|
18: "cross-device link",
|
||||||
|
19: "operation not supported by device",
|
||||||
|
20: "not a directory",
|
||||||
|
21: "is a directory",
|
||||||
|
22: "invalid argument",
|
||||||
|
23: "too many open files in system",
|
||||||
|
24: "too many open files",
|
||||||
|
25: "inappropriate ioctl for device",
|
||||||
|
26: "text file busy",
|
||||||
|
27: "file too large",
|
||||||
|
28: "no space left on device",
|
||||||
|
29: "illegal seek",
|
||||||
|
30: "read-only file system",
|
||||||
|
31: "too many links",
|
||||||
|
32: "broken pipe",
|
||||||
|
33: "numerical argument out of domain",
|
||||||
|
34: "result too large",
|
||||||
|
35: "resource temporarily unavailable",
|
||||||
|
36: "operation now in progress",
|
||||||
|
37: "operation already in progress",
|
||||||
|
38: "socket operation on non-socket",
|
||||||
|
39: "destination address required",
|
||||||
|
40: "message too long",
|
||||||
|
41: "protocol wrong type for socket",
|
||||||
|
42: "protocol not available",
|
||||||
|
43: "protocol not supported",
|
||||||
|
44: "socket type not supported",
|
||||||
|
45: "operation not supported",
|
||||||
|
46: "protocol family not supported",
|
||||||
|
47: "address family not supported by protocol family",
|
||||||
|
48: "address already in use",
|
||||||
|
49: "can't assign requested address",
|
||||||
|
50: "network is down",
|
||||||
|
51: "network is unreachable",
|
||||||
|
52: "network dropped connection on reset",
|
||||||
|
53: "software caused connection abort",
|
||||||
|
54: "connection reset by peer",
|
||||||
|
55: "no buffer space available",
|
||||||
|
56: "socket is already connected",
|
||||||
|
57: "socket is not connected",
|
||||||
|
58: "can't send after socket shutdown",
|
||||||
|
59: "too many references: can't splice",
|
||||||
|
60: "operation timed out",
|
||||||
|
61: "connection refused",
|
||||||
|
62: "too many levels of symbolic links",
|
||||||
|
63: "file name too long",
|
||||||
|
64: "host is down",
|
||||||
|
65: "no route to host",
|
||||||
|
66: "directory not empty",
|
||||||
|
67: "too many processes",
|
||||||
|
68: "too many users",
|
||||||
|
69: "disc quota exceeded",
|
||||||
|
70: "stale NFS file handle",
|
||||||
|
71: "too many levels of remote in path",
|
||||||
|
72: "RPC struct is bad",
|
||||||
|
73: "RPC version wrong",
|
||||||
|
74: "RPC prog. not avail",
|
||||||
|
75: "program version wrong",
|
||||||
|
76: "bad procedure for program",
|
||||||
|
77: "no locks available",
|
||||||
|
78: "function not implemented",
|
||||||
|
79: "inappropriate file type or format",
|
||||||
|
80: "authentication error",
|
||||||
|
81: "need authenticator",
|
||||||
|
82: "device power is off",
|
||||||
|
83: "device error",
|
||||||
|
84: "value too large to be stored in data type",
|
||||||
|
85: "bad executable (or shared library)",
|
||||||
|
86: "bad CPU type in executable",
|
||||||
|
87: "shared library version mismatch",
|
||||||
|
88: "malformed Mach-o file",
|
||||||
|
89: "operation canceled",
|
||||||
|
90: "identifier removed",
|
||||||
|
91: "no message of desired type",
|
||||||
|
92: "illegal byte sequence",
|
||||||
|
93: "attribute not found",
|
||||||
|
94: "bad message",
|
||||||
|
95: "EMULTIHOP (Reserved)",
|
||||||
|
96: "no message available on STREAM",
|
||||||
|
97: "ENOLINK (Reserved)",
|
||||||
|
98: "no STREAM resources",
|
||||||
|
99: "not a STREAM",
|
||||||
|
100: "protocol error",
|
||||||
|
101: "STREAM ioctl timeout",
|
||||||
|
102: "operation not supported on socket",
|
||||||
|
103: "policy not found",
|
||||||
|
104: "state not recoverable",
|
||||||
|
105: "previous owner died",
|
||||||
|
106: "interface output queue is full",
|
||||||
|
}
|
||||||
|
|
||||||
|
// Signal table
|
||||||
|
var signals = [...]string{
|
||||||
|
1: "hangup",
|
||||||
|
2: "interrupt",
|
||||||
|
3: "quit",
|
||||||
|
4: "illegal instruction",
|
||||||
|
5: "trace/BPT trap",
|
||||||
|
6: "abort trap",
|
||||||
|
7: "EMT trap",
|
||||||
|
8: "floating point exception",
|
||||||
|
9: "killed",
|
||||||
|
10: "bus error",
|
||||||
|
11: "segmentation fault",
|
||||||
|
12: "bad system call",
|
||||||
|
13: "broken pipe",
|
||||||
|
14: "alarm clock",
|
||||||
|
15: "terminated",
|
||||||
|
16: "urgent I/O condition",
|
||||||
|
17: "suspended (signal)",
|
||||||
|
18: "suspended",
|
||||||
|
19: "continued",
|
||||||
|
20: "child exited",
|
||||||
|
21: "stopped (tty input)",
|
||||||
|
22: "stopped (tty output)",
|
||||||
|
23: "I/O possible",
|
||||||
|
24: "cputime limit exceeded",
|
||||||
|
25: "filesize limit exceeded",
|
||||||
|
26: "virtual timer expired",
|
||||||
|
27: "profiling timer expired",
|
||||||
|
28: "window size changes",
|
||||||
|
29: "information request",
|
||||||
|
30: "user defined signal 1",
|
||||||
|
31: "user defined signal 2",
|
||||||
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mkerrors.sh -m64
|
// mkerrors.sh -m64
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build arm64,darwin
|
// +build arm64,darwin
|
||||||
|
|
||||||
|
@ -48,6 +48,7 @@ const (
|
||||||
AF_UNIX = 0x1
|
AF_UNIX = 0x1
|
||||||
AF_UNSPEC = 0x0
|
AF_UNSPEC = 0x0
|
||||||
AF_UTUN = 0x26
|
AF_UTUN = 0x26
|
||||||
|
ALTWERASE = 0x200
|
||||||
B0 = 0x0
|
B0 = 0x0
|
||||||
B110 = 0x6e
|
B110 = 0x6e
|
||||||
B115200 = 0x1c200
|
B115200 = 0x1c200
|
||||||
|
@ -138,9 +139,26 @@ const (
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
|
BS0 = 0x0
|
||||||
|
BS1 = 0x8000
|
||||||
|
BSDLY = 0x8000
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
CLOCAL = 0x8000
|
CLOCAL = 0x8000
|
||||||
|
CLOCK_MONOTONIC = 0x6
|
||||||
|
CLOCK_MONOTONIC_RAW = 0x4
|
||||||
|
CLOCK_MONOTONIC_RAW_APPROX = 0x5
|
||||||
|
CLOCK_PROCESS_CPUTIME_ID = 0xc
|
||||||
|
CLOCK_REALTIME = 0x0
|
||||||
|
CLOCK_THREAD_CPUTIME_ID = 0x10
|
||||||
|
CLOCK_UPTIME_RAW = 0x8
|
||||||
|
CLOCK_UPTIME_RAW_APPROX = 0x9
|
||||||
|
CR0 = 0x0
|
||||||
|
CR1 = 0x1000
|
||||||
|
CR2 = 0x2000
|
||||||
|
CR3 = 0x3000
|
||||||
|
CRDLY = 0x3000
|
||||||
CREAD = 0x800
|
CREAD = 0x800
|
||||||
|
CRTSCTS = 0x30000
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x100
|
CS6 = 0x100
|
||||||
CS7 = 0x200
|
CS7 = 0x200
|
||||||
|
@ -332,13 +350,14 @@ const (
|
||||||
ECHONL = 0x10
|
ECHONL = 0x10
|
||||||
ECHOPRT = 0x20
|
ECHOPRT = 0x20
|
||||||
EVFILT_AIO = -0x3
|
EVFILT_AIO = -0x3
|
||||||
|
EVFILT_EXCEPT = -0xf
|
||||||
EVFILT_FS = -0x9
|
EVFILT_FS = -0x9
|
||||||
EVFILT_MACHPORT = -0x8
|
EVFILT_MACHPORT = -0x8
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0xe
|
EVFILT_SYSCOUNT = 0xf
|
||||||
EVFILT_THREADMARKER = 0xe
|
EVFILT_THREADMARKER = 0xf
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
EVFILT_USER = -0xa
|
EVFILT_USER = -0xa
|
||||||
EVFILT_VM = -0xc
|
EVFILT_VM = -0xc
|
||||||
|
@ -349,6 +368,7 @@ const (
|
||||||
EV_DELETE = 0x2
|
EV_DELETE = 0x2
|
||||||
EV_DISABLE = 0x8
|
EV_DISABLE = 0x8
|
||||||
EV_DISPATCH = 0x80
|
EV_DISPATCH = 0x80
|
||||||
|
EV_DISPATCH2 = 0x180
|
||||||
EV_ENABLE = 0x4
|
EV_ENABLE = 0x4
|
||||||
EV_EOF = 0x8000
|
EV_EOF = 0x8000
|
||||||
EV_ERROR = 0x4000
|
EV_ERROR = 0x4000
|
||||||
|
@ -359,16 +379,25 @@ const (
|
||||||
EV_POLL = 0x1000
|
EV_POLL = 0x1000
|
||||||
EV_RECEIPT = 0x40
|
EV_RECEIPT = 0x40
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_SYSFLAGS = 0xf000
|
||||||
|
EV_UDATA_SPECIFIC = 0x100
|
||||||
|
EV_VANISHED = 0x200
|
||||||
EXTA = 0x4b00
|
EXTA = 0x4b00
|
||||||
EXTB = 0x9600
|
EXTB = 0x9600
|
||||||
EXTPROC = 0x800
|
EXTPROC = 0x800
|
||||||
FD_CLOEXEC = 0x1
|
FD_CLOEXEC = 0x1
|
||||||
FD_SETSIZE = 0x400
|
FD_SETSIZE = 0x400
|
||||||
|
FF0 = 0x0
|
||||||
|
FF1 = 0x4000
|
||||||
|
FFDLY = 0x4000
|
||||||
FLUSHO = 0x800000
|
FLUSHO = 0x800000
|
||||||
F_ADDFILESIGS = 0x3d
|
F_ADDFILESIGS = 0x3d
|
||||||
|
F_ADDFILESIGS_FOR_DYLD_SIM = 0x53
|
||||||
|
F_ADDFILESIGS_RETURN = 0x61
|
||||||
F_ADDSIGS = 0x3b
|
F_ADDSIGS = 0x3b
|
||||||
F_ALLOCATEALL = 0x4
|
F_ALLOCATEALL = 0x4
|
||||||
F_ALLOCATECONTIG = 0x2
|
F_ALLOCATECONTIG = 0x2
|
||||||
|
F_BARRIERFSYNC = 0x55
|
||||||
|
F_CHECK_LV = 0x62
|
||||||
F_CHKCLEAN = 0x29
|
F_CHKCLEAN = 0x29
|
||||||
F_DUPFD = 0x0
|
F_DUPFD = 0x0
|
||||||
F_DUPFD_CLOEXEC = 0x43
|
F_DUPFD_CLOEXEC = 0x43
|
||||||
|
@ -770,11 +799,13 @@ const (
|
||||||
MADV_FREE_REUSABLE = 0x7
|
MADV_FREE_REUSABLE = 0x7
|
||||||
MADV_FREE_REUSE = 0x8
|
MADV_FREE_REUSE = 0x8
|
||||||
MADV_NORMAL = 0x0
|
MADV_NORMAL = 0x0
|
||||||
|
MADV_PAGEOUT = 0xa
|
||||||
MADV_RANDOM = 0x1
|
MADV_RANDOM = 0x1
|
||||||
MADV_SEQUENTIAL = 0x2
|
MADV_SEQUENTIAL = 0x2
|
||||||
MADV_WILLNEED = 0x3
|
MADV_WILLNEED = 0x3
|
||||||
MADV_ZERO_WIRED_PAGES = 0x6
|
MADV_ZERO_WIRED_PAGES = 0x6
|
||||||
MAP_ANON = 0x1000
|
MAP_ANON = 0x1000
|
||||||
|
MAP_ANONYMOUS = 0x1000
|
||||||
MAP_COPY = 0x2
|
MAP_COPY = 0x2
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
@ -786,9 +817,43 @@ const (
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_RENAME = 0x20
|
MAP_RENAME = 0x20
|
||||||
MAP_RESERVED0080 = 0x80
|
MAP_RESERVED0080 = 0x80
|
||||||
|
MAP_RESILIENT_CODESIGN = 0x2000
|
||||||
|
MAP_RESILIENT_MEDIA = 0x4000
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
MCL_CURRENT = 0x1
|
MCL_CURRENT = 0x1
|
||||||
MCL_FUTURE = 0x2
|
MCL_FUTURE = 0x2
|
||||||
|
MNT_ASYNC = 0x40
|
||||||
|
MNT_AUTOMOUNTED = 0x400000
|
||||||
|
MNT_CMDFLAGS = 0xf0000
|
||||||
|
MNT_CPROTECT = 0x80
|
||||||
|
MNT_DEFWRITE = 0x2000000
|
||||||
|
MNT_DONTBROWSE = 0x100000
|
||||||
|
MNT_DOVOLFS = 0x8000
|
||||||
|
MNT_DWAIT = 0x4
|
||||||
|
MNT_EXPORTED = 0x100
|
||||||
|
MNT_FORCE = 0x80000
|
||||||
|
MNT_IGNORE_OWNERSHIP = 0x200000
|
||||||
|
MNT_JOURNALED = 0x800000
|
||||||
|
MNT_LOCAL = 0x1000
|
||||||
|
MNT_MULTILABEL = 0x4000000
|
||||||
|
MNT_NOATIME = 0x10000000
|
||||||
|
MNT_NOBLOCK = 0x20000
|
||||||
|
MNT_NODEV = 0x10
|
||||||
|
MNT_NOEXEC = 0x4
|
||||||
|
MNT_NOSUID = 0x8
|
||||||
|
MNT_NOUSERXATTR = 0x1000000
|
||||||
|
MNT_NOWAIT = 0x2
|
||||||
|
MNT_QUARANTINE = 0x400
|
||||||
|
MNT_QUOTA = 0x2000
|
||||||
|
MNT_RDONLY = 0x1
|
||||||
|
MNT_RELOAD = 0x40000
|
||||||
|
MNT_ROOTFS = 0x4000
|
||||||
|
MNT_SYNCHRONOUS = 0x2
|
||||||
|
MNT_UNION = 0x20
|
||||||
|
MNT_UNKNOWNPERMISSIONS = 0x200000
|
||||||
|
MNT_UPDATE = 0x10000
|
||||||
|
MNT_VISFLAGMASK = 0x17f0f5ff
|
||||||
|
MNT_WAIT = 0x1
|
||||||
MSG_CTRUNC = 0x20
|
MSG_CTRUNC = 0x20
|
||||||
MSG_DONTROUTE = 0x4
|
MSG_DONTROUTE = 0x4
|
||||||
MSG_DONTWAIT = 0x80
|
MSG_DONTWAIT = 0x80
|
||||||
|
@ -819,7 +884,13 @@ const (
|
||||||
NET_RT_MAXID = 0xa
|
NET_RT_MAXID = 0xa
|
||||||
NET_RT_STAT = 0x4
|
NET_RT_STAT = 0x4
|
||||||
NET_RT_TRASH = 0x5
|
NET_RT_TRASH = 0x5
|
||||||
|
NL0 = 0x0
|
||||||
|
NL1 = 0x100
|
||||||
|
NL2 = 0x200
|
||||||
|
NL3 = 0x300
|
||||||
|
NLDLY = 0x300
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
|
NOKERNINFO = 0x2000000
|
||||||
NOTE_ABSOLUTE = 0x8
|
NOTE_ABSOLUTE = 0x8
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
NOTE_BACKGROUND = 0x40
|
NOTE_BACKGROUND = 0x40
|
||||||
|
@ -843,11 +914,14 @@ const (
|
||||||
NOTE_FFNOP = 0x0
|
NOTE_FFNOP = 0x0
|
||||||
NOTE_FFOR = 0x80000000
|
NOTE_FFOR = 0x80000000
|
||||||
NOTE_FORK = 0x40000000
|
NOTE_FORK = 0x40000000
|
||||||
|
NOTE_FUNLOCK = 0x100
|
||||||
NOTE_LEEWAY = 0x10
|
NOTE_LEEWAY = 0x10
|
||||||
NOTE_LINK = 0x10
|
NOTE_LINK = 0x10
|
||||||
NOTE_LOWAT = 0x1
|
NOTE_LOWAT = 0x1
|
||||||
|
NOTE_MACH_CONTINUOUS_TIME = 0x80
|
||||||
NOTE_NONE = 0x80
|
NOTE_NONE = 0x80
|
||||||
NOTE_NSECONDS = 0x4
|
NOTE_NSECONDS = 0x4
|
||||||
|
NOTE_OOB = 0x2
|
||||||
NOTE_PCTRLMASK = -0x100000
|
NOTE_PCTRLMASK = -0x100000
|
||||||
NOTE_PDATAMASK = 0xfffff
|
NOTE_PDATAMASK = 0xfffff
|
||||||
NOTE_REAP = 0x10000000
|
NOTE_REAP = 0x10000000
|
||||||
|
@ -872,6 +946,7 @@ const (
|
||||||
ONOCR = 0x20
|
ONOCR = 0x20
|
||||||
ONOEOT = 0x8
|
ONOEOT = 0x8
|
||||||
OPOST = 0x1
|
OPOST = 0x1
|
||||||
|
OXTABS = 0x4
|
||||||
O_ACCMODE = 0x3
|
O_ACCMODE = 0x3
|
||||||
O_ALERT = 0x20000000
|
O_ALERT = 0x20000000
|
||||||
O_APPEND = 0x8
|
O_APPEND = 0x8
|
||||||
|
@ -880,6 +955,7 @@ const (
|
||||||
O_CREAT = 0x200
|
O_CREAT = 0x200
|
||||||
O_DIRECTORY = 0x100000
|
O_DIRECTORY = 0x100000
|
||||||
O_DP_GETRAWENCRYPTED = 0x1
|
O_DP_GETRAWENCRYPTED = 0x1
|
||||||
|
O_DP_GETRAWUNENCRYPTED = 0x2
|
||||||
O_DSYNC = 0x400000
|
O_DSYNC = 0x400000
|
||||||
O_EVTONLY = 0x8000
|
O_EVTONLY = 0x8000
|
||||||
O_EXCL = 0x800
|
O_EXCL = 0x800
|
||||||
|
@ -932,7 +1008,10 @@ const (
|
||||||
RLIMIT_CPU_USAGE_MONITOR = 0x2
|
RLIMIT_CPU_USAGE_MONITOR = 0x2
|
||||||
RLIMIT_DATA = 0x2
|
RLIMIT_DATA = 0x2
|
||||||
RLIMIT_FSIZE = 0x1
|
RLIMIT_FSIZE = 0x1
|
||||||
|
RLIMIT_MEMLOCK = 0x6
|
||||||
RLIMIT_NOFILE = 0x8
|
RLIMIT_NOFILE = 0x8
|
||||||
|
RLIMIT_NPROC = 0x7
|
||||||
|
RLIMIT_RSS = 0x5
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0x7fffffffffffffff
|
RLIM_INFINITY = 0x7fffffffffffffff
|
||||||
RTAX_AUTHOR = 0x6
|
RTAX_AUTHOR = 0x6
|
||||||
|
@ -1102,6 +1181,8 @@ const (
|
||||||
SO_LABEL = 0x1010
|
SO_LABEL = 0x1010
|
||||||
SO_LINGER = 0x80
|
SO_LINGER = 0x80
|
||||||
SO_LINGER_SEC = 0x1080
|
SO_LINGER_SEC = 0x1080
|
||||||
|
SO_NETSVC_MARKING_LEVEL = 0x1119
|
||||||
|
SO_NET_SERVICE_TYPE = 0x1116
|
||||||
SO_NKE = 0x1021
|
SO_NKE = 0x1021
|
||||||
SO_NOADDRERR = 0x1023
|
SO_NOADDRERR = 0x1023
|
||||||
SO_NOSIGPIPE = 0x1022
|
SO_NOSIGPIPE = 0x1022
|
||||||
|
@ -1157,11 +1238,22 @@ const (
|
||||||
S_IXGRP = 0x8
|
S_IXGRP = 0x8
|
||||||
S_IXOTH = 0x1
|
S_IXOTH = 0x1
|
||||||
S_IXUSR = 0x40
|
S_IXUSR = 0x40
|
||||||
|
TAB0 = 0x0
|
||||||
|
TAB1 = 0x400
|
||||||
|
TAB2 = 0x800
|
||||||
|
TAB3 = 0x4
|
||||||
|
TABDLY = 0xc04
|
||||||
TCIFLUSH = 0x1
|
TCIFLUSH = 0x1
|
||||||
|
TCIOFF = 0x3
|
||||||
TCIOFLUSH = 0x3
|
TCIOFLUSH = 0x3
|
||||||
|
TCION = 0x4
|
||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
|
TCOOFF = 0x1
|
||||||
|
TCOON = 0x2
|
||||||
TCP_CONNECTIONTIMEOUT = 0x20
|
TCP_CONNECTIONTIMEOUT = 0x20
|
||||||
|
TCP_CONNECTION_INFO = 0x106
|
||||||
TCP_ENABLE_ECN = 0x104
|
TCP_ENABLE_ECN = 0x104
|
||||||
|
TCP_FASTOPEN = 0x105
|
||||||
TCP_KEEPALIVE = 0x10
|
TCP_KEEPALIVE = 0x10
|
||||||
TCP_KEEPCNT = 0x102
|
TCP_KEEPCNT = 0x102
|
||||||
TCP_KEEPINTVL = 0x101
|
TCP_KEEPINTVL = 0x101
|
||||||
|
@ -1261,6 +1353,11 @@ const (
|
||||||
VKILL = 0x5
|
VKILL = 0x5
|
||||||
VLNEXT = 0xe
|
VLNEXT = 0xe
|
||||||
VMIN = 0x10
|
VMIN = 0x10
|
||||||
|
VM_LOADAVG = 0x2
|
||||||
|
VM_MACHFACTOR = 0x4
|
||||||
|
VM_MAXID = 0x6
|
||||||
|
VM_METER = 0x1
|
||||||
|
VM_SWAPUSAGE = 0x5
|
||||||
VQUIT = 0x9
|
VQUIT = 0x9
|
||||||
VREPRINT = 0x6
|
VREPRINT = 0x6
|
||||||
VSTART = 0xc
|
VSTART = 0xc
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mkerrors.sh -m32
|
// mkerrors.sh -m32
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build 386,freebsd
|
// +build 386,freebsd
|
||||||
|
|
||||||
|
@ -98,6 +98,7 @@ const (
|
||||||
AF_VENDOR45 = 0x81
|
AF_VENDOR45 = 0x81
|
||||||
AF_VENDOR46 = 0x83
|
AF_VENDOR46 = 0x83
|
||||||
AF_VENDOR47 = 0x85
|
AF_VENDOR47 = 0x85
|
||||||
|
ALTWERASE = 0x200
|
||||||
B0 = 0x0
|
B0 = 0x0
|
||||||
B110 = 0x6e
|
B110 = 0x6e
|
||||||
B115200 = 0x1c200
|
B115200 = 0x1c200
|
||||||
|
@ -189,6 +190,7 @@ const (
|
||||||
BPF_MINBUFSIZE = 0x20
|
BPF_MINBUFSIZE = 0x20
|
||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
|
BPF_MOD = 0x90
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
|
@ -222,7 +224,105 @@ const (
|
||||||
BPF_T_NORMAL = 0x0
|
BPF_T_NORMAL = 0x0
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
|
CAP_ACCEPT = 0x200000020000000
|
||||||
|
CAP_ACL_CHECK = 0x400000000010000
|
||||||
|
CAP_ACL_DELETE = 0x400000000020000
|
||||||
|
CAP_ACL_GET = 0x400000000040000
|
||||||
|
CAP_ACL_SET = 0x400000000080000
|
||||||
|
CAP_ALL0 = 0x20007ffffffffff
|
||||||
|
CAP_ALL1 = 0x4000000001fffff
|
||||||
|
CAP_BIND = 0x200000040000000
|
||||||
|
CAP_BINDAT = 0x200008000000400
|
||||||
|
CAP_CHFLAGSAT = 0x200000000001400
|
||||||
|
CAP_CONNECT = 0x200000080000000
|
||||||
|
CAP_CONNECTAT = 0x200010000000400
|
||||||
|
CAP_CREATE = 0x200000000000040
|
||||||
|
CAP_EVENT = 0x400000000000020
|
||||||
|
CAP_EXTATTR_DELETE = 0x400000000001000
|
||||||
|
CAP_EXTATTR_GET = 0x400000000002000
|
||||||
|
CAP_EXTATTR_LIST = 0x400000000004000
|
||||||
|
CAP_EXTATTR_SET = 0x400000000008000
|
||||||
|
CAP_FCHDIR = 0x200000000000800
|
||||||
|
CAP_FCHFLAGS = 0x200000000001000
|
||||||
|
CAP_FCHMOD = 0x200000000002000
|
||||||
|
CAP_FCHMODAT = 0x200000000002400
|
||||||
|
CAP_FCHOWN = 0x200000000004000
|
||||||
|
CAP_FCHOWNAT = 0x200000000004400
|
||||||
|
CAP_FCNTL = 0x200000000008000
|
||||||
|
CAP_FCNTL_ALL = 0x78
|
||||||
|
CAP_FCNTL_GETFL = 0x8
|
||||||
|
CAP_FCNTL_GETOWN = 0x20
|
||||||
|
CAP_FCNTL_SETFL = 0x10
|
||||||
|
CAP_FCNTL_SETOWN = 0x40
|
||||||
|
CAP_FEXECVE = 0x200000000000080
|
||||||
|
CAP_FLOCK = 0x200000000010000
|
||||||
|
CAP_FPATHCONF = 0x200000000020000
|
||||||
|
CAP_FSCK = 0x200000000040000
|
||||||
|
CAP_FSTAT = 0x200000000080000
|
||||||
|
CAP_FSTATAT = 0x200000000080400
|
||||||
|
CAP_FSTATFS = 0x200000000100000
|
||||||
|
CAP_FSYNC = 0x200000000000100
|
||||||
|
CAP_FTRUNCATE = 0x200000000000200
|
||||||
|
CAP_FUTIMES = 0x200000000200000
|
||||||
|
CAP_FUTIMESAT = 0x200000000200400
|
||||||
|
CAP_GETPEERNAME = 0x200000100000000
|
||||||
|
CAP_GETSOCKNAME = 0x200000200000000
|
||||||
|
CAP_GETSOCKOPT = 0x200000400000000
|
||||||
|
CAP_IOCTL = 0x400000000000080
|
||||||
|
CAP_IOCTLS_ALL = 0x7fffffff
|
||||||
|
CAP_KQUEUE = 0x400000000100040
|
||||||
|
CAP_KQUEUE_CHANGE = 0x400000000100000
|
||||||
|
CAP_KQUEUE_EVENT = 0x400000000000040
|
||||||
|
CAP_LINKAT_SOURCE = 0x200020000000400
|
||||||
|
CAP_LINKAT_TARGET = 0x200000000400400
|
||||||
|
CAP_LISTEN = 0x200000800000000
|
||||||
|
CAP_LOOKUP = 0x200000000000400
|
||||||
|
CAP_MAC_GET = 0x400000000000001
|
||||||
|
CAP_MAC_SET = 0x400000000000002
|
||||||
|
CAP_MKDIRAT = 0x200000000800400
|
||||||
|
CAP_MKFIFOAT = 0x200000001000400
|
||||||
|
CAP_MKNODAT = 0x200000002000400
|
||||||
|
CAP_MMAP = 0x200000000000010
|
||||||
|
CAP_MMAP_R = 0x20000000000001d
|
||||||
|
CAP_MMAP_RW = 0x20000000000001f
|
||||||
|
CAP_MMAP_RWX = 0x20000000000003f
|
||||||
|
CAP_MMAP_RX = 0x20000000000003d
|
||||||
|
CAP_MMAP_W = 0x20000000000001e
|
||||||
|
CAP_MMAP_WX = 0x20000000000003e
|
||||||
|
CAP_MMAP_X = 0x20000000000003c
|
||||||
|
CAP_PDGETPID = 0x400000000000200
|
||||||
|
CAP_PDKILL = 0x400000000000800
|
||||||
|
CAP_PDWAIT = 0x400000000000400
|
||||||
|
CAP_PEELOFF = 0x200001000000000
|
||||||
|
CAP_POLL_EVENT = 0x400000000000020
|
||||||
|
CAP_PREAD = 0x20000000000000d
|
||||||
|
CAP_PWRITE = 0x20000000000000e
|
||||||
|
CAP_READ = 0x200000000000001
|
||||||
|
CAP_RECV = 0x200000000000001
|
||||||
|
CAP_RENAMEAT_SOURCE = 0x200000004000400
|
||||||
|
CAP_RENAMEAT_TARGET = 0x200040000000400
|
||||||
|
CAP_RIGHTS_VERSION = 0x0
|
||||||
|
CAP_RIGHTS_VERSION_00 = 0x0
|
||||||
|
CAP_SEEK = 0x20000000000000c
|
||||||
|
CAP_SEEK_TELL = 0x200000000000004
|
||||||
|
CAP_SEM_GETVALUE = 0x400000000000004
|
||||||
|
CAP_SEM_POST = 0x400000000000008
|
||||||
|
CAP_SEM_WAIT = 0x400000000000010
|
||||||
|
CAP_SEND = 0x200000000000002
|
||||||
|
CAP_SETSOCKOPT = 0x200002000000000
|
||||||
|
CAP_SHUTDOWN = 0x200004000000000
|
||||||
|
CAP_SOCK_CLIENT = 0x200007780000003
|
||||||
|
CAP_SOCK_SERVER = 0x200007f60000003
|
||||||
|
CAP_SYMLINKAT = 0x200000008000400
|
||||||
|
CAP_TTYHOOK = 0x400000000000100
|
||||||
|
CAP_UNLINKAT = 0x200000010000400
|
||||||
|
CAP_UNUSED0_44 = 0x200080000000000
|
||||||
|
CAP_UNUSED0_57 = 0x300000000000000
|
||||||
|
CAP_UNUSED1_22 = 0x400000000200000
|
||||||
|
CAP_UNUSED1_57 = 0x500000000000000
|
||||||
|
CAP_WRITE = 0x200000000000002
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
CLOCAL = 0x8000
|
CLOCAL = 0x8000
|
||||||
CLOCK_MONOTONIC = 0x4
|
CLOCK_MONOTONIC = 0x4
|
||||||
|
@ -240,6 +340,7 @@ const (
|
||||||
CLOCK_UPTIME_PRECISE = 0x7
|
CLOCK_UPTIME_PRECISE = 0x7
|
||||||
CLOCK_VIRTUAL = 0x1
|
CLOCK_VIRTUAL = 0x1
|
||||||
CREAD = 0x800
|
CREAD = 0x800
|
||||||
|
CRTSCTS = 0x30000
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x100
|
CS6 = 0x100
|
||||||
CS7 = 0x200
|
CS7 = 0x200
|
||||||
|
@ -265,8 +366,12 @@ const (
|
||||||
DLT_AX25 = 0x3
|
DLT_AX25 = 0x3
|
||||||
DLT_AX25_KISS = 0xca
|
DLT_AX25_KISS = 0xca
|
||||||
DLT_BACNET_MS_TP = 0xa5
|
DLT_BACNET_MS_TP = 0xa5
|
||||||
|
DLT_BLUETOOTH_BREDR_BB = 0xff
|
||||||
DLT_BLUETOOTH_HCI_H4 = 0xbb
|
DLT_BLUETOOTH_HCI_H4 = 0xbb
|
||||||
DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
|
DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
|
||||||
|
DLT_BLUETOOTH_LE_LL = 0xfb
|
||||||
|
DLT_BLUETOOTH_LE_LL_WITH_PHDR = 0x100
|
||||||
|
DLT_BLUETOOTH_LINUX_MONITOR = 0xfe
|
||||||
DLT_CAN20B = 0xbe
|
DLT_CAN20B = 0xbe
|
||||||
DLT_CAN_SOCKETCAN = 0xe3
|
DLT_CAN_SOCKETCAN = 0xe3
|
||||||
DLT_CHAOS = 0x5
|
DLT_CHAOS = 0x5
|
||||||
|
@ -282,6 +387,7 @@ const (
|
||||||
DLT_EN10MB = 0x1
|
DLT_EN10MB = 0x1
|
||||||
DLT_EN3MB = 0x2
|
DLT_EN3MB = 0x2
|
||||||
DLT_ENC = 0x6d
|
DLT_ENC = 0x6d
|
||||||
|
DLT_EPON = 0x103
|
||||||
DLT_ERF = 0xc5
|
DLT_ERF = 0xc5
|
||||||
DLT_ERF_ETH = 0xaf
|
DLT_ERF_ETH = 0xaf
|
||||||
DLT_ERF_POS = 0xb0
|
DLT_ERF_POS = 0xb0
|
||||||
|
@ -311,9 +417,11 @@ const (
|
||||||
DLT_IEEE802_15_4_NONASK_PHY = 0xd7
|
DLT_IEEE802_15_4_NONASK_PHY = 0xd7
|
||||||
DLT_IEEE802_16_MAC_CPS = 0xbc
|
DLT_IEEE802_16_MAC_CPS = 0xbc
|
||||||
DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
|
DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
|
||||||
|
DLT_INFINIBAND = 0xf7
|
||||||
DLT_IPFILTER = 0x74
|
DLT_IPFILTER = 0x74
|
||||||
DLT_IPMB = 0xc7
|
DLT_IPMB = 0xc7
|
||||||
DLT_IPMB_LINUX = 0xd1
|
DLT_IPMB_LINUX = 0xd1
|
||||||
|
DLT_IPMI_HPM_2 = 0x104
|
||||||
DLT_IPNET = 0xe2
|
DLT_IPNET = 0xe2
|
||||||
DLT_IPOIB = 0xf2
|
DLT_IPOIB = 0xf2
|
||||||
DLT_IPV4 = 0xe4
|
DLT_IPV4 = 0xe4
|
||||||
|
@ -352,7 +460,7 @@ const (
|
||||||
DLT_LINUX_SLL = 0x71
|
DLT_LINUX_SLL = 0x71
|
||||||
DLT_LOOP = 0x6c
|
DLT_LOOP = 0x6c
|
||||||
DLT_LTALK = 0x72
|
DLT_LTALK = 0x72
|
||||||
DLT_MATCHING_MAX = 0xf6
|
DLT_MATCHING_MAX = 0x104
|
||||||
DLT_MATCHING_MIN = 0x68
|
DLT_MATCHING_MIN = 0x68
|
||||||
DLT_MFR = 0xb6
|
DLT_MFR = 0xb6
|
||||||
DLT_MOST = 0xd3
|
DLT_MOST = 0xd3
|
||||||
|
@ -364,6 +472,7 @@ const (
|
||||||
DLT_MUX27010 = 0xec
|
DLT_MUX27010 = 0xec
|
||||||
DLT_NETANALYZER = 0xf0
|
DLT_NETANALYZER = 0xf0
|
||||||
DLT_NETANALYZER_TRANSPARENT = 0xf1
|
DLT_NETANALYZER_TRANSPARENT = 0xf1
|
||||||
|
DLT_NETLINK = 0xfd
|
||||||
DLT_NFC_LLCP = 0xf5
|
DLT_NFC_LLCP = 0xf5
|
||||||
DLT_NFLOG = 0xef
|
DLT_NFLOG = 0xef
|
||||||
DLT_NG40 = 0xf4
|
DLT_NG40 = 0xf4
|
||||||
|
@ -371,6 +480,7 @@ const (
|
||||||
DLT_PCI_EXP = 0x7d
|
DLT_PCI_EXP = 0x7d
|
||||||
DLT_PFLOG = 0x75
|
DLT_PFLOG = 0x75
|
||||||
DLT_PFSYNC = 0x79
|
DLT_PFSYNC = 0x79
|
||||||
|
DLT_PKTAP = 0x102
|
||||||
DLT_PPI = 0xc0
|
DLT_PPI = 0xc0
|
||||||
DLT_PPP = 0x9
|
DLT_PPP = 0x9
|
||||||
DLT_PPP_BSDOS = 0x10
|
DLT_PPP_BSDOS = 0x10
|
||||||
|
@ -380,11 +490,14 @@ const (
|
||||||
DLT_PPP_WITH_DIR = 0xcc
|
DLT_PPP_WITH_DIR = 0xcc
|
||||||
DLT_PPP_WITH_DIRECTION = 0xa6
|
DLT_PPP_WITH_DIRECTION = 0xa6
|
||||||
DLT_PRISM_HEADER = 0x77
|
DLT_PRISM_HEADER = 0x77
|
||||||
|
DLT_PROFIBUS_DL = 0x101
|
||||||
DLT_PRONET = 0x4
|
DLT_PRONET = 0x4
|
||||||
DLT_RAIF1 = 0xc6
|
DLT_RAIF1 = 0xc6
|
||||||
DLT_RAW = 0xc
|
DLT_RAW = 0xc
|
||||||
DLT_RIO = 0x7c
|
DLT_RIO = 0x7c
|
||||||
|
DLT_RTAC_SERIAL = 0xfa
|
||||||
DLT_SCCP = 0x8e
|
DLT_SCCP = 0x8e
|
||||||
|
DLT_SCTP = 0xf8
|
||||||
DLT_SITA = 0xc4
|
DLT_SITA = 0xc4
|
||||||
DLT_SLIP = 0x8
|
DLT_SLIP = 0x8
|
||||||
DLT_SLIP_BSDOS = 0xf
|
DLT_SLIP_BSDOS = 0xf
|
||||||
|
@ -393,6 +506,7 @@ const (
|
||||||
DLT_SYMANTEC_FIREWALL = 0x63
|
DLT_SYMANTEC_FIREWALL = 0x63
|
||||||
DLT_TZSP = 0x80
|
DLT_TZSP = 0x80
|
||||||
DLT_USB = 0xba
|
DLT_USB = 0xba
|
||||||
|
DLT_USBPCAP = 0xf9
|
||||||
DLT_USB_LINUX = 0xbd
|
DLT_USB_LINUX = 0xbd
|
||||||
DLT_USB_LINUX_MMAPPED = 0xdc
|
DLT_USB_LINUX_MMAPPED = 0xdc
|
||||||
DLT_USER0 = 0x93
|
DLT_USER0 = 0x93
|
||||||
|
@ -412,6 +526,7 @@ const (
|
||||||
DLT_USER8 = 0x9b
|
DLT_USER8 = 0x9b
|
||||||
DLT_USER9 = 0x9c
|
DLT_USER9 = 0x9c
|
||||||
DLT_WIHART = 0xdf
|
DLT_WIHART = 0xdf
|
||||||
|
DLT_WIRESHARK_UPPER_PDU = 0xfc
|
||||||
DLT_X2E_SERIAL = 0xd5
|
DLT_X2E_SERIAL = 0xd5
|
||||||
DLT_X2E_XORAYA = 0xd6
|
DLT_X2E_XORAYA = 0xd6
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
|
@ -434,9 +549,11 @@ const (
|
||||||
EVFILT_FS = -0x9
|
EVFILT_FS = -0x9
|
||||||
EVFILT_LIO = -0xa
|
EVFILT_LIO = -0xa
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
|
EVFILT_PROCDESC = -0x8
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
|
EVFILT_SENDFILE = -0xc
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0xb
|
EVFILT_SYSCOUNT = 0xc
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
EVFILT_USER = -0xb
|
EVFILT_USER = -0xb
|
||||||
EVFILT_VNODE = -0x4
|
EVFILT_VNODE = -0x4
|
||||||
|
@ -451,6 +568,8 @@ const (
|
||||||
EV_EOF = 0x8000
|
EV_EOF = 0x8000
|
||||||
EV_ERROR = 0x4000
|
EV_ERROR = 0x4000
|
||||||
EV_FLAG1 = 0x2000
|
EV_FLAG1 = 0x2000
|
||||||
|
EV_FLAG2 = 0x4000
|
||||||
|
EV_FORCEONESHOT = 0x100
|
||||||
EV_ONESHOT = 0x10
|
EV_ONESHOT = 0x10
|
||||||
EV_RECEIPT = 0x40
|
EV_RECEIPT = 0x40
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_SYSFLAGS = 0xf000
|
||||||
|
@ -498,7 +617,7 @@ const (
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ALTPHYS = 0x4000
|
IFF_ALTPHYS = 0x4000
|
||||||
IFF_BROADCAST = 0x2
|
IFF_BROADCAST = 0x2
|
||||||
IFF_CANTCHANGE = 0x218f72
|
IFF_CANTCHANGE = 0x218f52
|
||||||
IFF_CANTCONFIG = 0x10000
|
IFF_CANTCONFIG = 0x10000
|
||||||
IFF_DEBUG = 0x4
|
IFF_DEBUG = 0x4
|
||||||
IFF_DRV_OACTIVE = 0x400
|
IFF_DRV_OACTIVE = 0x400
|
||||||
|
@ -518,217 +637,17 @@ const (
|
||||||
IFF_RENAMING = 0x400000
|
IFF_RENAMING = 0x400000
|
||||||
IFF_RUNNING = 0x40
|
IFF_RUNNING = 0x40
|
||||||
IFF_SIMPLEX = 0x800
|
IFF_SIMPLEX = 0x800
|
||||||
IFF_SMART = 0x20
|
|
||||||
IFF_STATICARP = 0x80000
|
IFF_STATICARP = 0x80000
|
||||||
IFF_UP = 0x1
|
IFF_UP = 0x1
|
||||||
IFNAMSIZ = 0x10
|
IFNAMSIZ = 0x10
|
||||||
IFT_1822 = 0x2
|
|
||||||
IFT_A12MPPSWITCH = 0x82
|
|
||||||
IFT_AAL2 = 0xbb
|
|
||||||
IFT_AAL5 = 0x31
|
|
||||||
IFT_ADSL = 0x5e
|
|
||||||
IFT_AFLANE8023 = 0x3b
|
|
||||||
IFT_AFLANE8025 = 0x3c
|
|
||||||
IFT_ARAP = 0x58
|
|
||||||
IFT_ARCNET = 0x23
|
|
||||||
IFT_ARCNETPLUS = 0x24
|
|
||||||
IFT_ASYNC = 0x54
|
|
||||||
IFT_ATM = 0x25
|
|
||||||
IFT_ATMDXI = 0x69
|
|
||||||
IFT_ATMFUNI = 0x6a
|
|
||||||
IFT_ATMIMA = 0x6b
|
|
||||||
IFT_ATMLOGICAL = 0x50
|
|
||||||
IFT_ATMRADIO = 0xbd
|
|
||||||
IFT_ATMSUBINTERFACE = 0x86
|
|
||||||
IFT_ATMVCIENDPT = 0xc2
|
|
||||||
IFT_ATMVIRTUAL = 0x95
|
|
||||||
IFT_BGPPOLICYACCOUNTING = 0xa2
|
|
||||||
IFT_BRIDGE = 0xd1
|
IFT_BRIDGE = 0xd1
|
||||||
IFT_BSC = 0x53
|
|
||||||
IFT_CARP = 0xf8
|
IFT_CARP = 0xf8
|
||||||
IFT_CCTEMUL = 0x3d
|
|
||||||
IFT_CEPT = 0x13
|
|
||||||
IFT_CES = 0x85
|
|
||||||
IFT_CHANNEL = 0x46
|
|
||||||
IFT_CNR = 0x55
|
|
||||||
IFT_COFFEE = 0x84
|
|
||||||
IFT_COMPOSITELINK = 0x9b
|
|
||||||
IFT_DCN = 0x8d
|
|
||||||
IFT_DIGITALPOWERLINE = 0x8a
|
|
||||||
IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba
|
|
||||||
IFT_DLSW = 0x4a
|
|
||||||
IFT_DOCSCABLEDOWNSTREAM = 0x80
|
|
||||||
IFT_DOCSCABLEMACLAYER = 0x7f
|
|
||||||
IFT_DOCSCABLEUPSTREAM = 0x81
|
|
||||||
IFT_DS0 = 0x51
|
|
||||||
IFT_DS0BUNDLE = 0x52
|
|
||||||
IFT_DS1FDL = 0xaa
|
|
||||||
IFT_DS3 = 0x1e
|
|
||||||
IFT_DTM = 0x8c
|
|
||||||
IFT_DVBASILN = 0xac
|
|
||||||
IFT_DVBASIOUT = 0xad
|
|
||||||
IFT_DVBRCCDOWNSTREAM = 0x93
|
|
||||||
IFT_DVBRCCMACLAYER = 0x92
|
|
||||||
IFT_DVBRCCUPSTREAM = 0x94
|
|
||||||
IFT_ENC = 0xf4
|
|
||||||
IFT_EON = 0x19
|
|
||||||
IFT_EPLRS = 0x57
|
|
||||||
IFT_ESCON = 0x49
|
|
||||||
IFT_ETHER = 0x6
|
|
||||||
IFT_FAITH = 0xf2
|
|
||||||
IFT_FAST = 0x7d
|
|
||||||
IFT_FASTETHER = 0x3e
|
|
||||||
IFT_FASTETHERFX = 0x45
|
|
||||||
IFT_FDDI = 0xf
|
|
||||||
IFT_FIBRECHANNEL = 0x38
|
|
||||||
IFT_FRAMERELAYINTERCONNECT = 0x3a
|
|
||||||
IFT_FRAMERELAYMPI = 0x5c
|
|
||||||
IFT_FRDLCIENDPT = 0xc1
|
|
||||||
IFT_FRELAY = 0x20
|
|
||||||
IFT_FRELAYDCE = 0x2c
|
|
||||||
IFT_FRF16MFRBUNDLE = 0xa3
|
|
||||||
IFT_FRFORWARD = 0x9e
|
|
||||||
IFT_G703AT2MB = 0x43
|
|
||||||
IFT_G703AT64K = 0x42
|
|
||||||
IFT_GIF = 0xf0
|
|
||||||
IFT_GIGABITETHERNET = 0x75
|
|
||||||
IFT_GR303IDT = 0xb2
|
|
||||||
IFT_GR303RDT = 0xb1
|
|
||||||
IFT_H323GATEKEEPER = 0xa4
|
|
||||||
IFT_H323PROXY = 0xa5
|
|
||||||
IFT_HDH1822 = 0x3
|
|
||||||
IFT_HDLC = 0x76
|
|
||||||
IFT_HDSL2 = 0xa8
|
|
||||||
IFT_HIPERLAN2 = 0xb7
|
|
||||||
IFT_HIPPI = 0x2f
|
|
||||||
IFT_HIPPIINTERFACE = 0x39
|
|
||||||
IFT_HOSTPAD = 0x5a
|
|
||||||
IFT_HSSI = 0x2e
|
|
||||||
IFT_HY = 0xe
|
|
||||||
IFT_IBM370PARCHAN = 0x48
|
|
||||||
IFT_IDSL = 0x9a
|
|
||||||
IFT_IEEE1394 = 0x90
|
IFT_IEEE1394 = 0x90
|
||||||
IFT_IEEE80211 = 0x47
|
|
||||||
IFT_IEEE80212 = 0x37
|
|
||||||
IFT_IEEE8023ADLAG = 0xa1
|
|
||||||
IFT_IFGSN = 0x91
|
|
||||||
IFT_IMT = 0xbe
|
|
||||||
IFT_INFINIBAND = 0xc7
|
IFT_INFINIBAND = 0xc7
|
||||||
IFT_INTERLEAVE = 0x7c
|
|
||||||
IFT_IP = 0x7e
|
|
||||||
IFT_IPFORWARD = 0x8e
|
|
||||||
IFT_IPOVERATM = 0x72
|
|
||||||
IFT_IPOVERCDLC = 0x6d
|
|
||||||
IFT_IPOVERCLAW = 0x6e
|
|
||||||
IFT_IPSWITCH = 0x4e
|
|
||||||
IFT_IPXIP = 0xf9
|
|
||||||
IFT_ISDN = 0x3f
|
|
||||||
IFT_ISDNBASIC = 0x14
|
|
||||||
IFT_ISDNPRIMARY = 0x15
|
|
||||||
IFT_ISDNS = 0x4b
|
|
||||||
IFT_ISDNU = 0x4c
|
|
||||||
IFT_ISO88022LLC = 0x29
|
|
||||||
IFT_ISO88023 = 0x7
|
|
||||||
IFT_ISO88024 = 0x8
|
|
||||||
IFT_ISO88025 = 0x9
|
|
||||||
IFT_ISO88025CRFPINT = 0x62
|
|
||||||
IFT_ISO88025DTR = 0x56
|
|
||||||
IFT_ISO88025FIBER = 0x73
|
|
||||||
IFT_ISO88026 = 0xa
|
|
||||||
IFT_ISUP = 0xb3
|
|
||||||
IFT_L2VLAN = 0x87
|
IFT_L2VLAN = 0x87
|
||||||
IFT_L3IPVLAN = 0x88
|
IFT_L3IPVLAN = 0x88
|
||||||
IFT_L3IPXVLAN = 0x89
|
|
||||||
IFT_LAPB = 0x10
|
|
||||||
IFT_LAPD = 0x4d
|
|
||||||
IFT_LAPF = 0x77
|
|
||||||
IFT_LOCALTALK = 0x2a
|
|
||||||
IFT_LOOP = 0x18
|
|
||||||
IFT_MEDIAMAILOVERIP = 0x8b
|
|
||||||
IFT_MFSIGLINK = 0xa7
|
|
||||||
IFT_MIOX25 = 0x26
|
|
||||||
IFT_MODEM = 0x30
|
|
||||||
IFT_MPC = 0x71
|
|
||||||
IFT_MPLS = 0xa6
|
|
||||||
IFT_MPLSTUNNEL = 0x96
|
|
||||||
IFT_MSDSL = 0x8f
|
|
||||||
IFT_MVL = 0xbf
|
|
||||||
IFT_MYRINET = 0x63
|
|
||||||
IFT_NFAS = 0xaf
|
|
||||||
IFT_NSIP = 0x1b
|
|
||||||
IFT_OPTICALCHANNEL = 0xc3
|
|
||||||
IFT_OPTICALTRANSPORT = 0xc4
|
|
||||||
IFT_OTHER = 0x1
|
|
||||||
IFT_P10 = 0xc
|
|
||||||
IFT_P80 = 0xd
|
|
||||||
IFT_PARA = 0x22
|
|
||||||
IFT_PFLOG = 0xf6
|
|
||||||
IFT_PFSYNC = 0xf7
|
|
||||||
IFT_PLC = 0xae
|
|
||||||
IFT_POS = 0xab
|
|
||||||
IFT_PPP = 0x17
|
IFT_PPP = 0x17
|
||||||
IFT_PPPMULTILINKBUNDLE = 0x6c
|
|
||||||
IFT_PROPBWAP2MP = 0xb8
|
|
||||||
IFT_PROPCNLS = 0x59
|
|
||||||
IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5
|
|
||||||
IFT_PROPDOCSWIRELESSMACLAYER = 0xb4
|
|
||||||
IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6
|
|
||||||
IFT_PROPMUX = 0x36
|
|
||||||
IFT_PROPVIRTUAL = 0x35
|
IFT_PROPVIRTUAL = 0x35
|
||||||
IFT_PROPWIRELESSP2P = 0x9d
|
|
||||||
IFT_PTPSERIAL = 0x16
|
|
||||||
IFT_PVC = 0xf1
|
|
||||||
IFT_QLLC = 0x44
|
|
||||||
IFT_RADIOMAC = 0xbc
|
|
||||||
IFT_RADSL = 0x5f
|
|
||||||
IFT_REACHDSL = 0xc0
|
|
||||||
IFT_RFC1483 = 0x9f
|
|
||||||
IFT_RS232 = 0x21
|
|
||||||
IFT_RSRB = 0x4f
|
|
||||||
IFT_SDLC = 0x11
|
|
||||||
IFT_SDSL = 0x60
|
|
||||||
IFT_SHDSL = 0xa9
|
|
||||||
IFT_SIP = 0x1f
|
|
||||||
IFT_SLIP = 0x1c
|
|
||||||
IFT_SMDSDXI = 0x2b
|
|
||||||
IFT_SMDSICIP = 0x34
|
|
||||||
IFT_SONET = 0x27
|
|
||||||
IFT_SONETOVERHEADCHANNEL = 0xb9
|
|
||||||
IFT_SONETPATH = 0x32
|
|
||||||
IFT_SONETVT = 0x33
|
|
||||||
IFT_SRP = 0x97
|
|
||||||
IFT_SS7SIGLINK = 0x9c
|
|
||||||
IFT_STACKTOSTACK = 0x6f
|
|
||||||
IFT_STARLAN = 0xb
|
|
||||||
IFT_STF = 0xd7
|
|
||||||
IFT_T1 = 0x12
|
|
||||||
IFT_TDLC = 0x74
|
|
||||||
IFT_TERMPAD = 0x5b
|
|
||||||
IFT_TR008 = 0xb0
|
|
||||||
IFT_TRANSPHDLC = 0x7b
|
|
||||||
IFT_TUNNEL = 0x83
|
|
||||||
IFT_ULTRA = 0x1d
|
|
||||||
IFT_USB = 0xa0
|
|
||||||
IFT_V11 = 0x40
|
|
||||||
IFT_V35 = 0x2d
|
|
||||||
IFT_V36 = 0x41
|
|
||||||
IFT_V37 = 0x78
|
|
||||||
IFT_VDSL = 0x61
|
|
||||||
IFT_VIRTUALIPADDRESS = 0x70
|
|
||||||
IFT_VOICEEM = 0x64
|
|
||||||
IFT_VOICEENCAP = 0x67
|
|
||||||
IFT_VOICEFXO = 0x65
|
|
||||||
IFT_VOICEFXS = 0x66
|
|
||||||
IFT_VOICEOVERATM = 0x98
|
|
||||||
IFT_VOICEOVERFRAMERELAY = 0x99
|
|
||||||
IFT_VOICEOVERIP = 0x68
|
|
||||||
IFT_X213 = 0x5d
|
|
||||||
IFT_X25 = 0x5
|
|
||||||
IFT_X25DDN = 0x4
|
|
||||||
IFT_X25HUNTGROUP = 0x7a
|
|
||||||
IFT_X25MLP = 0x79
|
|
||||||
IFT_X25PLE = 0x28
|
|
||||||
IFT_XETHER = 0x1a
|
|
||||||
IGNBRK = 0x1
|
IGNBRK = 0x1
|
||||||
IGNCR = 0x80
|
IGNCR = 0x80
|
||||||
IGNPAR = 0x4
|
IGNPAR = 0x4
|
||||||
|
@ -811,7 +730,6 @@ const (
|
||||||
IPPROTO_LEAF1 = 0x19
|
IPPROTO_LEAF1 = 0x19
|
||||||
IPPROTO_LEAF2 = 0x1a
|
IPPROTO_LEAF2 = 0x1a
|
||||||
IPPROTO_MAX = 0x100
|
IPPROTO_MAX = 0x100
|
||||||
IPPROTO_MAXID = 0x34
|
|
||||||
IPPROTO_MEAS = 0x13
|
IPPROTO_MEAS = 0x13
|
||||||
IPPROTO_MH = 0x87
|
IPPROTO_MH = 0x87
|
||||||
IPPROTO_MHRP = 0x30
|
IPPROTO_MHRP = 0x30
|
||||||
|
@ -876,6 +794,7 @@ const (
|
||||||
IPPROTO_XTP = 0x24
|
IPPROTO_XTP = 0x24
|
||||||
IPV6_AUTOFLOWLABEL = 0x3b
|
IPV6_AUTOFLOWLABEL = 0x3b
|
||||||
IPV6_BINDANY = 0x40
|
IPV6_BINDANY = 0x40
|
||||||
|
IPV6_BINDMULTI = 0x41
|
||||||
IPV6_BINDV6ONLY = 0x1b
|
IPV6_BINDV6ONLY = 0x1b
|
||||||
IPV6_CHECKSUM = 0x1a
|
IPV6_CHECKSUM = 0x1a
|
||||||
IPV6_DEFAULT_MULTICAST_HOPS = 0x1
|
IPV6_DEFAULT_MULTICAST_HOPS = 0x1
|
||||||
|
@ -883,9 +802,10 @@ const (
|
||||||
IPV6_DEFHLIM = 0x40
|
IPV6_DEFHLIM = 0x40
|
||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DSTOPTS = 0x32
|
IPV6_DSTOPTS = 0x32
|
||||||
IPV6_FAITH = 0x1d
|
IPV6_FLOWID = 0x43
|
||||||
IPV6_FLOWINFO_MASK = 0xffffff0f
|
IPV6_FLOWINFO_MASK = 0xffffff0f
|
||||||
IPV6_FLOWLABEL_MASK = 0xffff0f00
|
IPV6_FLOWLABEL_MASK = 0xffff0f00
|
||||||
|
IPV6_FLOWTYPE = 0x44
|
||||||
IPV6_FRAGTTL = 0x78
|
IPV6_FRAGTTL = 0x78
|
||||||
IPV6_FW_ADD = 0x1e
|
IPV6_FW_ADD = 0x1e
|
||||||
IPV6_FW_DEL = 0x1f
|
IPV6_FW_DEL = 0x1f
|
||||||
|
@ -919,12 +839,16 @@ const (
|
||||||
IPV6_PORTRANGE_LOW = 0x2
|
IPV6_PORTRANGE_LOW = 0x2
|
||||||
IPV6_PREFER_TEMPADDR = 0x3f
|
IPV6_PREFER_TEMPADDR = 0x3f
|
||||||
IPV6_RECVDSTOPTS = 0x28
|
IPV6_RECVDSTOPTS = 0x28
|
||||||
|
IPV6_RECVFLOWID = 0x46
|
||||||
IPV6_RECVHOPLIMIT = 0x25
|
IPV6_RECVHOPLIMIT = 0x25
|
||||||
IPV6_RECVHOPOPTS = 0x27
|
IPV6_RECVHOPOPTS = 0x27
|
||||||
IPV6_RECVPATHMTU = 0x2b
|
IPV6_RECVPATHMTU = 0x2b
|
||||||
IPV6_RECVPKTINFO = 0x24
|
IPV6_RECVPKTINFO = 0x24
|
||||||
|
IPV6_RECVRSSBUCKETID = 0x47
|
||||||
IPV6_RECVRTHDR = 0x26
|
IPV6_RECVRTHDR = 0x26
|
||||||
IPV6_RECVTCLASS = 0x39
|
IPV6_RECVTCLASS = 0x39
|
||||||
|
IPV6_RSSBUCKETID = 0x45
|
||||||
|
IPV6_RSS_LISTEN_BUCKET = 0x42
|
||||||
IPV6_RTHDR = 0x33
|
IPV6_RTHDR = 0x33
|
||||||
IPV6_RTHDRDSTOPTS = 0x23
|
IPV6_RTHDRDSTOPTS = 0x23
|
||||||
IPV6_RTHDR_LOOSE = 0x0
|
IPV6_RTHDR_LOOSE = 0x0
|
||||||
|
@ -940,6 +864,7 @@ const (
|
||||||
IP_ADD_MEMBERSHIP = 0xc
|
IP_ADD_MEMBERSHIP = 0xc
|
||||||
IP_ADD_SOURCE_MEMBERSHIP = 0x46
|
IP_ADD_SOURCE_MEMBERSHIP = 0x46
|
||||||
IP_BINDANY = 0x18
|
IP_BINDANY = 0x18
|
||||||
|
IP_BINDMULTI = 0x19
|
||||||
IP_BLOCK_SOURCE = 0x48
|
IP_BLOCK_SOURCE = 0x48
|
||||||
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
||||||
IP_DEFAULT_MULTICAST_TTL = 0x1
|
IP_DEFAULT_MULTICAST_TTL = 0x1
|
||||||
|
@ -952,7 +877,8 @@ const (
|
||||||
IP_DUMMYNET_DEL = 0x3d
|
IP_DUMMYNET_DEL = 0x3d
|
||||||
IP_DUMMYNET_FLUSH = 0x3e
|
IP_DUMMYNET_FLUSH = 0x3e
|
||||||
IP_DUMMYNET_GET = 0x40
|
IP_DUMMYNET_GET = 0x40
|
||||||
IP_FAITH = 0x16
|
IP_FLOWID = 0x5a
|
||||||
|
IP_FLOWTYPE = 0x5b
|
||||||
IP_FW3 = 0x30
|
IP_FW3 = 0x30
|
||||||
IP_FW_ADD = 0x32
|
IP_FW_ADD = 0x32
|
||||||
IP_FW_DEL = 0x33
|
IP_FW_DEL = 0x33
|
||||||
|
@ -994,13 +920,17 @@ const (
|
||||||
IP_PORTRANGE_HIGH = 0x1
|
IP_PORTRANGE_HIGH = 0x1
|
||||||
IP_PORTRANGE_LOW = 0x2
|
IP_PORTRANGE_LOW = 0x2
|
||||||
IP_RECVDSTADDR = 0x7
|
IP_RECVDSTADDR = 0x7
|
||||||
|
IP_RECVFLOWID = 0x5d
|
||||||
IP_RECVIF = 0x14
|
IP_RECVIF = 0x14
|
||||||
IP_RECVOPTS = 0x5
|
IP_RECVOPTS = 0x5
|
||||||
IP_RECVRETOPTS = 0x6
|
IP_RECVRETOPTS = 0x6
|
||||||
|
IP_RECVRSSBUCKETID = 0x5e
|
||||||
IP_RECVTOS = 0x44
|
IP_RECVTOS = 0x44
|
||||||
IP_RECVTTL = 0x41
|
IP_RECVTTL = 0x41
|
||||||
IP_RETOPTS = 0x8
|
IP_RETOPTS = 0x8
|
||||||
IP_RF = 0x8000
|
IP_RF = 0x8000
|
||||||
|
IP_RSSBUCKETID = 0x5c
|
||||||
|
IP_RSS_LISTEN_BUCKET = 0x1a
|
||||||
IP_RSVP_OFF = 0x10
|
IP_RSVP_OFF = 0x10
|
||||||
IP_RSVP_ON = 0xf
|
IP_RSVP_ON = 0xf
|
||||||
IP_RSVP_VIF_OFF = 0x12
|
IP_RSVP_VIF_OFF = 0x12
|
||||||
|
@ -1040,11 +970,11 @@ const (
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
MAP_HASSEMAPHORE = 0x200
|
MAP_HASSEMAPHORE = 0x200
|
||||||
MAP_NOCORE = 0x20000
|
MAP_NOCORE = 0x20000
|
||||||
MAP_NORESERVE = 0x40
|
|
||||||
MAP_NOSYNC = 0x800
|
MAP_NOSYNC = 0x800
|
||||||
MAP_PREFAULT_READ = 0x40000
|
MAP_PREFAULT_READ = 0x40000
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_RENAME = 0x20
|
MAP_RESERVED0020 = 0x20
|
||||||
|
MAP_RESERVED0040 = 0x40
|
||||||
MAP_RESERVED0080 = 0x80
|
MAP_RESERVED0080 = 0x80
|
||||||
MAP_RESERVED0100 = 0x100
|
MAP_RESERVED0100 = 0x100
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
@ -1065,6 +995,7 @@ const (
|
||||||
MSG_PEEK = 0x2
|
MSG_PEEK = 0x2
|
||||||
MSG_TRUNC = 0x10
|
MSG_TRUNC = 0x10
|
||||||
MSG_WAITALL = 0x40
|
MSG_WAITALL = 0x40
|
||||||
|
MSG_WAITFORONE = 0x80000
|
||||||
MS_ASYNC = 0x1
|
MS_ASYNC = 0x1
|
||||||
MS_INVALIDATE = 0x2
|
MS_INVALIDATE = 0x2
|
||||||
MS_SYNC = 0x0
|
MS_SYNC = 0x0
|
||||||
|
@ -1074,10 +1005,12 @@ const (
|
||||||
NET_RT_IFLIST = 0x3
|
NET_RT_IFLIST = 0x3
|
||||||
NET_RT_IFLISTL = 0x5
|
NET_RT_IFLISTL = 0x5
|
||||||
NET_RT_IFMALIST = 0x4
|
NET_RT_IFMALIST = 0x4
|
||||||
NET_RT_MAXID = 0x6
|
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
|
NOKERNINFO = 0x2000000
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
NOTE_CHILD = 0x4
|
NOTE_CHILD = 0x4
|
||||||
|
NOTE_CLOSE = 0x100
|
||||||
|
NOTE_CLOSE_WRITE = 0x200
|
||||||
NOTE_DELETE = 0x1
|
NOTE_DELETE = 0x1
|
||||||
NOTE_EXEC = 0x20000000
|
NOTE_EXEC = 0x20000000
|
||||||
NOTE_EXIT = 0x80000000
|
NOTE_EXIT = 0x80000000
|
||||||
|
@ -1088,16 +1021,23 @@ const (
|
||||||
NOTE_FFLAGSMASK = 0xffffff
|
NOTE_FFLAGSMASK = 0xffffff
|
||||||
NOTE_FFNOP = 0x0
|
NOTE_FFNOP = 0x0
|
||||||
NOTE_FFOR = 0x80000000
|
NOTE_FFOR = 0x80000000
|
||||||
|
NOTE_FILE_POLL = 0x2
|
||||||
NOTE_FORK = 0x40000000
|
NOTE_FORK = 0x40000000
|
||||||
NOTE_LINK = 0x10
|
NOTE_LINK = 0x10
|
||||||
NOTE_LOWAT = 0x1
|
NOTE_LOWAT = 0x1
|
||||||
|
NOTE_MSECONDS = 0x2
|
||||||
|
NOTE_NSECONDS = 0x8
|
||||||
|
NOTE_OPEN = 0x80
|
||||||
NOTE_PCTRLMASK = 0xf0000000
|
NOTE_PCTRLMASK = 0xf0000000
|
||||||
NOTE_PDATAMASK = 0xfffff
|
NOTE_PDATAMASK = 0xfffff
|
||||||
|
NOTE_READ = 0x400
|
||||||
NOTE_RENAME = 0x20
|
NOTE_RENAME = 0x20
|
||||||
NOTE_REVOKE = 0x40
|
NOTE_REVOKE = 0x40
|
||||||
|
NOTE_SECONDS = 0x1
|
||||||
NOTE_TRACK = 0x1
|
NOTE_TRACK = 0x1
|
||||||
NOTE_TRACKERR = 0x2
|
NOTE_TRACKERR = 0x2
|
||||||
NOTE_TRIGGER = 0x1000000
|
NOTE_TRIGGER = 0x1000000
|
||||||
|
NOTE_USECONDS = 0x4
|
||||||
NOTE_WRITE = 0x2
|
NOTE_WRITE = 0x2
|
||||||
OCRNL = 0x10
|
OCRNL = 0x10
|
||||||
ONLCR = 0x2
|
ONLCR = 0x2
|
||||||
|
@ -1105,6 +1045,7 @@ const (
|
||||||
ONOCR = 0x20
|
ONOCR = 0x20
|
||||||
ONOEOT = 0x8
|
ONOEOT = 0x8
|
||||||
OPOST = 0x1
|
OPOST = 0x1
|
||||||
|
OXTABS = 0x4
|
||||||
O_ACCMODE = 0x3
|
O_ACCMODE = 0x3
|
||||||
O_APPEND = 0x8
|
O_APPEND = 0x8
|
||||||
O_ASYNC = 0x40
|
O_ASYNC = 0x40
|
||||||
|
@ -1126,6 +1067,7 @@ const (
|
||||||
O_SYNC = 0x80
|
O_SYNC = 0x80
|
||||||
O_TRUNC = 0x400
|
O_TRUNC = 0x400
|
||||||
O_TTY_INIT = 0x80000
|
O_TTY_INIT = 0x80000
|
||||||
|
O_VERIFY = 0x200000
|
||||||
O_WRONLY = 0x1
|
O_WRONLY = 0x1
|
||||||
PARENB = 0x1000
|
PARENB = 0x1000
|
||||||
PARMRK = 0x8
|
PARMRK = 0x8
|
||||||
|
@ -1143,7 +1085,10 @@ const (
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
RLIMIT_DATA = 0x2
|
RLIMIT_DATA = 0x2
|
||||||
RLIMIT_FSIZE = 0x1
|
RLIMIT_FSIZE = 0x1
|
||||||
|
RLIMIT_MEMLOCK = 0x6
|
||||||
RLIMIT_NOFILE = 0x8
|
RLIMIT_NOFILE = 0x8
|
||||||
|
RLIMIT_NPROC = 0x7
|
||||||
|
RLIMIT_RSS = 0x5
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0x7fffffffffffffff
|
RLIM_INFINITY = 0x7fffffffffffffff
|
||||||
RTAX_AUTHOR = 0x6
|
RTAX_AUTHOR = 0x6
|
||||||
|
@ -1167,6 +1112,7 @@ const (
|
||||||
RTF_BROADCAST = 0x400000
|
RTF_BROADCAST = 0x400000
|
||||||
RTF_DONE = 0x40
|
RTF_DONE = 0x40
|
||||||
RTF_DYNAMIC = 0x10
|
RTF_DYNAMIC = 0x10
|
||||||
|
RTF_FIXEDMTU = 0x80000
|
||||||
RTF_FMASK = 0x1004d808
|
RTF_FMASK = 0x1004d808
|
||||||
RTF_GATEWAY = 0x2
|
RTF_GATEWAY = 0x2
|
||||||
RTF_GWFLAG_COMPAT = 0x80000000
|
RTF_GWFLAG_COMPAT = 0x80000000
|
||||||
|
@ -1177,7 +1123,6 @@ const (
|
||||||
RTF_MODIFIED = 0x20
|
RTF_MODIFIED = 0x20
|
||||||
RTF_MULTICAST = 0x800000
|
RTF_MULTICAST = 0x800000
|
||||||
RTF_PINNED = 0x100000
|
RTF_PINNED = 0x100000
|
||||||
RTF_PRCLONING = 0x10000
|
|
||||||
RTF_PROTO1 = 0x8000
|
RTF_PROTO1 = 0x8000
|
||||||
RTF_PROTO2 = 0x4000
|
RTF_PROTO2 = 0x4000
|
||||||
RTF_PROTO3 = 0x40000
|
RTF_PROTO3 = 0x40000
|
||||||
|
@ -1201,8 +1146,6 @@ const (
|
||||||
RTM_MISS = 0x7
|
RTM_MISS = 0x7
|
||||||
RTM_NEWADDR = 0xc
|
RTM_NEWADDR = 0xc
|
||||||
RTM_NEWMADDR = 0xf
|
RTM_NEWMADDR = 0xf
|
||||||
RTM_OLDADD = 0x9
|
|
||||||
RTM_OLDDEL = 0xa
|
|
||||||
RTM_REDIRECT = 0x6
|
RTM_REDIRECT = 0x6
|
||||||
RTM_RESOLVE = 0xb
|
RTM_RESOLVE = 0xb
|
||||||
RTM_RTTUNIT = 0xf4240
|
RTM_RTTUNIT = 0xf4240
|
||||||
|
@ -1217,9 +1160,19 @@ const (
|
||||||
RTV_SSTHRESH = 0x20
|
RTV_SSTHRESH = 0x20
|
||||||
RTV_WEIGHT = 0x100
|
RTV_WEIGHT = 0x100
|
||||||
RT_ALL_FIBS = -0x1
|
RT_ALL_FIBS = -0x1
|
||||||
|
RT_BLACKHOLE = 0x40
|
||||||
RT_CACHING_CONTEXT = 0x1
|
RT_CACHING_CONTEXT = 0x1
|
||||||
RT_DEFAULT_FIB = 0x0
|
RT_DEFAULT_FIB = 0x0
|
||||||
|
RT_HAS_GW = 0x80
|
||||||
|
RT_HAS_HEADER = 0x10
|
||||||
|
RT_HAS_HEADER_BIT = 0x4
|
||||||
|
RT_L2_ME = 0x4
|
||||||
|
RT_L2_ME_BIT = 0x2
|
||||||
|
RT_LLE_CACHE = 0x100
|
||||||
|
RT_MAY_LOOP = 0x8
|
||||||
|
RT_MAY_LOOP_BIT = 0x3
|
||||||
RT_NORTREF = 0x2
|
RT_NORTREF = 0x2
|
||||||
|
RT_REJECT = 0x20
|
||||||
RUSAGE_CHILDREN = -0x1
|
RUSAGE_CHILDREN = -0x1
|
||||||
RUSAGE_SELF = 0x0
|
RUSAGE_SELF = 0x0
|
||||||
RUSAGE_THREAD = 0x1
|
RUSAGE_THREAD = 0x1
|
||||||
|
@ -1231,21 +1184,18 @@ const (
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
SIOCADDMULTI = 0x80206931
|
SIOCADDMULTI = 0x80206931
|
||||||
SIOCADDRT = 0x8030720a
|
|
||||||
SIOCAIFADDR = 0x8040691a
|
SIOCAIFADDR = 0x8040691a
|
||||||
SIOCAIFGROUP = 0x80246987
|
SIOCAIFGROUP = 0x80246987
|
||||||
SIOCALIFADDR = 0x8118691b
|
|
||||||
SIOCATMARK = 0x40047307
|
SIOCATMARK = 0x40047307
|
||||||
SIOCDELMULTI = 0x80206932
|
SIOCDELMULTI = 0x80206932
|
||||||
SIOCDELRT = 0x8030720b
|
|
||||||
SIOCDIFADDR = 0x80206919
|
SIOCDIFADDR = 0x80206919
|
||||||
SIOCDIFGROUP = 0x80246989
|
SIOCDIFGROUP = 0x80246989
|
||||||
SIOCDIFPHYADDR = 0x80206949
|
SIOCDIFPHYADDR = 0x80206949
|
||||||
SIOCDLIFADDR = 0x8118691d
|
|
||||||
SIOCGDRVSPEC = 0xc01c697b
|
SIOCGDRVSPEC = 0xc01c697b
|
||||||
SIOCGETSGCNT = 0xc0147210
|
SIOCGETSGCNT = 0xc0147210
|
||||||
SIOCGETVIFCNT = 0xc014720f
|
SIOCGETVIFCNT = 0xc014720f
|
||||||
SIOCGHIWAT = 0x40047301
|
SIOCGHIWAT = 0x40047301
|
||||||
|
SIOCGI2C = 0xc020693d
|
||||||
SIOCGIFADDR = 0xc0206921
|
SIOCGIFADDR = 0xc0206921
|
||||||
SIOCGIFBRDADDR = 0xc0206923
|
SIOCGIFBRDADDR = 0xc0206923
|
||||||
SIOCGIFCAP = 0xc020691f
|
SIOCGIFCAP = 0xc020691f
|
||||||
|
@ -1267,12 +1217,12 @@ const (
|
||||||
SIOCGIFPHYS = 0xc0206935
|
SIOCGIFPHYS = 0xc0206935
|
||||||
SIOCGIFPSRCADDR = 0xc0206947
|
SIOCGIFPSRCADDR = 0xc0206947
|
||||||
SIOCGIFSTATUS = 0xc331693b
|
SIOCGIFSTATUS = 0xc331693b
|
||||||
SIOCGLIFADDR = 0xc118691c
|
SIOCGIFXMEDIA = 0xc028698b
|
||||||
SIOCGLIFPHYADDR = 0xc118694b
|
|
||||||
SIOCGLOWAT = 0x40047303
|
SIOCGLOWAT = 0x40047303
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
SIOCGPRIVATE_0 = 0xc0206950
|
SIOCGPRIVATE_0 = 0xc0206950
|
||||||
SIOCGPRIVATE_1 = 0xc0206951
|
SIOCGPRIVATE_1 = 0xc0206951
|
||||||
|
SIOCGTUNFIB = 0xc020695e
|
||||||
SIOCIFCREATE = 0xc020697a
|
SIOCIFCREATE = 0xc020697a
|
||||||
SIOCIFCREATE2 = 0xc020697c
|
SIOCIFCREATE2 = 0xc020697c
|
||||||
SIOCIFDESTROY = 0x80206979
|
SIOCIFDESTROY = 0x80206979
|
||||||
|
@ -1298,9 +1248,9 @@ const (
|
||||||
SIOCSIFPHYS = 0x80206936
|
SIOCSIFPHYS = 0x80206936
|
||||||
SIOCSIFRVNET = 0xc020695b
|
SIOCSIFRVNET = 0xc020695b
|
||||||
SIOCSIFVNET = 0xc020695a
|
SIOCSIFVNET = 0xc020695a
|
||||||
SIOCSLIFPHYADDR = 0x8118694a
|
|
||||||
SIOCSLOWAT = 0x80047302
|
SIOCSLOWAT = 0x80047302
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
|
SIOCSTUNFIB = 0x8020695f
|
||||||
SOCK_CLOEXEC = 0x10000000
|
SOCK_CLOEXEC = 0x10000000
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
SOCK_MAXADDRLEN = 0xff
|
SOCK_MAXADDRLEN = 0xff
|
||||||
|
@ -1345,11 +1295,22 @@ const (
|
||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
SO_USER_COOKIE = 0x1015
|
SO_USER_COOKIE = 0x1015
|
||||||
SO_VENDOR = 0x80000000
|
SO_VENDOR = 0x80000000
|
||||||
|
TAB0 = 0x0
|
||||||
|
TAB3 = 0x4
|
||||||
|
TABDLY = 0x4
|
||||||
TCIFLUSH = 0x1
|
TCIFLUSH = 0x1
|
||||||
|
TCIOFF = 0x3
|
||||||
TCIOFLUSH = 0x3
|
TCIOFLUSH = 0x3
|
||||||
|
TCION = 0x4
|
||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
|
TCOOFF = 0x1
|
||||||
|
TCOON = 0x2
|
||||||
TCP_CA_NAME_MAX = 0x10
|
TCP_CA_NAME_MAX = 0x10
|
||||||
|
TCP_CCALGOOPT = 0x41
|
||||||
TCP_CONGESTION = 0x40
|
TCP_CONGESTION = 0x40
|
||||||
|
TCP_FASTOPEN = 0x401
|
||||||
|
TCP_FUNCTION_BLK = 0x2000
|
||||||
|
TCP_FUNCTION_NAME_LEN_MAX = 0x20
|
||||||
TCP_INFO = 0x20
|
TCP_INFO = 0x20
|
||||||
TCP_KEEPCNT = 0x400
|
TCP_KEEPCNT = 0x400
|
||||||
TCP_KEEPIDLE = 0x100
|
TCP_KEEPIDLE = 0x100
|
||||||
|
@ -1368,6 +1329,8 @@ const (
|
||||||
TCP_NODELAY = 0x1
|
TCP_NODELAY = 0x1
|
||||||
TCP_NOOPT = 0x8
|
TCP_NOOPT = 0x8
|
||||||
TCP_NOPUSH = 0x4
|
TCP_NOPUSH = 0x4
|
||||||
|
TCP_PCAP_IN = 0x1000
|
||||||
|
TCP_PCAP_OUT = 0x800
|
||||||
TCP_VENDOR = 0x80000000
|
TCP_VENDOR = 0x80000000
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
TIOCCBRK = 0x2000747a
|
TIOCCBRK = 0x2000747a
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mkerrors.sh -m64
|
// mkerrors.sh -m64
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build amd64,freebsd
|
// +build amd64,freebsd
|
||||||
|
|
||||||
|
@ -98,6 +98,7 @@ const (
|
||||||
AF_VENDOR45 = 0x81
|
AF_VENDOR45 = 0x81
|
||||||
AF_VENDOR46 = 0x83
|
AF_VENDOR46 = 0x83
|
||||||
AF_VENDOR47 = 0x85
|
AF_VENDOR47 = 0x85
|
||||||
|
ALTWERASE = 0x200
|
||||||
B0 = 0x0
|
B0 = 0x0
|
||||||
B110 = 0x6e
|
B110 = 0x6e
|
||||||
B115200 = 0x1c200
|
B115200 = 0x1c200
|
||||||
|
@ -189,6 +190,7 @@ const (
|
||||||
BPF_MINBUFSIZE = 0x20
|
BPF_MINBUFSIZE = 0x20
|
||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
|
BPF_MOD = 0x90
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
|
@ -222,7 +224,105 @@ const (
|
||||||
BPF_T_NORMAL = 0x0
|
BPF_T_NORMAL = 0x0
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
|
CAP_ACCEPT = 0x200000020000000
|
||||||
|
CAP_ACL_CHECK = 0x400000000010000
|
||||||
|
CAP_ACL_DELETE = 0x400000000020000
|
||||||
|
CAP_ACL_GET = 0x400000000040000
|
||||||
|
CAP_ACL_SET = 0x400000000080000
|
||||||
|
CAP_ALL0 = 0x20007ffffffffff
|
||||||
|
CAP_ALL1 = 0x4000000001fffff
|
||||||
|
CAP_BIND = 0x200000040000000
|
||||||
|
CAP_BINDAT = 0x200008000000400
|
||||||
|
CAP_CHFLAGSAT = 0x200000000001400
|
||||||
|
CAP_CONNECT = 0x200000080000000
|
||||||
|
CAP_CONNECTAT = 0x200010000000400
|
||||||
|
CAP_CREATE = 0x200000000000040
|
||||||
|
CAP_EVENT = 0x400000000000020
|
||||||
|
CAP_EXTATTR_DELETE = 0x400000000001000
|
||||||
|
CAP_EXTATTR_GET = 0x400000000002000
|
||||||
|
CAP_EXTATTR_LIST = 0x400000000004000
|
||||||
|
CAP_EXTATTR_SET = 0x400000000008000
|
||||||
|
CAP_FCHDIR = 0x200000000000800
|
||||||
|
CAP_FCHFLAGS = 0x200000000001000
|
||||||
|
CAP_FCHMOD = 0x200000000002000
|
||||||
|
CAP_FCHMODAT = 0x200000000002400
|
||||||
|
CAP_FCHOWN = 0x200000000004000
|
||||||
|
CAP_FCHOWNAT = 0x200000000004400
|
||||||
|
CAP_FCNTL = 0x200000000008000
|
||||||
|
CAP_FCNTL_ALL = 0x78
|
||||||
|
CAP_FCNTL_GETFL = 0x8
|
||||||
|
CAP_FCNTL_GETOWN = 0x20
|
||||||
|
CAP_FCNTL_SETFL = 0x10
|
||||||
|
CAP_FCNTL_SETOWN = 0x40
|
||||||
|
CAP_FEXECVE = 0x200000000000080
|
||||||
|
CAP_FLOCK = 0x200000000010000
|
||||||
|
CAP_FPATHCONF = 0x200000000020000
|
||||||
|
CAP_FSCK = 0x200000000040000
|
||||||
|
CAP_FSTAT = 0x200000000080000
|
||||||
|
CAP_FSTATAT = 0x200000000080400
|
||||||
|
CAP_FSTATFS = 0x200000000100000
|
||||||
|
CAP_FSYNC = 0x200000000000100
|
||||||
|
CAP_FTRUNCATE = 0x200000000000200
|
||||||
|
CAP_FUTIMES = 0x200000000200000
|
||||||
|
CAP_FUTIMESAT = 0x200000000200400
|
||||||
|
CAP_GETPEERNAME = 0x200000100000000
|
||||||
|
CAP_GETSOCKNAME = 0x200000200000000
|
||||||
|
CAP_GETSOCKOPT = 0x200000400000000
|
||||||
|
CAP_IOCTL = 0x400000000000080
|
||||||
|
CAP_IOCTLS_ALL = 0x7fffffffffffffff
|
||||||
|
CAP_KQUEUE = 0x400000000100040
|
||||||
|
CAP_KQUEUE_CHANGE = 0x400000000100000
|
||||||
|
CAP_KQUEUE_EVENT = 0x400000000000040
|
||||||
|
CAP_LINKAT_SOURCE = 0x200020000000400
|
||||||
|
CAP_LINKAT_TARGET = 0x200000000400400
|
||||||
|
CAP_LISTEN = 0x200000800000000
|
||||||
|
CAP_LOOKUP = 0x200000000000400
|
||||||
|
CAP_MAC_GET = 0x400000000000001
|
||||||
|
CAP_MAC_SET = 0x400000000000002
|
||||||
|
CAP_MKDIRAT = 0x200000000800400
|
||||||
|
CAP_MKFIFOAT = 0x200000001000400
|
||||||
|
CAP_MKNODAT = 0x200000002000400
|
||||||
|
CAP_MMAP = 0x200000000000010
|
||||||
|
CAP_MMAP_R = 0x20000000000001d
|
||||||
|
CAP_MMAP_RW = 0x20000000000001f
|
||||||
|
CAP_MMAP_RWX = 0x20000000000003f
|
||||||
|
CAP_MMAP_RX = 0x20000000000003d
|
||||||
|
CAP_MMAP_W = 0x20000000000001e
|
||||||
|
CAP_MMAP_WX = 0x20000000000003e
|
||||||
|
CAP_MMAP_X = 0x20000000000003c
|
||||||
|
CAP_PDGETPID = 0x400000000000200
|
||||||
|
CAP_PDKILL = 0x400000000000800
|
||||||
|
CAP_PDWAIT = 0x400000000000400
|
||||||
|
CAP_PEELOFF = 0x200001000000000
|
||||||
|
CAP_POLL_EVENT = 0x400000000000020
|
||||||
|
CAP_PREAD = 0x20000000000000d
|
||||||
|
CAP_PWRITE = 0x20000000000000e
|
||||||
|
CAP_READ = 0x200000000000001
|
||||||
|
CAP_RECV = 0x200000000000001
|
||||||
|
CAP_RENAMEAT_SOURCE = 0x200000004000400
|
||||||
|
CAP_RENAMEAT_TARGET = 0x200040000000400
|
||||||
|
CAP_RIGHTS_VERSION = 0x0
|
||||||
|
CAP_RIGHTS_VERSION_00 = 0x0
|
||||||
|
CAP_SEEK = 0x20000000000000c
|
||||||
|
CAP_SEEK_TELL = 0x200000000000004
|
||||||
|
CAP_SEM_GETVALUE = 0x400000000000004
|
||||||
|
CAP_SEM_POST = 0x400000000000008
|
||||||
|
CAP_SEM_WAIT = 0x400000000000010
|
||||||
|
CAP_SEND = 0x200000000000002
|
||||||
|
CAP_SETSOCKOPT = 0x200002000000000
|
||||||
|
CAP_SHUTDOWN = 0x200004000000000
|
||||||
|
CAP_SOCK_CLIENT = 0x200007780000003
|
||||||
|
CAP_SOCK_SERVER = 0x200007f60000003
|
||||||
|
CAP_SYMLINKAT = 0x200000008000400
|
||||||
|
CAP_TTYHOOK = 0x400000000000100
|
||||||
|
CAP_UNLINKAT = 0x200000010000400
|
||||||
|
CAP_UNUSED0_44 = 0x200080000000000
|
||||||
|
CAP_UNUSED0_57 = 0x300000000000000
|
||||||
|
CAP_UNUSED1_22 = 0x400000000200000
|
||||||
|
CAP_UNUSED1_57 = 0x500000000000000
|
||||||
|
CAP_WRITE = 0x200000000000002
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
CLOCAL = 0x8000
|
CLOCAL = 0x8000
|
||||||
CLOCK_MONOTONIC = 0x4
|
CLOCK_MONOTONIC = 0x4
|
||||||
|
@ -240,6 +340,7 @@ const (
|
||||||
CLOCK_UPTIME_PRECISE = 0x7
|
CLOCK_UPTIME_PRECISE = 0x7
|
||||||
CLOCK_VIRTUAL = 0x1
|
CLOCK_VIRTUAL = 0x1
|
||||||
CREAD = 0x800
|
CREAD = 0x800
|
||||||
|
CRTSCTS = 0x30000
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x100
|
CS6 = 0x100
|
||||||
CS7 = 0x200
|
CS7 = 0x200
|
||||||
|
@ -265,8 +366,12 @@ const (
|
||||||
DLT_AX25 = 0x3
|
DLT_AX25 = 0x3
|
||||||
DLT_AX25_KISS = 0xca
|
DLT_AX25_KISS = 0xca
|
||||||
DLT_BACNET_MS_TP = 0xa5
|
DLT_BACNET_MS_TP = 0xa5
|
||||||
|
DLT_BLUETOOTH_BREDR_BB = 0xff
|
||||||
DLT_BLUETOOTH_HCI_H4 = 0xbb
|
DLT_BLUETOOTH_HCI_H4 = 0xbb
|
||||||
DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
|
DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
|
||||||
|
DLT_BLUETOOTH_LE_LL = 0xfb
|
||||||
|
DLT_BLUETOOTH_LE_LL_WITH_PHDR = 0x100
|
||||||
|
DLT_BLUETOOTH_LINUX_MONITOR = 0xfe
|
||||||
DLT_CAN20B = 0xbe
|
DLT_CAN20B = 0xbe
|
||||||
DLT_CAN_SOCKETCAN = 0xe3
|
DLT_CAN_SOCKETCAN = 0xe3
|
||||||
DLT_CHAOS = 0x5
|
DLT_CHAOS = 0x5
|
||||||
|
@ -282,6 +387,7 @@ const (
|
||||||
DLT_EN10MB = 0x1
|
DLT_EN10MB = 0x1
|
||||||
DLT_EN3MB = 0x2
|
DLT_EN3MB = 0x2
|
||||||
DLT_ENC = 0x6d
|
DLT_ENC = 0x6d
|
||||||
|
DLT_EPON = 0x103
|
||||||
DLT_ERF = 0xc5
|
DLT_ERF = 0xc5
|
||||||
DLT_ERF_ETH = 0xaf
|
DLT_ERF_ETH = 0xaf
|
||||||
DLT_ERF_POS = 0xb0
|
DLT_ERF_POS = 0xb0
|
||||||
|
@ -311,9 +417,11 @@ const (
|
||||||
DLT_IEEE802_15_4_NONASK_PHY = 0xd7
|
DLT_IEEE802_15_4_NONASK_PHY = 0xd7
|
||||||
DLT_IEEE802_16_MAC_CPS = 0xbc
|
DLT_IEEE802_16_MAC_CPS = 0xbc
|
||||||
DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
|
DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
|
||||||
|
DLT_INFINIBAND = 0xf7
|
||||||
DLT_IPFILTER = 0x74
|
DLT_IPFILTER = 0x74
|
||||||
DLT_IPMB = 0xc7
|
DLT_IPMB = 0xc7
|
||||||
DLT_IPMB_LINUX = 0xd1
|
DLT_IPMB_LINUX = 0xd1
|
||||||
|
DLT_IPMI_HPM_2 = 0x104
|
||||||
DLT_IPNET = 0xe2
|
DLT_IPNET = 0xe2
|
||||||
DLT_IPOIB = 0xf2
|
DLT_IPOIB = 0xf2
|
||||||
DLT_IPV4 = 0xe4
|
DLT_IPV4 = 0xe4
|
||||||
|
@ -352,7 +460,7 @@ const (
|
||||||
DLT_LINUX_SLL = 0x71
|
DLT_LINUX_SLL = 0x71
|
||||||
DLT_LOOP = 0x6c
|
DLT_LOOP = 0x6c
|
||||||
DLT_LTALK = 0x72
|
DLT_LTALK = 0x72
|
||||||
DLT_MATCHING_MAX = 0xf6
|
DLT_MATCHING_MAX = 0x104
|
||||||
DLT_MATCHING_MIN = 0x68
|
DLT_MATCHING_MIN = 0x68
|
||||||
DLT_MFR = 0xb6
|
DLT_MFR = 0xb6
|
||||||
DLT_MOST = 0xd3
|
DLT_MOST = 0xd3
|
||||||
|
@ -364,6 +472,7 @@ const (
|
||||||
DLT_MUX27010 = 0xec
|
DLT_MUX27010 = 0xec
|
||||||
DLT_NETANALYZER = 0xf0
|
DLT_NETANALYZER = 0xf0
|
||||||
DLT_NETANALYZER_TRANSPARENT = 0xf1
|
DLT_NETANALYZER_TRANSPARENT = 0xf1
|
||||||
|
DLT_NETLINK = 0xfd
|
||||||
DLT_NFC_LLCP = 0xf5
|
DLT_NFC_LLCP = 0xf5
|
||||||
DLT_NFLOG = 0xef
|
DLT_NFLOG = 0xef
|
||||||
DLT_NG40 = 0xf4
|
DLT_NG40 = 0xf4
|
||||||
|
@ -371,6 +480,7 @@ const (
|
||||||
DLT_PCI_EXP = 0x7d
|
DLT_PCI_EXP = 0x7d
|
||||||
DLT_PFLOG = 0x75
|
DLT_PFLOG = 0x75
|
||||||
DLT_PFSYNC = 0x79
|
DLT_PFSYNC = 0x79
|
||||||
|
DLT_PKTAP = 0x102
|
||||||
DLT_PPI = 0xc0
|
DLT_PPI = 0xc0
|
||||||
DLT_PPP = 0x9
|
DLT_PPP = 0x9
|
||||||
DLT_PPP_BSDOS = 0x10
|
DLT_PPP_BSDOS = 0x10
|
||||||
|
@ -380,11 +490,14 @@ const (
|
||||||
DLT_PPP_WITH_DIR = 0xcc
|
DLT_PPP_WITH_DIR = 0xcc
|
||||||
DLT_PPP_WITH_DIRECTION = 0xa6
|
DLT_PPP_WITH_DIRECTION = 0xa6
|
||||||
DLT_PRISM_HEADER = 0x77
|
DLT_PRISM_HEADER = 0x77
|
||||||
|
DLT_PROFIBUS_DL = 0x101
|
||||||
DLT_PRONET = 0x4
|
DLT_PRONET = 0x4
|
||||||
DLT_RAIF1 = 0xc6
|
DLT_RAIF1 = 0xc6
|
||||||
DLT_RAW = 0xc
|
DLT_RAW = 0xc
|
||||||
DLT_RIO = 0x7c
|
DLT_RIO = 0x7c
|
||||||
|
DLT_RTAC_SERIAL = 0xfa
|
||||||
DLT_SCCP = 0x8e
|
DLT_SCCP = 0x8e
|
||||||
|
DLT_SCTP = 0xf8
|
||||||
DLT_SITA = 0xc4
|
DLT_SITA = 0xc4
|
||||||
DLT_SLIP = 0x8
|
DLT_SLIP = 0x8
|
||||||
DLT_SLIP_BSDOS = 0xf
|
DLT_SLIP_BSDOS = 0xf
|
||||||
|
@ -393,6 +506,7 @@ const (
|
||||||
DLT_SYMANTEC_FIREWALL = 0x63
|
DLT_SYMANTEC_FIREWALL = 0x63
|
||||||
DLT_TZSP = 0x80
|
DLT_TZSP = 0x80
|
||||||
DLT_USB = 0xba
|
DLT_USB = 0xba
|
||||||
|
DLT_USBPCAP = 0xf9
|
||||||
DLT_USB_LINUX = 0xbd
|
DLT_USB_LINUX = 0xbd
|
||||||
DLT_USB_LINUX_MMAPPED = 0xdc
|
DLT_USB_LINUX_MMAPPED = 0xdc
|
||||||
DLT_USER0 = 0x93
|
DLT_USER0 = 0x93
|
||||||
|
@ -412,6 +526,7 @@ const (
|
||||||
DLT_USER8 = 0x9b
|
DLT_USER8 = 0x9b
|
||||||
DLT_USER9 = 0x9c
|
DLT_USER9 = 0x9c
|
||||||
DLT_WIHART = 0xdf
|
DLT_WIHART = 0xdf
|
||||||
|
DLT_WIRESHARK_UPPER_PDU = 0xfc
|
||||||
DLT_X2E_SERIAL = 0xd5
|
DLT_X2E_SERIAL = 0xd5
|
||||||
DLT_X2E_XORAYA = 0xd6
|
DLT_X2E_XORAYA = 0xd6
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
|
@ -434,9 +549,11 @@ const (
|
||||||
EVFILT_FS = -0x9
|
EVFILT_FS = -0x9
|
||||||
EVFILT_LIO = -0xa
|
EVFILT_LIO = -0xa
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
|
EVFILT_PROCDESC = -0x8
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
|
EVFILT_SENDFILE = -0xc
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0xb
|
EVFILT_SYSCOUNT = 0xc
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
EVFILT_USER = -0xb
|
EVFILT_USER = -0xb
|
||||||
EVFILT_VNODE = -0x4
|
EVFILT_VNODE = -0x4
|
||||||
|
@ -451,6 +568,8 @@ const (
|
||||||
EV_EOF = 0x8000
|
EV_EOF = 0x8000
|
||||||
EV_ERROR = 0x4000
|
EV_ERROR = 0x4000
|
||||||
EV_FLAG1 = 0x2000
|
EV_FLAG1 = 0x2000
|
||||||
|
EV_FLAG2 = 0x4000
|
||||||
|
EV_FORCEONESHOT = 0x100
|
||||||
EV_ONESHOT = 0x10
|
EV_ONESHOT = 0x10
|
||||||
EV_RECEIPT = 0x40
|
EV_RECEIPT = 0x40
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_SYSFLAGS = 0xf000
|
||||||
|
@ -498,7 +617,7 @@ const (
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ALTPHYS = 0x4000
|
IFF_ALTPHYS = 0x4000
|
||||||
IFF_BROADCAST = 0x2
|
IFF_BROADCAST = 0x2
|
||||||
IFF_CANTCHANGE = 0x218f72
|
IFF_CANTCHANGE = 0x218f52
|
||||||
IFF_CANTCONFIG = 0x10000
|
IFF_CANTCONFIG = 0x10000
|
||||||
IFF_DEBUG = 0x4
|
IFF_DEBUG = 0x4
|
||||||
IFF_DRV_OACTIVE = 0x400
|
IFF_DRV_OACTIVE = 0x400
|
||||||
|
@ -518,217 +637,17 @@ const (
|
||||||
IFF_RENAMING = 0x400000
|
IFF_RENAMING = 0x400000
|
||||||
IFF_RUNNING = 0x40
|
IFF_RUNNING = 0x40
|
||||||
IFF_SIMPLEX = 0x800
|
IFF_SIMPLEX = 0x800
|
||||||
IFF_SMART = 0x20
|
|
||||||
IFF_STATICARP = 0x80000
|
IFF_STATICARP = 0x80000
|
||||||
IFF_UP = 0x1
|
IFF_UP = 0x1
|
||||||
IFNAMSIZ = 0x10
|
IFNAMSIZ = 0x10
|
||||||
IFT_1822 = 0x2
|
|
||||||
IFT_A12MPPSWITCH = 0x82
|
|
||||||
IFT_AAL2 = 0xbb
|
|
||||||
IFT_AAL5 = 0x31
|
|
||||||
IFT_ADSL = 0x5e
|
|
||||||
IFT_AFLANE8023 = 0x3b
|
|
||||||
IFT_AFLANE8025 = 0x3c
|
|
||||||
IFT_ARAP = 0x58
|
|
||||||
IFT_ARCNET = 0x23
|
|
||||||
IFT_ARCNETPLUS = 0x24
|
|
||||||
IFT_ASYNC = 0x54
|
|
||||||
IFT_ATM = 0x25
|
|
||||||
IFT_ATMDXI = 0x69
|
|
||||||
IFT_ATMFUNI = 0x6a
|
|
||||||
IFT_ATMIMA = 0x6b
|
|
||||||
IFT_ATMLOGICAL = 0x50
|
|
||||||
IFT_ATMRADIO = 0xbd
|
|
||||||
IFT_ATMSUBINTERFACE = 0x86
|
|
||||||
IFT_ATMVCIENDPT = 0xc2
|
|
||||||
IFT_ATMVIRTUAL = 0x95
|
|
||||||
IFT_BGPPOLICYACCOUNTING = 0xa2
|
|
||||||
IFT_BRIDGE = 0xd1
|
IFT_BRIDGE = 0xd1
|
||||||
IFT_BSC = 0x53
|
|
||||||
IFT_CARP = 0xf8
|
IFT_CARP = 0xf8
|
||||||
IFT_CCTEMUL = 0x3d
|
|
||||||
IFT_CEPT = 0x13
|
|
||||||
IFT_CES = 0x85
|
|
||||||
IFT_CHANNEL = 0x46
|
|
||||||
IFT_CNR = 0x55
|
|
||||||
IFT_COFFEE = 0x84
|
|
||||||
IFT_COMPOSITELINK = 0x9b
|
|
||||||
IFT_DCN = 0x8d
|
|
||||||
IFT_DIGITALPOWERLINE = 0x8a
|
|
||||||
IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba
|
|
||||||
IFT_DLSW = 0x4a
|
|
||||||
IFT_DOCSCABLEDOWNSTREAM = 0x80
|
|
||||||
IFT_DOCSCABLEMACLAYER = 0x7f
|
|
||||||
IFT_DOCSCABLEUPSTREAM = 0x81
|
|
||||||
IFT_DS0 = 0x51
|
|
||||||
IFT_DS0BUNDLE = 0x52
|
|
||||||
IFT_DS1FDL = 0xaa
|
|
||||||
IFT_DS3 = 0x1e
|
|
||||||
IFT_DTM = 0x8c
|
|
||||||
IFT_DVBASILN = 0xac
|
|
||||||
IFT_DVBASIOUT = 0xad
|
|
||||||
IFT_DVBRCCDOWNSTREAM = 0x93
|
|
||||||
IFT_DVBRCCMACLAYER = 0x92
|
|
||||||
IFT_DVBRCCUPSTREAM = 0x94
|
|
||||||
IFT_ENC = 0xf4
|
|
||||||
IFT_EON = 0x19
|
|
||||||
IFT_EPLRS = 0x57
|
|
||||||
IFT_ESCON = 0x49
|
|
||||||
IFT_ETHER = 0x6
|
|
||||||
IFT_FAITH = 0xf2
|
|
||||||
IFT_FAST = 0x7d
|
|
||||||
IFT_FASTETHER = 0x3e
|
|
||||||
IFT_FASTETHERFX = 0x45
|
|
||||||
IFT_FDDI = 0xf
|
|
||||||
IFT_FIBRECHANNEL = 0x38
|
|
||||||
IFT_FRAMERELAYINTERCONNECT = 0x3a
|
|
||||||
IFT_FRAMERELAYMPI = 0x5c
|
|
||||||
IFT_FRDLCIENDPT = 0xc1
|
|
||||||
IFT_FRELAY = 0x20
|
|
||||||
IFT_FRELAYDCE = 0x2c
|
|
||||||
IFT_FRF16MFRBUNDLE = 0xa3
|
|
||||||
IFT_FRFORWARD = 0x9e
|
|
||||||
IFT_G703AT2MB = 0x43
|
|
||||||
IFT_G703AT64K = 0x42
|
|
||||||
IFT_GIF = 0xf0
|
|
||||||
IFT_GIGABITETHERNET = 0x75
|
|
||||||
IFT_GR303IDT = 0xb2
|
|
||||||
IFT_GR303RDT = 0xb1
|
|
||||||
IFT_H323GATEKEEPER = 0xa4
|
|
||||||
IFT_H323PROXY = 0xa5
|
|
||||||
IFT_HDH1822 = 0x3
|
|
||||||
IFT_HDLC = 0x76
|
|
||||||
IFT_HDSL2 = 0xa8
|
|
||||||
IFT_HIPERLAN2 = 0xb7
|
|
||||||
IFT_HIPPI = 0x2f
|
|
||||||
IFT_HIPPIINTERFACE = 0x39
|
|
||||||
IFT_HOSTPAD = 0x5a
|
|
||||||
IFT_HSSI = 0x2e
|
|
||||||
IFT_HY = 0xe
|
|
||||||
IFT_IBM370PARCHAN = 0x48
|
|
||||||
IFT_IDSL = 0x9a
|
|
||||||
IFT_IEEE1394 = 0x90
|
IFT_IEEE1394 = 0x90
|
||||||
IFT_IEEE80211 = 0x47
|
|
||||||
IFT_IEEE80212 = 0x37
|
|
||||||
IFT_IEEE8023ADLAG = 0xa1
|
|
||||||
IFT_IFGSN = 0x91
|
|
||||||
IFT_IMT = 0xbe
|
|
||||||
IFT_INFINIBAND = 0xc7
|
IFT_INFINIBAND = 0xc7
|
||||||
IFT_INTERLEAVE = 0x7c
|
|
||||||
IFT_IP = 0x7e
|
|
||||||
IFT_IPFORWARD = 0x8e
|
|
||||||
IFT_IPOVERATM = 0x72
|
|
||||||
IFT_IPOVERCDLC = 0x6d
|
|
||||||
IFT_IPOVERCLAW = 0x6e
|
|
||||||
IFT_IPSWITCH = 0x4e
|
|
||||||
IFT_IPXIP = 0xf9
|
|
||||||
IFT_ISDN = 0x3f
|
|
||||||
IFT_ISDNBASIC = 0x14
|
|
||||||
IFT_ISDNPRIMARY = 0x15
|
|
||||||
IFT_ISDNS = 0x4b
|
|
||||||
IFT_ISDNU = 0x4c
|
|
||||||
IFT_ISO88022LLC = 0x29
|
|
||||||
IFT_ISO88023 = 0x7
|
|
||||||
IFT_ISO88024 = 0x8
|
|
||||||
IFT_ISO88025 = 0x9
|
|
||||||
IFT_ISO88025CRFPINT = 0x62
|
|
||||||
IFT_ISO88025DTR = 0x56
|
|
||||||
IFT_ISO88025FIBER = 0x73
|
|
||||||
IFT_ISO88026 = 0xa
|
|
||||||
IFT_ISUP = 0xb3
|
|
||||||
IFT_L2VLAN = 0x87
|
IFT_L2VLAN = 0x87
|
||||||
IFT_L3IPVLAN = 0x88
|
IFT_L3IPVLAN = 0x88
|
||||||
IFT_L3IPXVLAN = 0x89
|
|
||||||
IFT_LAPB = 0x10
|
|
||||||
IFT_LAPD = 0x4d
|
|
||||||
IFT_LAPF = 0x77
|
|
||||||
IFT_LOCALTALK = 0x2a
|
|
||||||
IFT_LOOP = 0x18
|
|
||||||
IFT_MEDIAMAILOVERIP = 0x8b
|
|
||||||
IFT_MFSIGLINK = 0xa7
|
|
||||||
IFT_MIOX25 = 0x26
|
|
||||||
IFT_MODEM = 0x30
|
|
||||||
IFT_MPC = 0x71
|
|
||||||
IFT_MPLS = 0xa6
|
|
||||||
IFT_MPLSTUNNEL = 0x96
|
|
||||||
IFT_MSDSL = 0x8f
|
|
||||||
IFT_MVL = 0xbf
|
|
||||||
IFT_MYRINET = 0x63
|
|
||||||
IFT_NFAS = 0xaf
|
|
||||||
IFT_NSIP = 0x1b
|
|
||||||
IFT_OPTICALCHANNEL = 0xc3
|
|
||||||
IFT_OPTICALTRANSPORT = 0xc4
|
|
||||||
IFT_OTHER = 0x1
|
|
||||||
IFT_P10 = 0xc
|
|
||||||
IFT_P80 = 0xd
|
|
||||||
IFT_PARA = 0x22
|
|
||||||
IFT_PFLOG = 0xf6
|
|
||||||
IFT_PFSYNC = 0xf7
|
|
||||||
IFT_PLC = 0xae
|
|
||||||
IFT_POS = 0xab
|
|
||||||
IFT_PPP = 0x17
|
IFT_PPP = 0x17
|
||||||
IFT_PPPMULTILINKBUNDLE = 0x6c
|
|
||||||
IFT_PROPBWAP2MP = 0xb8
|
|
||||||
IFT_PROPCNLS = 0x59
|
|
||||||
IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5
|
|
||||||
IFT_PROPDOCSWIRELESSMACLAYER = 0xb4
|
|
||||||
IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6
|
|
||||||
IFT_PROPMUX = 0x36
|
|
||||||
IFT_PROPVIRTUAL = 0x35
|
IFT_PROPVIRTUAL = 0x35
|
||||||
IFT_PROPWIRELESSP2P = 0x9d
|
|
||||||
IFT_PTPSERIAL = 0x16
|
|
||||||
IFT_PVC = 0xf1
|
|
||||||
IFT_QLLC = 0x44
|
|
||||||
IFT_RADIOMAC = 0xbc
|
|
||||||
IFT_RADSL = 0x5f
|
|
||||||
IFT_REACHDSL = 0xc0
|
|
||||||
IFT_RFC1483 = 0x9f
|
|
||||||
IFT_RS232 = 0x21
|
|
||||||
IFT_RSRB = 0x4f
|
|
||||||
IFT_SDLC = 0x11
|
|
||||||
IFT_SDSL = 0x60
|
|
||||||
IFT_SHDSL = 0xa9
|
|
||||||
IFT_SIP = 0x1f
|
|
||||||
IFT_SLIP = 0x1c
|
|
||||||
IFT_SMDSDXI = 0x2b
|
|
||||||
IFT_SMDSICIP = 0x34
|
|
||||||
IFT_SONET = 0x27
|
|
||||||
IFT_SONETOVERHEADCHANNEL = 0xb9
|
|
||||||
IFT_SONETPATH = 0x32
|
|
||||||
IFT_SONETVT = 0x33
|
|
||||||
IFT_SRP = 0x97
|
|
||||||
IFT_SS7SIGLINK = 0x9c
|
|
||||||
IFT_STACKTOSTACK = 0x6f
|
|
||||||
IFT_STARLAN = 0xb
|
|
||||||
IFT_STF = 0xd7
|
|
||||||
IFT_T1 = 0x12
|
|
||||||
IFT_TDLC = 0x74
|
|
||||||
IFT_TERMPAD = 0x5b
|
|
||||||
IFT_TR008 = 0xb0
|
|
||||||
IFT_TRANSPHDLC = 0x7b
|
|
||||||
IFT_TUNNEL = 0x83
|
|
||||||
IFT_ULTRA = 0x1d
|
|
||||||
IFT_USB = 0xa0
|
|
||||||
IFT_V11 = 0x40
|
|
||||||
IFT_V35 = 0x2d
|
|
||||||
IFT_V36 = 0x41
|
|
||||||
IFT_V37 = 0x78
|
|
||||||
IFT_VDSL = 0x61
|
|
||||||
IFT_VIRTUALIPADDRESS = 0x70
|
|
||||||
IFT_VOICEEM = 0x64
|
|
||||||
IFT_VOICEENCAP = 0x67
|
|
||||||
IFT_VOICEFXO = 0x65
|
|
||||||
IFT_VOICEFXS = 0x66
|
|
||||||
IFT_VOICEOVERATM = 0x98
|
|
||||||
IFT_VOICEOVERFRAMERELAY = 0x99
|
|
||||||
IFT_VOICEOVERIP = 0x68
|
|
||||||
IFT_X213 = 0x5d
|
|
||||||
IFT_X25 = 0x5
|
|
||||||
IFT_X25DDN = 0x4
|
|
||||||
IFT_X25HUNTGROUP = 0x7a
|
|
||||||
IFT_X25MLP = 0x79
|
|
||||||
IFT_X25PLE = 0x28
|
|
||||||
IFT_XETHER = 0x1a
|
|
||||||
IGNBRK = 0x1
|
IGNBRK = 0x1
|
||||||
IGNCR = 0x80
|
IGNCR = 0x80
|
||||||
IGNPAR = 0x4
|
IGNPAR = 0x4
|
||||||
|
@ -811,7 +730,6 @@ const (
|
||||||
IPPROTO_LEAF1 = 0x19
|
IPPROTO_LEAF1 = 0x19
|
||||||
IPPROTO_LEAF2 = 0x1a
|
IPPROTO_LEAF2 = 0x1a
|
||||||
IPPROTO_MAX = 0x100
|
IPPROTO_MAX = 0x100
|
||||||
IPPROTO_MAXID = 0x34
|
|
||||||
IPPROTO_MEAS = 0x13
|
IPPROTO_MEAS = 0x13
|
||||||
IPPROTO_MH = 0x87
|
IPPROTO_MH = 0x87
|
||||||
IPPROTO_MHRP = 0x30
|
IPPROTO_MHRP = 0x30
|
||||||
|
@ -876,6 +794,7 @@ const (
|
||||||
IPPROTO_XTP = 0x24
|
IPPROTO_XTP = 0x24
|
||||||
IPV6_AUTOFLOWLABEL = 0x3b
|
IPV6_AUTOFLOWLABEL = 0x3b
|
||||||
IPV6_BINDANY = 0x40
|
IPV6_BINDANY = 0x40
|
||||||
|
IPV6_BINDMULTI = 0x41
|
||||||
IPV6_BINDV6ONLY = 0x1b
|
IPV6_BINDV6ONLY = 0x1b
|
||||||
IPV6_CHECKSUM = 0x1a
|
IPV6_CHECKSUM = 0x1a
|
||||||
IPV6_DEFAULT_MULTICAST_HOPS = 0x1
|
IPV6_DEFAULT_MULTICAST_HOPS = 0x1
|
||||||
|
@ -883,9 +802,10 @@ const (
|
||||||
IPV6_DEFHLIM = 0x40
|
IPV6_DEFHLIM = 0x40
|
||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DSTOPTS = 0x32
|
IPV6_DSTOPTS = 0x32
|
||||||
IPV6_FAITH = 0x1d
|
IPV6_FLOWID = 0x43
|
||||||
IPV6_FLOWINFO_MASK = 0xffffff0f
|
IPV6_FLOWINFO_MASK = 0xffffff0f
|
||||||
IPV6_FLOWLABEL_MASK = 0xffff0f00
|
IPV6_FLOWLABEL_MASK = 0xffff0f00
|
||||||
|
IPV6_FLOWTYPE = 0x44
|
||||||
IPV6_FRAGTTL = 0x78
|
IPV6_FRAGTTL = 0x78
|
||||||
IPV6_FW_ADD = 0x1e
|
IPV6_FW_ADD = 0x1e
|
||||||
IPV6_FW_DEL = 0x1f
|
IPV6_FW_DEL = 0x1f
|
||||||
|
@ -919,12 +839,16 @@ const (
|
||||||
IPV6_PORTRANGE_LOW = 0x2
|
IPV6_PORTRANGE_LOW = 0x2
|
||||||
IPV6_PREFER_TEMPADDR = 0x3f
|
IPV6_PREFER_TEMPADDR = 0x3f
|
||||||
IPV6_RECVDSTOPTS = 0x28
|
IPV6_RECVDSTOPTS = 0x28
|
||||||
|
IPV6_RECVFLOWID = 0x46
|
||||||
IPV6_RECVHOPLIMIT = 0x25
|
IPV6_RECVHOPLIMIT = 0x25
|
||||||
IPV6_RECVHOPOPTS = 0x27
|
IPV6_RECVHOPOPTS = 0x27
|
||||||
IPV6_RECVPATHMTU = 0x2b
|
IPV6_RECVPATHMTU = 0x2b
|
||||||
IPV6_RECVPKTINFO = 0x24
|
IPV6_RECVPKTINFO = 0x24
|
||||||
|
IPV6_RECVRSSBUCKETID = 0x47
|
||||||
IPV6_RECVRTHDR = 0x26
|
IPV6_RECVRTHDR = 0x26
|
||||||
IPV6_RECVTCLASS = 0x39
|
IPV6_RECVTCLASS = 0x39
|
||||||
|
IPV6_RSSBUCKETID = 0x45
|
||||||
|
IPV6_RSS_LISTEN_BUCKET = 0x42
|
||||||
IPV6_RTHDR = 0x33
|
IPV6_RTHDR = 0x33
|
||||||
IPV6_RTHDRDSTOPTS = 0x23
|
IPV6_RTHDRDSTOPTS = 0x23
|
||||||
IPV6_RTHDR_LOOSE = 0x0
|
IPV6_RTHDR_LOOSE = 0x0
|
||||||
|
@ -940,6 +864,7 @@ const (
|
||||||
IP_ADD_MEMBERSHIP = 0xc
|
IP_ADD_MEMBERSHIP = 0xc
|
||||||
IP_ADD_SOURCE_MEMBERSHIP = 0x46
|
IP_ADD_SOURCE_MEMBERSHIP = 0x46
|
||||||
IP_BINDANY = 0x18
|
IP_BINDANY = 0x18
|
||||||
|
IP_BINDMULTI = 0x19
|
||||||
IP_BLOCK_SOURCE = 0x48
|
IP_BLOCK_SOURCE = 0x48
|
||||||
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
||||||
IP_DEFAULT_MULTICAST_TTL = 0x1
|
IP_DEFAULT_MULTICAST_TTL = 0x1
|
||||||
|
@ -952,7 +877,8 @@ const (
|
||||||
IP_DUMMYNET_DEL = 0x3d
|
IP_DUMMYNET_DEL = 0x3d
|
||||||
IP_DUMMYNET_FLUSH = 0x3e
|
IP_DUMMYNET_FLUSH = 0x3e
|
||||||
IP_DUMMYNET_GET = 0x40
|
IP_DUMMYNET_GET = 0x40
|
||||||
IP_FAITH = 0x16
|
IP_FLOWID = 0x5a
|
||||||
|
IP_FLOWTYPE = 0x5b
|
||||||
IP_FW3 = 0x30
|
IP_FW3 = 0x30
|
||||||
IP_FW_ADD = 0x32
|
IP_FW_ADD = 0x32
|
||||||
IP_FW_DEL = 0x33
|
IP_FW_DEL = 0x33
|
||||||
|
@ -994,13 +920,17 @@ const (
|
||||||
IP_PORTRANGE_HIGH = 0x1
|
IP_PORTRANGE_HIGH = 0x1
|
||||||
IP_PORTRANGE_LOW = 0x2
|
IP_PORTRANGE_LOW = 0x2
|
||||||
IP_RECVDSTADDR = 0x7
|
IP_RECVDSTADDR = 0x7
|
||||||
|
IP_RECVFLOWID = 0x5d
|
||||||
IP_RECVIF = 0x14
|
IP_RECVIF = 0x14
|
||||||
IP_RECVOPTS = 0x5
|
IP_RECVOPTS = 0x5
|
||||||
IP_RECVRETOPTS = 0x6
|
IP_RECVRETOPTS = 0x6
|
||||||
|
IP_RECVRSSBUCKETID = 0x5e
|
||||||
IP_RECVTOS = 0x44
|
IP_RECVTOS = 0x44
|
||||||
IP_RECVTTL = 0x41
|
IP_RECVTTL = 0x41
|
||||||
IP_RETOPTS = 0x8
|
IP_RETOPTS = 0x8
|
||||||
IP_RF = 0x8000
|
IP_RF = 0x8000
|
||||||
|
IP_RSSBUCKETID = 0x5c
|
||||||
|
IP_RSS_LISTEN_BUCKET = 0x1a
|
||||||
IP_RSVP_OFF = 0x10
|
IP_RSVP_OFF = 0x10
|
||||||
IP_RSVP_ON = 0xf
|
IP_RSVP_ON = 0xf
|
||||||
IP_RSVP_VIF_OFF = 0x12
|
IP_RSVP_VIF_OFF = 0x12
|
||||||
|
@ -1041,11 +971,11 @@ const (
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
MAP_HASSEMAPHORE = 0x200
|
MAP_HASSEMAPHORE = 0x200
|
||||||
MAP_NOCORE = 0x20000
|
MAP_NOCORE = 0x20000
|
||||||
MAP_NORESERVE = 0x40
|
|
||||||
MAP_NOSYNC = 0x800
|
MAP_NOSYNC = 0x800
|
||||||
MAP_PREFAULT_READ = 0x40000
|
MAP_PREFAULT_READ = 0x40000
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_RENAME = 0x20
|
MAP_RESERVED0020 = 0x20
|
||||||
|
MAP_RESERVED0040 = 0x40
|
||||||
MAP_RESERVED0080 = 0x80
|
MAP_RESERVED0080 = 0x80
|
||||||
MAP_RESERVED0100 = 0x100
|
MAP_RESERVED0100 = 0x100
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
@ -1066,6 +996,7 @@ const (
|
||||||
MSG_PEEK = 0x2
|
MSG_PEEK = 0x2
|
||||||
MSG_TRUNC = 0x10
|
MSG_TRUNC = 0x10
|
||||||
MSG_WAITALL = 0x40
|
MSG_WAITALL = 0x40
|
||||||
|
MSG_WAITFORONE = 0x80000
|
||||||
MS_ASYNC = 0x1
|
MS_ASYNC = 0x1
|
||||||
MS_INVALIDATE = 0x2
|
MS_INVALIDATE = 0x2
|
||||||
MS_SYNC = 0x0
|
MS_SYNC = 0x0
|
||||||
|
@ -1075,10 +1006,12 @@ const (
|
||||||
NET_RT_IFLIST = 0x3
|
NET_RT_IFLIST = 0x3
|
||||||
NET_RT_IFLISTL = 0x5
|
NET_RT_IFLISTL = 0x5
|
||||||
NET_RT_IFMALIST = 0x4
|
NET_RT_IFMALIST = 0x4
|
||||||
NET_RT_MAXID = 0x6
|
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
|
NOKERNINFO = 0x2000000
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
NOTE_CHILD = 0x4
|
NOTE_CHILD = 0x4
|
||||||
|
NOTE_CLOSE = 0x100
|
||||||
|
NOTE_CLOSE_WRITE = 0x200
|
||||||
NOTE_DELETE = 0x1
|
NOTE_DELETE = 0x1
|
||||||
NOTE_EXEC = 0x20000000
|
NOTE_EXEC = 0x20000000
|
||||||
NOTE_EXIT = 0x80000000
|
NOTE_EXIT = 0x80000000
|
||||||
|
@ -1089,13 +1022,16 @@ const (
|
||||||
NOTE_FFLAGSMASK = 0xffffff
|
NOTE_FFLAGSMASK = 0xffffff
|
||||||
NOTE_FFNOP = 0x0
|
NOTE_FFNOP = 0x0
|
||||||
NOTE_FFOR = 0x80000000
|
NOTE_FFOR = 0x80000000
|
||||||
|
NOTE_FILE_POLL = 0x2
|
||||||
NOTE_FORK = 0x40000000
|
NOTE_FORK = 0x40000000
|
||||||
NOTE_LINK = 0x10
|
NOTE_LINK = 0x10
|
||||||
NOTE_LOWAT = 0x1
|
NOTE_LOWAT = 0x1
|
||||||
NOTE_MSECONDS = 0x2
|
NOTE_MSECONDS = 0x2
|
||||||
NOTE_NSECONDS = 0x8
|
NOTE_NSECONDS = 0x8
|
||||||
|
NOTE_OPEN = 0x80
|
||||||
NOTE_PCTRLMASK = 0xf0000000
|
NOTE_PCTRLMASK = 0xf0000000
|
||||||
NOTE_PDATAMASK = 0xfffff
|
NOTE_PDATAMASK = 0xfffff
|
||||||
|
NOTE_READ = 0x400
|
||||||
NOTE_RENAME = 0x20
|
NOTE_RENAME = 0x20
|
||||||
NOTE_REVOKE = 0x40
|
NOTE_REVOKE = 0x40
|
||||||
NOTE_SECONDS = 0x1
|
NOTE_SECONDS = 0x1
|
||||||
|
@ -1110,6 +1046,7 @@ const (
|
||||||
ONOCR = 0x20
|
ONOCR = 0x20
|
||||||
ONOEOT = 0x8
|
ONOEOT = 0x8
|
||||||
OPOST = 0x1
|
OPOST = 0x1
|
||||||
|
OXTABS = 0x4
|
||||||
O_ACCMODE = 0x3
|
O_ACCMODE = 0x3
|
||||||
O_APPEND = 0x8
|
O_APPEND = 0x8
|
||||||
O_ASYNC = 0x40
|
O_ASYNC = 0x40
|
||||||
|
@ -1131,6 +1068,7 @@ const (
|
||||||
O_SYNC = 0x80
|
O_SYNC = 0x80
|
||||||
O_TRUNC = 0x400
|
O_TRUNC = 0x400
|
||||||
O_TTY_INIT = 0x80000
|
O_TTY_INIT = 0x80000
|
||||||
|
O_VERIFY = 0x200000
|
||||||
O_WRONLY = 0x1
|
O_WRONLY = 0x1
|
||||||
PARENB = 0x1000
|
PARENB = 0x1000
|
||||||
PARMRK = 0x8
|
PARMRK = 0x8
|
||||||
|
@ -1148,7 +1086,10 @@ const (
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
RLIMIT_DATA = 0x2
|
RLIMIT_DATA = 0x2
|
||||||
RLIMIT_FSIZE = 0x1
|
RLIMIT_FSIZE = 0x1
|
||||||
|
RLIMIT_MEMLOCK = 0x6
|
||||||
RLIMIT_NOFILE = 0x8
|
RLIMIT_NOFILE = 0x8
|
||||||
|
RLIMIT_NPROC = 0x7
|
||||||
|
RLIMIT_RSS = 0x5
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0x7fffffffffffffff
|
RLIM_INFINITY = 0x7fffffffffffffff
|
||||||
RTAX_AUTHOR = 0x6
|
RTAX_AUTHOR = 0x6
|
||||||
|
@ -1172,6 +1113,7 @@ const (
|
||||||
RTF_BROADCAST = 0x400000
|
RTF_BROADCAST = 0x400000
|
||||||
RTF_DONE = 0x40
|
RTF_DONE = 0x40
|
||||||
RTF_DYNAMIC = 0x10
|
RTF_DYNAMIC = 0x10
|
||||||
|
RTF_FIXEDMTU = 0x80000
|
||||||
RTF_FMASK = 0x1004d808
|
RTF_FMASK = 0x1004d808
|
||||||
RTF_GATEWAY = 0x2
|
RTF_GATEWAY = 0x2
|
||||||
RTF_GWFLAG_COMPAT = 0x80000000
|
RTF_GWFLAG_COMPAT = 0x80000000
|
||||||
|
@ -1182,7 +1124,6 @@ const (
|
||||||
RTF_MODIFIED = 0x20
|
RTF_MODIFIED = 0x20
|
||||||
RTF_MULTICAST = 0x800000
|
RTF_MULTICAST = 0x800000
|
||||||
RTF_PINNED = 0x100000
|
RTF_PINNED = 0x100000
|
||||||
RTF_PRCLONING = 0x10000
|
|
||||||
RTF_PROTO1 = 0x8000
|
RTF_PROTO1 = 0x8000
|
||||||
RTF_PROTO2 = 0x4000
|
RTF_PROTO2 = 0x4000
|
||||||
RTF_PROTO3 = 0x40000
|
RTF_PROTO3 = 0x40000
|
||||||
|
@ -1206,8 +1147,6 @@ const (
|
||||||
RTM_MISS = 0x7
|
RTM_MISS = 0x7
|
||||||
RTM_NEWADDR = 0xc
|
RTM_NEWADDR = 0xc
|
||||||
RTM_NEWMADDR = 0xf
|
RTM_NEWMADDR = 0xf
|
||||||
RTM_OLDADD = 0x9
|
|
||||||
RTM_OLDDEL = 0xa
|
|
||||||
RTM_REDIRECT = 0x6
|
RTM_REDIRECT = 0x6
|
||||||
RTM_RESOLVE = 0xb
|
RTM_RESOLVE = 0xb
|
||||||
RTM_RTTUNIT = 0xf4240
|
RTM_RTTUNIT = 0xf4240
|
||||||
|
@ -1222,9 +1161,19 @@ const (
|
||||||
RTV_SSTHRESH = 0x20
|
RTV_SSTHRESH = 0x20
|
||||||
RTV_WEIGHT = 0x100
|
RTV_WEIGHT = 0x100
|
||||||
RT_ALL_FIBS = -0x1
|
RT_ALL_FIBS = -0x1
|
||||||
|
RT_BLACKHOLE = 0x40
|
||||||
RT_CACHING_CONTEXT = 0x1
|
RT_CACHING_CONTEXT = 0x1
|
||||||
RT_DEFAULT_FIB = 0x0
|
RT_DEFAULT_FIB = 0x0
|
||||||
|
RT_HAS_GW = 0x80
|
||||||
|
RT_HAS_HEADER = 0x10
|
||||||
|
RT_HAS_HEADER_BIT = 0x4
|
||||||
|
RT_L2_ME = 0x4
|
||||||
|
RT_L2_ME_BIT = 0x2
|
||||||
|
RT_LLE_CACHE = 0x100
|
||||||
|
RT_MAY_LOOP = 0x8
|
||||||
|
RT_MAY_LOOP_BIT = 0x3
|
||||||
RT_NORTREF = 0x2
|
RT_NORTREF = 0x2
|
||||||
|
RT_REJECT = 0x20
|
||||||
RUSAGE_CHILDREN = -0x1
|
RUSAGE_CHILDREN = -0x1
|
||||||
RUSAGE_SELF = 0x0
|
RUSAGE_SELF = 0x0
|
||||||
RUSAGE_THREAD = 0x1
|
RUSAGE_THREAD = 0x1
|
||||||
|
@ -1236,21 +1185,18 @@ const (
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
SIOCADDMULTI = 0x80206931
|
SIOCADDMULTI = 0x80206931
|
||||||
SIOCADDRT = 0x8040720a
|
|
||||||
SIOCAIFADDR = 0x8040691a
|
SIOCAIFADDR = 0x8040691a
|
||||||
SIOCAIFGROUP = 0x80286987
|
SIOCAIFGROUP = 0x80286987
|
||||||
SIOCALIFADDR = 0x8118691b
|
|
||||||
SIOCATMARK = 0x40047307
|
SIOCATMARK = 0x40047307
|
||||||
SIOCDELMULTI = 0x80206932
|
SIOCDELMULTI = 0x80206932
|
||||||
SIOCDELRT = 0x8040720b
|
|
||||||
SIOCDIFADDR = 0x80206919
|
SIOCDIFADDR = 0x80206919
|
||||||
SIOCDIFGROUP = 0x80286989
|
SIOCDIFGROUP = 0x80286989
|
||||||
SIOCDIFPHYADDR = 0x80206949
|
SIOCDIFPHYADDR = 0x80206949
|
||||||
SIOCDLIFADDR = 0x8118691d
|
|
||||||
SIOCGDRVSPEC = 0xc028697b
|
SIOCGDRVSPEC = 0xc028697b
|
||||||
SIOCGETSGCNT = 0xc0207210
|
SIOCGETSGCNT = 0xc0207210
|
||||||
SIOCGETVIFCNT = 0xc028720f
|
SIOCGETVIFCNT = 0xc028720f
|
||||||
SIOCGHIWAT = 0x40047301
|
SIOCGHIWAT = 0x40047301
|
||||||
|
SIOCGI2C = 0xc020693d
|
||||||
SIOCGIFADDR = 0xc0206921
|
SIOCGIFADDR = 0xc0206921
|
||||||
SIOCGIFBRDADDR = 0xc0206923
|
SIOCGIFBRDADDR = 0xc0206923
|
||||||
SIOCGIFCAP = 0xc020691f
|
SIOCGIFCAP = 0xc020691f
|
||||||
|
@ -1272,12 +1218,12 @@ const (
|
||||||
SIOCGIFPHYS = 0xc0206935
|
SIOCGIFPHYS = 0xc0206935
|
||||||
SIOCGIFPSRCADDR = 0xc0206947
|
SIOCGIFPSRCADDR = 0xc0206947
|
||||||
SIOCGIFSTATUS = 0xc331693b
|
SIOCGIFSTATUS = 0xc331693b
|
||||||
SIOCGLIFADDR = 0xc118691c
|
SIOCGIFXMEDIA = 0xc030698b
|
||||||
SIOCGLIFPHYADDR = 0xc118694b
|
|
||||||
SIOCGLOWAT = 0x40047303
|
SIOCGLOWAT = 0x40047303
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
SIOCGPRIVATE_0 = 0xc0206950
|
SIOCGPRIVATE_0 = 0xc0206950
|
||||||
SIOCGPRIVATE_1 = 0xc0206951
|
SIOCGPRIVATE_1 = 0xc0206951
|
||||||
|
SIOCGTUNFIB = 0xc020695e
|
||||||
SIOCIFCREATE = 0xc020697a
|
SIOCIFCREATE = 0xc020697a
|
||||||
SIOCIFCREATE2 = 0xc020697c
|
SIOCIFCREATE2 = 0xc020697c
|
||||||
SIOCIFDESTROY = 0x80206979
|
SIOCIFDESTROY = 0x80206979
|
||||||
|
@ -1303,9 +1249,9 @@ const (
|
||||||
SIOCSIFPHYS = 0x80206936
|
SIOCSIFPHYS = 0x80206936
|
||||||
SIOCSIFRVNET = 0xc020695b
|
SIOCSIFRVNET = 0xc020695b
|
||||||
SIOCSIFVNET = 0xc020695a
|
SIOCSIFVNET = 0xc020695a
|
||||||
SIOCSLIFPHYADDR = 0x8118694a
|
|
||||||
SIOCSLOWAT = 0x80047302
|
SIOCSLOWAT = 0x80047302
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
|
SIOCSTUNFIB = 0x8020695f
|
||||||
SOCK_CLOEXEC = 0x10000000
|
SOCK_CLOEXEC = 0x10000000
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
SOCK_MAXADDRLEN = 0xff
|
SOCK_MAXADDRLEN = 0xff
|
||||||
|
@ -1350,11 +1296,22 @@ const (
|
||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
SO_USER_COOKIE = 0x1015
|
SO_USER_COOKIE = 0x1015
|
||||||
SO_VENDOR = 0x80000000
|
SO_VENDOR = 0x80000000
|
||||||
|
TAB0 = 0x0
|
||||||
|
TAB3 = 0x4
|
||||||
|
TABDLY = 0x4
|
||||||
TCIFLUSH = 0x1
|
TCIFLUSH = 0x1
|
||||||
|
TCIOFF = 0x3
|
||||||
TCIOFLUSH = 0x3
|
TCIOFLUSH = 0x3
|
||||||
|
TCION = 0x4
|
||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
|
TCOOFF = 0x1
|
||||||
|
TCOON = 0x2
|
||||||
TCP_CA_NAME_MAX = 0x10
|
TCP_CA_NAME_MAX = 0x10
|
||||||
|
TCP_CCALGOOPT = 0x41
|
||||||
TCP_CONGESTION = 0x40
|
TCP_CONGESTION = 0x40
|
||||||
|
TCP_FASTOPEN = 0x401
|
||||||
|
TCP_FUNCTION_BLK = 0x2000
|
||||||
|
TCP_FUNCTION_NAME_LEN_MAX = 0x20
|
||||||
TCP_INFO = 0x20
|
TCP_INFO = 0x20
|
||||||
TCP_KEEPCNT = 0x400
|
TCP_KEEPCNT = 0x400
|
||||||
TCP_KEEPIDLE = 0x100
|
TCP_KEEPIDLE = 0x100
|
||||||
|
@ -1373,6 +1330,8 @@ const (
|
||||||
TCP_NODELAY = 0x1
|
TCP_NODELAY = 0x1
|
||||||
TCP_NOOPT = 0x8
|
TCP_NOOPT = 0x8
|
||||||
TCP_NOPUSH = 0x4
|
TCP_NOPUSH = 0x4
|
||||||
|
TCP_PCAP_IN = 0x1000
|
||||||
|
TCP_PCAP_OUT = 0x800
|
||||||
TCP_VENDOR = 0x80000000
|
TCP_VENDOR = 0x80000000
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
TIOCCBRK = 0x2000747a
|
TIOCCBRK = 0x2000747a
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mkerrors.sh
|
// mkerrors.sh
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build arm,freebsd
|
// +build arm,freebsd
|
||||||
|
|
||||||
|
@ -98,6 +98,7 @@ const (
|
||||||
AF_VENDOR45 = 0x81
|
AF_VENDOR45 = 0x81
|
||||||
AF_VENDOR46 = 0x83
|
AF_VENDOR46 = 0x83
|
||||||
AF_VENDOR47 = 0x85
|
AF_VENDOR47 = 0x85
|
||||||
|
ALTWERASE = 0x200
|
||||||
B0 = 0x0
|
B0 = 0x0
|
||||||
B110 = 0x6e
|
B110 = 0x6e
|
||||||
B115200 = 0x1c200
|
B115200 = 0x1c200
|
||||||
|
@ -134,7 +135,7 @@ const (
|
||||||
BIOCGETZMAX = 0x4004427f
|
BIOCGETZMAX = 0x4004427f
|
||||||
BIOCGHDRCMPLT = 0x40044274
|
BIOCGHDRCMPLT = 0x40044274
|
||||||
BIOCGRSIG = 0x40044272
|
BIOCGRSIG = 0x40044272
|
||||||
BIOCGRTIMEOUT = 0x4008426e
|
BIOCGRTIMEOUT = 0x4010426e
|
||||||
BIOCGSEESENT = 0x40044276
|
BIOCGSEESENT = 0x40044276
|
||||||
BIOCGSTATS = 0x4008426f
|
BIOCGSTATS = 0x4008426f
|
||||||
BIOCGTSTAMP = 0x40044283
|
BIOCGTSTAMP = 0x40044283
|
||||||
|
@ -153,7 +154,7 @@ const (
|
||||||
BIOCSETZBUF = 0x800c4281
|
BIOCSETZBUF = 0x800c4281
|
||||||
BIOCSHDRCMPLT = 0x80044275
|
BIOCSHDRCMPLT = 0x80044275
|
||||||
BIOCSRSIG = 0x80044273
|
BIOCSRSIG = 0x80044273
|
||||||
BIOCSRTIMEOUT = 0x8008426d
|
BIOCSRTIMEOUT = 0x8010426d
|
||||||
BIOCSSEESENT = 0x80044277
|
BIOCSSEESENT = 0x80044277
|
||||||
BIOCSTSTAMP = 0x80044284
|
BIOCSTSTAMP = 0x80044284
|
||||||
BIOCVERSION = 0x40044271
|
BIOCVERSION = 0x40044271
|
||||||
|
@ -189,6 +190,7 @@ const (
|
||||||
BPF_MINBUFSIZE = 0x20
|
BPF_MINBUFSIZE = 0x20
|
||||||
BPF_MINOR_VERSION = 0x1
|
BPF_MINOR_VERSION = 0x1
|
||||||
BPF_MISC = 0x7
|
BPF_MISC = 0x7
|
||||||
|
BPF_MOD = 0x90
|
||||||
BPF_MSH = 0xa0
|
BPF_MSH = 0xa0
|
||||||
BPF_MUL = 0x20
|
BPF_MUL = 0x20
|
||||||
BPF_NEG = 0x80
|
BPF_NEG = 0x80
|
||||||
|
@ -222,10 +224,123 @@ const (
|
||||||
BPF_T_NORMAL = 0x0
|
BPF_T_NORMAL = 0x0
|
||||||
BPF_W = 0x0
|
BPF_W = 0x0
|
||||||
BPF_X = 0x8
|
BPF_X = 0x8
|
||||||
|
BPF_XOR = 0xa0
|
||||||
BRKINT = 0x2
|
BRKINT = 0x2
|
||||||
|
CAP_ACCEPT = 0x200000020000000
|
||||||
|
CAP_ACL_CHECK = 0x400000000010000
|
||||||
|
CAP_ACL_DELETE = 0x400000000020000
|
||||||
|
CAP_ACL_GET = 0x400000000040000
|
||||||
|
CAP_ACL_SET = 0x400000000080000
|
||||||
|
CAP_ALL0 = 0x20007ffffffffff
|
||||||
|
CAP_ALL1 = 0x4000000001fffff
|
||||||
|
CAP_BIND = 0x200000040000000
|
||||||
|
CAP_BINDAT = 0x200008000000400
|
||||||
|
CAP_CHFLAGSAT = 0x200000000001400
|
||||||
|
CAP_CONNECT = 0x200000080000000
|
||||||
|
CAP_CONNECTAT = 0x200010000000400
|
||||||
|
CAP_CREATE = 0x200000000000040
|
||||||
|
CAP_EVENT = 0x400000000000020
|
||||||
|
CAP_EXTATTR_DELETE = 0x400000000001000
|
||||||
|
CAP_EXTATTR_GET = 0x400000000002000
|
||||||
|
CAP_EXTATTR_LIST = 0x400000000004000
|
||||||
|
CAP_EXTATTR_SET = 0x400000000008000
|
||||||
|
CAP_FCHDIR = 0x200000000000800
|
||||||
|
CAP_FCHFLAGS = 0x200000000001000
|
||||||
|
CAP_FCHMOD = 0x200000000002000
|
||||||
|
CAP_FCHMODAT = 0x200000000002400
|
||||||
|
CAP_FCHOWN = 0x200000000004000
|
||||||
|
CAP_FCHOWNAT = 0x200000000004400
|
||||||
|
CAP_FCNTL = 0x200000000008000
|
||||||
|
CAP_FCNTL_ALL = 0x78
|
||||||
|
CAP_FCNTL_GETFL = 0x8
|
||||||
|
CAP_FCNTL_GETOWN = 0x20
|
||||||
|
CAP_FCNTL_SETFL = 0x10
|
||||||
|
CAP_FCNTL_SETOWN = 0x40
|
||||||
|
CAP_FEXECVE = 0x200000000000080
|
||||||
|
CAP_FLOCK = 0x200000000010000
|
||||||
|
CAP_FPATHCONF = 0x200000000020000
|
||||||
|
CAP_FSCK = 0x200000000040000
|
||||||
|
CAP_FSTAT = 0x200000000080000
|
||||||
|
CAP_FSTATAT = 0x200000000080400
|
||||||
|
CAP_FSTATFS = 0x200000000100000
|
||||||
|
CAP_FSYNC = 0x200000000000100
|
||||||
|
CAP_FTRUNCATE = 0x200000000000200
|
||||||
|
CAP_FUTIMES = 0x200000000200000
|
||||||
|
CAP_FUTIMESAT = 0x200000000200400
|
||||||
|
CAP_GETPEERNAME = 0x200000100000000
|
||||||
|
CAP_GETSOCKNAME = 0x200000200000000
|
||||||
|
CAP_GETSOCKOPT = 0x200000400000000
|
||||||
|
CAP_IOCTL = 0x400000000000080
|
||||||
|
CAP_IOCTLS_ALL = 0x7fffffff
|
||||||
|
CAP_KQUEUE = 0x400000000100040
|
||||||
|
CAP_KQUEUE_CHANGE = 0x400000000100000
|
||||||
|
CAP_KQUEUE_EVENT = 0x400000000000040
|
||||||
|
CAP_LINKAT_SOURCE = 0x200020000000400
|
||||||
|
CAP_LINKAT_TARGET = 0x200000000400400
|
||||||
|
CAP_LISTEN = 0x200000800000000
|
||||||
|
CAP_LOOKUP = 0x200000000000400
|
||||||
|
CAP_MAC_GET = 0x400000000000001
|
||||||
|
CAP_MAC_SET = 0x400000000000002
|
||||||
|
CAP_MKDIRAT = 0x200000000800400
|
||||||
|
CAP_MKFIFOAT = 0x200000001000400
|
||||||
|
CAP_MKNODAT = 0x200000002000400
|
||||||
|
CAP_MMAP = 0x200000000000010
|
||||||
|
CAP_MMAP_R = 0x20000000000001d
|
||||||
|
CAP_MMAP_RW = 0x20000000000001f
|
||||||
|
CAP_MMAP_RWX = 0x20000000000003f
|
||||||
|
CAP_MMAP_RX = 0x20000000000003d
|
||||||
|
CAP_MMAP_W = 0x20000000000001e
|
||||||
|
CAP_MMAP_WX = 0x20000000000003e
|
||||||
|
CAP_MMAP_X = 0x20000000000003c
|
||||||
|
CAP_PDGETPID = 0x400000000000200
|
||||||
|
CAP_PDKILL = 0x400000000000800
|
||||||
|
CAP_PDWAIT = 0x400000000000400
|
||||||
|
CAP_PEELOFF = 0x200001000000000
|
||||||
|
CAP_POLL_EVENT = 0x400000000000020
|
||||||
|
CAP_PREAD = 0x20000000000000d
|
||||||
|
CAP_PWRITE = 0x20000000000000e
|
||||||
|
CAP_READ = 0x200000000000001
|
||||||
|
CAP_RECV = 0x200000000000001
|
||||||
|
CAP_RENAMEAT_SOURCE = 0x200000004000400
|
||||||
|
CAP_RENAMEAT_TARGET = 0x200040000000400
|
||||||
|
CAP_RIGHTS_VERSION = 0x0
|
||||||
|
CAP_RIGHTS_VERSION_00 = 0x0
|
||||||
|
CAP_SEEK = 0x20000000000000c
|
||||||
|
CAP_SEEK_TELL = 0x200000000000004
|
||||||
|
CAP_SEM_GETVALUE = 0x400000000000004
|
||||||
|
CAP_SEM_POST = 0x400000000000008
|
||||||
|
CAP_SEM_WAIT = 0x400000000000010
|
||||||
|
CAP_SEND = 0x200000000000002
|
||||||
|
CAP_SETSOCKOPT = 0x200002000000000
|
||||||
|
CAP_SHUTDOWN = 0x200004000000000
|
||||||
|
CAP_SOCK_CLIENT = 0x200007780000003
|
||||||
|
CAP_SOCK_SERVER = 0x200007f60000003
|
||||||
|
CAP_SYMLINKAT = 0x200000008000400
|
||||||
|
CAP_TTYHOOK = 0x400000000000100
|
||||||
|
CAP_UNLINKAT = 0x200000010000400
|
||||||
|
CAP_UNUSED0_44 = 0x200080000000000
|
||||||
|
CAP_UNUSED0_57 = 0x300000000000000
|
||||||
|
CAP_UNUSED1_22 = 0x400000000200000
|
||||||
|
CAP_UNUSED1_57 = 0x500000000000000
|
||||||
|
CAP_WRITE = 0x200000000000002
|
||||||
CFLUSH = 0xf
|
CFLUSH = 0xf
|
||||||
CLOCAL = 0x8000
|
CLOCAL = 0x8000
|
||||||
|
CLOCK_MONOTONIC = 0x4
|
||||||
|
CLOCK_MONOTONIC_FAST = 0xc
|
||||||
|
CLOCK_MONOTONIC_PRECISE = 0xb
|
||||||
|
CLOCK_PROCESS_CPUTIME_ID = 0xf
|
||||||
|
CLOCK_PROF = 0x2
|
||||||
|
CLOCK_REALTIME = 0x0
|
||||||
|
CLOCK_REALTIME_FAST = 0xa
|
||||||
|
CLOCK_REALTIME_PRECISE = 0x9
|
||||||
|
CLOCK_SECOND = 0xd
|
||||||
|
CLOCK_THREAD_CPUTIME_ID = 0xe
|
||||||
|
CLOCK_UPTIME = 0x5
|
||||||
|
CLOCK_UPTIME_FAST = 0x8
|
||||||
|
CLOCK_UPTIME_PRECISE = 0x7
|
||||||
|
CLOCK_VIRTUAL = 0x1
|
||||||
CREAD = 0x800
|
CREAD = 0x800
|
||||||
|
CRTSCTS = 0x30000
|
||||||
CS5 = 0x0
|
CS5 = 0x0
|
||||||
CS6 = 0x100
|
CS6 = 0x100
|
||||||
CS7 = 0x200
|
CS7 = 0x200
|
||||||
|
@ -251,13 +366,18 @@ const (
|
||||||
DLT_AX25 = 0x3
|
DLT_AX25 = 0x3
|
||||||
DLT_AX25_KISS = 0xca
|
DLT_AX25_KISS = 0xca
|
||||||
DLT_BACNET_MS_TP = 0xa5
|
DLT_BACNET_MS_TP = 0xa5
|
||||||
|
DLT_BLUETOOTH_BREDR_BB = 0xff
|
||||||
DLT_BLUETOOTH_HCI_H4 = 0xbb
|
DLT_BLUETOOTH_HCI_H4 = 0xbb
|
||||||
DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
|
DLT_BLUETOOTH_HCI_H4_WITH_PHDR = 0xc9
|
||||||
|
DLT_BLUETOOTH_LE_LL = 0xfb
|
||||||
|
DLT_BLUETOOTH_LE_LL_WITH_PHDR = 0x100
|
||||||
|
DLT_BLUETOOTH_LINUX_MONITOR = 0xfe
|
||||||
DLT_CAN20B = 0xbe
|
DLT_CAN20B = 0xbe
|
||||||
DLT_CAN_SOCKETCAN = 0xe3
|
DLT_CAN_SOCKETCAN = 0xe3
|
||||||
DLT_CHAOS = 0x5
|
DLT_CHAOS = 0x5
|
||||||
DLT_CHDLC = 0x68
|
DLT_CHDLC = 0x68
|
||||||
DLT_CISCO_IOS = 0x76
|
DLT_CISCO_IOS = 0x76
|
||||||
|
DLT_CLASS_NETBSD_RAWAF = 0x2240000
|
||||||
DLT_C_HDLC = 0x68
|
DLT_C_HDLC = 0x68
|
||||||
DLT_C_HDLC_WITH_DIR = 0xcd
|
DLT_C_HDLC_WITH_DIR = 0xcd
|
||||||
DLT_DBUS = 0xe7
|
DLT_DBUS = 0xe7
|
||||||
|
@ -268,6 +388,7 @@ const (
|
||||||
DLT_EN10MB = 0x1
|
DLT_EN10MB = 0x1
|
||||||
DLT_EN3MB = 0x2
|
DLT_EN3MB = 0x2
|
||||||
DLT_ENC = 0x6d
|
DLT_ENC = 0x6d
|
||||||
|
DLT_EPON = 0x103
|
||||||
DLT_ERF = 0xc5
|
DLT_ERF = 0xc5
|
||||||
DLT_ERF_ETH = 0xaf
|
DLT_ERF_ETH = 0xaf
|
||||||
DLT_ERF_POS = 0xb0
|
DLT_ERF_POS = 0xb0
|
||||||
|
@ -284,7 +405,6 @@ const (
|
||||||
DLT_GPRS_LLC = 0xa9
|
DLT_GPRS_LLC = 0xa9
|
||||||
DLT_GSMTAP_ABIS = 0xda
|
DLT_GSMTAP_ABIS = 0xda
|
||||||
DLT_GSMTAP_UM = 0xd9
|
DLT_GSMTAP_UM = 0xd9
|
||||||
DLT_HHDLC = 0x79
|
|
||||||
DLT_IBM_SN = 0x92
|
DLT_IBM_SN = 0x92
|
||||||
DLT_IBM_SP = 0x91
|
DLT_IBM_SP = 0x91
|
||||||
DLT_IEEE802 = 0x6
|
DLT_IEEE802 = 0x6
|
||||||
|
@ -297,14 +417,17 @@ const (
|
||||||
DLT_IEEE802_15_4_NONASK_PHY = 0xd7
|
DLT_IEEE802_15_4_NONASK_PHY = 0xd7
|
||||||
DLT_IEEE802_16_MAC_CPS = 0xbc
|
DLT_IEEE802_16_MAC_CPS = 0xbc
|
||||||
DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
|
DLT_IEEE802_16_MAC_CPS_RADIO = 0xc1
|
||||||
|
DLT_INFINIBAND = 0xf7
|
||||||
DLT_IPFILTER = 0x74
|
DLT_IPFILTER = 0x74
|
||||||
DLT_IPMB = 0xc7
|
DLT_IPMB = 0xc7
|
||||||
DLT_IPMB_LINUX = 0xd1
|
DLT_IPMB_LINUX = 0xd1
|
||||||
|
DLT_IPMI_HPM_2 = 0x104
|
||||||
DLT_IPNET = 0xe2
|
DLT_IPNET = 0xe2
|
||||||
DLT_IPOIB = 0xf2
|
DLT_IPOIB = 0xf2
|
||||||
DLT_IPV4 = 0xe4
|
DLT_IPV4 = 0xe4
|
||||||
DLT_IPV6 = 0xe5
|
DLT_IPV6 = 0xe5
|
||||||
DLT_IP_OVER_FC = 0x7a
|
DLT_IP_OVER_FC = 0x7a
|
||||||
|
DLT_ISO_14443 = 0x108
|
||||||
DLT_JUNIPER_ATM1 = 0x89
|
DLT_JUNIPER_ATM1 = 0x89
|
||||||
DLT_JUNIPER_ATM2 = 0x87
|
DLT_JUNIPER_ATM2 = 0x87
|
||||||
DLT_JUNIPER_ATM_CEMIC = 0xee
|
DLT_JUNIPER_ATM_CEMIC = 0xee
|
||||||
|
@ -338,7 +461,7 @@ const (
|
||||||
DLT_LINUX_SLL = 0x71
|
DLT_LINUX_SLL = 0x71
|
||||||
DLT_LOOP = 0x6c
|
DLT_LOOP = 0x6c
|
||||||
DLT_LTALK = 0x72
|
DLT_LTALK = 0x72
|
||||||
DLT_MATCHING_MAX = 0xf6
|
DLT_MATCHING_MAX = 0x109
|
||||||
DLT_MATCHING_MIN = 0x68
|
DLT_MATCHING_MIN = 0x68
|
||||||
DLT_MFR = 0xb6
|
DLT_MFR = 0xb6
|
||||||
DLT_MOST = 0xd3
|
DLT_MOST = 0xd3
|
||||||
|
@ -350,6 +473,7 @@ const (
|
||||||
DLT_MUX27010 = 0xec
|
DLT_MUX27010 = 0xec
|
||||||
DLT_NETANALYZER = 0xf0
|
DLT_NETANALYZER = 0xf0
|
||||||
DLT_NETANALYZER_TRANSPARENT = 0xf1
|
DLT_NETANALYZER_TRANSPARENT = 0xf1
|
||||||
|
DLT_NETLINK = 0xfd
|
||||||
DLT_NFC_LLCP = 0xf5
|
DLT_NFC_LLCP = 0xf5
|
||||||
DLT_NFLOG = 0xef
|
DLT_NFLOG = 0xef
|
||||||
DLT_NG40 = 0xf4
|
DLT_NG40 = 0xf4
|
||||||
|
@ -357,28 +481,36 @@ const (
|
||||||
DLT_PCI_EXP = 0x7d
|
DLT_PCI_EXP = 0x7d
|
||||||
DLT_PFLOG = 0x75
|
DLT_PFLOG = 0x75
|
||||||
DLT_PFSYNC = 0x79
|
DLT_PFSYNC = 0x79
|
||||||
|
DLT_PKTAP = 0x102
|
||||||
DLT_PPI = 0xc0
|
DLT_PPI = 0xc0
|
||||||
DLT_PPP = 0x9
|
DLT_PPP = 0x9
|
||||||
DLT_PPP_BSDOS = 0x10
|
DLT_PPP_BSDOS = 0xe
|
||||||
DLT_PPP_ETHER = 0x33
|
DLT_PPP_ETHER = 0x33
|
||||||
DLT_PPP_PPPD = 0xa6
|
DLT_PPP_PPPD = 0xa6
|
||||||
DLT_PPP_SERIAL = 0x32
|
DLT_PPP_SERIAL = 0x32
|
||||||
DLT_PPP_WITH_DIR = 0xcc
|
DLT_PPP_WITH_DIR = 0xcc
|
||||||
DLT_PPP_WITH_DIRECTION = 0xa6
|
DLT_PPP_WITH_DIRECTION = 0xa6
|
||||||
DLT_PRISM_HEADER = 0x77
|
DLT_PRISM_HEADER = 0x77
|
||||||
|
DLT_PROFIBUS_DL = 0x101
|
||||||
DLT_PRONET = 0x4
|
DLT_PRONET = 0x4
|
||||||
DLT_RAIF1 = 0xc6
|
DLT_RAIF1 = 0xc6
|
||||||
DLT_RAW = 0xc
|
DLT_RAW = 0xc
|
||||||
|
DLT_RDS = 0x109
|
||||||
|
DLT_REDBACK_SMARTEDGE = 0x20
|
||||||
DLT_RIO = 0x7c
|
DLT_RIO = 0x7c
|
||||||
|
DLT_RTAC_SERIAL = 0xfa
|
||||||
DLT_SCCP = 0x8e
|
DLT_SCCP = 0x8e
|
||||||
|
DLT_SCTP = 0xf8
|
||||||
DLT_SITA = 0xc4
|
DLT_SITA = 0xc4
|
||||||
DLT_SLIP = 0x8
|
DLT_SLIP = 0x8
|
||||||
DLT_SLIP_BSDOS = 0xf
|
DLT_SLIP_BSDOS = 0xd
|
||||||
DLT_STANAG_5066_D_PDU = 0xed
|
DLT_STANAG_5066_D_PDU = 0xed
|
||||||
DLT_SUNATM = 0x7b
|
DLT_SUNATM = 0x7b
|
||||||
DLT_SYMANTEC_FIREWALL = 0x63
|
DLT_SYMANTEC_FIREWALL = 0x63
|
||||||
DLT_TZSP = 0x80
|
DLT_TZSP = 0x80
|
||||||
DLT_USB = 0xba
|
DLT_USB = 0xba
|
||||||
|
DLT_USBPCAP = 0xf9
|
||||||
|
DLT_USB_FREEBSD = 0xba
|
||||||
DLT_USB_LINUX = 0xbd
|
DLT_USB_LINUX = 0xbd
|
||||||
DLT_USB_LINUX_MMAPPED = 0xdc
|
DLT_USB_LINUX_MMAPPED = 0xdc
|
||||||
DLT_USER0 = 0x93
|
DLT_USER0 = 0x93
|
||||||
|
@ -397,9 +529,13 @@ const (
|
||||||
DLT_USER7 = 0x9a
|
DLT_USER7 = 0x9a
|
||||||
DLT_USER8 = 0x9b
|
DLT_USER8 = 0x9b
|
||||||
DLT_USER9 = 0x9c
|
DLT_USER9 = 0x9c
|
||||||
|
DLT_WATTSTOPPER_DLM = 0x107
|
||||||
DLT_WIHART = 0xdf
|
DLT_WIHART = 0xdf
|
||||||
|
DLT_WIRESHARK_UPPER_PDU = 0xfc
|
||||||
DLT_X2E_SERIAL = 0xd5
|
DLT_X2E_SERIAL = 0xd5
|
||||||
DLT_X2E_XORAYA = 0xd6
|
DLT_X2E_XORAYA = 0xd6
|
||||||
|
DLT_ZWAVE_R1_R2 = 0x105
|
||||||
|
DLT_ZWAVE_R3 = 0x106
|
||||||
DT_BLK = 0x6
|
DT_BLK = 0x6
|
||||||
DT_CHR = 0x2
|
DT_CHR = 0x2
|
||||||
DT_DIR = 0x4
|
DT_DIR = 0x4
|
||||||
|
@ -420,9 +556,11 @@ const (
|
||||||
EVFILT_FS = -0x9
|
EVFILT_FS = -0x9
|
||||||
EVFILT_LIO = -0xa
|
EVFILT_LIO = -0xa
|
||||||
EVFILT_PROC = -0x5
|
EVFILT_PROC = -0x5
|
||||||
|
EVFILT_PROCDESC = -0x8
|
||||||
EVFILT_READ = -0x1
|
EVFILT_READ = -0x1
|
||||||
|
EVFILT_SENDFILE = -0xc
|
||||||
EVFILT_SIGNAL = -0x6
|
EVFILT_SIGNAL = -0x6
|
||||||
EVFILT_SYSCOUNT = 0xb
|
EVFILT_SYSCOUNT = 0xc
|
||||||
EVFILT_TIMER = -0x7
|
EVFILT_TIMER = -0x7
|
||||||
EVFILT_USER = -0xb
|
EVFILT_USER = -0xb
|
||||||
EVFILT_VNODE = -0x4
|
EVFILT_VNODE = -0x4
|
||||||
|
@ -437,6 +575,8 @@ const (
|
||||||
EV_EOF = 0x8000
|
EV_EOF = 0x8000
|
||||||
EV_ERROR = 0x4000
|
EV_ERROR = 0x4000
|
||||||
EV_FLAG1 = 0x2000
|
EV_FLAG1 = 0x2000
|
||||||
|
EV_FLAG2 = 0x4000
|
||||||
|
EV_FORCEONESHOT = 0x100
|
||||||
EV_ONESHOT = 0x10
|
EV_ONESHOT = 0x10
|
||||||
EV_RECEIPT = 0x40
|
EV_RECEIPT = 0x40
|
||||||
EV_SYSFLAGS = 0xf000
|
EV_SYSFLAGS = 0xf000
|
||||||
|
@ -484,7 +624,7 @@ const (
|
||||||
IFF_ALLMULTI = 0x200
|
IFF_ALLMULTI = 0x200
|
||||||
IFF_ALTPHYS = 0x4000
|
IFF_ALTPHYS = 0x4000
|
||||||
IFF_BROADCAST = 0x2
|
IFF_BROADCAST = 0x2
|
||||||
IFF_CANTCHANGE = 0x218f72
|
IFF_CANTCHANGE = 0x218f52
|
||||||
IFF_CANTCONFIG = 0x10000
|
IFF_CANTCONFIG = 0x10000
|
||||||
IFF_DEBUG = 0x4
|
IFF_DEBUG = 0x4
|
||||||
IFF_DRV_OACTIVE = 0x400
|
IFF_DRV_OACTIVE = 0x400
|
||||||
|
@ -504,217 +644,17 @@ const (
|
||||||
IFF_RENAMING = 0x400000
|
IFF_RENAMING = 0x400000
|
||||||
IFF_RUNNING = 0x40
|
IFF_RUNNING = 0x40
|
||||||
IFF_SIMPLEX = 0x800
|
IFF_SIMPLEX = 0x800
|
||||||
IFF_SMART = 0x20
|
|
||||||
IFF_STATICARP = 0x80000
|
IFF_STATICARP = 0x80000
|
||||||
IFF_UP = 0x1
|
IFF_UP = 0x1
|
||||||
IFNAMSIZ = 0x10
|
IFNAMSIZ = 0x10
|
||||||
IFT_1822 = 0x2
|
|
||||||
IFT_A12MPPSWITCH = 0x82
|
|
||||||
IFT_AAL2 = 0xbb
|
|
||||||
IFT_AAL5 = 0x31
|
|
||||||
IFT_ADSL = 0x5e
|
|
||||||
IFT_AFLANE8023 = 0x3b
|
|
||||||
IFT_AFLANE8025 = 0x3c
|
|
||||||
IFT_ARAP = 0x58
|
|
||||||
IFT_ARCNET = 0x23
|
|
||||||
IFT_ARCNETPLUS = 0x24
|
|
||||||
IFT_ASYNC = 0x54
|
|
||||||
IFT_ATM = 0x25
|
|
||||||
IFT_ATMDXI = 0x69
|
|
||||||
IFT_ATMFUNI = 0x6a
|
|
||||||
IFT_ATMIMA = 0x6b
|
|
||||||
IFT_ATMLOGICAL = 0x50
|
|
||||||
IFT_ATMRADIO = 0xbd
|
|
||||||
IFT_ATMSUBINTERFACE = 0x86
|
|
||||||
IFT_ATMVCIENDPT = 0xc2
|
|
||||||
IFT_ATMVIRTUAL = 0x95
|
|
||||||
IFT_BGPPOLICYACCOUNTING = 0xa2
|
|
||||||
IFT_BRIDGE = 0xd1
|
IFT_BRIDGE = 0xd1
|
||||||
IFT_BSC = 0x53
|
|
||||||
IFT_CARP = 0xf8
|
IFT_CARP = 0xf8
|
||||||
IFT_CCTEMUL = 0x3d
|
|
||||||
IFT_CEPT = 0x13
|
|
||||||
IFT_CES = 0x85
|
|
||||||
IFT_CHANNEL = 0x46
|
|
||||||
IFT_CNR = 0x55
|
|
||||||
IFT_COFFEE = 0x84
|
|
||||||
IFT_COMPOSITELINK = 0x9b
|
|
||||||
IFT_DCN = 0x8d
|
|
||||||
IFT_DIGITALPOWERLINE = 0x8a
|
|
||||||
IFT_DIGITALWRAPPEROVERHEADCHANNEL = 0xba
|
|
||||||
IFT_DLSW = 0x4a
|
|
||||||
IFT_DOCSCABLEDOWNSTREAM = 0x80
|
|
||||||
IFT_DOCSCABLEMACLAYER = 0x7f
|
|
||||||
IFT_DOCSCABLEUPSTREAM = 0x81
|
|
||||||
IFT_DS0 = 0x51
|
|
||||||
IFT_DS0BUNDLE = 0x52
|
|
||||||
IFT_DS1FDL = 0xaa
|
|
||||||
IFT_DS3 = 0x1e
|
|
||||||
IFT_DTM = 0x8c
|
|
||||||
IFT_DVBASILN = 0xac
|
|
||||||
IFT_DVBASIOUT = 0xad
|
|
||||||
IFT_DVBRCCDOWNSTREAM = 0x93
|
|
||||||
IFT_DVBRCCMACLAYER = 0x92
|
|
||||||
IFT_DVBRCCUPSTREAM = 0x94
|
|
||||||
IFT_ENC = 0xf4
|
|
||||||
IFT_EON = 0x19
|
|
||||||
IFT_EPLRS = 0x57
|
|
||||||
IFT_ESCON = 0x49
|
|
||||||
IFT_ETHER = 0x6
|
|
||||||
IFT_FAITH = 0xf2
|
|
||||||
IFT_FAST = 0x7d
|
|
||||||
IFT_FASTETHER = 0x3e
|
|
||||||
IFT_FASTETHERFX = 0x45
|
|
||||||
IFT_FDDI = 0xf
|
|
||||||
IFT_FIBRECHANNEL = 0x38
|
|
||||||
IFT_FRAMERELAYINTERCONNECT = 0x3a
|
|
||||||
IFT_FRAMERELAYMPI = 0x5c
|
|
||||||
IFT_FRDLCIENDPT = 0xc1
|
|
||||||
IFT_FRELAY = 0x20
|
|
||||||
IFT_FRELAYDCE = 0x2c
|
|
||||||
IFT_FRF16MFRBUNDLE = 0xa3
|
|
||||||
IFT_FRFORWARD = 0x9e
|
|
||||||
IFT_G703AT2MB = 0x43
|
|
||||||
IFT_G703AT64K = 0x42
|
|
||||||
IFT_GIF = 0xf0
|
|
||||||
IFT_GIGABITETHERNET = 0x75
|
|
||||||
IFT_GR303IDT = 0xb2
|
|
||||||
IFT_GR303RDT = 0xb1
|
|
||||||
IFT_H323GATEKEEPER = 0xa4
|
|
||||||
IFT_H323PROXY = 0xa5
|
|
||||||
IFT_HDH1822 = 0x3
|
|
||||||
IFT_HDLC = 0x76
|
|
||||||
IFT_HDSL2 = 0xa8
|
|
||||||
IFT_HIPERLAN2 = 0xb7
|
|
||||||
IFT_HIPPI = 0x2f
|
|
||||||
IFT_HIPPIINTERFACE = 0x39
|
|
||||||
IFT_HOSTPAD = 0x5a
|
|
||||||
IFT_HSSI = 0x2e
|
|
||||||
IFT_HY = 0xe
|
|
||||||
IFT_IBM370PARCHAN = 0x48
|
|
||||||
IFT_IDSL = 0x9a
|
|
||||||
IFT_IEEE1394 = 0x90
|
IFT_IEEE1394 = 0x90
|
||||||
IFT_IEEE80211 = 0x47
|
|
||||||
IFT_IEEE80212 = 0x37
|
|
||||||
IFT_IEEE8023ADLAG = 0xa1
|
|
||||||
IFT_IFGSN = 0x91
|
|
||||||
IFT_IMT = 0xbe
|
|
||||||
IFT_INFINIBAND = 0xc7
|
IFT_INFINIBAND = 0xc7
|
||||||
IFT_INTERLEAVE = 0x7c
|
|
||||||
IFT_IP = 0x7e
|
|
||||||
IFT_IPFORWARD = 0x8e
|
|
||||||
IFT_IPOVERATM = 0x72
|
|
||||||
IFT_IPOVERCDLC = 0x6d
|
|
||||||
IFT_IPOVERCLAW = 0x6e
|
|
||||||
IFT_IPSWITCH = 0x4e
|
|
||||||
IFT_IPXIP = 0xf9
|
|
||||||
IFT_ISDN = 0x3f
|
|
||||||
IFT_ISDNBASIC = 0x14
|
|
||||||
IFT_ISDNPRIMARY = 0x15
|
|
||||||
IFT_ISDNS = 0x4b
|
|
||||||
IFT_ISDNU = 0x4c
|
|
||||||
IFT_ISO88022LLC = 0x29
|
|
||||||
IFT_ISO88023 = 0x7
|
|
||||||
IFT_ISO88024 = 0x8
|
|
||||||
IFT_ISO88025 = 0x9
|
|
||||||
IFT_ISO88025CRFPINT = 0x62
|
|
||||||
IFT_ISO88025DTR = 0x56
|
|
||||||
IFT_ISO88025FIBER = 0x73
|
|
||||||
IFT_ISO88026 = 0xa
|
|
||||||
IFT_ISUP = 0xb3
|
|
||||||
IFT_L2VLAN = 0x87
|
IFT_L2VLAN = 0x87
|
||||||
IFT_L3IPVLAN = 0x88
|
IFT_L3IPVLAN = 0x88
|
||||||
IFT_L3IPXVLAN = 0x89
|
|
||||||
IFT_LAPB = 0x10
|
|
||||||
IFT_LAPD = 0x4d
|
|
||||||
IFT_LAPF = 0x77
|
|
||||||
IFT_LOCALTALK = 0x2a
|
|
||||||
IFT_LOOP = 0x18
|
|
||||||
IFT_MEDIAMAILOVERIP = 0x8b
|
|
||||||
IFT_MFSIGLINK = 0xa7
|
|
||||||
IFT_MIOX25 = 0x26
|
|
||||||
IFT_MODEM = 0x30
|
|
||||||
IFT_MPC = 0x71
|
|
||||||
IFT_MPLS = 0xa6
|
|
||||||
IFT_MPLSTUNNEL = 0x96
|
|
||||||
IFT_MSDSL = 0x8f
|
|
||||||
IFT_MVL = 0xbf
|
|
||||||
IFT_MYRINET = 0x63
|
|
||||||
IFT_NFAS = 0xaf
|
|
||||||
IFT_NSIP = 0x1b
|
|
||||||
IFT_OPTICALCHANNEL = 0xc3
|
|
||||||
IFT_OPTICALTRANSPORT = 0xc4
|
|
||||||
IFT_OTHER = 0x1
|
|
||||||
IFT_P10 = 0xc
|
|
||||||
IFT_P80 = 0xd
|
|
||||||
IFT_PARA = 0x22
|
|
||||||
IFT_PFLOG = 0xf6
|
|
||||||
IFT_PFSYNC = 0xf7
|
|
||||||
IFT_PLC = 0xae
|
|
||||||
IFT_POS = 0xab
|
|
||||||
IFT_PPP = 0x17
|
IFT_PPP = 0x17
|
||||||
IFT_PPPMULTILINKBUNDLE = 0x6c
|
|
||||||
IFT_PROPBWAP2MP = 0xb8
|
|
||||||
IFT_PROPCNLS = 0x59
|
|
||||||
IFT_PROPDOCSWIRELESSDOWNSTREAM = 0xb5
|
|
||||||
IFT_PROPDOCSWIRELESSMACLAYER = 0xb4
|
|
||||||
IFT_PROPDOCSWIRELESSUPSTREAM = 0xb6
|
|
||||||
IFT_PROPMUX = 0x36
|
|
||||||
IFT_PROPVIRTUAL = 0x35
|
IFT_PROPVIRTUAL = 0x35
|
||||||
IFT_PROPWIRELESSP2P = 0x9d
|
|
||||||
IFT_PTPSERIAL = 0x16
|
|
||||||
IFT_PVC = 0xf1
|
|
||||||
IFT_QLLC = 0x44
|
|
||||||
IFT_RADIOMAC = 0xbc
|
|
||||||
IFT_RADSL = 0x5f
|
|
||||||
IFT_REACHDSL = 0xc0
|
|
||||||
IFT_RFC1483 = 0x9f
|
|
||||||
IFT_RS232 = 0x21
|
|
||||||
IFT_RSRB = 0x4f
|
|
||||||
IFT_SDLC = 0x11
|
|
||||||
IFT_SDSL = 0x60
|
|
||||||
IFT_SHDSL = 0xa9
|
|
||||||
IFT_SIP = 0x1f
|
|
||||||
IFT_SLIP = 0x1c
|
|
||||||
IFT_SMDSDXI = 0x2b
|
|
||||||
IFT_SMDSICIP = 0x34
|
|
||||||
IFT_SONET = 0x27
|
|
||||||
IFT_SONETOVERHEADCHANNEL = 0xb9
|
|
||||||
IFT_SONETPATH = 0x32
|
|
||||||
IFT_SONETVT = 0x33
|
|
||||||
IFT_SRP = 0x97
|
|
||||||
IFT_SS7SIGLINK = 0x9c
|
|
||||||
IFT_STACKTOSTACK = 0x6f
|
|
||||||
IFT_STARLAN = 0xb
|
|
||||||
IFT_STF = 0xd7
|
|
||||||
IFT_T1 = 0x12
|
|
||||||
IFT_TDLC = 0x74
|
|
||||||
IFT_TERMPAD = 0x5b
|
|
||||||
IFT_TR008 = 0xb0
|
|
||||||
IFT_TRANSPHDLC = 0x7b
|
|
||||||
IFT_TUNNEL = 0x83
|
|
||||||
IFT_ULTRA = 0x1d
|
|
||||||
IFT_USB = 0xa0
|
|
||||||
IFT_V11 = 0x40
|
|
||||||
IFT_V35 = 0x2d
|
|
||||||
IFT_V36 = 0x41
|
|
||||||
IFT_V37 = 0x78
|
|
||||||
IFT_VDSL = 0x61
|
|
||||||
IFT_VIRTUALIPADDRESS = 0x70
|
|
||||||
IFT_VOICEEM = 0x64
|
|
||||||
IFT_VOICEENCAP = 0x67
|
|
||||||
IFT_VOICEFXO = 0x65
|
|
||||||
IFT_VOICEFXS = 0x66
|
|
||||||
IFT_VOICEOVERATM = 0x98
|
|
||||||
IFT_VOICEOVERFRAMERELAY = 0x99
|
|
||||||
IFT_VOICEOVERIP = 0x68
|
|
||||||
IFT_X213 = 0x5d
|
|
||||||
IFT_X25 = 0x5
|
|
||||||
IFT_X25DDN = 0x4
|
|
||||||
IFT_X25HUNTGROUP = 0x7a
|
|
||||||
IFT_X25MLP = 0x79
|
|
||||||
IFT_X25PLE = 0x28
|
|
||||||
IFT_XETHER = 0x1a
|
|
||||||
IGNBRK = 0x1
|
IGNBRK = 0x1
|
||||||
IGNCR = 0x80
|
IGNCR = 0x80
|
||||||
IGNPAR = 0x4
|
IGNPAR = 0x4
|
||||||
|
@ -797,7 +737,6 @@ const (
|
||||||
IPPROTO_LEAF1 = 0x19
|
IPPROTO_LEAF1 = 0x19
|
||||||
IPPROTO_LEAF2 = 0x1a
|
IPPROTO_LEAF2 = 0x1a
|
||||||
IPPROTO_MAX = 0x100
|
IPPROTO_MAX = 0x100
|
||||||
IPPROTO_MAXID = 0x34
|
|
||||||
IPPROTO_MEAS = 0x13
|
IPPROTO_MEAS = 0x13
|
||||||
IPPROTO_MH = 0x87
|
IPPROTO_MH = 0x87
|
||||||
IPPROTO_MHRP = 0x30
|
IPPROTO_MHRP = 0x30
|
||||||
|
@ -862,6 +801,7 @@ const (
|
||||||
IPPROTO_XTP = 0x24
|
IPPROTO_XTP = 0x24
|
||||||
IPV6_AUTOFLOWLABEL = 0x3b
|
IPV6_AUTOFLOWLABEL = 0x3b
|
||||||
IPV6_BINDANY = 0x40
|
IPV6_BINDANY = 0x40
|
||||||
|
IPV6_BINDMULTI = 0x41
|
||||||
IPV6_BINDV6ONLY = 0x1b
|
IPV6_BINDV6ONLY = 0x1b
|
||||||
IPV6_CHECKSUM = 0x1a
|
IPV6_CHECKSUM = 0x1a
|
||||||
IPV6_DEFAULT_MULTICAST_HOPS = 0x1
|
IPV6_DEFAULT_MULTICAST_HOPS = 0x1
|
||||||
|
@ -869,9 +809,10 @@ const (
|
||||||
IPV6_DEFHLIM = 0x40
|
IPV6_DEFHLIM = 0x40
|
||||||
IPV6_DONTFRAG = 0x3e
|
IPV6_DONTFRAG = 0x3e
|
||||||
IPV6_DSTOPTS = 0x32
|
IPV6_DSTOPTS = 0x32
|
||||||
IPV6_FAITH = 0x1d
|
IPV6_FLOWID = 0x43
|
||||||
IPV6_FLOWINFO_MASK = 0xffffff0f
|
IPV6_FLOWINFO_MASK = 0xffffff0f
|
||||||
IPV6_FLOWLABEL_MASK = 0xffff0f00
|
IPV6_FLOWLABEL_MASK = 0xffff0f00
|
||||||
|
IPV6_FLOWTYPE = 0x44
|
||||||
IPV6_FRAGTTL = 0x78
|
IPV6_FRAGTTL = 0x78
|
||||||
IPV6_FW_ADD = 0x1e
|
IPV6_FW_ADD = 0x1e
|
||||||
IPV6_FW_DEL = 0x1f
|
IPV6_FW_DEL = 0x1f
|
||||||
|
@ -905,12 +846,16 @@ const (
|
||||||
IPV6_PORTRANGE_LOW = 0x2
|
IPV6_PORTRANGE_LOW = 0x2
|
||||||
IPV6_PREFER_TEMPADDR = 0x3f
|
IPV6_PREFER_TEMPADDR = 0x3f
|
||||||
IPV6_RECVDSTOPTS = 0x28
|
IPV6_RECVDSTOPTS = 0x28
|
||||||
|
IPV6_RECVFLOWID = 0x46
|
||||||
IPV6_RECVHOPLIMIT = 0x25
|
IPV6_RECVHOPLIMIT = 0x25
|
||||||
IPV6_RECVHOPOPTS = 0x27
|
IPV6_RECVHOPOPTS = 0x27
|
||||||
IPV6_RECVPATHMTU = 0x2b
|
IPV6_RECVPATHMTU = 0x2b
|
||||||
IPV6_RECVPKTINFO = 0x24
|
IPV6_RECVPKTINFO = 0x24
|
||||||
|
IPV6_RECVRSSBUCKETID = 0x47
|
||||||
IPV6_RECVRTHDR = 0x26
|
IPV6_RECVRTHDR = 0x26
|
||||||
IPV6_RECVTCLASS = 0x39
|
IPV6_RECVTCLASS = 0x39
|
||||||
|
IPV6_RSSBUCKETID = 0x45
|
||||||
|
IPV6_RSS_LISTEN_BUCKET = 0x42
|
||||||
IPV6_RTHDR = 0x33
|
IPV6_RTHDR = 0x33
|
||||||
IPV6_RTHDRDSTOPTS = 0x23
|
IPV6_RTHDRDSTOPTS = 0x23
|
||||||
IPV6_RTHDR_LOOSE = 0x0
|
IPV6_RTHDR_LOOSE = 0x0
|
||||||
|
@ -926,6 +871,7 @@ const (
|
||||||
IP_ADD_MEMBERSHIP = 0xc
|
IP_ADD_MEMBERSHIP = 0xc
|
||||||
IP_ADD_SOURCE_MEMBERSHIP = 0x46
|
IP_ADD_SOURCE_MEMBERSHIP = 0x46
|
||||||
IP_BINDANY = 0x18
|
IP_BINDANY = 0x18
|
||||||
|
IP_BINDMULTI = 0x19
|
||||||
IP_BLOCK_SOURCE = 0x48
|
IP_BLOCK_SOURCE = 0x48
|
||||||
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
IP_DEFAULT_MULTICAST_LOOP = 0x1
|
||||||
IP_DEFAULT_MULTICAST_TTL = 0x1
|
IP_DEFAULT_MULTICAST_TTL = 0x1
|
||||||
|
@ -938,7 +884,8 @@ const (
|
||||||
IP_DUMMYNET_DEL = 0x3d
|
IP_DUMMYNET_DEL = 0x3d
|
||||||
IP_DUMMYNET_FLUSH = 0x3e
|
IP_DUMMYNET_FLUSH = 0x3e
|
||||||
IP_DUMMYNET_GET = 0x40
|
IP_DUMMYNET_GET = 0x40
|
||||||
IP_FAITH = 0x16
|
IP_FLOWID = 0x5a
|
||||||
|
IP_FLOWTYPE = 0x5b
|
||||||
IP_FW3 = 0x30
|
IP_FW3 = 0x30
|
||||||
IP_FW_ADD = 0x32
|
IP_FW_ADD = 0x32
|
||||||
IP_FW_DEL = 0x33
|
IP_FW_DEL = 0x33
|
||||||
|
@ -980,13 +927,17 @@ const (
|
||||||
IP_PORTRANGE_HIGH = 0x1
|
IP_PORTRANGE_HIGH = 0x1
|
||||||
IP_PORTRANGE_LOW = 0x2
|
IP_PORTRANGE_LOW = 0x2
|
||||||
IP_RECVDSTADDR = 0x7
|
IP_RECVDSTADDR = 0x7
|
||||||
|
IP_RECVFLOWID = 0x5d
|
||||||
IP_RECVIF = 0x14
|
IP_RECVIF = 0x14
|
||||||
IP_RECVOPTS = 0x5
|
IP_RECVOPTS = 0x5
|
||||||
IP_RECVRETOPTS = 0x6
|
IP_RECVRETOPTS = 0x6
|
||||||
|
IP_RECVRSSBUCKETID = 0x5e
|
||||||
IP_RECVTOS = 0x44
|
IP_RECVTOS = 0x44
|
||||||
IP_RECVTTL = 0x41
|
IP_RECVTTL = 0x41
|
||||||
IP_RETOPTS = 0x8
|
IP_RETOPTS = 0x8
|
||||||
IP_RF = 0x8000
|
IP_RF = 0x8000
|
||||||
|
IP_RSSBUCKETID = 0x5c
|
||||||
|
IP_RSS_LISTEN_BUCKET = 0x1a
|
||||||
IP_RSVP_OFF = 0x10
|
IP_RSVP_OFF = 0x10
|
||||||
IP_RSVP_ON = 0xf
|
IP_RSVP_ON = 0xf
|
||||||
IP_RSVP_VIF_OFF = 0x12
|
IP_RSVP_VIF_OFF = 0x12
|
||||||
|
@ -1024,13 +975,14 @@ const (
|
||||||
MAP_EXCL = 0x4000
|
MAP_EXCL = 0x4000
|
||||||
MAP_FILE = 0x0
|
MAP_FILE = 0x0
|
||||||
MAP_FIXED = 0x10
|
MAP_FIXED = 0x10
|
||||||
|
MAP_GUARD = 0x2000
|
||||||
MAP_HASSEMAPHORE = 0x200
|
MAP_HASSEMAPHORE = 0x200
|
||||||
MAP_NOCORE = 0x20000
|
MAP_NOCORE = 0x20000
|
||||||
MAP_NORESERVE = 0x40
|
|
||||||
MAP_NOSYNC = 0x800
|
MAP_NOSYNC = 0x800
|
||||||
MAP_PREFAULT_READ = 0x40000
|
MAP_PREFAULT_READ = 0x40000
|
||||||
MAP_PRIVATE = 0x2
|
MAP_PRIVATE = 0x2
|
||||||
MAP_RENAME = 0x20
|
MAP_RESERVED0020 = 0x20
|
||||||
|
MAP_RESERVED0040 = 0x40
|
||||||
MAP_RESERVED0080 = 0x80
|
MAP_RESERVED0080 = 0x80
|
||||||
MAP_RESERVED0100 = 0x100
|
MAP_RESERVED0100 = 0x100
|
||||||
MAP_SHARED = 0x1
|
MAP_SHARED = 0x1
|
||||||
|
@ -1051,6 +1003,7 @@ const (
|
||||||
MSG_PEEK = 0x2
|
MSG_PEEK = 0x2
|
||||||
MSG_TRUNC = 0x10
|
MSG_TRUNC = 0x10
|
||||||
MSG_WAITALL = 0x40
|
MSG_WAITALL = 0x40
|
||||||
|
MSG_WAITFORONE = 0x80000
|
||||||
MS_ASYNC = 0x1
|
MS_ASYNC = 0x1
|
||||||
MS_INVALIDATE = 0x2
|
MS_INVALIDATE = 0x2
|
||||||
MS_SYNC = 0x0
|
MS_SYNC = 0x0
|
||||||
|
@ -1060,10 +1013,12 @@ const (
|
||||||
NET_RT_IFLIST = 0x3
|
NET_RT_IFLIST = 0x3
|
||||||
NET_RT_IFLISTL = 0x5
|
NET_RT_IFLISTL = 0x5
|
||||||
NET_RT_IFMALIST = 0x4
|
NET_RT_IFMALIST = 0x4
|
||||||
NET_RT_MAXID = 0x6
|
|
||||||
NOFLSH = 0x80000000
|
NOFLSH = 0x80000000
|
||||||
|
NOKERNINFO = 0x2000000
|
||||||
NOTE_ATTRIB = 0x8
|
NOTE_ATTRIB = 0x8
|
||||||
NOTE_CHILD = 0x4
|
NOTE_CHILD = 0x4
|
||||||
|
NOTE_CLOSE = 0x100
|
||||||
|
NOTE_CLOSE_WRITE = 0x200
|
||||||
NOTE_DELETE = 0x1
|
NOTE_DELETE = 0x1
|
||||||
NOTE_EXEC = 0x20000000
|
NOTE_EXEC = 0x20000000
|
||||||
NOTE_EXIT = 0x80000000
|
NOTE_EXIT = 0x80000000
|
||||||
|
@ -1074,16 +1029,23 @@ const (
|
||||||
NOTE_FFLAGSMASK = 0xffffff
|
NOTE_FFLAGSMASK = 0xffffff
|
||||||
NOTE_FFNOP = 0x0
|
NOTE_FFNOP = 0x0
|
||||||
NOTE_FFOR = 0x80000000
|
NOTE_FFOR = 0x80000000
|
||||||
|
NOTE_FILE_POLL = 0x2
|
||||||
NOTE_FORK = 0x40000000
|
NOTE_FORK = 0x40000000
|
||||||
NOTE_LINK = 0x10
|
NOTE_LINK = 0x10
|
||||||
NOTE_LOWAT = 0x1
|
NOTE_LOWAT = 0x1
|
||||||
|
NOTE_MSECONDS = 0x2
|
||||||
|
NOTE_NSECONDS = 0x8
|
||||||
|
NOTE_OPEN = 0x80
|
||||||
NOTE_PCTRLMASK = 0xf0000000
|
NOTE_PCTRLMASK = 0xf0000000
|
||||||
NOTE_PDATAMASK = 0xfffff
|
NOTE_PDATAMASK = 0xfffff
|
||||||
|
NOTE_READ = 0x400
|
||||||
NOTE_RENAME = 0x20
|
NOTE_RENAME = 0x20
|
||||||
NOTE_REVOKE = 0x40
|
NOTE_REVOKE = 0x40
|
||||||
|
NOTE_SECONDS = 0x1
|
||||||
NOTE_TRACK = 0x1
|
NOTE_TRACK = 0x1
|
||||||
NOTE_TRACKERR = 0x2
|
NOTE_TRACKERR = 0x2
|
||||||
NOTE_TRIGGER = 0x1000000
|
NOTE_TRIGGER = 0x1000000
|
||||||
|
NOTE_USECONDS = 0x4
|
||||||
NOTE_WRITE = 0x2
|
NOTE_WRITE = 0x2
|
||||||
OCRNL = 0x10
|
OCRNL = 0x10
|
||||||
ONLCR = 0x2
|
ONLCR = 0x2
|
||||||
|
@ -1091,6 +1053,7 @@ const (
|
||||||
ONOCR = 0x20
|
ONOCR = 0x20
|
||||||
ONOEOT = 0x8
|
ONOEOT = 0x8
|
||||||
OPOST = 0x1
|
OPOST = 0x1
|
||||||
|
OXTABS = 0x4
|
||||||
O_ACCMODE = 0x3
|
O_ACCMODE = 0x3
|
||||||
O_APPEND = 0x8
|
O_APPEND = 0x8
|
||||||
O_ASYNC = 0x40
|
O_ASYNC = 0x40
|
||||||
|
@ -1112,6 +1075,7 @@ const (
|
||||||
O_SYNC = 0x80
|
O_SYNC = 0x80
|
||||||
O_TRUNC = 0x400
|
O_TRUNC = 0x400
|
||||||
O_TTY_INIT = 0x80000
|
O_TTY_INIT = 0x80000
|
||||||
|
O_VERIFY = 0x200000
|
||||||
O_WRONLY = 0x1
|
O_WRONLY = 0x1
|
||||||
PARENB = 0x1000
|
PARENB = 0x1000
|
||||||
PARMRK = 0x8
|
PARMRK = 0x8
|
||||||
|
@ -1129,7 +1093,10 @@ const (
|
||||||
RLIMIT_CPU = 0x0
|
RLIMIT_CPU = 0x0
|
||||||
RLIMIT_DATA = 0x2
|
RLIMIT_DATA = 0x2
|
||||||
RLIMIT_FSIZE = 0x1
|
RLIMIT_FSIZE = 0x1
|
||||||
|
RLIMIT_MEMLOCK = 0x6
|
||||||
RLIMIT_NOFILE = 0x8
|
RLIMIT_NOFILE = 0x8
|
||||||
|
RLIMIT_NPROC = 0x7
|
||||||
|
RLIMIT_RSS = 0x5
|
||||||
RLIMIT_STACK = 0x3
|
RLIMIT_STACK = 0x3
|
||||||
RLIM_INFINITY = 0x7fffffffffffffff
|
RLIM_INFINITY = 0x7fffffffffffffff
|
||||||
RTAX_AUTHOR = 0x6
|
RTAX_AUTHOR = 0x6
|
||||||
|
@ -1153,6 +1120,7 @@ const (
|
||||||
RTF_BROADCAST = 0x400000
|
RTF_BROADCAST = 0x400000
|
||||||
RTF_DONE = 0x40
|
RTF_DONE = 0x40
|
||||||
RTF_DYNAMIC = 0x10
|
RTF_DYNAMIC = 0x10
|
||||||
|
RTF_FIXEDMTU = 0x80000
|
||||||
RTF_FMASK = 0x1004d808
|
RTF_FMASK = 0x1004d808
|
||||||
RTF_GATEWAY = 0x2
|
RTF_GATEWAY = 0x2
|
||||||
RTF_GWFLAG_COMPAT = 0x80000000
|
RTF_GWFLAG_COMPAT = 0x80000000
|
||||||
|
@ -1163,7 +1131,6 @@ const (
|
||||||
RTF_MODIFIED = 0x20
|
RTF_MODIFIED = 0x20
|
||||||
RTF_MULTICAST = 0x800000
|
RTF_MULTICAST = 0x800000
|
||||||
RTF_PINNED = 0x100000
|
RTF_PINNED = 0x100000
|
||||||
RTF_PRCLONING = 0x10000
|
|
||||||
RTF_PROTO1 = 0x8000
|
RTF_PROTO1 = 0x8000
|
||||||
RTF_PROTO2 = 0x4000
|
RTF_PROTO2 = 0x4000
|
||||||
RTF_PROTO3 = 0x40000
|
RTF_PROTO3 = 0x40000
|
||||||
|
@ -1187,8 +1154,6 @@ const (
|
||||||
RTM_MISS = 0x7
|
RTM_MISS = 0x7
|
||||||
RTM_NEWADDR = 0xc
|
RTM_NEWADDR = 0xc
|
||||||
RTM_NEWMADDR = 0xf
|
RTM_NEWMADDR = 0xf
|
||||||
RTM_OLDADD = 0x9
|
|
||||||
RTM_OLDDEL = 0xa
|
|
||||||
RTM_REDIRECT = 0x6
|
RTM_REDIRECT = 0x6
|
||||||
RTM_RESOLVE = 0xb
|
RTM_RESOLVE = 0xb
|
||||||
RTM_RTTUNIT = 0xf4240
|
RTM_RTTUNIT = 0xf4240
|
||||||
|
@ -1203,9 +1168,19 @@ const (
|
||||||
RTV_SSTHRESH = 0x20
|
RTV_SSTHRESH = 0x20
|
||||||
RTV_WEIGHT = 0x100
|
RTV_WEIGHT = 0x100
|
||||||
RT_ALL_FIBS = -0x1
|
RT_ALL_FIBS = -0x1
|
||||||
|
RT_BLACKHOLE = 0x40
|
||||||
RT_CACHING_CONTEXT = 0x1
|
RT_CACHING_CONTEXT = 0x1
|
||||||
RT_DEFAULT_FIB = 0x0
|
RT_DEFAULT_FIB = 0x0
|
||||||
|
RT_HAS_GW = 0x80
|
||||||
|
RT_HAS_HEADER = 0x10
|
||||||
|
RT_HAS_HEADER_BIT = 0x4
|
||||||
|
RT_L2_ME = 0x4
|
||||||
|
RT_L2_ME_BIT = 0x2
|
||||||
|
RT_LLE_CACHE = 0x100
|
||||||
|
RT_MAY_LOOP = 0x8
|
||||||
|
RT_MAY_LOOP_BIT = 0x3
|
||||||
RT_NORTREF = 0x2
|
RT_NORTREF = 0x2
|
||||||
|
RT_REJECT = 0x20
|
||||||
RUSAGE_CHILDREN = -0x1
|
RUSAGE_CHILDREN = -0x1
|
||||||
RUSAGE_SELF = 0x0
|
RUSAGE_SELF = 0x0
|
||||||
RUSAGE_THREAD = 0x1
|
RUSAGE_THREAD = 0x1
|
||||||
|
@ -1217,21 +1192,19 @@ const (
|
||||||
SHUT_RDWR = 0x2
|
SHUT_RDWR = 0x2
|
||||||
SHUT_WR = 0x1
|
SHUT_WR = 0x1
|
||||||
SIOCADDMULTI = 0x80206931
|
SIOCADDMULTI = 0x80206931
|
||||||
SIOCADDRT = 0x8030720a
|
|
||||||
SIOCAIFADDR = 0x8040691a
|
SIOCAIFADDR = 0x8040691a
|
||||||
SIOCAIFGROUP = 0x80246987
|
SIOCAIFGROUP = 0x80246987
|
||||||
SIOCALIFADDR = 0x8118691b
|
|
||||||
SIOCATMARK = 0x40047307
|
SIOCATMARK = 0x40047307
|
||||||
SIOCDELMULTI = 0x80206932
|
SIOCDELMULTI = 0x80206932
|
||||||
SIOCDELRT = 0x8030720b
|
|
||||||
SIOCDIFADDR = 0x80206919
|
SIOCDIFADDR = 0x80206919
|
||||||
SIOCDIFGROUP = 0x80246989
|
SIOCDIFGROUP = 0x80246989
|
||||||
SIOCDIFPHYADDR = 0x80206949
|
SIOCDIFPHYADDR = 0x80206949
|
||||||
SIOCDLIFADDR = 0x8118691d
|
|
||||||
SIOCGDRVSPEC = 0xc01c697b
|
SIOCGDRVSPEC = 0xc01c697b
|
||||||
SIOCGETSGCNT = 0xc0147210
|
SIOCGETSGCNT = 0xc0147210
|
||||||
SIOCGETVIFCNT = 0xc014720f
|
SIOCGETVIFCNT = 0xc014720f
|
||||||
SIOCGHIWAT = 0x40047301
|
SIOCGHIWAT = 0x40047301
|
||||||
|
SIOCGHWADDR = 0xc020693e
|
||||||
|
SIOCGI2C = 0xc020693d
|
||||||
SIOCGIFADDR = 0xc0206921
|
SIOCGIFADDR = 0xc0206921
|
||||||
SIOCGIFBRDADDR = 0xc0206923
|
SIOCGIFBRDADDR = 0xc0206923
|
||||||
SIOCGIFCAP = 0xc020691f
|
SIOCGIFCAP = 0xc020691f
|
||||||
|
@ -1253,12 +1226,12 @@ const (
|
||||||
SIOCGIFPHYS = 0xc0206935
|
SIOCGIFPHYS = 0xc0206935
|
||||||
SIOCGIFPSRCADDR = 0xc0206947
|
SIOCGIFPSRCADDR = 0xc0206947
|
||||||
SIOCGIFSTATUS = 0xc331693b
|
SIOCGIFSTATUS = 0xc331693b
|
||||||
SIOCGLIFADDR = 0xc118691c
|
SIOCGIFXMEDIA = 0xc028698b
|
||||||
SIOCGLIFPHYADDR = 0xc118694b
|
|
||||||
SIOCGLOWAT = 0x40047303
|
SIOCGLOWAT = 0x40047303
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
SIOCGPRIVATE_0 = 0xc0206950
|
SIOCGPRIVATE_0 = 0xc0206950
|
||||||
SIOCGPRIVATE_1 = 0xc0206951
|
SIOCGPRIVATE_1 = 0xc0206951
|
||||||
|
SIOCGTUNFIB = 0xc020695e
|
||||||
SIOCIFCREATE = 0xc020697a
|
SIOCIFCREATE = 0xc020697a
|
||||||
SIOCIFCREATE2 = 0xc020697c
|
SIOCIFCREATE2 = 0xc020697c
|
||||||
SIOCIFDESTROY = 0x80206979
|
SIOCIFDESTROY = 0x80206979
|
||||||
|
@ -1284,9 +1257,9 @@ const (
|
||||||
SIOCSIFPHYS = 0x80206936
|
SIOCSIFPHYS = 0x80206936
|
||||||
SIOCSIFRVNET = 0xc020695b
|
SIOCSIFRVNET = 0xc020695b
|
||||||
SIOCSIFVNET = 0xc020695a
|
SIOCSIFVNET = 0xc020695a
|
||||||
SIOCSLIFPHYADDR = 0x8118694a
|
|
||||||
SIOCSLOWAT = 0x80047302
|
SIOCSLOWAT = 0x80047302
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
|
SIOCSTUNFIB = 0x8020695f
|
||||||
SOCK_CLOEXEC = 0x10000000
|
SOCK_CLOEXEC = 0x10000000
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
SOCK_MAXADDRLEN = 0xff
|
SOCK_MAXADDRLEN = 0xff
|
||||||
|
@ -1331,11 +1304,22 @@ const (
|
||||||
SO_USELOOPBACK = 0x40
|
SO_USELOOPBACK = 0x40
|
||||||
SO_USER_COOKIE = 0x1015
|
SO_USER_COOKIE = 0x1015
|
||||||
SO_VENDOR = 0x80000000
|
SO_VENDOR = 0x80000000
|
||||||
|
TAB0 = 0x0
|
||||||
|
TAB3 = 0x4
|
||||||
|
TABDLY = 0x4
|
||||||
TCIFLUSH = 0x1
|
TCIFLUSH = 0x1
|
||||||
|
TCIOFF = 0x3
|
||||||
TCIOFLUSH = 0x3
|
TCIOFLUSH = 0x3
|
||||||
|
TCION = 0x4
|
||||||
TCOFLUSH = 0x2
|
TCOFLUSH = 0x2
|
||||||
|
TCOOFF = 0x1
|
||||||
|
TCOON = 0x2
|
||||||
TCP_CA_NAME_MAX = 0x10
|
TCP_CA_NAME_MAX = 0x10
|
||||||
|
TCP_CCALGOOPT = 0x41
|
||||||
TCP_CONGESTION = 0x40
|
TCP_CONGESTION = 0x40
|
||||||
|
TCP_FASTOPEN = 0x401
|
||||||
|
TCP_FUNCTION_BLK = 0x2000
|
||||||
|
TCP_FUNCTION_NAME_LEN_MAX = 0x20
|
||||||
TCP_INFO = 0x20
|
TCP_INFO = 0x20
|
||||||
TCP_KEEPCNT = 0x400
|
TCP_KEEPCNT = 0x400
|
||||||
TCP_KEEPIDLE = 0x100
|
TCP_KEEPIDLE = 0x100
|
||||||
|
@ -1354,6 +1338,8 @@ const (
|
||||||
TCP_NODELAY = 0x1
|
TCP_NODELAY = 0x1
|
||||||
TCP_NOOPT = 0x8
|
TCP_NOOPT = 0x8
|
||||||
TCP_NOPUSH = 0x4
|
TCP_NOPUSH = 0x4
|
||||||
|
TCP_PCAP_IN = 0x1000
|
||||||
|
TCP_PCAP_OUT = 0x800
|
||||||
TCP_VENDOR = 0x80000000
|
TCP_VENDOR = 0x80000000
|
||||||
TCSAFLUSH = 0x2
|
TCSAFLUSH = 0x2
|
||||||
TIOCCBRK = 0x2000747a
|
TIOCCBRK = 0x2000747a
|
||||||
|
@ -1416,7 +1402,7 @@ const (
|
||||||
TIOCSTI = 0x80017472
|
TIOCSTI = 0x80017472
|
||||||
TIOCSTOP = 0x2000746f
|
TIOCSTOP = 0x2000746f
|
||||||
TIOCSWINSZ = 0x80087467
|
TIOCSWINSZ = 0x80087467
|
||||||
TIOCTIMESTAMP = 0x40087459
|
TIOCTIMESTAMP = 0x40107459
|
||||||
TIOCUCNTL = 0x80047466
|
TIOCUCNTL = 0x80047466
|
||||||
TOSTOP = 0x400000
|
TOSTOP = 0x400000
|
||||||
VDISCARD = 0xf
|
VDISCARD = 0xf
|
||||||
|
|
|
@ -1413,6 +1413,16 @@ const (
|
||||||
SIOCADDMULTI = 0x8931
|
SIOCADDMULTI = 0x8931
|
||||||
SIOCADDRT = 0x890b
|
SIOCADDRT = 0x890b
|
||||||
SIOCATMARK = 0x8905
|
SIOCATMARK = 0x8905
|
||||||
|
SIOCBONDCHANGEACTIVE = 0x8995
|
||||||
|
SIOCBONDENSLAVE = 0x8990
|
||||||
|
SIOCBONDINFOQUERY = 0x8994
|
||||||
|
SIOCBONDRELEASE = 0x8991
|
||||||
|
SIOCBONDSETHWADDR = 0x8992
|
||||||
|
SIOCBONDSLAVEINFOQUERY = 0x8993
|
||||||
|
SIOCBRADDBR = 0x89a0
|
||||||
|
SIOCBRADDIF = 0x89a2
|
||||||
|
SIOCBRDELBR = 0x89a1
|
||||||
|
SIOCBRDELIF = 0x89a3
|
||||||
SIOCDARP = 0x8953
|
SIOCDARP = 0x8953
|
||||||
SIOCDELDLCI = 0x8981
|
SIOCDELDLCI = 0x8981
|
||||||
SIOCDELMULTI = 0x8932
|
SIOCDELMULTI = 0x8932
|
||||||
|
@ -1420,7 +1430,9 @@ const (
|
||||||
SIOCDEVPRIVATE = 0x89f0
|
SIOCDEVPRIVATE = 0x89f0
|
||||||
SIOCDIFADDR = 0x8936
|
SIOCDIFADDR = 0x8936
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
SIOCGIFBRDADDR = 0x8919
|
SIOCGIFBRDADDR = 0x8919
|
||||||
|
@ -1440,13 +1452,21 @@ const (
|
||||||
SIOCGIFPFLAGS = 0x8935
|
SIOCGIFPFLAGS = 0x8935
|
||||||
SIOCGIFSLAVE = 0x8929
|
SIOCGIFSLAVE = 0x8929
|
||||||
SIOCGIFTXQLEN = 0x8942
|
SIOCGIFTXQLEN = 0x8942
|
||||||
|
SIOCGIFVLAN = 0x8982
|
||||||
|
SIOCGMIIPHY = 0x8947
|
||||||
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCINQ = 0x541b
|
||||||
|
SIOCOUTQ = 0x5411
|
||||||
|
SIOCOUTQNSD = 0x894b
|
||||||
SIOCPROTOPRIVATE = 0x89e0
|
SIOCPROTOPRIVATE = 0x89e0
|
||||||
SIOCRTMSG = 0x890d
|
SIOCRTMSG = 0x890d
|
||||||
SIOCSARP = 0x8955
|
SIOCSARP = 0x8955
|
||||||
|
SIOCSHWTSTAMP = 0x89b0
|
||||||
SIOCSIFADDR = 0x8916
|
SIOCSIFADDR = 0x8916
|
||||||
SIOCSIFBR = 0x8941
|
SIOCSIFBR = 0x8941
|
||||||
SIOCSIFBRDADDR = 0x891a
|
SIOCSIFBRDADDR = 0x891a
|
||||||
|
@ -1465,11 +1485,15 @@ const (
|
||||||
SIOCSIFPFLAGS = 0x8934
|
SIOCSIFPFLAGS = 0x8934
|
||||||
SIOCSIFSLAVE = 0x8930
|
SIOCSIFSLAVE = 0x8930
|
||||||
SIOCSIFTXQLEN = 0x8943
|
SIOCSIFTXQLEN = 0x8943
|
||||||
|
SIOCSIFVLAN = 0x8983
|
||||||
|
SIOCSMIIREG = 0x8949
|
||||||
SIOCSPGRP = 0x8902
|
SIOCSPGRP = 0x8902
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
|
SIOCWANDEV = 0x894a
|
||||||
SOCK_CLOEXEC = 0x80000
|
SOCK_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
|
SOCK_IOC_TYPE = 0x89
|
||||||
SOCK_NONBLOCK = 0x800
|
SOCK_NONBLOCK = 0x800
|
||||||
SOCK_PACKET = 0xa
|
SOCK_PACKET = 0xa
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
|
|
|
@ -1414,6 +1414,16 @@ const (
|
||||||
SIOCADDMULTI = 0x8931
|
SIOCADDMULTI = 0x8931
|
||||||
SIOCADDRT = 0x890b
|
SIOCADDRT = 0x890b
|
||||||
SIOCATMARK = 0x8905
|
SIOCATMARK = 0x8905
|
||||||
|
SIOCBONDCHANGEACTIVE = 0x8995
|
||||||
|
SIOCBONDENSLAVE = 0x8990
|
||||||
|
SIOCBONDINFOQUERY = 0x8994
|
||||||
|
SIOCBONDRELEASE = 0x8991
|
||||||
|
SIOCBONDSETHWADDR = 0x8992
|
||||||
|
SIOCBONDSLAVEINFOQUERY = 0x8993
|
||||||
|
SIOCBRADDBR = 0x89a0
|
||||||
|
SIOCBRADDIF = 0x89a2
|
||||||
|
SIOCBRDELBR = 0x89a1
|
||||||
|
SIOCBRDELIF = 0x89a3
|
||||||
SIOCDARP = 0x8953
|
SIOCDARP = 0x8953
|
||||||
SIOCDELDLCI = 0x8981
|
SIOCDELDLCI = 0x8981
|
||||||
SIOCDELMULTI = 0x8932
|
SIOCDELMULTI = 0x8932
|
||||||
|
@ -1421,7 +1431,9 @@ const (
|
||||||
SIOCDEVPRIVATE = 0x89f0
|
SIOCDEVPRIVATE = 0x89f0
|
||||||
SIOCDIFADDR = 0x8936
|
SIOCDIFADDR = 0x8936
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
SIOCGIFBRDADDR = 0x8919
|
SIOCGIFBRDADDR = 0x8919
|
||||||
|
@ -1441,13 +1453,21 @@ const (
|
||||||
SIOCGIFPFLAGS = 0x8935
|
SIOCGIFPFLAGS = 0x8935
|
||||||
SIOCGIFSLAVE = 0x8929
|
SIOCGIFSLAVE = 0x8929
|
||||||
SIOCGIFTXQLEN = 0x8942
|
SIOCGIFTXQLEN = 0x8942
|
||||||
|
SIOCGIFVLAN = 0x8982
|
||||||
|
SIOCGMIIPHY = 0x8947
|
||||||
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCINQ = 0x541b
|
||||||
|
SIOCOUTQ = 0x5411
|
||||||
|
SIOCOUTQNSD = 0x894b
|
||||||
SIOCPROTOPRIVATE = 0x89e0
|
SIOCPROTOPRIVATE = 0x89e0
|
||||||
SIOCRTMSG = 0x890d
|
SIOCRTMSG = 0x890d
|
||||||
SIOCSARP = 0x8955
|
SIOCSARP = 0x8955
|
||||||
|
SIOCSHWTSTAMP = 0x89b0
|
||||||
SIOCSIFADDR = 0x8916
|
SIOCSIFADDR = 0x8916
|
||||||
SIOCSIFBR = 0x8941
|
SIOCSIFBR = 0x8941
|
||||||
SIOCSIFBRDADDR = 0x891a
|
SIOCSIFBRDADDR = 0x891a
|
||||||
|
@ -1466,11 +1486,15 @@ const (
|
||||||
SIOCSIFPFLAGS = 0x8934
|
SIOCSIFPFLAGS = 0x8934
|
||||||
SIOCSIFSLAVE = 0x8930
|
SIOCSIFSLAVE = 0x8930
|
||||||
SIOCSIFTXQLEN = 0x8943
|
SIOCSIFTXQLEN = 0x8943
|
||||||
|
SIOCSIFVLAN = 0x8983
|
||||||
|
SIOCSMIIREG = 0x8949
|
||||||
SIOCSPGRP = 0x8902
|
SIOCSPGRP = 0x8902
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
|
SIOCWANDEV = 0x894a
|
||||||
SOCK_CLOEXEC = 0x80000
|
SOCK_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
|
SOCK_IOC_TYPE = 0x89
|
||||||
SOCK_NONBLOCK = 0x800
|
SOCK_NONBLOCK = 0x800
|
||||||
SOCK_PACKET = 0xa
|
SOCK_PACKET = 0xa
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
|
|
|
@ -1418,6 +1418,16 @@ const (
|
||||||
SIOCADDMULTI = 0x8931
|
SIOCADDMULTI = 0x8931
|
||||||
SIOCADDRT = 0x890b
|
SIOCADDRT = 0x890b
|
||||||
SIOCATMARK = 0x8905
|
SIOCATMARK = 0x8905
|
||||||
|
SIOCBONDCHANGEACTIVE = 0x8995
|
||||||
|
SIOCBONDENSLAVE = 0x8990
|
||||||
|
SIOCBONDINFOQUERY = 0x8994
|
||||||
|
SIOCBONDRELEASE = 0x8991
|
||||||
|
SIOCBONDSETHWADDR = 0x8992
|
||||||
|
SIOCBONDSLAVEINFOQUERY = 0x8993
|
||||||
|
SIOCBRADDBR = 0x89a0
|
||||||
|
SIOCBRADDIF = 0x89a2
|
||||||
|
SIOCBRDELBR = 0x89a1
|
||||||
|
SIOCBRDELIF = 0x89a3
|
||||||
SIOCDARP = 0x8953
|
SIOCDARP = 0x8953
|
||||||
SIOCDELDLCI = 0x8981
|
SIOCDELDLCI = 0x8981
|
||||||
SIOCDELMULTI = 0x8932
|
SIOCDELMULTI = 0x8932
|
||||||
|
@ -1425,7 +1435,9 @@ const (
|
||||||
SIOCDEVPRIVATE = 0x89f0
|
SIOCDEVPRIVATE = 0x89f0
|
||||||
SIOCDIFADDR = 0x8936
|
SIOCDIFADDR = 0x8936
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
SIOCGIFBRDADDR = 0x8919
|
SIOCGIFBRDADDR = 0x8919
|
||||||
|
@ -1445,13 +1457,21 @@ const (
|
||||||
SIOCGIFPFLAGS = 0x8935
|
SIOCGIFPFLAGS = 0x8935
|
||||||
SIOCGIFSLAVE = 0x8929
|
SIOCGIFSLAVE = 0x8929
|
||||||
SIOCGIFTXQLEN = 0x8942
|
SIOCGIFTXQLEN = 0x8942
|
||||||
|
SIOCGIFVLAN = 0x8982
|
||||||
|
SIOCGMIIPHY = 0x8947
|
||||||
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCINQ = 0x541b
|
||||||
|
SIOCOUTQ = 0x5411
|
||||||
|
SIOCOUTQNSD = 0x894b
|
||||||
SIOCPROTOPRIVATE = 0x89e0
|
SIOCPROTOPRIVATE = 0x89e0
|
||||||
SIOCRTMSG = 0x890d
|
SIOCRTMSG = 0x890d
|
||||||
SIOCSARP = 0x8955
|
SIOCSARP = 0x8955
|
||||||
|
SIOCSHWTSTAMP = 0x89b0
|
||||||
SIOCSIFADDR = 0x8916
|
SIOCSIFADDR = 0x8916
|
||||||
SIOCSIFBR = 0x8941
|
SIOCSIFBR = 0x8941
|
||||||
SIOCSIFBRDADDR = 0x891a
|
SIOCSIFBRDADDR = 0x891a
|
||||||
|
@ -1470,11 +1490,15 @@ const (
|
||||||
SIOCSIFPFLAGS = 0x8934
|
SIOCSIFPFLAGS = 0x8934
|
||||||
SIOCSIFSLAVE = 0x8930
|
SIOCSIFSLAVE = 0x8930
|
||||||
SIOCSIFTXQLEN = 0x8943
|
SIOCSIFTXQLEN = 0x8943
|
||||||
|
SIOCSIFVLAN = 0x8983
|
||||||
|
SIOCSMIIREG = 0x8949
|
||||||
SIOCSPGRP = 0x8902
|
SIOCSPGRP = 0x8902
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
|
SIOCWANDEV = 0x894a
|
||||||
SOCK_CLOEXEC = 0x80000
|
SOCK_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
|
SOCK_IOC_TYPE = 0x89
|
||||||
SOCK_NONBLOCK = 0x800
|
SOCK_NONBLOCK = 0x800
|
||||||
SOCK_PACKET = 0xa
|
SOCK_PACKET = 0xa
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
|
|
|
@ -1403,6 +1403,16 @@ const (
|
||||||
SIOCADDMULTI = 0x8931
|
SIOCADDMULTI = 0x8931
|
||||||
SIOCADDRT = 0x890b
|
SIOCADDRT = 0x890b
|
||||||
SIOCATMARK = 0x8905
|
SIOCATMARK = 0x8905
|
||||||
|
SIOCBONDCHANGEACTIVE = 0x8995
|
||||||
|
SIOCBONDENSLAVE = 0x8990
|
||||||
|
SIOCBONDINFOQUERY = 0x8994
|
||||||
|
SIOCBONDRELEASE = 0x8991
|
||||||
|
SIOCBONDSETHWADDR = 0x8992
|
||||||
|
SIOCBONDSLAVEINFOQUERY = 0x8993
|
||||||
|
SIOCBRADDBR = 0x89a0
|
||||||
|
SIOCBRADDIF = 0x89a2
|
||||||
|
SIOCBRDELBR = 0x89a1
|
||||||
|
SIOCBRDELIF = 0x89a3
|
||||||
SIOCDARP = 0x8953
|
SIOCDARP = 0x8953
|
||||||
SIOCDELDLCI = 0x8981
|
SIOCDELDLCI = 0x8981
|
||||||
SIOCDELMULTI = 0x8932
|
SIOCDELMULTI = 0x8932
|
||||||
|
@ -1410,7 +1420,9 @@ const (
|
||||||
SIOCDEVPRIVATE = 0x89f0
|
SIOCDEVPRIVATE = 0x89f0
|
||||||
SIOCDIFADDR = 0x8936
|
SIOCDIFADDR = 0x8936
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
SIOCGIFBRDADDR = 0x8919
|
SIOCGIFBRDADDR = 0x8919
|
||||||
|
@ -1430,13 +1442,21 @@ const (
|
||||||
SIOCGIFPFLAGS = 0x8935
|
SIOCGIFPFLAGS = 0x8935
|
||||||
SIOCGIFSLAVE = 0x8929
|
SIOCGIFSLAVE = 0x8929
|
||||||
SIOCGIFTXQLEN = 0x8942
|
SIOCGIFTXQLEN = 0x8942
|
||||||
|
SIOCGIFVLAN = 0x8982
|
||||||
|
SIOCGMIIPHY = 0x8947
|
||||||
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCINQ = 0x541b
|
||||||
|
SIOCOUTQ = 0x5411
|
||||||
|
SIOCOUTQNSD = 0x894b
|
||||||
SIOCPROTOPRIVATE = 0x89e0
|
SIOCPROTOPRIVATE = 0x89e0
|
||||||
SIOCRTMSG = 0x890d
|
SIOCRTMSG = 0x890d
|
||||||
SIOCSARP = 0x8955
|
SIOCSARP = 0x8955
|
||||||
|
SIOCSHWTSTAMP = 0x89b0
|
||||||
SIOCSIFADDR = 0x8916
|
SIOCSIFADDR = 0x8916
|
||||||
SIOCSIFBR = 0x8941
|
SIOCSIFBR = 0x8941
|
||||||
SIOCSIFBRDADDR = 0x891a
|
SIOCSIFBRDADDR = 0x891a
|
||||||
|
@ -1455,11 +1475,15 @@ const (
|
||||||
SIOCSIFPFLAGS = 0x8934
|
SIOCSIFPFLAGS = 0x8934
|
||||||
SIOCSIFSLAVE = 0x8930
|
SIOCSIFSLAVE = 0x8930
|
||||||
SIOCSIFTXQLEN = 0x8943
|
SIOCSIFTXQLEN = 0x8943
|
||||||
|
SIOCSIFVLAN = 0x8983
|
||||||
|
SIOCSMIIREG = 0x8949
|
||||||
SIOCSPGRP = 0x8902
|
SIOCSPGRP = 0x8902
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
|
SIOCWANDEV = 0x894a
|
||||||
SOCK_CLOEXEC = 0x80000
|
SOCK_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
|
SOCK_IOC_TYPE = 0x89
|
||||||
SOCK_NONBLOCK = 0x800
|
SOCK_NONBLOCK = 0x800
|
||||||
SOCK_PACKET = 0xa
|
SOCK_PACKET = 0xa
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
|
|
|
@ -1415,6 +1415,16 @@ const (
|
||||||
SIOCADDMULTI = 0x8931
|
SIOCADDMULTI = 0x8931
|
||||||
SIOCADDRT = 0x890b
|
SIOCADDRT = 0x890b
|
||||||
SIOCATMARK = 0x40047307
|
SIOCATMARK = 0x40047307
|
||||||
|
SIOCBONDCHANGEACTIVE = 0x8995
|
||||||
|
SIOCBONDENSLAVE = 0x8990
|
||||||
|
SIOCBONDINFOQUERY = 0x8994
|
||||||
|
SIOCBONDRELEASE = 0x8991
|
||||||
|
SIOCBONDSETHWADDR = 0x8992
|
||||||
|
SIOCBONDSLAVEINFOQUERY = 0x8993
|
||||||
|
SIOCBRADDBR = 0x89a0
|
||||||
|
SIOCBRADDIF = 0x89a2
|
||||||
|
SIOCBRDELBR = 0x89a1
|
||||||
|
SIOCBRDELIF = 0x89a3
|
||||||
SIOCDARP = 0x8953
|
SIOCDARP = 0x8953
|
||||||
SIOCDELDLCI = 0x8981
|
SIOCDELDLCI = 0x8981
|
||||||
SIOCDELMULTI = 0x8932
|
SIOCDELMULTI = 0x8932
|
||||||
|
@ -1422,7 +1432,9 @@ const (
|
||||||
SIOCDEVPRIVATE = 0x89f0
|
SIOCDEVPRIVATE = 0x89f0
|
||||||
SIOCDIFADDR = 0x8936
|
SIOCDIFADDR = 0x8936
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
SIOCGIFBRDADDR = 0x8919
|
SIOCGIFBRDADDR = 0x8919
|
||||||
|
@ -1442,13 +1454,21 @@ const (
|
||||||
SIOCGIFPFLAGS = 0x8935
|
SIOCGIFPFLAGS = 0x8935
|
||||||
SIOCGIFSLAVE = 0x8929
|
SIOCGIFSLAVE = 0x8929
|
||||||
SIOCGIFTXQLEN = 0x8942
|
SIOCGIFTXQLEN = 0x8942
|
||||||
|
SIOCGIFVLAN = 0x8982
|
||||||
|
SIOCGMIIPHY = 0x8947
|
||||||
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCINQ = 0x467f
|
||||||
|
SIOCOUTQ = 0x7472
|
||||||
|
SIOCOUTQNSD = 0x894b
|
||||||
SIOCPROTOPRIVATE = 0x89e0
|
SIOCPROTOPRIVATE = 0x89e0
|
||||||
SIOCRTMSG = 0x890d
|
SIOCRTMSG = 0x890d
|
||||||
SIOCSARP = 0x8955
|
SIOCSARP = 0x8955
|
||||||
|
SIOCSHWTSTAMP = 0x89b0
|
||||||
SIOCSIFADDR = 0x8916
|
SIOCSIFADDR = 0x8916
|
||||||
SIOCSIFBR = 0x8941
|
SIOCSIFBR = 0x8941
|
||||||
SIOCSIFBRDADDR = 0x891a
|
SIOCSIFBRDADDR = 0x891a
|
||||||
|
@ -1467,11 +1487,15 @@ const (
|
||||||
SIOCSIFPFLAGS = 0x8934
|
SIOCSIFPFLAGS = 0x8934
|
||||||
SIOCSIFSLAVE = 0x8930
|
SIOCSIFSLAVE = 0x8930
|
||||||
SIOCSIFTXQLEN = 0x8943
|
SIOCSIFTXQLEN = 0x8943
|
||||||
|
SIOCSIFVLAN = 0x8983
|
||||||
|
SIOCSMIIREG = 0x8949
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
|
SIOCWANDEV = 0x894a
|
||||||
SOCK_CLOEXEC = 0x80000
|
SOCK_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x1
|
SOCK_DGRAM = 0x1
|
||||||
|
SOCK_IOC_TYPE = 0x89
|
||||||
SOCK_NONBLOCK = 0x80
|
SOCK_NONBLOCK = 0x80
|
||||||
SOCK_PACKET = 0xa
|
SOCK_PACKET = 0xa
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
|
|
|
@ -1415,6 +1415,16 @@ const (
|
||||||
SIOCADDMULTI = 0x8931
|
SIOCADDMULTI = 0x8931
|
||||||
SIOCADDRT = 0x890b
|
SIOCADDRT = 0x890b
|
||||||
SIOCATMARK = 0x40047307
|
SIOCATMARK = 0x40047307
|
||||||
|
SIOCBONDCHANGEACTIVE = 0x8995
|
||||||
|
SIOCBONDENSLAVE = 0x8990
|
||||||
|
SIOCBONDINFOQUERY = 0x8994
|
||||||
|
SIOCBONDRELEASE = 0x8991
|
||||||
|
SIOCBONDSETHWADDR = 0x8992
|
||||||
|
SIOCBONDSLAVEINFOQUERY = 0x8993
|
||||||
|
SIOCBRADDBR = 0x89a0
|
||||||
|
SIOCBRADDIF = 0x89a2
|
||||||
|
SIOCBRDELBR = 0x89a1
|
||||||
|
SIOCBRDELIF = 0x89a3
|
||||||
SIOCDARP = 0x8953
|
SIOCDARP = 0x8953
|
||||||
SIOCDELDLCI = 0x8981
|
SIOCDELDLCI = 0x8981
|
||||||
SIOCDELMULTI = 0x8932
|
SIOCDELMULTI = 0x8932
|
||||||
|
@ -1422,7 +1432,9 @@ const (
|
||||||
SIOCDEVPRIVATE = 0x89f0
|
SIOCDEVPRIVATE = 0x89f0
|
||||||
SIOCDIFADDR = 0x8936
|
SIOCDIFADDR = 0x8936
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
SIOCGIFBRDADDR = 0x8919
|
SIOCGIFBRDADDR = 0x8919
|
||||||
|
@ -1442,13 +1454,21 @@ const (
|
||||||
SIOCGIFPFLAGS = 0x8935
|
SIOCGIFPFLAGS = 0x8935
|
||||||
SIOCGIFSLAVE = 0x8929
|
SIOCGIFSLAVE = 0x8929
|
||||||
SIOCGIFTXQLEN = 0x8942
|
SIOCGIFTXQLEN = 0x8942
|
||||||
|
SIOCGIFVLAN = 0x8982
|
||||||
|
SIOCGMIIPHY = 0x8947
|
||||||
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCINQ = 0x467f
|
||||||
|
SIOCOUTQ = 0x7472
|
||||||
|
SIOCOUTQNSD = 0x894b
|
||||||
SIOCPROTOPRIVATE = 0x89e0
|
SIOCPROTOPRIVATE = 0x89e0
|
||||||
SIOCRTMSG = 0x890d
|
SIOCRTMSG = 0x890d
|
||||||
SIOCSARP = 0x8955
|
SIOCSARP = 0x8955
|
||||||
|
SIOCSHWTSTAMP = 0x89b0
|
||||||
SIOCSIFADDR = 0x8916
|
SIOCSIFADDR = 0x8916
|
||||||
SIOCSIFBR = 0x8941
|
SIOCSIFBR = 0x8941
|
||||||
SIOCSIFBRDADDR = 0x891a
|
SIOCSIFBRDADDR = 0x891a
|
||||||
|
@ -1467,11 +1487,15 @@ const (
|
||||||
SIOCSIFPFLAGS = 0x8934
|
SIOCSIFPFLAGS = 0x8934
|
||||||
SIOCSIFSLAVE = 0x8930
|
SIOCSIFSLAVE = 0x8930
|
||||||
SIOCSIFTXQLEN = 0x8943
|
SIOCSIFTXQLEN = 0x8943
|
||||||
|
SIOCSIFVLAN = 0x8983
|
||||||
|
SIOCSMIIREG = 0x8949
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
|
SIOCWANDEV = 0x894a
|
||||||
SOCK_CLOEXEC = 0x80000
|
SOCK_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x1
|
SOCK_DGRAM = 0x1
|
||||||
|
SOCK_IOC_TYPE = 0x89
|
||||||
SOCK_NONBLOCK = 0x80
|
SOCK_NONBLOCK = 0x80
|
||||||
SOCK_PACKET = 0xa
|
SOCK_PACKET = 0xa
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
|
|
|
@ -1415,6 +1415,16 @@ const (
|
||||||
SIOCADDMULTI = 0x8931
|
SIOCADDMULTI = 0x8931
|
||||||
SIOCADDRT = 0x890b
|
SIOCADDRT = 0x890b
|
||||||
SIOCATMARK = 0x40047307
|
SIOCATMARK = 0x40047307
|
||||||
|
SIOCBONDCHANGEACTIVE = 0x8995
|
||||||
|
SIOCBONDENSLAVE = 0x8990
|
||||||
|
SIOCBONDINFOQUERY = 0x8994
|
||||||
|
SIOCBONDRELEASE = 0x8991
|
||||||
|
SIOCBONDSETHWADDR = 0x8992
|
||||||
|
SIOCBONDSLAVEINFOQUERY = 0x8993
|
||||||
|
SIOCBRADDBR = 0x89a0
|
||||||
|
SIOCBRADDIF = 0x89a2
|
||||||
|
SIOCBRDELBR = 0x89a1
|
||||||
|
SIOCBRDELIF = 0x89a3
|
||||||
SIOCDARP = 0x8953
|
SIOCDARP = 0x8953
|
||||||
SIOCDELDLCI = 0x8981
|
SIOCDELDLCI = 0x8981
|
||||||
SIOCDELMULTI = 0x8932
|
SIOCDELMULTI = 0x8932
|
||||||
|
@ -1422,7 +1432,9 @@ const (
|
||||||
SIOCDEVPRIVATE = 0x89f0
|
SIOCDEVPRIVATE = 0x89f0
|
||||||
SIOCDIFADDR = 0x8936
|
SIOCDIFADDR = 0x8936
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
SIOCGIFBRDADDR = 0x8919
|
SIOCGIFBRDADDR = 0x8919
|
||||||
|
@ -1442,13 +1454,21 @@ const (
|
||||||
SIOCGIFPFLAGS = 0x8935
|
SIOCGIFPFLAGS = 0x8935
|
||||||
SIOCGIFSLAVE = 0x8929
|
SIOCGIFSLAVE = 0x8929
|
||||||
SIOCGIFTXQLEN = 0x8942
|
SIOCGIFTXQLEN = 0x8942
|
||||||
|
SIOCGIFVLAN = 0x8982
|
||||||
|
SIOCGMIIPHY = 0x8947
|
||||||
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCINQ = 0x467f
|
||||||
|
SIOCOUTQ = 0x7472
|
||||||
|
SIOCOUTQNSD = 0x894b
|
||||||
SIOCPROTOPRIVATE = 0x89e0
|
SIOCPROTOPRIVATE = 0x89e0
|
||||||
SIOCRTMSG = 0x890d
|
SIOCRTMSG = 0x890d
|
||||||
SIOCSARP = 0x8955
|
SIOCSARP = 0x8955
|
||||||
|
SIOCSHWTSTAMP = 0x89b0
|
||||||
SIOCSIFADDR = 0x8916
|
SIOCSIFADDR = 0x8916
|
||||||
SIOCSIFBR = 0x8941
|
SIOCSIFBR = 0x8941
|
||||||
SIOCSIFBRDADDR = 0x891a
|
SIOCSIFBRDADDR = 0x891a
|
||||||
|
@ -1467,11 +1487,15 @@ const (
|
||||||
SIOCSIFPFLAGS = 0x8934
|
SIOCSIFPFLAGS = 0x8934
|
||||||
SIOCSIFSLAVE = 0x8930
|
SIOCSIFSLAVE = 0x8930
|
||||||
SIOCSIFTXQLEN = 0x8943
|
SIOCSIFTXQLEN = 0x8943
|
||||||
|
SIOCSIFVLAN = 0x8983
|
||||||
|
SIOCSMIIREG = 0x8949
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
|
SIOCWANDEV = 0x894a
|
||||||
SOCK_CLOEXEC = 0x80000
|
SOCK_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x1
|
SOCK_DGRAM = 0x1
|
||||||
|
SOCK_IOC_TYPE = 0x89
|
||||||
SOCK_NONBLOCK = 0x80
|
SOCK_NONBLOCK = 0x80
|
||||||
SOCK_PACKET = 0xa
|
SOCK_PACKET = 0xa
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
|
|
|
@ -1415,6 +1415,16 @@ const (
|
||||||
SIOCADDMULTI = 0x8931
|
SIOCADDMULTI = 0x8931
|
||||||
SIOCADDRT = 0x890b
|
SIOCADDRT = 0x890b
|
||||||
SIOCATMARK = 0x40047307
|
SIOCATMARK = 0x40047307
|
||||||
|
SIOCBONDCHANGEACTIVE = 0x8995
|
||||||
|
SIOCBONDENSLAVE = 0x8990
|
||||||
|
SIOCBONDINFOQUERY = 0x8994
|
||||||
|
SIOCBONDRELEASE = 0x8991
|
||||||
|
SIOCBONDSETHWADDR = 0x8992
|
||||||
|
SIOCBONDSLAVEINFOQUERY = 0x8993
|
||||||
|
SIOCBRADDBR = 0x89a0
|
||||||
|
SIOCBRADDIF = 0x89a2
|
||||||
|
SIOCBRDELBR = 0x89a1
|
||||||
|
SIOCBRDELIF = 0x89a3
|
||||||
SIOCDARP = 0x8953
|
SIOCDARP = 0x8953
|
||||||
SIOCDELDLCI = 0x8981
|
SIOCDELDLCI = 0x8981
|
||||||
SIOCDELMULTI = 0x8932
|
SIOCDELMULTI = 0x8932
|
||||||
|
@ -1422,7 +1432,9 @@ const (
|
||||||
SIOCDEVPRIVATE = 0x89f0
|
SIOCDEVPRIVATE = 0x89f0
|
||||||
SIOCDIFADDR = 0x8936
|
SIOCDIFADDR = 0x8936
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
SIOCGIFBRDADDR = 0x8919
|
SIOCGIFBRDADDR = 0x8919
|
||||||
|
@ -1442,13 +1454,21 @@ const (
|
||||||
SIOCGIFPFLAGS = 0x8935
|
SIOCGIFPFLAGS = 0x8935
|
||||||
SIOCGIFSLAVE = 0x8929
|
SIOCGIFSLAVE = 0x8929
|
||||||
SIOCGIFTXQLEN = 0x8942
|
SIOCGIFTXQLEN = 0x8942
|
||||||
|
SIOCGIFVLAN = 0x8982
|
||||||
|
SIOCGMIIPHY = 0x8947
|
||||||
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x40047309
|
SIOCGPGRP = 0x40047309
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCINQ = 0x467f
|
||||||
|
SIOCOUTQ = 0x7472
|
||||||
|
SIOCOUTQNSD = 0x894b
|
||||||
SIOCPROTOPRIVATE = 0x89e0
|
SIOCPROTOPRIVATE = 0x89e0
|
||||||
SIOCRTMSG = 0x890d
|
SIOCRTMSG = 0x890d
|
||||||
SIOCSARP = 0x8955
|
SIOCSARP = 0x8955
|
||||||
|
SIOCSHWTSTAMP = 0x89b0
|
||||||
SIOCSIFADDR = 0x8916
|
SIOCSIFADDR = 0x8916
|
||||||
SIOCSIFBR = 0x8941
|
SIOCSIFBR = 0x8941
|
||||||
SIOCSIFBRDADDR = 0x891a
|
SIOCSIFBRDADDR = 0x891a
|
||||||
|
@ -1467,11 +1487,15 @@ const (
|
||||||
SIOCSIFPFLAGS = 0x8934
|
SIOCSIFPFLAGS = 0x8934
|
||||||
SIOCSIFSLAVE = 0x8930
|
SIOCSIFSLAVE = 0x8930
|
||||||
SIOCSIFTXQLEN = 0x8943
|
SIOCSIFTXQLEN = 0x8943
|
||||||
|
SIOCSIFVLAN = 0x8983
|
||||||
|
SIOCSMIIREG = 0x8949
|
||||||
SIOCSPGRP = 0x80047308
|
SIOCSPGRP = 0x80047308
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
|
SIOCWANDEV = 0x894a
|
||||||
SOCK_CLOEXEC = 0x80000
|
SOCK_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x1
|
SOCK_DGRAM = 0x1
|
||||||
|
SOCK_IOC_TYPE = 0x89
|
||||||
SOCK_NONBLOCK = 0x80
|
SOCK_NONBLOCK = 0x80
|
||||||
SOCK_PACKET = 0xa
|
SOCK_PACKET = 0xa
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
|
|
|
@ -1471,6 +1471,16 @@ const (
|
||||||
SIOCADDMULTI = 0x8931
|
SIOCADDMULTI = 0x8931
|
||||||
SIOCADDRT = 0x890b
|
SIOCADDRT = 0x890b
|
||||||
SIOCATMARK = 0x8905
|
SIOCATMARK = 0x8905
|
||||||
|
SIOCBONDCHANGEACTIVE = 0x8995
|
||||||
|
SIOCBONDENSLAVE = 0x8990
|
||||||
|
SIOCBONDINFOQUERY = 0x8994
|
||||||
|
SIOCBONDRELEASE = 0x8991
|
||||||
|
SIOCBONDSETHWADDR = 0x8992
|
||||||
|
SIOCBONDSLAVEINFOQUERY = 0x8993
|
||||||
|
SIOCBRADDBR = 0x89a0
|
||||||
|
SIOCBRADDIF = 0x89a2
|
||||||
|
SIOCBRDELBR = 0x89a1
|
||||||
|
SIOCBRDELIF = 0x89a3
|
||||||
SIOCDARP = 0x8953
|
SIOCDARP = 0x8953
|
||||||
SIOCDELDLCI = 0x8981
|
SIOCDELDLCI = 0x8981
|
||||||
SIOCDELMULTI = 0x8932
|
SIOCDELMULTI = 0x8932
|
||||||
|
@ -1478,7 +1488,9 @@ const (
|
||||||
SIOCDEVPRIVATE = 0x89f0
|
SIOCDEVPRIVATE = 0x89f0
|
||||||
SIOCDIFADDR = 0x8936
|
SIOCDIFADDR = 0x8936
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
SIOCGIFBRDADDR = 0x8919
|
SIOCGIFBRDADDR = 0x8919
|
||||||
|
@ -1498,13 +1510,21 @@ const (
|
||||||
SIOCGIFPFLAGS = 0x8935
|
SIOCGIFPFLAGS = 0x8935
|
||||||
SIOCGIFSLAVE = 0x8929
|
SIOCGIFSLAVE = 0x8929
|
||||||
SIOCGIFTXQLEN = 0x8942
|
SIOCGIFTXQLEN = 0x8942
|
||||||
|
SIOCGIFVLAN = 0x8982
|
||||||
|
SIOCGMIIPHY = 0x8947
|
||||||
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCINQ = 0x4004667f
|
||||||
|
SIOCOUTQ = 0x40047473
|
||||||
|
SIOCOUTQNSD = 0x894b
|
||||||
SIOCPROTOPRIVATE = 0x89e0
|
SIOCPROTOPRIVATE = 0x89e0
|
||||||
SIOCRTMSG = 0x890d
|
SIOCRTMSG = 0x890d
|
||||||
SIOCSARP = 0x8955
|
SIOCSARP = 0x8955
|
||||||
|
SIOCSHWTSTAMP = 0x89b0
|
||||||
SIOCSIFADDR = 0x8916
|
SIOCSIFADDR = 0x8916
|
||||||
SIOCSIFBR = 0x8941
|
SIOCSIFBR = 0x8941
|
||||||
SIOCSIFBRDADDR = 0x891a
|
SIOCSIFBRDADDR = 0x891a
|
||||||
|
@ -1523,11 +1543,15 @@ const (
|
||||||
SIOCSIFPFLAGS = 0x8934
|
SIOCSIFPFLAGS = 0x8934
|
||||||
SIOCSIFSLAVE = 0x8930
|
SIOCSIFSLAVE = 0x8930
|
||||||
SIOCSIFTXQLEN = 0x8943
|
SIOCSIFTXQLEN = 0x8943
|
||||||
|
SIOCSIFVLAN = 0x8983
|
||||||
|
SIOCSMIIREG = 0x8949
|
||||||
SIOCSPGRP = 0x8902
|
SIOCSPGRP = 0x8902
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
|
SIOCWANDEV = 0x894a
|
||||||
SOCK_CLOEXEC = 0x80000
|
SOCK_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
|
SOCK_IOC_TYPE = 0x89
|
||||||
SOCK_NONBLOCK = 0x800
|
SOCK_NONBLOCK = 0x800
|
||||||
SOCK_PACKET = 0xa
|
SOCK_PACKET = 0xa
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
|
|
|
@ -1471,6 +1471,16 @@ const (
|
||||||
SIOCADDMULTI = 0x8931
|
SIOCADDMULTI = 0x8931
|
||||||
SIOCADDRT = 0x890b
|
SIOCADDRT = 0x890b
|
||||||
SIOCATMARK = 0x8905
|
SIOCATMARK = 0x8905
|
||||||
|
SIOCBONDCHANGEACTIVE = 0x8995
|
||||||
|
SIOCBONDENSLAVE = 0x8990
|
||||||
|
SIOCBONDINFOQUERY = 0x8994
|
||||||
|
SIOCBONDRELEASE = 0x8991
|
||||||
|
SIOCBONDSETHWADDR = 0x8992
|
||||||
|
SIOCBONDSLAVEINFOQUERY = 0x8993
|
||||||
|
SIOCBRADDBR = 0x89a0
|
||||||
|
SIOCBRADDIF = 0x89a2
|
||||||
|
SIOCBRDELBR = 0x89a1
|
||||||
|
SIOCBRDELIF = 0x89a3
|
||||||
SIOCDARP = 0x8953
|
SIOCDARP = 0x8953
|
||||||
SIOCDELDLCI = 0x8981
|
SIOCDELDLCI = 0x8981
|
||||||
SIOCDELMULTI = 0x8932
|
SIOCDELMULTI = 0x8932
|
||||||
|
@ -1478,7 +1488,9 @@ const (
|
||||||
SIOCDEVPRIVATE = 0x89f0
|
SIOCDEVPRIVATE = 0x89f0
|
||||||
SIOCDIFADDR = 0x8936
|
SIOCDIFADDR = 0x8936
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
SIOCGIFBRDADDR = 0x8919
|
SIOCGIFBRDADDR = 0x8919
|
||||||
|
@ -1498,13 +1510,21 @@ const (
|
||||||
SIOCGIFPFLAGS = 0x8935
|
SIOCGIFPFLAGS = 0x8935
|
||||||
SIOCGIFSLAVE = 0x8929
|
SIOCGIFSLAVE = 0x8929
|
||||||
SIOCGIFTXQLEN = 0x8942
|
SIOCGIFTXQLEN = 0x8942
|
||||||
|
SIOCGIFVLAN = 0x8982
|
||||||
|
SIOCGMIIPHY = 0x8947
|
||||||
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCINQ = 0x4004667f
|
||||||
|
SIOCOUTQ = 0x40047473
|
||||||
|
SIOCOUTQNSD = 0x894b
|
||||||
SIOCPROTOPRIVATE = 0x89e0
|
SIOCPROTOPRIVATE = 0x89e0
|
||||||
SIOCRTMSG = 0x890d
|
SIOCRTMSG = 0x890d
|
||||||
SIOCSARP = 0x8955
|
SIOCSARP = 0x8955
|
||||||
|
SIOCSHWTSTAMP = 0x89b0
|
||||||
SIOCSIFADDR = 0x8916
|
SIOCSIFADDR = 0x8916
|
||||||
SIOCSIFBR = 0x8941
|
SIOCSIFBR = 0x8941
|
||||||
SIOCSIFBRDADDR = 0x891a
|
SIOCSIFBRDADDR = 0x891a
|
||||||
|
@ -1523,11 +1543,15 @@ const (
|
||||||
SIOCSIFPFLAGS = 0x8934
|
SIOCSIFPFLAGS = 0x8934
|
||||||
SIOCSIFSLAVE = 0x8930
|
SIOCSIFSLAVE = 0x8930
|
||||||
SIOCSIFTXQLEN = 0x8943
|
SIOCSIFTXQLEN = 0x8943
|
||||||
|
SIOCSIFVLAN = 0x8983
|
||||||
|
SIOCSMIIREG = 0x8949
|
||||||
SIOCSPGRP = 0x8902
|
SIOCSPGRP = 0x8902
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
|
SIOCWANDEV = 0x894a
|
||||||
SOCK_CLOEXEC = 0x80000
|
SOCK_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
|
SOCK_IOC_TYPE = 0x89
|
||||||
SOCK_NONBLOCK = 0x800
|
SOCK_NONBLOCK = 0x800
|
||||||
SOCK_PACKET = 0xa
|
SOCK_PACKET = 0xa
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
|
|
|
@ -1475,6 +1475,16 @@ const (
|
||||||
SIOCADDMULTI = 0x8931
|
SIOCADDMULTI = 0x8931
|
||||||
SIOCADDRT = 0x890b
|
SIOCADDRT = 0x890b
|
||||||
SIOCATMARK = 0x8905
|
SIOCATMARK = 0x8905
|
||||||
|
SIOCBONDCHANGEACTIVE = 0x8995
|
||||||
|
SIOCBONDENSLAVE = 0x8990
|
||||||
|
SIOCBONDINFOQUERY = 0x8994
|
||||||
|
SIOCBONDRELEASE = 0x8991
|
||||||
|
SIOCBONDSETHWADDR = 0x8992
|
||||||
|
SIOCBONDSLAVEINFOQUERY = 0x8993
|
||||||
|
SIOCBRADDBR = 0x89a0
|
||||||
|
SIOCBRADDIF = 0x89a2
|
||||||
|
SIOCBRDELBR = 0x89a1
|
||||||
|
SIOCBRDELIF = 0x89a3
|
||||||
SIOCDARP = 0x8953
|
SIOCDARP = 0x8953
|
||||||
SIOCDELDLCI = 0x8981
|
SIOCDELDLCI = 0x8981
|
||||||
SIOCDELMULTI = 0x8932
|
SIOCDELMULTI = 0x8932
|
||||||
|
@ -1482,7 +1492,9 @@ const (
|
||||||
SIOCDEVPRIVATE = 0x89f0
|
SIOCDEVPRIVATE = 0x89f0
|
||||||
SIOCDIFADDR = 0x8936
|
SIOCDIFADDR = 0x8936
|
||||||
SIOCDRARP = 0x8960
|
SIOCDRARP = 0x8960
|
||||||
|
SIOCETHTOOL = 0x8946
|
||||||
SIOCGARP = 0x8954
|
SIOCGARP = 0x8954
|
||||||
|
SIOCGHWTSTAMP = 0x89b1
|
||||||
SIOCGIFADDR = 0x8915
|
SIOCGIFADDR = 0x8915
|
||||||
SIOCGIFBR = 0x8940
|
SIOCGIFBR = 0x8940
|
||||||
SIOCGIFBRDADDR = 0x8919
|
SIOCGIFBRDADDR = 0x8919
|
||||||
|
@ -1502,13 +1514,21 @@ const (
|
||||||
SIOCGIFPFLAGS = 0x8935
|
SIOCGIFPFLAGS = 0x8935
|
||||||
SIOCGIFSLAVE = 0x8929
|
SIOCGIFSLAVE = 0x8929
|
||||||
SIOCGIFTXQLEN = 0x8942
|
SIOCGIFTXQLEN = 0x8942
|
||||||
|
SIOCGIFVLAN = 0x8982
|
||||||
|
SIOCGMIIPHY = 0x8947
|
||||||
|
SIOCGMIIREG = 0x8948
|
||||||
SIOCGPGRP = 0x8904
|
SIOCGPGRP = 0x8904
|
||||||
SIOCGRARP = 0x8961
|
SIOCGRARP = 0x8961
|
||||||
|
SIOCGSKNS = 0x894c
|
||||||
SIOCGSTAMP = 0x8906
|
SIOCGSTAMP = 0x8906
|
||||||
SIOCGSTAMPNS = 0x8907
|
SIOCGSTAMPNS = 0x8907
|
||||||
|
SIOCINQ = 0x541b
|
||||||
|
SIOCOUTQ = 0x5411
|
||||||
|
SIOCOUTQNSD = 0x894b
|
||||||
SIOCPROTOPRIVATE = 0x89e0
|
SIOCPROTOPRIVATE = 0x89e0
|
||||||
SIOCRTMSG = 0x890d
|
SIOCRTMSG = 0x890d
|
||||||
SIOCSARP = 0x8955
|
SIOCSARP = 0x8955
|
||||||
|
SIOCSHWTSTAMP = 0x89b0
|
||||||
SIOCSIFADDR = 0x8916
|
SIOCSIFADDR = 0x8916
|
||||||
SIOCSIFBR = 0x8941
|
SIOCSIFBR = 0x8941
|
||||||
SIOCSIFBRDADDR = 0x891a
|
SIOCSIFBRDADDR = 0x891a
|
||||||
|
@ -1527,11 +1547,15 @@ const (
|
||||||
SIOCSIFPFLAGS = 0x8934
|
SIOCSIFPFLAGS = 0x8934
|
||||||
SIOCSIFSLAVE = 0x8930
|
SIOCSIFSLAVE = 0x8930
|
||||||
SIOCSIFTXQLEN = 0x8943
|
SIOCSIFTXQLEN = 0x8943
|
||||||
|
SIOCSIFVLAN = 0x8983
|
||||||
|
SIOCSMIIREG = 0x8949
|
||||||
SIOCSPGRP = 0x8902
|
SIOCSPGRP = 0x8902
|
||||||
SIOCSRARP = 0x8962
|
SIOCSRARP = 0x8962
|
||||||
|
SIOCWANDEV = 0x894a
|
||||||
SOCK_CLOEXEC = 0x80000
|
SOCK_CLOEXEC = 0x80000
|
||||||
SOCK_DCCP = 0x6
|
SOCK_DCCP = 0x6
|
||||||
SOCK_DGRAM = 0x2
|
SOCK_DGRAM = 0x2
|
||||||
|
SOCK_IOC_TYPE = 0x89
|
||||||
SOCK_NONBLOCK = 0x800
|
SOCK_NONBLOCK = 0x800
|
||||||
SOCK_PACKET = 0xa
|
SOCK_PACKET = 0xa
|
||||||
SOCK_RAW = 0x3
|
SOCK_RAW = 0x3
|
||||||
|
|
|
@ -1006,6 +1006,9 @@ const (
|
||||||
MSG_TRUNC = 0x10
|
MSG_TRUNC = 0x10
|
||||||
MSG_USERFLAGS = 0xffffff
|
MSG_USERFLAGS = 0xffffff
|
||||||
MSG_WAITALL = 0x40
|
MSG_WAITALL = 0x40
|
||||||
|
MS_ASYNC = 0x1
|
||||||
|
MS_INVALIDATE = 0x2
|
||||||
|
MS_SYNC = 0x4
|
||||||
NAME_MAX = 0x1ff
|
NAME_MAX = 0x1ff
|
||||||
NET_RT_DUMP = 0x1
|
NET_RT_DUMP = 0x1
|
||||||
NET_RT_FLAGS = 0x2
|
NET_RT_FLAGS = 0x2
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,5 @@
|
||||||
// mksyscall.pl -l32 -tags darwin,386 syscall_bsd.go syscall_darwin.go syscall_darwin_386.go
|
// mksyscall.pl -l32 -tags darwin,386 syscall_bsd.go syscall_darwin.go syscall_darwin_386.go
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build darwin,386
|
// +build darwin,386
|
||||||
|
|
||||||
|
@ -266,6 +266,106 @@ func fcntl(fd int, cmd int, arg int) (val 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 Madvise(b []byte, behav int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlockall(flags int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlockall() (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -298,6 +398,16 @@ func kill(pid int, signum int, posix 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 ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Access(path string, mode uint32) (err error) {
|
func Access(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -456,6 +566,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 {
|
||||||
|
@ -486,6 +611,21 @@ func Fchmod(fd int, 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 Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FCHMODAT, 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 Fchown(fd int, uid int, gid int) (err error) {
|
func Fchown(fd int, uid int, gid int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -496,6 +636,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 {
|
||||||
|
@ -745,6 +900,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 {
|
||||||
|
@ -785,6 +960,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)
|
||||||
|
@ -815,74 +1005,6 @@ 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 Mlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Mlockall(flags int) (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Open(path string, mode int, perm uint32) (fd int, err error) {
|
func Open(path string, mode int, perm uint32) (fd int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -899,6 +1021,22 @@ func Open(path string, mode int, perm uint32) (fd 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 Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0)
|
||||||
|
fd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Pathconf(path string, name int) (val int, err error) {
|
func Pathconf(path string, name int) (val int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -988,6 +1126,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)
|
||||||
|
@ -1008,6 +1168,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)
|
||||||
|
@ -1245,6 +1425,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 {
|
||||||
|
@ -1308,6 +1508,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)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mksyscall.pl -tags darwin,amd64 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go
|
// mksyscall.pl -tags darwin,amd64 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build darwin,amd64
|
// +build darwin,amd64
|
||||||
|
|
||||||
|
@ -266,6 +266,106 @@ func fcntl(fd int, cmd int, arg int) (val 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 Madvise(b []byte, behav int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlockall(flags int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlockall() (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -298,6 +398,16 @@ func kill(pid int, signum int, posix 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 ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Access(path string, mode uint32) (err error) {
|
func Access(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -456,6 +566,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 {
|
||||||
|
@ -486,6 +611,21 @@ func Fchmod(fd int, 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 Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FCHMODAT, 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 Fchown(fd int, uid int, gid int) (err error) {
|
func Fchown(fd int, uid int, gid int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -496,6 +636,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 {
|
||||||
|
@ -745,6 +900,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 {
|
||||||
|
@ -785,6 +960,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)
|
||||||
|
@ -815,74 +1005,6 @@ 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 Mlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Mlockall(flags int) (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Open(path string, mode int, perm uint32) (fd int, err error) {
|
func Open(path string, mode int, perm uint32) (fd int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -899,6 +1021,22 @@ func Open(path string, mode int, perm uint32) (fd 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 Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0)
|
||||||
|
fd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Pathconf(path string, name int) (val int, err error) {
|
func Pathconf(path string, name int) (val int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -988,6 +1126,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)
|
||||||
|
@ -1008,6 +1168,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)
|
||||||
|
@ -1245,6 +1425,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 {
|
||||||
|
@ -1308,6 +1508,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)
|
||||||
|
@ -1383,21 +1598,6 @@ func writelen(fd int, buf *byte, nbuf int) (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 Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
|
||||||
var _p0 *byte
|
|
||||||
_p0, err = BytePtrFromString(path)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall6(SYS_FCHMODAT, 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 gettimeofday(tp *Timeval) (sec int64, usec int32, err error) {
|
func gettimeofday(tp *Timeval) (sec int64, usec int32, err error) {
|
||||||
r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
|
r0, r1, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0)
|
||||||
sec = int64(r0)
|
sec = int64(r0)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mksyscall.pl -l32 -tags darwin,arm syscall_bsd.go syscall_darwin.go syscall_darwin_arm.go
|
// mksyscall.pl -tags darwin,arm syscall_bsd.go syscall_darwin.go syscall_darwin_arm.go
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build darwin,arm
|
// +build darwin,arm
|
||||||
|
|
||||||
|
@ -221,7 +221,7 @@ func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr)
|
||||||
} else {
|
} else {
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
}
|
}
|
||||||
_, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
_, _, e1 := Syscall6(SYS_SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
err = errnoErr(e1)
|
err = errnoErr(e1)
|
||||||
}
|
}
|
||||||
|
@ -266,6 +266,106 @@ func fcntl(fd int, cmd int, arg int) (val 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 Madvise(b []byte, behav int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlockall(flags int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlockall() (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -298,6 +398,16 @@ func kill(pid int, signum int, posix 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 ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Access(path string, mode uint32) (err error) {
|
func Access(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -456,6 +566,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 {
|
||||||
|
@ -486,6 +611,21 @@ func Fchmod(fd int, 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 Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FCHMODAT, 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 Fchown(fd int, uid int, gid int) (err error) {
|
func Fchown(fd int, uid int, gid int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -496,6 +636,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 {
|
||||||
|
@ -745,6 +900,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 {
|
||||||
|
@ -785,6 +960,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)
|
||||||
|
@ -815,74 +1005,6 @@ 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 Mlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Mlockall(flags int) (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Open(path string, mode int, perm uint32) (fd int, err error) {
|
func Open(path string, mode int, perm uint32) (fd int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -899,6 +1021,22 @@ func Open(path string, mode int, perm uint32) (fd 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 Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0)
|
||||||
|
fd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Pathconf(path string, name int) (val int, err error) {
|
func Pathconf(path string, name int) (val int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -988,6 +1126,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)
|
||||||
|
@ -1008,6 +1168,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)
|
||||||
|
@ -1245,6 +1425,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 {
|
||||||
|
@ -1308,6 +1508,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)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mksyscall.pl -tags darwin,arm64 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go
|
// mksyscall.pl -tags darwin,arm64 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build darwin,arm64
|
// +build darwin,arm64
|
||||||
|
|
||||||
|
@ -266,6 +266,106 @@ func fcntl(fd int, cmd int, arg int) (val 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 Madvise(b []byte, behav int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlockall(flags int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlockall() (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||||
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
_, _, e1 := Syscall6(SYS_PTRACE, uintptr(request), uintptr(pid), uintptr(addr), uintptr(data), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -298,6 +398,16 @@ func kill(pid int, signum int, posix 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 ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Access(path string, mode uint32) (err error) {
|
func Access(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -456,6 +566,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 {
|
||||||
|
@ -486,6 +611,21 @@ func Fchmod(fd int, 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 Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FCHMODAT, 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 Fchown(fd int, uid int, gid int) (err error) {
|
func Fchown(fd int, uid int, gid int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -496,6 +636,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 {
|
||||||
|
@ -745,6 +900,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 {
|
||||||
|
@ -785,6 +960,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)
|
||||||
|
@ -815,74 +1005,6 @@ 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 Mlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Mlockall(flags int) (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Open(path string, mode int, perm uint32) (fd int, err error) {
|
func Open(path string, mode int, perm uint32) (fd int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -899,6 +1021,22 @@ func Open(path string, mode int, perm uint32) (fd 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 Openat(dirfd int, path string, mode int, perm uint32) (fd int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0)
|
||||||
|
fd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Pathconf(path string, name int) (val int, err error) {
|
func Pathconf(path string, name int) (val int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -988,6 +1126,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)
|
||||||
|
@ -1008,6 +1168,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)
|
||||||
|
@ -1245,6 +1425,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 {
|
||||||
|
@ -1308,6 +1508,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)
|
||||||
|
|
|
@ -266,6 +266,106 @@ func fcntl(fd int, cmd int, arg int) (val 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 Madvise(b []byte, behav int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlockall(flags int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlockall() (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func pipe() (r int, w int, err error) {
|
func pipe() (r int, w int, err error) {
|
||||||
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
|
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
|
||||||
r = int(r0)
|
r = int(r0)
|
||||||
|
@ -829,74 +929,6 @@ 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 Mlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Mlockall(flags int) (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 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 {
|
||||||
|
@ -1391,3 +1423,18 @@ func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mksyscall.pl -l32 -tags freebsd,386 syscall_bsd.go syscall_freebsd.go syscall_freebsd_386.go
|
// mksyscall.pl -l32 -tags freebsd,386 syscall_bsd.go syscall_freebsd.go syscall_freebsd_386.go
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build freebsd,386
|
// +build freebsd,386
|
||||||
|
|
||||||
|
@ -266,6 +266,106 @@ func fcntl(fd int, cmd int, arg int) (val 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 Madvise(b []byte, behav int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlockall(flags int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlockall() (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func pipe() (r int, w int, err error) {
|
func pipe() (r int, w int, err error) {
|
||||||
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
|
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
|
||||||
r = int(r0)
|
r = int(r0)
|
||||||
|
@ -278,6 +378,16 @@ func pipe() (r int, w 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 ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Access(path string, mode uint32) (err error) {
|
func Access(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -303,6 +413,36 @@ func Adjtime(delta *Timeval, olddelta *Timeval) (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 CapEnter() (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAP_ENTER, 0, 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func capRightsGet(version int, fd int, rightsp *CapRights) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS___CAP_RIGHTS_GET, uintptr(version), uintptr(fd), uintptr(unsafe.Pointer(rightsp)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func capRightsLimit(fd int, rightsp *CapRights) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAP_RIGHTS_LIMIT, uintptr(fd), uintptr(unsafe.Pointer(rightsp)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Chdir(path string) (err error) {
|
func Chdir(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -640,6 +780,21 @@ func Fadvise(fd int, offset int64, length int64, advice 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 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 {
|
||||||
|
@ -670,6 +825,21 @@ func Fchmod(fd int, 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 Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FCHMODAT, 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 Fchown(fd int, uid int, gid int) (err error) {
|
func Fchown(fd int, uid int, gid int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -680,6 +850,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 {
|
||||||
|
@ -949,6 +1134,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 {
|
||||||
|
@ -989,6 +1194,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)
|
||||||
|
@ -1019,74 +1239,6 @@ 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 Mlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Mlockall(flags int) (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 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 {
|
||||||
|
@ -1113,6 +1265,22 @@ func Open(path string, mode int, perm uint32) (fd 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 Openat(fdat int, path string, mode int, perm uint32) (fd int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(fdat), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0)
|
||||||
|
fd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Pathconf(path string, name int) (val int, err error) {
|
func Pathconf(path string, name int) (val int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -1202,6 +1370,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)
|
||||||
|
@ -1222,6 +1412,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)
|
||||||
|
@ -1469,6 +1679,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 {
|
||||||
|
@ -1532,6 +1762,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)
|
||||||
|
@ -1615,3 +1860,18 @@ func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mksyscall.pl -tags freebsd,amd64 syscall_bsd.go syscall_freebsd.go syscall_freebsd_amd64.go
|
// mksyscall.pl -tags freebsd,amd64 syscall_bsd.go syscall_freebsd.go syscall_freebsd_amd64.go
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build freebsd,amd64
|
// +build freebsd,amd64
|
||||||
|
|
||||||
|
@ -266,6 +266,106 @@ func fcntl(fd int, cmd int, arg int) (val 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 Madvise(b []byte, behav int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlockall(flags int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlockall() (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func pipe() (r int, w int, err error) {
|
func pipe() (r int, w int, err error) {
|
||||||
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
|
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
|
||||||
r = int(r0)
|
r = int(r0)
|
||||||
|
@ -278,6 +378,16 @@ func pipe() (r int, w 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 ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Access(path string, mode uint32) (err error) {
|
func Access(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -303,6 +413,36 @@ func Adjtime(delta *Timeval, olddelta *Timeval) (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 CapEnter() (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAP_ENTER, 0, 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func capRightsGet(version int, fd int, rightsp *CapRights) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS___CAP_RIGHTS_GET, uintptr(version), uintptr(fd), uintptr(unsafe.Pointer(rightsp)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func capRightsLimit(fd int, rightsp *CapRights) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAP_RIGHTS_LIMIT, uintptr(fd), uintptr(unsafe.Pointer(rightsp)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Chdir(path string) (err error) {
|
func Chdir(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -640,6 +780,21 @@ func Fadvise(fd int, offset int64, length int64, advice 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 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 {
|
||||||
|
@ -670,6 +825,21 @@ func Fchmod(fd int, 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 Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FCHMODAT, 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 Fchown(fd int, uid int, gid int) (err error) {
|
func Fchown(fd int, uid int, gid int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -680,6 +850,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 {
|
||||||
|
@ -949,6 +1134,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 {
|
||||||
|
@ -989,6 +1194,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)
|
||||||
|
@ -1019,74 +1239,6 @@ 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 Mlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Mlockall(flags int) (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 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 {
|
||||||
|
@ -1113,6 +1265,22 @@ func Open(path string, mode int, perm uint32) (fd 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 Openat(fdat int, path string, mode int, perm uint32) (fd int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(fdat), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0)
|
||||||
|
fd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Pathconf(path string, name int) (val int, err error) {
|
func Pathconf(path string, name int) (val int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -1202,6 +1370,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)
|
||||||
|
@ -1222,6 +1412,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)
|
||||||
|
@ -1469,6 +1679,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 {
|
||||||
|
@ -1532,6 +1762,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)
|
||||||
|
@ -1615,3 +1860,18 @@ func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mksyscall.pl -l32 -arm -tags freebsd,arm syscall_bsd.go syscall_freebsd.go syscall_freebsd_arm.go
|
// mksyscall.pl -l32 -arm -tags freebsd,arm syscall_bsd.go syscall_freebsd.go syscall_freebsd_arm.go
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build freebsd,arm
|
// +build freebsd,arm
|
||||||
|
|
||||||
|
@ -266,6 +266,106 @@ func fcntl(fd int, cmd int, arg int) (val 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 Madvise(b []byte, behav int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlockall(flags int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlockall() (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func pipe() (r int, w int, err error) {
|
func pipe() (r int, w int, err error) {
|
||||||
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
|
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
|
||||||
r = int(r0)
|
r = int(r0)
|
||||||
|
@ -278,6 +378,16 @@ func pipe() (r int, w 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 ioctl(fd int, req uint, arg uintptr) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Access(path string, mode uint32) (err error) {
|
func Access(path string, mode uint32) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -303,6 +413,36 @@ func Adjtime(delta *Timeval, olddelta *Timeval) (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 CapEnter() (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAP_ENTER, 0, 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func capRightsGet(version int, fd int, rightsp *CapRights) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS___CAP_RIGHTS_GET, uintptr(version), uintptr(fd), uintptr(unsafe.Pointer(rightsp)))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func capRightsLimit(fd int, rightsp *CapRights) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_CAP_RIGHTS_LIMIT, uintptr(fd), uintptr(unsafe.Pointer(rightsp)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Chdir(path string) (err error) {
|
func Chdir(path string) (err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -640,6 +780,21 @@ func Fadvise(fd int, offset int64, length int64, advice 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 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 {
|
||||||
|
@ -670,6 +825,21 @@ func Fchmod(fd int, 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 Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_FCHMODAT, 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 Fchown(fd int, uid int, gid int) (err error) {
|
func Fchown(fd int, uid int, gid int) (err error) {
|
||||||
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
_, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid))
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -680,6 +850,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 {
|
||||||
|
@ -949,6 +1134,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 {
|
||||||
|
@ -989,6 +1194,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)
|
||||||
|
@ -1019,74 +1239,6 @@ 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 Mlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Mlockall(flags int) (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 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 {
|
||||||
|
@ -1113,6 +1265,22 @@ func Open(path string, mode int, perm uint32) (fd 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 Openat(fdat int, path string, mode int, perm uint32) (fd int, err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(fdat), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0)
|
||||||
|
fd = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Pathconf(path string, name int) (val int, err error) {
|
func Pathconf(path string, name int) (val int, err error) {
|
||||||
var _p0 *byte
|
var _p0 *byte
|
||||||
_p0, err = BytePtrFromString(path)
|
_p0, err = BytePtrFromString(path)
|
||||||
|
@ -1202,6 +1370,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)
|
||||||
|
@ -1222,6 +1412,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)
|
||||||
|
@ -1469,6 +1679,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 {
|
||||||
|
@ -1532,6 +1762,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)
|
||||||
|
@ -1615,3 +1860,18 @@ func accept4(fd int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (nfd int
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
|
@ -1234,6 +1234,16 @@ func Sync() {
|
||||||
|
|
||||||
// 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 Syncfs(fd int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Sysinfo(info *Sysinfo_t) (err error) {
|
func Sysinfo(info *Sysinfo_t) (err error) {
|
||||||
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -1462,6 +1472,22 @@ func Mlockall(flags 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 Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
func Munlockall() (err error) {
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
|
@ -1234,6 +1234,16 @@ func Sync() {
|
||||||
|
|
||||||
// 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 Syncfs(fd int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Sysinfo(info *Sysinfo_t) (err error) {
|
func Sysinfo(info *Sysinfo_t) (err error) {
|
||||||
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -1462,6 +1472,22 @@ func Mlockall(flags 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 Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
func Munlockall() (err error) {
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
|
@ -1234,6 +1234,16 @@ func Sync() {
|
||||||
|
|
||||||
// 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 Syncfs(fd int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Sysinfo(info *Sysinfo_t) (err error) {
|
func Sysinfo(info *Sysinfo_t) (err error) {
|
||||||
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -1462,6 +1472,22 @@ func Mlockall(flags 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 Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
func Munlockall() (err error) {
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
|
@ -1234,6 +1234,16 @@ func Sync() {
|
||||||
|
|
||||||
// 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 Syncfs(fd int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Sysinfo(info *Sysinfo_t) (err error) {
|
func Sysinfo(info *Sysinfo_t) (err error) {
|
||||||
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -1462,6 +1472,22 @@ func Mlockall(flags 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 Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
func Munlockall() (err error) {
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
|
@ -1234,6 +1234,16 @@ func Sync() {
|
||||||
|
|
||||||
// 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 Syncfs(fd int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Sysinfo(info *Sysinfo_t) (err error) {
|
func Sysinfo(info *Sysinfo_t) (err error) {
|
||||||
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -1462,6 +1472,22 @@ func Mlockall(flags 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 Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
func Munlockall() (err error) {
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
|
@ -1234,6 +1234,16 @@ func Sync() {
|
||||||
|
|
||||||
// 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 Syncfs(fd int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Sysinfo(info *Sysinfo_t) (err error) {
|
func Sysinfo(info *Sysinfo_t) (err error) {
|
||||||
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -1462,6 +1472,22 @@ func Mlockall(flags 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 Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
func Munlockall() (err error) {
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
|
@ -1234,6 +1234,16 @@ func Sync() {
|
||||||
|
|
||||||
// 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 Syncfs(fd int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Sysinfo(info *Sysinfo_t) (err error) {
|
func Sysinfo(info *Sysinfo_t) (err error) {
|
||||||
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -1462,6 +1472,22 @@ func Mlockall(flags 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 Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
func Munlockall() (err error) {
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
|
@ -1234,6 +1234,16 @@ func Sync() {
|
||||||
|
|
||||||
// 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 Syncfs(fd int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Sysinfo(info *Sysinfo_t) (err error) {
|
func Sysinfo(info *Sysinfo_t) (err error) {
|
||||||
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -1462,6 +1472,22 @@ func Mlockall(flags 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 Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
func Munlockall() (err error) {
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
|
@ -1234,6 +1234,16 @@ func Sync() {
|
||||||
|
|
||||||
// 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 Syncfs(fd int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Sysinfo(info *Sysinfo_t) (err error) {
|
func Sysinfo(info *Sysinfo_t) (err error) {
|
||||||
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -1462,6 +1472,22 @@ func Mlockall(flags 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 Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
func Munlockall() (err error) {
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
|
@ -1234,6 +1234,16 @@ func Sync() {
|
||||||
|
|
||||||
// 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 Syncfs(fd int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Sysinfo(info *Sysinfo_t) (err error) {
|
func Sysinfo(info *Sysinfo_t) (err error) {
|
||||||
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -1462,6 +1472,22 @@ func Mlockall(flags 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 Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
func Munlockall() (err error) {
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
|
@ -1234,6 +1234,16 @@ func Sync() {
|
||||||
|
|
||||||
// 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 Syncfs(fd int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_SYNCFS, uintptr(fd), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Sysinfo(info *Sysinfo_t) (err error) {
|
func Sysinfo(info *Sysinfo_t) (err error) {
|
||||||
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
_, _, e1 := RawSyscall(SYS_SYSINFO, uintptr(unsafe.Pointer(info)), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -1462,6 +1472,22 @@ func Mlockall(flags 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 Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
func Munlockall() (err error) {
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mksyscall.pl -l32 -netbsd -tags netbsd,386 syscall_bsd.go syscall_netbsd.go syscall_netbsd_386.go
|
// mksyscall.pl -l32 -netbsd -tags netbsd,386 syscall_bsd.go syscall_netbsd.go syscall_netbsd_386.go
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build netbsd,386
|
// +build netbsd,386
|
||||||
|
|
||||||
|
@ -266,6 +266,106 @@ func fcntl(fd int, cmd int, arg int) (val 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 Madvise(b []byte, behav int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlockall(flags int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlockall() (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func pipe() (fd1 int, fd2 int, err error) {
|
func pipe() (fd1 int, fd2 int, err error) {
|
||||||
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
|
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
|
||||||
fd1 = int(r0)
|
fd1 = int(r0)
|
||||||
|
@ -777,74 +877,6 @@ 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 Mlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Mlockall(flags int) (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 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 {
|
||||||
|
@ -1297,3 +1329,18 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mksyscall.pl -netbsd -tags netbsd,amd64 syscall_bsd.go syscall_netbsd.go syscall_netbsd_amd64.go
|
// mksyscall.pl -netbsd -tags netbsd,amd64 syscall_bsd.go syscall_netbsd.go syscall_netbsd_amd64.go
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build netbsd,amd64
|
// +build netbsd,amd64
|
||||||
|
|
||||||
|
@ -266,6 +266,106 @@ func fcntl(fd int, cmd int, arg int) (val 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 Madvise(b []byte, behav int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlockall(flags int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlockall() (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func pipe() (fd1 int, fd2 int, err error) {
|
func pipe() (fd1 int, fd2 int, err error) {
|
||||||
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
|
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
|
||||||
fd1 = int(r0)
|
fd1 = int(r0)
|
||||||
|
@ -777,74 +877,6 @@ 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 Mlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Mlockall(flags int) (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 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 {
|
||||||
|
@ -1297,3 +1329,18 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mksyscall.pl -l32 -arm -tags netbsd,arm syscall_bsd.go syscall_netbsd.go syscall_netbsd_arm.go
|
// mksyscall.pl -l32 -netbsd -arm -tags netbsd,arm syscall_bsd.go syscall_netbsd.go syscall_netbsd_arm.go
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build netbsd,arm
|
// +build netbsd,arm
|
||||||
|
|
||||||
|
@ -266,6 +266,106 @@ func fcntl(fd int, cmd int, arg int) (val 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 Madvise(b []byte, behav int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlockall(flags int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlockall() (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func pipe() (fd1 int, fd2 int, err error) {
|
func pipe() (fd1 int, fd2 int, err error) {
|
||||||
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
|
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
|
||||||
fd1 = int(r0)
|
fd1 = int(r0)
|
||||||
|
@ -777,74 +877,6 @@ 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 Mlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Mlockall(flags int) (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 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 {
|
||||||
|
@ -1297,3 +1329,18 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mksyscall.pl -l32 -openbsd -tags openbsd,386 syscall_bsd.go syscall_openbsd.go syscall_openbsd_386.go
|
// mksyscall.pl -l32 -openbsd -tags openbsd,386 syscall_bsd.go syscall_openbsd.go syscall_openbsd_386.go
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build openbsd,386
|
// +build openbsd,386
|
||||||
|
|
||||||
|
@ -266,6 +266,106 @@ func fcntl(fd int, cmd int, arg int) (val 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 Madvise(b []byte, behav int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlockall(flags int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlockall() (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func pipe(p *[2]_C_int) (err error) {
|
func pipe(p *[2]_C_int) (err error) {
|
||||||
_, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
|
_, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -785,74 +885,6 @@ 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 Mlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Mlockall(flags int) (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 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 {
|
||||||
|
@ -1355,3 +1387,18 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mksyscall.pl -openbsd -tags openbsd,amd64 syscall_bsd.go syscall_openbsd.go syscall_openbsd_amd64.go
|
// mksyscall.pl -openbsd -tags openbsd,amd64 syscall_bsd.go syscall_openbsd.go syscall_openbsd_amd64.go
|
||||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build openbsd,amd64
|
// +build openbsd,amd64
|
||||||
|
|
||||||
|
@ -266,6 +266,106 @@ func fcntl(fd int, cmd int, arg int) (val 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 Madvise(b []byte, behav int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Mlockall(flags int) (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Msync(b []byte, flags int) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlock(b []byte) (err error) {
|
||||||
|
var _p0 unsafe.Pointer
|
||||||
|
if len(b) > 0 {
|
||||||
|
_p0 = unsafe.Pointer(&b[0])
|
||||||
|
} else {
|
||||||
|
_p0 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func Munlockall() (err error) {
|
||||||
|
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func pipe(p *[2]_C_int) (err error) {
|
func pipe(p *[2]_C_int) (err error) {
|
||||||
_, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
|
_, _, e1 := RawSyscall(SYS_PIPE, uintptr(unsafe.Pointer(p)), 0, 0)
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
|
@ -785,74 +885,6 @@ 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 Mlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Mlockall(flags int) (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MLOCKALL, 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 Mprotect(b []byte, prot int) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot))
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlock(b []byte) (err error) {
|
|
||||||
var _p0 unsafe.Pointer
|
|
||||||
if len(b) > 0 {
|
|
||||||
_p0 = unsafe.Pointer(&b[0])
|
|
||||||
} else {
|
|
||||||
_p0 = unsafe.Pointer(&_zero)
|
|
||||||
}
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0)
|
|
||||||
if e1 != 0 {
|
|
||||||
err = errnoErr(e1)
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
|
||||||
|
|
||||||
func Munlockall() (err error) {
|
|
||||||
_, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 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 {
|
||||||
|
@ -1355,3 +1387,18 @@ func writelen(fd int, buf *byte, nbuf int) (n int, err error) {
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
|
func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) {
|
||||||
|
var _p0 *byte
|
||||||
|
_p0, err = BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -43,6 +43,7 @@ import (
|
||||||
//go:cgo_import_dynamic libc_fchown fchown "libc.so"
|
//go:cgo_import_dynamic libc_fchown fchown "libc.so"
|
||||||
//go:cgo_import_dynamic libc_fchownat fchownat "libc.so"
|
//go:cgo_import_dynamic libc_fchownat fchownat "libc.so"
|
||||||
//go:cgo_import_dynamic libc_fdatasync fdatasync "libc.so"
|
//go:cgo_import_dynamic libc_fdatasync fdatasync "libc.so"
|
||||||
|
//go:cgo_import_dynamic libc_flock flock "libc.so"
|
||||||
//go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so"
|
//go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so"
|
||||||
//go:cgo_import_dynamic libc_fstat fstat "libc.so"
|
//go:cgo_import_dynamic libc_fstat fstat "libc.so"
|
||||||
//go:cgo_import_dynamic libc_fstatvfs fstatvfs "libc.so"
|
//go:cgo_import_dynamic libc_fstatvfs fstatvfs "libc.so"
|
||||||
|
@ -163,6 +164,7 @@ import (
|
||||||
//go:linkname procFchown libc_fchown
|
//go:linkname procFchown libc_fchown
|
||||||
//go:linkname procFchownat libc_fchownat
|
//go:linkname procFchownat libc_fchownat
|
||||||
//go:linkname procFdatasync libc_fdatasync
|
//go:linkname procFdatasync libc_fdatasync
|
||||||
|
//go:linkname procFlock libc_flock
|
||||||
//go:linkname procFpathconf libc_fpathconf
|
//go:linkname procFpathconf libc_fpathconf
|
||||||
//go:linkname procFstat libc_fstat
|
//go:linkname procFstat libc_fstat
|
||||||
//go:linkname procFstatvfs libc_fstatvfs
|
//go:linkname procFstatvfs libc_fstatvfs
|
||||||
|
@ -284,6 +286,7 @@ var (
|
||||||
procFchown,
|
procFchown,
|
||||||
procFchownat,
|
procFchownat,
|
||||||
procFdatasync,
|
procFdatasync,
|
||||||
|
procFlock,
|
||||||
procFpathconf,
|
procFpathconf,
|
||||||
procFstat,
|
procFstat,
|
||||||
procFstatvfs,
|
procFstatvfs,
|
||||||
|
@ -702,6 +705,14 @@ func Fdatasync(fd int) (err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Flock(fd int, how int) (err error) {
|
||||||
|
_, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFlock)), 2, uintptr(fd), uintptr(how), 0, 0, 0, 0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = e1
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
func Fpathconf(fd int, name int) (val int, err error) {
|
func Fpathconf(fd int, name int) (val int, err error) {
|
||||||
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFpathconf)), 2, uintptr(fd), uintptr(name), 0, 0, 0, 0)
|
r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procFpathconf)), 2, uintptr(fd), uintptr(name), 0, 0, 0, 0)
|
||||||
val = int(r0)
|
val = int(r0)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mksysnum_darwin.pl /usr/include/sys/syscall.h
|
// mksysnum_darwin.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/usr/include/sys/syscall.h
|
||||||
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build arm,darwin
|
// +build arm,darwin
|
||||||
|
|
||||||
|
@ -121,12 +121,14 @@ const (
|
||||||
SYS_CSOPS = 169
|
SYS_CSOPS = 169
|
||||||
SYS_CSOPS_AUDITTOKEN = 170
|
SYS_CSOPS_AUDITTOKEN = 170
|
||||||
SYS_WAITID = 173
|
SYS_WAITID = 173
|
||||||
|
SYS_KDEBUG_TYPEFILTER = 177
|
||||||
|
SYS_KDEBUG_TRACE_STRING = 178
|
||||||
|
SYS_KDEBUG_TRACE64 = 179
|
||||||
SYS_KDEBUG_TRACE = 180
|
SYS_KDEBUG_TRACE = 180
|
||||||
SYS_SETGID = 181
|
SYS_SETGID = 181
|
||||||
SYS_SETEGID = 182
|
SYS_SETEGID = 182
|
||||||
SYS_SETEUID = 183
|
SYS_SETEUID = 183
|
||||||
SYS_SIGRETURN = 184
|
SYS_SIGRETURN = 184
|
||||||
SYS_CHUD = 185
|
|
||||||
SYS_FDATASYNC = 187
|
SYS_FDATASYNC = 187
|
||||||
SYS_STAT = 188
|
SYS_STAT = 188
|
||||||
SYS_FSTAT = 189
|
SYS_FSTAT = 189
|
||||||
|
@ -140,17 +142,10 @@ const (
|
||||||
SYS_LSEEK = 199
|
SYS_LSEEK = 199
|
||||||
SYS_TRUNCATE = 200
|
SYS_TRUNCATE = 200
|
||||||
SYS_FTRUNCATE = 201
|
SYS_FTRUNCATE = 201
|
||||||
SYS___SYSCTL = 202
|
SYS_SYSCTL = 202
|
||||||
SYS_MLOCK = 203
|
SYS_MLOCK = 203
|
||||||
SYS_MUNLOCK = 204
|
SYS_MUNLOCK = 204
|
||||||
SYS_UNDELETE = 205
|
SYS_UNDELETE = 205
|
||||||
SYS_ATSOCKET = 206
|
|
||||||
SYS_ATGETMSG = 207
|
|
||||||
SYS_ATPUTMSG = 208
|
|
||||||
SYS_ATPSNDREQ = 209
|
|
||||||
SYS_ATPSNDRSP = 210
|
|
||||||
SYS_ATPGETREQ = 211
|
|
||||||
SYS_ATPGETRSP = 212
|
|
||||||
SYS_OPEN_DPROTECTED_NP = 216
|
SYS_OPEN_DPROTECTED_NP = 216
|
||||||
SYS_GETATTRLIST = 220
|
SYS_GETATTRLIST = 220
|
||||||
SYS_SETATTRLIST = 221
|
SYS_SETATTRLIST = 221
|
||||||
|
@ -202,9 +197,7 @@ const (
|
||||||
SYS_SEM_WAIT = 271
|
SYS_SEM_WAIT = 271
|
||||||
SYS_SEM_TRYWAIT = 272
|
SYS_SEM_TRYWAIT = 272
|
||||||
SYS_SEM_POST = 273
|
SYS_SEM_POST = 273
|
||||||
SYS_SEM_GETVALUE = 274
|
SYS_SYSCTLBYNAME = 274
|
||||||
SYS_SEM_INIT = 275
|
|
||||||
SYS_SEM_DESTROY = 276
|
|
||||||
SYS_OPEN_EXTENDED = 277
|
SYS_OPEN_EXTENDED = 277
|
||||||
SYS_UMASK_EXTENDED = 278
|
SYS_UMASK_EXTENDED = 278
|
||||||
SYS_STAT_EXTENDED = 279
|
SYS_STAT_EXTENDED = 279
|
||||||
|
@ -286,7 +279,6 @@ const (
|
||||||
SYS_KQUEUE = 362
|
SYS_KQUEUE = 362
|
||||||
SYS_KEVENT = 363
|
SYS_KEVENT = 363
|
||||||
SYS_LCHOWN = 364
|
SYS_LCHOWN = 364
|
||||||
SYS_STACK_SNAPSHOT = 365
|
|
||||||
SYS_BSDTHREAD_REGISTER = 366
|
SYS_BSDTHREAD_REGISTER = 366
|
||||||
SYS_WORKQ_OPEN = 367
|
SYS_WORKQ_OPEN = 367
|
||||||
SYS_WORKQ_KERNRETURN = 368
|
SYS_WORKQ_KERNRETURN = 368
|
||||||
|
@ -295,6 +287,7 @@ const (
|
||||||
SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371
|
SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371
|
||||||
SYS_THREAD_SELFID = 372
|
SYS_THREAD_SELFID = 372
|
||||||
SYS_LEDGER = 373
|
SYS_LEDGER = 373
|
||||||
|
SYS_KEVENT_QOS = 374
|
||||||
SYS___MAC_EXECVE = 380
|
SYS___MAC_EXECVE = 380
|
||||||
SYS___MAC_SYSCALL = 381
|
SYS___MAC_SYSCALL = 381
|
||||||
SYS___MAC_GET_FILE = 382
|
SYS___MAC_GET_FILE = 382
|
||||||
|
@ -306,11 +299,8 @@ const (
|
||||||
SYS___MAC_GET_FD = 388
|
SYS___MAC_GET_FD = 388
|
||||||
SYS___MAC_SET_FD = 389
|
SYS___MAC_SET_FD = 389
|
||||||
SYS___MAC_GET_PID = 390
|
SYS___MAC_GET_PID = 390
|
||||||
SYS___MAC_GET_LCID = 391
|
SYS_PSELECT = 394
|
||||||
SYS___MAC_GET_LCTX = 392
|
SYS_PSELECT_NOCANCEL = 395
|
||||||
SYS___MAC_SET_LCTX = 393
|
|
||||||
SYS_SETLCID = 394
|
|
||||||
SYS_GETLCID = 395
|
|
||||||
SYS_READ_NOCANCEL = 396
|
SYS_READ_NOCANCEL = 396
|
||||||
SYS_WRITE_NOCANCEL = 397
|
SYS_WRITE_NOCANCEL = 397
|
||||||
SYS_OPEN_NOCANCEL = 398
|
SYS_OPEN_NOCANCEL = 398
|
||||||
|
@ -354,5 +344,83 @@ const (
|
||||||
SYS_PID_SHUTDOWN_SOCKETS = 436
|
SYS_PID_SHUTDOWN_SOCKETS = 436
|
||||||
SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438
|
SYS_SHARED_REGION_MAP_AND_SLIDE_NP = 438
|
||||||
SYS_KAS_INFO = 439
|
SYS_KAS_INFO = 439
|
||||||
SYS_MAXSYSCALL = 440
|
SYS_MEMORYSTATUS_CONTROL = 440
|
||||||
|
SYS_GUARDED_OPEN_NP = 441
|
||||||
|
SYS_GUARDED_CLOSE_NP = 442
|
||||||
|
SYS_GUARDED_KQUEUE_NP = 443
|
||||||
|
SYS_CHANGE_FDGUARD_NP = 444
|
||||||
|
SYS_USRCTL = 445
|
||||||
|
SYS_PROC_RLIMIT_CONTROL = 446
|
||||||
|
SYS_CONNECTX = 447
|
||||||
|
SYS_DISCONNECTX = 448
|
||||||
|
SYS_PEELOFF = 449
|
||||||
|
SYS_SOCKET_DELEGATE = 450
|
||||||
|
SYS_TELEMETRY = 451
|
||||||
|
SYS_PROC_UUID_POLICY = 452
|
||||||
|
SYS_MEMORYSTATUS_GET_LEVEL = 453
|
||||||
|
SYS_SYSTEM_OVERRIDE = 454
|
||||||
|
SYS_VFS_PURGE = 455
|
||||||
|
SYS_SFI_CTL = 456
|
||||||
|
SYS_SFI_PIDCTL = 457
|
||||||
|
SYS_COALITION = 458
|
||||||
|
SYS_COALITION_INFO = 459
|
||||||
|
SYS_NECP_MATCH_POLICY = 460
|
||||||
|
SYS_GETATTRLISTBULK = 461
|
||||||
|
SYS_CLONEFILEAT = 462
|
||||||
|
SYS_OPENAT = 463
|
||||||
|
SYS_OPENAT_NOCANCEL = 464
|
||||||
|
SYS_RENAMEAT = 465
|
||||||
|
SYS_FACCESSAT = 466
|
||||||
|
SYS_FCHMODAT = 467
|
||||||
|
SYS_FCHOWNAT = 468
|
||||||
|
SYS_FSTATAT = 469
|
||||||
|
SYS_FSTATAT64 = 470
|
||||||
|
SYS_LINKAT = 471
|
||||||
|
SYS_UNLINKAT = 472
|
||||||
|
SYS_READLINKAT = 473
|
||||||
|
SYS_SYMLINKAT = 474
|
||||||
|
SYS_MKDIRAT = 475
|
||||||
|
SYS_GETATTRLISTAT = 476
|
||||||
|
SYS_PROC_TRACE_LOG = 477
|
||||||
|
SYS_BSDTHREAD_CTL = 478
|
||||||
|
SYS_OPENBYID_NP = 479
|
||||||
|
SYS_RECVMSG_X = 480
|
||||||
|
SYS_SENDMSG_X = 481
|
||||||
|
SYS_THREAD_SELFUSAGE = 482
|
||||||
|
SYS_CSRCTL = 483
|
||||||
|
SYS_GUARDED_OPEN_DPROTECTED_NP = 484
|
||||||
|
SYS_GUARDED_WRITE_NP = 485
|
||||||
|
SYS_GUARDED_PWRITE_NP = 486
|
||||||
|
SYS_GUARDED_WRITEV_NP = 487
|
||||||
|
SYS_RENAMEATX_NP = 488
|
||||||
|
SYS_MREMAP_ENCRYPTED = 489
|
||||||
|
SYS_NETAGENT_TRIGGER = 490
|
||||||
|
SYS_STACK_SNAPSHOT_WITH_CONFIG = 491
|
||||||
|
SYS_MICROSTACKSHOT = 492
|
||||||
|
SYS_GRAB_PGO_DATA = 493
|
||||||
|
SYS_PERSONA = 494
|
||||||
|
SYS_WORK_INTERVAL_CTL = 499
|
||||||
|
SYS_GETENTROPY = 500
|
||||||
|
SYS_NECP_OPEN = 501
|
||||||
|
SYS_NECP_CLIENT_ACTION = 502
|
||||||
|
SYS___NEXUS_OPEN = 503
|
||||||
|
SYS___NEXUS_REGISTER = 504
|
||||||
|
SYS___NEXUS_DEREGISTER = 505
|
||||||
|
SYS___NEXUS_CREATE = 506
|
||||||
|
SYS___NEXUS_DESTROY = 507
|
||||||
|
SYS___NEXUS_GET_OPT = 508
|
||||||
|
SYS___NEXUS_SET_OPT = 509
|
||||||
|
SYS___CHANNEL_OPEN = 510
|
||||||
|
SYS___CHANNEL_GET_INFO = 511
|
||||||
|
SYS___CHANNEL_SYNC = 512
|
||||||
|
SYS___CHANNEL_GET_OPT = 513
|
||||||
|
SYS___CHANNEL_SET_OPT = 514
|
||||||
|
SYS_ULOCK_WAIT = 515
|
||||||
|
SYS_ULOCK_WAKE = 516
|
||||||
|
SYS_FCLONEFILEAT = 517
|
||||||
|
SYS_FS_SNAPSHOT = 518
|
||||||
|
SYS_TERMINATE_WITH_PAYLOAD = 520
|
||||||
|
SYS_ABORT_WITH_PAYLOAD = 521
|
||||||
|
SYS_MAXSYSCALL = 522
|
||||||
|
SYS_INVALID = 63
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mksysnum_darwin.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk/usr/include/sys/syscall.h
|
// mksysnum_darwin.pl /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.2.sdk/usr/include/sys/syscall.h
|
||||||
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build arm64,darwin
|
// +build arm64,darwin
|
||||||
|
|
||||||
|
@ -121,13 +121,14 @@ const (
|
||||||
SYS_CSOPS = 169
|
SYS_CSOPS = 169
|
||||||
SYS_CSOPS_AUDITTOKEN = 170
|
SYS_CSOPS_AUDITTOKEN = 170
|
||||||
SYS_WAITID = 173
|
SYS_WAITID = 173
|
||||||
|
SYS_KDEBUG_TYPEFILTER = 177
|
||||||
|
SYS_KDEBUG_TRACE_STRING = 178
|
||||||
SYS_KDEBUG_TRACE64 = 179
|
SYS_KDEBUG_TRACE64 = 179
|
||||||
SYS_KDEBUG_TRACE = 180
|
SYS_KDEBUG_TRACE = 180
|
||||||
SYS_SETGID = 181
|
SYS_SETGID = 181
|
||||||
SYS_SETEGID = 182
|
SYS_SETEGID = 182
|
||||||
SYS_SETEUID = 183
|
SYS_SETEUID = 183
|
||||||
SYS_SIGRETURN = 184
|
SYS_SIGRETURN = 184
|
||||||
SYS_CHUD = 185
|
|
||||||
SYS_FDATASYNC = 187
|
SYS_FDATASYNC = 187
|
||||||
SYS_STAT = 188
|
SYS_STAT = 188
|
||||||
SYS_FSTAT = 189
|
SYS_FSTAT = 189
|
||||||
|
@ -278,7 +279,6 @@ const (
|
||||||
SYS_KQUEUE = 362
|
SYS_KQUEUE = 362
|
||||||
SYS_KEVENT = 363
|
SYS_KEVENT = 363
|
||||||
SYS_LCHOWN = 364
|
SYS_LCHOWN = 364
|
||||||
SYS_STACK_SNAPSHOT = 365
|
|
||||||
SYS_BSDTHREAD_REGISTER = 366
|
SYS_BSDTHREAD_REGISTER = 366
|
||||||
SYS_WORKQ_OPEN = 367
|
SYS_WORKQ_OPEN = 367
|
||||||
SYS_WORKQ_KERNRETURN = 368
|
SYS_WORKQ_KERNRETURN = 368
|
||||||
|
@ -287,6 +287,7 @@ const (
|
||||||
SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371
|
SYS___OLD_SEMWAIT_SIGNAL_NOCANCEL = 371
|
||||||
SYS_THREAD_SELFID = 372
|
SYS_THREAD_SELFID = 372
|
||||||
SYS_LEDGER = 373
|
SYS_LEDGER = 373
|
||||||
|
SYS_KEVENT_QOS = 374
|
||||||
SYS___MAC_EXECVE = 380
|
SYS___MAC_EXECVE = 380
|
||||||
SYS___MAC_SYSCALL = 381
|
SYS___MAC_SYSCALL = 381
|
||||||
SYS___MAC_GET_FILE = 382
|
SYS___MAC_GET_FILE = 382
|
||||||
|
@ -298,11 +299,8 @@ const (
|
||||||
SYS___MAC_GET_FD = 388
|
SYS___MAC_GET_FD = 388
|
||||||
SYS___MAC_SET_FD = 389
|
SYS___MAC_SET_FD = 389
|
||||||
SYS___MAC_GET_PID = 390
|
SYS___MAC_GET_PID = 390
|
||||||
SYS___MAC_GET_LCID = 391
|
SYS_PSELECT = 394
|
||||||
SYS___MAC_GET_LCTX = 392
|
SYS_PSELECT_NOCANCEL = 395
|
||||||
SYS___MAC_SET_LCTX = 393
|
|
||||||
SYS_SETLCID = 394
|
|
||||||
SYS_GETLCID = 395
|
|
||||||
SYS_READ_NOCANCEL = 396
|
SYS_READ_NOCANCEL = 396
|
||||||
SYS_WRITE_NOCANCEL = 397
|
SYS_WRITE_NOCANCEL = 397
|
||||||
SYS_OPEN_NOCANCEL = 398
|
SYS_OPEN_NOCANCEL = 398
|
||||||
|
@ -351,6 +349,7 @@ const (
|
||||||
SYS_GUARDED_CLOSE_NP = 442
|
SYS_GUARDED_CLOSE_NP = 442
|
||||||
SYS_GUARDED_KQUEUE_NP = 443
|
SYS_GUARDED_KQUEUE_NP = 443
|
||||||
SYS_CHANGE_FDGUARD_NP = 444
|
SYS_CHANGE_FDGUARD_NP = 444
|
||||||
|
SYS_USRCTL = 445
|
||||||
SYS_PROC_RLIMIT_CONTROL = 446
|
SYS_PROC_RLIMIT_CONTROL = 446
|
||||||
SYS_CONNECTX = 447
|
SYS_CONNECTX = 447
|
||||||
SYS_DISCONNECTX = 448
|
SYS_DISCONNECTX = 448
|
||||||
|
@ -367,6 +366,7 @@ const (
|
||||||
SYS_COALITION_INFO = 459
|
SYS_COALITION_INFO = 459
|
||||||
SYS_NECP_MATCH_POLICY = 460
|
SYS_NECP_MATCH_POLICY = 460
|
||||||
SYS_GETATTRLISTBULK = 461
|
SYS_GETATTRLISTBULK = 461
|
||||||
|
SYS_CLONEFILEAT = 462
|
||||||
SYS_OPENAT = 463
|
SYS_OPENAT = 463
|
||||||
SYS_OPENAT_NOCANCEL = 464
|
SYS_OPENAT_NOCANCEL = 464
|
||||||
SYS_RENAMEAT = 465
|
SYS_RENAMEAT = 465
|
||||||
|
@ -392,7 +392,35 @@ const (
|
||||||
SYS_GUARDED_WRITE_NP = 485
|
SYS_GUARDED_WRITE_NP = 485
|
||||||
SYS_GUARDED_PWRITE_NP = 486
|
SYS_GUARDED_PWRITE_NP = 486
|
||||||
SYS_GUARDED_WRITEV_NP = 487
|
SYS_GUARDED_WRITEV_NP = 487
|
||||||
SYS_RENAME_EXT = 488
|
SYS_RENAMEATX_NP = 488
|
||||||
SYS_MREMAP_ENCRYPTED = 489
|
SYS_MREMAP_ENCRYPTED = 489
|
||||||
SYS_MAXSYSCALL = 490
|
SYS_NETAGENT_TRIGGER = 490
|
||||||
|
SYS_STACK_SNAPSHOT_WITH_CONFIG = 491
|
||||||
|
SYS_MICROSTACKSHOT = 492
|
||||||
|
SYS_GRAB_PGO_DATA = 493
|
||||||
|
SYS_PERSONA = 494
|
||||||
|
SYS_WORK_INTERVAL_CTL = 499
|
||||||
|
SYS_GETENTROPY = 500
|
||||||
|
SYS_NECP_OPEN = 501
|
||||||
|
SYS_NECP_CLIENT_ACTION = 502
|
||||||
|
SYS___NEXUS_OPEN = 503
|
||||||
|
SYS___NEXUS_REGISTER = 504
|
||||||
|
SYS___NEXUS_DEREGISTER = 505
|
||||||
|
SYS___NEXUS_CREATE = 506
|
||||||
|
SYS___NEXUS_DESTROY = 507
|
||||||
|
SYS___NEXUS_GET_OPT = 508
|
||||||
|
SYS___NEXUS_SET_OPT = 509
|
||||||
|
SYS___CHANNEL_OPEN = 510
|
||||||
|
SYS___CHANNEL_GET_INFO = 511
|
||||||
|
SYS___CHANNEL_SYNC = 512
|
||||||
|
SYS___CHANNEL_GET_OPT = 513
|
||||||
|
SYS___CHANNEL_SET_OPT = 514
|
||||||
|
SYS_ULOCK_WAIT = 515
|
||||||
|
SYS_ULOCK_WAKE = 516
|
||||||
|
SYS_FCLONEFILEAT = 517
|
||||||
|
SYS_FS_SNAPSHOT = 518
|
||||||
|
SYS_TERMINATE_WITH_PAYLOAD = 520
|
||||||
|
SYS_ABORT_WITH_PAYLOAD = 521
|
||||||
|
SYS_MAXSYSCALL = 522
|
||||||
|
SYS_INVALID = 63
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mksysnum_freebsd.pl
|
// mksysnum_freebsd.pl
|
||||||
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build 386,freebsd
|
// +build 386,freebsd
|
||||||
|
|
||||||
|
@ -284,10 +284,6 @@ const (
|
||||||
SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); }
|
SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); }
|
||||||
SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); }
|
SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); }
|
||||||
SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \
|
SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \
|
||||||
SYS_SCTP_PEELOFF = 471 // { int sctp_peeloff(int sd, uint32_t name); }
|
|
||||||
SYS_SCTP_GENERIC_SENDMSG = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
|
|
||||||
SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
|
|
||||||
SYS_SCTP_GENERIC_RECVMSG = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
|
|
||||||
SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \
|
SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \
|
||||||
SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \
|
SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \
|
||||||
SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \
|
SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \
|
||||||
|
@ -323,8 +319,7 @@ const (
|
||||||
SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); }
|
SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); }
|
||||||
SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); }
|
SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); }
|
||||||
SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); }
|
SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); }
|
||||||
SYS_CAP_NEW = 514 // { int cap_new(int fd, uint64_t rights); }
|
SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, \
|
||||||
SYS_CAP_GETRIGHTS = 515 // { int cap_getrights(int fd, \
|
|
||||||
SYS_CAP_ENTER = 516 // { int cap_enter(void); }
|
SYS_CAP_ENTER = 516 // { int cap_enter(void); }
|
||||||
SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); }
|
SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); }
|
||||||
SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); }
|
SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); }
|
||||||
|
@ -341,6 +336,11 @@ const (
|
||||||
SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, \
|
SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, \
|
||||||
SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, \
|
SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, \
|
||||||
SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, \
|
SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, \
|
||||||
|
SYS_CAP_RIGHTS_LIMIT = 533 // { int cap_rights_limit(int fd, \
|
||||||
|
SYS_CAP_IOCTLS_LIMIT = 534 // { int cap_ioctls_limit(int fd, \
|
||||||
|
SYS_CAP_IOCTLS_GET = 535 // { ssize_t cap_ioctls_get(int fd, \
|
||||||
|
SYS_CAP_FCNTLS_LIMIT = 536 // { int cap_fcntls_limit(int fd, \
|
||||||
|
SYS_CAP_FCNTLS_GET = 537 // { int cap_fcntls_get(int fd, \
|
||||||
SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, \
|
SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, \
|
||||||
SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, \
|
SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, \
|
||||||
SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \
|
SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \
|
||||||
|
@ -348,4 +348,6 @@ const (
|
||||||
SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); }
|
SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); }
|
||||||
SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \
|
SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \
|
||||||
SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \
|
SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \
|
||||||
|
SYS_FUTIMENS = 546 // { int futimens(int fd, \
|
||||||
|
SYS_UTIMENSAT = 547 // { int utimensat(int fd, \
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mksysnum_freebsd.pl
|
// mksysnum_freebsd.pl
|
||||||
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build amd64,freebsd
|
// +build amd64,freebsd
|
||||||
|
|
||||||
|
@ -284,10 +284,6 @@ const (
|
||||||
SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); }
|
SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); }
|
||||||
SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); }
|
SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); }
|
||||||
SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \
|
SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \
|
||||||
SYS_SCTP_PEELOFF = 471 // { int sctp_peeloff(int sd, uint32_t name); }
|
|
||||||
SYS_SCTP_GENERIC_SENDMSG = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
|
|
||||||
SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
|
|
||||||
SYS_SCTP_GENERIC_RECVMSG = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
|
|
||||||
SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \
|
SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \
|
||||||
SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \
|
SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \
|
||||||
SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \
|
SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \
|
||||||
|
@ -323,8 +319,7 @@ const (
|
||||||
SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); }
|
SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); }
|
||||||
SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); }
|
SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); }
|
||||||
SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); }
|
SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); }
|
||||||
SYS_CAP_NEW = 514 // { int cap_new(int fd, uint64_t rights); }
|
SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, \
|
||||||
SYS_CAP_GETRIGHTS = 515 // { int cap_getrights(int fd, \
|
|
||||||
SYS_CAP_ENTER = 516 // { int cap_enter(void); }
|
SYS_CAP_ENTER = 516 // { int cap_enter(void); }
|
||||||
SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); }
|
SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); }
|
||||||
SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); }
|
SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); }
|
||||||
|
@ -341,6 +336,11 @@ const (
|
||||||
SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, \
|
SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, \
|
||||||
SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, \
|
SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, \
|
||||||
SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, \
|
SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, \
|
||||||
|
SYS_CAP_RIGHTS_LIMIT = 533 // { int cap_rights_limit(int fd, \
|
||||||
|
SYS_CAP_IOCTLS_LIMIT = 534 // { int cap_ioctls_limit(int fd, \
|
||||||
|
SYS_CAP_IOCTLS_GET = 535 // { ssize_t cap_ioctls_get(int fd, \
|
||||||
|
SYS_CAP_FCNTLS_LIMIT = 536 // { int cap_fcntls_limit(int fd, \
|
||||||
|
SYS_CAP_FCNTLS_GET = 537 // { int cap_fcntls_get(int fd, \
|
||||||
SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, \
|
SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, \
|
||||||
SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, \
|
SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, \
|
||||||
SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \
|
SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \
|
||||||
|
@ -348,4 +348,6 @@ const (
|
||||||
SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); }
|
SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); }
|
||||||
SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \
|
SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \
|
||||||
SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \
|
SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \
|
||||||
|
SYS_FUTIMENS = 546 // { int futimens(int fd, \
|
||||||
|
SYS_UTIMENSAT = 547 // { int utimensat(int fd, \
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// mksysnum_freebsd.pl
|
// mksysnum_freebsd.pl
|
||||||
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build arm,freebsd
|
// +build arm,freebsd
|
||||||
|
|
||||||
|
@ -284,10 +284,6 @@ const (
|
||||||
SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); }
|
SYS_ABORT2 = 463 // { int abort2(const char *why, int nargs, void **args); }
|
||||||
SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); }
|
SYS_THR_SET_NAME = 464 // { int thr_set_name(long id, const char *name); }
|
||||||
SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \
|
SYS_RTPRIO_THREAD = 466 // { int rtprio_thread(int function, \
|
||||||
SYS_SCTP_PEELOFF = 471 // { int sctp_peeloff(int sd, uint32_t name); }
|
|
||||||
SYS_SCTP_GENERIC_SENDMSG = 472 // { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
|
|
||||||
SYS_SCTP_GENERIC_SENDMSG_IOV = 473 // { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
|
|
||||||
SYS_SCTP_GENERIC_RECVMSG = 474 // { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
|
|
||||||
SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \
|
SYS_PREAD = 475 // { ssize_t pread(int fd, void *buf, \
|
||||||
SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \
|
SYS_PWRITE = 476 // { ssize_t pwrite(int fd, const void *buf, \
|
||||||
SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \
|
SYS_MMAP = 477 // { caddr_t mmap(caddr_t addr, size_t len, \
|
||||||
|
@ -323,8 +319,7 @@ const (
|
||||||
SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); }
|
SYS_JAIL_REMOVE = 508 // { int jail_remove(int jid); }
|
||||||
SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); }
|
SYS_CLOSEFROM = 509 // { int closefrom(int lowfd); }
|
||||||
SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); }
|
SYS_LPATHCONF = 513 // { int lpathconf(char *path, int name); }
|
||||||
SYS_CAP_NEW = 514 // { int cap_new(int fd, uint64_t rights); }
|
SYS___CAP_RIGHTS_GET = 515 // { int __cap_rights_get(int version, \
|
||||||
SYS_CAP_GETRIGHTS = 515 // { int cap_getrights(int fd, \
|
|
||||||
SYS_CAP_ENTER = 516 // { int cap_enter(void); }
|
SYS_CAP_ENTER = 516 // { int cap_enter(void); }
|
||||||
SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); }
|
SYS_CAP_GETMODE = 517 // { int cap_getmode(u_int *modep); }
|
||||||
SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); }
|
SYS_PDFORK = 518 // { int pdfork(int *fdp, int flags); }
|
||||||
|
@ -341,6 +336,11 @@ const (
|
||||||
SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, \
|
SYS_POSIX_FALLOCATE = 530 // { int posix_fallocate(int fd, \
|
||||||
SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, \
|
SYS_POSIX_FADVISE = 531 // { int posix_fadvise(int fd, off_t offset, \
|
||||||
SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, \
|
SYS_WAIT6 = 532 // { int wait6(idtype_t idtype, id_t id, \
|
||||||
|
SYS_CAP_RIGHTS_LIMIT = 533 // { int cap_rights_limit(int fd, \
|
||||||
|
SYS_CAP_IOCTLS_LIMIT = 534 // { int cap_ioctls_limit(int fd, \
|
||||||
|
SYS_CAP_IOCTLS_GET = 535 // { ssize_t cap_ioctls_get(int fd, \
|
||||||
|
SYS_CAP_FCNTLS_LIMIT = 536 // { int cap_fcntls_limit(int fd, \
|
||||||
|
SYS_CAP_FCNTLS_GET = 537 // { int cap_fcntls_get(int fd, \
|
||||||
SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, \
|
SYS_BINDAT = 538 // { int bindat(int fd, int s, caddr_t name, \
|
||||||
SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, \
|
SYS_CONNECTAT = 539 // { int connectat(int fd, int s, caddr_t name, \
|
||||||
SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \
|
SYS_CHFLAGSAT = 540 // { int chflagsat(int fd, const char *path, \
|
||||||
|
@ -348,4 +348,6 @@ const (
|
||||||
SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); }
|
SYS_PIPE2 = 542 // { int pipe2(int *fildes, int flags); }
|
||||||
SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \
|
SYS_PROCCTL = 544 // { int procctl(idtype_t idtype, id_t id, \
|
||||||
SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \
|
SYS_PPOLL = 545 // { int ppoll(struct pollfd *fds, u_int nfds, \
|
||||||
|
SYS_FUTIMENS = 546 // { int futimens(int fd, \
|
||||||
|
SYS_UTIMENSAT = 547 // { int utimensat(int fd, \
|
||||||
)
|
)
|
||||||
|
|
|
@ -134,6 +134,7 @@ const (
|
||||||
SYS_MINHERIT = 273 // { int|sys||minherit(void *addr, size_t len, int inherit); }
|
SYS_MINHERIT = 273 // { int|sys||minherit(void *addr, size_t len, int inherit); }
|
||||||
SYS_LCHMOD = 274 // { int|sys||lchmod(const char *path, mode_t mode); }
|
SYS_LCHMOD = 274 // { int|sys||lchmod(const char *path, mode_t mode); }
|
||||||
SYS_LCHOWN = 275 // { int|sys||lchown(const char *path, uid_t uid, gid_t gid); }
|
SYS_LCHOWN = 275 // { int|sys||lchown(const char *path, uid_t uid, gid_t gid); }
|
||||||
|
SYS_MSYNC = 277 // { int|sys|13|msync(void *addr, size_t len, int flags); }
|
||||||
SYS___POSIX_CHOWN = 283 // { int|sys||__posix_chown(const char *path, uid_t uid, gid_t gid); }
|
SYS___POSIX_CHOWN = 283 // { int|sys||__posix_chown(const char *path, uid_t uid, gid_t gid); }
|
||||||
SYS___POSIX_FCHOWN = 284 // { int|sys||__posix_fchown(int fd, uid_t uid, gid_t gid); }
|
SYS___POSIX_FCHOWN = 284 // { int|sys||__posix_fchown(int fd, uid_t uid, gid_t gid); }
|
||||||
SYS___POSIX_LCHOWN = 285 // { int|sys||__posix_lchown(const char *path, uid_t uid, gid_t gid); }
|
SYS___POSIX_LCHOWN = 285 // { int|sys||__posix_lchown(const char *path, uid_t uid, gid_t gid); }
|
||||||
|
|
|
@ -134,6 +134,7 @@ const (
|
||||||
SYS_MINHERIT = 273 // { int|sys||minherit(void *addr, size_t len, int inherit); }
|
SYS_MINHERIT = 273 // { int|sys||minherit(void *addr, size_t len, int inherit); }
|
||||||
SYS_LCHMOD = 274 // { int|sys||lchmod(const char *path, mode_t mode); }
|
SYS_LCHMOD = 274 // { int|sys||lchmod(const char *path, mode_t mode); }
|
||||||
SYS_LCHOWN = 275 // { int|sys||lchown(const char *path, uid_t uid, gid_t gid); }
|
SYS_LCHOWN = 275 // { int|sys||lchown(const char *path, uid_t uid, gid_t gid); }
|
||||||
|
SYS_MSYNC = 277 // { int|sys|13|msync(void *addr, size_t len, int flags); }
|
||||||
SYS___POSIX_CHOWN = 283 // { int|sys||__posix_chown(const char *path, uid_t uid, gid_t gid); }
|
SYS___POSIX_CHOWN = 283 // { int|sys||__posix_chown(const char *path, uid_t uid, gid_t gid); }
|
||||||
SYS___POSIX_FCHOWN = 284 // { int|sys||__posix_fchown(int fd, uid_t uid, gid_t gid); }
|
SYS___POSIX_FCHOWN = 284 // { int|sys||__posix_fchown(int fd, uid_t uid, gid_t gid); }
|
||||||
SYS___POSIX_LCHOWN = 285 // { int|sys||__posix_lchown(const char *path, uid_t uid, gid_t gid); }
|
SYS___POSIX_LCHOWN = 285 // { int|sys||__posix_lchown(const char *path, uid_t uid, gid_t gid); }
|
||||||
|
|
|
@ -134,6 +134,7 @@ const (
|
||||||
SYS_MINHERIT = 273 // { int|sys||minherit(void *addr, size_t len, int inherit); }
|
SYS_MINHERIT = 273 // { int|sys||minherit(void *addr, size_t len, int inherit); }
|
||||||
SYS_LCHMOD = 274 // { int|sys||lchmod(const char *path, mode_t mode); }
|
SYS_LCHMOD = 274 // { int|sys||lchmod(const char *path, mode_t mode); }
|
||||||
SYS_LCHOWN = 275 // { int|sys||lchown(const char *path, uid_t uid, gid_t gid); }
|
SYS_LCHOWN = 275 // { int|sys||lchown(const char *path, uid_t uid, gid_t gid); }
|
||||||
|
SYS_MSYNC = 277 // { int|sys|13|msync(void *addr, size_t len, int flags); }
|
||||||
SYS___POSIX_CHOWN = 283 // { int|sys||__posix_chown(const char *path, uid_t uid, gid_t gid); }
|
SYS___POSIX_CHOWN = 283 // { int|sys||__posix_chown(const char *path, uid_t uid, gid_t gid); }
|
||||||
SYS___POSIX_FCHOWN = 284 // { int|sys||__posix_fchown(int fd, uid_t uid, gid_t gid); }
|
SYS___POSIX_FCHOWN = 284 // { int|sys||__posix_fchown(int fd, uid_t uid, gid_t gid); }
|
||||||
SYS___POSIX_LCHOWN = 285 // { int|sys||__posix_lchown(const char *path, uid_t uid, gid_t gid); }
|
SYS___POSIX_LCHOWN = 285 // { int|sys||__posix_lchown(const char *path, uid_t uid, gid_t gid); }
|
||||||
|
|
|
@ -0,0 +1,213 @@
|
||||||
|
// mksysnum_openbsd.pl
|
||||||
|
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
|
||||||
|
|
||||||
|
// +build arm,openbsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
const (
|
||||||
|
SYS_EXIT = 1 // { void sys_exit(int rval); }
|
||||||
|
SYS_FORK = 2 // { int sys_fork(void); }
|
||||||
|
SYS_READ = 3 // { ssize_t sys_read(int fd, void *buf, size_t nbyte); }
|
||||||
|
SYS_WRITE = 4 // { ssize_t sys_write(int fd, const void *buf, \
|
||||||
|
SYS_OPEN = 5 // { int sys_open(const char *path, \
|
||||||
|
SYS_CLOSE = 6 // { int sys_close(int fd); }
|
||||||
|
SYS_GETENTROPY = 7 // { int sys_getentropy(void *buf, size_t nbyte); }
|
||||||
|
SYS___TFORK = 8 // { int sys___tfork(const struct __tfork *param, \
|
||||||
|
SYS_LINK = 9 // { int sys_link(const char *path, const char *link); }
|
||||||
|
SYS_UNLINK = 10 // { int sys_unlink(const char *path); }
|
||||||
|
SYS_WAIT4 = 11 // { pid_t sys_wait4(pid_t pid, int *status, \
|
||||||
|
SYS_CHDIR = 12 // { int sys_chdir(const char *path); }
|
||||||
|
SYS_FCHDIR = 13 // { int sys_fchdir(int fd); }
|
||||||
|
SYS_MKNOD = 14 // { int sys_mknod(const char *path, mode_t mode, \
|
||||||
|
SYS_CHMOD = 15 // { int sys_chmod(const char *path, mode_t mode); }
|
||||||
|
SYS_CHOWN = 16 // { int sys_chown(const char *path, uid_t uid, \
|
||||||
|
SYS_OBREAK = 17 // { int sys_obreak(char *nsize); } break
|
||||||
|
SYS_GETDTABLECOUNT = 18 // { int sys_getdtablecount(void); }
|
||||||
|
SYS_GETRUSAGE = 19 // { int sys_getrusage(int who, \
|
||||||
|
SYS_GETPID = 20 // { pid_t sys_getpid(void); }
|
||||||
|
SYS_MOUNT = 21 // { int sys_mount(const char *type, const char *path, \
|
||||||
|
SYS_UNMOUNT = 22 // { int sys_unmount(const char *path, int flags); }
|
||||||
|
SYS_SETUID = 23 // { int sys_setuid(uid_t uid); }
|
||||||
|
SYS_GETUID = 24 // { uid_t sys_getuid(void); }
|
||||||
|
SYS_GETEUID = 25 // { uid_t sys_geteuid(void); }
|
||||||
|
SYS_PTRACE = 26 // { int sys_ptrace(int req, pid_t pid, caddr_t addr, \
|
||||||
|
SYS_RECVMSG = 27 // { ssize_t sys_recvmsg(int s, struct msghdr *msg, \
|
||||||
|
SYS_SENDMSG = 28 // { ssize_t sys_sendmsg(int s, \
|
||||||
|
SYS_RECVFROM = 29 // { ssize_t sys_recvfrom(int s, void *buf, size_t len, \
|
||||||
|
SYS_ACCEPT = 30 // { int sys_accept(int s, struct sockaddr *name, \
|
||||||
|
SYS_GETPEERNAME = 31 // { int sys_getpeername(int fdes, struct sockaddr *asa, \
|
||||||
|
SYS_GETSOCKNAME = 32 // { int sys_getsockname(int fdes, struct sockaddr *asa, \
|
||||||
|
SYS_ACCESS = 33 // { int sys_access(const char *path, int amode); }
|
||||||
|
SYS_CHFLAGS = 34 // { int sys_chflags(const char *path, u_int flags); }
|
||||||
|
SYS_FCHFLAGS = 35 // { int sys_fchflags(int fd, u_int flags); }
|
||||||
|
SYS_SYNC = 36 // { void sys_sync(void); }
|
||||||
|
SYS_STAT = 38 // { int sys_stat(const char *path, struct stat *ub); }
|
||||||
|
SYS_GETPPID = 39 // { pid_t sys_getppid(void); }
|
||||||
|
SYS_LSTAT = 40 // { int sys_lstat(const char *path, struct stat *ub); }
|
||||||
|
SYS_DUP = 41 // { int sys_dup(int fd); }
|
||||||
|
SYS_FSTATAT = 42 // { int sys_fstatat(int fd, const char *path, \
|
||||||
|
SYS_GETEGID = 43 // { gid_t sys_getegid(void); }
|
||||||
|
SYS_PROFIL = 44 // { int sys_profil(caddr_t samples, size_t size, \
|
||||||
|
SYS_KTRACE = 45 // { int sys_ktrace(const char *fname, int ops, \
|
||||||
|
SYS_SIGACTION = 46 // { int sys_sigaction(int signum, \
|
||||||
|
SYS_GETGID = 47 // { gid_t sys_getgid(void); }
|
||||||
|
SYS_SIGPROCMASK = 48 // { int sys_sigprocmask(int how, sigset_t mask); }
|
||||||
|
SYS_GETLOGIN = 49 // { int sys_getlogin(char *namebuf, u_int namelen); }
|
||||||
|
SYS_SETLOGIN = 50 // { int sys_setlogin(const char *namebuf); }
|
||||||
|
SYS_ACCT = 51 // { int sys_acct(const char *path); }
|
||||||
|
SYS_SIGPENDING = 52 // { int sys_sigpending(void); }
|
||||||
|
SYS_FSTAT = 53 // { int sys_fstat(int fd, struct stat *sb); }
|
||||||
|
SYS_IOCTL = 54 // { int sys_ioctl(int fd, \
|
||||||
|
SYS_REBOOT = 55 // { int sys_reboot(int opt); }
|
||||||
|
SYS_REVOKE = 56 // { int sys_revoke(const char *path); }
|
||||||
|
SYS_SYMLINK = 57 // { int sys_symlink(const char *path, \
|
||||||
|
SYS_READLINK = 58 // { ssize_t sys_readlink(const char *path, \
|
||||||
|
SYS_EXECVE = 59 // { int sys_execve(const char *path, \
|
||||||
|
SYS_UMASK = 60 // { mode_t sys_umask(mode_t newmask); }
|
||||||
|
SYS_CHROOT = 61 // { int sys_chroot(const char *path); }
|
||||||
|
SYS_GETFSSTAT = 62 // { int sys_getfsstat(struct statfs *buf, size_t bufsize, \
|
||||||
|
SYS_STATFS = 63 // { int sys_statfs(const char *path, \
|
||||||
|
SYS_FSTATFS = 64 // { int sys_fstatfs(int fd, struct statfs *buf); }
|
||||||
|
SYS_FHSTATFS = 65 // { int sys_fhstatfs(const fhandle_t *fhp, \
|
||||||
|
SYS_VFORK = 66 // { int sys_vfork(void); }
|
||||||
|
SYS_GETTIMEOFDAY = 67 // { int sys_gettimeofday(struct timeval *tp, \
|
||||||
|
SYS_SETTIMEOFDAY = 68 // { int sys_settimeofday(const struct timeval *tv, \
|
||||||
|
SYS_SETITIMER = 69 // { int sys_setitimer(int which, \
|
||||||
|
SYS_GETITIMER = 70 // { int sys_getitimer(int which, \
|
||||||
|
SYS_SELECT = 71 // { int sys_select(int nd, fd_set *in, fd_set *ou, \
|
||||||
|
SYS_KEVENT = 72 // { int sys_kevent(int fd, \
|
||||||
|
SYS_MUNMAP = 73 // { int sys_munmap(void *addr, size_t len); }
|
||||||
|
SYS_MPROTECT = 74 // { int sys_mprotect(void *addr, size_t len, \
|
||||||
|
SYS_MADVISE = 75 // { int sys_madvise(void *addr, size_t len, \
|
||||||
|
SYS_UTIMES = 76 // { int sys_utimes(const char *path, \
|
||||||
|
SYS_FUTIMES = 77 // { int sys_futimes(int fd, \
|
||||||
|
SYS_MINCORE = 78 // { int sys_mincore(void *addr, size_t len, \
|
||||||
|
SYS_GETGROUPS = 79 // { int sys_getgroups(int gidsetsize, \
|
||||||
|
SYS_SETGROUPS = 80 // { int sys_setgroups(int gidsetsize, \
|
||||||
|
SYS_GETPGRP = 81 // { int sys_getpgrp(void); }
|
||||||
|
SYS_SETPGID = 82 // { int sys_setpgid(pid_t pid, pid_t pgid); }
|
||||||
|
SYS_SENDSYSLOG = 83 // { int sys_sendsyslog(const void *buf, size_t nbyte); }
|
||||||
|
SYS_UTIMENSAT = 84 // { int sys_utimensat(int fd, const char *path, \
|
||||||
|
SYS_FUTIMENS = 85 // { int sys_futimens(int fd, \
|
||||||
|
SYS_CLOCK_GETTIME = 87 // { int sys_clock_gettime(clockid_t clock_id, \
|
||||||
|
SYS_CLOCK_SETTIME = 88 // { int sys_clock_settime(clockid_t clock_id, \
|
||||||
|
SYS_CLOCK_GETRES = 89 // { int sys_clock_getres(clockid_t clock_id, \
|
||||||
|
SYS_DUP2 = 90 // { int sys_dup2(int from, int to); }
|
||||||
|
SYS_NANOSLEEP = 91 // { int sys_nanosleep(const struct timespec *rqtp, \
|
||||||
|
SYS_FCNTL = 92 // { int sys_fcntl(int fd, int cmd, ... void *arg); }
|
||||||
|
SYS_ACCEPT4 = 93 // { int sys_accept4(int s, struct sockaddr *name, \
|
||||||
|
SYS___THRSLEEP = 94 // { int sys___thrsleep(const volatile void *ident, \
|
||||||
|
SYS_FSYNC = 95 // { int sys_fsync(int fd); }
|
||||||
|
SYS_SETPRIORITY = 96 // { int sys_setpriority(int which, id_t who, int prio); }
|
||||||
|
SYS_SOCKET = 97 // { int sys_socket(int domain, int type, int protocol); }
|
||||||
|
SYS_CONNECT = 98 // { int sys_connect(int s, const struct sockaddr *name, \
|
||||||
|
SYS_GETDENTS = 99 // { int sys_getdents(int fd, void *buf, size_t buflen); }
|
||||||
|
SYS_GETPRIORITY = 100 // { int sys_getpriority(int which, id_t who); }
|
||||||
|
SYS_PIPE2 = 101 // { int sys_pipe2(int *fdp, int flags); }
|
||||||
|
SYS_DUP3 = 102 // { int sys_dup3(int from, int to, int flags); }
|
||||||
|
SYS_SIGRETURN = 103 // { int sys_sigreturn(struct sigcontext *sigcntxp); }
|
||||||
|
SYS_BIND = 104 // { int sys_bind(int s, const struct sockaddr *name, \
|
||||||
|
SYS_SETSOCKOPT = 105 // { int sys_setsockopt(int s, int level, int name, \
|
||||||
|
SYS_LISTEN = 106 // { int sys_listen(int s, int backlog); }
|
||||||
|
SYS_CHFLAGSAT = 107 // { int sys_chflagsat(int fd, const char *path, \
|
||||||
|
SYS_PPOLL = 109 // { int sys_ppoll(struct pollfd *fds, \
|
||||||
|
SYS_PSELECT = 110 // { int sys_pselect(int nd, fd_set *in, fd_set *ou, \
|
||||||
|
SYS_SIGSUSPEND = 111 // { int sys_sigsuspend(int mask); }
|
||||||
|
SYS_GETSOCKOPT = 118 // { int sys_getsockopt(int s, int level, int name, \
|
||||||
|
SYS_READV = 120 // { ssize_t sys_readv(int fd, \
|
||||||
|
SYS_WRITEV = 121 // { ssize_t sys_writev(int fd, \
|
||||||
|
SYS_KILL = 122 // { int sys_kill(int pid, int signum); }
|
||||||
|
SYS_FCHOWN = 123 // { int sys_fchown(int fd, uid_t uid, gid_t gid); }
|
||||||
|
SYS_FCHMOD = 124 // { int sys_fchmod(int fd, mode_t mode); }
|
||||||
|
SYS_SETREUID = 126 // { int sys_setreuid(uid_t ruid, uid_t euid); }
|
||||||
|
SYS_SETREGID = 127 // { int sys_setregid(gid_t rgid, gid_t egid); }
|
||||||
|
SYS_RENAME = 128 // { int sys_rename(const char *from, const char *to); }
|
||||||
|
SYS_FLOCK = 131 // { int sys_flock(int fd, int how); }
|
||||||
|
SYS_MKFIFO = 132 // { int sys_mkfifo(const char *path, mode_t mode); }
|
||||||
|
SYS_SENDTO = 133 // { ssize_t sys_sendto(int s, const void *buf, \
|
||||||
|
SYS_SHUTDOWN = 134 // { int sys_shutdown(int s, int how); }
|
||||||
|
SYS_SOCKETPAIR = 135 // { int sys_socketpair(int domain, int type, \
|
||||||
|
SYS_MKDIR = 136 // { int sys_mkdir(const char *path, mode_t mode); }
|
||||||
|
SYS_RMDIR = 137 // { int sys_rmdir(const char *path); }
|
||||||
|
SYS_ADJTIME = 140 // { int sys_adjtime(const struct timeval *delta, \
|
||||||
|
SYS_SETSID = 147 // { int sys_setsid(void); }
|
||||||
|
SYS_QUOTACTL = 148 // { int sys_quotactl(const char *path, int cmd, \
|
||||||
|
SYS_NFSSVC = 155 // { int sys_nfssvc(int flag, void *argp); }
|
||||||
|
SYS_GETFH = 161 // { int sys_getfh(const char *fname, fhandle_t *fhp); }
|
||||||
|
SYS_SYSARCH = 165 // { int sys_sysarch(int op, void *parms); }
|
||||||
|
SYS_PREAD = 173 // { ssize_t sys_pread(int fd, void *buf, \
|
||||||
|
SYS_PWRITE = 174 // { ssize_t sys_pwrite(int fd, const void *buf, \
|
||||||
|
SYS_SETGID = 181 // { int sys_setgid(gid_t gid); }
|
||||||
|
SYS_SETEGID = 182 // { int sys_setegid(gid_t egid); }
|
||||||
|
SYS_SETEUID = 183 // { int sys_seteuid(uid_t euid); }
|
||||||
|
SYS_PATHCONF = 191 // { long sys_pathconf(const char *path, int name); }
|
||||||
|
SYS_FPATHCONF = 192 // { long sys_fpathconf(int fd, int name); }
|
||||||
|
SYS_SWAPCTL = 193 // { int sys_swapctl(int cmd, const void *arg, int misc); }
|
||||||
|
SYS_GETRLIMIT = 194 // { int sys_getrlimit(int which, \
|
||||||
|
SYS_SETRLIMIT = 195 // { int sys_setrlimit(int which, \
|
||||||
|
SYS_MMAP = 197 // { void *sys_mmap(void *addr, size_t len, int prot, \
|
||||||
|
SYS_LSEEK = 199 // { off_t sys_lseek(int fd, int pad, off_t offset, \
|
||||||
|
SYS_TRUNCATE = 200 // { int sys_truncate(const char *path, int pad, \
|
||||||
|
SYS_FTRUNCATE = 201 // { int sys_ftruncate(int fd, int pad, off_t length); }
|
||||||
|
SYS___SYSCTL = 202 // { int sys___sysctl(const int *name, u_int namelen, \
|
||||||
|
SYS_MLOCK = 203 // { int sys_mlock(const void *addr, size_t len); }
|
||||||
|
SYS_MUNLOCK = 204 // { int sys_munlock(const void *addr, size_t len); }
|
||||||
|
SYS_GETPGID = 207 // { pid_t sys_getpgid(pid_t pid); }
|
||||||
|
SYS_UTRACE = 209 // { int sys_utrace(const char *label, const void *addr, \
|
||||||
|
SYS_SEMGET = 221 // { int sys_semget(key_t key, int nsems, int semflg); }
|
||||||
|
SYS_MSGGET = 225 // { int sys_msgget(key_t key, int msgflg); }
|
||||||
|
SYS_MSGSND = 226 // { int sys_msgsnd(int msqid, const void *msgp, size_t msgsz, \
|
||||||
|
SYS_MSGRCV = 227 // { int sys_msgrcv(int msqid, void *msgp, size_t msgsz, \
|
||||||
|
SYS_SHMAT = 228 // { void *sys_shmat(int shmid, const void *shmaddr, \
|
||||||
|
SYS_SHMDT = 230 // { int sys_shmdt(const void *shmaddr); }
|
||||||
|
SYS_MINHERIT = 250 // { int sys_minherit(void *addr, size_t len, \
|
||||||
|
SYS_POLL = 252 // { int sys_poll(struct pollfd *fds, \
|
||||||
|
SYS_ISSETUGID = 253 // { int sys_issetugid(void); }
|
||||||
|
SYS_LCHOWN = 254 // { int sys_lchown(const char *path, uid_t uid, gid_t gid); }
|
||||||
|
SYS_GETSID = 255 // { pid_t sys_getsid(pid_t pid); }
|
||||||
|
SYS_MSYNC = 256 // { int sys_msync(void *addr, size_t len, int flags); }
|
||||||
|
SYS_PIPE = 263 // { int sys_pipe(int *fdp); }
|
||||||
|
SYS_FHOPEN = 264 // { int sys_fhopen(const fhandle_t *fhp, int flags); }
|
||||||
|
SYS_PREADV = 267 // { ssize_t sys_preadv(int fd, \
|
||||||
|
SYS_PWRITEV = 268 // { ssize_t sys_pwritev(int fd, \
|
||||||
|
SYS_KQUEUE = 269 // { int sys_kqueue(void); }
|
||||||
|
SYS_MLOCKALL = 271 // { int sys_mlockall(int flags); }
|
||||||
|
SYS_MUNLOCKALL = 272 // { int sys_munlockall(void); }
|
||||||
|
SYS_GETRESUID = 281 // { int sys_getresuid(uid_t *ruid, uid_t *euid, \
|
||||||
|
SYS_SETRESUID = 282 // { int sys_setresuid(uid_t ruid, uid_t euid, \
|
||||||
|
SYS_GETRESGID = 283 // { int sys_getresgid(gid_t *rgid, gid_t *egid, \
|
||||||
|
SYS_SETRESGID = 284 // { int sys_setresgid(gid_t rgid, gid_t egid, \
|
||||||
|
SYS_MQUERY = 286 // { void *sys_mquery(void *addr, size_t len, int prot, \
|
||||||
|
SYS_CLOSEFROM = 287 // { int sys_closefrom(int fd); }
|
||||||
|
SYS_SIGALTSTACK = 288 // { int sys_sigaltstack(const struct sigaltstack *nss, \
|
||||||
|
SYS_SHMGET = 289 // { int sys_shmget(key_t key, size_t size, int shmflg); }
|
||||||
|
SYS_SEMOP = 290 // { int sys_semop(int semid, struct sembuf *sops, \
|
||||||
|
SYS_FHSTAT = 294 // { int sys_fhstat(const fhandle_t *fhp, \
|
||||||
|
SYS___SEMCTL = 295 // { int sys___semctl(int semid, int semnum, int cmd, \
|
||||||
|
SYS_SHMCTL = 296 // { int sys_shmctl(int shmid, int cmd, \
|
||||||
|
SYS_MSGCTL = 297 // { int sys_msgctl(int msqid, int cmd, \
|
||||||
|
SYS_SCHED_YIELD = 298 // { int sys_sched_yield(void); }
|
||||||
|
SYS_GETTHRID = 299 // { pid_t sys_getthrid(void); }
|
||||||
|
SYS___THRWAKEUP = 301 // { int sys___thrwakeup(const volatile void *ident, \
|
||||||
|
SYS___THREXIT = 302 // { void sys___threxit(pid_t *notdead); }
|
||||||
|
SYS___THRSIGDIVERT = 303 // { int sys___thrsigdivert(sigset_t sigmask, \
|
||||||
|
SYS___GETCWD = 304 // { int sys___getcwd(char *buf, size_t len); }
|
||||||
|
SYS_ADJFREQ = 305 // { int sys_adjfreq(const int64_t *freq, \
|
||||||
|
SYS_SETRTABLE = 310 // { int sys_setrtable(int rtableid); }
|
||||||
|
SYS_GETRTABLE = 311 // { int sys_getrtable(void); }
|
||||||
|
SYS_FACCESSAT = 313 // { int sys_faccessat(int fd, const char *path, \
|
||||||
|
SYS_FCHMODAT = 314 // { int sys_fchmodat(int fd, const char *path, \
|
||||||
|
SYS_FCHOWNAT = 315 // { int sys_fchownat(int fd, const char *path, \
|
||||||
|
SYS_LINKAT = 317 // { int sys_linkat(int fd1, const char *path1, int fd2, \
|
||||||
|
SYS_MKDIRAT = 318 // { int sys_mkdirat(int fd, const char *path, \
|
||||||
|
SYS_MKFIFOAT = 319 // { int sys_mkfifoat(int fd, const char *path, \
|
||||||
|
SYS_MKNODAT = 320 // { int sys_mknodat(int fd, const char *path, \
|
||||||
|
SYS_OPENAT = 321 // { int sys_openat(int fd, const char *path, int flags, \
|
||||||
|
SYS_READLINKAT = 322 // { ssize_t sys_readlinkat(int fd, const char *path, \
|
||||||
|
SYS_RENAMEAT = 323 // { int sys_renameat(int fromfd, const char *from, \
|
||||||
|
SYS_SYMLINKAT = 324 // { int sys_symlinkat(const char *path, int fd, \
|
||||||
|
SYS_UNLINKAT = 325 // { int sys_unlinkat(int fd, const char *path, \
|
||||||
|
SYS___SET_TCB = 329 // { void sys___set_tcb(void *tcb); }
|
||||||
|
SYS___GET_TCB = 330 // { void *sys___get_tcb(void); }
|
||||||
|
)
|
|
@ -1,6 +1,7 @@
|
||||||
|
// cgo -godefs types_darwin.go | go run mkpost.go
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build 386,darwin
|
// +build 386,darwin
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
|
||||||
// cgo -godefs types_darwin.go
|
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
@ -445,3 +446,17 @@ type Termios struct {
|
||||||
Ispeed uint32
|
Ispeed uint32
|
||||||
Ospeed uint32
|
Ospeed uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
AT_FDCWD = -0x2
|
||||||
|
AT_REMOVEDIR = 0x80
|
||||||
|
AT_SYMLINK_FOLLOW = 0x40
|
||||||
|
AT_SYMLINK_NOFOLLOW = 0x20
|
||||||
|
)
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
// cgo -godefs types_darwin.go | go run mkpost.go
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build amd64,darwin
|
// +build amd64,darwin
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
|
||||||
// cgo -godefs types_darwin.go
|
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
@ -456,7 +457,16 @@ type Termios struct {
|
||||||
Ospeed uint64
|
Ospeed uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
AT_FDCWD = -0x2
|
AT_FDCWD = -0x2
|
||||||
|
AT_REMOVEDIR = 0x80
|
||||||
|
AT_SYMLINK_FOLLOW = 0x40
|
||||||
AT_SYMLINK_NOFOLLOW = 0x20
|
AT_SYMLINK_NOFOLLOW = 0x20
|
||||||
)
|
)
|
||||||
|
|
|
@ -447,3 +447,17 @@ type Termios struct {
|
||||||
Ispeed uint32
|
Ispeed uint32
|
||||||
Ospeed uint32
|
Ospeed uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
AT_FDCWD = -0x2
|
||||||
|
AT_REMOVEDIR = 0x80
|
||||||
|
AT_SYMLINK_FOLLOW = 0x40
|
||||||
|
AT_SYMLINK_NOFOLLOW = 0x20
|
||||||
|
)
|
||||||
|
|
|
@ -455,3 +455,17 @@ type Termios struct {
|
||||||
Ispeed uint64
|
Ispeed uint64
|
||||||
Ospeed uint64
|
Ospeed uint64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
AT_FDCWD = -0x2
|
||||||
|
AT_REMOVEDIR = 0x80
|
||||||
|
AT_SYMLINK_FOLLOW = 0x40
|
||||||
|
AT_SYMLINK_NOFOLLOW = 0x20
|
||||||
|
)
|
||||||
|
|
|
@ -441,3 +441,8 @@ type Termios struct {
|
||||||
Ispeed uint32
|
Ispeed uint32
|
||||||
Ospeed uint32
|
Ospeed uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
AT_FDCWD = 0xfffafdcd
|
||||||
|
AT_SYMLINK_NOFOLLOW = 0x1
|
||||||
|
)
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
// cgo -godefs types_freebsd.go | go run mkpost.go
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build 386,freebsd
|
// +build 386,freebsd
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
|
||||||
// cgo -godefs types_freebsd.go
|
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
@ -85,7 +86,7 @@ type Stat_t struct {
|
||||||
Ctimespec Timespec
|
Ctimespec Timespec
|
||||||
Size int64
|
Size int64
|
||||||
Blocks int64
|
Blocks int64
|
||||||
Blksize uint32
|
Blksize int32
|
||||||
Flags uint32
|
Flags uint32
|
||||||
Gen uint32
|
Gen uint32
|
||||||
Lspare int32
|
Lspare int32
|
||||||
|
@ -288,9 +289,9 @@ type FdSet struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
sizeofIfMsghdr = 0x64
|
sizeofIfMsghdr = 0xa8
|
||||||
SizeofIfMsghdr = 0x60
|
SizeofIfMsghdr = 0x60
|
||||||
sizeofIfData = 0x54
|
sizeofIfData = 0x98
|
||||||
SizeofIfData = 0x50
|
SizeofIfData = 0x50
|
||||||
SizeofIfaMsghdr = 0x14
|
SizeofIfaMsghdr = 0x14
|
||||||
SizeofIfmaMsghdr = 0x10
|
SizeofIfmaMsghdr = 0x10
|
||||||
|
@ -328,25 +329,25 @@ type ifData struct {
|
||||||
Hdrlen uint8
|
Hdrlen uint8
|
||||||
Link_state uint8
|
Link_state uint8
|
||||||
Vhid uint8
|
Vhid uint8
|
||||||
Baudrate_pf uint8
|
Datalen uint16
|
||||||
Datalen uint8
|
|
||||||
Mtu uint32
|
Mtu uint32
|
||||||
Metric uint32
|
Metric uint32
|
||||||
Baudrate uint32
|
Baudrate uint64
|
||||||
Ipackets uint32
|
Ipackets uint64
|
||||||
Ierrors uint32
|
Ierrors uint64
|
||||||
Opackets uint32
|
Opackets uint64
|
||||||
Oerrors uint32
|
Oerrors uint64
|
||||||
Collisions uint32
|
Collisions uint64
|
||||||
Ibytes uint32
|
Ibytes uint64
|
||||||
Obytes uint32
|
Obytes uint64
|
||||||
Imcasts uint32
|
Imcasts uint64
|
||||||
Omcasts uint32
|
Omcasts uint64
|
||||||
Iqdrops uint32
|
Iqdrops uint64
|
||||||
Noproto uint32
|
Oqdrops uint64
|
||||||
|
Noproto uint64
|
||||||
Hwassist uint64
|
Hwassist uint64
|
||||||
Epoch int32
|
X__ifi_epoch [8]byte
|
||||||
Lastchange Timeval
|
X__ifi_lastchange [16]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type IfData struct {
|
type IfData struct {
|
||||||
|
@ -500,3 +501,21 @@ type Termios struct {
|
||||||
Ispeed uint32
|
Ispeed uint32
|
||||||
Ospeed uint32
|
Ospeed uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
AT_FDCWD = -0x64
|
||||||
|
AT_REMOVEDIR = 0x800
|
||||||
|
AT_SYMLINK_FOLLOW = 0x400
|
||||||
|
AT_SYMLINK_NOFOLLOW = 0x200
|
||||||
|
)
|
||||||
|
|
||||||
|
type CapRights struct {
|
||||||
|
Rights [2]uint64
|
||||||
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
// cgo -godefs types_freebsd.go | go run mkpost.go
|
||||||
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build amd64,freebsd
|
// +build amd64,freebsd
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
|
||||||
// cgo -godefs types_freebsd.go
|
|
||||||
|
|
||||||
package unix
|
package unix
|
||||||
|
|
||||||
|
@ -85,7 +86,7 @@ type Stat_t struct {
|
||||||
Ctimespec Timespec
|
Ctimespec Timespec
|
||||||
Size int64
|
Size int64
|
||||||
Blocks int64
|
Blocks int64
|
||||||
Blksize uint32
|
Blksize int32
|
||||||
Flags uint32
|
Flags uint32
|
||||||
Gen uint32
|
Gen uint32
|
||||||
Lspare int32
|
Lspare int32
|
||||||
|
@ -330,10 +331,9 @@ type ifData struct {
|
||||||
Hdrlen uint8
|
Hdrlen uint8
|
||||||
Link_state uint8
|
Link_state uint8
|
||||||
Vhid uint8
|
Vhid uint8
|
||||||
Baudrate_pf uint8
|
Datalen uint16
|
||||||
Datalen uint8
|
Mtu uint32
|
||||||
Mtu uint64
|
Metric uint32
|
||||||
Metric uint64
|
|
||||||
Baudrate uint64
|
Baudrate uint64
|
||||||
Ipackets uint64
|
Ipackets uint64
|
||||||
Ierrors uint64
|
Ierrors uint64
|
||||||
|
@ -345,10 +345,11 @@ type ifData struct {
|
||||||
Imcasts uint64
|
Imcasts uint64
|
||||||
Omcasts uint64
|
Omcasts uint64
|
||||||
Iqdrops uint64
|
Iqdrops uint64
|
||||||
|
Oqdrops uint64
|
||||||
Noproto uint64
|
Noproto uint64
|
||||||
Hwassist uint64
|
Hwassist uint64
|
||||||
Epoch int64
|
X__ifi_epoch [8]byte
|
||||||
Lastchange Timeval
|
X__ifi_lastchange [16]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type IfData struct {
|
type IfData struct {
|
||||||
|
@ -503,3 +504,21 @@ type Termios struct {
|
||||||
Ispeed uint32
|
Ispeed uint32
|
||||||
Ospeed uint32
|
Ospeed uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
AT_FDCWD = -0x64
|
||||||
|
AT_REMOVEDIR = 0x800
|
||||||
|
AT_SYMLINK_FOLLOW = 0x400
|
||||||
|
AT_SYMLINK_NOFOLLOW = 0x200
|
||||||
|
)
|
||||||
|
|
||||||
|
type CapRights struct {
|
||||||
|
Rights [2]uint64
|
||||||
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// Created by cgo -godefs - DO NOT EDIT
|
// cgo -godefs -- -fsigned-char types_freebsd.go | go run mkpost.go
|
||||||
// cgo -godefs -- -fsigned-char types_freebsd.go
|
// Code generated by the command above; see README.md. DO NOT EDIT.
|
||||||
|
|
||||||
// +build arm,freebsd
|
// +build arm,freebsd
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ type Stat_t struct {
|
||||||
Ctimespec Timespec
|
Ctimespec Timespec
|
||||||
Size int64
|
Size int64
|
||||||
Blocks int64
|
Blocks int64
|
||||||
Blksize uint32
|
Blksize int32
|
||||||
Flags uint32
|
Flags uint32
|
||||||
Gen uint32
|
Gen uint32
|
||||||
Lspare int32
|
Lspare int32
|
||||||
|
@ -142,6 +142,15 @@ type Fsid struct {
|
||||||
Val [2]int32
|
Val [2]int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
FADV_NORMAL = 0x0
|
||||||
|
FADV_RANDOM = 0x1
|
||||||
|
FADV_SEQUENTIAL = 0x2
|
||||||
|
FADV_WILLNEED = 0x3
|
||||||
|
FADV_DONTNEED = 0x4
|
||||||
|
FADV_NOREUSE = 0x5
|
||||||
|
)
|
||||||
|
|
||||||
type RawSockaddrInet4 struct {
|
type RawSockaddrInet4 struct {
|
||||||
Len uint8
|
Len uint8
|
||||||
Family uint8
|
Family uint8
|
||||||
|
@ -282,9 +291,9 @@ type FdSet struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
sizeofIfMsghdr = 0x70
|
sizeofIfMsghdr = 0xa8
|
||||||
SizeofIfMsghdr = 0x70
|
SizeofIfMsghdr = 0x70
|
||||||
sizeofIfData = 0x60
|
sizeofIfData = 0x98
|
||||||
SizeofIfData = 0x60
|
SizeofIfData = 0x60
|
||||||
SizeofIfaMsghdr = 0x14
|
SizeofIfaMsghdr = 0x14
|
||||||
SizeofIfmaMsghdr = 0x10
|
SizeofIfmaMsghdr = 0x10
|
||||||
|
@ -322,25 +331,25 @@ type ifData struct {
|
||||||
Hdrlen uint8
|
Hdrlen uint8
|
||||||
Link_state uint8
|
Link_state uint8
|
||||||
Vhid uint8
|
Vhid uint8
|
||||||
Baudrate_pf uint8
|
Datalen uint16
|
||||||
Datalen uint8
|
|
||||||
Mtu uint32
|
Mtu uint32
|
||||||
Metric uint32
|
Metric uint32
|
||||||
Baudrate uint32
|
Baudrate uint64
|
||||||
Ipackets uint32
|
Ipackets uint64
|
||||||
Ierrors uint32
|
Ierrors uint64
|
||||||
Opackets uint32
|
Opackets uint64
|
||||||
Oerrors uint32
|
Oerrors uint64
|
||||||
Collisions uint32
|
Collisions uint64
|
||||||
Ibytes uint32
|
Ibytes uint64
|
||||||
Obytes uint32
|
Obytes uint64
|
||||||
Imcasts uint32
|
Imcasts uint64
|
||||||
Omcasts uint32
|
Omcasts uint64
|
||||||
Iqdrops uint32
|
Iqdrops uint64
|
||||||
Noproto uint32
|
Oqdrops uint64
|
||||||
|
Noproto uint64
|
||||||
Hwassist uint64
|
Hwassist uint64
|
||||||
Epoch int64
|
X__ifi_epoch [8]byte
|
||||||
Lastchange Timeval
|
X__ifi_lastchange [16]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
type IfData struct {
|
type IfData struct {
|
||||||
|
@ -495,3 +504,21 @@ type Termios struct {
|
||||||
Ispeed uint32
|
Ispeed uint32
|
||||||
Ospeed uint32
|
Ospeed uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
AT_FDCWD = -0x64
|
||||||
|
AT_REMOVEDIR = 0x800
|
||||||
|
AT_SYMLINK_FOLLOW = 0x400
|
||||||
|
AT_SYMLINK_NOFOLLOW = 0x200
|
||||||
|
)
|
||||||
|
|
||||||
|
type CapRights struct {
|
||||||
|
Rights [2]uint64
|
||||||
|
}
|
||||||
|
|
|
@ -285,6 +285,13 @@ type IPv6Mreq struct {
|
||||||
Interface uint32
|
Interface uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type PacketMreq struct {
|
||||||
|
Ifindex int32
|
||||||
|
Type uint16
|
||||||
|
Alen uint16
|
||||||
|
Address [8]uint8
|
||||||
|
}
|
||||||
|
|
||||||
type Msghdr struct {
|
type Msghdr struct {
|
||||||
Name *byte
|
Name *byte
|
||||||
Namelen uint32
|
Namelen uint32
|
||||||
|
@ -373,9 +380,11 @@ const (
|
||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
|
SizeofIovec = 0x8
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
SizeofIPMreqn = 0xc
|
SizeofIPMreqn = 0xc
|
||||||
SizeofIPv6Mreq = 0x14
|
SizeofIPv6Mreq = 0x14
|
||||||
|
SizeofPacketMreq = 0x10
|
||||||
SizeofMsghdr = 0x1c
|
SizeofMsghdr = 0x1c
|
||||||
SizeofCmsghdr = 0xc
|
SizeofCmsghdr = 0xc
|
||||||
SizeofInet4Pktinfo = 0xc
|
SizeofInet4Pktinfo = 0xc
|
||||||
|
@ -676,3 +685,10 @@ type Termios struct {
|
||||||
Ispeed uint32
|
Ispeed uint32
|
||||||
Ospeed uint32
|
Ospeed uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
|
@ -287,6 +287,13 @@ type IPv6Mreq struct {
|
||||||
Interface uint32
|
Interface uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type PacketMreq struct {
|
||||||
|
Ifindex int32
|
||||||
|
Type uint16
|
||||||
|
Alen uint16
|
||||||
|
Address [8]uint8
|
||||||
|
}
|
||||||
|
|
||||||
type Msghdr struct {
|
type Msghdr struct {
|
||||||
Name *byte
|
Name *byte
|
||||||
Namelen uint32
|
Namelen uint32
|
||||||
|
@ -377,9 +384,11 @@ const (
|
||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
|
SizeofIovec = 0x10
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
SizeofIPMreqn = 0xc
|
SizeofIPMreqn = 0xc
|
||||||
SizeofIPv6Mreq = 0x14
|
SizeofIPv6Mreq = 0x14
|
||||||
|
SizeofPacketMreq = 0x10
|
||||||
SizeofMsghdr = 0x38
|
SizeofMsghdr = 0x38
|
||||||
SizeofCmsghdr = 0x10
|
SizeofCmsghdr = 0x10
|
||||||
SizeofInet4Pktinfo = 0xc
|
SizeofInet4Pktinfo = 0xc
|
||||||
|
@ -694,3 +703,10 @@ type Termios struct {
|
||||||
Ispeed uint32
|
Ispeed uint32
|
||||||
Ospeed uint32
|
Ospeed uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
|
@ -289,6 +289,13 @@ type IPv6Mreq struct {
|
||||||
Interface uint32
|
Interface uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type PacketMreq struct {
|
||||||
|
Ifindex int32
|
||||||
|
Type uint16
|
||||||
|
Alen uint16
|
||||||
|
Address [8]uint8
|
||||||
|
}
|
||||||
|
|
||||||
type Msghdr struct {
|
type Msghdr struct {
|
||||||
Name *byte
|
Name *byte
|
||||||
Namelen uint32
|
Namelen uint32
|
||||||
|
@ -377,9 +384,11 @@ const (
|
||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
|
SizeofIovec = 0x8
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
SizeofIPMreqn = 0xc
|
SizeofIPMreqn = 0xc
|
||||||
SizeofIPv6Mreq = 0x14
|
SizeofIPv6Mreq = 0x14
|
||||||
|
SizeofPacketMreq = 0x10
|
||||||
SizeofMsghdr = 0x1c
|
SizeofMsghdr = 0x1c
|
||||||
SizeofCmsghdr = 0xc
|
SizeofCmsghdr = 0xc
|
||||||
SizeofInet4Pktinfo = 0xc
|
SizeofInet4Pktinfo = 0xc
|
||||||
|
@ -665,3 +674,10 @@ type Termios struct {
|
||||||
Ispeed uint32
|
Ispeed uint32
|
||||||
Ospeed uint32
|
Ospeed uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
|
@ -288,6 +288,13 @@ type IPv6Mreq struct {
|
||||||
Interface uint32
|
Interface uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type PacketMreq struct {
|
||||||
|
Ifindex int32
|
||||||
|
Type uint16
|
||||||
|
Alen uint16
|
||||||
|
Address [8]uint8
|
||||||
|
}
|
||||||
|
|
||||||
type Msghdr struct {
|
type Msghdr struct {
|
||||||
Name *byte
|
Name *byte
|
||||||
Namelen uint32
|
Namelen uint32
|
||||||
|
@ -378,9 +385,11 @@ const (
|
||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
|
SizeofIovec = 0x10
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
SizeofIPMreqn = 0xc
|
SizeofIPMreqn = 0xc
|
||||||
SizeofIPv6Mreq = 0x14
|
SizeofIPv6Mreq = 0x14
|
||||||
|
SizeofPacketMreq = 0x10
|
||||||
SizeofMsghdr = 0x38
|
SizeofMsghdr = 0x38
|
||||||
SizeofCmsghdr = 0x10
|
SizeofCmsghdr = 0x10
|
||||||
SizeofInet4Pktinfo = 0xc
|
SizeofInet4Pktinfo = 0xc
|
||||||
|
@ -673,3 +682,10 @@ type Termios struct {
|
||||||
Ispeed uint32
|
Ispeed uint32
|
||||||
Ospeed uint32
|
Ospeed uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
|
@ -288,6 +288,13 @@ type IPv6Mreq struct {
|
||||||
Interface uint32
|
Interface uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type PacketMreq struct {
|
||||||
|
Ifindex int32
|
||||||
|
Type uint16
|
||||||
|
Alen uint16
|
||||||
|
Address [8]uint8
|
||||||
|
}
|
||||||
|
|
||||||
type Msghdr struct {
|
type Msghdr struct {
|
||||||
Name *byte
|
Name *byte
|
||||||
Namelen uint32
|
Namelen uint32
|
||||||
|
@ -376,9 +383,11 @@ const (
|
||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
|
SizeofIovec = 0x8
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
SizeofIPMreqn = 0xc
|
SizeofIPMreqn = 0xc
|
||||||
SizeofIPv6Mreq = 0x14
|
SizeofIPv6Mreq = 0x14
|
||||||
|
SizeofPacketMreq = 0x10
|
||||||
SizeofMsghdr = 0x1c
|
SizeofMsghdr = 0x1c
|
||||||
SizeofCmsghdr = 0xc
|
SizeofCmsghdr = 0xc
|
||||||
SizeofInet4Pktinfo = 0xc
|
SizeofInet4Pktinfo = 0xc
|
||||||
|
@ -670,3 +679,10 @@ type Termios struct {
|
||||||
Ispeed uint32
|
Ispeed uint32
|
||||||
Ospeed uint32
|
Ospeed uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
|
@ -288,6 +288,13 @@ type IPv6Mreq struct {
|
||||||
Interface uint32
|
Interface uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type PacketMreq struct {
|
||||||
|
Ifindex int32
|
||||||
|
Type uint16
|
||||||
|
Alen uint16
|
||||||
|
Address [8]uint8
|
||||||
|
}
|
||||||
|
|
||||||
type Msghdr struct {
|
type Msghdr struct {
|
||||||
Name *byte
|
Name *byte
|
||||||
Namelen uint32
|
Namelen uint32
|
||||||
|
@ -378,9 +385,11 @@ const (
|
||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
|
SizeofIovec = 0x10
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
SizeofIPMreqn = 0xc
|
SizeofIPMreqn = 0xc
|
||||||
SizeofIPv6Mreq = 0x14
|
SizeofIPv6Mreq = 0x14
|
||||||
|
SizeofPacketMreq = 0x10
|
||||||
SizeofMsghdr = 0x38
|
SizeofMsghdr = 0x38
|
||||||
SizeofCmsghdr = 0x10
|
SizeofCmsghdr = 0x10
|
||||||
SizeofInet4Pktinfo = 0xc
|
SizeofInet4Pktinfo = 0xc
|
||||||
|
@ -675,3 +684,10 @@ type Termios struct {
|
||||||
Ispeed uint32
|
Ispeed uint32
|
||||||
Ospeed uint32
|
Ospeed uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
|
@ -288,6 +288,13 @@ type IPv6Mreq struct {
|
||||||
Interface uint32
|
Interface uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type PacketMreq struct {
|
||||||
|
Ifindex int32
|
||||||
|
Type uint16
|
||||||
|
Alen uint16
|
||||||
|
Address [8]uint8
|
||||||
|
}
|
||||||
|
|
||||||
type Msghdr struct {
|
type Msghdr struct {
|
||||||
Name *byte
|
Name *byte
|
||||||
Namelen uint32
|
Namelen uint32
|
||||||
|
@ -378,9 +385,11 @@ const (
|
||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
|
SizeofIovec = 0x10
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
SizeofIPMreqn = 0xc
|
SizeofIPMreqn = 0xc
|
||||||
SizeofIPv6Mreq = 0x14
|
SizeofIPv6Mreq = 0x14
|
||||||
|
SizeofPacketMreq = 0x10
|
||||||
SizeofMsghdr = 0x38
|
SizeofMsghdr = 0x38
|
||||||
SizeofCmsghdr = 0x10
|
SizeofCmsghdr = 0x10
|
||||||
SizeofInet4Pktinfo = 0xc
|
SizeofInet4Pktinfo = 0xc
|
||||||
|
@ -675,3 +684,10 @@ type Termios struct {
|
||||||
Ispeed uint32
|
Ispeed uint32
|
||||||
Ospeed uint32
|
Ospeed uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
|
@ -288,6 +288,13 @@ type IPv6Mreq struct {
|
||||||
Interface uint32
|
Interface uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type PacketMreq struct {
|
||||||
|
Ifindex int32
|
||||||
|
Type uint16
|
||||||
|
Alen uint16
|
||||||
|
Address [8]uint8
|
||||||
|
}
|
||||||
|
|
||||||
type Msghdr struct {
|
type Msghdr struct {
|
||||||
Name *byte
|
Name *byte
|
||||||
Namelen uint32
|
Namelen uint32
|
||||||
|
@ -376,9 +383,11 @@ const (
|
||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
|
SizeofIovec = 0x8
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
SizeofIPMreqn = 0xc
|
SizeofIPMreqn = 0xc
|
||||||
SizeofIPv6Mreq = 0x14
|
SizeofIPv6Mreq = 0x14
|
||||||
|
SizeofPacketMreq = 0x10
|
||||||
SizeofMsghdr = 0x1c
|
SizeofMsghdr = 0x1c
|
||||||
SizeofCmsghdr = 0xc
|
SizeofCmsghdr = 0xc
|
||||||
SizeofInet4Pktinfo = 0xc
|
SizeofInet4Pktinfo = 0xc
|
||||||
|
@ -670,3 +679,10 @@ type Termios struct {
|
||||||
Ispeed uint32
|
Ispeed uint32
|
||||||
Ospeed uint32
|
Ospeed uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
|
@ -289,6 +289,13 @@ type IPv6Mreq struct {
|
||||||
Interface uint32
|
Interface uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type PacketMreq struct {
|
||||||
|
Ifindex int32
|
||||||
|
Type uint16
|
||||||
|
Alen uint16
|
||||||
|
Address [8]uint8
|
||||||
|
}
|
||||||
|
|
||||||
type Msghdr struct {
|
type Msghdr struct {
|
||||||
Name *byte
|
Name *byte
|
||||||
Namelen uint32
|
Namelen uint32
|
||||||
|
@ -379,9 +386,11 @@ const (
|
||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
|
SizeofIovec = 0x10
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
SizeofIPMreqn = 0xc
|
SizeofIPMreqn = 0xc
|
||||||
SizeofIPv6Mreq = 0x14
|
SizeofIPv6Mreq = 0x14
|
||||||
|
SizeofPacketMreq = 0x10
|
||||||
SizeofMsghdr = 0x38
|
SizeofMsghdr = 0x38
|
||||||
SizeofCmsghdr = 0x10
|
SizeofCmsghdr = 0x10
|
||||||
SizeofInet4Pktinfo = 0xc
|
SizeofInet4Pktinfo = 0xc
|
||||||
|
@ -683,3 +692,10 @@ type Termios struct {
|
||||||
Ispeed uint32
|
Ispeed uint32
|
||||||
Ospeed uint32
|
Ospeed uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
|
@ -289,6 +289,13 @@ type IPv6Mreq struct {
|
||||||
Interface uint32
|
Interface uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type PacketMreq struct {
|
||||||
|
Ifindex int32
|
||||||
|
Type uint16
|
||||||
|
Alen uint16
|
||||||
|
Address [8]uint8
|
||||||
|
}
|
||||||
|
|
||||||
type Msghdr struct {
|
type Msghdr struct {
|
||||||
Name *byte
|
Name *byte
|
||||||
Namelen uint32
|
Namelen uint32
|
||||||
|
@ -379,9 +386,11 @@ const (
|
||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
|
SizeofIovec = 0x10
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
SizeofIPMreqn = 0xc
|
SizeofIPMreqn = 0xc
|
||||||
SizeofIPv6Mreq = 0x14
|
SizeofIPv6Mreq = 0x14
|
||||||
|
SizeofPacketMreq = 0x10
|
||||||
SizeofMsghdr = 0x38
|
SizeofMsghdr = 0x38
|
||||||
SizeofCmsghdr = 0x10
|
SizeofCmsghdr = 0x10
|
||||||
SizeofInet4Pktinfo = 0xc
|
SizeofInet4Pktinfo = 0xc
|
||||||
|
@ -683,3 +692,10 @@ type Termios struct {
|
||||||
Ispeed uint32
|
Ispeed uint32
|
||||||
Ospeed uint32
|
Ospeed uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
|
@ -288,6 +288,13 @@ type IPv6Mreq struct {
|
||||||
Interface uint32
|
Interface uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type PacketMreq struct {
|
||||||
|
Ifindex int32
|
||||||
|
Type uint16
|
||||||
|
Alen uint16
|
||||||
|
Address [8]uint8
|
||||||
|
}
|
||||||
|
|
||||||
type Msghdr struct {
|
type Msghdr struct {
|
||||||
Name *byte
|
Name *byte
|
||||||
Namelen uint32
|
Namelen uint32
|
||||||
|
@ -378,9 +385,11 @@ const (
|
||||||
SizeofSockaddrALG = 0x58
|
SizeofSockaddrALG = 0x58
|
||||||
SizeofSockaddrVM = 0x10
|
SizeofSockaddrVM = 0x10
|
||||||
SizeofLinger = 0x8
|
SizeofLinger = 0x8
|
||||||
|
SizeofIovec = 0x10
|
||||||
SizeofIPMreq = 0x8
|
SizeofIPMreq = 0x8
|
||||||
SizeofIPMreqn = 0xc
|
SizeofIPMreqn = 0xc
|
||||||
SizeofIPv6Mreq = 0x14
|
SizeofIPv6Mreq = 0x14
|
||||||
|
SizeofPacketMreq = 0x10
|
||||||
SizeofMsghdr = 0x38
|
SizeofMsghdr = 0x38
|
||||||
SizeofCmsghdr = 0x10
|
SizeofCmsghdr = 0x10
|
||||||
SizeofInet4Pktinfo = 0xc
|
SizeofInet4Pktinfo = 0xc
|
||||||
|
@ -700,3 +709,10 @@ type Termios struct {
|
||||||
Ispeed uint32
|
Ispeed uint32
|
||||||
Ospeed uint32
|
Ospeed uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Winsize struct {
|
||||||
|
Row uint16
|
||||||
|
Col uint16
|
||||||
|
Xpixel uint16
|
||||||
|
Ypixel uint16
|
||||||
|
}
|
||||||
|
|
|
@ -382,6 +382,11 @@ type Termios struct {
|
||||||
Ospeed int32
|
Ospeed int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
AT_FDCWD = -0x64
|
||||||
|
AT_SYMLINK_NOFOLLOW = 0x200
|
||||||
|
)
|
||||||
|
|
||||||
type Sysctlnode struct {
|
type Sysctlnode struct {
|
||||||
Flags uint32
|
Flags uint32
|
||||||
Num int32
|
Num int32
|
||||||
|
|
|
@ -389,6 +389,11 @@ type Termios struct {
|
||||||
Ospeed int32
|
Ospeed int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
AT_FDCWD = -0x64
|
||||||
|
AT_SYMLINK_NOFOLLOW = 0x200
|
||||||
|
)
|
||||||
|
|
||||||
type Sysctlnode struct {
|
type Sysctlnode struct {
|
||||||
Flags uint32
|
Flags uint32
|
||||||
Num int32
|
Num int32
|
||||||
|
|
|
@ -387,6 +387,11 @@ type Termios struct {
|
||||||
Ospeed int32
|
Ospeed int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
AT_FDCWD = -0x64
|
||||||
|
AT_SYMLINK_NOFOLLOW = 0x200
|
||||||
|
)
|
||||||
|
|
||||||
type Sysctlnode struct {
|
type Sysctlnode struct {
|
||||||
Flags uint32
|
Flags uint32
|
||||||
Num int32
|
Num int32
|
||||||
|
|
|
@ -439,3 +439,8 @@ type Termios struct {
|
||||||
Ispeed int32
|
Ispeed int32
|
||||||
Ospeed int32
|
Ospeed int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
AT_FDCWD = -0x64
|
||||||
|
AT_SYMLINK_NOFOLLOW = 0x2
|
||||||
|
)
|
||||||
|
|
|
@ -446,3 +446,8 @@ type Termios struct {
|
||||||
Ispeed int32
|
Ispeed int32
|
||||||
Ospeed int32
|
Ospeed int32
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
AT_FDCWD = -0x64
|
||||||
|
AT_SYMLINK_NOFOLLOW = 0x2
|
||||||
|
)
|
||||||
|
|
|
@ -0,0 +1,439 @@
|
||||||
|
// Created by cgo -godefs - DO NOT EDIT
|
||||||
|
// cgo -godefs types_openbsd.go
|
||||||
|
|
||||||
|
// +build arm,openbsd
|
||||||
|
|
||||||
|
package unix
|
||||||
|
|
||||||
|
const (
|
||||||
|
sizeofPtr = 0x4
|
||||||
|
sizeofShort = 0x2
|
||||||
|
sizeofInt = 0x4
|
||||||
|
sizeofLong = 0x4
|
||||||
|
sizeofLongLong = 0x8
|
||||||
|
)
|
||||||
|
|
||||||
|
type (
|
||||||
|
_C_short int16
|
||||||
|
_C_int int32
|
||||||
|
_C_long int32
|
||||||
|
_C_long_long int64
|
||||||
|
)
|
||||||
|
|
||||||
|
type Timespec struct {
|
||||||
|
Sec int64
|
||||||
|
Nsec int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Timeval struct {
|
||||||
|
Sec int64
|
||||||
|
Usec int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Rusage struct {
|
||||||
|
Utime Timeval
|
||||||
|
Stime Timeval
|
||||||
|
Maxrss int32
|
||||||
|
Ixrss int32
|
||||||
|
Idrss int32
|
||||||
|
Isrss int32
|
||||||
|
Minflt int32
|
||||||
|
Majflt int32
|
||||||
|
Nswap int32
|
||||||
|
Inblock int32
|
||||||
|
Oublock int32
|
||||||
|
Msgsnd int32
|
||||||
|
Msgrcv int32
|
||||||
|
Nsignals int32
|
||||||
|
Nvcsw int32
|
||||||
|
Nivcsw int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Rlimit struct {
|
||||||
|
Cur uint64
|
||||||
|
Max uint64
|
||||||
|
}
|
||||||
|
|
||||||
|
type _Gid_t uint32
|
||||||
|
|
||||||
|
const (
|
||||||
|
S_IFMT = 0xf000
|
||||||
|
S_IFIFO = 0x1000
|
||||||
|
S_IFCHR = 0x2000
|
||||||
|
S_IFDIR = 0x4000
|
||||||
|
S_IFBLK = 0x6000
|
||||||
|
S_IFREG = 0x8000
|
||||||
|
S_IFLNK = 0xa000
|
||||||
|
S_IFSOCK = 0xc000
|
||||||
|
S_ISUID = 0x800
|
||||||
|
S_ISGID = 0x400
|
||||||
|
S_ISVTX = 0x200
|
||||||
|
S_IRUSR = 0x100
|
||||||
|
S_IWUSR = 0x80
|
||||||
|
S_IXUSR = 0x40
|
||||||
|
)
|
||||||
|
|
||||||
|
type Stat_t struct {
|
||||||
|
Mode uint32
|
||||||
|
Dev int32
|
||||||
|
Ino uint64
|
||||||
|
Nlink uint32
|
||||||
|
Uid uint32
|
||||||
|
Gid uint32
|
||||||
|
Rdev int32
|
||||||
|
Atim Timespec
|
||||||
|
Mtim Timespec
|
||||||
|
Ctim Timespec
|
||||||
|
Size int64
|
||||||
|
Blocks int64
|
||||||
|
Blksize int32
|
||||||
|
Flags uint32
|
||||||
|
Gen uint32
|
||||||
|
X__st_birthtim Timespec
|
||||||
|
}
|
||||||
|
|
||||||
|
type Statfs_t struct {
|
||||||
|
F_flags uint32
|
||||||
|
F_bsize uint32
|
||||||
|
F_iosize uint32
|
||||||
|
F_blocks uint64
|
||||||
|
F_bfree uint64
|
||||||
|
F_bavail int64
|
||||||
|
F_files uint64
|
||||||
|
F_ffree uint64
|
||||||
|
F_favail int64
|
||||||
|
F_syncwrites uint64
|
||||||
|
F_syncreads uint64
|
||||||
|
F_asyncwrites uint64
|
||||||
|
F_asyncreads uint64
|
||||||
|
F_fsid Fsid
|
||||||
|
F_namemax uint32
|
||||||
|
F_owner uint32
|
||||||
|
F_ctime uint64
|
||||||
|
F_fstypename [16]uint8
|
||||||
|
F_mntonname [90]uint8
|
||||||
|
F_mntfromname [90]uint8
|
||||||
|
F_mntfromspec [90]uint8
|
||||||
|
Pad_cgo_0 [2]byte
|
||||||
|
Mount_info [160]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
type Flock_t struct {
|
||||||
|
Start int64
|
||||||
|
Len int64
|
||||||
|
Pid int32
|
||||||
|
Type int16
|
||||||
|
Whence int16
|
||||||
|
}
|
||||||
|
|
||||||
|
type Dirent struct {
|
||||||
|
Fileno uint64
|
||||||
|
Off int64
|
||||||
|
Reclen uint16
|
||||||
|
Type uint8
|
||||||
|
Namlen uint8
|
||||||
|
X__d_padding [4]uint8
|
||||||
|
Name [256]uint8
|
||||||
|
}
|
||||||
|
|
||||||
|
type Fsid struct {
|
||||||
|
Val [2]int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type RawSockaddrInet4 struct {
|
||||||
|
Len uint8
|
||||||
|
Family uint8
|
||||||
|
Port uint16
|
||||||
|
Addr [4]byte /* in_addr */
|
||||||
|
Zero [8]int8
|
||||||
|
}
|
||||||
|
|
||||||
|
type RawSockaddrInet6 struct {
|
||||||
|
Len uint8
|
||||||
|
Family uint8
|
||||||
|
Port uint16
|
||||||
|
Flowinfo uint32
|
||||||
|
Addr [16]byte /* in6_addr */
|
||||||
|
Scope_id uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type RawSockaddrUnix struct {
|
||||||
|
Len uint8
|
||||||
|
Family uint8
|
||||||
|
Path [104]int8
|
||||||
|
}
|
||||||
|
|
||||||
|
type RawSockaddrDatalink struct {
|
||||||
|
Len uint8
|
||||||
|
Family uint8
|
||||||
|
Index uint16
|
||||||
|
Type uint8
|
||||||
|
Nlen uint8
|
||||||
|
Alen uint8
|
||||||
|
Slen uint8
|
||||||
|
Data [24]int8
|
||||||
|
}
|
||||||
|
|
||||||
|
type RawSockaddr struct {
|
||||||
|
Len uint8
|
||||||
|
Family uint8
|
||||||
|
Data [14]int8
|
||||||
|
}
|
||||||
|
|
||||||
|
type RawSockaddrAny struct {
|
||||||
|
Addr RawSockaddr
|
||||||
|
Pad [92]int8
|
||||||
|
}
|
||||||
|
|
||||||
|
type _Socklen uint32
|
||||||
|
|
||||||
|
type Linger struct {
|
||||||
|
Onoff int32
|
||||||
|
Linger int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Iovec struct {
|
||||||
|
Base *byte
|
||||||
|
Len uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type IPMreq struct {
|
||||||
|
Multiaddr [4]byte /* in_addr */
|
||||||
|
Interface [4]byte /* in_addr */
|
||||||
|
}
|
||||||
|
|
||||||
|
type IPv6Mreq struct {
|
||||||
|
Multiaddr [16]byte /* in6_addr */
|
||||||
|
Interface uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Msghdr struct {
|
||||||
|
Name *byte
|
||||||
|
Namelen uint32
|
||||||
|
Iov *Iovec
|
||||||
|
Iovlen uint32
|
||||||
|
Control *byte
|
||||||
|
Controllen uint32
|
||||||
|
Flags int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Cmsghdr struct {
|
||||||
|
Len uint32
|
||||||
|
Level int32
|
||||||
|
Type int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Inet6Pktinfo struct {
|
||||||
|
Addr [16]byte /* in6_addr */
|
||||||
|
Ifindex uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type IPv6MTUInfo struct {
|
||||||
|
Addr RawSockaddrInet6
|
||||||
|
Mtu uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type ICMPv6Filter struct {
|
||||||
|
Filt [8]uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
SizeofSockaddrInet4 = 0x10
|
||||||
|
SizeofSockaddrInet6 = 0x1c
|
||||||
|
SizeofSockaddrAny = 0x6c
|
||||||
|
SizeofSockaddrUnix = 0x6a
|
||||||
|
SizeofSockaddrDatalink = 0x20
|
||||||
|
SizeofLinger = 0x8
|
||||||
|
SizeofIPMreq = 0x8
|
||||||
|
SizeofIPv6Mreq = 0x14
|
||||||
|
SizeofMsghdr = 0x1c
|
||||||
|
SizeofCmsghdr = 0xc
|
||||||
|
SizeofInet6Pktinfo = 0x14
|
||||||
|
SizeofIPv6MTUInfo = 0x20
|
||||||
|
SizeofICMPv6Filter = 0x20
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
PTRACE_TRACEME = 0x0
|
||||||
|
PTRACE_CONT = 0x7
|
||||||
|
PTRACE_KILL = 0x8
|
||||||
|
)
|
||||||
|
|
||||||
|
type Kevent_t struct {
|
||||||
|
Ident uint32
|
||||||
|
Filter int16
|
||||||
|
Flags uint16
|
||||||
|
Fflags uint32
|
||||||
|
Data int64
|
||||||
|
Udata *byte
|
||||||
|
}
|
||||||
|
|
||||||
|
type FdSet struct {
|
||||||
|
Bits [32]uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
SizeofIfMsghdr = 0x98
|
||||||
|
SizeofIfData = 0x80
|
||||||
|
SizeofIfaMsghdr = 0x18
|
||||||
|
SizeofIfAnnounceMsghdr = 0x1a
|
||||||
|
SizeofRtMsghdr = 0x60
|
||||||
|
SizeofRtMetrics = 0x38
|
||||||
|
)
|
||||||
|
|
||||||
|
type IfMsghdr struct {
|
||||||
|
Msglen uint16
|
||||||
|
Version uint8
|
||||||
|
Type uint8
|
||||||
|
Hdrlen uint16
|
||||||
|
Index uint16
|
||||||
|
Tableid uint16
|
||||||
|
Pad1 uint8
|
||||||
|
Pad2 uint8
|
||||||
|
Addrs int32
|
||||||
|
Flags int32
|
||||||
|
Xflags int32
|
||||||
|
Data IfData
|
||||||
|
}
|
||||||
|
|
||||||
|
type IfData struct {
|
||||||
|
Type uint8
|
||||||
|
Addrlen uint8
|
||||||
|
Hdrlen uint8
|
||||||
|
Link_state uint8
|
||||||
|
Mtu uint32
|
||||||
|
Metric uint32
|
||||||
|
Pad uint32
|
||||||
|
Baudrate uint64
|
||||||
|
Ipackets uint64
|
||||||
|
Ierrors uint64
|
||||||
|
Opackets uint64
|
||||||
|
Oerrors uint64
|
||||||
|
Collisions uint64
|
||||||
|
Ibytes uint64
|
||||||
|
Obytes uint64
|
||||||
|
Imcasts uint64
|
||||||
|
Omcasts uint64
|
||||||
|
Iqdrops uint64
|
||||||
|
Noproto uint64
|
||||||
|
Capabilities uint32
|
||||||
|
Lastchange Timeval
|
||||||
|
}
|
||||||
|
|
||||||
|
type IfaMsghdr struct {
|
||||||
|
Msglen uint16
|
||||||
|
Version uint8
|
||||||
|
Type uint8
|
||||||
|
Hdrlen uint16
|
||||||
|
Index uint16
|
||||||
|
Tableid uint16
|
||||||
|
Pad1 uint8
|
||||||
|
Pad2 uint8
|
||||||
|
Addrs int32
|
||||||
|
Flags int32
|
||||||
|
Metric int32
|
||||||
|
}
|
||||||
|
|
||||||
|
type IfAnnounceMsghdr struct {
|
||||||
|
Msglen uint16
|
||||||
|
Version uint8
|
||||||
|
Type uint8
|
||||||
|
Hdrlen uint16
|
||||||
|
Index uint16
|
||||||
|
What uint16
|
||||||
|
Name [16]uint8
|
||||||
|
}
|
||||||
|
|
||||||
|
type RtMsghdr struct {
|
||||||
|
Msglen uint16
|
||||||
|
Version uint8
|
||||||
|
Type uint8
|
||||||
|
Hdrlen uint16
|
||||||
|
Index uint16
|
||||||
|
Tableid uint16
|
||||||
|
Priority uint8
|
||||||
|
Mpls uint8
|
||||||
|
Addrs int32
|
||||||
|
Flags int32
|
||||||
|
Fmask int32
|
||||||
|
Pid int32
|
||||||
|
Seq int32
|
||||||
|
Errno int32
|
||||||
|
Inits uint32
|
||||||
|
Rmx RtMetrics
|
||||||
|
}
|
||||||
|
|
||||||
|
type RtMetrics struct {
|
||||||
|
Pksent uint64
|
||||||
|
Expire int64
|
||||||
|
Locks uint32
|
||||||
|
Mtu uint32
|
||||||
|
Refcnt uint32
|
||||||
|
Hopcount uint32
|
||||||
|
Recvpipe uint32
|
||||||
|
Sendpipe uint32
|
||||||
|
Ssthresh uint32
|
||||||
|
Rtt uint32
|
||||||
|
Rttvar uint32
|
||||||
|
Pad uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Mclpool struct{}
|
||||||
|
|
||||||
|
const (
|
||||||
|
SizeofBpfVersion = 0x4
|
||||||
|
SizeofBpfStat = 0x8
|
||||||
|
SizeofBpfProgram = 0x8
|
||||||
|
SizeofBpfInsn = 0x8
|
||||||
|
SizeofBpfHdr = 0x14
|
||||||
|
)
|
||||||
|
|
||||||
|
type BpfVersion struct {
|
||||||
|
Major uint16
|
||||||
|
Minor uint16
|
||||||
|
}
|
||||||
|
|
||||||
|
type BpfStat struct {
|
||||||
|
Recv uint32
|
||||||
|
Drop uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type BpfProgram struct {
|
||||||
|
Len uint32
|
||||||
|
Insns *BpfInsn
|
||||||
|
}
|
||||||
|
|
||||||
|
type BpfInsn struct {
|
||||||
|
Code uint16
|
||||||
|
Jt uint8
|
||||||
|
Jf uint8
|
||||||
|
K uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type BpfHdr struct {
|
||||||
|
Tstamp BpfTimeval
|
||||||
|
Caplen uint32
|
||||||
|
Datalen uint32
|
||||||
|
Hdrlen uint16
|
||||||
|
Pad_cgo_0 [2]byte
|
||||||
|
}
|
||||||
|
|
||||||
|
type BpfTimeval struct {
|
||||||
|
Sec uint32
|
||||||
|
Usec uint32
|
||||||
|
}
|
||||||
|
|
||||||
|
type Termios struct {
|
||||||
|
Iflag uint32
|
||||||
|
Oflag uint32
|
||||||
|
Cflag uint32
|
||||||
|
Lflag uint32
|
||||||
|
Cc [20]uint8
|
||||||
|
Ispeed int32
|
||||||
|
Ospeed int32
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
AT_FDCWD = -0x64
|
||||||
|
AT_SYMLINK_NOFOLLOW = 0x2
|
||||||
|
)
|
|
@ -176,6 +176,8 @@ func NewCallbackCDecl(fn interface{}) uintptr
|
||||||
//sys RegQueryValueEx(key Handle, name *uint16, reserved *uint32, valtype *uint32, buf *byte, buflen *uint32) (regerrno error) = advapi32.RegQueryValueExW
|
//sys RegQueryValueEx(key Handle, name *uint16, reserved *uint32, valtype *uint32, buf *byte, buflen *uint32) (regerrno error) = advapi32.RegQueryValueExW
|
||||||
//sys getCurrentProcessId() (pid uint32) = kernel32.GetCurrentProcessId
|
//sys getCurrentProcessId() (pid uint32) = kernel32.GetCurrentProcessId
|
||||||
//sys GetConsoleMode(console Handle, mode *uint32) (err error) = kernel32.GetConsoleMode
|
//sys GetConsoleMode(console Handle, mode *uint32) (err error) = kernel32.GetConsoleMode
|
||||||
|
//sys SetConsoleMode(console Handle, mode uint32) (err error) = kernel32.SetConsoleMode
|
||||||
|
//sys GetConsoleScreenBufferInfo(console Handle, info *ConsoleScreenBufferInfo) (err error) = kernel32.GetConsoleScreenBufferInfo
|
||||||
//sys WriteConsole(console Handle, buf *uint16, towrite uint32, written *uint32, reserved *byte) (err error) = kernel32.WriteConsoleW
|
//sys WriteConsole(console Handle, buf *uint16, towrite uint32, written *uint32, reserved *byte) (err error) = kernel32.WriteConsoleW
|
||||||
//sys ReadConsole(console Handle, buf *uint16, toread uint32, read *uint32, inputControl *byte) (err error) = kernel32.ReadConsoleW
|
//sys ReadConsole(console Handle, buf *uint16, toread uint32, read *uint32, inputControl *byte) (err error) = kernel32.ReadConsoleW
|
||||||
//sys CreateToolhelp32Snapshot(flags uint32, processId uint32) (handle Handle, err error) [failretval==InvalidHandle] = kernel32.CreateToolhelp32Snapshot
|
//sys CreateToolhelp32Snapshot(flags uint32, processId uint32) (handle Handle, err error) [failretval==InvalidHandle] = kernel32.CreateToolhelp32Snapshot
|
||||||
|
@ -186,8 +188,12 @@ func NewCallbackCDecl(fn interface{}) uintptr
|
||||||
//sys CreateSymbolicLink(symlinkfilename *uint16, targetfilename *uint16, flags uint32) (err error) [failretval&0xff==0] = CreateSymbolicLinkW
|
//sys CreateSymbolicLink(symlinkfilename *uint16, targetfilename *uint16, flags uint32) (err error) [failretval&0xff==0] = CreateSymbolicLinkW
|
||||||
//sys CreateHardLink(filename *uint16, existingfilename *uint16, reserved uintptr) (err error) [failretval&0xff==0] = CreateHardLinkW
|
//sys CreateHardLink(filename *uint16, existingfilename *uint16, reserved uintptr) (err error) [failretval&0xff==0] = CreateHardLinkW
|
||||||
//sys GetCurrentThreadId() (id uint32)
|
//sys GetCurrentThreadId() (id uint32)
|
||||||
//sys CreateEvent(eventAttrs *syscall.SecurityAttributes, manualReset uint32, initialState uint32, name *uint16) (handle Handle, err error) = kernel32.CreateEventW
|
//sys CreateEvent(eventAttrs *SecurityAttributes, manualReset uint32, initialState uint32, name *uint16) (handle Handle, err error) = kernel32.CreateEventW
|
||||||
|
//sys CreateEventEx(eventAttrs *SecurityAttributes, name *uint16, flags uint32, desiredAccess uint32) (handle Handle, err error) = kernel32.CreateEventExW
|
||||||
|
//sys OpenEvent(desiredAccess uint32, inheritHandle bool, name *uint16) (handle Handle, err error) = kernel32.OpenEventW
|
||||||
//sys SetEvent(event Handle) (err error) = kernel32.SetEvent
|
//sys SetEvent(event Handle) (err error) = kernel32.SetEvent
|
||||||
|
//sys ResetEvent(event Handle) (err error) = kernel32.ResetEvent
|
||||||
|
//sys PulseEvent(event Handle) (err error) = kernel32.PulseEvent
|
||||||
|
|
||||||
// syscall interface implementation for other packages
|
// syscall interface implementation for other packages
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue