mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-29 21:43:55 +00:00
update pkg to newest
This commit is contained in:
parent
085a80ad39
commit
0992bd4115
2
Gopkg.lock
generated
2
Gopkg.lock
generated
@ -82,7 +82,7 @@
|
||||
"unix",
|
||||
"windows"
|
||||
]
|
||||
revision = "ac767d655b305d4e9612f5f6e33120b9176c4ad4"
|
||||
revision = "bd9dbc187b6e1dacfdd2722a87e83093c2d7bd6e"
|
||||
|
||||
[solve-meta]
|
||||
analyzer-name = "dep"
|
||||
|
@ -1,3 +1,3 @@
|
||||
# Docs
|
||||
|
||||
Documents are not necessarily updated synchronously, please see examples and godoc.
|
||||
Documents are not necessarily updated synchronously, slower than godoc, please see examples and godoc.
|
30
vendor/golang.org/x/sys/unix/ioctl.go
generated
vendored
Normal file
30
vendor/golang.org/x/sys/unix/ioctl.go
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
// Copyright 2018 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||
|
||||
package unix
|
||||
|
||||
import "runtime"
|
||||
|
||||
// IoctlSetWinsize performs an ioctl on fd with a *Winsize argument.
|
||||
//
|
||||
// To change fd's window size, the req argument should be TIOCSWINSZ.
|
||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) error {
|
||||
// TODO: if we get the chance, remove the req parameter and
|
||||
// hardcode TIOCSWINSZ.
|
||||
err := ioctlSetWinsize(fd, req, value)
|
||||
runtime.KeepAlive(value)
|
||||
return err
|
||||
}
|
||||
|
||||
// IoctlSetTermios performs an ioctl on fd with a *Termios.
|
||||
//
|
||||
// The req value will usually be TCSETA or TIOCSETA.
|
||||
func IoctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
// TODO: if we get the chance, remove the req parameter.
|
||||
err := ioctlSetTermios(fd, req, value)
|
||||
runtime.KeepAlive(value)
|
||||
return err
|
||||
}
|
4
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_darwin.go
generated
vendored
@ -313,11 +313,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) 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 {
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_dragonfly.go
generated
vendored
@ -143,11 +143,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) 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 {
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_freebsd.go
generated
vendored
@ -364,11 +364,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) 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 {
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
|
70
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
70
vendor/golang.org/x/sys/unix/syscall_linux.go
generated
vendored
@ -61,11 +61,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) 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 {
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
@ -1415,10 +1415,70 @@ func Vmsplice(fd int, iovs []Iovec, flags int) (int, error) {
|
||||
func Faccessat(dirfd int, path string, mode uint32, flags int) (err error) {
|
||||
if flags & ^(AT_SYMLINK_NOFOLLOW|AT_EACCESS) != 0 {
|
||||
return EINVAL
|
||||
} else if flags&(AT_SYMLINK_NOFOLLOW|AT_EACCESS) != 0 {
|
||||
return EOPNOTSUPP
|
||||
}
|
||||
return faccessat(dirfd, path, mode)
|
||||
|
||||
// The Linux kernel faccessat system call does not take any flags.
|
||||
// The glibc faccessat implements the flags itself; see
|
||||
// https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/faccessat.c;hb=HEAD
|
||||
// Because people naturally expect syscall.Faccessat to act
|
||||
// like C faccessat, we do the same.
|
||||
|
||||
if flags == 0 {
|
||||
return faccessat(dirfd, path, mode)
|
||||
}
|
||||
|
||||
var st Stat_t
|
||||
if err := Fstatat(dirfd, path, &st, flags&AT_SYMLINK_NOFOLLOW); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
mode &= 7
|
||||
if mode == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
var uid int
|
||||
if flags&AT_EACCESS != 0 {
|
||||
uid = Geteuid()
|
||||
} else {
|
||||
uid = Getuid()
|
||||
}
|
||||
|
||||
if uid == 0 {
|
||||
if mode&1 == 0 {
|
||||
// Root can read and write any file.
|
||||
return nil
|
||||
}
|
||||
if st.Mode&0111 != 0 {
|
||||
// Root can execute any file that anybody can execute.
|
||||
return nil
|
||||
}
|
||||
return EACCES
|
||||
}
|
||||
|
||||
var fmode uint32
|
||||
if uint32(uid) == st.Uid {
|
||||
fmode = (st.Mode >> 6) & 7
|
||||
} else {
|
||||
var gid int
|
||||
if flags&AT_EACCESS != 0 {
|
||||
gid = Getegid()
|
||||
} else {
|
||||
gid = Getgid()
|
||||
}
|
||||
|
||||
if uint32(gid) == st.Gid {
|
||||
fmode = (st.Mode >> 3) & 7
|
||||
} else {
|
||||
fmode = st.Mode & 7
|
||||
}
|
||||
}
|
||||
|
||||
if fmode&mode == mode {
|
||||
return nil
|
||||
}
|
||||
|
||||
return EACCES
|
||||
}
|
||||
|
||||
/*
|
||||
|
7
vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
generated
vendored
7
vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
generated
vendored
@ -124,14 +124,13 @@ func Pipe2(p []int, flags int) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
//sysnb pipe() (p1 int, p2 int, err error)
|
||||
|
||||
func Pipe(p []int) (err error) {
|
||||
if len(p) != 2 {
|
||||
return EINVAL
|
||||
}
|
||||
var pp [2]_C_int
|
||||
err = pipe2(&pp, 0)
|
||||
p[0] = int(pp[0])
|
||||
p[1] = int(pp[1])
|
||||
p[0], p[1], err = pipe()
|
||||
return
|
||||
}
|
||||
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_netbsd.go
generated
vendored
@ -145,11 +145,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) 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 {
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_openbsd.go
generated
vendored
@ -113,11 +113,11 @@ func IoctlSetInt(fd int, req uint, value int) error {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) 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 {
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) error {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
|
4
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
4
vendor/golang.org/x/sys/unix/syscall_solaris.go
generated
vendored
@ -540,11 +540,11 @@ func IoctlSetInt(fd int, req uint, value int) (err error) {
|
||||
return ioctl(fd, req, uintptr(value))
|
||||
}
|
||||
|
||||
func IoctlSetWinsize(fd int, req uint, value *Winsize) (err error) {
|
||||
func ioctlSetWinsize(fd int, req uint, value *Winsize) (err error) {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
func IoctlSetTermios(fd int, req uint, value *Termios) (err error) {
|
||||
func ioctlSetTermios(fd int, req uint, value *Termios) (err error) {
|
||||
return ioctl(fd, req, uintptr(unsafe.Pointer(value)))
|
||||
}
|
||||
|
||||
|
12
vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
generated
vendored
12
vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
generated
vendored
@ -2137,6 +2137,18 @@ func pipe2(p *[2]_C_int, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func pipe() (p1 int, p2 int, err error) {
|
||||
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
|
||||
p1 = int(r0)
|
||||
p2 = int(r1)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) {
|
||||
r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset))
|
||||
xaddr = uintptr(r0)
|
||||
|
12
vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
generated
vendored
12
vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
generated
vendored
@ -2137,6 +2137,18 @@ func pipe2(p *[2]_C_int, flags int) (err error) {
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func pipe() (p1 int, p2 int, err error) {
|
||||
r0, r1, e1 := RawSyscall(SYS_PIPE, 0, 0, 0)
|
||||
p1 = int(r0)
|
||||
p2 = int(r1)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func mmap2(addr uintptr, length uintptr, prot int, flags int, fd int, pageOffset uintptr) (xaddr uintptr, err error) {
|
||||
r0, _, e1 := Syscall6(SYS_MMAP2, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flags), uintptr(fd), uintptr(pageOffset))
|
||||
xaddr = uintptr(r0)
|
||||
|
22
vendor/golang.org/x/sys/unix/ztypes_linux_386.go
generated
vendored
22
vendor/golang.org/x/sys/unix/ztypes_linux_386.go
generated
vendored
@ -1852,3 +1852,25 @@ type RTCPLLInfo struct {
|
||||
Negmult int32
|
||||
Clock int32
|
||||
}
|
||||
|
||||
type BlkpgIoctlArg struct {
|
||||
Op int32
|
||||
Flags int32
|
||||
Datalen int32
|
||||
Data *byte
|
||||
}
|
||||
|
||||
type BlkpgPartition struct {
|
||||
Start int64
|
||||
Length int64
|
||||
Pno int32
|
||||
Devname [64]uint8
|
||||
Volname [64]uint8
|
||||
}
|
||||
|
||||
const (
|
||||
BLKPG = 0x1269
|
||||
BLKPG_ADD_PARTITION = 0x1
|
||||
BLKPG_DEL_PARTITION = 0x2
|
||||
BLKPG_RESIZE_PARTITION = 0x3
|
||||
)
|
||||
|
24
vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
generated
vendored
24
vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
generated
vendored
@ -1872,3 +1872,27 @@ type RTCPLLInfo struct {
|
||||
Negmult int32
|
||||
Clock int64
|
||||
}
|
||||
|
||||
type BlkpgIoctlArg struct {
|
||||
Op int32
|
||||
Flags int32
|
||||
Datalen int32
|
||||
_ [4]byte
|
||||
Data *byte
|
||||
}
|
||||
|
||||
type BlkpgPartition struct {
|
||||
Start int64
|
||||
Length int64
|
||||
Pno int32
|
||||
Devname [64]uint8
|
||||
Volname [64]uint8
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
const (
|
||||
BLKPG = 0x1269
|
||||
BLKPG_ADD_PARTITION = 0x1
|
||||
BLKPG_DEL_PARTITION = 0x2
|
||||
BLKPG_RESIZE_PARTITION = 0x3
|
||||
)
|
||||
|
23
vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
generated
vendored
23
vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
generated
vendored
@ -1841,3 +1841,26 @@ type RTCPLLInfo struct {
|
||||
Negmult int32
|
||||
Clock int32
|
||||
}
|
||||
|
||||
type BlkpgIoctlArg struct {
|
||||
Op int32
|
||||
Flags int32
|
||||
Datalen int32
|
||||
Data *byte
|
||||
}
|
||||
|
||||
type BlkpgPartition struct {
|
||||
Start int64
|
||||
Length int64
|
||||
Pno int32
|
||||
Devname [64]uint8
|
||||
Volname [64]uint8
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
const (
|
||||
BLKPG = 0x1269
|
||||
BLKPG_ADD_PARTITION = 0x1
|
||||
BLKPG_DEL_PARTITION = 0x2
|
||||
BLKPG_RESIZE_PARTITION = 0x3
|
||||
)
|
||||
|
24
vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
generated
vendored
24
vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
generated
vendored
@ -1851,3 +1851,27 @@ type RTCPLLInfo struct {
|
||||
Negmult int32
|
||||
Clock int64
|
||||
}
|
||||
|
||||
type BlkpgIoctlArg struct {
|
||||
Op int32
|
||||
Flags int32
|
||||
Datalen int32
|
||||
_ [4]byte
|
||||
Data *byte
|
||||
}
|
||||
|
||||
type BlkpgPartition struct {
|
||||
Start int64
|
||||
Length int64
|
||||
Pno int32
|
||||
Devname [64]uint8
|
||||
Volname [64]uint8
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
const (
|
||||
BLKPG = 0x1269
|
||||
BLKPG_ADD_PARTITION = 0x1
|
||||
BLKPG_DEL_PARTITION = 0x2
|
||||
BLKPG_RESIZE_PARTITION = 0x3
|
||||
)
|
||||
|
23
vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
generated
vendored
23
vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
generated
vendored
@ -1846,3 +1846,26 @@ type RTCPLLInfo struct {
|
||||
Negmult int32
|
||||
Clock int32
|
||||
}
|
||||
|
||||
type BlkpgIoctlArg struct {
|
||||
Op int32
|
||||
Flags int32
|
||||
Datalen int32
|
||||
Data *byte
|
||||
}
|
||||
|
||||
type BlkpgPartition struct {
|
||||
Start int64
|
||||
Length int64
|
||||
Pno int32
|
||||
Devname [64]uint8
|
||||
Volname [64]uint8
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
const (
|
||||
BLKPG = 0x20001269
|
||||
BLKPG_ADD_PARTITION = 0x1
|
||||
BLKPG_DEL_PARTITION = 0x2
|
||||
BLKPG_RESIZE_PARTITION = 0x3
|
||||
)
|
||||
|
24
vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
generated
vendored
24
vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
generated
vendored
@ -1853,3 +1853,27 @@ type RTCPLLInfo struct {
|
||||
Negmult int32
|
||||
Clock int64
|
||||
}
|
||||
|
||||
type BlkpgIoctlArg struct {
|
||||
Op int32
|
||||
Flags int32
|
||||
Datalen int32
|
||||
_ [4]byte
|
||||
Data *byte
|
||||
}
|
||||
|
||||
type BlkpgPartition struct {
|
||||
Start int64
|
||||
Length int64
|
||||
Pno int32
|
||||
Devname [64]uint8
|
||||
Volname [64]uint8
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
const (
|
||||
BLKPG = 0x20001269
|
||||
BLKPG_ADD_PARTITION = 0x1
|
||||
BLKPG_DEL_PARTITION = 0x2
|
||||
BLKPG_RESIZE_PARTITION = 0x3
|
||||
)
|
||||
|
24
vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
generated
vendored
24
vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
generated
vendored
@ -1853,3 +1853,27 @@ type RTCPLLInfo struct {
|
||||
Negmult int32
|
||||
Clock int64
|
||||
}
|
||||
|
||||
type BlkpgIoctlArg struct {
|
||||
Op int32
|
||||
Flags int32
|
||||
Datalen int32
|
||||
_ [4]byte
|
||||
Data *byte
|
||||
}
|
||||
|
||||
type BlkpgPartition struct {
|
||||
Start int64
|
||||
Length int64
|
||||
Pno int32
|
||||
Devname [64]uint8
|
||||
Volname [64]uint8
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
const (
|
||||
BLKPG = 0x20001269
|
||||
BLKPG_ADD_PARTITION = 0x1
|
||||
BLKPG_DEL_PARTITION = 0x2
|
||||
BLKPG_RESIZE_PARTITION = 0x3
|
||||
)
|
||||
|
23
vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
generated
vendored
23
vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
generated
vendored
@ -1846,3 +1846,26 @@ type RTCPLLInfo struct {
|
||||
Negmult int32
|
||||
Clock int32
|
||||
}
|
||||
|
||||
type BlkpgIoctlArg struct {
|
||||
Op int32
|
||||
Flags int32
|
||||
Datalen int32
|
||||
Data *byte
|
||||
}
|
||||
|
||||
type BlkpgPartition struct {
|
||||
Start int64
|
||||
Length int64
|
||||
Pno int32
|
||||
Devname [64]uint8
|
||||
Volname [64]uint8
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
const (
|
||||
BLKPG = 0x20001269
|
||||
BLKPG_ADD_PARTITION = 0x1
|
||||
BLKPG_DEL_PARTITION = 0x2
|
||||
BLKPG_RESIZE_PARTITION = 0x3
|
||||
)
|
||||
|
24
vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
generated
vendored
24
vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
generated
vendored
@ -1861,3 +1861,27 @@ type RTCPLLInfo struct {
|
||||
Negmult int32
|
||||
Clock int64
|
||||
}
|
||||
|
||||
type BlkpgIoctlArg struct {
|
||||
Op int32
|
||||
Flags int32
|
||||
Datalen int32
|
||||
_ [4]byte
|
||||
Data *byte
|
||||
}
|
||||
|
||||
type BlkpgPartition struct {
|
||||
Start int64
|
||||
Length int64
|
||||
Pno int32
|
||||
Devname [64]uint8
|
||||
Volname [64]uint8
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
const (
|
||||
BLKPG = 0x20001269
|
||||
BLKPG_ADD_PARTITION = 0x1
|
||||
BLKPG_DEL_PARTITION = 0x2
|
||||
BLKPG_RESIZE_PARTITION = 0x3
|
||||
)
|
||||
|
24
vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
generated
vendored
24
vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
generated
vendored
@ -1861,3 +1861,27 @@ type RTCPLLInfo struct {
|
||||
Negmult int32
|
||||
Clock int64
|
||||
}
|
||||
|
||||
type BlkpgIoctlArg struct {
|
||||
Op int32
|
||||
Flags int32
|
||||
Datalen int32
|
||||
_ [4]byte
|
||||
Data *byte
|
||||
}
|
||||
|
||||
type BlkpgPartition struct {
|
||||
Start int64
|
||||
Length int64
|
||||
Pno int32
|
||||
Devname [64]uint8
|
||||
Volname [64]uint8
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
const (
|
||||
BLKPG = 0x20001269
|
||||
BLKPG_ADD_PARTITION = 0x1
|
||||
BLKPG_DEL_PARTITION = 0x2
|
||||
BLKPG_RESIZE_PARTITION = 0x3
|
||||
)
|
||||
|
24
vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
generated
vendored
24
vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
generated
vendored
@ -1878,3 +1878,27 @@ type RTCPLLInfo struct {
|
||||
Negmult int32
|
||||
Clock int64
|
||||
}
|
||||
|
||||
type BlkpgIoctlArg struct {
|
||||
Op int32
|
||||
Flags int32
|
||||
Datalen int32
|
||||
_ [4]byte
|
||||
Data *byte
|
||||
}
|
||||
|
||||
type BlkpgPartition struct {
|
||||
Start int64
|
||||
Length int64
|
||||
Pno int32
|
||||
Devname [64]uint8
|
||||
Volname [64]uint8
|
||||
_ [4]byte
|
||||
}
|
||||
|
||||
const (
|
||||
BLKPG = 0x1269
|
||||
BLKPG_ADD_PARTITION = 0x1
|
||||
BLKPG_DEL_PARTITION = 0x2
|
||||
BLKPG_RESIZE_PARTITION = 0x3
|
||||
)
|
||||
|
2
vendor/golang.org/x/sys/windows/syscall_windows.go
generated
vendored
2
vendor/golang.org/x/sys/windows/syscall_windows.go
generated
vendored
@ -112,12 +112,14 @@ func Getpagesize() int { return 4096 }
|
||||
|
||||
// NewCallback converts a Go function to a function pointer conforming to the stdcall calling convention.
|
||||
// This is useful when interoperating with Windows code requiring callbacks.
|
||||
// The argument is expected to be a function with with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
|
||||
func NewCallback(fn interface{}) uintptr {
|
||||
return syscall.NewCallback(fn)
|
||||
}
|
||||
|
||||
// NewCallbackCDecl converts a Go function to a function pointer conforming to the cdecl calling convention.
|
||||
// This is useful when interoperating with Windows code requiring callbacks.
|
||||
// The argument is expected to be a function with with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
|
||||
func NewCallbackCDecl(fn interface{}) uintptr {
|
||||
return syscall.NewCallbackCDecl(fn)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user