Changeset 69 in code for trunk/vendor/golang.org/x/sys
- Timestamp:
- Sep 13, 2023, 10:49:50 AM (21 months ago)
- Location:
- trunk/vendor/golang.org/x/sys
- Files:
-
- 20 added
- 10 deleted
- 119 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/vendor/golang.org/x/sys/unix/ioctl_linux.go
r67 r69 5 5 package unix 6 6 7 import ( 8 "unsafe" 9 ) 7 import "unsafe" 10 8 11 9 // IoctlRetInt performs an ioctl operation specified by req on a device … … 218 216 return ioctlPtr(fd, SIOCKCMUNATTACH, unsafe.Pointer(&info)) 219 217 } 218 219 // IoctlLoopGetStatus64 gets the status of the loop device associated with the 220 // file descriptor fd using the LOOP_GET_STATUS64 operation. 221 func IoctlLoopGetStatus64(fd int) (*LoopInfo64, error) { 222 var value LoopInfo64 223 if err := ioctlPtr(fd, LOOP_GET_STATUS64, unsafe.Pointer(&value)); err != nil { 224 return nil, err 225 } 226 return &value, nil 227 } 228 229 // IoctlLoopSetStatus64 sets the status of the loop device associated with the 230 // file descriptor fd using the LOOP_SET_STATUS64 operation. 231 func IoctlLoopSetStatus64(fd int, value *LoopInfo64) error { 232 return ioctlPtr(fd, LOOP_SET_STATUS64, unsafe.Pointer(value)) 233 } -
trunk/vendor/golang.org/x/sys/unix/mkall.sh
r67 r69 74 74 mkerrors="$mkerrors -m64" 75 75 mktypes="GOARCH=$GOARCH go tool cgo -godefs" 76 mkasm="go run mkasm _darwin.go"76 mkasm="go run mkasm.go" 77 77 ;; 78 78 darwin_arm64) 79 79 mkerrors="$mkerrors -m64" 80 80 mktypes="GOARCH=$GOARCH go tool cgo -godefs" 81 mkasm="go run mkasm _darwin.go"81 mkasm="go run mkasm.go" 82 82 ;; 83 83 dragonfly_amd64) … … 143 143 ;; 144 144 openbsd_386) 145 mkasm="go run mkasm.go" 145 146 mkerrors="$mkerrors -m32" 146 mksyscall="go run mksyscall.go -l32 -openbsd" 147 mksyscall="go run mksyscall.go -l32 -openbsd -libc" 148 mksysctl="go run mksysctl_openbsd.go" 149 mktypes="GOARCH=$GOARCH go tool cgo -godefs" 150 ;; 151 openbsd_amd64) 152 mkasm="go run mkasm.go" 153 mkerrors="$mkerrors -m64" 154 mksyscall="go run mksyscall.go -openbsd -libc" 155 mksysctl="go run mksysctl_openbsd.go" 156 mktypes="GOARCH=$GOARCH go tool cgo -godefs" 157 ;; 158 openbsd_arm) 159 mkasm="go run mkasm.go" 160 mkerrors="$mkerrors" 161 mksyscall="go run mksyscall.go -l32 -openbsd -arm -libc" 162 mksysctl="go run mksysctl_openbsd.go" 163 # Let the type of C char be signed for making the bare syscall 164 # API consistent across platforms. 165 mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" 166 ;; 167 openbsd_arm64) 168 mkasm="go run mkasm.go" 169 mkerrors="$mkerrors -m64" 170 mksyscall="go run mksyscall.go -openbsd -libc" 171 mksysctl="go run mksysctl_openbsd.go" 172 # Let the type of C char be signed for making the bare syscall 173 # API consistent across platforms. 174 mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" 175 ;; 176 openbsd_mips64) 177 mkerrors="$mkerrors -m64" 178 mksyscall="go run mksyscall.go -openbsd" 147 179 mksysctl="go run mksysctl_openbsd.go" 148 180 mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'" 149 mktypes="GOARCH=$GOARCH go tool cgo -godefs" 150 ;; 151 openbsd_amd64) 152 mkerrors="$mkerrors -m64" 153 mksyscall="go run mksyscall.go -openbsd" 154 mksysctl="go run mksysctl_openbsd.go" 155 mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'" 156 mktypes="GOARCH=$GOARCH go tool cgo -godefs" 157 ;; 158 openbsd_arm) 159 mkerrors="$mkerrors" 160 mksyscall="go run mksyscall.go -l32 -openbsd -arm" 161 mksysctl="go run mksysctl_openbsd.go" 162 mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'" 163 # Let the type of C char be signed for making the bare syscall 164 # API consistent across platforms. 165 mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" 166 ;; 167 openbsd_arm64) 168 mkerrors="$mkerrors -m64" 169 mksyscall="go run mksyscall.go -openbsd" 170 mksysctl="go run mksysctl_openbsd.go" 171 mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'" 172 # Let the type of C char be signed for making the bare syscall 173 # API consistent across platforms. 174 mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" 175 ;; 176 openbsd_mips64) 177 mkerrors="$mkerrors -m64" 178 mksyscall="go run mksyscall.go -openbsd" 179 mksysctl="go run mksysctl_openbsd.go" 180 mksysnum="go run mksysnum.go 'https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master'" 181 # Let the type of C char be signed for making the bare syscall 182 # API consistent across platforms. 183 mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" 184 ;; 185 openbsd_ppc64) 186 mkasm="go run mkasm.go" 187 mkerrors="$mkerrors -m64" 188 mksyscall="go run mksyscall.go -openbsd -libc" 189 mksysctl="go run mksysctl_openbsd.go" 190 # Let the type of C char be signed for making the bare syscall 191 # API consistent across platforms. 192 mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" 193 ;; 194 openbsd_riscv64) 195 mkasm="go run mkasm.go" 196 mkerrors="$mkerrors -m64" 197 mksyscall="go run mksyscall.go -openbsd -libc" 198 mksysctl="go run mksysctl_openbsd.go" 181 199 # Let the type of C char be signed for making the bare syscall 182 200 # API consistent across platforms. … … 215 233 # aix/ppc64 script generates files instead of writing to stdin. 216 234 echo "$mksyscall -tags $GOOS,$GOARCH $syscall_goos $GOOSARCH_in && gofmt -w zsyscall_$GOOSARCH.go && gofmt -w zsyscall_"$GOOSARCH"_gccgo.go && gofmt -w zsyscall_"$GOOSARCH"_gc.go " ; 217 elif [ "$GOOS" == "darwin" ]; then218 # 1.12 and later, syscalls via libSystem219 echo "$mksyscall -tags $GOOS,$GOARCH,go1.12 $syscall_goos $GOOSARCH_in |gofmt >zsyscall_$GOOSARCH.go";220 # 1.13 and later, syscalls via libSystem (including syscallPtr)221 echo "$mksyscall -tags $GOOS,$GOARCH,go1.13 syscall_darwin.1_13.go |gofmt >zsyscall_$GOOSARCH.1_13.go";222 235 elif [ "$GOOS" == "illumos" ]; then 223 236 # illumos code generation requires a --illumos switch … … 233 246 if [ -n "$mksysnum" ]; then echo "$mksysnum |gofmt >zsysnum_$GOOSARCH.go"; fi 234 247 if [ -n "$mktypes" ]; then echo "$mktypes types_$GOOS.go | go run mkpost.go > ztypes_$GOOSARCH.go"; fi 235 if [ -n "$mkasm" ]; then echo "$mkasm $GO ARCH"; fi248 if [ -n "$mkasm" ]; then echo "$mkasm $GOOS $GOARCH"; fi 236 249 ) | $run -
trunk/vendor/golang.org/x/sys/unix/mkerrors.sh
r67 r69 296 296 #ifndef SOL_NETLINK 297 297 #define SOL_NETLINK 270 298 #endif 299 300 #ifndef SOL_SMC 301 #define SOL_SMC 286 298 302 #endif 299 303 … … 639 643 echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags | 640 644 awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' | 641 egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' |645 grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' | 642 646 sort 643 647 ) … … 649 653 echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags | 650 654 awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' | 651 egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' |655 grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' | 652 656 sort >_signal.grep 653 657 -
trunk/vendor/golang.org/x/sys/unix/syscall.go
r67 r69 30 30 "strings" 31 31 "unsafe" 32 33 "golang.org/x/sys/internal/unsafeheader"34 32 ) 35 33 … … 83 81 } 84 82 85 var s []byte 86 h := (*unsafeheader.Slice)(unsafe.Pointer(&s)) 87 h.Data = unsafe.Pointer(p) 88 h.Len = n 89 h.Cap = n 90 91 return string(s) 83 return string(unsafe.Slice(p, n)) 92 84 } 93 85 -
trunk/vendor/golang.org/x/sys/unix/syscall_aix.go
r67 r69 219 219 220 220 func recvmsgRaw(fd int, iov []Iovec, oob []byte, flags int, rsa *RawSockaddrAny) (n, oobn int, recvflags int, err error) { 221 // Recvmsg not implemented on AIX 222 return -1, -1, -1, ENOSYS 221 var msg Msghdr 222 msg.Name = (*byte)(unsafe.Pointer(rsa)) 223 msg.Namelen = uint32(SizeofSockaddrAny) 224 var dummy byte 225 if len(oob) > 0 { 226 // receive at least one normal byte 227 if emptyIovecs(iov) { 228 var iova [1]Iovec 229 iova[0].Base = &dummy 230 iova[0].SetLen(1) 231 iov = iova[:] 232 } 233 msg.Control = (*byte)(unsafe.Pointer(&oob[0])) 234 msg.SetControllen(len(oob)) 235 } 236 if len(iov) > 0 { 237 msg.Iov = &iov[0] 238 msg.SetIovlen(len(iov)) 239 } 240 if n, err = recvmsg(fd, &msg, flags); n == -1 { 241 return 242 } 243 oobn = int(msg.Controllen) 244 recvflags = int(msg.Flags) 245 return 223 246 } 224 247 225 248 func sendmsgN(fd int, iov []Iovec, oob []byte, ptr unsafe.Pointer, salen _Socklen, flags int) (n int, err error) { 226 // SendmsgN not implemented on AIX 227 return -1, ENOSYS 249 var msg Msghdr 250 msg.Name = (*byte)(unsafe.Pointer(ptr)) 251 msg.Namelen = uint32(salen) 252 var dummy byte 253 var empty bool 254 if len(oob) > 0 { 255 // send at least one normal byte 256 empty = emptyIovecs(iov) 257 if empty { 258 var iova [1]Iovec 259 iova[0].Base = &dummy 260 iova[0].SetLen(1) 261 iov = iova[:] 262 } 263 msg.Control = (*byte)(unsafe.Pointer(&oob[0])) 264 msg.SetControllen(len(oob)) 265 } 266 if len(iov) > 0 { 267 msg.Iov = &iov[0] 268 msg.SetIovlen(len(iov)) 269 } 270 if n, err = sendmsg(fd, &msg, flags); err != nil { 271 return 0, err 272 } 273 if len(oob) > 0 && empty { 274 n = 0 275 } 276 return n, nil 228 277 } 229 278 -
trunk/vendor/golang.org/x/sys/unix/syscall_bsd.go
r67 r69 364 364 if len(oob) > 0 { 365 365 // send at least one normal byte 366 empty := emptyIovecs(iov)366 empty = emptyIovecs(iov) 367 367 if empty { 368 368 var iova [1]Iovec -
trunk/vendor/golang.org/x/sys/unix/syscall_darwin.go
r67 r69 19 19 "unsafe" 20 20 ) 21 22 //sys closedir(dir uintptr) (err error) 23 //sys readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) 24 25 func fdopendir(fd int) (dir uintptr, err error) { 26 r0, _, e1 := syscall_syscallPtr(libc_fdopendir_trampoline_addr, uintptr(fd), 0, 0) 27 dir = uintptr(r0) 28 if e1 != 0 { 29 err = errnoErr(e1) 30 } 31 return 32 } 33 34 var libc_fdopendir_trampoline_addr uintptr 35 36 //go:cgo_import_dynamic libc_fdopendir fdopendir "/usr/lib/libSystem.B.dylib" 37 38 func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) { 39 // Simulate Getdirentries using fdopendir/readdir_r/closedir. 40 // We store the number of entries to skip in the seek 41 // offset of fd. See issue #31368. 42 // It's not the full required semantics, but should handle the case 43 // of calling Getdirentries or ReadDirent repeatedly. 44 // It won't handle assigning the results of lseek to *basep, or handle 45 // the directory being edited underfoot. 46 skip, err := Seek(fd, 0, 1 /* SEEK_CUR */) 47 if err != nil { 48 return 0, err 49 } 50 51 // We need to duplicate the incoming file descriptor 52 // because the caller expects to retain control of it, but 53 // fdopendir expects to take control of its argument. 54 // Just Dup'ing the file descriptor is not enough, as the 55 // result shares underlying state. Use Openat to make a really 56 // new file descriptor referring to the same directory. 57 fd2, err := Openat(fd, ".", O_RDONLY, 0) 58 if err != nil { 59 return 0, err 60 } 61 d, err := fdopendir(fd2) 62 if err != nil { 63 Close(fd2) 64 return 0, err 65 } 66 defer closedir(d) 67 68 var cnt int64 69 for { 70 var entry Dirent 71 var entryp *Dirent 72 e := readdir_r(d, &entry, &entryp) 73 if e != 0 { 74 return n, errnoErr(e) 75 } 76 if entryp == nil { 77 break 78 } 79 if skip > 0 { 80 skip-- 81 cnt++ 82 continue 83 } 84 85 reclen := int(entry.Reclen) 86 if reclen > len(buf) { 87 // Not enough room. Return for now. 88 // The counter will let us know where we should start up again. 89 // Note: this strategy for suspending in the middle and 90 // restarting is O(n^2) in the length of the directory. Oh well. 91 break 92 } 93 94 // Copy entry into return buffer. 95 s := unsafe.Slice((*byte)(unsafe.Pointer(&entry)), reclen) 96 copy(buf, s) 97 98 buf = buf[reclen:] 99 n += reclen 100 cnt++ 101 } 102 // Set the seek offset of the input fd to record 103 // how many files we've already returned. 104 _, err = Seek(fd, cnt, 0 /* SEEK_SET */) 105 if err != nil { 106 return n, err 107 } 108 109 return n, nil 110 } 21 111 22 112 // SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets. -
trunk/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go
r67 r69 62 62 63 63 func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) { 64 ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint32(countin)}64 ioDesc := PtraceIoDesc{Op: int32(req), Offs: uintptr(unsafe.Pointer(addr)), Addr: uintptr(unsafe.Pointer(&out[0])), Len: uint32(countin)} 65 65 err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0) 66 66 return int(ioDesc.Len), err -
trunk/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go
r67 r69 62 62 63 63 func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) { 64 ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)}64 ioDesc := PtraceIoDesc{Op: int32(req), Offs: uintptr(unsafe.Pointer(addr)), Addr: uintptr(unsafe.Pointer(&out[0])), Len: uint64(countin)} 65 65 err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0) 66 66 return int(ioDesc.Len), err -
trunk/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go
r67 r69 58 58 59 59 func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) { 60 ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint32(countin)}60 ioDesc := PtraceIoDesc{Op: int32(req), Offs: uintptr(unsafe.Pointer(addr)), Addr: uintptr(unsafe.Pointer(&out[0])), Len: uint32(countin)} 61 61 err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0) 62 62 return int(ioDesc.Len), err -
trunk/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go
r67 r69 58 58 59 59 func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) { 60 ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)}60 ioDesc := PtraceIoDesc{Op: int32(req), Offs: uintptr(unsafe.Pointer(addr)), Addr: uintptr(unsafe.Pointer(&out[0])), Len: uint64(countin)} 61 61 err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0) 62 62 return int(ioDesc.Len), err -
trunk/vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go
r67 r69 58 58 59 59 func PtraceIO(req int, pid int, addr uintptr, out []byte, countin int) (count int, err error) { 60 ioDesc := PtraceIoDesc{Op: int32(req), Offs: (*byte)(unsafe.Pointer(addr)), Addr: (*byte)(unsafe.Pointer(&out[0])), Len: uint64(countin)}60 ioDesc := PtraceIoDesc{Op: int32(req), Offs: uintptr(unsafe.Pointer(addr)), Addr: uintptr(unsafe.Pointer(&out[0])), Len: uint64(countin)} 61 61 err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0) 62 62 return int(ioDesc.Len), err -
trunk/vendor/golang.org/x/sys/unix/syscall_illumos.go
r67 r69 11 11 12 12 import ( 13 "fmt"14 "runtime"15 13 "unsafe" 16 14 ) … … 80 78 return 81 79 } 82 83 //sys putmsg(fd int, clptr *strbuf, dataptr *strbuf, flags int) (err error)84 85 func Putmsg(fd int, cl []byte, data []byte, flags int) (err error) {86 var clp, datap *strbuf87 if len(cl) > 0 {88 clp = &strbuf{89 Len: int32(len(cl)),90 Buf: (*int8)(unsafe.Pointer(&cl[0])),91 }92 }93 if len(data) > 0 {94 datap = &strbuf{95 Len: int32(len(data)),96 Buf: (*int8)(unsafe.Pointer(&data[0])),97 }98 }99 return putmsg(fd, clp, datap, flags)100 }101 102 //sys getmsg(fd int, clptr *strbuf, dataptr *strbuf, flags *int) (err error)103 104 func Getmsg(fd int, cl []byte, data []byte) (retCl []byte, retData []byte, flags int, err error) {105 var clp, datap *strbuf106 if len(cl) > 0 {107 clp = &strbuf{108 Maxlen: int32(len(cl)),109 Buf: (*int8)(unsafe.Pointer(&cl[0])),110 }111 }112 if len(data) > 0 {113 datap = &strbuf{114 Maxlen: int32(len(data)),115 Buf: (*int8)(unsafe.Pointer(&data[0])),116 }117 }118 119 if err = getmsg(fd, clp, datap, &flags); err != nil {120 return nil, nil, 0, err121 }122 123 if len(cl) > 0 {124 retCl = cl[:clp.Len]125 }126 if len(data) > 0 {127 retData = data[:datap.Len]128 }129 return retCl, retData, flags, nil130 }131 132 func IoctlSetIntRetInt(fd int, req uint, arg int) (int, error) {133 return ioctlRet(fd, req, uintptr(arg))134 }135 136 func IoctlSetString(fd int, req uint, val string) error {137 bs := make([]byte, len(val)+1)138 copy(bs[:len(bs)-1], val)139 err := ioctl(fd, req, uintptr(unsafe.Pointer(&bs[0])))140 runtime.KeepAlive(&bs[0])141 return err142 }143 144 // Lifreq Helpers145 146 func (l *Lifreq) SetName(name string) error {147 if len(name) >= len(l.Name) {148 return fmt.Errorf("name cannot be more than %d characters", len(l.Name)-1)149 }150 for i := range name {151 l.Name[i] = int8(name[i])152 }153 return nil154 }155 156 func (l *Lifreq) SetLifruInt(d int) {157 *(*int)(unsafe.Pointer(&l.Lifru[0])) = d158 }159 160 func (l *Lifreq) GetLifruInt() int {161 return *(*int)(unsafe.Pointer(&l.Lifru[0]))162 }163 164 func (l *Lifreq) SetLifruUint(d uint) {165 *(*uint)(unsafe.Pointer(&l.Lifru[0])) = d166 }167 168 func (l *Lifreq) GetLifruUint() uint {169 return *(*uint)(unsafe.Pointer(&l.Lifru[0]))170 }171 172 func IoctlLifreq(fd int, req uint, l *Lifreq) error {173 return ioctl(fd, req, uintptr(unsafe.Pointer(l)))174 }175 176 // Strioctl Helpers177 178 func (s *Strioctl) SetInt(i int) {179 s.Len = int32(unsafe.Sizeof(i))180 s.Dp = (*int8)(unsafe.Pointer(&i))181 }182 183 func IoctlSetStrioctlRetInt(fd int, req uint, s *Strioctl) (int, error) {184 return ioctlRet(fd, req, uintptr(unsafe.Pointer(s)))185 } -
trunk/vendor/golang.org/x/sys/unix/syscall_linux.go
r67 r69 14 14 import ( 15 15 "encoding/binary" 16 "strconv" 16 17 "syscall" 17 18 "time" … … 234 235 // Believe it or not, this is the best we can do on Linux 235 236 // (and is what glibc does). 236 return Utimes("/proc/self/fd/"+ itoa(fd), tv)237 return Utimes("/proc/self/fd/"+strconv.Itoa(fd), tv) 237 238 } 238 239 … … 1542 1543 var empty bool 1543 1544 if len(oob) > 0 { 1544 empty := emptyIovecs(iov)1545 empty = emptyIovecs(iov) 1545 1546 if empty { 1546 1547 var sockType int … … 1892 1893 } 1893 1894 1894 // issue 1435.1895 // On linux Setuid and Setgid only affects the current thread, not the process.1896 // This does not match what most callers expect so we must return an error1897 // here rather than letting the caller think that the call succeeded.1898 1899 1895 func Setuid(uid int) (err error) { 1900 return EOPNOTSUPP 1901 } 1902 1903 func Setgid(uid int) (err error) { 1904 return EOPNOTSUPP 1896 return syscall.Setuid(uid) 1897 } 1898 1899 func Setgid(gid int) (err error) { 1900 return syscall.Setgid(gid) 1901 } 1902 1903 func Setreuid(ruid, euid int) (err error) { 1904 return syscall.Setreuid(ruid, euid) 1905 } 1906 1907 func Setregid(rgid, egid int) (err error) { 1908 return syscall.Setregid(rgid, egid) 1909 } 1910 1911 func Setresuid(ruid, euid, suid int) (err error) { 1912 return syscall.Setresuid(ruid, euid, suid) 1913 } 1914 1915 func Setresgid(rgid, egid, sgid int) (err error) { 1916 return syscall.Setresgid(rgid, egid, sgid) 1905 1917 } 1906 1918 … … 2241 2253 return nil 2242 2254 } 2243 return (*[1 << 30]byte)(unsafe.Pointer(uintptr(unsafe.Pointer(&fh.fileHandle.Type)) + 4))[:n:n]2255 return unsafe.Slice((*byte)(unsafe.Pointer(uintptr(unsafe.Pointer(&fh.fileHandle.Type))+4)), n) 2244 2256 } 2245 2257 … … 2355 2367 2356 2368 return prev, nil 2369 } 2370 2371 //sysnb rtSigprocmask(how int, set *Sigset_t, oldset *Sigset_t, sigsetsize uintptr) (err error) = SYS_RT_SIGPROCMASK 2372 2373 func PthreadSigmask(how int, set, oldset *Sigset_t) error { 2374 if oldset != nil { 2375 // Explicitly clear in case Sigset_t is larger than _C__NSIG. 2376 *oldset = Sigset_t{} 2377 } 2378 return rtSigprocmask(how, set, oldset, _C__NSIG/8) 2357 2379 } 2358 2380 … … 2415 2437 // RtSigaction 2416 2438 // RtSigpending 2417 // RtSigprocmask2418 2439 // RtSigqueueinfo 2419 2440 // RtSigreturn -
trunk/vendor/golang.org/x/sys/unix/syscall_linux_386.go
r67 r69 42 42 //sys setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32 43 43 //sys setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32 44 //sysnb Setregid(rgid int, egid int) (err error) = SYS_SETREGID3245 //sysnb Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID3246 //sysnb Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID3247 //sysnb Setreuid(ruid int, euid int) (err error) = SYS_SETREUID3248 44 //sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) 49 45 //sys Stat(path string, stat *Stat_t) (err error) = SYS_STAT64 -
trunk/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go
r67 r69 47 47 //sys setfsgid(gid int) (prev int, err error) 48 48 //sys setfsuid(uid int) (prev int, err error) 49 //sysnb Setregid(rgid int, egid int) (err error)50 //sysnb Setresgid(rgid int, egid int, sgid int) (err error)51 //sysnb Setresuid(ruid int, euid int, suid int) (err error)52 49 //sysnb Setrlimit(resource int, rlim *Rlimit) (err error) 53 //sysnb Setreuid(ruid int, euid int) (err error)54 50 //sys Shutdown(fd int, how int) (err error) 55 51 //sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) -
trunk/vendor/golang.org/x/sys/unix/syscall_linux_arm.go
r67 r69 63 63 //sys setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32 64 64 //sys setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32 65 //sysnb Setregid(rgid int, egid int) (err error) = SYS_SETREGID3266 //sysnb Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID3267 //sysnb Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID3268 //sysnb Setreuid(ruid int, euid int) (err error) = SYS_SETREUID3269 65 //sys Shutdown(fd int, how int) (err error) 70 66 //sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) -
trunk/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go
r67 r69 40 40 //sys setfsgid(gid int) (prev int, err error) 41 41 //sys setfsuid(uid int) (prev int, err error) 42 //sysnb Setregid(rgid int, egid int) (err error)43 //sysnb Setresgid(rgid int, egid int, sgid int) (err error)44 //sysnb Setresuid(ruid int, euid int, suid int) (err error)45 42 //sysnb setrlimit(resource int, rlim *Rlimit) (err error) 46 //sysnb Setreuid(ruid int, euid int) (err error)47 43 //sys Shutdown(fd int, how int) (err error) 48 44 //sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) -
trunk/vendor/golang.org/x/sys/unix/syscall_linux_loong64.go
r67 r69 35 35 //sys setfsgid(gid int) (prev int, err error) 36 36 //sys setfsuid(uid int) (prev int, err error) 37 //sysnb Setregid(rgid int, egid int) (err error)38 //sysnb Setresgid(rgid int, egid int, sgid int) (err error)39 //sysnb Setresuid(ruid int, euid int, suid int) (err error)40 //sysnb Setreuid(ruid int, euid int) (err error)41 37 //sys Shutdown(fd int, how int) (err error) 42 38 //sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) -
trunk/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go
r67 r69 38 38 //sys setfsgid(gid int) (prev int, err error) 39 39 //sys setfsuid(uid int) (prev int, err error) 40 //sysnb Setregid(rgid int, egid int) (err error)41 //sysnb Setresgid(rgid int, egid int, sgid int) (err error)42 //sysnb Setresuid(ruid int, euid int, suid int) (err error)43 40 //sysnb Setrlimit(resource int, rlim *Rlimit) (err error) 44 //sysnb Setreuid(ruid int, euid int) (err error)45 41 //sys Shutdown(fd int, how int) (err error) 46 42 //sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) -
trunk/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go
r67 r69 33 33 //sys setfsgid(gid int) (prev int, err error) 34 34 //sys setfsuid(uid int) (prev int, err error) 35 //sysnb Setregid(rgid int, egid int) (err error)36 //sysnb Setresgid(rgid int, egid int, sgid int) (err error)37 //sysnb Setresuid(ruid int, euid int, suid int) (err error)38 //sysnb Setreuid(ruid int, euid int) (err error)39 35 //sys Shutdown(fd int, how int) (err error) 40 36 //sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) -
trunk/vendor/golang.org/x/sys/unix/syscall_linux_ppc.go
r67 r69 35 35 //sys setfsgid(gid int) (prev int, err error) 36 36 //sys setfsuid(uid int) (prev int, err error) 37 //sysnb Setregid(rgid int, egid int) (err error)38 //sysnb Setresgid(rgid int, egid int, sgid int) (err error)39 //sysnb Setresuid(ruid int, euid int, suid int) (err error)40 //sysnb Setreuid(ruid int, euid int) (err error)41 37 //sys Shutdown(fd int, how int) (err error) 42 38 //sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) -
trunk/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go
r67 r69 35 35 //sys setfsgid(gid int) (prev int, err error) 36 36 //sys setfsuid(uid int) (prev int, err error) 37 //sysnb Setregid(rgid int, egid int) (err error)38 //sysnb Setresgid(rgid int, egid int, sgid int) (err error)39 //sysnb Setresuid(ruid int, euid int, suid int) (err error)40 37 //sysnb Setrlimit(resource int, rlim *Rlimit) (err error) 41 //sysnb Setreuid(ruid int, euid int) (err error)42 38 //sys Shutdown(fd int, how int) (err error) 43 39 //sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) -
trunk/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go
r67 r69 39 39 //sys setfsgid(gid int) (prev int, err error) 40 40 //sys setfsuid(uid int) (prev int, err error) 41 //sysnb Setregid(rgid int, egid int) (err error)42 //sysnb Setresgid(rgid int, egid int, sgid int) (err error)43 //sysnb Setresuid(ruid int, euid int, suid int) (err error)44 41 //sysnb Setrlimit(resource int, rlim *Rlimit) (err error) 45 //sysnb Setreuid(ruid int, euid int) (err error)46 42 //sys Shutdown(fd int, how int) (err error) 47 43 //sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) -
trunk/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go
r67 r69 35 35 //sys setfsgid(gid int) (prev int, err error) 36 36 //sys setfsuid(uid int) (prev int, err error) 37 //sysnb Setregid(rgid int, egid int) (err error)38 //sysnb Setresgid(rgid int, egid int, sgid int) (err error)39 //sysnb Setresuid(ruid int, euid int, suid int) (err error)40 37 //sysnb Setrlimit(resource int, rlim *Rlimit) (err error) 41 //sysnb Setreuid(ruid int, euid int) (err error)42 38 //sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) 43 39 //sys Stat(path string, stat *Stat_t) (err error) -
trunk/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
r67 r69 32 32 //sys setfsgid(gid int) (prev int, err error) 33 33 //sys setfsuid(uid int) (prev int, err error) 34 //sysnb Setregid(rgid int, egid int) (err error)35 //sysnb Setresgid(rgid int, egid int, sgid int) (err error)36 //sysnb Setresuid(ruid int, euid int, suid int) (err error)37 34 //sysnb Setrlimit(resource int, rlim *Rlimit) (err error) 38 //sysnb Setreuid(ruid int, euid int) (err error)39 35 //sys Shutdown(fd int, how int) (err error) 40 36 //sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) -
trunk/vendor/golang.org/x/sys/unix/syscall_solaris.go
r67 r69 751 751 // reference to the cookie around until the event is processed 752 752 // thus the otherwise seemingly extraneous "cookies" map 753 // The key of this map is a pointer to the corresponding &fCookie.cookie754 cookies map[* interface{}]*fileObjCookie753 // The key of this map is a pointer to the corresponding fCookie 754 cookies map[*fileObjCookie]struct{} 755 755 } 756 756 … … 779 779 fds: make(map[uintptr]*fileObjCookie), 780 780 paths: make(map[string]*fileObjCookie), 781 cookies: make(map[* interface{}]*fileObjCookie),781 cookies: make(map[*fileObjCookie]struct{}), 782 782 } 783 783 return e, nil … … 800 800 e.fds = nil 801 801 e.paths = nil 802 e.cookies = nil 802 803 return nil 803 804 } … … 827 828 return fmt.Errorf("%v is already associated with this Event Port", path) 828 829 } 829 f obj, err := createFileObj(path, stat)830 fCookie, err := createFileObjCookie(path, stat, cookie) 830 831 if err != nil { 831 832 return err 832 833 } 833 fCookie := &fileObjCookie{fobj, cookie} 834 _, err = port_associate(e.port, PORT_SOURCE_FILE, uintptr(unsafe.Pointer(fobj)), events, (*byte)(unsafe.Pointer(&fCookie.cookie))) 834 _, err = port_associate(e.port, PORT_SOURCE_FILE, uintptr(unsafe.Pointer(fCookie.fobj)), events, (*byte)(unsafe.Pointer(fCookie))) 835 835 if err != nil { 836 836 return err 837 837 } 838 838 e.paths[path] = fCookie 839 e.cookies[ &fCookie.cookie] = fCookie839 e.cookies[fCookie] = struct{}{} 840 840 return nil 841 841 } … … 859 859 // dissociate was successful, safe to delete the cookie 860 860 fCookie := e.paths[path] 861 delete(e.cookies, &fCookie.cookie)861 delete(e.cookies, fCookie) 862 862 } 863 863 delete(e.paths, path) … … 872 872 return fmt.Errorf("%v is already associated with this Event Port", fd) 873 873 } 874 fCookie := &fileObjCookie{nil, cookie} 875 _, err := port_associate(e.port, PORT_SOURCE_FD, fd, events, (*byte)(unsafe.Pointer(&fCookie.cookie))) 874 fCookie, err := createFileObjCookie("", nil, cookie) 876 875 if err != nil { 877 876 return err 878 877 } 878 _, err = port_associate(e.port, PORT_SOURCE_FD, fd, events, (*byte)(unsafe.Pointer(fCookie))) 879 if err != nil { 880 return err 881 } 879 882 e.fds[fd] = fCookie 880 e.cookies[ &fCookie.cookie] = fCookie883 e.cookies[fCookie] = struct{}{} 881 884 return nil 882 885 } … … 897 900 // dissociate was successful, safe to delete the cookie 898 901 fCookie := e.fds[fd] 899 delete(e.cookies, &fCookie.cookie)902 delete(e.cookies, fCookie) 900 903 } 901 904 delete(e.fds, fd) … … 903 906 } 904 907 905 func createFileObj(name string, stat os.FileInfo) (*fileObj, error) { 906 fobj := new(fileObj) 907 bs, err := ByteSliceFromString(name) 908 if err != nil { 909 return nil, err 910 } 911 fobj.Name = (*int8)(unsafe.Pointer(&bs[0])) 912 s := stat.Sys().(*syscall.Stat_t) 913 fobj.Atim.Sec = s.Atim.Sec 914 fobj.Atim.Nsec = s.Atim.Nsec 915 fobj.Mtim.Sec = s.Mtim.Sec 916 fobj.Mtim.Nsec = s.Mtim.Nsec 917 fobj.Ctim.Sec = s.Ctim.Sec 918 fobj.Ctim.Nsec = s.Ctim.Nsec 919 return fobj, nil 908 func createFileObjCookie(name string, stat os.FileInfo, cookie interface{}) (*fileObjCookie, error) { 909 fCookie := new(fileObjCookie) 910 fCookie.cookie = cookie 911 if name != "" && stat != nil { 912 fCookie.fobj = new(fileObj) 913 bs, err := ByteSliceFromString(name) 914 if err != nil { 915 return nil, err 916 } 917 fCookie.fobj.Name = (*int8)(unsafe.Pointer(&bs[0])) 918 s := stat.Sys().(*syscall.Stat_t) 919 fCookie.fobj.Atim.Sec = s.Atim.Sec 920 fCookie.fobj.Atim.Nsec = s.Atim.Nsec 921 fCookie.fobj.Mtim.Sec = s.Mtim.Sec 922 fCookie.fobj.Mtim.Nsec = s.Mtim.Nsec 923 fCookie.fobj.Ctim.Sec = s.Ctim.Sec 924 fCookie.fobj.Ctim.Nsec = s.Ctim.Nsec 925 } 926 return fCookie, nil 920 927 } 921 928 … … 930 937 e.mu.Lock() 931 938 defer e.mu.Unlock() 932 e.peIntToExt(pe, p) 939 err = e.peIntToExt(pe, p) 940 if err != nil { 941 return nil, err 942 } 933 943 return p, nil 934 944 } … … 936 946 // peIntToExt converts a cgo portEvent struct into the friendlier PortEvent 937 947 // NOTE: Always call this function while holding the e.mu mutex 938 func (e *EventPort) peIntToExt(peInt *portEvent, peExt *PortEvent) { 948 func (e *EventPort) peIntToExt(peInt *portEvent, peExt *PortEvent) error { 949 if e.cookies == nil { 950 return fmt.Errorf("this EventPort is already closed") 951 } 939 952 peExt.Events = peInt.Events 940 953 peExt.Source = peInt.Source 941 cookie := (*interface{})(unsafe.Pointer(peInt.User)) 942 peExt.Cookie = *cookie 954 fCookie := (*fileObjCookie)(unsafe.Pointer(peInt.User)) 955 _, found := e.cookies[fCookie] 956 957 if !found { 958 panic("unexpected event port address; may be due to kernel bug; see https://go.dev/issue/54254") 959 } 960 peExt.Cookie = fCookie.cookie 961 delete(e.cookies, fCookie) 962 943 963 switch peInt.Source { 944 964 case PORT_SOURCE_FD: 945 delete(e.cookies, cookie)946 965 peExt.Fd = uintptr(peInt.Object) 947 966 // Only remove the fds entry if it exists and this cookie matches 948 967 if fobj, ok := e.fds[peExt.Fd]; ok { 949 if &fobj.cookie == cookie {968 if fobj == fCookie { 950 969 delete(e.fds, peExt.Fd) 951 970 } 952 971 } 953 972 case PORT_SOURCE_FILE: 954 if fCookie, ok := e.cookies[cookie]; ok && uintptr(unsafe.Pointer(fCookie.fobj)) == uintptr(peInt.Object) { 955 // Use our stashed reference rather than using unsafe on what we got back 956 // the unsafe version would be (*fileObj)(unsafe.Pointer(uintptr(peInt.Object))) 957 peExt.fobj = fCookie.fobj 958 } else { 959 panic("mismanaged memory") 960 } 961 delete(e.cookies, cookie) 973 peExt.fobj = fCookie.fobj 962 974 peExt.Path = BytePtrToString((*byte)(unsafe.Pointer(peExt.fobj.Name))) 963 975 // Only remove the paths entry if it exists and this cookie matches 964 976 if fobj, ok := e.paths[peExt.Path]; ok { 965 if &fobj.cookie == cookie {977 if fobj == fCookie { 966 978 delete(e.paths, peExt.Path) 967 979 } 968 980 } 969 981 } 982 return nil 970 983 } 971 984 … … 991 1004 max := uint32(len(s)) 992 1005 var err error 993 ps := make([]portEvent, max , max)1006 ps := make([]portEvent, max) 994 1007 _, err = port_getn(e.port, &ps[0], max, &got, timeout) 995 1008 // got will be trustworthy with ETIME, but not any other error. … … 999 1012 e.mu.Lock() 1000 1013 defer e.mu.Unlock() 1014 valid := 0 1001 1015 for i := 0; i < int(got); i++ { 1002 e.peIntToExt(&ps[i], &s[i]) 1003 } 1004 return int(got), err 1005 } 1016 err2 := e.peIntToExt(&ps[i], &s[i]) 1017 if err2 != nil { 1018 if valid == 0 && err == nil { 1019 // If err2 is the only error and there are no valid events 1020 // to return, return it to the caller. 1021 err = err2 1022 } 1023 break 1024 } 1025 valid = i + 1 1026 } 1027 return valid, err 1028 } 1029 1030 //sys putmsg(fd int, clptr *strbuf, dataptr *strbuf, flags int) (err error) 1031 1032 func Putmsg(fd int, cl []byte, data []byte, flags int) (err error) { 1033 var clp, datap *strbuf 1034 if len(cl) > 0 { 1035 clp = &strbuf{ 1036 Len: int32(len(cl)), 1037 Buf: (*int8)(unsafe.Pointer(&cl[0])), 1038 } 1039 } 1040 if len(data) > 0 { 1041 datap = &strbuf{ 1042 Len: int32(len(data)), 1043 Buf: (*int8)(unsafe.Pointer(&data[0])), 1044 } 1045 } 1046 return putmsg(fd, clp, datap, flags) 1047 } 1048 1049 //sys getmsg(fd int, clptr *strbuf, dataptr *strbuf, flags *int) (err error) 1050 1051 func Getmsg(fd int, cl []byte, data []byte) (retCl []byte, retData []byte, flags int, err error) { 1052 var clp, datap *strbuf 1053 if len(cl) > 0 { 1054 clp = &strbuf{ 1055 Maxlen: int32(len(cl)), 1056 Buf: (*int8)(unsafe.Pointer(&cl[0])), 1057 } 1058 } 1059 if len(data) > 0 { 1060 datap = &strbuf{ 1061 Maxlen: int32(len(data)), 1062 Buf: (*int8)(unsafe.Pointer(&data[0])), 1063 } 1064 } 1065 1066 if err = getmsg(fd, clp, datap, &flags); err != nil { 1067 return nil, nil, 0, err 1068 } 1069 1070 if len(cl) > 0 { 1071 retCl = cl[:clp.Len] 1072 } 1073 if len(data) > 0 { 1074 retData = data[:datap.Len] 1075 } 1076 return retCl, retData, flags, nil 1077 } 1078 1079 func IoctlSetIntRetInt(fd int, req uint, arg int) (int, error) { 1080 return ioctlRet(fd, req, uintptr(arg)) 1081 } 1082 1083 func IoctlSetString(fd int, req uint, val string) error { 1084 bs := make([]byte, len(val)+1) 1085 copy(bs[:len(bs)-1], val) 1086 err := ioctl(fd, req, uintptr(unsafe.Pointer(&bs[0]))) 1087 runtime.KeepAlive(&bs[0]) 1088 return err 1089 } 1090 1091 // Lifreq Helpers 1092 1093 func (l *Lifreq) SetName(name string) error { 1094 if len(name) >= len(l.Name) { 1095 return fmt.Errorf("name cannot be more than %d characters", len(l.Name)-1) 1096 } 1097 for i := range name { 1098 l.Name[i] = int8(name[i]) 1099 } 1100 return nil 1101 } 1102 1103 func (l *Lifreq) SetLifruInt(d int) { 1104 *(*int)(unsafe.Pointer(&l.Lifru[0])) = d 1105 } 1106 1107 func (l *Lifreq) GetLifruInt() int { 1108 return *(*int)(unsafe.Pointer(&l.Lifru[0])) 1109 } 1110 1111 func (l *Lifreq) SetLifruUint(d uint) { 1112 *(*uint)(unsafe.Pointer(&l.Lifru[0])) = d 1113 } 1114 1115 func (l *Lifreq) GetLifruUint() uint { 1116 return *(*uint)(unsafe.Pointer(&l.Lifru[0])) 1117 } 1118 1119 func IoctlLifreq(fd int, req uint, l *Lifreq) error { 1120 return ioctl(fd, req, uintptr(unsafe.Pointer(l))) 1121 } 1122 1123 // Strioctl Helpers 1124 1125 func (s *Strioctl) SetInt(i int) { 1126 s.Len = int32(unsafe.Sizeof(i)) 1127 s.Dp = (*int8)(unsafe.Pointer(&i)) 1128 } 1129 1130 func IoctlSetStrioctlRetInt(fd int, req uint, s *Strioctl) (int, error) { 1131 return ioctlRet(fd, req, uintptr(unsafe.Pointer(s))) 1132 } -
trunk/vendor/golang.org/x/sys/unix/syscall_unix.go
r67 r69 14 14 "syscall" 15 15 "unsafe" 16 17 "golang.org/x/sys/internal/unsafeheader"18 16 ) 19 17 … … 118 116 119 117 // Use unsafe to convert addr into a []byte. 120 var b []byte 121 hdr := (*unsafeheader.Slice)(unsafe.Pointer(&b)) 122 hdr.Data = unsafe.Pointer(addr) 123 hdr.Cap = length 124 hdr.Len = length 118 b := unsafe.Slice((*byte)(unsafe.Pointer(addr)), length) 125 119 126 120 // Register mapping in m and return it. … … 430 424 431 425 func Sendto(fd int, p []byte, flags int, to Sockaddr) (err error) { 432 ptr, n, err := to.sockaddr() 433 if err != nil { 434 return err 435 } 436 return sendto(fd, p, flags, ptr, n) 426 var ptr unsafe.Pointer 427 var salen _Socklen 428 if to != nil { 429 ptr, salen, err = to.sockaddr() 430 if err != nil { 431 return err 432 } 433 } 434 return sendto(fd, p, flags, ptr, salen) 437 435 } 438 436 -
trunk/vendor/golang.org/x/sys/unix/syscall_unix_gc.go
r67 r69 3 3 // license that can be found in the LICENSE file. 4 4 5 //go:build (darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris) && gc && !ppc64le && !ppc646 // +build darwin dragonfly freebsd linux netbsd openbsd solaris5 //go:build (darwin || dragonfly || freebsd || (linux && !ppc64 && !ppc64le) || netbsd || openbsd || solaris) && gc 6 // +build darwin dragonfly freebsd linux,!ppc64,!ppc64le netbsd openbsd solaris 7 7 // +build gc 8 // +build !ppc64le9 // +build !ppc6410 8 11 9 package unix -
trunk/vendor/golang.org/x/sys/unix/sysvshm_unix.go
r67 r69 8 8 package unix 9 9 10 import ( 11 "unsafe" 12 13 "golang.org/x/sys/internal/unsafeheader" 14 ) 10 import "unsafe" 15 11 16 12 // SysvShmAttach attaches the Sysv shared memory segment associated with the … … 35 31 36 32 // Use unsafe to convert addr into a []byte. 37 // TODO: convert to unsafe.Slice once we can assume Go 1.17 38 var b []byte 39 hdr := (*unsafeheader.Slice)(unsafe.Pointer(&b)) 40 hdr.Data = unsafe.Pointer(addr) 41 hdr.Cap = int(info.Segsz) 42 hdr.Len = int(info.Segsz) 33 b := unsafe.Slice((*byte)(unsafe.Pointer(addr)), int(info.Segsz)) 43 34 return b, nil 44 35 } -
trunk/vendor/golang.org/x/sys/unix/xattr_bsd.go
r67 r69 161 161 162 162 func Listxattr(file string, dest []byte) (sz int, err error) { 163 d := initxattrdest(dest, 0)164 163 destsiz := len(dest) 165 164 166 165 // FreeBSD won't allow you to list xattrs from multiple namespaces 167 s :=0166 s, pos := 0, 0 168 167 for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} { 169 stmp, e := ExtattrListFile(file, nsid, uintptr(d), destsiz)168 stmp, e := ListxattrNS(file, nsid, dest[pos:]) 170 169 171 170 /* Errors accessing system attrs are ignored so that … … 176 175 * we don't have read permissions on, so don't ignore those errors 177 176 */ 178 if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER { 179 continue 180 } else if e != nil { 177 if e != nil { 178 if e == EPERM && nsid != EXTATTR_NAMESPACE_USER { 179 continue 180 } 181 181 return s, e 182 182 } 183 183 184 184 s += stmp 185 destsiz -= s 186 if destsiz < 0 { 187 destsiz = 0 188 } 189 d = initxattrdest(dest, s) 185 pos = s 186 if pos > destsiz { 187 pos = destsiz 188 } 189 } 190 191 return s, nil 192 } 193 194 func ListxattrNS(file string, nsid int, dest []byte) (sz int, err error) { 195 d := initxattrdest(dest, 0) 196 destsiz := len(dest) 197 198 s, e := ExtattrListFile(file, nsid, uintptr(d), destsiz) 199 if e != nil { 200 return 0, err 190 201 } 191 202 … … 194 205 195 206 func Flistxattr(fd int, dest []byte) (sz int, err error) { 196 d := initxattrdest(dest, 0) 197 destsiz := len(dest) 198 199 s := 0 207 destsiz := len(dest) 208 209 s, pos := 0, 0 200 210 for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} { 201 stmp, e := ExtattrListFd(fd, nsid, uintptr(d), destsiz) 202 if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER { 203 continue 204 } else if e != nil { 211 stmp, e := FlistxattrNS(fd, nsid, dest[pos:]) 212 213 if e != nil { 214 if e == EPERM && nsid != EXTATTR_NAMESPACE_USER { 215 continue 216 } 205 217 return s, e 206 218 } 207 219 208 220 s += stmp 209 destsiz -= s 210 if destsiz < 0 { 211 destsiz = 0 212 } 213 d = initxattrdest(dest, s) 221 pos = s 222 if pos > destsiz { 223 pos = destsiz 224 } 225 } 226 227 return s, nil 228 } 229 230 func FlistxattrNS(fd int, nsid int, dest []byte) (sz int, err error) { 231 d := initxattrdest(dest, 0) 232 destsiz := len(dest) 233 234 s, e := ExtattrListFd(fd, nsid, uintptr(d), destsiz) 235 if e != nil { 236 return 0, err 214 237 } 215 238 … … 218 241 219 242 func Llistxattr(link string, dest []byte) (sz int, err error) { 220 d := initxattrdest(dest, 0) 221 destsiz := len(dest) 222 223 s := 0 243 destsiz := len(dest) 244 245 s, pos := 0, 0 224 246 for _, nsid := range [...]int{EXTATTR_NAMESPACE_USER, EXTATTR_NAMESPACE_SYSTEM} { 225 stmp, e := ExtattrListLink(link, nsid, uintptr(d), destsiz) 226 if e != nil && e == EPERM && nsid != EXTATTR_NAMESPACE_USER { 227 continue 228 } else if e != nil { 247 stmp, e := LlistxattrNS(link, nsid, dest[pos:]) 248 249 if e != nil { 250 if e == EPERM && nsid != EXTATTR_NAMESPACE_USER { 251 continue 252 } 229 253 return s, e 230 254 } 231 255 232 256 s += stmp 233 destsiz -= s 234 if destsiz < 0 { 235 destsiz = 0 236 } 237 d = initxattrdest(dest, s) 238 } 239 240 return s, nil 241 } 257 pos = s 258 if pos > destsiz { 259 pos = destsiz 260 } 261 } 262 263 return s, nil 264 } 265 266 func LlistxattrNS(link string, nsid int, dest []byte) (sz int, err error) { 267 d := initxattrdest(dest, 0) 268 destsiz := len(dest) 269 270 s, e := ExtattrListLink(link, nsid, uintptr(d), destsiz) 271 if e != nil { 272 return 0, err 273 } 274 275 return s, nil 276 } -
trunk/vendor/golang.org/x/sys/unix/zerrors_linux.go
r67 r69 2941 2941 SOL_RDS = 0x114 2942 2942 SOL_RXRPC = 0x110 2943 SOL_SMC = 0x11e 2943 2944 SOL_TCP = 0x6 2944 2945 SOL_TIPC = 0x10f -
trunk/vendor/golang.org/x/sys/unix/zerrors_linux_386.go
r67 r69 1 // mkerrors.sh -Wall -Werror -static -I/tmp/ include -m321 // mkerrors.sh -Wall -Werror -static -I/tmp/386/include -m32 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 6 6 7 7 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 8 // cgo -godefs -- -Wall -Werror -static -I/tmp/ include -m32 _const.go8 // cgo -godefs -- -Wall -Werror -static -I/tmp/386/include -m32 _const.go 9 9 10 10 package unix -
trunk/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go
r67 r69 1 // mkerrors.sh -Wall -Werror -static -I/tmp/ include -m641 // mkerrors.sh -Wall -Werror -static -I/tmp/amd64/include -m64 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 6 6 7 7 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 8 // cgo -godefs -- -Wall -Werror -static -I/tmp/ include -m64 _const.go8 // cgo -godefs -- -Wall -Werror -static -I/tmp/amd64/include -m64 _const.go 9 9 10 10 package unix -
trunk/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go
r67 r69 1 // mkerrors.sh -Wall -Werror -static -I/tmp/ include1 // mkerrors.sh -Wall -Werror -static -I/tmp/arm/include 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 6 6 7 7 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 8 // cgo -godefs -- -Wall -Werror -static -I/tmp/ include _const.go8 // cgo -godefs -- -Wall -Werror -static -I/tmp/arm/include _const.go 9 9 10 10 package unix -
trunk/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go
r67 r69 1 // mkerrors.sh -Wall -Werror -static -I/tmp/ include -fsigned-char1 // mkerrors.sh -Wall -Werror -static -I/tmp/arm64/include -fsigned-char 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 6 6 7 7 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 8 // cgo -godefs -- -Wall -Werror -static -I/tmp/ include -fsigned-char _const.go8 // cgo -godefs -- -Wall -Werror -static -I/tmp/arm64/include -fsigned-char _const.go 9 9 10 10 package unix -
trunk/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go
r67 r69 1 // mkerrors.sh -Wall -Werror -static -I/tmp/ include1 // mkerrors.sh -Wall -Werror -static -I/tmp/loong64/include 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 6 6 7 7 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 8 // cgo -godefs -- -Wall -Werror -static -I/tmp/ include _const.go8 // cgo -godefs -- -Wall -Werror -static -I/tmp/loong64/include _const.go 9 9 10 10 package unix -
trunk/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go
r67 r69 1 // mkerrors.sh -Wall -Werror -static -I/tmp/ include1 // mkerrors.sh -Wall -Werror -static -I/tmp/mips/include 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 6 6 7 7 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 8 // cgo -godefs -- -Wall -Werror -static -I/tmp/ include _const.go8 // cgo -godefs -- -Wall -Werror -static -I/tmp/mips/include _const.go 9 9 10 10 package unix -
trunk/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go
r67 r69 1 // mkerrors.sh -Wall -Werror -static -I/tmp/ include1 // mkerrors.sh -Wall -Werror -static -I/tmp/mips64/include 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 6 6 7 7 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 8 // cgo -godefs -- -Wall -Werror -static -I/tmp/ include _const.go8 // cgo -godefs -- -Wall -Werror -static -I/tmp/mips64/include _const.go 9 9 10 10 package unix -
trunk/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go
r67 r69 1 // mkerrors.sh -Wall -Werror -static -I/tmp/ include1 // mkerrors.sh -Wall -Werror -static -I/tmp/mips64le/include 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 6 6 7 7 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 8 // cgo -godefs -- -Wall -Werror -static -I/tmp/ include _const.go8 // cgo -godefs -- -Wall -Werror -static -I/tmp/mips64le/include _const.go 9 9 10 10 package unix -
trunk/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go
r67 r69 1 // mkerrors.sh -Wall -Werror -static -I/tmp/ include1 // mkerrors.sh -Wall -Werror -static -I/tmp/mipsle/include 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 6 6 7 7 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 8 // cgo -godefs -- -Wall -Werror -static -I/tmp/ include _const.go8 // cgo -godefs -- -Wall -Werror -static -I/tmp/mipsle/include _const.go 9 9 10 10 package unix -
trunk/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go
r67 r69 1 // mkerrors.sh -Wall -Werror -static -I/tmp/ include1 // mkerrors.sh -Wall -Werror -static -I/tmp/ppc/include 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 6 6 7 7 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 8 // cgo -godefs -- -Wall -Werror -static -I/tmp/ include _const.go8 // cgo -godefs -- -Wall -Werror -static -I/tmp/ppc/include _const.go 9 9 10 10 package unix -
trunk/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go
r67 r69 1 // mkerrors.sh -Wall -Werror -static -I/tmp/ include1 // mkerrors.sh -Wall -Werror -static -I/tmp/ppc64/include 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 6 6 7 7 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 8 // cgo -godefs -- -Wall -Werror -static -I/tmp/ include _const.go8 // cgo -godefs -- -Wall -Werror -static -I/tmp/ppc64/include _const.go 9 9 10 10 package unix -
trunk/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go
r67 r69 1 // mkerrors.sh -Wall -Werror -static -I/tmp/ include1 // mkerrors.sh -Wall -Werror -static -I/tmp/ppc64le/include 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 6 6 7 7 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 8 // cgo -godefs -- -Wall -Werror -static -I/tmp/ include _const.go8 // cgo -godefs -- -Wall -Werror -static -I/tmp/ppc64le/include _const.go 9 9 10 10 package unix -
trunk/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go
r67 r69 1 // mkerrors.sh -Wall -Werror -static -I/tmp/ include1 // mkerrors.sh -Wall -Werror -static -I/tmp/riscv64/include 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 6 6 7 7 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 8 // cgo -godefs -- -Wall -Werror -static -I/tmp/ include _const.go8 // cgo -godefs -- -Wall -Werror -static -I/tmp/riscv64/include _const.go 9 9 10 10 package unix -
trunk/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go
r67 r69 1 // mkerrors.sh -Wall -Werror -static -I/tmp/ include -fsigned-char1 // mkerrors.sh -Wall -Werror -static -I/tmp/s390x/include -fsigned-char 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 6 6 7 7 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 8 // cgo -godefs -- -Wall -Werror -static -I/tmp/ include -fsigned-char _const.go8 // cgo -godefs -- -Wall -Werror -static -I/tmp/s390x/include -fsigned-char _const.go 9 9 10 10 package unix -
trunk/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go
r67 r69 1 // mkerrors.sh -Wall -Werror -static -I/tmp/ include1 // mkerrors.sh -Wall -Werror -static -I/tmp/sparc64/include 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 6 6 7 7 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 8 // cgo -godefs -- -Wall -Werror -static -I/tmp/ include _const.go8 // cgo -godefs -- -Wall -Werror -static -I/tmp/sparc64/include _const.go 9 9 10 10 package unix -
trunk/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go
r67 r69 1 // go run mksyscall.go -tags darwin,amd64 ,go1.12syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go1 // go run mksyscall.go -tags darwin,amd64 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 4 //go:build darwin && amd64 && go1.125 // +build darwin,amd64 ,go1.124 //go:build darwin && amd64 5 // +build darwin,amd64 6 6 7 7 package unix … … 464 464 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 465 465 466 func closedir(dir uintptr) (err error) { 467 _, _, e1 := syscall_syscall(libc_closedir_trampoline_addr, uintptr(dir), 0, 0) 468 if e1 != 0 { 469 err = errnoErr(e1) 470 } 471 return 472 } 473 474 var libc_closedir_trampoline_addr uintptr 475 476 //go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib" 477 478 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 479 480 func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) { 481 r0, _, _ := syscall_syscall(libc_readdir_r_trampoline_addr, uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result))) 482 res = Errno(r0) 483 return 484 } 485 486 var libc_readdir_r_trampoline_addr uintptr 487 488 //go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib" 489 490 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 491 466 492 func pipe(p *[2]int32) (err error) { 467 493 _, _, e1 := syscall_rawSyscall(libc_pipe_trampoline_addr, uintptr(unsafe.Pointer(p)), 0, 0) -
trunk/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s
r67 r69 1 // go run mkasm _darwin.goamd641 // go run mkasm.go darwin amd64 2 2 // Code generated by the command above; DO NOT EDIT. 3 3 4 //go:build go1.125 // +build go1.126 7 4 #include "textflag.h" 5 6 TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0 7 JMP libc_fdopendir(SB) 8 9 GLOBL ·libc_fdopendir_trampoline_addr(SB), RODATA, $8 10 DATA ·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB) 8 11 9 12 TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0 … … 175 178 DATA ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB) 176 179 180 TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0 181 JMP libc_closedir(SB) 182 183 GLOBL ·libc_closedir_trampoline_addr(SB), RODATA, $8 184 DATA ·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB) 185 186 TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0 187 JMP libc_readdir_r(SB) 188 189 GLOBL ·libc_readdir_r_trampoline_addr(SB), RODATA, $8 190 DATA ·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB) 191 177 192 TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0 178 193 JMP libc_pipe(SB) -
trunk/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go
r67 r69 1 // go run mksyscall.go -tags darwin,arm64 ,go1.12syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go1 // go run mksyscall.go -tags darwin,arm64 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 4 //go:build darwin && arm64 && go1.125 // +build darwin,arm64 ,go1.124 //go:build darwin && arm64 5 // +build darwin,arm64 6 6 7 7 package unix … … 464 464 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 465 465 466 func closedir(dir uintptr) (err error) { 467 _, _, e1 := syscall_syscall(libc_closedir_trampoline_addr, uintptr(dir), 0, 0) 468 if e1 != 0 { 469 err = errnoErr(e1) 470 } 471 return 472 } 473 474 var libc_closedir_trampoline_addr uintptr 475 476 //go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib" 477 478 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 479 480 func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) { 481 r0, _, _ := syscall_syscall(libc_readdir_r_trampoline_addr, uintptr(dir), uintptr(unsafe.Pointer(entry)), uintptr(unsafe.Pointer(result))) 482 res = Errno(r0) 483 return 484 } 485 486 var libc_readdir_r_trampoline_addr uintptr 487 488 //go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib" 489 490 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 491 466 492 func pipe(p *[2]int32) (err error) { 467 493 _, _, e1 := syscall_rawSyscall(libc_pipe_trampoline_addr, uintptr(unsafe.Pointer(p)), 0, 0) -
trunk/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s
r67 r69 1 // go run mkasm _darwin.goarm641 // go run mkasm.go darwin arm64 2 2 // Code generated by the command above; DO NOT EDIT. 3 3 4 //go:build go1.125 // +build go1.126 7 4 #include "textflag.h" 5 6 TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0 7 JMP libc_fdopendir(SB) 8 9 GLOBL ·libc_fdopendir_trampoline_addr(SB), RODATA, $8 10 DATA ·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB) 8 11 9 12 TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0 … … 175 178 DATA ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB) 176 179 180 TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0 181 JMP libc_closedir(SB) 182 183 GLOBL ·libc_closedir_trampoline_addr(SB), RODATA, $8 184 DATA ·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB) 185 186 TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0 187 JMP libc_readdir_r(SB) 188 189 GLOBL ·libc_readdir_r_trampoline_addr(SB), RODATA, $8 190 DATA ·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB) 191 177 192 TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0 178 193 JMP libc_pipe(SB) -
trunk/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go
r67 r69 16 16 //go:cgo_import_dynamic libc_pwritev pwritev "libc.so" 17 17 //go:cgo_import_dynamic libc_accept4 accept4 "libsocket.so" 18 //go:cgo_import_dynamic libc_putmsg putmsg "libc.so"19 //go:cgo_import_dynamic libc_getmsg getmsg "libc.so"20 18 21 19 //go:linkname procreadv libc_readv … … 24 22 //go:linkname procpwritev libc_pwritev 25 23 //go:linkname procaccept4 libc_accept4 26 //go:linkname procputmsg libc_putmsg27 //go:linkname procgetmsg libc_getmsg28 24 29 25 var ( … … 32 28 procwritev, 33 29 procpwritev, 34 procaccept4, 35 procputmsg, 36 procgetmsg syscallFunc 30 procaccept4 syscallFunc 37 31 ) 38 32 … … 107 101 return 108 102 } 109 110 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT111 112 func putmsg(fd int, clptr *strbuf, dataptr *strbuf, flags int) (err error) {113 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procputmsg)), 4, uintptr(fd), uintptr(unsafe.Pointer(clptr)), uintptr(unsafe.Pointer(dataptr)), uintptr(flags), 0, 0)114 if e1 != 0 {115 err = e1116 }117 return118 }119 120 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT121 122 func getmsg(fd int, clptr *strbuf, dataptr *strbuf, flags *int) (err error) {123 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetmsg)), 4, uintptr(fd), uintptr(unsafe.Pointer(clptr)), uintptr(unsafe.Pointer(dataptr)), uintptr(unsafe.Pointer(flags)), 0, 0)124 if e1 != 0 {125 err = e1126 }127 return128 } -
trunk/vendor/golang.org/x/sys/unix/zsyscall_linux.go
r67 r69 2152 2152 return 2153 2153 } 2154 2155 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2156 2157 func rtSigprocmask(how int, set *Sigset_t, oldset *Sigset_t, sigsetsize uintptr) (err error) { 2158 _, _, e1 := RawSyscall6(SYS_RT_SIGPROCMASK, uintptr(how), uintptr(unsafe.Pointer(set)), uintptr(unsafe.Pointer(oldset)), uintptr(sigsetsize), 0, 0) 2159 if e1 != 0 { 2160 err = errnoErr(e1) 2161 } 2162 return 2163 } -
trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go
r67 r69 288 288 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 289 289 290 func Setregid(rgid int, egid int) (err error) {291 _, _, e1 := RawSyscall(SYS_SETREGID32, uintptr(rgid), uintptr(egid), 0)292 if e1 != 0 {293 err = errnoErr(e1)294 }295 return296 }297 298 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT299 300 func Setresgid(rgid int, egid int, sgid int) (err error) {301 _, _, e1 := RawSyscall(SYS_SETRESGID32, uintptr(rgid), uintptr(egid), uintptr(sgid))302 if e1 != 0 {303 err = errnoErr(e1)304 }305 return306 }307 308 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT309 310 func Setresuid(ruid int, euid int, suid int) (err error) {311 _, _, e1 := RawSyscall(SYS_SETRESUID32, uintptr(ruid), uintptr(euid), uintptr(suid))312 if e1 != 0 {313 err = errnoErr(e1)314 }315 return316 }317 318 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT319 320 func Setreuid(ruid int, euid int) (err error) {321 _, _, e1 := RawSyscall(SYS_SETREUID32, uintptr(ruid), uintptr(euid), 0)322 if e1 != 0 {323 err = errnoErr(e1)324 }325 return326 }327 328 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT329 330 290 func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) { 331 291 r0, _, e1 := Syscall6(SYS_SPLICE, uintptr(rfd), uintptr(unsafe.Pointer(roff)), uintptr(wfd), uintptr(unsafe.Pointer(woff)), uintptr(len), uintptr(flags)) -
trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go
r67 r69 335 335 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 336 336 337 func Setregid(rgid int, egid int) (err error) {338 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)339 if e1 != 0 {340 err = errnoErr(e1)341 }342 return343 }344 345 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT346 347 func Setresgid(rgid int, egid int, sgid int) (err error) {348 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))349 if e1 != 0 {350 err = errnoErr(e1)351 }352 return353 }354 355 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT356 357 func Setresuid(ruid int, euid int, suid int) (err error) {358 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))359 if e1 != 0 {360 err = errnoErr(e1)361 }362 return363 }364 365 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT366 367 337 func Setrlimit(resource int, rlim *Rlimit) (err error) { 368 338 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) 369 if e1 != 0 {370 err = errnoErr(e1)371 }372 return373 }374 375 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT376 377 func Setreuid(ruid int, euid int) (err error) {378 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)379 339 if e1 != 0 { 380 340 err = errnoErr(e1) -
trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go
r67 r69 413 413 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 414 414 415 func Setregid(rgid int, egid int) (err error) {416 _, _, e1 := RawSyscall(SYS_SETREGID32, uintptr(rgid), uintptr(egid), 0)417 if e1 != 0 {418 err = errnoErr(e1)419 }420 return421 }422 423 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT424 425 func Setresgid(rgid int, egid int, sgid int) (err error) {426 _, _, e1 := RawSyscall(SYS_SETRESGID32, uintptr(rgid), uintptr(egid), uintptr(sgid))427 if e1 != 0 {428 err = errnoErr(e1)429 }430 return431 }432 433 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT434 435 func Setresuid(ruid int, euid int, suid int) (err error) {436 _, _, e1 := RawSyscall(SYS_SETRESUID32, uintptr(ruid), uintptr(euid), uintptr(suid))437 if e1 != 0 {438 err = errnoErr(e1)439 }440 return441 }442 443 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT444 445 func Setreuid(ruid int, euid int) (err error) {446 _, _, e1 := RawSyscall(SYS_SETREUID32, uintptr(ruid), uintptr(euid), 0)447 if e1 != 0 {448 err = errnoErr(e1)449 }450 return451 }452 453 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT454 455 415 func Shutdown(fd int, how int) (err error) { 456 416 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) -
trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go
r67 r69 290 290 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 291 291 292 func Setregid(rgid int, egid int) (err error) {293 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)294 if e1 != 0 {295 err = errnoErr(e1)296 }297 return298 }299 300 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT301 302 func Setresgid(rgid int, egid int, sgid int) (err error) {303 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))304 if e1 != 0 {305 err = errnoErr(e1)306 }307 return308 }309 310 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT311 312 func Setresuid(ruid int, euid int, suid int) (err error) {313 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))314 if e1 != 0 {315 err = errnoErr(e1)316 }317 return318 }319 320 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT321 322 292 func setrlimit(resource int, rlim *Rlimit) (err error) { 323 293 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) 324 if e1 != 0 {325 err = errnoErr(e1)326 }327 return328 }329 330 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT331 332 func Setreuid(ruid int, euid int) (err error) {333 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)334 294 if e1 != 0 { 335 295 err = errnoErr(e1) -
trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_loong64.go
r67 r69 224 224 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 225 225 226 func Setregid(rgid int, egid int) (err error) {227 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)228 if e1 != 0 {229 err = errnoErr(e1)230 }231 return232 }233 234 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT235 236 func Setresgid(rgid int, egid int, sgid int) (err error) {237 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))238 if e1 != 0 {239 err = errnoErr(e1)240 }241 return242 }243 244 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT245 246 func Setresuid(ruid int, euid int, suid int) (err error) {247 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))248 if e1 != 0 {249 err = errnoErr(e1)250 }251 return252 }253 254 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT255 256 func Setreuid(ruid int, euid int) (err error) {257 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)258 if e1 != 0 {259 err = errnoErr(e1)260 }261 return262 }263 264 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT265 266 226 func Shutdown(fd int, how int) (err error) { 267 227 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) -
trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go
r67 r69 249 249 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 250 250 251 func Setregid(rgid int, egid int) (err error) {252 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)253 if e1 != 0 {254 err = errnoErr(e1)255 }256 return257 }258 259 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT260 261 func Setresgid(rgid int, egid int, sgid int) (err error) {262 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))263 if e1 != 0 {264 err = errnoErr(e1)265 }266 return267 }268 269 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT270 271 func Setresuid(ruid int, euid int, suid int) (err error) {272 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))273 if e1 != 0 {274 err = errnoErr(e1)275 }276 return277 }278 279 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT280 281 func Setreuid(ruid int, euid int) (err error) {282 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)283 if e1 != 0 {284 err = errnoErr(e1)285 }286 return287 }288 289 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT290 291 251 func Shutdown(fd int, how int) (err error) { 292 252 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) -
trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go
r67 r69 279 279 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 280 280 281 func Setregid(rgid int, egid int) (err error) {282 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)283 if e1 != 0 {284 err = errnoErr(e1)285 }286 return287 }288 289 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT290 291 func Setresgid(rgid int, egid int, sgid int) (err error) {292 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))293 if e1 != 0 {294 err = errnoErr(e1)295 }296 return297 }298 299 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT300 301 func Setresuid(ruid int, euid int, suid int) (err error) {302 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))303 if e1 != 0 {304 err = errnoErr(e1)305 }306 return307 }308 309 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT310 311 281 func Setrlimit(resource int, rlim *Rlimit) (err error) { 312 282 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) 313 if e1 != 0 {314 err = errnoErr(e1)315 }316 return317 }318 319 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT320 321 func Setreuid(ruid int, euid int) (err error) {322 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)323 283 if e1 != 0 { 324 284 err = errnoErr(e1) -
trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go
r67 r69 279 279 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 280 280 281 func Setregid(rgid int, egid int) (err error) {282 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)283 if e1 != 0 {284 err = errnoErr(e1)285 }286 return287 }288 289 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT290 291 func Setresgid(rgid int, egid int, sgid int) (err error) {292 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))293 if e1 != 0 {294 err = errnoErr(e1)295 }296 return297 }298 299 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT300 301 func Setresuid(ruid int, euid int, suid int) (err error) {302 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))303 if e1 != 0 {304 err = errnoErr(e1)305 }306 return307 }308 309 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT310 311 281 func Setrlimit(resource int, rlim *Rlimit) (err error) { 312 282 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) 313 if e1 != 0 {314 err = errnoErr(e1)315 }316 return317 }318 319 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT320 321 func Setreuid(ruid int, euid int) (err error) {322 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)323 283 if e1 != 0 { 324 284 err = errnoErr(e1) -
trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go
r67 r69 249 249 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 250 250 251 func Setregid(rgid int, egid int) (err error) {252 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)253 if e1 != 0 {254 err = errnoErr(e1)255 }256 return257 }258 259 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT260 261 func Setresgid(rgid int, egid int, sgid int) (err error) {262 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))263 if e1 != 0 {264 err = errnoErr(e1)265 }266 return267 }268 269 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT270 271 func Setresuid(ruid int, euid int, suid int) (err error) {272 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))273 if e1 != 0 {274 err = errnoErr(e1)275 }276 return277 }278 279 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT280 281 func Setreuid(ruid int, euid int) (err error) {282 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)283 if e1 != 0 {284 err = errnoErr(e1)285 }286 return287 }288 289 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT290 291 251 func Shutdown(fd int, how int) (err error) { 292 252 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) -
trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc.go
r67 r69 309 309 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 310 310 311 func Setregid(rgid int, egid int) (err error) {312 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)313 if e1 != 0 {314 err = errnoErr(e1)315 }316 return317 }318 319 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT320 321 func Setresgid(rgid int, egid int, sgid int) (err error) {322 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))323 if e1 != 0 {324 err = errnoErr(e1)325 }326 return327 }328 329 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT330 331 func Setresuid(ruid int, euid int, suid int) (err error) {332 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))333 if e1 != 0 {334 err = errnoErr(e1)335 }336 return337 }338 339 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT340 341 func Setreuid(ruid int, euid int) (err error) {342 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)343 if e1 != 0 {344 err = errnoErr(e1)345 }346 return347 }348 349 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT350 351 311 func Shutdown(fd int, how int) (err error) { 352 312 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0) -
trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go
r67 r69 350 350 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 351 351 352 func Setregid(rgid int, egid int) (err error) {353 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)354 if e1 != 0 {355 err = errnoErr(e1)356 }357 return358 }359 360 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT361 362 func Setresgid(rgid int, egid int, sgid int) (err error) {363 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))364 if e1 != 0 {365 err = errnoErr(e1)366 }367 return368 }369 370 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT371 372 func Setresuid(ruid int, euid int, suid int) (err error) {373 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))374 if e1 != 0 {375 err = errnoErr(e1)376 }377 return378 }379 380 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT381 382 352 func Setrlimit(resource int, rlim *Rlimit) (err error) { 383 353 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) 384 if e1 != 0 {385 err = errnoErr(e1)386 }387 return388 }389 390 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT391 392 func Setreuid(ruid int, euid int) (err error) {393 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)394 354 if e1 != 0 { 395 355 err = errnoErr(e1) -
trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go
r67 r69 350 350 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 351 351 352 func Setregid(rgid int, egid int) (err error) {353 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)354 if e1 != 0 {355 err = errnoErr(e1)356 }357 return358 }359 360 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT361 362 func Setresgid(rgid int, egid int, sgid int) (err error) {363 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))364 if e1 != 0 {365 err = errnoErr(e1)366 }367 return368 }369 370 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT371 372 func Setresuid(ruid int, euid int, suid int) (err error) {373 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))374 if e1 != 0 {375 err = errnoErr(e1)376 }377 return378 }379 380 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT381 382 352 func Setrlimit(resource int, rlim *Rlimit) (err error) { 383 353 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) 384 if e1 != 0 {385 err = errnoErr(e1)386 }387 return388 }389 390 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT391 392 func Setreuid(ruid int, euid int) (err error) {393 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)394 354 if e1 != 0 { 395 355 err = errnoErr(e1) -
trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go
r67 r69 270 270 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 271 271 272 func Setregid(rgid int, egid int) (err error) {273 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)274 if e1 != 0 {275 err = errnoErr(e1)276 }277 return278 }279 280 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT281 282 func Setresgid(rgid int, egid int, sgid int) (err error) {283 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))284 if e1 != 0 {285 err = errnoErr(e1)286 }287 return288 }289 290 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT291 292 func Setresuid(ruid int, euid int, suid int) (err error) {293 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))294 if e1 != 0 {295 err = errnoErr(e1)296 }297 return298 }299 300 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT301 302 272 func Setrlimit(resource int, rlim *Rlimit) (err error) { 303 273 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) 304 if e1 != 0 {305 err = errnoErr(e1)306 }307 return308 }309 310 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT311 312 func Setreuid(ruid int, euid int) (err error) {313 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)314 274 if e1 != 0 { 315 275 err = errnoErr(e1) -
trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go
r67 r69 320 320 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 321 321 322 func Setregid(rgid int, egid int) (err error) {323 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)324 if e1 != 0 {325 err = errnoErr(e1)326 }327 return328 }329 330 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT331 332 func Setresgid(rgid int, egid int, sgid int) (err error) {333 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))334 if e1 != 0 {335 err = errnoErr(e1)336 }337 return338 }339 340 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT341 342 func Setresuid(ruid int, euid int, suid int) (err error) {343 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))344 if e1 != 0 {345 err = errnoErr(e1)346 }347 return348 }349 350 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT351 352 322 func Setrlimit(resource int, rlim *Rlimit) (err error) { 353 323 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) 354 if e1 != 0 {355 err = errnoErr(e1)356 }357 return358 }359 360 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT361 362 func Setreuid(ruid int, euid int) (err error) {363 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)364 324 if e1 != 0 { 365 325 err = errnoErr(e1) -
trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go
r67 r69 330 330 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 331 331 332 func Setregid(rgid int, egid int) (err error) {333 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0)334 if e1 != 0 {335 err = errnoErr(e1)336 }337 return338 }339 340 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT341 342 func Setresgid(rgid int, egid int, sgid int) (err error) {343 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid))344 if e1 != 0 {345 err = errnoErr(e1)346 }347 return348 }349 350 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT351 352 func Setresuid(ruid int, euid int, suid int) (err error) {353 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid))354 if e1 != 0 {355 err = errnoErr(e1)356 }357 return358 }359 360 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT361 362 332 func Setrlimit(resource int, rlim *Rlimit) (err error) { 363 333 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0) 364 if e1 != 0 {365 err = errnoErr(e1)366 }367 return368 }369 370 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT371 372 func Setreuid(ruid int, euid int) (err error) {373 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)374 334 if e1 != 0 { 375 335 err = errnoErr(e1) -
trunk/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go
r67 r69 1 // go run mksyscall.go -l32 -openbsd - tags openbsd,386 syscall_bsd.go syscall_openbsd.go syscall_openbsd_386.go1 // go run mksyscall.go -l32 -openbsd -libc -tags openbsd,386 syscall_bsd.go syscall_openbsd.go syscall_openbsd_386.go 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 17 17 18 18 func getgroups(ngid int, gid *_Gid_t) (n int, err error) { 19 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)19 r0, _, e1 := syscall_rawSyscall(libc_getgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) 20 20 n = int(r0) 21 21 if e1 != 0 { … … 25 25 } 26 26 27 var libc_getgroups_trampoline_addr uintptr 28 29 //go:cgo_import_dynamic libc_getgroups getgroups "libc.so" 30 27 31 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 28 32 29 33 func setgroups(ngid int, gid *_Gid_t) (err error) { 30 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) 31 if e1 != 0 { 32 err = errnoErr(e1) 33 } 34 return 35 } 34 _, _, e1 := syscall_rawSyscall(libc_setgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) 35 if e1 != 0 { 36 err = errnoErr(e1) 37 } 38 return 39 } 40 41 var libc_setgroups_trampoline_addr uintptr 42 43 //go:cgo_import_dynamic libc_setgroups setgroups "libc.so" 36 44 37 45 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 38 46 39 47 func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { 40 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)48 r0, _, e1 := syscall_syscall6(libc_wait4_trampoline_addr, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) 41 49 wpid = int(r0) 42 50 if e1 != 0 { … … 46 54 } 47 55 56 var libc_wait4_trampoline_addr uintptr 57 58 //go:cgo_import_dynamic libc_wait4 wait4 "libc.so" 59 48 60 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 49 61 50 62 func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { 51 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))63 r0, _, e1 := syscall_syscall(libc_accept_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 52 64 fd = int(r0) 53 65 if e1 != 0 { … … 57 69 } 58 70 71 var libc_accept_trampoline_addr uintptr 72 73 //go:cgo_import_dynamic libc_accept accept "libc.so" 74 59 75 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 60 76 61 77 func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { 62 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) 63 if e1 != 0 { 64 err = errnoErr(e1) 65 } 66 return 67 } 78 _, _, e1 := syscall_syscall(libc_bind_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) 79 if e1 != 0 { 80 err = errnoErr(e1) 81 } 82 return 83 } 84 85 var libc_bind_trampoline_addr uintptr 86 87 //go:cgo_import_dynamic libc_bind bind "libc.so" 68 88 69 89 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 70 90 71 91 func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { 72 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) 73 if e1 != 0 { 74 err = errnoErr(e1) 75 } 76 return 77 } 92 _, _, e1 := syscall_syscall(libc_connect_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) 93 if e1 != 0 { 94 err = errnoErr(e1) 95 } 96 return 97 } 98 99 var libc_connect_trampoline_addr uintptr 100 101 //go:cgo_import_dynamic libc_connect connect "libc.so" 78 102 79 103 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 80 104 81 105 func socket(domain int, typ int, proto int) (fd int, err error) { 82 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))106 r0, _, e1 := syscall_rawSyscall(libc_socket_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto)) 83 107 fd = int(r0) 84 108 if e1 != 0 { … … 88 112 } 89 113 114 var libc_socket_trampoline_addr uintptr 115 116 //go:cgo_import_dynamic libc_socket socket "libc.so" 117 90 118 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 91 119 92 120 func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { 93 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) 94 if e1 != 0 { 95 err = errnoErr(e1) 96 } 97 return 98 } 121 _, _, e1 := syscall_syscall6(libc_getsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) 122 if e1 != 0 { 123 err = errnoErr(e1) 124 } 125 return 126 } 127 128 var libc_getsockopt_trampoline_addr uintptr 129 130 //go:cgo_import_dynamic libc_getsockopt getsockopt "libc.so" 99 131 100 132 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 101 133 102 134 func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { 103 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) 104 if e1 != 0 { 105 err = errnoErr(e1) 106 } 107 return 108 } 135 _, _, e1 := syscall_syscall6(libc_setsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) 136 if e1 != 0 { 137 err = errnoErr(e1) 138 } 139 return 140 } 141 142 var libc_setsockopt_trampoline_addr uintptr 143 144 //go:cgo_import_dynamic libc_setsockopt setsockopt "libc.so" 109 145 110 146 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 111 147 112 148 func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { 113 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 114 if e1 != 0 { 115 err = errnoErr(e1) 116 } 117 return 118 } 149 _, _, e1 := syscall_rawSyscall(libc_getpeername_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 150 if e1 != 0 { 151 err = errnoErr(e1) 152 } 153 return 154 } 155 156 var libc_getpeername_trampoline_addr uintptr 157 158 //go:cgo_import_dynamic libc_getpeername getpeername "libc.so" 119 159 120 160 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 121 161 122 162 func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { 123 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 124 if e1 != 0 { 125 err = errnoErr(e1) 126 } 127 return 128 } 163 _, _, e1 := syscall_rawSyscall(libc_getsockname_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 164 if e1 != 0 { 165 err = errnoErr(e1) 166 } 167 return 168 } 169 170 var libc_getsockname_trampoline_addr uintptr 171 172 //go:cgo_import_dynamic libc_getsockname getsockname "libc.so" 129 173 130 174 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 131 175 132 176 func Shutdown(s int, how int) (err error) { 133 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) 134 if e1 != 0 { 135 err = errnoErr(e1) 136 } 137 return 138 } 177 _, _, e1 := syscall_syscall(libc_shutdown_trampoline_addr, uintptr(s), uintptr(how), 0) 178 if e1 != 0 { 179 err = errnoErr(e1) 180 } 181 return 182 } 183 184 var libc_shutdown_trampoline_addr uintptr 185 186 //go:cgo_import_dynamic libc_shutdown shutdown "libc.so" 139 187 140 188 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 141 189 142 190 func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { 143 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) 144 if e1 != 0 { 145 err = errnoErr(e1) 146 } 147 return 148 } 191 _, _, e1 := syscall_rawSyscall6(libc_socketpair_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) 192 if e1 != 0 { 193 err = errnoErr(e1) 194 } 195 return 196 } 197 198 var libc_socketpair_trampoline_addr uintptr 199 200 //go:cgo_import_dynamic libc_socketpair socketpair "libc.so" 149 201 150 202 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 157 209 _p0 = unsafe.Pointer(&_zero) 158 210 } 159 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))211 r0, _, e1 := syscall_syscall6(libc_recvfrom_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) 160 212 n = int(r0) 161 213 if e1 != 0 { … … 164 216 return 165 217 } 218 219 var libc_recvfrom_trampoline_addr uintptr 220 221 //go:cgo_import_dynamic libc_recvfrom recvfrom "libc.so" 166 222 167 223 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 174 230 _p0 = unsafe.Pointer(&_zero) 175 231 } 176 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) 177 if e1 != 0 { 178 err = errnoErr(e1) 179 } 180 return 181 } 232 _, _, e1 := syscall_syscall6(libc_sendto_trampoline_addr, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) 233 if e1 != 0 { 234 err = errnoErr(e1) 235 } 236 return 237 } 238 239 var libc_sendto_trampoline_addr uintptr 240 241 //go:cgo_import_dynamic libc_sendto sendto "libc.so" 182 242 183 243 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 184 244 185 245 func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { 186 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))246 r0, _, e1 := syscall_syscall(libc_recvmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) 187 247 n = int(r0) 188 248 if e1 != 0 { … … 192 252 } 193 253 254 var libc_recvmsg_trampoline_addr uintptr 255 256 //go:cgo_import_dynamic libc_recvmsg recvmsg "libc.so" 257 194 258 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 195 259 196 260 func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { 197 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))261 r0, _, e1 := syscall_syscall(libc_sendmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) 198 262 n = int(r0) 199 263 if e1 != 0 { … … 203 267 } 204 268 269 var libc_sendmsg_trampoline_addr uintptr 270 271 //go:cgo_import_dynamic libc_sendmsg sendmsg "libc.so" 272 205 273 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 206 274 207 275 func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { 208 r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))276 r0, _, e1 := syscall_syscall6(libc_kevent_trampoline_addr, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) 209 277 n = int(r0) 210 278 if e1 != 0 { … … 214 282 } 215 283 284 var libc_kevent_trampoline_addr uintptr 285 286 //go:cgo_import_dynamic libc_kevent kevent "libc.so" 287 216 288 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 217 289 … … 222 294 return 223 295 } 224 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) 225 if e1 != 0 { 226 err = errnoErr(e1) 227 } 228 return 229 } 296 _, _, e1 := syscall_syscall(libc_utimes_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) 297 if e1 != 0 { 298 err = errnoErr(e1) 299 } 300 return 301 } 302 303 var libc_utimes_trampoline_addr uintptr 304 305 //go:cgo_import_dynamic libc_utimes utimes "libc.so" 230 306 231 307 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 232 308 233 309 func futimes(fd int, timeval *[2]Timeval) (err error) { 234 _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) 235 if e1 != 0 { 236 err = errnoErr(e1) 237 } 238 return 239 } 310 _, _, e1 := syscall_syscall(libc_futimes_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) 311 if e1 != 0 { 312 err = errnoErr(e1) 313 } 314 return 315 } 316 317 var libc_futimes_trampoline_addr uintptr 318 319 //go:cgo_import_dynamic libc_futimes futimes "libc.so" 240 320 241 321 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 242 322 243 323 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { 244 r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))324 r0, _, e1 := syscall_syscall(libc_poll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) 245 325 n = int(r0) 246 326 if e1 != 0 { … … 249 329 return 250 330 } 331 332 var libc_poll_trampoline_addr uintptr 333 334 //go:cgo_import_dynamic libc_poll poll "libc.so" 251 335 252 336 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 259 343 _p0 = unsafe.Pointer(&_zero) 260 344 } 261 _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) 262 if e1 != 0 { 263 err = errnoErr(e1) 264 } 265 return 266 } 345 _, _, e1 := syscall_syscall(libc_madvise_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(behav)) 346 if e1 != 0 { 347 err = errnoErr(e1) 348 } 349 return 350 } 351 352 var libc_madvise_trampoline_addr uintptr 353 354 //go:cgo_import_dynamic libc_madvise madvise "libc.so" 267 355 268 356 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 275 363 _p0 = unsafe.Pointer(&_zero) 276 364 } 277 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) 278 if e1 != 0 { 279 err = errnoErr(e1) 280 } 281 return 282 } 365 _, _, e1 := syscall_syscall(libc_mlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) 366 if e1 != 0 { 367 err = errnoErr(e1) 368 } 369 return 370 } 371 372 var libc_mlock_trampoline_addr uintptr 373 374 //go:cgo_import_dynamic libc_mlock mlock "libc.so" 283 375 284 376 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 285 377 286 378 func Mlockall(flags int) (err error) { 287 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) 288 if e1 != 0 { 289 err = errnoErr(e1) 290 } 291 return 292 } 379 _, _, e1 := syscall_syscall(libc_mlockall_trampoline_addr, uintptr(flags), 0, 0) 380 if e1 != 0 { 381 err = errnoErr(e1) 382 } 383 return 384 } 385 386 var libc_mlockall_trampoline_addr uintptr 387 388 //go:cgo_import_dynamic libc_mlockall mlockall "libc.so" 293 389 294 390 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 301 397 _p0 = unsafe.Pointer(&_zero) 302 398 } 303 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) 304 if e1 != 0 { 305 err = errnoErr(e1) 306 } 307 return 308 } 399 _, _, e1 := syscall_syscall(libc_mprotect_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(prot)) 400 if e1 != 0 { 401 err = errnoErr(e1) 402 } 403 return 404 } 405 406 var libc_mprotect_trampoline_addr uintptr 407 408 //go:cgo_import_dynamic libc_mprotect mprotect "libc.so" 309 409 310 410 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 317 417 _p0 = unsafe.Pointer(&_zero) 318 418 } 319 _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) 320 if e1 != 0 { 321 err = errnoErr(e1) 322 } 323 return 324 } 419 _, _, e1 := syscall_syscall(libc_msync_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(flags)) 420 if e1 != 0 { 421 err = errnoErr(e1) 422 } 423 return 424 } 425 426 var libc_msync_trampoline_addr uintptr 427 428 //go:cgo_import_dynamic libc_msync msync "libc.so" 325 429 326 430 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 333 437 _p0 = unsafe.Pointer(&_zero) 334 438 } 335 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) 336 if e1 != 0 { 337 err = errnoErr(e1) 338 } 339 return 340 } 439 _, _, e1 := syscall_syscall(libc_munlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) 440 if e1 != 0 { 441 err = errnoErr(e1) 442 } 443 return 444 } 445 446 var libc_munlock_trampoline_addr uintptr 447 448 //go:cgo_import_dynamic libc_munlock munlock "libc.so" 341 449 342 450 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 343 451 344 452 func Munlockall() (err error) { 345 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) 346 if e1 != 0 { 347 err = errnoErr(e1) 348 } 349 return 350 } 453 _, _, e1 := syscall_syscall(libc_munlockall_trampoline_addr, 0, 0, 0) 454 if e1 != 0 { 455 err = errnoErr(e1) 456 } 457 return 458 } 459 460 var libc_munlockall_trampoline_addr uintptr 461 462 //go:cgo_import_dynamic libc_munlockall munlockall "libc.so" 351 463 352 464 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 353 465 354 466 func pipe2(p *[2]_C_int, flags int) (err error) { 355 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) 356 if e1 != 0 { 357 err = errnoErr(e1) 358 } 359 return 360 } 467 _, _, e1 := syscall_rawSyscall(libc_pipe2_trampoline_addr, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) 468 if e1 != 0 { 469 err = errnoErr(e1) 470 } 471 return 472 } 473 474 var libc_pipe2_trampoline_addr uintptr 475 476 //go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so" 361 477 362 478 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 369 485 _p0 = unsafe.Pointer(&_zero) 370 486 } 371 r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf)))487 r0, _, e1 := syscall_syscall(libc_getdents_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(buf))) 372 488 n = int(r0) 373 489 if e1 != 0 { … … 376 492 return 377 493 } 494 495 var libc_getdents_trampoline_addr uintptr 496 497 //go:cgo_import_dynamic libc_getdents getdents "libc.so" 378 498 379 499 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 386 506 _p0 = unsafe.Pointer(&_zero) 387 507 } 388 r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0)508 r0, _, e1 := syscall_syscall(libc_getcwd_trampoline_addr, uintptr(_p0), uintptr(len(buf)), 0) 389 509 n = int(r0) 390 510 if e1 != 0 { … … 394 514 } 395 515 516 var libc_getcwd_trampoline_addr uintptr 517 518 //go:cgo_import_dynamic libc_getcwd getcwd "libc.so" 519 396 520 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 397 521 398 522 func ioctl(fd int, req uint, arg uintptr) (err error) { 399 _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) 400 if e1 != 0 { 401 err = errnoErr(e1) 402 } 403 return 404 } 523 _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) 524 if e1 != 0 { 525 err = errnoErr(e1) 526 } 527 return 528 } 529 530 var libc_ioctl_trampoline_addr uintptr 531 532 //go:cgo_import_dynamic libc_ioctl ioctl "libc.so" 405 533 406 534 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 413 541 _p0 = unsafe.Pointer(&_zero) 414 542 } 415 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) 416 if e1 != 0 { 417 err = errnoErr(e1) 418 } 419 return 420 } 543 _, _, e1 := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) 544 if e1 != 0 { 545 err = errnoErr(e1) 546 } 547 return 548 } 549 550 var libc_sysctl_trampoline_addr uintptr 551 552 //go:cgo_import_dynamic libc_sysctl sysctl "libc.so" 421 553 422 554 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 423 555 424 556 func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { 425 r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0)557 r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) 426 558 n = int(r0) 427 559 if e1 != 0 { … … 431 563 } 432 564 565 var libc_ppoll_trampoline_addr uintptr 566 567 //go:cgo_import_dynamic libc_ppoll ppoll "libc.so" 568 433 569 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 434 570 … … 439 575 return 440 576 } 441 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 442 if e1 != 0 { 443 err = errnoErr(e1) 444 } 445 return 446 } 577 _, _, e1 := syscall_syscall(libc_access_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 578 if e1 != 0 { 579 err = errnoErr(e1) 580 } 581 return 582 } 583 584 var libc_access_trampoline_addr uintptr 585 586 //go:cgo_import_dynamic libc_access access "libc.so" 447 587 448 588 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 449 589 450 590 func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { 451 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) 452 if e1 != 0 { 453 err = errnoErr(e1) 454 } 455 return 456 } 591 _, _, e1 := syscall_syscall(libc_adjtime_trampoline_addr, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) 592 if e1 != 0 { 593 err = errnoErr(e1) 594 } 595 return 596 } 597 598 var libc_adjtime_trampoline_addr uintptr 599 600 //go:cgo_import_dynamic libc_adjtime adjtime "libc.so" 457 601 458 602 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 464 608 return 465 609 } 466 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) 467 if e1 != 0 { 468 err = errnoErr(e1) 469 } 470 return 471 } 610 _, _, e1 := syscall_syscall(libc_chdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 611 if e1 != 0 { 612 err = errnoErr(e1) 613 } 614 return 615 } 616 617 var libc_chdir_trampoline_addr uintptr 618 619 //go:cgo_import_dynamic libc_chdir chdir "libc.so" 472 620 473 621 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 479 627 return 480 628 } 481 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 482 if e1 != 0 { 483 err = errnoErr(e1) 484 } 485 return 486 } 629 _, _, e1 := syscall_syscall(libc_chflags_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 630 if e1 != 0 { 631 err = errnoErr(e1) 632 } 633 return 634 } 635 636 var libc_chflags_trampoline_addr uintptr 637 638 //go:cgo_import_dynamic libc_chflags chflags "libc.so" 487 639 488 640 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 494 646 return 495 647 } 496 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 497 if e1 != 0 { 498 err = errnoErr(e1) 499 } 500 return 501 } 648 _, _, e1 := syscall_syscall(libc_chmod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 649 if e1 != 0 { 650 err = errnoErr(e1) 651 } 652 return 653 } 654 655 var libc_chmod_trampoline_addr uintptr 656 657 //go:cgo_import_dynamic libc_chmod chmod "libc.so" 502 658 503 659 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 509 665 return 510 666 } 511 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 512 if e1 != 0 { 513 err = errnoErr(e1) 514 } 515 return 516 } 667 _, _, e1 := syscall_syscall(libc_chown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 668 if e1 != 0 { 669 err = errnoErr(e1) 670 } 671 return 672 } 673 674 var libc_chown_trampoline_addr uintptr 675 676 //go:cgo_import_dynamic libc_chown chown "libc.so" 517 677 518 678 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 524 684 return 525 685 } 526 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) 527 if e1 != 0 { 528 err = errnoErr(e1) 529 } 530 return 531 } 686 _, _, e1 := syscall_syscall(libc_chroot_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 687 if e1 != 0 { 688 err = errnoErr(e1) 689 } 690 return 691 } 692 693 var libc_chroot_trampoline_addr uintptr 694 695 //go:cgo_import_dynamic libc_chroot chroot "libc.so" 532 696 533 697 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 534 698 535 699 func Close(fd int) (err error) { 536 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) 537 if e1 != 0 { 538 err = errnoErr(e1) 539 } 540 return 541 } 700 _, _, e1 := syscall_syscall(libc_close_trampoline_addr, uintptr(fd), 0, 0) 701 if e1 != 0 { 702 err = errnoErr(e1) 703 } 704 return 705 } 706 707 var libc_close_trampoline_addr uintptr 708 709 //go:cgo_import_dynamic libc_close close "libc.so" 542 710 543 711 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 544 712 545 713 func Dup(fd int) (nfd int, err error) { 546 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)714 r0, _, e1 := syscall_syscall(libc_dup_trampoline_addr, uintptr(fd), 0, 0) 547 715 nfd = int(r0) 548 716 if e1 != 0 { … … 552 720 } 553 721 722 var libc_dup_trampoline_addr uintptr 723 724 //go:cgo_import_dynamic libc_dup dup "libc.so" 725 554 726 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 555 727 556 728 func Dup2(from int, to int) (err error) { 557 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) 558 if e1 != 0 { 559 err = errnoErr(e1) 560 } 561 return 562 } 729 _, _, e1 := syscall_syscall(libc_dup2_trampoline_addr, uintptr(from), uintptr(to), 0) 730 if e1 != 0 { 731 err = errnoErr(e1) 732 } 733 return 734 } 735 736 var libc_dup2_trampoline_addr uintptr 737 738 //go:cgo_import_dynamic libc_dup2 dup2 "libc.so" 563 739 564 740 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 565 741 566 742 func Dup3(from int, to int, flags int) (err error) { 567 _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags)) 568 if e1 != 0 { 569 err = errnoErr(e1) 570 } 571 return 572 } 743 _, _, e1 := syscall_syscall(libc_dup3_trampoline_addr, uintptr(from), uintptr(to), uintptr(flags)) 744 if e1 != 0 { 745 err = errnoErr(e1) 746 } 747 return 748 } 749 750 var libc_dup3_trampoline_addr uintptr 751 752 //go:cgo_import_dynamic libc_dup3 dup3 "libc.so" 573 753 574 754 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 575 755 576 756 func Exit(code int) { 577 Syscall(SYS_EXIT, uintptr(code), 0, 0) 578 return 579 } 757 syscall_syscall(libc_exit_trampoline_addr, uintptr(code), 0, 0) 758 return 759 } 760 761 var libc_exit_trampoline_addr uintptr 762 763 //go:cgo_import_dynamic libc_exit exit "libc.so" 580 764 581 765 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 587 771 return 588 772 } 589 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 590 if e1 != 0 { 591 err = errnoErr(e1) 592 } 593 return 594 } 773 _, _, e1 := syscall_syscall6(libc_faccessat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 774 if e1 != 0 { 775 err = errnoErr(e1) 776 } 777 return 778 } 779 780 var libc_faccessat_trampoline_addr uintptr 781 782 //go:cgo_import_dynamic libc_faccessat faccessat "libc.so" 595 783 596 784 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 597 785 598 786 func Fchdir(fd int) (err error) { 599 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) 600 if e1 != 0 { 601 err = errnoErr(e1) 602 } 603 return 604 } 787 _, _, e1 := syscall_syscall(libc_fchdir_trampoline_addr, uintptr(fd), 0, 0) 788 if e1 != 0 { 789 err = errnoErr(e1) 790 } 791 return 792 } 793 794 var libc_fchdir_trampoline_addr uintptr 795 796 //go:cgo_import_dynamic libc_fchdir fchdir "libc.so" 605 797 606 798 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 607 799 608 800 func Fchflags(fd int, flags int) (err error) { 609 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) 610 if e1 != 0 { 611 err = errnoErr(e1) 612 } 613 return 614 } 801 _, _, e1 := syscall_syscall(libc_fchflags_trampoline_addr, uintptr(fd), uintptr(flags), 0) 802 if e1 != 0 { 803 err = errnoErr(e1) 804 } 805 return 806 } 807 808 var libc_fchflags_trampoline_addr uintptr 809 810 //go:cgo_import_dynamic libc_fchflags fchflags "libc.so" 615 811 616 812 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 617 813 618 814 func Fchmod(fd int, mode uint32) (err error) { 619 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) 620 if e1 != 0 { 621 err = errnoErr(e1) 622 } 623 return 624 } 815 _, _, e1 := syscall_syscall(libc_fchmod_trampoline_addr, uintptr(fd), uintptr(mode), 0) 816 if e1 != 0 { 817 err = errnoErr(e1) 818 } 819 return 820 } 821 822 var libc_fchmod_trampoline_addr uintptr 823 824 //go:cgo_import_dynamic libc_fchmod fchmod "libc.so" 625 825 626 826 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 632 832 return 633 833 } 634 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 635 if e1 != 0 { 636 err = errnoErr(e1) 637 } 638 return 639 } 834 _, _, e1 := syscall_syscall6(libc_fchmodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 835 if e1 != 0 { 836 err = errnoErr(e1) 837 } 838 return 839 } 840 841 var libc_fchmodat_trampoline_addr uintptr 842 843 //go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so" 640 844 641 845 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 642 846 643 847 func Fchown(fd int, uid int, gid int) (err error) { 644 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) 645 if e1 != 0 { 646 err = errnoErr(e1) 647 } 648 return 649 } 848 _, _, e1 := syscall_syscall(libc_fchown_trampoline_addr, uintptr(fd), uintptr(uid), uintptr(gid)) 849 if e1 != 0 { 850 err = errnoErr(e1) 851 } 852 return 853 } 854 855 var libc_fchown_trampoline_addr uintptr 856 857 //go:cgo_import_dynamic libc_fchown fchown "libc.so" 650 858 651 859 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 657 865 return 658 866 } 659 _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) 660 if e1 != 0 { 661 err = errnoErr(e1) 662 } 663 return 664 } 867 _, _, e1 := syscall_syscall6(libc_fchownat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) 868 if e1 != 0 { 869 err = errnoErr(e1) 870 } 871 return 872 } 873 874 var libc_fchownat_trampoline_addr uintptr 875 876 //go:cgo_import_dynamic libc_fchownat fchownat "libc.so" 665 877 666 878 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 667 879 668 880 func Flock(fd int, how int) (err error) { 669 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) 670 if e1 != 0 { 671 err = errnoErr(e1) 672 } 673 return 674 } 881 _, _, e1 := syscall_syscall(libc_flock_trampoline_addr, uintptr(fd), uintptr(how), 0) 882 if e1 != 0 { 883 err = errnoErr(e1) 884 } 885 return 886 } 887 888 var libc_flock_trampoline_addr uintptr 889 890 //go:cgo_import_dynamic libc_flock flock "libc.so" 675 891 676 892 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 677 893 678 894 func Fpathconf(fd int, name int) (val int, err error) { 679 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)895 r0, _, e1 := syscall_syscall(libc_fpathconf_trampoline_addr, uintptr(fd), uintptr(name), 0) 680 896 val = int(r0) 681 897 if e1 != 0 { … … 685 901 } 686 902 903 var libc_fpathconf_trampoline_addr uintptr 904 905 //go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so" 906 687 907 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 688 908 689 909 func Fstat(fd int, stat *Stat_t) (err error) { 690 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 691 if e1 != 0 { 692 err = errnoErr(e1) 693 } 694 return 695 } 910 _, _, e1 := syscall_syscall(libc_fstat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 911 if e1 != 0 { 912 err = errnoErr(e1) 913 } 914 return 915 } 916 917 var libc_fstat_trampoline_addr uintptr 918 919 //go:cgo_import_dynamic libc_fstat fstat "libc.so" 696 920 697 921 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 703 927 return 704 928 } 705 _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) 706 if e1 != 0 { 707 err = errnoErr(e1) 708 } 709 return 710 } 929 _, _, e1 := syscall_syscall6(libc_fstatat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) 930 if e1 != 0 { 931 err = errnoErr(e1) 932 } 933 return 934 } 935 936 var libc_fstatat_trampoline_addr uintptr 937 938 //go:cgo_import_dynamic libc_fstatat fstatat "libc.so" 711 939 712 940 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 713 941 714 942 func Fstatfs(fd int, stat *Statfs_t) (err error) { 715 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 716 if e1 != 0 { 717 err = errnoErr(e1) 718 } 719 return 720 } 943 _, _, e1 := syscall_syscall(libc_fstatfs_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 944 if e1 != 0 { 945 err = errnoErr(e1) 946 } 947 return 948 } 949 950 var libc_fstatfs_trampoline_addr uintptr 951 952 //go:cgo_import_dynamic libc_fstatfs fstatfs "libc.so" 721 953 722 954 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 723 955 724 956 func Fsync(fd int) (err error) { 725 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) 726 if e1 != 0 { 727 err = errnoErr(e1) 728 } 729 return 730 } 957 _, _, e1 := syscall_syscall(libc_fsync_trampoline_addr, uintptr(fd), 0, 0) 958 if e1 != 0 { 959 err = errnoErr(e1) 960 } 961 return 962 } 963 964 var libc_fsync_trampoline_addr uintptr 965 966 //go:cgo_import_dynamic libc_fsync fsync "libc.so" 731 967 732 968 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 733 969 734 970 func Ftruncate(fd int, length int64) (err error) { 735 _, _, e1 := Syscall6(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0) 736 if e1 != 0 { 737 err = errnoErr(e1) 738 } 739 return 740 } 971 _, _, e1 := syscall_syscall(libc_ftruncate_trampoline_addr, uintptr(fd), uintptr(length), uintptr(length>>32)) 972 if e1 != 0 { 973 err = errnoErr(e1) 974 } 975 return 976 } 977 978 var libc_ftruncate_trampoline_addr uintptr 979 980 //go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so" 741 981 742 982 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 743 983 744 984 func Getegid() (egid int) { 745 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)985 r0, _, _ := syscall_rawSyscall(libc_getegid_trampoline_addr, 0, 0, 0) 746 986 egid = int(r0) 747 987 return 748 988 } 749 989 990 var libc_getegid_trampoline_addr uintptr 991 992 //go:cgo_import_dynamic libc_getegid getegid "libc.so" 993 750 994 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 751 995 752 996 func Geteuid() (uid int) { 753 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)997 r0, _, _ := syscall_rawSyscall(libc_geteuid_trampoline_addr, 0, 0, 0) 754 998 uid = int(r0) 755 999 return 756 1000 } 757 1001 1002 var libc_geteuid_trampoline_addr uintptr 1003 1004 //go:cgo_import_dynamic libc_geteuid geteuid "libc.so" 1005 758 1006 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 759 1007 760 1008 func Getgid() (gid int) { 761 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)1009 r0, _, _ := syscall_rawSyscall(libc_getgid_trampoline_addr, 0, 0, 0) 762 1010 gid = int(r0) 763 1011 return 764 1012 } 765 1013 1014 var libc_getgid_trampoline_addr uintptr 1015 1016 //go:cgo_import_dynamic libc_getgid getgid "libc.so" 1017 766 1018 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 767 1019 768 1020 func Getpgid(pid int) (pgid int, err error) { 769 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)1021 r0, _, e1 := syscall_rawSyscall(libc_getpgid_trampoline_addr, uintptr(pid), 0, 0) 770 1022 pgid = int(r0) 771 1023 if e1 != 0 { … … 775 1027 } 776 1028 1029 var libc_getpgid_trampoline_addr uintptr 1030 1031 //go:cgo_import_dynamic libc_getpgid getpgid "libc.so" 1032 777 1033 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 778 1034 779 1035 func Getpgrp() (pgrp int) { 780 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)1036 r0, _, _ := syscall_rawSyscall(libc_getpgrp_trampoline_addr, 0, 0, 0) 781 1037 pgrp = int(r0) 782 1038 return 783 1039 } 784 1040 1041 var libc_getpgrp_trampoline_addr uintptr 1042 1043 //go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so" 1044 785 1045 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 786 1046 787 1047 func Getpid() (pid int) { 788 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)1048 r0, _, _ := syscall_rawSyscall(libc_getpid_trampoline_addr, 0, 0, 0) 789 1049 pid = int(r0) 790 1050 return 791 1051 } 792 1052 1053 var libc_getpid_trampoline_addr uintptr 1054 1055 //go:cgo_import_dynamic libc_getpid getpid "libc.so" 1056 793 1057 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 794 1058 795 1059 func Getppid() (ppid int) { 796 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)1060 r0, _, _ := syscall_rawSyscall(libc_getppid_trampoline_addr, 0, 0, 0) 797 1061 ppid = int(r0) 798 1062 return 799 1063 } 800 1064 1065 var libc_getppid_trampoline_addr uintptr 1066 1067 //go:cgo_import_dynamic libc_getppid getppid "libc.so" 1068 801 1069 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 802 1070 803 1071 func Getpriority(which int, who int) (prio int, err error) { 804 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)1072 r0, _, e1 := syscall_syscall(libc_getpriority_trampoline_addr, uintptr(which), uintptr(who), 0) 805 1073 prio = int(r0) 806 1074 if e1 != 0 { … … 810 1078 } 811 1079 1080 var libc_getpriority_trampoline_addr uintptr 1081 1082 //go:cgo_import_dynamic libc_getpriority getpriority "libc.so" 1083 812 1084 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 813 1085 814 1086 func Getrlimit(which int, lim *Rlimit) (err error) { 815 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 816 if e1 != 0 { 817 err = errnoErr(e1) 818 } 819 return 820 } 1087 _, _, e1 := syscall_rawSyscall(libc_getrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 1088 if e1 != 0 { 1089 err = errnoErr(e1) 1090 } 1091 return 1092 } 1093 1094 var libc_getrlimit_trampoline_addr uintptr 1095 1096 //go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so" 821 1097 822 1098 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 823 1099 824 1100 func Getrtable() (rtable int, err error) { 825 r0, _, e1 := RawSyscall(SYS_GETRTABLE, 0, 0, 0)1101 r0, _, e1 := syscall_rawSyscall(libc_getrtable_trampoline_addr, 0, 0, 0) 826 1102 rtable = int(r0) 827 1103 if e1 != 0 { … … 831 1107 } 832 1108 1109 var libc_getrtable_trampoline_addr uintptr 1110 1111 //go:cgo_import_dynamic libc_getrtable getrtable "libc.so" 1112 833 1113 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 834 1114 835 1115 func Getrusage(who int, rusage *Rusage) (err error) { 836 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) 837 if e1 != 0 { 838 err = errnoErr(e1) 839 } 840 return 841 } 1116 _, _, e1 := syscall_rawSyscall(libc_getrusage_trampoline_addr, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) 1117 if e1 != 0 { 1118 err = errnoErr(e1) 1119 } 1120 return 1121 } 1122 1123 var libc_getrusage_trampoline_addr uintptr 1124 1125 //go:cgo_import_dynamic libc_getrusage getrusage "libc.so" 842 1126 843 1127 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 844 1128 845 1129 func Getsid(pid int) (sid int, err error) { 846 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)1130 r0, _, e1 := syscall_rawSyscall(libc_getsid_trampoline_addr, uintptr(pid), 0, 0) 847 1131 sid = int(r0) 848 1132 if e1 != 0 { … … 852 1136 } 853 1137 1138 var libc_getsid_trampoline_addr uintptr 1139 1140 //go:cgo_import_dynamic libc_getsid getsid "libc.so" 1141 854 1142 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 855 1143 856 1144 func Gettimeofday(tv *Timeval) (err error) { 857 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) 858 if e1 != 0 { 859 err = errnoErr(e1) 860 } 861 return 862 } 1145 _, _, e1 := syscall_rawSyscall(libc_gettimeofday_trampoline_addr, uintptr(unsafe.Pointer(tv)), 0, 0) 1146 if e1 != 0 { 1147 err = errnoErr(e1) 1148 } 1149 return 1150 } 1151 1152 var libc_gettimeofday_trampoline_addr uintptr 1153 1154 //go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so" 863 1155 864 1156 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 865 1157 866 1158 func Getuid() (uid int) { 867 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)1159 r0, _, _ := syscall_rawSyscall(libc_getuid_trampoline_addr, 0, 0, 0) 868 1160 uid = int(r0) 869 1161 return 870 1162 } 871 1163 1164 var libc_getuid_trampoline_addr uintptr 1165 1166 //go:cgo_import_dynamic libc_getuid getuid "libc.so" 1167 872 1168 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 873 1169 874 1170 func Issetugid() (tainted bool) { 875 r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)1171 r0, _, _ := syscall_syscall(libc_issetugid_trampoline_addr, 0, 0, 0) 876 1172 tainted = bool(r0 != 0) 877 1173 return 878 1174 } 879 1175 1176 var libc_issetugid_trampoline_addr uintptr 1177 1178 //go:cgo_import_dynamic libc_issetugid issetugid "libc.so" 1179 880 1180 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 881 1181 882 1182 func Kill(pid int, signum syscall.Signal) (err error) { 883 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) 884 if e1 != 0 { 885 err = errnoErr(e1) 886 } 887 return 888 } 1183 _, _, e1 := syscall_syscall(libc_kill_trampoline_addr, uintptr(pid), uintptr(signum), 0) 1184 if e1 != 0 { 1185 err = errnoErr(e1) 1186 } 1187 return 1188 } 1189 1190 var libc_kill_trampoline_addr uintptr 1191 1192 //go:cgo_import_dynamic libc_kill kill "libc.so" 889 1193 890 1194 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 891 1195 892 1196 func Kqueue() (fd int, err error) { 893 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)1197 r0, _, e1 := syscall_syscall(libc_kqueue_trampoline_addr, 0, 0, 0) 894 1198 fd = int(r0) 895 1199 if e1 != 0 { … … 899 1203 } 900 1204 1205 var libc_kqueue_trampoline_addr uintptr 1206 1207 //go:cgo_import_dynamic libc_kqueue kqueue "libc.so" 1208 901 1209 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 902 1210 … … 907 1215 return 908 1216 } 909 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 910 if e1 != 0 { 911 err = errnoErr(e1) 912 } 913 return 914 } 1217 _, _, e1 := syscall_syscall(libc_lchown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 1218 if e1 != 0 { 1219 err = errnoErr(e1) 1220 } 1221 return 1222 } 1223 1224 var libc_lchown_trampoline_addr uintptr 1225 1226 //go:cgo_import_dynamic libc_lchown lchown "libc.so" 915 1227 916 1228 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 927 1239 return 928 1240 } 929 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 930 if e1 != 0 { 931 err = errnoErr(e1) 932 } 933 return 934 } 1241 _, _, e1 := syscall_syscall(libc_link_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1242 if e1 != 0 { 1243 err = errnoErr(e1) 1244 } 1245 return 1246 } 1247 1248 var libc_link_trampoline_addr uintptr 1249 1250 //go:cgo_import_dynamic libc_link link "libc.so" 935 1251 936 1252 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 947 1263 return 948 1264 } 949 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 950 if e1 != 0 { 951 err = errnoErr(e1) 952 } 953 return 954 } 1265 _, _, e1 := syscall_syscall6(libc_linkat_trampoline_addr, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 1266 if e1 != 0 { 1267 err = errnoErr(e1) 1268 } 1269 return 1270 } 1271 1272 var libc_linkat_trampoline_addr uintptr 1273 1274 //go:cgo_import_dynamic libc_linkat linkat "libc.so" 955 1275 956 1276 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 957 1277 958 1278 func Listen(s int, backlog int) (err error) { 959 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) 960 if e1 != 0 { 961 err = errnoErr(e1) 962 } 963 return 964 } 1279 _, _, e1 := syscall_syscall(libc_listen_trampoline_addr, uintptr(s), uintptr(backlog), 0) 1280 if e1 != 0 { 1281 err = errnoErr(e1) 1282 } 1283 return 1284 } 1285 1286 var libc_listen_trampoline_addr uintptr 1287 1288 //go:cgo_import_dynamic libc_listen listen "libc.so" 965 1289 966 1290 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 972 1296 return 973 1297 } 974 _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 975 if e1 != 0 { 976 err = errnoErr(e1) 977 } 978 return 979 } 1298 _, _, e1 := syscall_syscall(libc_lstat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1299 if e1 != 0 { 1300 err = errnoErr(e1) 1301 } 1302 return 1303 } 1304 1305 var libc_lstat_trampoline_addr uintptr 1306 1307 //go:cgo_import_dynamic libc_lstat lstat "libc.so" 980 1308 981 1309 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 987 1315 return 988 1316 } 989 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 990 if e1 != 0 { 991 err = errnoErr(e1) 992 } 993 return 994 } 1317 _, _, e1 := syscall_syscall(libc_mkdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 1318 if e1 != 0 { 1319 err = errnoErr(e1) 1320 } 1321 return 1322 } 1323 1324 var libc_mkdir_trampoline_addr uintptr 1325 1326 //go:cgo_import_dynamic libc_mkdir mkdir "libc.so" 995 1327 996 1328 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1002 1334 return 1003 1335 } 1004 _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1005 if e1 != 0 { 1006 err = errnoErr(e1) 1007 } 1008 return 1009 } 1336 _, _, e1 := syscall_syscall(libc_mkdirat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1337 if e1 != 0 { 1338 err = errnoErr(e1) 1339 } 1340 return 1341 } 1342 1343 var libc_mkdirat_trampoline_addr uintptr 1344 1345 //go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so" 1010 1346 1011 1347 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1017 1353 return 1018 1354 } 1019 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 1020 if e1 != 0 { 1021 err = errnoErr(e1) 1022 } 1023 return 1024 } 1355 _, _, e1 := syscall_syscall(libc_mkfifo_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 1356 if e1 != 0 { 1357 err = errnoErr(e1) 1358 } 1359 return 1360 } 1361 1362 var libc_mkfifo_trampoline_addr uintptr 1363 1364 //go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so" 1025 1365 1026 1366 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1032 1372 return 1033 1373 } 1034 _, _, e1 := Syscall(SYS_MKFIFOAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1035 if e1 != 0 { 1036 err = errnoErr(e1) 1037 } 1038 return 1039 } 1374 _, _, e1 := syscall_syscall(libc_mkfifoat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1375 if e1 != 0 { 1376 err = errnoErr(e1) 1377 } 1378 return 1379 } 1380 1381 var libc_mkfifoat_trampoline_addr uintptr 1382 1383 //go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so" 1040 1384 1041 1385 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1047 1391 return 1048 1392 } 1049 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) 1050 if e1 != 0 { 1051 err = errnoErr(e1) 1052 } 1053 return 1054 } 1393 _, _, e1 := syscall_syscall(libc_mknod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) 1394 if e1 != 0 { 1395 err = errnoErr(e1) 1396 } 1397 return 1398 } 1399 1400 var libc_mknod_trampoline_addr uintptr 1401 1402 //go:cgo_import_dynamic libc_mknod mknod "libc.so" 1055 1403 1056 1404 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1062 1410 return 1063 1411 } 1064 _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) 1065 if e1 != 0 { 1066 err = errnoErr(e1) 1067 } 1068 return 1069 } 1412 _, _, e1 := syscall_syscall6(libc_mknodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) 1413 if e1 != 0 { 1414 err = errnoErr(e1) 1415 } 1416 return 1417 } 1418 1419 var libc_mknodat_trampoline_addr uintptr 1420 1421 //go:cgo_import_dynamic libc_mknodat mknodat "libc.so" 1070 1422 1071 1423 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1072 1424 1073 1425 func Nanosleep(time *Timespec, leftover *Timespec) (err error) { 1074 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) 1075 if e1 != 0 { 1076 err = errnoErr(e1) 1077 } 1078 return 1079 } 1426 _, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) 1427 if e1 != 0 { 1428 err = errnoErr(e1) 1429 } 1430 return 1431 } 1432 1433 var libc_nanosleep_trampoline_addr uintptr 1434 1435 //go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so" 1080 1436 1081 1437 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1087 1443 return 1088 1444 } 1089 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))1445 r0, _, e1 := syscall_syscall(libc_open_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) 1090 1446 fd = int(r0) 1091 1447 if e1 != 0 { … … 1095 1451 } 1096 1452 1453 var libc_open_trampoline_addr uintptr 1454 1455 //go:cgo_import_dynamic libc_open open "libc.so" 1456 1097 1457 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1098 1458 … … 1103 1463 return 1104 1464 } 1105 r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0)1465 r0, _, e1 := syscall_syscall6(libc_openat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) 1106 1466 fd = int(r0) 1107 1467 if e1 != 0 { … … 1111 1471 } 1112 1472 1473 var libc_openat_trampoline_addr uintptr 1474 1475 //go:cgo_import_dynamic libc_openat openat "libc.so" 1476 1113 1477 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1114 1478 … … 1119 1483 return 1120 1484 } 1121 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)1485 r0, _, e1 := syscall_syscall(libc_pathconf_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) 1122 1486 val = int(r0) 1123 1487 if e1 != 0 { … … 1126 1490 return 1127 1491 } 1492 1493 var libc_pathconf_trampoline_addr uintptr 1494 1495 //go:cgo_import_dynamic libc_pathconf pathconf "libc.so" 1128 1496 1129 1497 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1136 1504 _p0 = unsafe.Pointer(&_zero) 1137 1505 } 1138 r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))1506 r0, _, e1 := syscall_syscall6(libc_pread_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) 1139 1507 n = int(r0) 1140 1508 if e1 != 0 { … … 1143 1511 return 1144 1512 } 1513 1514 var libc_pread_trampoline_addr uintptr 1515 1516 //go:cgo_import_dynamic libc_pread pread "libc.so" 1145 1517 1146 1518 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1153 1525 _p0 = unsafe.Pointer(&_zero) 1154 1526 } 1155 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))1527 r0, _, e1 := syscall_syscall6(libc_pwrite_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), uintptr(offset>>32), 0) 1156 1528 n = int(r0) 1157 1529 if e1 != 0 { … … 1160 1532 return 1161 1533 } 1534 1535 var libc_pwrite_trampoline_addr uintptr 1536 1537 //go:cgo_import_dynamic libc_pwrite pwrite "libc.so" 1162 1538 1163 1539 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1170 1546 _p0 = unsafe.Pointer(&_zero) 1171 1547 } 1172 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))1548 r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) 1173 1549 n = int(r0) 1174 1550 if e1 != 0 { … … 1177 1553 return 1178 1554 } 1555 1556 var libc_read_trampoline_addr uintptr 1557 1558 //go:cgo_import_dynamic libc_read read "libc.so" 1179 1559 1180 1560 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1192 1572 _p1 = unsafe.Pointer(&_zero) 1193 1573 } 1194 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))1574 r0, _, e1 := syscall_syscall(libc_readlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) 1195 1575 n = int(r0) 1196 1576 if e1 != 0 { … … 1199 1579 return 1200 1580 } 1581 1582 var libc_readlink_trampoline_addr uintptr 1583 1584 //go:cgo_import_dynamic libc_readlink readlink "libc.so" 1201 1585 1202 1586 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1214 1598 _p1 = unsafe.Pointer(&_zero) 1215 1599 } 1216 r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)1600 r0, _, e1 := syscall_syscall6(libc_readlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) 1217 1601 n = int(r0) 1218 1602 if e1 != 0 { … … 1221 1605 return 1222 1606 } 1607 1608 var libc_readlinkat_trampoline_addr uintptr 1609 1610 //go:cgo_import_dynamic libc_readlinkat readlinkat "libc.so" 1223 1611 1224 1612 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1235 1623 return 1236 1624 } 1237 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1238 if e1 != 0 { 1239 err = errnoErr(e1) 1240 } 1241 return 1242 } 1625 _, _, e1 := syscall_syscall(libc_rename_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1626 if e1 != 0 { 1627 err = errnoErr(e1) 1628 } 1629 return 1630 } 1631 1632 var libc_rename_trampoline_addr uintptr 1633 1634 //go:cgo_import_dynamic libc_rename rename "libc.so" 1243 1635 1244 1636 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1255 1647 return 1256 1648 } 1257 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) 1258 if e1 != 0 { 1259 err = errnoErr(e1) 1260 } 1261 return 1262 } 1649 _, _, e1 := syscall_syscall6(libc_renameat_trampoline_addr, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) 1650 if e1 != 0 { 1651 err = errnoErr(e1) 1652 } 1653 return 1654 } 1655 1656 var libc_renameat_trampoline_addr uintptr 1657 1658 //go:cgo_import_dynamic libc_renameat renameat "libc.so" 1263 1659 1264 1660 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1270 1666 return 1271 1667 } 1272 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) 1273 if e1 != 0 { 1274 err = errnoErr(e1) 1275 } 1276 return 1277 } 1668 _, _, e1 := syscall_syscall(libc_revoke_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 1669 if e1 != 0 { 1670 err = errnoErr(e1) 1671 } 1672 return 1673 } 1674 1675 var libc_revoke_trampoline_addr uintptr 1676 1677 //go:cgo_import_dynamic libc_revoke revoke "libc.so" 1278 1678 1279 1679 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1285 1685 return 1286 1686 } 1287 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) 1288 if e1 != 0 { 1289 err = errnoErr(e1) 1290 } 1291 return 1292 } 1687 _, _, e1 := syscall_syscall(libc_rmdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 1688 if e1 != 0 { 1689 err = errnoErr(e1) 1690 } 1691 return 1692 } 1693 1694 var libc_rmdir_trampoline_addr uintptr 1695 1696 //go:cgo_import_dynamic libc_rmdir rmdir "libc.so" 1293 1697 1294 1698 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1295 1699 1296 1700 func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { 1297 r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0)1701 r0, r1, e1 := syscall_syscall6(libc_lseek_trampoline_addr, uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(whence), 0, 0) 1298 1702 newoffset = int64(int64(r1)<<32 | int64(r0)) 1299 1703 if e1 != 0 { … … 1303 1707 } 1304 1708 1709 var libc_lseek_trampoline_addr uintptr 1710 1711 //go:cgo_import_dynamic libc_lseek lseek "libc.so" 1712 1305 1713 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1306 1714 1307 1715 func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { 1308 r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)1716 r0, _, e1 := syscall_syscall6(libc_select_trampoline_addr, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) 1309 1717 n = int(r0) 1310 1718 if e1 != 0 { … … 1314 1722 } 1315 1723 1724 var libc_select_trampoline_addr uintptr 1725 1726 //go:cgo_import_dynamic libc_select select "libc.so" 1727 1316 1728 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1317 1729 1318 1730 func Setegid(egid int) (err error) { 1319 _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) 1320 if e1 != 0 { 1321 err = errnoErr(e1) 1322 } 1323 return 1324 } 1731 _, _, e1 := syscall_rawSyscall(libc_setegid_trampoline_addr, uintptr(egid), 0, 0) 1732 if e1 != 0 { 1733 err = errnoErr(e1) 1734 } 1735 return 1736 } 1737 1738 var libc_setegid_trampoline_addr uintptr 1739 1740 //go:cgo_import_dynamic libc_setegid setegid "libc.so" 1325 1741 1326 1742 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1327 1743 1328 1744 func Seteuid(euid int) (err error) { 1329 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) 1330 if e1 != 0 { 1331 err = errnoErr(e1) 1332 } 1333 return 1334 } 1745 _, _, e1 := syscall_rawSyscall(libc_seteuid_trampoline_addr, uintptr(euid), 0, 0) 1746 if e1 != 0 { 1747 err = errnoErr(e1) 1748 } 1749 return 1750 } 1751 1752 var libc_seteuid_trampoline_addr uintptr 1753 1754 //go:cgo_import_dynamic libc_seteuid seteuid "libc.so" 1335 1755 1336 1756 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1337 1757 1338 1758 func Setgid(gid int) (err error) { 1339 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) 1340 if e1 != 0 { 1341 err = errnoErr(e1) 1342 } 1343 return 1344 } 1759 _, _, e1 := syscall_rawSyscall(libc_setgid_trampoline_addr, uintptr(gid), 0, 0) 1760 if e1 != 0 { 1761 err = errnoErr(e1) 1762 } 1763 return 1764 } 1765 1766 var libc_setgid_trampoline_addr uintptr 1767 1768 //go:cgo_import_dynamic libc_setgid setgid "libc.so" 1345 1769 1346 1770 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1352 1776 return 1353 1777 } 1354 _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) 1355 if e1 != 0 { 1356 err = errnoErr(e1) 1357 } 1358 return 1359 } 1778 _, _, e1 := syscall_syscall(libc_setlogin_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 1779 if e1 != 0 { 1780 err = errnoErr(e1) 1781 } 1782 return 1783 } 1784 1785 var libc_setlogin_trampoline_addr uintptr 1786 1787 //go:cgo_import_dynamic libc_setlogin setlogin "libc.so" 1360 1788 1361 1789 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1362 1790 1363 1791 func Setpgid(pid int, pgid int) (err error) { 1364 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) 1365 if e1 != 0 { 1366 err = errnoErr(e1) 1367 } 1368 return 1369 } 1792 _, _, e1 := syscall_rawSyscall(libc_setpgid_trampoline_addr, uintptr(pid), uintptr(pgid), 0) 1793 if e1 != 0 { 1794 err = errnoErr(e1) 1795 } 1796 return 1797 } 1798 1799 var libc_setpgid_trampoline_addr uintptr 1800 1801 //go:cgo_import_dynamic libc_setpgid setpgid "libc.so" 1370 1802 1371 1803 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1372 1804 1373 1805 func Setpriority(which int, who int, prio int) (err error) { 1374 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) 1375 if e1 != 0 { 1376 err = errnoErr(e1) 1377 } 1378 return 1379 } 1806 _, _, e1 := syscall_syscall(libc_setpriority_trampoline_addr, uintptr(which), uintptr(who), uintptr(prio)) 1807 if e1 != 0 { 1808 err = errnoErr(e1) 1809 } 1810 return 1811 } 1812 1813 var libc_setpriority_trampoline_addr uintptr 1814 1815 //go:cgo_import_dynamic libc_setpriority setpriority "libc.so" 1380 1816 1381 1817 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1382 1818 1383 1819 func Setregid(rgid int, egid int) (err error) { 1384 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) 1385 if e1 != 0 { 1386 err = errnoErr(e1) 1387 } 1388 return 1389 } 1820 _, _, e1 := syscall_rawSyscall(libc_setregid_trampoline_addr, uintptr(rgid), uintptr(egid), 0) 1821 if e1 != 0 { 1822 err = errnoErr(e1) 1823 } 1824 return 1825 } 1826 1827 var libc_setregid_trampoline_addr uintptr 1828 1829 //go:cgo_import_dynamic libc_setregid setregid "libc.so" 1390 1830 1391 1831 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1392 1832 1393 1833 func Setreuid(ruid int, euid int) (err error) { 1394 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) 1395 if e1 != 0 { 1396 err = errnoErr(e1) 1397 } 1398 return 1399 } 1834 _, _, e1 := syscall_rawSyscall(libc_setreuid_trampoline_addr, uintptr(ruid), uintptr(euid), 0) 1835 if e1 != 0 { 1836 err = errnoErr(e1) 1837 } 1838 return 1839 } 1840 1841 var libc_setreuid_trampoline_addr uintptr 1842 1843 //go:cgo_import_dynamic libc_setreuid setreuid "libc.so" 1400 1844 1401 1845 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1402 1846 1403 1847 func Setresgid(rgid int, egid int, sgid int) (err error) { 1404 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) 1405 if e1 != 0 { 1406 err = errnoErr(e1) 1407 } 1408 return 1409 } 1848 _, _, e1 := syscall_rawSyscall(libc_setresgid_trampoline_addr, uintptr(rgid), uintptr(egid), uintptr(sgid)) 1849 if e1 != 0 { 1850 err = errnoErr(e1) 1851 } 1852 return 1853 } 1854 1855 var libc_setresgid_trampoline_addr uintptr 1856 1857 //go:cgo_import_dynamic libc_setresgid setresgid "libc.so" 1410 1858 1411 1859 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1412 1860 1413 1861 func Setresuid(ruid int, euid int, suid int) (err error) { 1414 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) 1415 if e1 != 0 { 1416 err = errnoErr(e1) 1417 } 1418 return 1419 } 1862 _, _, e1 := syscall_rawSyscall(libc_setresuid_trampoline_addr, uintptr(ruid), uintptr(euid), uintptr(suid)) 1863 if e1 != 0 { 1864 err = errnoErr(e1) 1865 } 1866 return 1867 } 1868 1869 var libc_setresuid_trampoline_addr uintptr 1870 1871 //go:cgo_import_dynamic libc_setresuid setresuid "libc.so" 1420 1872 1421 1873 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1422 1874 1423 1875 func Setrlimit(which int, lim *Rlimit) (err error) { 1424 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 1425 if e1 != 0 { 1426 err = errnoErr(e1) 1427 } 1428 return 1429 } 1876 _, _, e1 := syscall_rawSyscall(libc_setrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 1877 if e1 != 0 { 1878 err = errnoErr(e1) 1879 } 1880 return 1881 } 1882 1883 var libc_setrlimit_trampoline_addr uintptr 1884 1885 //go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so" 1430 1886 1431 1887 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1432 1888 1433 1889 func Setrtable(rtable int) (err error) { 1434 _, _, e1 := RawSyscall(SYS_SETRTABLE, uintptr(rtable), 0, 0) 1435 if e1 != 0 { 1436 err = errnoErr(e1) 1437 } 1438 return 1439 } 1890 _, _, e1 := syscall_rawSyscall(libc_setrtable_trampoline_addr, uintptr(rtable), 0, 0) 1891 if e1 != 0 { 1892 err = errnoErr(e1) 1893 } 1894 return 1895 } 1896 1897 var libc_setrtable_trampoline_addr uintptr 1898 1899 //go:cgo_import_dynamic libc_setrtable setrtable "libc.so" 1440 1900 1441 1901 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1442 1902 1443 1903 func Setsid() (pid int, err error) { 1444 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)1904 r0, _, e1 := syscall_rawSyscall(libc_setsid_trampoline_addr, 0, 0, 0) 1445 1905 pid = int(r0) 1446 1906 if e1 != 0 { … … 1450 1910 } 1451 1911 1912 var libc_setsid_trampoline_addr uintptr 1913 1914 //go:cgo_import_dynamic libc_setsid setsid "libc.so" 1915 1452 1916 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1453 1917 1454 1918 func Settimeofday(tp *Timeval) (err error) { 1455 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) 1456 if e1 != 0 { 1457 err = errnoErr(e1) 1458 } 1459 return 1460 } 1919 _, _, e1 := syscall_rawSyscall(libc_settimeofday_trampoline_addr, uintptr(unsafe.Pointer(tp)), 0, 0) 1920 if e1 != 0 { 1921 err = errnoErr(e1) 1922 } 1923 return 1924 } 1925 1926 var libc_settimeofday_trampoline_addr uintptr 1927 1928 //go:cgo_import_dynamic libc_settimeofday settimeofday "libc.so" 1461 1929 1462 1930 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1463 1931 1464 1932 func Setuid(uid int) (err error) { 1465 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) 1466 if e1 != 0 { 1467 err = errnoErr(e1) 1468 } 1469 return 1470 } 1933 _, _, e1 := syscall_rawSyscall(libc_setuid_trampoline_addr, uintptr(uid), 0, 0) 1934 if e1 != 0 { 1935 err = errnoErr(e1) 1936 } 1937 return 1938 } 1939 1940 var libc_setuid_trampoline_addr uintptr 1941 1942 //go:cgo_import_dynamic libc_setuid setuid "libc.so" 1471 1943 1472 1944 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1478 1950 return 1479 1951 } 1480 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1481 if e1 != 0 { 1482 err = errnoErr(e1) 1483 } 1484 return 1485 } 1952 _, _, e1 := syscall_syscall(libc_stat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1953 if e1 != 0 { 1954 err = errnoErr(e1) 1955 } 1956 return 1957 } 1958 1959 var libc_stat_trampoline_addr uintptr 1960 1961 //go:cgo_import_dynamic libc_stat stat "libc.so" 1486 1962 1487 1963 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1493 1969 return 1494 1970 } 1495 _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1496 if e1 != 0 { 1497 err = errnoErr(e1) 1498 } 1499 return 1500 } 1971 _, _, e1 := syscall_syscall(libc_statfs_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1972 if e1 != 0 { 1973 err = errnoErr(e1) 1974 } 1975 return 1976 } 1977 1978 var libc_statfs_trampoline_addr uintptr 1979 1980 //go:cgo_import_dynamic libc_statfs statfs "libc.so" 1501 1981 1502 1982 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1513 1993 return 1514 1994 } 1515 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1516 if e1 != 0 { 1517 err = errnoErr(e1) 1518 } 1519 return 1520 } 1995 _, _, e1 := syscall_syscall(libc_symlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1996 if e1 != 0 { 1997 err = errnoErr(e1) 1998 } 1999 return 2000 } 2001 2002 var libc_symlink_trampoline_addr uintptr 2003 2004 //go:cgo_import_dynamic libc_symlink symlink "libc.so" 1521 2005 1522 2006 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1533 2017 return 1534 2018 } 1535 _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) 1536 if e1 != 0 { 1537 err = errnoErr(e1) 1538 } 1539 return 1540 } 2019 _, _, e1 := syscall_syscall(libc_symlinkat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) 2020 if e1 != 0 { 2021 err = errnoErr(e1) 2022 } 2023 return 2024 } 2025 2026 var libc_symlinkat_trampoline_addr uintptr 2027 2028 //go:cgo_import_dynamic libc_symlinkat symlinkat "libc.so" 1541 2029 1542 2030 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1543 2031 1544 2032 func Sync() (err error) { 1545 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) 1546 if e1 != 0 { 1547 err = errnoErr(e1) 1548 } 1549 return 1550 } 2033 _, _, e1 := syscall_syscall(libc_sync_trampoline_addr, 0, 0, 0) 2034 if e1 != 0 { 2035 err = errnoErr(e1) 2036 } 2037 return 2038 } 2039 2040 var libc_sync_trampoline_addr uintptr 2041 2042 //go:cgo_import_dynamic libc_sync sync "libc.so" 1551 2043 1552 2044 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1558 2050 return 1559 2051 } 1560 _, _, e1 := Syscall6(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0) 1561 if e1 != 0 { 1562 err = errnoErr(e1) 1563 } 1564 return 1565 } 2052 _, _, e1 := syscall_syscall(libc_truncate_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(length), uintptr(length>>32)) 2053 if e1 != 0 { 2054 err = errnoErr(e1) 2055 } 2056 return 2057 } 2058 2059 var libc_truncate_trampoline_addr uintptr 2060 2061 //go:cgo_import_dynamic libc_truncate truncate "libc.so" 1566 2062 1567 2063 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1568 2064 1569 2065 func Umask(newmask int) (oldmask int) { 1570 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)2066 r0, _, _ := syscall_syscall(libc_umask_trampoline_addr, uintptr(newmask), 0, 0) 1571 2067 oldmask = int(r0) 1572 2068 return 1573 2069 } 1574 2070 2071 var libc_umask_trampoline_addr uintptr 2072 2073 //go:cgo_import_dynamic libc_umask umask "libc.so" 2074 1575 2075 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1576 2076 … … 1581 2081 return 1582 2082 } 1583 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) 1584 if e1 != 0 { 1585 err = errnoErr(e1) 1586 } 1587 return 1588 } 2083 _, _, e1 := syscall_syscall(libc_unlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 2084 if e1 != 0 { 2085 err = errnoErr(e1) 2086 } 2087 return 2088 } 2089 2090 var libc_unlink_trampoline_addr uintptr 2091 2092 //go:cgo_import_dynamic libc_unlink unlink "libc.so" 1589 2093 1590 2094 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1596 2100 return 1597 2101 } 1598 _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) 1599 if e1 != 0 { 1600 err = errnoErr(e1) 1601 } 1602 return 1603 } 2102 _, _, e1 := syscall_syscall(libc_unlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) 2103 if e1 != 0 { 2104 err = errnoErr(e1) 2105 } 2106 return 2107 } 2108 2109 var libc_unlinkat_trampoline_addr uintptr 2110 2111 //go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so" 1604 2112 1605 2113 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1611 2119 return 1612 2120 } 1613 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 1614 if e1 != 0 { 1615 err = errnoErr(e1) 1616 } 1617 return 1618 } 2121 _, _, e1 := syscall_syscall(libc_unmount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 2122 if e1 != 0 { 2123 err = errnoErr(e1) 2124 } 2125 return 2126 } 2127 2128 var libc_unmount_trampoline_addr uintptr 2129 2130 //go:cgo_import_dynamic libc_unmount unmount "libc.so" 1619 2131 1620 2132 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1627 2139 _p0 = unsafe.Pointer(&_zero) 1628 2140 } 1629 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))2141 r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) 1630 2142 n = int(r0) 1631 2143 if e1 != 0 { … … 1635 2147 } 1636 2148 2149 var libc_write_trampoline_addr uintptr 2150 2151 //go:cgo_import_dynamic libc_write write "libc.so" 2152 1637 2153 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1638 2154 1639 2155 func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { 1640 r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0)2156 r0, _, e1 := syscall_syscall9(libc_mmap_trampoline_addr, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos), uintptr(pos>>32), 0, 0) 1641 2157 ret = uintptr(r0) 1642 2158 if e1 != 0 { … … 1646 2162 } 1647 2163 2164 var libc_mmap_trampoline_addr uintptr 2165 2166 //go:cgo_import_dynamic libc_mmap mmap "libc.so" 2167 1648 2168 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1649 2169 1650 2170 func munmap(addr uintptr, length uintptr) (err error) { 1651 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) 1652 if e1 != 0 { 1653 err = errnoErr(e1) 1654 } 1655 return 1656 } 2171 _, _, e1 := syscall_syscall(libc_munmap_trampoline_addr, uintptr(addr), uintptr(length), 0) 2172 if e1 != 0 { 2173 err = errnoErr(e1) 2174 } 2175 return 2176 } 2177 2178 var libc_munmap_trampoline_addr uintptr 2179 2180 //go:cgo_import_dynamic libc_munmap munmap "libc.so" 1657 2181 1658 2182 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1659 2183 1660 2184 func readlen(fd int, buf *byte, nbuf int) (n int, err error) { 1661 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))2185 r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) 1662 2186 n = int(r0) 1663 2187 if e1 != 0 { … … 1670 2194 1671 2195 func writelen(fd int, buf *byte, nbuf int) (n int, err error) { 1672 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))2196 r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) 1673 2197 n = int(r0) 1674 2198 if e1 != 0 { … … 1686 2210 return 1687 2211 } 1688 _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) 1689 if e1 != 0 { 1690 err = errnoErr(e1) 1691 } 1692 return 1693 } 2212 _, _, e1 := syscall_syscall6(libc_utimensat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) 2213 if e1 != 0 { 2214 err = errnoErr(e1) 2215 } 2216 return 2217 } 2218 2219 var libc_utimensat_trampoline_addr uintptr 2220 2221 //go:cgo_import_dynamic libc_utimensat utimensat "libc.so" -
trunk/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go
r67 r69 1 // go run mksyscall.go -openbsd - tags openbsd,amd64 syscall_bsd.go syscall_openbsd.go syscall_openbsd_amd64.go1 // go run mksyscall.go -openbsd -libc -tags openbsd,amd64 syscall_bsd.go syscall_openbsd.go syscall_openbsd_amd64.go 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 17 17 18 18 func getgroups(ngid int, gid *_Gid_t) (n int, err error) { 19 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)19 r0, _, e1 := syscall_rawSyscall(libc_getgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) 20 20 n = int(r0) 21 21 if e1 != 0 { … … 25 25 } 26 26 27 var libc_getgroups_trampoline_addr uintptr 28 29 //go:cgo_import_dynamic libc_getgroups getgroups "libc.so" 30 27 31 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 28 32 29 33 func setgroups(ngid int, gid *_Gid_t) (err error) { 30 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) 31 if e1 != 0 { 32 err = errnoErr(e1) 33 } 34 return 35 } 34 _, _, e1 := syscall_rawSyscall(libc_setgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) 35 if e1 != 0 { 36 err = errnoErr(e1) 37 } 38 return 39 } 40 41 var libc_setgroups_trampoline_addr uintptr 42 43 //go:cgo_import_dynamic libc_setgroups setgroups "libc.so" 36 44 37 45 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 38 46 39 47 func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { 40 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)48 r0, _, e1 := syscall_syscall6(libc_wait4_trampoline_addr, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) 41 49 wpid = int(r0) 42 50 if e1 != 0 { … … 46 54 } 47 55 56 var libc_wait4_trampoline_addr uintptr 57 58 //go:cgo_import_dynamic libc_wait4 wait4 "libc.so" 59 48 60 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 49 61 50 62 func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { 51 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))63 r0, _, e1 := syscall_syscall(libc_accept_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 52 64 fd = int(r0) 53 65 if e1 != 0 { … … 57 69 } 58 70 71 var libc_accept_trampoline_addr uintptr 72 73 //go:cgo_import_dynamic libc_accept accept "libc.so" 74 59 75 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 60 76 61 77 func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { 62 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) 63 if e1 != 0 { 64 err = errnoErr(e1) 65 } 66 return 67 } 78 _, _, e1 := syscall_syscall(libc_bind_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) 79 if e1 != 0 { 80 err = errnoErr(e1) 81 } 82 return 83 } 84 85 var libc_bind_trampoline_addr uintptr 86 87 //go:cgo_import_dynamic libc_bind bind "libc.so" 68 88 69 89 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 70 90 71 91 func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { 72 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) 73 if e1 != 0 { 74 err = errnoErr(e1) 75 } 76 return 77 } 92 _, _, e1 := syscall_syscall(libc_connect_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) 93 if e1 != 0 { 94 err = errnoErr(e1) 95 } 96 return 97 } 98 99 var libc_connect_trampoline_addr uintptr 100 101 //go:cgo_import_dynamic libc_connect connect "libc.so" 78 102 79 103 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 80 104 81 105 func socket(domain int, typ int, proto int) (fd int, err error) { 82 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))106 r0, _, e1 := syscall_rawSyscall(libc_socket_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto)) 83 107 fd = int(r0) 84 108 if e1 != 0 { … … 88 112 } 89 113 114 var libc_socket_trampoline_addr uintptr 115 116 //go:cgo_import_dynamic libc_socket socket "libc.so" 117 90 118 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 91 119 92 120 func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { 93 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) 94 if e1 != 0 { 95 err = errnoErr(e1) 96 } 97 return 98 } 121 _, _, e1 := syscall_syscall6(libc_getsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) 122 if e1 != 0 { 123 err = errnoErr(e1) 124 } 125 return 126 } 127 128 var libc_getsockopt_trampoline_addr uintptr 129 130 //go:cgo_import_dynamic libc_getsockopt getsockopt "libc.so" 99 131 100 132 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 101 133 102 134 func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { 103 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) 104 if e1 != 0 { 105 err = errnoErr(e1) 106 } 107 return 108 } 135 _, _, e1 := syscall_syscall6(libc_setsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) 136 if e1 != 0 { 137 err = errnoErr(e1) 138 } 139 return 140 } 141 142 var libc_setsockopt_trampoline_addr uintptr 143 144 //go:cgo_import_dynamic libc_setsockopt setsockopt "libc.so" 109 145 110 146 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 111 147 112 148 func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { 113 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 114 if e1 != 0 { 115 err = errnoErr(e1) 116 } 117 return 118 } 149 _, _, e1 := syscall_rawSyscall(libc_getpeername_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 150 if e1 != 0 { 151 err = errnoErr(e1) 152 } 153 return 154 } 155 156 var libc_getpeername_trampoline_addr uintptr 157 158 //go:cgo_import_dynamic libc_getpeername getpeername "libc.so" 119 159 120 160 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 121 161 122 162 func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { 123 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 124 if e1 != 0 { 125 err = errnoErr(e1) 126 } 127 return 128 } 163 _, _, e1 := syscall_rawSyscall(libc_getsockname_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 164 if e1 != 0 { 165 err = errnoErr(e1) 166 } 167 return 168 } 169 170 var libc_getsockname_trampoline_addr uintptr 171 172 //go:cgo_import_dynamic libc_getsockname getsockname "libc.so" 129 173 130 174 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 131 175 132 176 func Shutdown(s int, how int) (err error) { 133 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) 134 if e1 != 0 { 135 err = errnoErr(e1) 136 } 137 return 138 } 177 _, _, e1 := syscall_syscall(libc_shutdown_trampoline_addr, uintptr(s), uintptr(how), 0) 178 if e1 != 0 { 179 err = errnoErr(e1) 180 } 181 return 182 } 183 184 var libc_shutdown_trampoline_addr uintptr 185 186 //go:cgo_import_dynamic libc_shutdown shutdown "libc.so" 139 187 140 188 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 141 189 142 190 func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { 143 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) 144 if e1 != 0 { 145 err = errnoErr(e1) 146 } 147 return 148 } 191 _, _, e1 := syscall_rawSyscall6(libc_socketpair_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) 192 if e1 != 0 { 193 err = errnoErr(e1) 194 } 195 return 196 } 197 198 var libc_socketpair_trampoline_addr uintptr 199 200 //go:cgo_import_dynamic libc_socketpair socketpair "libc.so" 149 201 150 202 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 157 209 _p0 = unsafe.Pointer(&_zero) 158 210 } 159 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))211 r0, _, e1 := syscall_syscall6(libc_recvfrom_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) 160 212 n = int(r0) 161 213 if e1 != 0 { … … 164 216 return 165 217 } 218 219 var libc_recvfrom_trampoline_addr uintptr 220 221 //go:cgo_import_dynamic libc_recvfrom recvfrom "libc.so" 166 222 167 223 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 174 230 _p0 = unsafe.Pointer(&_zero) 175 231 } 176 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) 177 if e1 != 0 { 178 err = errnoErr(e1) 179 } 180 return 181 } 232 _, _, e1 := syscall_syscall6(libc_sendto_trampoline_addr, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) 233 if e1 != 0 { 234 err = errnoErr(e1) 235 } 236 return 237 } 238 239 var libc_sendto_trampoline_addr uintptr 240 241 //go:cgo_import_dynamic libc_sendto sendto "libc.so" 182 242 183 243 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 184 244 185 245 func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { 186 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))246 r0, _, e1 := syscall_syscall(libc_recvmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) 187 247 n = int(r0) 188 248 if e1 != 0 { … … 192 252 } 193 253 254 var libc_recvmsg_trampoline_addr uintptr 255 256 //go:cgo_import_dynamic libc_recvmsg recvmsg "libc.so" 257 194 258 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 195 259 196 260 func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { 197 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))261 r0, _, e1 := syscall_syscall(libc_sendmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) 198 262 n = int(r0) 199 263 if e1 != 0 { … … 203 267 } 204 268 269 var libc_sendmsg_trampoline_addr uintptr 270 271 //go:cgo_import_dynamic libc_sendmsg sendmsg "libc.so" 272 205 273 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 206 274 207 275 func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { 208 r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))276 r0, _, e1 := syscall_syscall6(libc_kevent_trampoline_addr, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) 209 277 n = int(r0) 210 278 if e1 != 0 { … … 214 282 } 215 283 284 var libc_kevent_trampoline_addr uintptr 285 286 //go:cgo_import_dynamic libc_kevent kevent "libc.so" 287 216 288 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 217 289 … … 222 294 return 223 295 } 224 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) 225 if e1 != 0 { 226 err = errnoErr(e1) 227 } 228 return 229 } 296 _, _, e1 := syscall_syscall(libc_utimes_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) 297 if e1 != 0 { 298 err = errnoErr(e1) 299 } 300 return 301 } 302 303 var libc_utimes_trampoline_addr uintptr 304 305 //go:cgo_import_dynamic libc_utimes utimes "libc.so" 230 306 231 307 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 232 308 233 309 func futimes(fd int, timeval *[2]Timeval) (err error) { 234 _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) 235 if e1 != 0 { 236 err = errnoErr(e1) 237 } 238 return 239 } 310 _, _, e1 := syscall_syscall(libc_futimes_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) 311 if e1 != 0 { 312 err = errnoErr(e1) 313 } 314 return 315 } 316 317 var libc_futimes_trampoline_addr uintptr 318 319 //go:cgo_import_dynamic libc_futimes futimes "libc.so" 240 320 241 321 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 242 322 243 323 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { 244 r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))324 r0, _, e1 := syscall_syscall(libc_poll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) 245 325 n = int(r0) 246 326 if e1 != 0 { … … 249 329 return 250 330 } 331 332 var libc_poll_trampoline_addr uintptr 333 334 //go:cgo_import_dynamic libc_poll poll "libc.so" 251 335 252 336 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 259 343 _p0 = unsafe.Pointer(&_zero) 260 344 } 261 _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) 262 if e1 != 0 { 263 err = errnoErr(e1) 264 } 265 return 266 } 345 _, _, e1 := syscall_syscall(libc_madvise_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(behav)) 346 if e1 != 0 { 347 err = errnoErr(e1) 348 } 349 return 350 } 351 352 var libc_madvise_trampoline_addr uintptr 353 354 //go:cgo_import_dynamic libc_madvise madvise "libc.so" 267 355 268 356 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 275 363 _p0 = unsafe.Pointer(&_zero) 276 364 } 277 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) 278 if e1 != 0 { 279 err = errnoErr(e1) 280 } 281 return 282 } 365 _, _, e1 := syscall_syscall(libc_mlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) 366 if e1 != 0 { 367 err = errnoErr(e1) 368 } 369 return 370 } 371 372 var libc_mlock_trampoline_addr uintptr 373 374 //go:cgo_import_dynamic libc_mlock mlock "libc.so" 283 375 284 376 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 285 377 286 378 func Mlockall(flags int) (err error) { 287 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) 288 if e1 != 0 { 289 err = errnoErr(e1) 290 } 291 return 292 } 379 _, _, e1 := syscall_syscall(libc_mlockall_trampoline_addr, uintptr(flags), 0, 0) 380 if e1 != 0 { 381 err = errnoErr(e1) 382 } 383 return 384 } 385 386 var libc_mlockall_trampoline_addr uintptr 387 388 //go:cgo_import_dynamic libc_mlockall mlockall "libc.so" 293 389 294 390 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 301 397 _p0 = unsafe.Pointer(&_zero) 302 398 } 303 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) 304 if e1 != 0 { 305 err = errnoErr(e1) 306 } 307 return 308 } 399 _, _, e1 := syscall_syscall(libc_mprotect_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(prot)) 400 if e1 != 0 { 401 err = errnoErr(e1) 402 } 403 return 404 } 405 406 var libc_mprotect_trampoline_addr uintptr 407 408 //go:cgo_import_dynamic libc_mprotect mprotect "libc.so" 309 409 310 410 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 317 417 _p0 = unsafe.Pointer(&_zero) 318 418 } 319 _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) 320 if e1 != 0 { 321 err = errnoErr(e1) 322 } 323 return 324 } 419 _, _, e1 := syscall_syscall(libc_msync_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(flags)) 420 if e1 != 0 { 421 err = errnoErr(e1) 422 } 423 return 424 } 425 426 var libc_msync_trampoline_addr uintptr 427 428 //go:cgo_import_dynamic libc_msync msync "libc.so" 325 429 326 430 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 333 437 _p0 = unsafe.Pointer(&_zero) 334 438 } 335 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) 336 if e1 != 0 { 337 err = errnoErr(e1) 338 } 339 return 340 } 439 _, _, e1 := syscall_syscall(libc_munlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) 440 if e1 != 0 { 441 err = errnoErr(e1) 442 } 443 return 444 } 445 446 var libc_munlock_trampoline_addr uintptr 447 448 //go:cgo_import_dynamic libc_munlock munlock "libc.so" 341 449 342 450 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 343 451 344 452 func Munlockall() (err error) { 345 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) 346 if e1 != 0 { 347 err = errnoErr(e1) 348 } 349 return 350 } 453 _, _, e1 := syscall_syscall(libc_munlockall_trampoline_addr, 0, 0, 0) 454 if e1 != 0 { 455 err = errnoErr(e1) 456 } 457 return 458 } 459 460 var libc_munlockall_trampoline_addr uintptr 461 462 //go:cgo_import_dynamic libc_munlockall munlockall "libc.so" 351 463 352 464 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 353 465 354 466 func pipe2(p *[2]_C_int, flags int) (err error) { 355 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) 356 if e1 != 0 { 357 err = errnoErr(e1) 358 } 359 return 360 } 467 _, _, e1 := syscall_rawSyscall(libc_pipe2_trampoline_addr, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) 468 if e1 != 0 { 469 err = errnoErr(e1) 470 } 471 return 472 } 473 474 var libc_pipe2_trampoline_addr uintptr 475 476 //go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so" 361 477 362 478 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 369 485 _p0 = unsafe.Pointer(&_zero) 370 486 } 371 r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf)))487 r0, _, e1 := syscall_syscall(libc_getdents_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(buf))) 372 488 n = int(r0) 373 489 if e1 != 0 { … … 376 492 return 377 493 } 494 495 var libc_getdents_trampoline_addr uintptr 496 497 //go:cgo_import_dynamic libc_getdents getdents "libc.so" 378 498 379 499 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 386 506 _p0 = unsafe.Pointer(&_zero) 387 507 } 388 r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0)508 r0, _, e1 := syscall_syscall(libc_getcwd_trampoline_addr, uintptr(_p0), uintptr(len(buf)), 0) 389 509 n = int(r0) 390 510 if e1 != 0 { … … 394 514 } 395 515 516 var libc_getcwd_trampoline_addr uintptr 517 518 //go:cgo_import_dynamic libc_getcwd getcwd "libc.so" 519 396 520 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 397 521 398 522 func ioctl(fd int, req uint, arg uintptr) (err error) { 399 _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) 400 if e1 != 0 { 401 err = errnoErr(e1) 402 } 403 return 404 } 523 _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) 524 if e1 != 0 { 525 err = errnoErr(e1) 526 } 527 return 528 } 529 530 var libc_ioctl_trampoline_addr uintptr 531 532 //go:cgo_import_dynamic libc_ioctl ioctl "libc.so" 405 533 406 534 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 413 541 _p0 = unsafe.Pointer(&_zero) 414 542 } 415 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) 416 if e1 != 0 { 417 err = errnoErr(e1) 418 } 419 return 420 } 543 _, _, e1 := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) 544 if e1 != 0 { 545 err = errnoErr(e1) 546 } 547 return 548 } 549 550 var libc_sysctl_trampoline_addr uintptr 551 552 //go:cgo_import_dynamic libc_sysctl sysctl "libc.so" 421 553 422 554 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 423 555 424 556 func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { 425 r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0)557 r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) 426 558 n = int(r0) 427 559 if e1 != 0 { … … 431 563 } 432 564 565 var libc_ppoll_trampoline_addr uintptr 566 567 //go:cgo_import_dynamic libc_ppoll ppoll "libc.so" 568 433 569 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 434 570 … … 439 575 return 440 576 } 441 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 442 if e1 != 0 { 443 err = errnoErr(e1) 444 } 445 return 446 } 577 _, _, e1 := syscall_syscall(libc_access_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 578 if e1 != 0 { 579 err = errnoErr(e1) 580 } 581 return 582 } 583 584 var libc_access_trampoline_addr uintptr 585 586 //go:cgo_import_dynamic libc_access access "libc.so" 447 587 448 588 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 449 589 450 590 func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { 451 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) 452 if e1 != 0 { 453 err = errnoErr(e1) 454 } 455 return 456 } 591 _, _, e1 := syscall_syscall(libc_adjtime_trampoline_addr, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) 592 if e1 != 0 { 593 err = errnoErr(e1) 594 } 595 return 596 } 597 598 var libc_adjtime_trampoline_addr uintptr 599 600 //go:cgo_import_dynamic libc_adjtime adjtime "libc.so" 457 601 458 602 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 464 608 return 465 609 } 466 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) 467 if e1 != 0 { 468 err = errnoErr(e1) 469 } 470 return 471 } 610 _, _, e1 := syscall_syscall(libc_chdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 611 if e1 != 0 { 612 err = errnoErr(e1) 613 } 614 return 615 } 616 617 var libc_chdir_trampoline_addr uintptr 618 619 //go:cgo_import_dynamic libc_chdir chdir "libc.so" 472 620 473 621 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 479 627 return 480 628 } 481 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 482 if e1 != 0 { 483 err = errnoErr(e1) 484 } 485 return 486 } 629 _, _, e1 := syscall_syscall(libc_chflags_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 630 if e1 != 0 { 631 err = errnoErr(e1) 632 } 633 return 634 } 635 636 var libc_chflags_trampoline_addr uintptr 637 638 //go:cgo_import_dynamic libc_chflags chflags "libc.so" 487 639 488 640 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 494 646 return 495 647 } 496 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 497 if e1 != 0 { 498 err = errnoErr(e1) 499 } 500 return 501 } 648 _, _, e1 := syscall_syscall(libc_chmod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 649 if e1 != 0 { 650 err = errnoErr(e1) 651 } 652 return 653 } 654 655 var libc_chmod_trampoline_addr uintptr 656 657 //go:cgo_import_dynamic libc_chmod chmod "libc.so" 502 658 503 659 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 509 665 return 510 666 } 511 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 512 if e1 != 0 { 513 err = errnoErr(e1) 514 } 515 return 516 } 667 _, _, e1 := syscall_syscall(libc_chown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 668 if e1 != 0 { 669 err = errnoErr(e1) 670 } 671 return 672 } 673 674 var libc_chown_trampoline_addr uintptr 675 676 //go:cgo_import_dynamic libc_chown chown "libc.so" 517 677 518 678 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 524 684 return 525 685 } 526 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) 527 if e1 != 0 { 528 err = errnoErr(e1) 529 } 530 return 531 } 686 _, _, e1 := syscall_syscall(libc_chroot_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 687 if e1 != 0 { 688 err = errnoErr(e1) 689 } 690 return 691 } 692 693 var libc_chroot_trampoline_addr uintptr 694 695 //go:cgo_import_dynamic libc_chroot chroot "libc.so" 532 696 533 697 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 534 698 535 699 func Close(fd int) (err error) { 536 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) 537 if e1 != 0 { 538 err = errnoErr(e1) 539 } 540 return 541 } 700 _, _, e1 := syscall_syscall(libc_close_trampoline_addr, uintptr(fd), 0, 0) 701 if e1 != 0 { 702 err = errnoErr(e1) 703 } 704 return 705 } 706 707 var libc_close_trampoline_addr uintptr 708 709 //go:cgo_import_dynamic libc_close close "libc.so" 542 710 543 711 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 544 712 545 713 func Dup(fd int) (nfd int, err error) { 546 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)714 r0, _, e1 := syscall_syscall(libc_dup_trampoline_addr, uintptr(fd), 0, 0) 547 715 nfd = int(r0) 548 716 if e1 != 0 { … … 552 720 } 553 721 722 var libc_dup_trampoline_addr uintptr 723 724 //go:cgo_import_dynamic libc_dup dup "libc.so" 725 554 726 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 555 727 556 728 func Dup2(from int, to int) (err error) { 557 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) 558 if e1 != 0 { 559 err = errnoErr(e1) 560 } 561 return 562 } 729 _, _, e1 := syscall_syscall(libc_dup2_trampoline_addr, uintptr(from), uintptr(to), 0) 730 if e1 != 0 { 731 err = errnoErr(e1) 732 } 733 return 734 } 735 736 var libc_dup2_trampoline_addr uintptr 737 738 //go:cgo_import_dynamic libc_dup2 dup2 "libc.so" 563 739 564 740 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 565 741 566 742 func Dup3(from int, to int, flags int) (err error) { 567 _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags)) 568 if e1 != 0 { 569 err = errnoErr(e1) 570 } 571 return 572 } 743 _, _, e1 := syscall_syscall(libc_dup3_trampoline_addr, uintptr(from), uintptr(to), uintptr(flags)) 744 if e1 != 0 { 745 err = errnoErr(e1) 746 } 747 return 748 } 749 750 var libc_dup3_trampoline_addr uintptr 751 752 //go:cgo_import_dynamic libc_dup3 dup3 "libc.so" 573 753 574 754 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 575 755 576 756 func Exit(code int) { 577 Syscall(SYS_EXIT, uintptr(code), 0, 0) 578 return 579 } 757 syscall_syscall(libc_exit_trampoline_addr, uintptr(code), 0, 0) 758 return 759 } 760 761 var libc_exit_trampoline_addr uintptr 762 763 //go:cgo_import_dynamic libc_exit exit "libc.so" 580 764 581 765 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 587 771 return 588 772 } 589 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 590 if e1 != 0 { 591 err = errnoErr(e1) 592 } 593 return 594 } 773 _, _, e1 := syscall_syscall6(libc_faccessat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 774 if e1 != 0 { 775 err = errnoErr(e1) 776 } 777 return 778 } 779 780 var libc_faccessat_trampoline_addr uintptr 781 782 //go:cgo_import_dynamic libc_faccessat faccessat "libc.so" 595 783 596 784 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 597 785 598 786 func Fchdir(fd int) (err error) { 599 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) 600 if e1 != 0 { 601 err = errnoErr(e1) 602 } 603 return 604 } 787 _, _, e1 := syscall_syscall(libc_fchdir_trampoline_addr, uintptr(fd), 0, 0) 788 if e1 != 0 { 789 err = errnoErr(e1) 790 } 791 return 792 } 793 794 var libc_fchdir_trampoline_addr uintptr 795 796 //go:cgo_import_dynamic libc_fchdir fchdir "libc.so" 605 797 606 798 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 607 799 608 800 func Fchflags(fd int, flags int) (err error) { 609 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) 610 if e1 != 0 { 611 err = errnoErr(e1) 612 } 613 return 614 } 801 _, _, e1 := syscall_syscall(libc_fchflags_trampoline_addr, uintptr(fd), uintptr(flags), 0) 802 if e1 != 0 { 803 err = errnoErr(e1) 804 } 805 return 806 } 807 808 var libc_fchflags_trampoline_addr uintptr 809 810 //go:cgo_import_dynamic libc_fchflags fchflags "libc.so" 615 811 616 812 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 617 813 618 814 func Fchmod(fd int, mode uint32) (err error) { 619 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) 620 if e1 != 0 { 621 err = errnoErr(e1) 622 } 623 return 624 } 815 _, _, e1 := syscall_syscall(libc_fchmod_trampoline_addr, uintptr(fd), uintptr(mode), 0) 816 if e1 != 0 { 817 err = errnoErr(e1) 818 } 819 return 820 } 821 822 var libc_fchmod_trampoline_addr uintptr 823 824 //go:cgo_import_dynamic libc_fchmod fchmod "libc.so" 625 825 626 826 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 632 832 return 633 833 } 634 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 635 if e1 != 0 { 636 err = errnoErr(e1) 637 } 638 return 639 } 834 _, _, e1 := syscall_syscall6(libc_fchmodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 835 if e1 != 0 { 836 err = errnoErr(e1) 837 } 838 return 839 } 840 841 var libc_fchmodat_trampoline_addr uintptr 842 843 //go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so" 640 844 641 845 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 642 846 643 847 func Fchown(fd int, uid int, gid int) (err error) { 644 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) 645 if e1 != 0 { 646 err = errnoErr(e1) 647 } 648 return 649 } 848 _, _, e1 := syscall_syscall(libc_fchown_trampoline_addr, uintptr(fd), uintptr(uid), uintptr(gid)) 849 if e1 != 0 { 850 err = errnoErr(e1) 851 } 852 return 853 } 854 855 var libc_fchown_trampoline_addr uintptr 856 857 //go:cgo_import_dynamic libc_fchown fchown "libc.so" 650 858 651 859 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 657 865 return 658 866 } 659 _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) 660 if e1 != 0 { 661 err = errnoErr(e1) 662 } 663 return 664 } 867 _, _, e1 := syscall_syscall6(libc_fchownat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) 868 if e1 != 0 { 869 err = errnoErr(e1) 870 } 871 return 872 } 873 874 var libc_fchownat_trampoline_addr uintptr 875 876 //go:cgo_import_dynamic libc_fchownat fchownat "libc.so" 665 877 666 878 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 667 879 668 880 func Flock(fd int, how int) (err error) { 669 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) 670 if e1 != 0 { 671 err = errnoErr(e1) 672 } 673 return 674 } 881 _, _, e1 := syscall_syscall(libc_flock_trampoline_addr, uintptr(fd), uintptr(how), 0) 882 if e1 != 0 { 883 err = errnoErr(e1) 884 } 885 return 886 } 887 888 var libc_flock_trampoline_addr uintptr 889 890 //go:cgo_import_dynamic libc_flock flock "libc.so" 675 891 676 892 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 677 893 678 894 func Fpathconf(fd int, name int) (val int, err error) { 679 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)895 r0, _, e1 := syscall_syscall(libc_fpathconf_trampoline_addr, uintptr(fd), uintptr(name), 0) 680 896 val = int(r0) 681 897 if e1 != 0 { … … 685 901 } 686 902 903 var libc_fpathconf_trampoline_addr uintptr 904 905 //go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so" 906 687 907 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 688 908 689 909 func Fstat(fd int, stat *Stat_t) (err error) { 690 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 691 if e1 != 0 { 692 err = errnoErr(e1) 693 } 694 return 695 } 910 _, _, e1 := syscall_syscall(libc_fstat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 911 if e1 != 0 { 912 err = errnoErr(e1) 913 } 914 return 915 } 916 917 var libc_fstat_trampoline_addr uintptr 918 919 //go:cgo_import_dynamic libc_fstat fstat "libc.so" 696 920 697 921 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 703 927 return 704 928 } 705 _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) 706 if e1 != 0 { 707 err = errnoErr(e1) 708 } 709 return 710 } 929 _, _, e1 := syscall_syscall6(libc_fstatat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) 930 if e1 != 0 { 931 err = errnoErr(e1) 932 } 933 return 934 } 935 936 var libc_fstatat_trampoline_addr uintptr 937 938 //go:cgo_import_dynamic libc_fstatat fstatat "libc.so" 711 939 712 940 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 713 941 714 942 func Fstatfs(fd int, stat *Statfs_t) (err error) { 715 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 716 if e1 != 0 { 717 err = errnoErr(e1) 718 } 719 return 720 } 943 _, _, e1 := syscall_syscall(libc_fstatfs_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 944 if e1 != 0 { 945 err = errnoErr(e1) 946 } 947 return 948 } 949 950 var libc_fstatfs_trampoline_addr uintptr 951 952 //go:cgo_import_dynamic libc_fstatfs fstatfs "libc.so" 721 953 722 954 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 723 955 724 956 func Fsync(fd int) (err error) { 725 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) 726 if e1 != 0 { 727 err = errnoErr(e1) 728 } 729 return 730 } 957 _, _, e1 := syscall_syscall(libc_fsync_trampoline_addr, uintptr(fd), 0, 0) 958 if e1 != 0 { 959 err = errnoErr(e1) 960 } 961 return 962 } 963 964 var libc_fsync_trampoline_addr uintptr 965 966 //go:cgo_import_dynamic libc_fsync fsync "libc.so" 731 967 732 968 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 733 969 734 970 func Ftruncate(fd int, length int64) (err error) { 735 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length)) 736 if e1 != 0 { 737 err = errnoErr(e1) 738 } 739 return 740 } 971 _, _, e1 := syscall_syscall(libc_ftruncate_trampoline_addr, uintptr(fd), uintptr(length), 0) 972 if e1 != 0 { 973 err = errnoErr(e1) 974 } 975 return 976 } 977 978 var libc_ftruncate_trampoline_addr uintptr 979 980 //go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so" 741 981 742 982 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 743 983 744 984 func Getegid() (egid int) { 745 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)985 r0, _, _ := syscall_rawSyscall(libc_getegid_trampoline_addr, 0, 0, 0) 746 986 egid = int(r0) 747 987 return 748 988 } 749 989 990 var libc_getegid_trampoline_addr uintptr 991 992 //go:cgo_import_dynamic libc_getegid getegid "libc.so" 993 750 994 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 751 995 752 996 func Geteuid() (uid int) { 753 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)997 r0, _, _ := syscall_rawSyscall(libc_geteuid_trampoline_addr, 0, 0, 0) 754 998 uid = int(r0) 755 999 return 756 1000 } 757 1001 1002 var libc_geteuid_trampoline_addr uintptr 1003 1004 //go:cgo_import_dynamic libc_geteuid geteuid "libc.so" 1005 758 1006 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 759 1007 760 1008 func Getgid() (gid int) { 761 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)1009 r0, _, _ := syscall_rawSyscall(libc_getgid_trampoline_addr, 0, 0, 0) 762 1010 gid = int(r0) 763 1011 return 764 1012 } 765 1013 1014 var libc_getgid_trampoline_addr uintptr 1015 1016 //go:cgo_import_dynamic libc_getgid getgid "libc.so" 1017 766 1018 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 767 1019 768 1020 func Getpgid(pid int) (pgid int, err error) { 769 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)1021 r0, _, e1 := syscall_rawSyscall(libc_getpgid_trampoline_addr, uintptr(pid), 0, 0) 770 1022 pgid = int(r0) 771 1023 if e1 != 0 { … … 775 1027 } 776 1028 1029 var libc_getpgid_trampoline_addr uintptr 1030 1031 //go:cgo_import_dynamic libc_getpgid getpgid "libc.so" 1032 777 1033 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 778 1034 779 1035 func Getpgrp() (pgrp int) { 780 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)1036 r0, _, _ := syscall_rawSyscall(libc_getpgrp_trampoline_addr, 0, 0, 0) 781 1037 pgrp = int(r0) 782 1038 return 783 1039 } 784 1040 1041 var libc_getpgrp_trampoline_addr uintptr 1042 1043 //go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so" 1044 785 1045 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 786 1046 787 1047 func Getpid() (pid int) { 788 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)1048 r0, _, _ := syscall_rawSyscall(libc_getpid_trampoline_addr, 0, 0, 0) 789 1049 pid = int(r0) 790 1050 return 791 1051 } 792 1052 1053 var libc_getpid_trampoline_addr uintptr 1054 1055 //go:cgo_import_dynamic libc_getpid getpid "libc.so" 1056 793 1057 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 794 1058 795 1059 func Getppid() (ppid int) { 796 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)1060 r0, _, _ := syscall_rawSyscall(libc_getppid_trampoline_addr, 0, 0, 0) 797 1061 ppid = int(r0) 798 1062 return 799 1063 } 800 1064 1065 var libc_getppid_trampoline_addr uintptr 1066 1067 //go:cgo_import_dynamic libc_getppid getppid "libc.so" 1068 801 1069 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 802 1070 803 1071 func Getpriority(which int, who int) (prio int, err error) { 804 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)1072 r0, _, e1 := syscall_syscall(libc_getpriority_trampoline_addr, uintptr(which), uintptr(who), 0) 805 1073 prio = int(r0) 806 1074 if e1 != 0 { … … 810 1078 } 811 1079 1080 var libc_getpriority_trampoline_addr uintptr 1081 1082 //go:cgo_import_dynamic libc_getpriority getpriority "libc.so" 1083 812 1084 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 813 1085 814 1086 func Getrlimit(which int, lim *Rlimit) (err error) { 815 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 816 if e1 != 0 { 817 err = errnoErr(e1) 818 } 819 return 820 } 1087 _, _, e1 := syscall_rawSyscall(libc_getrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 1088 if e1 != 0 { 1089 err = errnoErr(e1) 1090 } 1091 return 1092 } 1093 1094 var libc_getrlimit_trampoline_addr uintptr 1095 1096 //go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so" 821 1097 822 1098 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 823 1099 824 1100 func Getrtable() (rtable int, err error) { 825 r0, _, e1 := RawSyscall(SYS_GETRTABLE, 0, 0, 0)1101 r0, _, e1 := syscall_rawSyscall(libc_getrtable_trampoline_addr, 0, 0, 0) 826 1102 rtable = int(r0) 827 1103 if e1 != 0 { … … 831 1107 } 832 1108 1109 var libc_getrtable_trampoline_addr uintptr 1110 1111 //go:cgo_import_dynamic libc_getrtable getrtable "libc.so" 1112 833 1113 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 834 1114 835 1115 func Getrusage(who int, rusage *Rusage) (err error) { 836 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) 837 if e1 != 0 { 838 err = errnoErr(e1) 839 } 840 return 841 } 1116 _, _, e1 := syscall_rawSyscall(libc_getrusage_trampoline_addr, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) 1117 if e1 != 0 { 1118 err = errnoErr(e1) 1119 } 1120 return 1121 } 1122 1123 var libc_getrusage_trampoline_addr uintptr 1124 1125 //go:cgo_import_dynamic libc_getrusage getrusage "libc.so" 842 1126 843 1127 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 844 1128 845 1129 func Getsid(pid int) (sid int, err error) { 846 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)1130 r0, _, e1 := syscall_rawSyscall(libc_getsid_trampoline_addr, uintptr(pid), 0, 0) 847 1131 sid = int(r0) 848 1132 if e1 != 0 { … … 852 1136 } 853 1137 1138 var libc_getsid_trampoline_addr uintptr 1139 1140 //go:cgo_import_dynamic libc_getsid getsid "libc.so" 1141 854 1142 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 855 1143 856 1144 func Gettimeofday(tv *Timeval) (err error) { 857 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) 858 if e1 != 0 { 859 err = errnoErr(e1) 860 } 861 return 862 } 1145 _, _, e1 := syscall_rawSyscall(libc_gettimeofday_trampoline_addr, uintptr(unsafe.Pointer(tv)), 0, 0) 1146 if e1 != 0 { 1147 err = errnoErr(e1) 1148 } 1149 return 1150 } 1151 1152 var libc_gettimeofday_trampoline_addr uintptr 1153 1154 //go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so" 863 1155 864 1156 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 865 1157 866 1158 func Getuid() (uid int) { 867 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)1159 r0, _, _ := syscall_rawSyscall(libc_getuid_trampoline_addr, 0, 0, 0) 868 1160 uid = int(r0) 869 1161 return 870 1162 } 871 1163 1164 var libc_getuid_trampoline_addr uintptr 1165 1166 //go:cgo_import_dynamic libc_getuid getuid "libc.so" 1167 872 1168 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 873 1169 874 1170 func Issetugid() (tainted bool) { 875 r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)1171 r0, _, _ := syscall_syscall(libc_issetugid_trampoline_addr, 0, 0, 0) 876 1172 tainted = bool(r0 != 0) 877 1173 return 878 1174 } 879 1175 1176 var libc_issetugid_trampoline_addr uintptr 1177 1178 //go:cgo_import_dynamic libc_issetugid issetugid "libc.so" 1179 880 1180 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 881 1181 882 1182 func Kill(pid int, signum syscall.Signal) (err error) { 883 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) 884 if e1 != 0 { 885 err = errnoErr(e1) 886 } 887 return 888 } 1183 _, _, e1 := syscall_syscall(libc_kill_trampoline_addr, uintptr(pid), uintptr(signum), 0) 1184 if e1 != 0 { 1185 err = errnoErr(e1) 1186 } 1187 return 1188 } 1189 1190 var libc_kill_trampoline_addr uintptr 1191 1192 //go:cgo_import_dynamic libc_kill kill "libc.so" 889 1193 890 1194 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 891 1195 892 1196 func Kqueue() (fd int, err error) { 893 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)1197 r0, _, e1 := syscall_syscall(libc_kqueue_trampoline_addr, 0, 0, 0) 894 1198 fd = int(r0) 895 1199 if e1 != 0 { … … 899 1203 } 900 1204 1205 var libc_kqueue_trampoline_addr uintptr 1206 1207 //go:cgo_import_dynamic libc_kqueue kqueue "libc.so" 1208 901 1209 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 902 1210 … … 907 1215 return 908 1216 } 909 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 910 if e1 != 0 { 911 err = errnoErr(e1) 912 } 913 return 914 } 1217 _, _, e1 := syscall_syscall(libc_lchown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 1218 if e1 != 0 { 1219 err = errnoErr(e1) 1220 } 1221 return 1222 } 1223 1224 var libc_lchown_trampoline_addr uintptr 1225 1226 //go:cgo_import_dynamic libc_lchown lchown "libc.so" 915 1227 916 1228 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 927 1239 return 928 1240 } 929 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 930 if e1 != 0 { 931 err = errnoErr(e1) 932 } 933 return 934 } 1241 _, _, e1 := syscall_syscall(libc_link_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1242 if e1 != 0 { 1243 err = errnoErr(e1) 1244 } 1245 return 1246 } 1247 1248 var libc_link_trampoline_addr uintptr 1249 1250 //go:cgo_import_dynamic libc_link link "libc.so" 935 1251 936 1252 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 947 1263 return 948 1264 } 949 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 950 if e1 != 0 { 951 err = errnoErr(e1) 952 } 953 return 954 } 1265 _, _, e1 := syscall_syscall6(libc_linkat_trampoline_addr, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 1266 if e1 != 0 { 1267 err = errnoErr(e1) 1268 } 1269 return 1270 } 1271 1272 var libc_linkat_trampoline_addr uintptr 1273 1274 //go:cgo_import_dynamic libc_linkat linkat "libc.so" 955 1275 956 1276 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 957 1277 958 1278 func Listen(s int, backlog int) (err error) { 959 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) 960 if e1 != 0 { 961 err = errnoErr(e1) 962 } 963 return 964 } 1279 _, _, e1 := syscall_syscall(libc_listen_trampoline_addr, uintptr(s), uintptr(backlog), 0) 1280 if e1 != 0 { 1281 err = errnoErr(e1) 1282 } 1283 return 1284 } 1285 1286 var libc_listen_trampoline_addr uintptr 1287 1288 //go:cgo_import_dynamic libc_listen listen "libc.so" 965 1289 966 1290 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 972 1296 return 973 1297 } 974 _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 975 if e1 != 0 { 976 err = errnoErr(e1) 977 } 978 return 979 } 1298 _, _, e1 := syscall_syscall(libc_lstat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1299 if e1 != 0 { 1300 err = errnoErr(e1) 1301 } 1302 return 1303 } 1304 1305 var libc_lstat_trampoline_addr uintptr 1306 1307 //go:cgo_import_dynamic libc_lstat lstat "libc.so" 980 1308 981 1309 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 987 1315 return 988 1316 } 989 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 990 if e1 != 0 { 991 err = errnoErr(e1) 992 } 993 return 994 } 1317 _, _, e1 := syscall_syscall(libc_mkdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 1318 if e1 != 0 { 1319 err = errnoErr(e1) 1320 } 1321 return 1322 } 1323 1324 var libc_mkdir_trampoline_addr uintptr 1325 1326 //go:cgo_import_dynamic libc_mkdir mkdir "libc.so" 995 1327 996 1328 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1002 1334 return 1003 1335 } 1004 _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1005 if e1 != 0 { 1006 err = errnoErr(e1) 1007 } 1008 return 1009 } 1336 _, _, e1 := syscall_syscall(libc_mkdirat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1337 if e1 != 0 { 1338 err = errnoErr(e1) 1339 } 1340 return 1341 } 1342 1343 var libc_mkdirat_trampoline_addr uintptr 1344 1345 //go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so" 1010 1346 1011 1347 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1017 1353 return 1018 1354 } 1019 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 1020 if e1 != 0 { 1021 err = errnoErr(e1) 1022 } 1023 return 1024 } 1355 _, _, e1 := syscall_syscall(libc_mkfifo_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 1356 if e1 != 0 { 1357 err = errnoErr(e1) 1358 } 1359 return 1360 } 1361 1362 var libc_mkfifo_trampoline_addr uintptr 1363 1364 //go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so" 1025 1365 1026 1366 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1032 1372 return 1033 1373 } 1034 _, _, e1 := Syscall(SYS_MKFIFOAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1035 if e1 != 0 { 1036 err = errnoErr(e1) 1037 } 1038 return 1039 } 1374 _, _, e1 := syscall_syscall(libc_mkfifoat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1375 if e1 != 0 { 1376 err = errnoErr(e1) 1377 } 1378 return 1379 } 1380 1381 var libc_mkfifoat_trampoline_addr uintptr 1382 1383 //go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so" 1040 1384 1041 1385 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1047 1391 return 1048 1392 } 1049 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) 1050 if e1 != 0 { 1051 err = errnoErr(e1) 1052 } 1053 return 1054 } 1393 _, _, e1 := syscall_syscall(libc_mknod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) 1394 if e1 != 0 { 1395 err = errnoErr(e1) 1396 } 1397 return 1398 } 1399 1400 var libc_mknod_trampoline_addr uintptr 1401 1402 //go:cgo_import_dynamic libc_mknod mknod "libc.so" 1055 1403 1056 1404 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1062 1410 return 1063 1411 } 1064 _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) 1065 if e1 != 0 { 1066 err = errnoErr(e1) 1067 } 1068 return 1069 } 1412 _, _, e1 := syscall_syscall6(libc_mknodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) 1413 if e1 != 0 { 1414 err = errnoErr(e1) 1415 } 1416 return 1417 } 1418 1419 var libc_mknodat_trampoline_addr uintptr 1420 1421 //go:cgo_import_dynamic libc_mknodat mknodat "libc.so" 1070 1422 1071 1423 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1072 1424 1073 1425 func Nanosleep(time *Timespec, leftover *Timespec) (err error) { 1074 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) 1075 if e1 != 0 { 1076 err = errnoErr(e1) 1077 } 1078 return 1079 } 1426 _, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) 1427 if e1 != 0 { 1428 err = errnoErr(e1) 1429 } 1430 return 1431 } 1432 1433 var libc_nanosleep_trampoline_addr uintptr 1434 1435 //go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so" 1080 1436 1081 1437 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1087 1443 return 1088 1444 } 1089 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))1445 r0, _, e1 := syscall_syscall(libc_open_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) 1090 1446 fd = int(r0) 1091 1447 if e1 != 0 { … … 1095 1451 } 1096 1452 1453 var libc_open_trampoline_addr uintptr 1454 1455 //go:cgo_import_dynamic libc_open open "libc.so" 1456 1097 1457 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1098 1458 … … 1103 1463 return 1104 1464 } 1105 r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0)1465 r0, _, e1 := syscall_syscall6(libc_openat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) 1106 1466 fd = int(r0) 1107 1467 if e1 != 0 { … … 1111 1471 } 1112 1472 1473 var libc_openat_trampoline_addr uintptr 1474 1475 //go:cgo_import_dynamic libc_openat openat "libc.so" 1476 1113 1477 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1114 1478 … … 1119 1483 return 1120 1484 } 1121 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)1485 r0, _, e1 := syscall_syscall(libc_pathconf_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) 1122 1486 val = int(r0) 1123 1487 if e1 != 0 { … … 1126 1490 return 1127 1491 } 1492 1493 var libc_pathconf_trampoline_addr uintptr 1494 1495 //go:cgo_import_dynamic libc_pathconf pathconf "libc.so" 1128 1496 1129 1497 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1136 1504 _p0 = unsafe.Pointer(&_zero) 1137 1505 } 1138 r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0)1506 r0, _, e1 := syscall_syscall6(libc_pread_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) 1139 1507 n = int(r0) 1140 1508 if e1 != 0 { … … 1143 1511 return 1144 1512 } 1513 1514 var libc_pread_trampoline_addr uintptr 1515 1516 //go:cgo_import_dynamic libc_pread pread "libc.so" 1145 1517 1146 1518 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1153 1525 _p0 = unsafe.Pointer(&_zero) 1154 1526 } 1155 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0)1527 r0, _, e1 := syscall_syscall6(libc_pwrite_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) 1156 1528 n = int(r0) 1157 1529 if e1 != 0 { … … 1160 1532 return 1161 1533 } 1534 1535 var libc_pwrite_trampoline_addr uintptr 1536 1537 //go:cgo_import_dynamic libc_pwrite pwrite "libc.so" 1162 1538 1163 1539 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1170 1546 _p0 = unsafe.Pointer(&_zero) 1171 1547 } 1172 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))1548 r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) 1173 1549 n = int(r0) 1174 1550 if e1 != 0 { … … 1177 1553 return 1178 1554 } 1555 1556 var libc_read_trampoline_addr uintptr 1557 1558 //go:cgo_import_dynamic libc_read read "libc.so" 1179 1559 1180 1560 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1192 1572 _p1 = unsafe.Pointer(&_zero) 1193 1573 } 1194 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))1574 r0, _, e1 := syscall_syscall(libc_readlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) 1195 1575 n = int(r0) 1196 1576 if e1 != 0 { … … 1199 1579 return 1200 1580 } 1581 1582 var libc_readlink_trampoline_addr uintptr 1583 1584 //go:cgo_import_dynamic libc_readlink readlink "libc.so" 1201 1585 1202 1586 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1214 1598 _p1 = unsafe.Pointer(&_zero) 1215 1599 } 1216 r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)1600 r0, _, e1 := syscall_syscall6(libc_readlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) 1217 1601 n = int(r0) 1218 1602 if e1 != 0 { … … 1221 1605 return 1222 1606 } 1607 1608 var libc_readlinkat_trampoline_addr uintptr 1609 1610 //go:cgo_import_dynamic libc_readlinkat readlinkat "libc.so" 1223 1611 1224 1612 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1235 1623 return 1236 1624 } 1237 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1238 if e1 != 0 { 1239 err = errnoErr(e1) 1240 } 1241 return 1242 } 1625 _, _, e1 := syscall_syscall(libc_rename_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1626 if e1 != 0 { 1627 err = errnoErr(e1) 1628 } 1629 return 1630 } 1631 1632 var libc_rename_trampoline_addr uintptr 1633 1634 //go:cgo_import_dynamic libc_rename rename "libc.so" 1243 1635 1244 1636 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1255 1647 return 1256 1648 } 1257 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) 1258 if e1 != 0 { 1259 err = errnoErr(e1) 1260 } 1261 return 1262 } 1649 _, _, e1 := syscall_syscall6(libc_renameat_trampoline_addr, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) 1650 if e1 != 0 { 1651 err = errnoErr(e1) 1652 } 1653 return 1654 } 1655 1656 var libc_renameat_trampoline_addr uintptr 1657 1658 //go:cgo_import_dynamic libc_renameat renameat "libc.so" 1263 1659 1264 1660 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1270 1666 return 1271 1667 } 1272 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) 1273 if e1 != 0 { 1274 err = errnoErr(e1) 1275 } 1276 return 1277 } 1668 _, _, e1 := syscall_syscall(libc_revoke_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 1669 if e1 != 0 { 1670 err = errnoErr(e1) 1671 } 1672 return 1673 } 1674 1675 var libc_revoke_trampoline_addr uintptr 1676 1677 //go:cgo_import_dynamic libc_revoke revoke "libc.so" 1278 1678 1279 1679 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1285 1685 return 1286 1686 } 1287 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) 1288 if e1 != 0 { 1289 err = errnoErr(e1) 1290 } 1291 return 1292 } 1687 _, _, e1 := syscall_syscall(libc_rmdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 1688 if e1 != 0 { 1689 err = errnoErr(e1) 1690 } 1691 return 1692 } 1693 1694 var libc_rmdir_trampoline_addr uintptr 1695 1696 //go:cgo_import_dynamic libc_rmdir rmdir "libc.so" 1293 1697 1294 1698 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1295 1699 1296 1700 func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { 1297 r0, _, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(whence), 0, 0)1701 r0, _, e1 := syscall_syscall(libc_lseek_trampoline_addr, uintptr(fd), uintptr(offset), uintptr(whence)) 1298 1702 newoffset = int64(r0) 1299 1703 if e1 != 0 { … … 1303 1707 } 1304 1708 1709 var libc_lseek_trampoline_addr uintptr 1710 1711 //go:cgo_import_dynamic libc_lseek lseek "libc.so" 1712 1305 1713 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1306 1714 1307 1715 func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { 1308 r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)1716 r0, _, e1 := syscall_syscall6(libc_select_trampoline_addr, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) 1309 1717 n = int(r0) 1310 1718 if e1 != 0 { … … 1314 1722 } 1315 1723 1724 var libc_select_trampoline_addr uintptr 1725 1726 //go:cgo_import_dynamic libc_select select "libc.so" 1727 1316 1728 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1317 1729 1318 1730 func Setegid(egid int) (err error) { 1319 _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) 1320 if e1 != 0 { 1321 err = errnoErr(e1) 1322 } 1323 return 1324 } 1731 _, _, e1 := syscall_rawSyscall(libc_setegid_trampoline_addr, uintptr(egid), 0, 0) 1732 if e1 != 0 { 1733 err = errnoErr(e1) 1734 } 1735 return 1736 } 1737 1738 var libc_setegid_trampoline_addr uintptr 1739 1740 //go:cgo_import_dynamic libc_setegid setegid "libc.so" 1325 1741 1326 1742 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1327 1743 1328 1744 func Seteuid(euid int) (err error) { 1329 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) 1330 if e1 != 0 { 1331 err = errnoErr(e1) 1332 } 1333 return 1334 } 1745 _, _, e1 := syscall_rawSyscall(libc_seteuid_trampoline_addr, uintptr(euid), 0, 0) 1746 if e1 != 0 { 1747 err = errnoErr(e1) 1748 } 1749 return 1750 } 1751 1752 var libc_seteuid_trampoline_addr uintptr 1753 1754 //go:cgo_import_dynamic libc_seteuid seteuid "libc.so" 1335 1755 1336 1756 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1337 1757 1338 1758 func Setgid(gid int) (err error) { 1339 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) 1340 if e1 != 0 { 1341 err = errnoErr(e1) 1342 } 1343 return 1344 } 1759 _, _, e1 := syscall_rawSyscall(libc_setgid_trampoline_addr, uintptr(gid), 0, 0) 1760 if e1 != 0 { 1761 err = errnoErr(e1) 1762 } 1763 return 1764 } 1765 1766 var libc_setgid_trampoline_addr uintptr 1767 1768 //go:cgo_import_dynamic libc_setgid setgid "libc.so" 1345 1769 1346 1770 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1352 1776 return 1353 1777 } 1354 _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) 1355 if e1 != 0 { 1356 err = errnoErr(e1) 1357 } 1358 return 1359 } 1778 _, _, e1 := syscall_syscall(libc_setlogin_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 1779 if e1 != 0 { 1780 err = errnoErr(e1) 1781 } 1782 return 1783 } 1784 1785 var libc_setlogin_trampoline_addr uintptr 1786 1787 //go:cgo_import_dynamic libc_setlogin setlogin "libc.so" 1360 1788 1361 1789 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1362 1790 1363 1791 func Setpgid(pid int, pgid int) (err error) { 1364 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) 1365 if e1 != 0 { 1366 err = errnoErr(e1) 1367 } 1368 return 1369 } 1792 _, _, e1 := syscall_rawSyscall(libc_setpgid_trampoline_addr, uintptr(pid), uintptr(pgid), 0) 1793 if e1 != 0 { 1794 err = errnoErr(e1) 1795 } 1796 return 1797 } 1798 1799 var libc_setpgid_trampoline_addr uintptr 1800 1801 //go:cgo_import_dynamic libc_setpgid setpgid "libc.so" 1370 1802 1371 1803 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1372 1804 1373 1805 func Setpriority(which int, who int, prio int) (err error) { 1374 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) 1375 if e1 != 0 { 1376 err = errnoErr(e1) 1377 } 1378 return 1379 } 1806 _, _, e1 := syscall_syscall(libc_setpriority_trampoline_addr, uintptr(which), uintptr(who), uintptr(prio)) 1807 if e1 != 0 { 1808 err = errnoErr(e1) 1809 } 1810 return 1811 } 1812 1813 var libc_setpriority_trampoline_addr uintptr 1814 1815 //go:cgo_import_dynamic libc_setpriority setpriority "libc.so" 1380 1816 1381 1817 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1382 1818 1383 1819 func Setregid(rgid int, egid int) (err error) { 1384 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) 1385 if e1 != 0 { 1386 err = errnoErr(e1) 1387 } 1388 return 1389 } 1820 _, _, e1 := syscall_rawSyscall(libc_setregid_trampoline_addr, uintptr(rgid), uintptr(egid), 0) 1821 if e1 != 0 { 1822 err = errnoErr(e1) 1823 } 1824 return 1825 } 1826 1827 var libc_setregid_trampoline_addr uintptr 1828 1829 //go:cgo_import_dynamic libc_setregid setregid "libc.so" 1390 1830 1391 1831 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1392 1832 1393 1833 func Setreuid(ruid int, euid int) (err error) { 1394 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) 1395 if e1 != 0 { 1396 err = errnoErr(e1) 1397 } 1398 return 1399 } 1834 _, _, e1 := syscall_rawSyscall(libc_setreuid_trampoline_addr, uintptr(ruid), uintptr(euid), 0) 1835 if e1 != 0 { 1836 err = errnoErr(e1) 1837 } 1838 return 1839 } 1840 1841 var libc_setreuid_trampoline_addr uintptr 1842 1843 //go:cgo_import_dynamic libc_setreuid setreuid "libc.so" 1400 1844 1401 1845 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1402 1846 1403 1847 func Setresgid(rgid int, egid int, sgid int) (err error) { 1404 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) 1405 if e1 != 0 { 1406 err = errnoErr(e1) 1407 } 1408 return 1409 } 1848 _, _, e1 := syscall_rawSyscall(libc_setresgid_trampoline_addr, uintptr(rgid), uintptr(egid), uintptr(sgid)) 1849 if e1 != 0 { 1850 err = errnoErr(e1) 1851 } 1852 return 1853 } 1854 1855 var libc_setresgid_trampoline_addr uintptr 1856 1857 //go:cgo_import_dynamic libc_setresgid setresgid "libc.so" 1410 1858 1411 1859 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1412 1860 1413 1861 func Setresuid(ruid int, euid int, suid int) (err error) { 1414 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) 1415 if e1 != 0 { 1416 err = errnoErr(e1) 1417 } 1418 return 1419 } 1862 _, _, e1 := syscall_rawSyscall(libc_setresuid_trampoline_addr, uintptr(ruid), uintptr(euid), uintptr(suid)) 1863 if e1 != 0 { 1864 err = errnoErr(e1) 1865 } 1866 return 1867 } 1868 1869 var libc_setresuid_trampoline_addr uintptr 1870 1871 //go:cgo_import_dynamic libc_setresuid setresuid "libc.so" 1420 1872 1421 1873 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1422 1874 1423 1875 func Setrlimit(which int, lim *Rlimit) (err error) { 1424 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 1425 if e1 != 0 { 1426 err = errnoErr(e1) 1427 } 1428 return 1429 } 1876 _, _, e1 := syscall_rawSyscall(libc_setrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 1877 if e1 != 0 { 1878 err = errnoErr(e1) 1879 } 1880 return 1881 } 1882 1883 var libc_setrlimit_trampoline_addr uintptr 1884 1885 //go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so" 1430 1886 1431 1887 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1432 1888 1433 1889 func Setrtable(rtable int) (err error) { 1434 _, _, e1 := RawSyscall(SYS_SETRTABLE, uintptr(rtable), 0, 0) 1435 if e1 != 0 { 1436 err = errnoErr(e1) 1437 } 1438 return 1439 } 1890 _, _, e1 := syscall_rawSyscall(libc_setrtable_trampoline_addr, uintptr(rtable), 0, 0) 1891 if e1 != 0 { 1892 err = errnoErr(e1) 1893 } 1894 return 1895 } 1896 1897 var libc_setrtable_trampoline_addr uintptr 1898 1899 //go:cgo_import_dynamic libc_setrtable setrtable "libc.so" 1440 1900 1441 1901 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1442 1902 1443 1903 func Setsid() (pid int, err error) { 1444 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)1904 r0, _, e1 := syscall_rawSyscall(libc_setsid_trampoline_addr, 0, 0, 0) 1445 1905 pid = int(r0) 1446 1906 if e1 != 0 { … … 1450 1910 } 1451 1911 1912 var libc_setsid_trampoline_addr uintptr 1913 1914 //go:cgo_import_dynamic libc_setsid setsid "libc.so" 1915 1452 1916 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1453 1917 1454 1918 func Settimeofday(tp *Timeval) (err error) { 1455 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) 1456 if e1 != 0 { 1457 err = errnoErr(e1) 1458 } 1459 return 1460 } 1919 _, _, e1 := syscall_rawSyscall(libc_settimeofday_trampoline_addr, uintptr(unsafe.Pointer(tp)), 0, 0) 1920 if e1 != 0 { 1921 err = errnoErr(e1) 1922 } 1923 return 1924 } 1925 1926 var libc_settimeofday_trampoline_addr uintptr 1927 1928 //go:cgo_import_dynamic libc_settimeofday settimeofday "libc.so" 1461 1929 1462 1930 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1463 1931 1464 1932 func Setuid(uid int) (err error) { 1465 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) 1466 if e1 != 0 { 1467 err = errnoErr(e1) 1468 } 1469 return 1470 } 1933 _, _, e1 := syscall_rawSyscall(libc_setuid_trampoline_addr, uintptr(uid), 0, 0) 1934 if e1 != 0 { 1935 err = errnoErr(e1) 1936 } 1937 return 1938 } 1939 1940 var libc_setuid_trampoline_addr uintptr 1941 1942 //go:cgo_import_dynamic libc_setuid setuid "libc.so" 1471 1943 1472 1944 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1478 1950 return 1479 1951 } 1480 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1481 if e1 != 0 { 1482 err = errnoErr(e1) 1483 } 1484 return 1485 } 1952 _, _, e1 := syscall_syscall(libc_stat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1953 if e1 != 0 { 1954 err = errnoErr(e1) 1955 } 1956 return 1957 } 1958 1959 var libc_stat_trampoline_addr uintptr 1960 1961 //go:cgo_import_dynamic libc_stat stat "libc.so" 1486 1962 1487 1963 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1493 1969 return 1494 1970 } 1495 _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1496 if e1 != 0 { 1497 err = errnoErr(e1) 1498 } 1499 return 1500 } 1971 _, _, e1 := syscall_syscall(libc_statfs_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1972 if e1 != 0 { 1973 err = errnoErr(e1) 1974 } 1975 return 1976 } 1977 1978 var libc_statfs_trampoline_addr uintptr 1979 1980 //go:cgo_import_dynamic libc_statfs statfs "libc.so" 1501 1981 1502 1982 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1513 1993 return 1514 1994 } 1515 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1516 if e1 != 0 { 1517 err = errnoErr(e1) 1518 } 1519 return 1520 } 1995 _, _, e1 := syscall_syscall(libc_symlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1996 if e1 != 0 { 1997 err = errnoErr(e1) 1998 } 1999 return 2000 } 2001 2002 var libc_symlink_trampoline_addr uintptr 2003 2004 //go:cgo_import_dynamic libc_symlink symlink "libc.so" 1521 2005 1522 2006 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1533 2017 return 1534 2018 } 1535 _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) 1536 if e1 != 0 { 1537 err = errnoErr(e1) 1538 } 1539 return 1540 } 2019 _, _, e1 := syscall_syscall(libc_symlinkat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) 2020 if e1 != 0 { 2021 err = errnoErr(e1) 2022 } 2023 return 2024 } 2025 2026 var libc_symlinkat_trampoline_addr uintptr 2027 2028 //go:cgo_import_dynamic libc_symlinkat symlinkat "libc.so" 1541 2029 1542 2030 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1543 2031 1544 2032 func Sync() (err error) { 1545 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) 1546 if e1 != 0 { 1547 err = errnoErr(e1) 1548 } 1549 return 1550 } 2033 _, _, e1 := syscall_syscall(libc_sync_trampoline_addr, 0, 0, 0) 2034 if e1 != 0 { 2035 err = errnoErr(e1) 2036 } 2037 return 2038 } 2039 2040 var libc_sync_trampoline_addr uintptr 2041 2042 //go:cgo_import_dynamic libc_sync sync "libc.so" 1551 2043 1552 2044 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1558 2050 return 1559 2051 } 1560 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length)) 1561 if e1 != 0 { 1562 err = errnoErr(e1) 1563 } 1564 return 1565 } 2052 _, _, e1 := syscall_syscall(libc_truncate_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) 2053 if e1 != 0 { 2054 err = errnoErr(e1) 2055 } 2056 return 2057 } 2058 2059 var libc_truncate_trampoline_addr uintptr 2060 2061 //go:cgo_import_dynamic libc_truncate truncate "libc.so" 1566 2062 1567 2063 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1568 2064 1569 2065 func Umask(newmask int) (oldmask int) { 1570 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)2066 r0, _, _ := syscall_syscall(libc_umask_trampoline_addr, uintptr(newmask), 0, 0) 1571 2067 oldmask = int(r0) 1572 2068 return 1573 2069 } 1574 2070 2071 var libc_umask_trampoline_addr uintptr 2072 2073 //go:cgo_import_dynamic libc_umask umask "libc.so" 2074 1575 2075 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1576 2076 … … 1581 2081 return 1582 2082 } 1583 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) 1584 if e1 != 0 { 1585 err = errnoErr(e1) 1586 } 1587 return 1588 } 2083 _, _, e1 := syscall_syscall(libc_unlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 2084 if e1 != 0 { 2085 err = errnoErr(e1) 2086 } 2087 return 2088 } 2089 2090 var libc_unlink_trampoline_addr uintptr 2091 2092 //go:cgo_import_dynamic libc_unlink unlink "libc.so" 1589 2093 1590 2094 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1596 2100 return 1597 2101 } 1598 _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) 1599 if e1 != 0 { 1600 err = errnoErr(e1) 1601 } 1602 return 1603 } 2102 _, _, e1 := syscall_syscall(libc_unlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) 2103 if e1 != 0 { 2104 err = errnoErr(e1) 2105 } 2106 return 2107 } 2108 2109 var libc_unlinkat_trampoline_addr uintptr 2110 2111 //go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so" 1604 2112 1605 2113 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1611 2119 return 1612 2120 } 1613 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 1614 if e1 != 0 { 1615 err = errnoErr(e1) 1616 } 1617 return 1618 } 2121 _, _, e1 := syscall_syscall(libc_unmount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 2122 if e1 != 0 { 2123 err = errnoErr(e1) 2124 } 2125 return 2126 } 2127 2128 var libc_unmount_trampoline_addr uintptr 2129 2130 //go:cgo_import_dynamic libc_unmount unmount "libc.so" 1619 2131 1620 2132 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1627 2139 _p0 = unsafe.Pointer(&_zero) 1628 2140 } 1629 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))2141 r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) 1630 2142 n = int(r0) 1631 2143 if e1 != 0 { … … 1635 2147 } 1636 2148 2149 var libc_write_trampoline_addr uintptr 2150 2151 //go:cgo_import_dynamic libc_write write "libc.so" 2152 1637 2153 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1638 2154 1639 2155 func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { 1640 r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), 0, 0)2156 r0, _, e1 := syscall_syscall6(libc_mmap_trampoline_addr, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) 1641 2157 ret = uintptr(r0) 1642 2158 if e1 != 0 { … … 1646 2162 } 1647 2163 2164 var libc_mmap_trampoline_addr uintptr 2165 2166 //go:cgo_import_dynamic libc_mmap mmap "libc.so" 2167 1648 2168 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1649 2169 1650 2170 func munmap(addr uintptr, length uintptr) (err error) { 1651 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) 1652 if e1 != 0 { 1653 err = errnoErr(e1) 1654 } 1655 return 1656 } 2171 _, _, e1 := syscall_syscall(libc_munmap_trampoline_addr, uintptr(addr), uintptr(length), 0) 2172 if e1 != 0 { 2173 err = errnoErr(e1) 2174 } 2175 return 2176 } 2177 2178 var libc_munmap_trampoline_addr uintptr 2179 2180 //go:cgo_import_dynamic libc_munmap munmap "libc.so" 1657 2181 1658 2182 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1659 2183 1660 2184 func readlen(fd int, buf *byte, nbuf int) (n int, err error) { 1661 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))2185 r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) 1662 2186 n = int(r0) 1663 2187 if e1 != 0 { … … 1670 2194 1671 2195 func writelen(fd int, buf *byte, nbuf int) (n int, err error) { 1672 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))2196 r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) 1673 2197 n = int(r0) 1674 2198 if e1 != 0 { … … 1686 2210 return 1687 2211 } 1688 _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) 1689 if e1 != 0 { 1690 err = errnoErr(e1) 1691 } 1692 return 1693 } 2212 _, _, e1 := syscall_syscall6(libc_utimensat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) 2213 if e1 != 0 { 2214 err = errnoErr(e1) 2215 } 2216 return 2217 } 2218 2219 var libc_utimensat_trampoline_addr uintptr 2220 2221 //go:cgo_import_dynamic libc_utimensat utimensat "libc.so" -
trunk/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go
r67 r69 1 // go run mksyscall.go -l32 -openbsd -arm - tags openbsd,arm syscall_bsd.go syscall_openbsd.go syscall_openbsd_arm.go1 // go run mksyscall.go -l32 -openbsd -arm -libc -tags openbsd,arm syscall_bsd.go syscall_openbsd.go syscall_openbsd_arm.go 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 17 17 18 18 func getgroups(ngid int, gid *_Gid_t) (n int, err error) { 19 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)19 r0, _, e1 := syscall_rawSyscall(libc_getgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) 20 20 n = int(r0) 21 21 if e1 != 0 { … … 25 25 } 26 26 27 var libc_getgroups_trampoline_addr uintptr 28 29 //go:cgo_import_dynamic libc_getgroups getgroups "libc.so" 30 27 31 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 28 32 29 33 func setgroups(ngid int, gid *_Gid_t) (err error) { 30 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) 31 if e1 != 0 { 32 err = errnoErr(e1) 33 } 34 return 35 } 34 _, _, e1 := syscall_rawSyscall(libc_setgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) 35 if e1 != 0 { 36 err = errnoErr(e1) 37 } 38 return 39 } 40 41 var libc_setgroups_trampoline_addr uintptr 42 43 //go:cgo_import_dynamic libc_setgroups setgroups "libc.so" 36 44 37 45 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 38 46 39 47 func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { 40 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)48 r0, _, e1 := syscall_syscall6(libc_wait4_trampoline_addr, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) 41 49 wpid = int(r0) 42 50 if e1 != 0 { … … 46 54 } 47 55 56 var libc_wait4_trampoline_addr uintptr 57 58 //go:cgo_import_dynamic libc_wait4 wait4 "libc.so" 59 48 60 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 49 61 50 62 func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { 51 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))63 r0, _, e1 := syscall_syscall(libc_accept_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 52 64 fd = int(r0) 53 65 if e1 != 0 { … … 57 69 } 58 70 71 var libc_accept_trampoline_addr uintptr 72 73 //go:cgo_import_dynamic libc_accept accept "libc.so" 74 59 75 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 60 76 61 77 func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { 62 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) 63 if e1 != 0 { 64 err = errnoErr(e1) 65 } 66 return 67 } 78 _, _, e1 := syscall_syscall(libc_bind_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) 79 if e1 != 0 { 80 err = errnoErr(e1) 81 } 82 return 83 } 84 85 var libc_bind_trampoline_addr uintptr 86 87 //go:cgo_import_dynamic libc_bind bind "libc.so" 68 88 69 89 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 70 90 71 91 func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { 72 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) 73 if e1 != 0 { 74 err = errnoErr(e1) 75 } 76 return 77 } 92 _, _, e1 := syscall_syscall(libc_connect_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) 93 if e1 != 0 { 94 err = errnoErr(e1) 95 } 96 return 97 } 98 99 var libc_connect_trampoline_addr uintptr 100 101 //go:cgo_import_dynamic libc_connect connect "libc.so" 78 102 79 103 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 80 104 81 105 func socket(domain int, typ int, proto int) (fd int, err error) { 82 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))106 r0, _, e1 := syscall_rawSyscall(libc_socket_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto)) 83 107 fd = int(r0) 84 108 if e1 != 0 { … … 88 112 } 89 113 114 var libc_socket_trampoline_addr uintptr 115 116 //go:cgo_import_dynamic libc_socket socket "libc.so" 117 90 118 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 91 119 92 120 func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { 93 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) 94 if e1 != 0 { 95 err = errnoErr(e1) 96 } 97 return 98 } 121 _, _, e1 := syscall_syscall6(libc_getsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) 122 if e1 != 0 { 123 err = errnoErr(e1) 124 } 125 return 126 } 127 128 var libc_getsockopt_trampoline_addr uintptr 129 130 //go:cgo_import_dynamic libc_getsockopt getsockopt "libc.so" 99 131 100 132 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 101 133 102 134 func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { 103 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) 104 if e1 != 0 { 105 err = errnoErr(e1) 106 } 107 return 108 } 135 _, _, e1 := syscall_syscall6(libc_setsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) 136 if e1 != 0 { 137 err = errnoErr(e1) 138 } 139 return 140 } 141 142 var libc_setsockopt_trampoline_addr uintptr 143 144 //go:cgo_import_dynamic libc_setsockopt setsockopt "libc.so" 109 145 110 146 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 111 147 112 148 func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { 113 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 114 if e1 != 0 { 115 err = errnoErr(e1) 116 } 117 return 118 } 149 _, _, e1 := syscall_rawSyscall(libc_getpeername_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 150 if e1 != 0 { 151 err = errnoErr(e1) 152 } 153 return 154 } 155 156 var libc_getpeername_trampoline_addr uintptr 157 158 //go:cgo_import_dynamic libc_getpeername getpeername "libc.so" 119 159 120 160 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 121 161 122 162 func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { 123 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 124 if e1 != 0 { 125 err = errnoErr(e1) 126 } 127 return 128 } 163 _, _, e1 := syscall_rawSyscall(libc_getsockname_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 164 if e1 != 0 { 165 err = errnoErr(e1) 166 } 167 return 168 } 169 170 var libc_getsockname_trampoline_addr uintptr 171 172 //go:cgo_import_dynamic libc_getsockname getsockname "libc.so" 129 173 130 174 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 131 175 132 176 func Shutdown(s int, how int) (err error) { 133 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) 134 if e1 != 0 { 135 err = errnoErr(e1) 136 } 137 return 138 } 177 _, _, e1 := syscall_syscall(libc_shutdown_trampoline_addr, uintptr(s), uintptr(how), 0) 178 if e1 != 0 { 179 err = errnoErr(e1) 180 } 181 return 182 } 183 184 var libc_shutdown_trampoline_addr uintptr 185 186 //go:cgo_import_dynamic libc_shutdown shutdown "libc.so" 139 187 140 188 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 141 189 142 190 func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { 143 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) 144 if e1 != 0 { 145 err = errnoErr(e1) 146 } 147 return 148 } 191 _, _, e1 := syscall_rawSyscall6(libc_socketpair_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) 192 if e1 != 0 { 193 err = errnoErr(e1) 194 } 195 return 196 } 197 198 var libc_socketpair_trampoline_addr uintptr 199 200 //go:cgo_import_dynamic libc_socketpair socketpair "libc.so" 149 201 150 202 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 157 209 _p0 = unsafe.Pointer(&_zero) 158 210 } 159 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))211 r0, _, e1 := syscall_syscall6(libc_recvfrom_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) 160 212 n = int(r0) 161 213 if e1 != 0 { … … 164 216 return 165 217 } 218 219 var libc_recvfrom_trampoline_addr uintptr 220 221 //go:cgo_import_dynamic libc_recvfrom recvfrom "libc.so" 166 222 167 223 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 174 230 _p0 = unsafe.Pointer(&_zero) 175 231 } 176 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) 177 if e1 != 0 { 178 err = errnoErr(e1) 179 } 180 return 181 } 232 _, _, e1 := syscall_syscall6(libc_sendto_trampoline_addr, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) 233 if e1 != 0 { 234 err = errnoErr(e1) 235 } 236 return 237 } 238 239 var libc_sendto_trampoline_addr uintptr 240 241 //go:cgo_import_dynamic libc_sendto sendto "libc.so" 182 242 183 243 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 184 244 185 245 func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { 186 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))246 r0, _, e1 := syscall_syscall(libc_recvmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) 187 247 n = int(r0) 188 248 if e1 != 0 { … … 192 252 } 193 253 254 var libc_recvmsg_trampoline_addr uintptr 255 256 //go:cgo_import_dynamic libc_recvmsg recvmsg "libc.so" 257 194 258 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 195 259 196 260 func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { 197 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))261 r0, _, e1 := syscall_syscall(libc_sendmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) 198 262 n = int(r0) 199 263 if e1 != 0 { … … 203 267 } 204 268 269 var libc_sendmsg_trampoline_addr uintptr 270 271 //go:cgo_import_dynamic libc_sendmsg sendmsg "libc.so" 272 205 273 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 206 274 207 275 func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { 208 r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))276 r0, _, e1 := syscall_syscall6(libc_kevent_trampoline_addr, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) 209 277 n = int(r0) 210 278 if e1 != 0 { … … 214 282 } 215 283 284 var libc_kevent_trampoline_addr uintptr 285 286 //go:cgo_import_dynamic libc_kevent kevent "libc.so" 287 216 288 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 217 289 … … 222 294 return 223 295 } 224 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) 225 if e1 != 0 { 226 err = errnoErr(e1) 227 } 228 return 229 } 296 _, _, e1 := syscall_syscall(libc_utimes_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) 297 if e1 != 0 { 298 err = errnoErr(e1) 299 } 300 return 301 } 302 303 var libc_utimes_trampoline_addr uintptr 304 305 //go:cgo_import_dynamic libc_utimes utimes "libc.so" 230 306 231 307 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 232 308 233 309 func futimes(fd int, timeval *[2]Timeval) (err error) { 234 _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) 235 if e1 != 0 { 236 err = errnoErr(e1) 237 } 238 return 239 } 310 _, _, e1 := syscall_syscall(libc_futimes_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) 311 if e1 != 0 { 312 err = errnoErr(e1) 313 } 314 return 315 } 316 317 var libc_futimes_trampoline_addr uintptr 318 319 //go:cgo_import_dynamic libc_futimes futimes "libc.so" 240 320 241 321 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 242 322 243 323 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { 244 r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))324 r0, _, e1 := syscall_syscall(libc_poll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) 245 325 n = int(r0) 246 326 if e1 != 0 { … … 249 329 return 250 330 } 331 332 var libc_poll_trampoline_addr uintptr 333 334 //go:cgo_import_dynamic libc_poll poll "libc.so" 251 335 252 336 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 259 343 _p0 = unsafe.Pointer(&_zero) 260 344 } 261 _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) 262 if e1 != 0 { 263 err = errnoErr(e1) 264 } 265 return 266 } 345 _, _, e1 := syscall_syscall(libc_madvise_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(behav)) 346 if e1 != 0 { 347 err = errnoErr(e1) 348 } 349 return 350 } 351 352 var libc_madvise_trampoline_addr uintptr 353 354 //go:cgo_import_dynamic libc_madvise madvise "libc.so" 267 355 268 356 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 275 363 _p0 = unsafe.Pointer(&_zero) 276 364 } 277 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) 278 if e1 != 0 { 279 err = errnoErr(e1) 280 } 281 return 282 } 365 _, _, e1 := syscall_syscall(libc_mlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) 366 if e1 != 0 { 367 err = errnoErr(e1) 368 } 369 return 370 } 371 372 var libc_mlock_trampoline_addr uintptr 373 374 //go:cgo_import_dynamic libc_mlock mlock "libc.so" 283 375 284 376 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 285 377 286 378 func Mlockall(flags int) (err error) { 287 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) 288 if e1 != 0 { 289 err = errnoErr(e1) 290 } 291 return 292 } 379 _, _, e1 := syscall_syscall(libc_mlockall_trampoline_addr, uintptr(flags), 0, 0) 380 if e1 != 0 { 381 err = errnoErr(e1) 382 } 383 return 384 } 385 386 var libc_mlockall_trampoline_addr uintptr 387 388 //go:cgo_import_dynamic libc_mlockall mlockall "libc.so" 293 389 294 390 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 301 397 _p0 = unsafe.Pointer(&_zero) 302 398 } 303 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) 304 if e1 != 0 { 305 err = errnoErr(e1) 306 } 307 return 308 } 399 _, _, e1 := syscall_syscall(libc_mprotect_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(prot)) 400 if e1 != 0 { 401 err = errnoErr(e1) 402 } 403 return 404 } 405 406 var libc_mprotect_trampoline_addr uintptr 407 408 //go:cgo_import_dynamic libc_mprotect mprotect "libc.so" 309 409 310 410 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 317 417 _p0 = unsafe.Pointer(&_zero) 318 418 } 319 _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) 320 if e1 != 0 { 321 err = errnoErr(e1) 322 } 323 return 324 } 419 _, _, e1 := syscall_syscall(libc_msync_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(flags)) 420 if e1 != 0 { 421 err = errnoErr(e1) 422 } 423 return 424 } 425 426 var libc_msync_trampoline_addr uintptr 427 428 //go:cgo_import_dynamic libc_msync msync "libc.so" 325 429 326 430 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 333 437 _p0 = unsafe.Pointer(&_zero) 334 438 } 335 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) 336 if e1 != 0 { 337 err = errnoErr(e1) 338 } 339 return 340 } 439 _, _, e1 := syscall_syscall(libc_munlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) 440 if e1 != 0 { 441 err = errnoErr(e1) 442 } 443 return 444 } 445 446 var libc_munlock_trampoline_addr uintptr 447 448 //go:cgo_import_dynamic libc_munlock munlock "libc.so" 341 449 342 450 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 343 451 344 452 func Munlockall() (err error) { 345 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) 346 if e1 != 0 { 347 err = errnoErr(e1) 348 } 349 return 350 } 453 _, _, e1 := syscall_syscall(libc_munlockall_trampoline_addr, 0, 0, 0) 454 if e1 != 0 { 455 err = errnoErr(e1) 456 } 457 return 458 } 459 460 var libc_munlockall_trampoline_addr uintptr 461 462 //go:cgo_import_dynamic libc_munlockall munlockall "libc.so" 351 463 352 464 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 353 465 354 466 func pipe2(p *[2]_C_int, flags int) (err error) { 355 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) 356 if e1 != 0 { 357 err = errnoErr(e1) 358 } 359 return 360 } 467 _, _, e1 := syscall_rawSyscall(libc_pipe2_trampoline_addr, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) 468 if e1 != 0 { 469 err = errnoErr(e1) 470 } 471 return 472 } 473 474 var libc_pipe2_trampoline_addr uintptr 475 476 //go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so" 361 477 362 478 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 369 485 _p0 = unsafe.Pointer(&_zero) 370 486 } 371 r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf)))487 r0, _, e1 := syscall_syscall(libc_getdents_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(buf))) 372 488 n = int(r0) 373 489 if e1 != 0 { … … 376 492 return 377 493 } 494 495 var libc_getdents_trampoline_addr uintptr 496 497 //go:cgo_import_dynamic libc_getdents getdents "libc.so" 378 498 379 499 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 386 506 _p0 = unsafe.Pointer(&_zero) 387 507 } 388 r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0)508 r0, _, e1 := syscall_syscall(libc_getcwd_trampoline_addr, uintptr(_p0), uintptr(len(buf)), 0) 389 509 n = int(r0) 390 510 if e1 != 0 { … … 394 514 } 395 515 516 var libc_getcwd_trampoline_addr uintptr 517 518 //go:cgo_import_dynamic libc_getcwd getcwd "libc.so" 519 396 520 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 397 521 398 522 func ioctl(fd int, req uint, arg uintptr) (err error) { 399 _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) 400 if e1 != 0 { 401 err = errnoErr(e1) 402 } 403 return 404 } 523 _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) 524 if e1 != 0 { 525 err = errnoErr(e1) 526 } 527 return 528 } 529 530 var libc_ioctl_trampoline_addr uintptr 531 532 //go:cgo_import_dynamic libc_ioctl ioctl "libc.so" 405 533 406 534 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 413 541 _p0 = unsafe.Pointer(&_zero) 414 542 } 415 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) 416 if e1 != 0 { 417 err = errnoErr(e1) 418 } 419 return 420 } 543 _, _, e1 := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) 544 if e1 != 0 { 545 err = errnoErr(e1) 546 } 547 return 548 } 549 550 var libc_sysctl_trampoline_addr uintptr 551 552 //go:cgo_import_dynamic libc_sysctl sysctl "libc.so" 421 553 422 554 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 423 555 424 556 func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { 425 r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0)557 r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) 426 558 n = int(r0) 427 559 if e1 != 0 { … … 431 563 } 432 564 565 var libc_ppoll_trampoline_addr uintptr 566 567 //go:cgo_import_dynamic libc_ppoll ppoll "libc.so" 568 433 569 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 434 570 … … 439 575 return 440 576 } 441 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 442 if e1 != 0 { 443 err = errnoErr(e1) 444 } 445 return 446 } 577 _, _, e1 := syscall_syscall(libc_access_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 578 if e1 != 0 { 579 err = errnoErr(e1) 580 } 581 return 582 } 583 584 var libc_access_trampoline_addr uintptr 585 586 //go:cgo_import_dynamic libc_access access "libc.so" 447 587 448 588 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 449 589 450 590 func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { 451 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) 452 if e1 != 0 { 453 err = errnoErr(e1) 454 } 455 return 456 } 591 _, _, e1 := syscall_syscall(libc_adjtime_trampoline_addr, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) 592 if e1 != 0 { 593 err = errnoErr(e1) 594 } 595 return 596 } 597 598 var libc_adjtime_trampoline_addr uintptr 599 600 //go:cgo_import_dynamic libc_adjtime adjtime "libc.so" 457 601 458 602 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 464 608 return 465 609 } 466 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) 467 if e1 != 0 { 468 err = errnoErr(e1) 469 } 470 return 471 } 610 _, _, e1 := syscall_syscall(libc_chdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 611 if e1 != 0 { 612 err = errnoErr(e1) 613 } 614 return 615 } 616 617 var libc_chdir_trampoline_addr uintptr 618 619 //go:cgo_import_dynamic libc_chdir chdir "libc.so" 472 620 473 621 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 479 627 return 480 628 } 481 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 482 if e1 != 0 { 483 err = errnoErr(e1) 484 } 485 return 486 } 629 _, _, e1 := syscall_syscall(libc_chflags_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 630 if e1 != 0 { 631 err = errnoErr(e1) 632 } 633 return 634 } 635 636 var libc_chflags_trampoline_addr uintptr 637 638 //go:cgo_import_dynamic libc_chflags chflags "libc.so" 487 639 488 640 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 494 646 return 495 647 } 496 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 497 if e1 != 0 { 498 err = errnoErr(e1) 499 } 500 return 501 } 648 _, _, e1 := syscall_syscall(libc_chmod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 649 if e1 != 0 { 650 err = errnoErr(e1) 651 } 652 return 653 } 654 655 var libc_chmod_trampoline_addr uintptr 656 657 //go:cgo_import_dynamic libc_chmod chmod "libc.so" 502 658 503 659 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 509 665 return 510 666 } 511 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 512 if e1 != 0 { 513 err = errnoErr(e1) 514 } 515 return 516 } 667 _, _, e1 := syscall_syscall(libc_chown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 668 if e1 != 0 { 669 err = errnoErr(e1) 670 } 671 return 672 } 673 674 var libc_chown_trampoline_addr uintptr 675 676 //go:cgo_import_dynamic libc_chown chown "libc.so" 517 677 518 678 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 524 684 return 525 685 } 526 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) 527 if e1 != 0 { 528 err = errnoErr(e1) 529 } 530 return 531 } 686 _, _, e1 := syscall_syscall(libc_chroot_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 687 if e1 != 0 { 688 err = errnoErr(e1) 689 } 690 return 691 } 692 693 var libc_chroot_trampoline_addr uintptr 694 695 //go:cgo_import_dynamic libc_chroot chroot "libc.so" 532 696 533 697 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 534 698 535 699 func Close(fd int) (err error) { 536 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) 537 if e1 != 0 { 538 err = errnoErr(e1) 539 } 540 return 541 } 700 _, _, e1 := syscall_syscall(libc_close_trampoline_addr, uintptr(fd), 0, 0) 701 if e1 != 0 { 702 err = errnoErr(e1) 703 } 704 return 705 } 706 707 var libc_close_trampoline_addr uintptr 708 709 //go:cgo_import_dynamic libc_close close "libc.so" 542 710 543 711 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 544 712 545 713 func Dup(fd int) (nfd int, err error) { 546 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)714 r0, _, e1 := syscall_syscall(libc_dup_trampoline_addr, uintptr(fd), 0, 0) 547 715 nfd = int(r0) 548 716 if e1 != 0 { … … 552 720 } 553 721 722 var libc_dup_trampoline_addr uintptr 723 724 //go:cgo_import_dynamic libc_dup dup "libc.so" 725 554 726 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 555 727 556 728 func Dup2(from int, to int) (err error) { 557 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) 558 if e1 != 0 { 559 err = errnoErr(e1) 560 } 561 return 562 } 729 _, _, e1 := syscall_syscall(libc_dup2_trampoline_addr, uintptr(from), uintptr(to), 0) 730 if e1 != 0 { 731 err = errnoErr(e1) 732 } 733 return 734 } 735 736 var libc_dup2_trampoline_addr uintptr 737 738 //go:cgo_import_dynamic libc_dup2 dup2 "libc.so" 563 739 564 740 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 565 741 566 742 func Dup3(from int, to int, flags int) (err error) { 567 _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags)) 568 if e1 != 0 { 569 err = errnoErr(e1) 570 } 571 return 572 } 743 _, _, e1 := syscall_syscall(libc_dup3_trampoline_addr, uintptr(from), uintptr(to), uintptr(flags)) 744 if e1 != 0 { 745 err = errnoErr(e1) 746 } 747 return 748 } 749 750 var libc_dup3_trampoline_addr uintptr 751 752 //go:cgo_import_dynamic libc_dup3 dup3 "libc.so" 573 753 574 754 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 575 755 576 756 func Exit(code int) { 577 Syscall(SYS_EXIT, uintptr(code), 0, 0) 578 return 579 } 757 syscall_syscall(libc_exit_trampoline_addr, uintptr(code), 0, 0) 758 return 759 } 760 761 var libc_exit_trampoline_addr uintptr 762 763 //go:cgo_import_dynamic libc_exit exit "libc.so" 580 764 581 765 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 587 771 return 588 772 } 589 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 590 if e1 != 0 { 591 err = errnoErr(e1) 592 } 593 return 594 } 773 _, _, e1 := syscall_syscall6(libc_faccessat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 774 if e1 != 0 { 775 err = errnoErr(e1) 776 } 777 return 778 } 779 780 var libc_faccessat_trampoline_addr uintptr 781 782 //go:cgo_import_dynamic libc_faccessat faccessat "libc.so" 595 783 596 784 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 597 785 598 786 func Fchdir(fd int) (err error) { 599 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) 600 if e1 != 0 { 601 err = errnoErr(e1) 602 } 603 return 604 } 787 _, _, e1 := syscall_syscall(libc_fchdir_trampoline_addr, uintptr(fd), 0, 0) 788 if e1 != 0 { 789 err = errnoErr(e1) 790 } 791 return 792 } 793 794 var libc_fchdir_trampoline_addr uintptr 795 796 //go:cgo_import_dynamic libc_fchdir fchdir "libc.so" 605 797 606 798 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 607 799 608 800 func Fchflags(fd int, flags int) (err error) { 609 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) 610 if e1 != 0 { 611 err = errnoErr(e1) 612 } 613 return 614 } 801 _, _, e1 := syscall_syscall(libc_fchflags_trampoline_addr, uintptr(fd), uintptr(flags), 0) 802 if e1 != 0 { 803 err = errnoErr(e1) 804 } 805 return 806 } 807 808 var libc_fchflags_trampoline_addr uintptr 809 810 //go:cgo_import_dynamic libc_fchflags fchflags "libc.so" 615 811 616 812 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 617 813 618 814 func Fchmod(fd int, mode uint32) (err error) { 619 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) 620 if e1 != 0 { 621 err = errnoErr(e1) 622 } 623 return 624 } 815 _, _, e1 := syscall_syscall(libc_fchmod_trampoline_addr, uintptr(fd), uintptr(mode), 0) 816 if e1 != 0 { 817 err = errnoErr(e1) 818 } 819 return 820 } 821 822 var libc_fchmod_trampoline_addr uintptr 823 824 //go:cgo_import_dynamic libc_fchmod fchmod "libc.so" 625 825 626 826 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 632 832 return 633 833 } 634 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 635 if e1 != 0 { 636 err = errnoErr(e1) 637 } 638 return 639 } 834 _, _, e1 := syscall_syscall6(libc_fchmodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 835 if e1 != 0 { 836 err = errnoErr(e1) 837 } 838 return 839 } 840 841 var libc_fchmodat_trampoline_addr uintptr 842 843 //go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so" 640 844 641 845 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 642 846 643 847 func Fchown(fd int, uid int, gid int) (err error) { 644 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) 645 if e1 != 0 { 646 err = errnoErr(e1) 647 } 648 return 649 } 848 _, _, e1 := syscall_syscall(libc_fchown_trampoline_addr, uintptr(fd), uintptr(uid), uintptr(gid)) 849 if e1 != 0 { 850 err = errnoErr(e1) 851 } 852 return 853 } 854 855 var libc_fchown_trampoline_addr uintptr 856 857 //go:cgo_import_dynamic libc_fchown fchown "libc.so" 650 858 651 859 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 657 865 return 658 866 } 659 _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) 660 if e1 != 0 { 661 err = errnoErr(e1) 662 } 663 return 664 } 867 _, _, e1 := syscall_syscall6(libc_fchownat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) 868 if e1 != 0 { 869 err = errnoErr(e1) 870 } 871 return 872 } 873 874 var libc_fchownat_trampoline_addr uintptr 875 876 //go:cgo_import_dynamic libc_fchownat fchownat "libc.so" 665 877 666 878 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 667 879 668 880 func Flock(fd int, how int) (err error) { 669 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) 670 if e1 != 0 { 671 err = errnoErr(e1) 672 } 673 return 674 } 881 _, _, e1 := syscall_syscall(libc_flock_trampoline_addr, uintptr(fd), uintptr(how), 0) 882 if e1 != 0 { 883 err = errnoErr(e1) 884 } 885 return 886 } 887 888 var libc_flock_trampoline_addr uintptr 889 890 //go:cgo_import_dynamic libc_flock flock "libc.so" 675 891 676 892 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 677 893 678 894 func Fpathconf(fd int, name int) (val int, err error) { 679 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)895 r0, _, e1 := syscall_syscall(libc_fpathconf_trampoline_addr, uintptr(fd), uintptr(name), 0) 680 896 val = int(r0) 681 897 if e1 != 0 { … … 685 901 } 686 902 903 var libc_fpathconf_trampoline_addr uintptr 904 905 //go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so" 906 687 907 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 688 908 689 909 func Fstat(fd int, stat *Stat_t) (err error) { 690 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 691 if e1 != 0 { 692 err = errnoErr(e1) 693 } 694 return 695 } 910 _, _, e1 := syscall_syscall(libc_fstat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 911 if e1 != 0 { 912 err = errnoErr(e1) 913 } 914 return 915 } 916 917 var libc_fstat_trampoline_addr uintptr 918 919 //go:cgo_import_dynamic libc_fstat fstat "libc.so" 696 920 697 921 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 703 927 return 704 928 } 705 _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) 706 if e1 != 0 { 707 err = errnoErr(e1) 708 } 709 return 710 } 929 _, _, e1 := syscall_syscall6(libc_fstatat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) 930 if e1 != 0 { 931 err = errnoErr(e1) 932 } 933 return 934 } 935 936 var libc_fstatat_trampoline_addr uintptr 937 938 //go:cgo_import_dynamic libc_fstatat fstatat "libc.so" 711 939 712 940 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 713 941 714 942 func Fstatfs(fd int, stat *Statfs_t) (err error) { 715 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 716 if e1 != 0 { 717 err = errnoErr(e1) 718 } 719 return 720 } 943 _, _, e1 := syscall_syscall(libc_fstatfs_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 944 if e1 != 0 { 945 err = errnoErr(e1) 946 } 947 return 948 } 949 950 var libc_fstatfs_trampoline_addr uintptr 951 952 //go:cgo_import_dynamic libc_fstatfs fstatfs "libc.so" 721 953 722 954 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 723 955 724 956 func Fsync(fd int) (err error) { 725 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) 726 if e1 != 0 { 727 err = errnoErr(e1) 728 } 729 return 730 } 957 _, _, e1 := syscall_syscall(libc_fsync_trampoline_addr, uintptr(fd), 0, 0) 958 if e1 != 0 { 959 err = errnoErr(e1) 960 } 961 return 962 } 963 964 var libc_fsync_trampoline_addr uintptr 965 966 //go:cgo_import_dynamic libc_fsync fsync "libc.so" 731 967 732 968 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 733 969 734 970 func Ftruncate(fd int, length int64) (err error) { 735 _, _, e1 := Syscall6(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0) 736 if e1 != 0 { 737 err = errnoErr(e1) 738 } 739 return 740 } 971 _, _, e1 := syscall_syscall6(libc_ftruncate_trampoline_addr, uintptr(fd), 0, uintptr(length), uintptr(length>>32), 0, 0) 972 if e1 != 0 { 973 err = errnoErr(e1) 974 } 975 return 976 } 977 978 var libc_ftruncate_trampoline_addr uintptr 979 980 //go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so" 741 981 742 982 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 743 983 744 984 func Getegid() (egid int) { 745 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)985 r0, _, _ := syscall_rawSyscall(libc_getegid_trampoline_addr, 0, 0, 0) 746 986 egid = int(r0) 747 987 return 748 988 } 749 989 990 var libc_getegid_trampoline_addr uintptr 991 992 //go:cgo_import_dynamic libc_getegid getegid "libc.so" 993 750 994 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 751 995 752 996 func Geteuid() (uid int) { 753 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)997 r0, _, _ := syscall_rawSyscall(libc_geteuid_trampoline_addr, 0, 0, 0) 754 998 uid = int(r0) 755 999 return 756 1000 } 757 1001 1002 var libc_geteuid_trampoline_addr uintptr 1003 1004 //go:cgo_import_dynamic libc_geteuid geteuid "libc.so" 1005 758 1006 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 759 1007 760 1008 func Getgid() (gid int) { 761 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)1009 r0, _, _ := syscall_rawSyscall(libc_getgid_trampoline_addr, 0, 0, 0) 762 1010 gid = int(r0) 763 1011 return 764 1012 } 765 1013 1014 var libc_getgid_trampoline_addr uintptr 1015 1016 //go:cgo_import_dynamic libc_getgid getgid "libc.so" 1017 766 1018 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 767 1019 768 1020 func Getpgid(pid int) (pgid int, err error) { 769 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)1021 r0, _, e1 := syscall_rawSyscall(libc_getpgid_trampoline_addr, uintptr(pid), 0, 0) 770 1022 pgid = int(r0) 771 1023 if e1 != 0 { … … 775 1027 } 776 1028 1029 var libc_getpgid_trampoline_addr uintptr 1030 1031 //go:cgo_import_dynamic libc_getpgid getpgid "libc.so" 1032 777 1033 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 778 1034 779 1035 func Getpgrp() (pgrp int) { 780 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)1036 r0, _, _ := syscall_rawSyscall(libc_getpgrp_trampoline_addr, 0, 0, 0) 781 1037 pgrp = int(r0) 782 1038 return 783 1039 } 784 1040 1041 var libc_getpgrp_trampoline_addr uintptr 1042 1043 //go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so" 1044 785 1045 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 786 1046 787 1047 func Getpid() (pid int) { 788 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)1048 r0, _, _ := syscall_rawSyscall(libc_getpid_trampoline_addr, 0, 0, 0) 789 1049 pid = int(r0) 790 1050 return 791 1051 } 792 1052 1053 var libc_getpid_trampoline_addr uintptr 1054 1055 //go:cgo_import_dynamic libc_getpid getpid "libc.so" 1056 793 1057 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 794 1058 795 1059 func Getppid() (ppid int) { 796 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)1060 r0, _, _ := syscall_rawSyscall(libc_getppid_trampoline_addr, 0, 0, 0) 797 1061 ppid = int(r0) 798 1062 return 799 1063 } 800 1064 1065 var libc_getppid_trampoline_addr uintptr 1066 1067 //go:cgo_import_dynamic libc_getppid getppid "libc.so" 1068 801 1069 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 802 1070 803 1071 func Getpriority(which int, who int) (prio int, err error) { 804 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)1072 r0, _, e1 := syscall_syscall(libc_getpriority_trampoline_addr, uintptr(which), uintptr(who), 0) 805 1073 prio = int(r0) 806 1074 if e1 != 0 { … … 810 1078 } 811 1079 1080 var libc_getpriority_trampoline_addr uintptr 1081 1082 //go:cgo_import_dynamic libc_getpriority getpriority "libc.so" 1083 812 1084 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 813 1085 814 1086 func Getrlimit(which int, lim *Rlimit) (err error) { 815 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 816 if e1 != 0 { 817 err = errnoErr(e1) 818 } 819 return 820 } 1087 _, _, e1 := syscall_rawSyscall(libc_getrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 1088 if e1 != 0 { 1089 err = errnoErr(e1) 1090 } 1091 return 1092 } 1093 1094 var libc_getrlimit_trampoline_addr uintptr 1095 1096 //go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so" 821 1097 822 1098 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 823 1099 824 1100 func Getrtable() (rtable int, err error) { 825 r0, _, e1 := RawSyscall(SYS_GETRTABLE, 0, 0, 0)1101 r0, _, e1 := syscall_rawSyscall(libc_getrtable_trampoline_addr, 0, 0, 0) 826 1102 rtable = int(r0) 827 1103 if e1 != 0 { … … 831 1107 } 832 1108 1109 var libc_getrtable_trampoline_addr uintptr 1110 1111 //go:cgo_import_dynamic libc_getrtable getrtable "libc.so" 1112 833 1113 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 834 1114 835 1115 func Getrusage(who int, rusage *Rusage) (err error) { 836 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) 837 if e1 != 0 { 838 err = errnoErr(e1) 839 } 840 return 841 } 1116 _, _, e1 := syscall_rawSyscall(libc_getrusage_trampoline_addr, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) 1117 if e1 != 0 { 1118 err = errnoErr(e1) 1119 } 1120 return 1121 } 1122 1123 var libc_getrusage_trampoline_addr uintptr 1124 1125 //go:cgo_import_dynamic libc_getrusage getrusage "libc.so" 842 1126 843 1127 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 844 1128 845 1129 func Getsid(pid int) (sid int, err error) { 846 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)1130 r0, _, e1 := syscall_rawSyscall(libc_getsid_trampoline_addr, uintptr(pid), 0, 0) 847 1131 sid = int(r0) 848 1132 if e1 != 0 { … … 852 1136 } 853 1137 1138 var libc_getsid_trampoline_addr uintptr 1139 1140 //go:cgo_import_dynamic libc_getsid getsid "libc.so" 1141 854 1142 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 855 1143 856 1144 func Gettimeofday(tv *Timeval) (err error) { 857 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) 858 if e1 != 0 { 859 err = errnoErr(e1) 860 } 861 return 862 } 1145 _, _, e1 := syscall_rawSyscall(libc_gettimeofday_trampoline_addr, uintptr(unsafe.Pointer(tv)), 0, 0) 1146 if e1 != 0 { 1147 err = errnoErr(e1) 1148 } 1149 return 1150 } 1151 1152 var libc_gettimeofday_trampoline_addr uintptr 1153 1154 //go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so" 863 1155 864 1156 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 865 1157 866 1158 func Getuid() (uid int) { 867 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)1159 r0, _, _ := syscall_rawSyscall(libc_getuid_trampoline_addr, 0, 0, 0) 868 1160 uid = int(r0) 869 1161 return 870 1162 } 871 1163 1164 var libc_getuid_trampoline_addr uintptr 1165 1166 //go:cgo_import_dynamic libc_getuid getuid "libc.so" 1167 872 1168 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 873 1169 874 1170 func Issetugid() (tainted bool) { 875 r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)1171 r0, _, _ := syscall_syscall(libc_issetugid_trampoline_addr, 0, 0, 0) 876 1172 tainted = bool(r0 != 0) 877 1173 return 878 1174 } 879 1175 1176 var libc_issetugid_trampoline_addr uintptr 1177 1178 //go:cgo_import_dynamic libc_issetugid issetugid "libc.so" 1179 880 1180 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 881 1181 882 1182 func Kill(pid int, signum syscall.Signal) (err error) { 883 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) 884 if e1 != 0 { 885 err = errnoErr(e1) 886 } 887 return 888 } 1183 _, _, e1 := syscall_syscall(libc_kill_trampoline_addr, uintptr(pid), uintptr(signum), 0) 1184 if e1 != 0 { 1185 err = errnoErr(e1) 1186 } 1187 return 1188 } 1189 1190 var libc_kill_trampoline_addr uintptr 1191 1192 //go:cgo_import_dynamic libc_kill kill "libc.so" 889 1193 890 1194 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 891 1195 892 1196 func Kqueue() (fd int, err error) { 893 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)1197 r0, _, e1 := syscall_syscall(libc_kqueue_trampoline_addr, 0, 0, 0) 894 1198 fd = int(r0) 895 1199 if e1 != 0 { … … 899 1203 } 900 1204 1205 var libc_kqueue_trampoline_addr uintptr 1206 1207 //go:cgo_import_dynamic libc_kqueue kqueue "libc.so" 1208 901 1209 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 902 1210 … … 907 1215 return 908 1216 } 909 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 910 if e1 != 0 { 911 err = errnoErr(e1) 912 } 913 return 914 } 1217 _, _, e1 := syscall_syscall(libc_lchown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 1218 if e1 != 0 { 1219 err = errnoErr(e1) 1220 } 1221 return 1222 } 1223 1224 var libc_lchown_trampoline_addr uintptr 1225 1226 //go:cgo_import_dynamic libc_lchown lchown "libc.so" 915 1227 916 1228 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 927 1239 return 928 1240 } 929 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 930 if e1 != 0 { 931 err = errnoErr(e1) 932 } 933 return 934 } 1241 _, _, e1 := syscall_syscall(libc_link_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1242 if e1 != 0 { 1243 err = errnoErr(e1) 1244 } 1245 return 1246 } 1247 1248 var libc_link_trampoline_addr uintptr 1249 1250 //go:cgo_import_dynamic libc_link link "libc.so" 935 1251 936 1252 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 947 1263 return 948 1264 } 949 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 950 if e1 != 0 { 951 err = errnoErr(e1) 952 } 953 return 954 } 1265 _, _, e1 := syscall_syscall6(libc_linkat_trampoline_addr, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 1266 if e1 != 0 { 1267 err = errnoErr(e1) 1268 } 1269 return 1270 } 1271 1272 var libc_linkat_trampoline_addr uintptr 1273 1274 //go:cgo_import_dynamic libc_linkat linkat "libc.so" 955 1275 956 1276 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 957 1277 958 1278 func Listen(s int, backlog int) (err error) { 959 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) 960 if e1 != 0 { 961 err = errnoErr(e1) 962 } 963 return 964 } 1279 _, _, e1 := syscall_syscall(libc_listen_trampoline_addr, uintptr(s), uintptr(backlog), 0) 1280 if e1 != 0 { 1281 err = errnoErr(e1) 1282 } 1283 return 1284 } 1285 1286 var libc_listen_trampoline_addr uintptr 1287 1288 //go:cgo_import_dynamic libc_listen listen "libc.so" 965 1289 966 1290 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 972 1296 return 973 1297 } 974 _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 975 if e1 != 0 { 976 err = errnoErr(e1) 977 } 978 return 979 } 1298 _, _, e1 := syscall_syscall(libc_lstat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1299 if e1 != 0 { 1300 err = errnoErr(e1) 1301 } 1302 return 1303 } 1304 1305 var libc_lstat_trampoline_addr uintptr 1306 1307 //go:cgo_import_dynamic libc_lstat lstat "libc.so" 980 1308 981 1309 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 987 1315 return 988 1316 } 989 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 990 if e1 != 0 { 991 err = errnoErr(e1) 992 } 993 return 994 } 1317 _, _, e1 := syscall_syscall(libc_mkdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 1318 if e1 != 0 { 1319 err = errnoErr(e1) 1320 } 1321 return 1322 } 1323 1324 var libc_mkdir_trampoline_addr uintptr 1325 1326 //go:cgo_import_dynamic libc_mkdir mkdir "libc.so" 995 1327 996 1328 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1002 1334 return 1003 1335 } 1004 _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1005 if e1 != 0 { 1006 err = errnoErr(e1) 1007 } 1008 return 1009 } 1336 _, _, e1 := syscall_syscall(libc_mkdirat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1337 if e1 != 0 { 1338 err = errnoErr(e1) 1339 } 1340 return 1341 } 1342 1343 var libc_mkdirat_trampoline_addr uintptr 1344 1345 //go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so" 1010 1346 1011 1347 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1017 1353 return 1018 1354 } 1019 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 1020 if e1 != 0 { 1021 err = errnoErr(e1) 1022 } 1023 return 1024 } 1355 _, _, e1 := syscall_syscall(libc_mkfifo_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 1356 if e1 != 0 { 1357 err = errnoErr(e1) 1358 } 1359 return 1360 } 1361 1362 var libc_mkfifo_trampoline_addr uintptr 1363 1364 //go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so" 1025 1365 1026 1366 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1032 1372 return 1033 1373 } 1034 _, _, e1 := Syscall(SYS_MKFIFOAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1035 if e1 != 0 { 1036 err = errnoErr(e1) 1037 } 1038 return 1039 } 1374 _, _, e1 := syscall_syscall(libc_mkfifoat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1375 if e1 != 0 { 1376 err = errnoErr(e1) 1377 } 1378 return 1379 } 1380 1381 var libc_mkfifoat_trampoline_addr uintptr 1382 1383 //go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so" 1040 1384 1041 1385 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1047 1391 return 1048 1392 } 1049 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) 1050 if e1 != 0 { 1051 err = errnoErr(e1) 1052 } 1053 return 1054 } 1393 _, _, e1 := syscall_syscall(libc_mknod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) 1394 if e1 != 0 { 1395 err = errnoErr(e1) 1396 } 1397 return 1398 } 1399 1400 var libc_mknod_trampoline_addr uintptr 1401 1402 //go:cgo_import_dynamic libc_mknod mknod "libc.so" 1055 1403 1056 1404 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1062 1410 return 1063 1411 } 1064 _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) 1065 if e1 != 0 { 1066 err = errnoErr(e1) 1067 } 1068 return 1069 } 1412 _, _, e1 := syscall_syscall6(libc_mknodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) 1413 if e1 != 0 { 1414 err = errnoErr(e1) 1415 } 1416 return 1417 } 1418 1419 var libc_mknodat_trampoline_addr uintptr 1420 1421 //go:cgo_import_dynamic libc_mknodat mknodat "libc.so" 1070 1422 1071 1423 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1072 1424 1073 1425 func Nanosleep(time *Timespec, leftover *Timespec) (err error) { 1074 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) 1075 if e1 != 0 { 1076 err = errnoErr(e1) 1077 } 1078 return 1079 } 1426 _, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) 1427 if e1 != 0 { 1428 err = errnoErr(e1) 1429 } 1430 return 1431 } 1432 1433 var libc_nanosleep_trampoline_addr uintptr 1434 1435 //go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so" 1080 1436 1081 1437 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1087 1443 return 1088 1444 } 1089 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))1445 r0, _, e1 := syscall_syscall(libc_open_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) 1090 1446 fd = int(r0) 1091 1447 if e1 != 0 { … … 1095 1451 } 1096 1452 1453 var libc_open_trampoline_addr uintptr 1454 1455 //go:cgo_import_dynamic libc_open open "libc.so" 1456 1097 1457 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1098 1458 … … 1103 1463 return 1104 1464 } 1105 r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0)1465 r0, _, e1 := syscall_syscall6(libc_openat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) 1106 1466 fd = int(r0) 1107 1467 if e1 != 0 { … … 1111 1471 } 1112 1472 1473 var libc_openat_trampoline_addr uintptr 1474 1475 //go:cgo_import_dynamic libc_openat openat "libc.so" 1476 1113 1477 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1114 1478 … … 1119 1483 return 1120 1484 } 1121 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)1485 r0, _, e1 := syscall_syscall(libc_pathconf_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) 1122 1486 val = int(r0) 1123 1487 if e1 != 0 { … … 1126 1490 return 1127 1491 } 1492 1493 var libc_pathconf_trampoline_addr uintptr 1494 1495 //go:cgo_import_dynamic libc_pathconf pathconf "libc.so" 1128 1496 1129 1497 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1136 1504 _p0 = unsafe.Pointer(&_zero) 1137 1505 } 1138 r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))1506 r0, _, e1 := syscall_syscall6(libc_pread_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) 1139 1507 n = int(r0) 1140 1508 if e1 != 0 { … … 1143 1511 return 1144 1512 } 1513 1514 var libc_pread_trampoline_addr uintptr 1515 1516 //go:cgo_import_dynamic libc_pread pread "libc.so" 1145 1517 1146 1518 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1153 1525 _p0 = unsafe.Pointer(&_zero) 1154 1526 } 1155 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32))1527 r0, _, e1 := syscall_syscall6(libc_pwrite_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), uintptr(offset>>32)) 1156 1528 n = int(r0) 1157 1529 if e1 != 0 { … … 1160 1532 return 1161 1533 } 1534 1535 var libc_pwrite_trampoline_addr uintptr 1536 1537 //go:cgo_import_dynamic libc_pwrite pwrite "libc.so" 1162 1538 1163 1539 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1170 1546 _p0 = unsafe.Pointer(&_zero) 1171 1547 } 1172 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))1548 r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) 1173 1549 n = int(r0) 1174 1550 if e1 != 0 { … … 1177 1553 return 1178 1554 } 1555 1556 var libc_read_trampoline_addr uintptr 1557 1558 //go:cgo_import_dynamic libc_read read "libc.so" 1179 1559 1180 1560 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1192 1572 _p1 = unsafe.Pointer(&_zero) 1193 1573 } 1194 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))1574 r0, _, e1 := syscall_syscall(libc_readlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) 1195 1575 n = int(r0) 1196 1576 if e1 != 0 { … … 1199 1579 return 1200 1580 } 1581 1582 var libc_readlink_trampoline_addr uintptr 1583 1584 //go:cgo_import_dynamic libc_readlink readlink "libc.so" 1201 1585 1202 1586 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1214 1598 _p1 = unsafe.Pointer(&_zero) 1215 1599 } 1216 r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)1600 r0, _, e1 := syscall_syscall6(libc_readlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) 1217 1601 n = int(r0) 1218 1602 if e1 != 0 { … … 1221 1605 return 1222 1606 } 1607 1608 var libc_readlinkat_trampoline_addr uintptr 1609 1610 //go:cgo_import_dynamic libc_readlinkat readlinkat "libc.so" 1223 1611 1224 1612 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1235 1623 return 1236 1624 } 1237 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1238 if e1 != 0 { 1239 err = errnoErr(e1) 1240 } 1241 return 1242 } 1625 _, _, e1 := syscall_syscall(libc_rename_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1626 if e1 != 0 { 1627 err = errnoErr(e1) 1628 } 1629 return 1630 } 1631 1632 var libc_rename_trampoline_addr uintptr 1633 1634 //go:cgo_import_dynamic libc_rename rename "libc.so" 1243 1635 1244 1636 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1255 1647 return 1256 1648 } 1257 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) 1258 if e1 != 0 { 1259 err = errnoErr(e1) 1260 } 1261 return 1262 } 1649 _, _, e1 := syscall_syscall6(libc_renameat_trampoline_addr, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) 1650 if e1 != 0 { 1651 err = errnoErr(e1) 1652 } 1653 return 1654 } 1655 1656 var libc_renameat_trampoline_addr uintptr 1657 1658 //go:cgo_import_dynamic libc_renameat renameat "libc.so" 1263 1659 1264 1660 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1270 1666 return 1271 1667 } 1272 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) 1273 if e1 != 0 { 1274 err = errnoErr(e1) 1275 } 1276 return 1277 } 1668 _, _, e1 := syscall_syscall(libc_revoke_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 1669 if e1 != 0 { 1670 err = errnoErr(e1) 1671 } 1672 return 1673 } 1674 1675 var libc_revoke_trampoline_addr uintptr 1676 1677 //go:cgo_import_dynamic libc_revoke revoke "libc.so" 1278 1678 1279 1679 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1285 1685 return 1286 1686 } 1287 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) 1288 if e1 != 0 { 1289 err = errnoErr(e1) 1290 } 1291 return 1292 } 1687 _, _, e1 := syscall_syscall(libc_rmdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 1688 if e1 != 0 { 1689 err = errnoErr(e1) 1690 } 1691 return 1692 } 1693 1694 var libc_rmdir_trampoline_addr uintptr 1695 1696 //go:cgo_import_dynamic libc_rmdir rmdir "libc.so" 1293 1697 1294 1698 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1295 1699 1296 1700 func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { 1297 r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0)1701 r0, r1, e1 := syscall_syscall6(libc_lseek_trampoline_addr, uintptr(fd), 0, uintptr(offset), uintptr(offset>>32), uintptr(whence), 0) 1298 1702 newoffset = int64(int64(r1)<<32 | int64(r0)) 1299 1703 if e1 != 0 { … … 1303 1707 } 1304 1708 1709 var libc_lseek_trampoline_addr uintptr 1710 1711 //go:cgo_import_dynamic libc_lseek lseek "libc.so" 1712 1305 1713 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1306 1714 1307 1715 func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { 1308 r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)1716 r0, _, e1 := syscall_syscall6(libc_select_trampoline_addr, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) 1309 1717 n = int(r0) 1310 1718 if e1 != 0 { … … 1314 1722 } 1315 1723 1724 var libc_select_trampoline_addr uintptr 1725 1726 //go:cgo_import_dynamic libc_select select "libc.so" 1727 1316 1728 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1317 1729 1318 1730 func Setegid(egid int) (err error) { 1319 _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) 1320 if e1 != 0 { 1321 err = errnoErr(e1) 1322 } 1323 return 1324 } 1731 _, _, e1 := syscall_rawSyscall(libc_setegid_trampoline_addr, uintptr(egid), 0, 0) 1732 if e1 != 0 { 1733 err = errnoErr(e1) 1734 } 1735 return 1736 } 1737 1738 var libc_setegid_trampoline_addr uintptr 1739 1740 //go:cgo_import_dynamic libc_setegid setegid "libc.so" 1325 1741 1326 1742 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1327 1743 1328 1744 func Seteuid(euid int) (err error) { 1329 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) 1330 if e1 != 0 { 1331 err = errnoErr(e1) 1332 } 1333 return 1334 } 1745 _, _, e1 := syscall_rawSyscall(libc_seteuid_trampoline_addr, uintptr(euid), 0, 0) 1746 if e1 != 0 { 1747 err = errnoErr(e1) 1748 } 1749 return 1750 } 1751 1752 var libc_seteuid_trampoline_addr uintptr 1753 1754 //go:cgo_import_dynamic libc_seteuid seteuid "libc.so" 1335 1755 1336 1756 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1337 1757 1338 1758 func Setgid(gid int) (err error) { 1339 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) 1340 if e1 != 0 { 1341 err = errnoErr(e1) 1342 } 1343 return 1344 } 1759 _, _, e1 := syscall_rawSyscall(libc_setgid_trampoline_addr, uintptr(gid), 0, 0) 1760 if e1 != 0 { 1761 err = errnoErr(e1) 1762 } 1763 return 1764 } 1765 1766 var libc_setgid_trampoline_addr uintptr 1767 1768 //go:cgo_import_dynamic libc_setgid setgid "libc.so" 1345 1769 1346 1770 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1352 1776 return 1353 1777 } 1354 _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) 1355 if e1 != 0 { 1356 err = errnoErr(e1) 1357 } 1358 return 1359 } 1778 _, _, e1 := syscall_syscall(libc_setlogin_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 1779 if e1 != 0 { 1780 err = errnoErr(e1) 1781 } 1782 return 1783 } 1784 1785 var libc_setlogin_trampoline_addr uintptr 1786 1787 //go:cgo_import_dynamic libc_setlogin setlogin "libc.so" 1360 1788 1361 1789 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1362 1790 1363 1791 func Setpgid(pid int, pgid int) (err error) { 1364 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) 1365 if e1 != 0 { 1366 err = errnoErr(e1) 1367 } 1368 return 1369 } 1792 _, _, e1 := syscall_rawSyscall(libc_setpgid_trampoline_addr, uintptr(pid), uintptr(pgid), 0) 1793 if e1 != 0 { 1794 err = errnoErr(e1) 1795 } 1796 return 1797 } 1798 1799 var libc_setpgid_trampoline_addr uintptr 1800 1801 //go:cgo_import_dynamic libc_setpgid setpgid "libc.so" 1370 1802 1371 1803 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1372 1804 1373 1805 func Setpriority(which int, who int, prio int) (err error) { 1374 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) 1375 if e1 != 0 { 1376 err = errnoErr(e1) 1377 } 1378 return 1379 } 1806 _, _, e1 := syscall_syscall(libc_setpriority_trampoline_addr, uintptr(which), uintptr(who), uintptr(prio)) 1807 if e1 != 0 { 1808 err = errnoErr(e1) 1809 } 1810 return 1811 } 1812 1813 var libc_setpriority_trampoline_addr uintptr 1814 1815 //go:cgo_import_dynamic libc_setpriority setpriority "libc.so" 1380 1816 1381 1817 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1382 1818 1383 1819 func Setregid(rgid int, egid int) (err error) { 1384 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) 1385 if e1 != 0 { 1386 err = errnoErr(e1) 1387 } 1388 return 1389 } 1820 _, _, e1 := syscall_rawSyscall(libc_setregid_trampoline_addr, uintptr(rgid), uintptr(egid), 0) 1821 if e1 != 0 { 1822 err = errnoErr(e1) 1823 } 1824 return 1825 } 1826 1827 var libc_setregid_trampoline_addr uintptr 1828 1829 //go:cgo_import_dynamic libc_setregid setregid "libc.so" 1390 1830 1391 1831 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1392 1832 1393 1833 func Setreuid(ruid int, euid int) (err error) { 1394 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) 1395 if e1 != 0 { 1396 err = errnoErr(e1) 1397 } 1398 return 1399 } 1834 _, _, e1 := syscall_rawSyscall(libc_setreuid_trampoline_addr, uintptr(ruid), uintptr(euid), 0) 1835 if e1 != 0 { 1836 err = errnoErr(e1) 1837 } 1838 return 1839 } 1840 1841 var libc_setreuid_trampoline_addr uintptr 1842 1843 //go:cgo_import_dynamic libc_setreuid setreuid "libc.so" 1400 1844 1401 1845 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1402 1846 1403 1847 func Setresgid(rgid int, egid int, sgid int) (err error) { 1404 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) 1405 if e1 != 0 { 1406 err = errnoErr(e1) 1407 } 1408 return 1409 } 1848 _, _, e1 := syscall_rawSyscall(libc_setresgid_trampoline_addr, uintptr(rgid), uintptr(egid), uintptr(sgid)) 1849 if e1 != 0 { 1850 err = errnoErr(e1) 1851 } 1852 return 1853 } 1854 1855 var libc_setresgid_trampoline_addr uintptr 1856 1857 //go:cgo_import_dynamic libc_setresgid setresgid "libc.so" 1410 1858 1411 1859 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1412 1860 1413 1861 func Setresuid(ruid int, euid int, suid int) (err error) { 1414 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) 1415 if e1 != 0 { 1416 err = errnoErr(e1) 1417 } 1418 return 1419 } 1862 _, _, e1 := syscall_rawSyscall(libc_setresuid_trampoline_addr, uintptr(ruid), uintptr(euid), uintptr(suid)) 1863 if e1 != 0 { 1864 err = errnoErr(e1) 1865 } 1866 return 1867 } 1868 1869 var libc_setresuid_trampoline_addr uintptr 1870 1871 //go:cgo_import_dynamic libc_setresuid setresuid "libc.so" 1420 1872 1421 1873 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1422 1874 1423 1875 func Setrlimit(which int, lim *Rlimit) (err error) { 1424 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 1425 if e1 != 0 { 1426 err = errnoErr(e1) 1427 } 1428 return 1429 } 1876 _, _, e1 := syscall_rawSyscall(libc_setrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 1877 if e1 != 0 { 1878 err = errnoErr(e1) 1879 } 1880 return 1881 } 1882 1883 var libc_setrlimit_trampoline_addr uintptr 1884 1885 //go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so" 1430 1886 1431 1887 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1432 1888 1433 1889 func Setrtable(rtable int) (err error) { 1434 _, _, e1 := RawSyscall(SYS_SETRTABLE, uintptr(rtable), 0, 0) 1435 if e1 != 0 { 1436 err = errnoErr(e1) 1437 } 1438 return 1439 } 1890 _, _, e1 := syscall_rawSyscall(libc_setrtable_trampoline_addr, uintptr(rtable), 0, 0) 1891 if e1 != 0 { 1892 err = errnoErr(e1) 1893 } 1894 return 1895 } 1896 1897 var libc_setrtable_trampoline_addr uintptr 1898 1899 //go:cgo_import_dynamic libc_setrtable setrtable "libc.so" 1440 1900 1441 1901 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1442 1902 1443 1903 func Setsid() (pid int, err error) { 1444 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)1904 r0, _, e1 := syscall_rawSyscall(libc_setsid_trampoline_addr, 0, 0, 0) 1445 1905 pid = int(r0) 1446 1906 if e1 != 0 { … … 1450 1910 } 1451 1911 1912 var libc_setsid_trampoline_addr uintptr 1913 1914 //go:cgo_import_dynamic libc_setsid setsid "libc.so" 1915 1452 1916 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1453 1917 1454 1918 func Settimeofday(tp *Timeval) (err error) { 1455 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) 1456 if e1 != 0 { 1457 err = errnoErr(e1) 1458 } 1459 return 1460 } 1919 _, _, e1 := syscall_rawSyscall(libc_settimeofday_trampoline_addr, uintptr(unsafe.Pointer(tp)), 0, 0) 1920 if e1 != 0 { 1921 err = errnoErr(e1) 1922 } 1923 return 1924 } 1925 1926 var libc_settimeofday_trampoline_addr uintptr 1927 1928 //go:cgo_import_dynamic libc_settimeofday settimeofday "libc.so" 1461 1929 1462 1930 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1463 1931 1464 1932 func Setuid(uid int) (err error) { 1465 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) 1466 if e1 != 0 { 1467 err = errnoErr(e1) 1468 } 1469 return 1470 } 1933 _, _, e1 := syscall_rawSyscall(libc_setuid_trampoline_addr, uintptr(uid), 0, 0) 1934 if e1 != 0 { 1935 err = errnoErr(e1) 1936 } 1937 return 1938 } 1939 1940 var libc_setuid_trampoline_addr uintptr 1941 1942 //go:cgo_import_dynamic libc_setuid setuid "libc.so" 1471 1943 1472 1944 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1478 1950 return 1479 1951 } 1480 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1481 if e1 != 0 { 1482 err = errnoErr(e1) 1483 } 1484 return 1485 } 1952 _, _, e1 := syscall_syscall(libc_stat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1953 if e1 != 0 { 1954 err = errnoErr(e1) 1955 } 1956 return 1957 } 1958 1959 var libc_stat_trampoline_addr uintptr 1960 1961 //go:cgo_import_dynamic libc_stat stat "libc.so" 1486 1962 1487 1963 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1493 1969 return 1494 1970 } 1495 _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1496 if e1 != 0 { 1497 err = errnoErr(e1) 1498 } 1499 return 1500 } 1971 _, _, e1 := syscall_syscall(libc_statfs_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1972 if e1 != 0 { 1973 err = errnoErr(e1) 1974 } 1975 return 1976 } 1977 1978 var libc_statfs_trampoline_addr uintptr 1979 1980 //go:cgo_import_dynamic libc_statfs statfs "libc.so" 1501 1981 1502 1982 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1513 1993 return 1514 1994 } 1515 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1516 if e1 != 0 { 1517 err = errnoErr(e1) 1518 } 1519 return 1520 } 1995 _, _, e1 := syscall_syscall(libc_symlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1996 if e1 != 0 { 1997 err = errnoErr(e1) 1998 } 1999 return 2000 } 2001 2002 var libc_symlink_trampoline_addr uintptr 2003 2004 //go:cgo_import_dynamic libc_symlink symlink "libc.so" 1521 2005 1522 2006 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1533 2017 return 1534 2018 } 1535 _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) 1536 if e1 != 0 { 1537 err = errnoErr(e1) 1538 } 1539 return 1540 } 2019 _, _, e1 := syscall_syscall(libc_symlinkat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) 2020 if e1 != 0 { 2021 err = errnoErr(e1) 2022 } 2023 return 2024 } 2025 2026 var libc_symlinkat_trampoline_addr uintptr 2027 2028 //go:cgo_import_dynamic libc_symlinkat symlinkat "libc.so" 1541 2029 1542 2030 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1543 2031 1544 2032 func Sync() (err error) { 1545 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) 1546 if e1 != 0 { 1547 err = errnoErr(e1) 1548 } 1549 return 1550 } 2033 _, _, e1 := syscall_syscall(libc_sync_trampoline_addr, 0, 0, 0) 2034 if e1 != 0 { 2035 err = errnoErr(e1) 2036 } 2037 return 2038 } 2039 2040 var libc_sync_trampoline_addr uintptr 2041 2042 //go:cgo_import_dynamic libc_sync sync "libc.so" 1551 2043 1552 2044 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1558 2050 return 1559 2051 } 1560 _, _, e1 := Syscall6(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0) 1561 if e1 != 0 { 1562 err = errnoErr(e1) 1563 } 1564 return 1565 } 2052 _, _, e1 := syscall_syscall6(libc_truncate_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length), uintptr(length>>32), 0, 0) 2053 if e1 != 0 { 2054 err = errnoErr(e1) 2055 } 2056 return 2057 } 2058 2059 var libc_truncate_trampoline_addr uintptr 2060 2061 //go:cgo_import_dynamic libc_truncate truncate "libc.so" 1566 2062 1567 2063 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1568 2064 1569 2065 func Umask(newmask int) (oldmask int) { 1570 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)2066 r0, _, _ := syscall_syscall(libc_umask_trampoline_addr, uintptr(newmask), 0, 0) 1571 2067 oldmask = int(r0) 1572 2068 return 1573 2069 } 1574 2070 2071 var libc_umask_trampoline_addr uintptr 2072 2073 //go:cgo_import_dynamic libc_umask umask "libc.so" 2074 1575 2075 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1576 2076 … … 1581 2081 return 1582 2082 } 1583 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) 1584 if e1 != 0 { 1585 err = errnoErr(e1) 1586 } 1587 return 1588 } 2083 _, _, e1 := syscall_syscall(libc_unlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 2084 if e1 != 0 { 2085 err = errnoErr(e1) 2086 } 2087 return 2088 } 2089 2090 var libc_unlink_trampoline_addr uintptr 2091 2092 //go:cgo_import_dynamic libc_unlink unlink "libc.so" 1589 2093 1590 2094 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1596 2100 return 1597 2101 } 1598 _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) 1599 if e1 != 0 { 1600 err = errnoErr(e1) 1601 } 1602 return 1603 } 2102 _, _, e1 := syscall_syscall(libc_unlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) 2103 if e1 != 0 { 2104 err = errnoErr(e1) 2105 } 2106 return 2107 } 2108 2109 var libc_unlinkat_trampoline_addr uintptr 2110 2111 //go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so" 1604 2112 1605 2113 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1611 2119 return 1612 2120 } 1613 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 1614 if e1 != 0 { 1615 err = errnoErr(e1) 1616 } 1617 return 1618 } 2121 _, _, e1 := syscall_syscall(libc_unmount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 2122 if e1 != 0 { 2123 err = errnoErr(e1) 2124 } 2125 return 2126 } 2127 2128 var libc_unmount_trampoline_addr uintptr 2129 2130 //go:cgo_import_dynamic libc_unmount unmount "libc.so" 1619 2131 1620 2132 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1627 2139 _p0 = unsafe.Pointer(&_zero) 1628 2140 } 1629 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))2141 r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) 1630 2142 n = int(r0) 1631 2143 if e1 != 0 { … … 1635 2147 } 1636 2148 2149 var libc_write_trampoline_addr uintptr 2150 2151 //go:cgo_import_dynamic libc_write write "libc.so" 2152 1637 2153 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1638 2154 1639 2155 func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { 1640 r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0)2156 r0, _, e1 := syscall_syscall9(libc_mmap_trampoline_addr, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), uintptr(pos>>32), 0) 1641 2157 ret = uintptr(r0) 1642 2158 if e1 != 0 { … … 1646 2162 } 1647 2163 2164 var libc_mmap_trampoline_addr uintptr 2165 2166 //go:cgo_import_dynamic libc_mmap mmap "libc.so" 2167 1648 2168 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1649 2169 1650 2170 func munmap(addr uintptr, length uintptr) (err error) { 1651 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) 1652 if e1 != 0 { 1653 err = errnoErr(e1) 1654 } 1655 return 1656 } 2171 _, _, e1 := syscall_syscall(libc_munmap_trampoline_addr, uintptr(addr), uintptr(length), 0) 2172 if e1 != 0 { 2173 err = errnoErr(e1) 2174 } 2175 return 2176 } 2177 2178 var libc_munmap_trampoline_addr uintptr 2179 2180 //go:cgo_import_dynamic libc_munmap munmap "libc.so" 1657 2181 1658 2182 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1659 2183 1660 2184 func readlen(fd int, buf *byte, nbuf int) (n int, err error) { 1661 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))2185 r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) 1662 2186 n = int(r0) 1663 2187 if e1 != 0 { … … 1670 2194 1671 2195 func writelen(fd int, buf *byte, nbuf int) (n int, err error) { 1672 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))2196 r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) 1673 2197 n = int(r0) 1674 2198 if e1 != 0 { … … 1686 2210 return 1687 2211 } 1688 _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) 1689 if e1 != 0 { 1690 err = errnoErr(e1) 1691 } 1692 return 1693 } 2212 _, _, e1 := syscall_syscall6(libc_utimensat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) 2213 if e1 != 0 { 2214 err = errnoErr(e1) 2215 } 2216 return 2217 } 2218 2219 var libc_utimensat_trampoline_addr uintptr 2220 2221 //go:cgo_import_dynamic libc_utimensat utimensat "libc.so" -
trunk/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go
r67 r69 1 // go run mksyscall.go -openbsd - tags openbsd,arm64 syscall_bsd.go syscall_openbsd.go syscall_openbsd_arm64.go1 // go run mksyscall.go -openbsd -libc -tags openbsd,arm64 syscall_bsd.go syscall_openbsd.go syscall_openbsd_arm64.go 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 17 17 18 18 func getgroups(ngid int, gid *_Gid_t) (n int, err error) { 19 r0, _, e1 := RawSyscall(SYS_GETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0)19 r0, _, e1 := syscall_rawSyscall(libc_getgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) 20 20 n = int(r0) 21 21 if e1 != 0 { … … 25 25 } 26 26 27 var libc_getgroups_trampoline_addr uintptr 28 29 //go:cgo_import_dynamic libc_getgroups getgroups "libc.so" 30 27 31 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 28 32 29 33 func setgroups(ngid int, gid *_Gid_t) (err error) { 30 _, _, e1 := RawSyscall(SYS_SETGROUPS, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) 31 if e1 != 0 { 32 err = errnoErr(e1) 33 } 34 return 35 } 34 _, _, e1 := syscall_rawSyscall(libc_setgroups_trampoline_addr, uintptr(ngid), uintptr(unsafe.Pointer(gid)), 0) 35 if e1 != 0 { 36 err = errnoErr(e1) 37 } 38 return 39 } 40 41 var libc_setgroups_trampoline_addr uintptr 42 43 //go:cgo_import_dynamic libc_setgroups setgroups "libc.so" 36 44 37 45 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 38 46 39 47 func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error) { 40 r0, _, e1 := Syscall6(SYS_WAIT4, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0)48 r0, _, e1 := syscall_syscall6(libc_wait4_trampoline_addr, uintptr(pid), uintptr(unsafe.Pointer(wstatus)), uintptr(options), uintptr(unsafe.Pointer(rusage)), 0, 0) 41 49 wpid = int(r0) 42 50 if e1 != 0 { … … 46 54 } 47 55 56 var libc_wait4_trampoline_addr uintptr 57 58 //go:cgo_import_dynamic libc_wait4 wait4 "libc.so" 59 48 60 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 49 61 50 62 func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) { 51 r0, _, e1 := Syscall(SYS_ACCEPT, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)))63 r0, _, e1 := syscall_syscall(libc_accept_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 52 64 fd = int(r0) 53 65 if e1 != 0 { … … 57 69 } 58 70 71 var libc_accept_trampoline_addr uintptr 72 73 //go:cgo_import_dynamic libc_accept accept "libc.so" 74 59 75 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 60 76 61 77 func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { 62 _, _, e1 := Syscall(SYS_BIND, uintptr(s), uintptr(addr), uintptr(addrlen)) 63 if e1 != 0 { 64 err = errnoErr(e1) 65 } 66 return 67 } 78 _, _, e1 := syscall_syscall(libc_bind_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) 79 if e1 != 0 { 80 err = errnoErr(e1) 81 } 82 return 83 } 84 85 var libc_bind_trampoline_addr uintptr 86 87 //go:cgo_import_dynamic libc_bind bind "libc.so" 68 88 69 89 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 70 90 71 91 func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) { 72 _, _, e1 := Syscall(SYS_CONNECT, uintptr(s), uintptr(addr), uintptr(addrlen)) 73 if e1 != 0 { 74 err = errnoErr(e1) 75 } 76 return 77 } 92 _, _, e1 := syscall_syscall(libc_connect_trampoline_addr, uintptr(s), uintptr(addr), uintptr(addrlen)) 93 if e1 != 0 { 94 err = errnoErr(e1) 95 } 96 return 97 } 98 99 var libc_connect_trampoline_addr uintptr 100 101 //go:cgo_import_dynamic libc_connect connect "libc.so" 78 102 79 103 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 80 104 81 105 func socket(domain int, typ int, proto int) (fd int, err error) { 82 r0, _, e1 := RawSyscall(SYS_SOCKET, uintptr(domain), uintptr(typ), uintptr(proto))106 r0, _, e1 := syscall_rawSyscall(libc_socket_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto)) 83 107 fd = int(r0) 84 108 if e1 != 0 { … … 88 112 } 89 113 114 var libc_socket_trampoline_addr uintptr 115 116 //go:cgo_import_dynamic libc_socket socket "libc.so" 117 90 118 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 91 119 92 120 func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen) (err error) { 93 _, _, e1 := Syscall6(SYS_GETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) 94 if e1 != 0 { 95 err = errnoErr(e1) 96 } 97 return 98 } 121 _, _, e1 := syscall_syscall6(libc_getsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(unsafe.Pointer(vallen)), 0) 122 if e1 != 0 { 123 err = errnoErr(e1) 124 } 125 return 126 } 127 128 var libc_getsockopt_trampoline_addr uintptr 129 130 //go:cgo_import_dynamic libc_getsockopt getsockopt "libc.so" 99 131 100 132 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 101 133 102 134 func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr) (err error) { 103 _, _, e1 := Syscall6(SYS_SETSOCKOPT, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) 104 if e1 != 0 { 105 err = errnoErr(e1) 106 } 107 return 108 } 135 _, _, e1 := syscall_syscall6(libc_setsockopt_trampoline_addr, uintptr(s), uintptr(level), uintptr(name), uintptr(val), uintptr(vallen), 0) 136 if e1 != 0 { 137 err = errnoErr(e1) 138 } 139 return 140 } 141 142 var libc_setsockopt_trampoline_addr uintptr 143 144 //go:cgo_import_dynamic libc_setsockopt setsockopt "libc.so" 109 145 110 146 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 111 147 112 148 func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { 113 _, _, e1 := RawSyscall(SYS_GETPEERNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 114 if e1 != 0 { 115 err = errnoErr(e1) 116 } 117 return 118 } 149 _, _, e1 := syscall_rawSyscall(libc_getpeername_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 150 if e1 != 0 { 151 err = errnoErr(e1) 152 } 153 return 154 } 155 156 var libc_getpeername_trampoline_addr uintptr 157 158 //go:cgo_import_dynamic libc_getpeername getpeername "libc.so" 119 159 120 160 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 121 161 122 162 func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) { 123 _, _, e1 := RawSyscall(SYS_GETSOCKNAME, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 124 if e1 != 0 { 125 err = errnoErr(e1) 126 } 127 return 128 } 163 _, _, e1 := syscall_rawSyscall(libc_getsockname_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen))) 164 if e1 != 0 { 165 err = errnoErr(e1) 166 } 167 return 168 } 169 170 var libc_getsockname_trampoline_addr uintptr 171 172 //go:cgo_import_dynamic libc_getsockname getsockname "libc.so" 129 173 130 174 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 131 175 132 176 func Shutdown(s int, how int) (err error) { 133 _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(s), uintptr(how), 0) 134 if e1 != 0 { 135 err = errnoErr(e1) 136 } 137 return 138 } 177 _, _, e1 := syscall_syscall(libc_shutdown_trampoline_addr, uintptr(s), uintptr(how), 0) 178 if e1 != 0 { 179 err = errnoErr(e1) 180 } 181 return 182 } 183 184 var libc_shutdown_trampoline_addr uintptr 185 186 //go:cgo_import_dynamic libc_shutdown shutdown "libc.so" 139 187 140 188 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 141 189 142 190 func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) { 143 _, _, e1 := RawSyscall6(SYS_SOCKETPAIR, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) 144 if e1 != 0 { 145 err = errnoErr(e1) 146 } 147 return 148 } 191 _, _, e1 := syscall_rawSyscall6(libc_socketpair_trampoline_addr, uintptr(domain), uintptr(typ), uintptr(proto), uintptr(unsafe.Pointer(fd)), 0, 0) 192 if e1 != 0 { 193 err = errnoErr(e1) 194 } 195 return 196 } 197 198 var libc_socketpair_trampoline_addr uintptr 199 200 //go:cgo_import_dynamic libc_socketpair socketpair "libc.so" 149 201 150 202 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 157 209 _p0 = unsafe.Pointer(&_zero) 158 210 } 159 r0, _, e1 := Syscall6(SYS_RECVFROM, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen)))211 r0, _, e1 := syscall_syscall6(libc_recvfrom_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(flags), uintptr(unsafe.Pointer(from)), uintptr(unsafe.Pointer(fromlen))) 160 212 n = int(r0) 161 213 if e1 != 0 { … … 164 216 return 165 217 } 218 219 var libc_recvfrom_trampoline_addr uintptr 220 221 //go:cgo_import_dynamic libc_recvfrom recvfrom "libc.so" 166 222 167 223 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 174 230 _p0 = unsafe.Pointer(&_zero) 175 231 } 176 _, _, e1 := Syscall6(SYS_SENDTO, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) 177 if e1 != 0 { 178 err = errnoErr(e1) 179 } 180 return 181 } 232 _, _, e1 := syscall_syscall6(libc_sendto_trampoline_addr, uintptr(s), uintptr(_p0), uintptr(len(buf)), uintptr(flags), uintptr(to), uintptr(addrlen)) 233 if e1 != 0 { 234 err = errnoErr(e1) 235 } 236 return 237 } 238 239 var libc_sendto_trampoline_addr uintptr 240 241 //go:cgo_import_dynamic libc_sendto sendto "libc.so" 182 242 183 243 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 184 244 185 245 func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) { 186 r0, _, e1 := Syscall(SYS_RECVMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))246 r0, _, e1 := syscall_syscall(libc_recvmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) 187 247 n = int(r0) 188 248 if e1 != 0 { … … 192 252 } 193 253 254 var libc_recvmsg_trampoline_addr uintptr 255 256 //go:cgo_import_dynamic libc_recvmsg recvmsg "libc.so" 257 194 258 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 195 259 196 260 func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) { 197 r0, _, e1 := Syscall(SYS_SENDMSG, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags))261 r0, _, e1 := syscall_syscall(libc_sendmsg_trampoline_addr, uintptr(s), uintptr(unsafe.Pointer(msg)), uintptr(flags)) 198 262 n = int(r0) 199 263 if e1 != 0 { … … 203 267 } 204 268 269 var libc_sendmsg_trampoline_addr uintptr 270 271 //go:cgo_import_dynamic libc_sendmsg sendmsg "libc.so" 272 205 273 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 206 274 207 275 func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, nevent int, timeout *Timespec) (n int, err error) { 208 r0, _, e1 := Syscall6(SYS_KEVENT, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout)))276 r0, _, e1 := syscall_syscall6(libc_kevent_trampoline_addr, uintptr(kq), uintptr(change), uintptr(nchange), uintptr(event), uintptr(nevent), uintptr(unsafe.Pointer(timeout))) 209 277 n = int(r0) 210 278 if e1 != 0 { … … 214 282 } 215 283 284 var libc_kevent_trampoline_addr uintptr 285 286 //go:cgo_import_dynamic libc_kevent kevent "libc.so" 287 216 288 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 217 289 … … 222 294 return 223 295 } 224 _, _, e1 := Syscall(SYS_UTIMES, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) 225 if e1 != 0 { 226 err = errnoErr(e1) 227 } 228 return 229 } 296 _, _, e1 := syscall_syscall(libc_utimes_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(timeval)), 0) 297 if e1 != 0 { 298 err = errnoErr(e1) 299 } 300 return 301 } 302 303 var libc_utimes_trampoline_addr uintptr 304 305 //go:cgo_import_dynamic libc_utimes utimes "libc.so" 230 306 231 307 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 232 308 233 309 func futimes(fd int, timeval *[2]Timeval) (err error) { 234 _, _, e1 := Syscall(SYS_FUTIMES, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) 235 if e1 != 0 { 236 err = errnoErr(e1) 237 } 238 return 239 } 310 _, _, e1 := syscall_syscall(libc_futimes_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(timeval)), 0) 311 if e1 != 0 { 312 err = errnoErr(e1) 313 } 314 return 315 } 316 317 var libc_futimes_trampoline_addr uintptr 318 319 //go:cgo_import_dynamic libc_futimes futimes "libc.so" 240 320 241 321 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 242 322 243 323 func poll(fds *PollFd, nfds int, timeout int) (n int, err error) { 244 r0, _, e1 := Syscall(SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))324 r0, _, e1 := syscall_syscall(libc_poll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout)) 245 325 n = int(r0) 246 326 if e1 != 0 { … … 249 329 return 250 330 } 331 332 var libc_poll_trampoline_addr uintptr 333 334 //go:cgo_import_dynamic libc_poll poll "libc.so" 251 335 252 336 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 259 343 _p0 = unsafe.Pointer(&_zero) 260 344 } 261 _, _, e1 := Syscall(SYS_MADVISE, uintptr(_p0), uintptr(len(b)), uintptr(behav)) 262 if e1 != 0 { 263 err = errnoErr(e1) 264 } 265 return 266 } 345 _, _, e1 := syscall_syscall(libc_madvise_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(behav)) 346 if e1 != 0 { 347 err = errnoErr(e1) 348 } 349 return 350 } 351 352 var libc_madvise_trampoline_addr uintptr 353 354 //go:cgo_import_dynamic libc_madvise madvise "libc.so" 267 355 268 356 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 275 363 _p0 = unsafe.Pointer(&_zero) 276 364 } 277 _, _, e1 := Syscall(SYS_MLOCK, uintptr(_p0), uintptr(len(b)), 0) 278 if e1 != 0 { 279 err = errnoErr(e1) 280 } 281 return 282 } 365 _, _, e1 := syscall_syscall(libc_mlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) 366 if e1 != 0 { 367 err = errnoErr(e1) 368 } 369 return 370 } 371 372 var libc_mlock_trampoline_addr uintptr 373 374 //go:cgo_import_dynamic libc_mlock mlock "libc.so" 283 375 284 376 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 285 377 286 378 func Mlockall(flags int) (err error) { 287 _, _, e1 := Syscall(SYS_MLOCKALL, uintptr(flags), 0, 0) 288 if e1 != 0 { 289 err = errnoErr(e1) 290 } 291 return 292 } 379 _, _, e1 := syscall_syscall(libc_mlockall_trampoline_addr, uintptr(flags), 0, 0) 380 if e1 != 0 { 381 err = errnoErr(e1) 382 } 383 return 384 } 385 386 var libc_mlockall_trampoline_addr uintptr 387 388 //go:cgo_import_dynamic libc_mlockall mlockall "libc.so" 293 389 294 390 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 301 397 _p0 = unsafe.Pointer(&_zero) 302 398 } 303 _, _, e1 := Syscall(SYS_MPROTECT, uintptr(_p0), uintptr(len(b)), uintptr(prot)) 304 if e1 != 0 { 305 err = errnoErr(e1) 306 } 307 return 308 } 399 _, _, e1 := syscall_syscall(libc_mprotect_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(prot)) 400 if e1 != 0 { 401 err = errnoErr(e1) 402 } 403 return 404 } 405 406 var libc_mprotect_trampoline_addr uintptr 407 408 //go:cgo_import_dynamic libc_mprotect mprotect "libc.so" 309 409 310 410 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 317 417 _p0 = unsafe.Pointer(&_zero) 318 418 } 319 _, _, e1 := Syscall(SYS_MSYNC, uintptr(_p0), uintptr(len(b)), uintptr(flags)) 320 if e1 != 0 { 321 err = errnoErr(e1) 322 } 323 return 324 } 419 _, _, e1 := syscall_syscall(libc_msync_trampoline_addr, uintptr(_p0), uintptr(len(b)), uintptr(flags)) 420 if e1 != 0 { 421 err = errnoErr(e1) 422 } 423 return 424 } 425 426 var libc_msync_trampoline_addr uintptr 427 428 //go:cgo_import_dynamic libc_msync msync "libc.so" 325 429 326 430 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 333 437 _p0 = unsafe.Pointer(&_zero) 334 438 } 335 _, _, e1 := Syscall(SYS_MUNLOCK, uintptr(_p0), uintptr(len(b)), 0) 336 if e1 != 0 { 337 err = errnoErr(e1) 338 } 339 return 340 } 439 _, _, e1 := syscall_syscall(libc_munlock_trampoline_addr, uintptr(_p0), uintptr(len(b)), 0) 440 if e1 != 0 { 441 err = errnoErr(e1) 442 } 443 return 444 } 445 446 var libc_munlock_trampoline_addr uintptr 447 448 //go:cgo_import_dynamic libc_munlock munlock "libc.so" 341 449 342 450 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 343 451 344 452 func Munlockall() (err error) { 345 _, _, e1 := Syscall(SYS_MUNLOCKALL, 0, 0, 0) 346 if e1 != 0 { 347 err = errnoErr(e1) 348 } 349 return 350 } 453 _, _, e1 := syscall_syscall(libc_munlockall_trampoline_addr, 0, 0, 0) 454 if e1 != 0 { 455 err = errnoErr(e1) 456 } 457 return 458 } 459 460 var libc_munlockall_trampoline_addr uintptr 461 462 //go:cgo_import_dynamic libc_munlockall munlockall "libc.so" 351 463 352 464 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 353 465 354 466 func pipe2(p *[2]_C_int, flags int) (err error) { 355 _, _, e1 := RawSyscall(SYS_PIPE2, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) 356 if e1 != 0 { 357 err = errnoErr(e1) 358 } 359 return 360 } 467 _, _, e1 := syscall_rawSyscall(libc_pipe2_trampoline_addr, uintptr(unsafe.Pointer(p)), uintptr(flags), 0) 468 if e1 != 0 { 469 err = errnoErr(e1) 470 } 471 return 472 } 473 474 var libc_pipe2_trampoline_addr uintptr 475 476 //go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so" 361 477 362 478 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 369 485 _p0 = unsafe.Pointer(&_zero) 370 486 } 371 r0, _, e1 := Syscall(SYS_GETDENTS, uintptr(fd), uintptr(_p0), uintptr(len(buf)))487 r0, _, e1 := syscall_syscall(libc_getdents_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(buf))) 372 488 n = int(r0) 373 489 if e1 != 0 { … … 376 492 return 377 493 } 494 495 var libc_getdents_trampoline_addr uintptr 496 497 //go:cgo_import_dynamic libc_getdents getdents "libc.so" 378 498 379 499 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 386 506 _p0 = unsafe.Pointer(&_zero) 387 507 } 388 r0, _, e1 := Syscall(SYS___GETCWD, uintptr(_p0), uintptr(len(buf)), 0)508 r0, _, e1 := syscall_syscall(libc_getcwd_trampoline_addr, uintptr(_p0), uintptr(len(buf)), 0) 389 509 n = int(r0) 390 510 if e1 != 0 { … … 394 514 } 395 515 516 var libc_getcwd_trampoline_addr uintptr 517 518 //go:cgo_import_dynamic libc_getcwd getcwd "libc.so" 519 396 520 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 397 521 398 522 func ioctl(fd int, req uint, arg uintptr) (err error) { 399 _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) 400 if e1 != 0 { 401 err = errnoErr(e1) 402 } 403 return 404 } 523 _, _, e1 := syscall_syscall(libc_ioctl_trampoline_addr, uintptr(fd), uintptr(req), uintptr(arg)) 524 if e1 != 0 { 525 err = errnoErr(e1) 526 } 527 return 528 } 529 530 var libc_ioctl_trampoline_addr uintptr 531 532 //go:cgo_import_dynamic libc_ioctl ioctl "libc.so" 405 533 406 534 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 413 541 _p0 = unsafe.Pointer(&_zero) 414 542 } 415 _, _, e1 := Syscall6(SYS___SYSCTL, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) 416 if e1 != 0 { 417 err = errnoErr(e1) 418 } 419 return 420 } 543 _, _, e1 := syscall_syscall6(libc_sysctl_trampoline_addr, uintptr(_p0), uintptr(len(mib)), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(oldlen)), uintptr(unsafe.Pointer(new)), uintptr(newlen)) 544 if e1 != 0 { 545 err = errnoErr(e1) 546 } 547 return 548 } 549 550 var libc_sysctl_trampoline_addr uintptr 551 552 //go:cgo_import_dynamic libc_sysctl sysctl "libc.so" 421 553 422 554 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 423 555 424 556 func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { 425 r0, _, e1 := Syscall6(SYS_PPOLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0)557 r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) 426 558 n = int(r0) 427 559 if e1 != 0 { … … 431 563 } 432 564 565 var libc_ppoll_trampoline_addr uintptr 566 567 //go:cgo_import_dynamic libc_ppoll ppoll "libc.so" 568 433 569 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 434 570 … … 439 575 return 440 576 } 441 _, _, e1 := Syscall(SYS_ACCESS, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 442 if e1 != 0 { 443 err = errnoErr(e1) 444 } 445 return 446 } 577 _, _, e1 := syscall_syscall(libc_access_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 578 if e1 != 0 { 579 err = errnoErr(e1) 580 } 581 return 582 } 583 584 var libc_access_trampoline_addr uintptr 585 586 //go:cgo_import_dynamic libc_access access "libc.so" 447 587 448 588 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 449 589 450 590 func Adjtime(delta *Timeval, olddelta *Timeval) (err error) { 451 _, _, e1 := Syscall(SYS_ADJTIME, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) 452 if e1 != 0 { 453 err = errnoErr(e1) 454 } 455 return 456 } 591 _, _, e1 := syscall_syscall(libc_adjtime_trampoline_addr, uintptr(unsafe.Pointer(delta)), uintptr(unsafe.Pointer(olddelta)), 0) 592 if e1 != 0 { 593 err = errnoErr(e1) 594 } 595 return 596 } 597 598 var libc_adjtime_trampoline_addr uintptr 599 600 //go:cgo_import_dynamic libc_adjtime adjtime "libc.so" 457 601 458 602 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 464 608 return 465 609 } 466 _, _, e1 := Syscall(SYS_CHDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) 467 if e1 != 0 { 468 err = errnoErr(e1) 469 } 470 return 471 } 610 _, _, e1 := syscall_syscall(libc_chdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 611 if e1 != 0 { 612 err = errnoErr(e1) 613 } 614 return 615 } 616 617 var libc_chdir_trampoline_addr uintptr 618 619 //go:cgo_import_dynamic libc_chdir chdir "libc.so" 472 620 473 621 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 479 627 return 480 628 } 481 _, _, e1 := Syscall(SYS_CHFLAGS, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 482 if e1 != 0 { 483 err = errnoErr(e1) 484 } 485 return 486 } 629 _, _, e1 := syscall_syscall(libc_chflags_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 630 if e1 != 0 { 631 err = errnoErr(e1) 632 } 633 return 634 } 635 636 var libc_chflags_trampoline_addr uintptr 637 638 //go:cgo_import_dynamic libc_chflags chflags "libc.so" 487 639 488 640 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 494 646 return 495 647 } 496 _, _, e1 := Syscall(SYS_CHMOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 497 if e1 != 0 { 498 err = errnoErr(e1) 499 } 500 return 501 } 648 _, _, e1 := syscall_syscall(libc_chmod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 649 if e1 != 0 { 650 err = errnoErr(e1) 651 } 652 return 653 } 654 655 var libc_chmod_trampoline_addr uintptr 656 657 //go:cgo_import_dynamic libc_chmod chmod "libc.so" 502 658 503 659 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 509 665 return 510 666 } 511 _, _, e1 := Syscall(SYS_CHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 512 if e1 != 0 { 513 err = errnoErr(e1) 514 } 515 return 516 } 667 _, _, e1 := syscall_syscall(libc_chown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 668 if e1 != 0 { 669 err = errnoErr(e1) 670 } 671 return 672 } 673 674 var libc_chown_trampoline_addr uintptr 675 676 //go:cgo_import_dynamic libc_chown chown "libc.so" 517 677 518 678 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 524 684 return 525 685 } 526 _, _, e1 := Syscall(SYS_CHROOT, uintptr(unsafe.Pointer(_p0)), 0, 0) 527 if e1 != 0 { 528 err = errnoErr(e1) 529 } 530 return 531 } 686 _, _, e1 := syscall_syscall(libc_chroot_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 687 if e1 != 0 { 688 err = errnoErr(e1) 689 } 690 return 691 } 692 693 var libc_chroot_trampoline_addr uintptr 694 695 //go:cgo_import_dynamic libc_chroot chroot "libc.so" 532 696 533 697 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 534 698 535 699 func Close(fd int) (err error) { 536 _, _, e1 := Syscall(SYS_CLOSE, uintptr(fd), 0, 0) 537 if e1 != 0 { 538 err = errnoErr(e1) 539 } 540 return 541 } 700 _, _, e1 := syscall_syscall(libc_close_trampoline_addr, uintptr(fd), 0, 0) 701 if e1 != 0 { 702 err = errnoErr(e1) 703 } 704 return 705 } 706 707 var libc_close_trampoline_addr uintptr 708 709 //go:cgo_import_dynamic libc_close close "libc.so" 542 710 543 711 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 544 712 545 713 func Dup(fd int) (nfd int, err error) { 546 r0, _, e1 := Syscall(SYS_DUP, uintptr(fd), 0, 0)714 r0, _, e1 := syscall_syscall(libc_dup_trampoline_addr, uintptr(fd), 0, 0) 547 715 nfd = int(r0) 548 716 if e1 != 0 { … … 552 720 } 553 721 722 var libc_dup_trampoline_addr uintptr 723 724 //go:cgo_import_dynamic libc_dup dup "libc.so" 725 554 726 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 555 727 556 728 func Dup2(from int, to int) (err error) { 557 _, _, e1 := Syscall(SYS_DUP2, uintptr(from), uintptr(to), 0) 558 if e1 != 0 { 559 err = errnoErr(e1) 560 } 561 return 562 } 729 _, _, e1 := syscall_syscall(libc_dup2_trampoline_addr, uintptr(from), uintptr(to), 0) 730 if e1 != 0 { 731 err = errnoErr(e1) 732 } 733 return 734 } 735 736 var libc_dup2_trampoline_addr uintptr 737 738 //go:cgo_import_dynamic libc_dup2 dup2 "libc.so" 563 739 564 740 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 565 741 566 742 func Dup3(from int, to int, flags int) (err error) { 567 _, _, e1 := Syscall(SYS_DUP3, uintptr(from), uintptr(to), uintptr(flags)) 568 if e1 != 0 { 569 err = errnoErr(e1) 570 } 571 return 572 } 743 _, _, e1 := syscall_syscall(libc_dup3_trampoline_addr, uintptr(from), uintptr(to), uintptr(flags)) 744 if e1 != 0 { 745 err = errnoErr(e1) 746 } 747 return 748 } 749 750 var libc_dup3_trampoline_addr uintptr 751 752 //go:cgo_import_dynamic libc_dup3 dup3 "libc.so" 573 753 574 754 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 575 755 576 756 func Exit(code int) { 577 Syscall(SYS_EXIT, uintptr(code), 0, 0) 578 return 579 } 757 syscall_syscall(libc_exit_trampoline_addr, uintptr(code), 0, 0) 758 return 759 } 760 761 var libc_exit_trampoline_addr uintptr 762 763 //go:cgo_import_dynamic libc_exit exit "libc.so" 580 764 581 765 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 587 771 return 588 772 } 589 _, _, e1 := Syscall6(SYS_FACCESSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 590 if e1 != 0 { 591 err = errnoErr(e1) 592 } 593 return 594 } 773 _, _, e1 := syscall_syscall6(libc_faccessat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 774 if e1 != 0 { 775 err = errnoErr(e1) 776 } 777 return 778 } 779 780 var libc_faccessat_trampoline_addr uintptr 781 782 //go:cgo_import_dynamic libc_faccessat faccessat "libc.so" 595 783 596 784 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 597 785 598 786 func Fchdir(fd int) (err error) { 599 _, _, e1 := Syscall(SYS_FCHDIR, uintptr(fd), 0, 0) 600 if e1 != 0 { 601 err = errnoErr(e1) 602 } 603 return 604 } 787 _, _, e1 := syscall_syscall(libc_fchdir_trampoline_addr, uintptr(fd), 0, 0) 788 if e1 != 0 { 789 err = errnoErr(e1) 790 } 791 return 792 } 793 794 var libc_fchdir_trampoline_addr uintptr 795 796 //go:cgo_import_dynamic libc_fchdir fchdir "libc.so" 605 797 606 798 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 607 799 608 800 func Fchflags(fd int, flags int) (err error) { 609 _, _, e1 := Syscall(SYS_FCHFLAGS, uintptr(fd), uintptr(flags), 0) 610 if e1 != 0 { 611 err = errnoErr(e1) 612 } 613 return 614 } 801 _, _, e1 := syscall_syscall(libc_fchflags_trampoline_addr, uintptr(fd), uintptr(flags), 0) 802 if e1 != 0 { 803 err = errnoErr(e1) 804 } 805 return 806 } 807 808 var libc_fchflags_trampoline_addr uintptr 809 810 //go:cgo_import_dynamic libc_fchflags fchflags "libc.so" 615 811 616 812 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 617 813 618 814 func Fchmod(fd int, mode uint32) (err error) { 619 _, _, e1 := Syscall(SYS_FCHMOD, uintptr(fd), uintptr(mode), 0) 620 if e1 != 0 { 621 err = errnoErr(e1) 622 } 623 return 624 } 815 _, _, e1 := syscall_syscall(libc_fchmod_trampoline_addr, uintptr(fd), uintptr(mode), 0) 816 if e1 != 0 { 817 err = errnoErr(e1) 818 } 819 return 820 } 821 822 var libc_fchmod_trampoline_addr uintptr 823 824 //go:cgo_import_dynamic libc_fchmod fchmod "libc.so" 625 825 626 826 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 632 832 return 633 833 } 634 _, _, e1 := Syscall6(SYS_FCHMODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 635 if e1 != 0 { 636 err = errnoErr(e1) 637 } 638 return 639 } 834 _, _, e1 := syscall_syscall6(libc_fchmodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) 835 if e1 != 0 { 836 err = errnoErr(e1) 837 } 838 return 839 } 840 841 var libc_fchmodat_trampoline_addr uintptr 842 843 //go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so" 640 844 641 845 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 642 846 643 847 func Fchown(fd int, uid int, gid int) (err error) { 644 _, _, e1 := Syscall(SYS_FCHOWN, uintptr(fd), uintptr(uid), uintptr(gid)) 645 if e1 != 0 { 646 err = errnoErr(e1) 647 } 648 return 649 } 848 _, _, e1 := syscall_syscall(libc_fchown_trampoline_addr, uintptr(fd), uintptr(uid), uintptr(gid)) 849 if e1 != 0 { 850 err = errnoErr(e1) 851 } 852 return 853 } 854 855 var libc_fchown_trampoline_addr uintptr 856 857 //go:cgo_import_dynamic libc_fchown fchown "libc.so" 650 858 651 859 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 657 865 return 658 866 } 659 _, _, e1 := Syscall6(SYS_FCHOWNAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) 660 if e1 != 0 { 661 err = errnoErr(e1) 662 } 663 return 664 } 867 _, _, e1 := syscall_syscall6(libc_fchownat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid), uintptr(flags), 0) 868 if e1 != 0 { 869 err = errnoErr(e1) 870 } 871 return 872 } 873 874 var libc_fchownat_trampoline_addr uintptr 875 876 //go:cgo_import_dynamic libc_fchownat fchownat "libc.so" 665 877 666 878 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 667 879 668 880 func Flock(fd int, how int) (err error) { 669 _, _, e1 := Syscall(SYS_FLOCK, uintptr(fd), uintptr(how), 0) 670 if e1 != 0 { 671 err = errnoErr(e1) 672 } 673 return 674 } 881 _, _, e1 := syscall_syscall(libc_flock_trampoline_addr, uintptr(fd), uintptr(how), 0) 882 if e1 != 0 { 883 err = errnoErr(e1) 884 } 885 return 886 } 887 888 var libc_flock_trampoline_addr uintptr 889 890 //go:cgo_import_dynamic libc_flock flock "libc.so" 675 891 676 892 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 677 893 678 894 func Fpathconf(fd int, name int) (val int, err error) { 679 r0, _, e1 := Syscall(SYS_FPATHCONF, uintptr(fd), uintptr(name), 0)895 r0, _, e1 := syscall_syscall(libc_fpathconf_trampoline_addr, uintptr(fd), uintptr(name), 0) 680 896 val = int(r0) 681 897 if e1 != 0 { … … 685 901 } 686 902 903 var libc_fpathconf_trampoline_addr uintptr 904 905 //go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so" 906 687 907 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 688 908 689 909 func Fstat(fd int, stat *Stat_t) (err error) { 690 _, _, e1 := Syscall(SYS_FSTAT, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 691 if e1 != 0 { 692 err = errnoErr(e1) 693 } 694 return 695 } 910 _, _, e1 := syscall_syscall(libc_fstat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 911 if e1 != 0 { 912 err = errnoErr(e1) 913 } 914 return 915 } 916 917 var libc_fstat_trampoline_addr uintptr 918 919 //go:cgo_import_dynamic libc_fstat fstat "libc.so" 696 920 697 921 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 703 927 return 704 928 } 705 _, _, e1 := Syscall6(SYS_FSTATAT, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) 706 if e1 != 0 { 707 err = errnoErr(e1) 708 } 709 return 710 } 929 _, _, e1 := syscall_syscall6(libc_fstatat_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) 930 if e1 != 0 { 931 err = errnoErr(e1) 932 } 933 return 934 } 935 936 var libc_fstatat_trampoline_addr uintptr 937 938 //go:cgo_import_dynamic libc_fstatat fstatat "libc.so" 711 939 712 940 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 713 941 714 942 func Fstatfs(fd int, stat *Statfs_t) (err error) { 715 _, _, e1 := Syscall(SYS_FSTATFS, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 716 if e1 != 0 { 717 err = errnoErr(e1) 718 } 719 return 720 } 943 _, _, e1 := syscall_syscall(libc_fstatfs_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(stat)), 0) 944 if e1 != 0 { 945 err = errnoErr(e1) 946 } 947 return 948 } 949 950 var libc_fstatfs_trampoline_addr uintptr 951 952 //go:cgo_import_dynamic libc_fstatfs fstatfs "libc.so" 721 953 722 954 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 723 955 724 956 func Fsync(fd int) (err error) { 725 _, _, e1 := Syscall(SYS_FSYNC, uintptr(fd), 0, 0) 726 if e1 != 0 { 727 err = errnoErr(e1) 728 } 729 return 730 } 957 _, _, e1 := syscall_syscall(libc_fsync_trampoline_addr, uintptr(fd), 0, 0) 958 if e1 != 0 { 959 err = errnoErr(e1) 960 } 961 return 962 } 963 964 var libc_fsync_trampoline_addr uintptr 965 966 //go:cgo_import_dynamic libc_fsync fsync "libc.so" 731 967 732 968 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 733 969 734 970 func Ftruncate(fd int, length int64) (err error) { 735 _, _, e1 := Syscall(SYS_FTRUNCATE, uintptr(fd), 0, uintptr(length)) 736 if e1 != 0 { 737 err = errnoErr(e1) 738 } 739 return 740 } 971 _, _, e1 := syscall_syscall(libc_ftruncate_trampoline_addr, uintptr(fd), uintptr(length), 0) 972 if e1 != 0 { 973 err = errnoErr(e1) 974 } 975 return 976 } 977 978 var libc_ftruncate_trampoline_addr uintptr 979 980 //go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so" 741 981 742 982 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 743 983 744 984 func Getegid() (egid int) { 745 r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)985 r0, _, _ := syscall_rawSyscall(libc_getegid_trampoline_addr, 0, 0, 0) 746 986 egid = int(r0) 747 987 return 748 988 } 749 989 990 var libc_getegid_trampoline_addr uintptr 991 992 //go:cgo_import_dynamic libc_getegid getegid "libc.so" 993 750 994 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 751 995 752 996 func Geteuid() (uid int) { 753 r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)997 r0, _, _ := syscall_rawSyscall(libc_geteuid_trampoline_addr, 0, 0, 0) 754 998 uid = int(r0) 755 999 return 756 1000 } 757 1001 1002 var libc_geteuid_trampoline_addr uintptr 1003 1004 //go:cgo_import_dynamic libc_geteuid geteuid "libc.so" 1005 758 1006 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 759 1007 760 1008 func Getgid() (gid int) { 761 r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)1009 r0, _, _ := syscall_rawSyscall(libc_getgid_trampoline_addr, 0, 0, 0) 762 1010 gid = int(r0) 763 1011 return 764 1012 } 765 1013 1014 var libc_getgid_trampoline_addr uintptr 1015 1016 //go:cgo_import_dynamic libc_getgid getgid "libc.so" 1017 766 1018 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 767 1019 768 1020 func Getpgid(pid int) (pgid int, err error) { 769 r0, _, e1 := RawSyscall(SYS_GETPGID, uintptr(pid), 0, 0)1021 r0, _, e1 := syscall_rawSyscall(libc_getpgid_trampoline_addr, uintptr(pid), 0, 0) 770 1022 pgid = int(r0) 771 1023 if e1 != 0 { … … 775 1027 } 776 1028 1029 var libc_getpgid_trampoline_addr uintptr 1030 1031 //go:cgo_import_dynamic libc_getpgid getpgid "libc.so" 1032 777 1033 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 778 1034 779 1035 func Getpgrp() (pgrp int) { 780 r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)1036 r0, _, _ := syscall_rawSyscall(libc_getpgrp_trampoline_addr, 0, 0, 0) 781 1037 pgrp = int(r0) 782 1038 return 783 1039 } 784 1040 1041 var libc_getpgrp_trampoline_addr uintptr 1042 1043 //go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so" 1044 785 1045 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 786 1046 787 1047 func Getpid() (pid int) { 788 r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)1048 r0, _, _ := syscall_rawSyscall(libc_getpid_trampoline_addr, 0, 0, 0) 789 1049 pid = int(r0) 790 1050 return 791 1051 } 792 1052 1053 var libc_getpid_trampoline_addr uintptr 1054 1055 //go:cgo_import_dynamic libc_getpid getpid "libc.so" 1056 793 1057 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 794 1058 795 1059 func Getppid() (ppid int) { 796 r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)1060 r0, _, _ := syscall_rawSyscall(libc_getppid_trampoline_addr, 0, 0, 0) 797 1061 ppid = int(r0) 798 1062 return 799 1063 } 800 1064 1065 var libc_getppid_trampoline_addr uintptr 1066 1067 //go:cgo_import_dynamic libc_getppid getppid "libc.so" 1068 801 1069 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 802 1070 803 1071 func Getpriority(which int, who int) (prio int, err error) { 804 r0, _, e1 := Syscall(SYS_GETPRIORITY, uintptr(which), uintptr(who), 0)1072 r0, _, e1 := syscall_syscall(libc_getpriority_trampoline_addr, uintptr(which), uintptr(who), 0) 805 1073 prio = int(r0) 806 1074 if e1 != 0 { … … 810 1078 } 811 1079 1080 var libc_getpriority_trampoline_addr uintptr 1081 1082 //go:cgo_import_dynamic libc_getpriority getpriority "libc.so" 1083 812 1084 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 813 1085 814 1086 func Getrlimit(which int, lim *Rlimit) (err error) { 815 _, _, e1 := RawSyscall(SYS_GETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 816 if e1 != 0 { 817 err = errnoErr(e1) 818 } 819 return 820 } 1087 _, _, e1 := syscall_rawSyscall(libc_getrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 1088 if e1 != 0 { 1089 err = errnoErr(e1) 1090 } 1091 return 1092 } 1093 1094 var libc_getrlimit_trampoline_addr uintptr 1095 1096 //go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so" 821 1097 822 1098 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 823 1099 824 1100 func Getrtable() (rtable int, err error) { 825 r0, _, e1 := RawSyscall(SYS_GETRTABLE, 0, 0, 0)1101 r0, _, e1 := syscall_rawSyscall(libc_getrtable_trampoline_addr, 0, 0, 0) 826 1102 rtable = int(r0) 827 1103 if e1 != 0 { … … 831 1107 } 832 1108 1109 var libc_getrtable_trampoline_addr uintptr 1110 1111 //go:cgo_import_dynamic libc_getrtable getrtable "libc.so" 1112 833 1113 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 834 1114 835 1115 func Getrusage(who int, rusage *Rusage) (err error) { 836 _, _, e1 := RawSyscall(SYS_GETRUSAGE, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) 837 if e1 != 0 { 838 err = errnoErr(e1) 839 } 840 return 841 } 1116 _, _, e1 := syscall_rawSyscall(libc_getrusage_trampoline_addr, uintptr(who), uintptr(unsafe.Pointer(rusage)), 0) 1117 if e1 != 0 { 1118 err = errnoErr(e1) 1119 } 1120 return 1121 } 1122 1123 var libc_getrusage_trampoline_addr uintptr 1124 1125 //go:cgo_import_dynamic libc_getrusage getrusage "libc.so" 842 1126 843 1127 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 844 1128 845 1129 func Getsid(pid int) (sid int, err error) { 846 r0, _, e1 := RawSyscall(SYS_GETSID, uintptr(pid), 0, 0)1130 r0, _, e1 := syscall_rawSyscall(libc_getsid_trampoline_addr, uintptr(pid), 0, 0) 847 1131 sid = int(r0) 848 1132 if e1 != 0 { … … 852 1136 } 853 1137 1138 var libc_getsid_trampoline_addr uintptr 1139 1140 //go:cgo_import_dynamic libc_getsid getsid "libc.so" 1141 854 1142 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 855 1143 856 1144 func Gettimeofday(tv *Timeval) (err error) { 857 _, _, e1 := RawSyscall(SYS_GETTIMEOFDAY, uintptr(unsafe.Pointer(tv)), 0, 0) 858 if e1 != 0 { 859 err = errnoErr(e1) 860 } 861 return 862 } 1145 _, _, e1 := syscall_rawSyscall(libc_gettimeofday_trampoline_addr, uintptr(unsafe.Pointer(tv)), 0, 0) 1146 if e1 != 0 { 1147 err = errnoErr(e1) 1148 } 1149 return 1150 } 1151 1152 var libc_gettimeofday_trampoline_addr uintptr 1153 1154 //go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so" 863 1155 864 1156 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 865 1157 866 1158 func Getuid() (uid int) { 867 r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)1159 r0, _, _ := syscall_rawSyscall(libc_getuid_trampoline_addr, 0, 0, 0) 868 1160 uid = int(r0) 869 1161 return 870 1162 } 871 1163 1164 var libc_getuid_trampoline_addr uintptr 1165 1166 //go:cgo_import_dynamic libc_getuid getuid "libc.so" 1167 872 1168 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 873 1169 874 1170 func Issetugid() (tainted bool) { 875 r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)1171 r0, _, _ := syscall_syscall(libc_issetugid_trampoline_addr, 0, 0, 0) 876 1172 tainted = bool(r0 != 0) 877 1173 return 878 1174 } 879 1175 1176 var libc_issetugid_trampoline_addr uintptr 1177 1178 //go:cgo_import_dynamic libc_issetugid issetugid "libc.so" 1179 880 1180 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 881 1181 882 1182 func Kill(pid int, signum syscall.Signal) (err error) { 883 _, _, e1 := Syscall(SYS_KILL, uintptr(pid), uintptr(signum), 0) 884 if e1 != 0 { 885 err = errnoErr(e1) 886 } 887 return 888 } 1183 _, _, e1 := syscall_syscall(libc_kill_trampoline_addr, uintptr(pid), uintptr(signum), 0) 1184 if e1 != 0 { 1185 err = errnoErr(e1) 1186 } 1187 return 1188 } 1189 1190 var libc_kill_trampoline_addr uintptr 1191 1192 //go:cgo_import_dynamic libc_kill kill "libc.so" 889 1193 890 1194 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 891 1195 892 1196 func Kqueue() (fd int, err error) { 893 r0, _, e1 := Syscall(SYS_KQUEUE, 0, 0, 0)1197 r0, _, e1 := syscall_syscall(libc_kqueue_trampoline_addr, 0, 0, 0) 894 1198 fd = int(r0) 895 1199 if e1 != 0 { … … 899 1203 } 900 1204 1205 var libc_kqueue_trampoline_addr uintptr 1206 1207 //go:cgo_import_dynamic libc_kqueue kqueue "libc.so" 1208 901 1209 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 902 1210 … … 907 1215 return 908 1216 } 909 _, _, e1 := Syscall(SYS_LCHOWN, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 910 if e1 != 0 { 911 err = errnoErr(e1) 912 } 913 return 914 } 1217 _, _, e1 := syscall_syscall(libc_lchown_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(uid), uintptr(gid)) 1218 if e1 != 0 { 1219 err = errnoErr(e1) 1220 } 1221 return 1222 } 1223 1224 var libc_lchown_trampoline_addr uintptr 1225 1226 //go:cgo_import_dynamic libc_lchown lchown "libc.so" 915 1227 916 1228 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 927 1239 return 928 1240 } 929 _, _, e1 := Syscall(SYS_LINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 930 if e1 != 0 { 931 err = errnoErr(e1) 932 } 933 return 934 } 1241 _, _, e1 := syscall_syscall(libc_link_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1242 if e1 != 0 { 1243 err = errnoErr(e1) 1244 } 1245 return 1246 } 1247 1248 var libc_link_trampoline_addr uintptr 1249 1250 //go:cgo_import_dynamic libc_link link "libc.so" 935 1251 936 1252 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 947 1263 return 948 1264 } 949 _, _, e1 := Syscall6(SYS_LINKAT, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 950 if e1 != 0 { 951 err = errnoErr(e1) 952 } 953 return 954 } 1265 _, _, e1 := syscall_syscall6(libc_linkat_trampoline_addr, uintptr(pathfd), uintptr(unsafe.Pointer(_p0)), uintptr(linkfd), uintptr(unsafe.Pointer(_p1)), uintptr(flags), 0) 1266 if e1 != 0 { 1267 err = errnoErr(e1) 1268 } 1269 return 1270 } 1271 1272 var libc_linkat_trampoline_addr uintptr 1273 1274 //go:cgo_import_dynamic libc_linkat linkat "libc.so" 955 1275 956 1276 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 957 1277 958 1278 func Listen(s int, backlog int) (err error) { 959 _, _, e1 := Syscall(SYS_LISTEN, uintptr(s), uintptr(backlog), 0) 960 if e1 != 0 { 961 err = errnoErr(e1) 962 } 963 return 964 } 1279 _, _, e1 := syscall_syscall(libc_listen_trampoline_addr, uintptr(s), uintptr(backlog), 0) 1280 if e1 != 0 { 1281 err = errnoErr(e1) 1282 } 1283 return 1284 } 1285 1286 var libc_listen_trampoline_addr uintptr 1287 1288 //go:cgo_import_dynamic libc_listen listen "libc.so" 965 1289 966 1290 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 972 1296 return 973 1297 } 974 _, _, e1 := Syscall(SYS_LSTAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 975 if e1 != 0 { 976 err = errnoErr(e1) 977 } 978 return 979 } 1298 _, _, e1 := syscall_syscall(libc_lstat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1299 if e1 != 0 { 1300 err = errnoErr(e1) 1301 } 1302 return 1303 } 1304 1305 var libc_lstat_trampoline_addr uintptr 1306 1307 //go:cgo_import_dynamic libc_lstat lstat "libc.so" 980 1308 981 1309 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 987 1315 return 988 1316 } 989 _, _, e1 := Syscall(SYS_MKDIR, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 990 if e1 != 0 { 991 err = errnoErr(e1) 992 } 993 return 994 } 1317 _, _, e1 := syscall_syscall(libc_mkdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 1318 if e1 != 0 { 1319 err = errnoErr(e1) 1320 } 1321 return 1322 } 1323 1324 var libc_mkdir_trampoline_addr uintptr 1325 1326 //go:cgo_import_dynamic libc_mkdir mkdir "libc.so" 995 1327 996 1328 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1002 1334 return 1003 1335 } 1004 _, _, e1 := Syscall(SYS_MKDIRAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1005 if e1 != 0 { 1006 err = errnoErr(e1) 1007 } 1008 return 1009 } 1336 _, _, e1 := syscall_syscall(libc_mkdirat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1337 if e1 != 0 { 1338 err = errnoErr(e1) 1339 } 1340 return 1341 } 1342 1343 var libc_mkdirat_trampoline_addr uintptr 1344 1345 //go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so" 1010 1346 1011 1347 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1017 1353 return 1018 1354 } 1019 _, _, e1 := Syscall(SYS_MKFIFO, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 1020 if e1 != 0 { 1021 err = errnoErr(e1) 1022 } 1023 return 1024 } 1355 _, _, e1 := syscall_syscall(libc_mkfifo_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), 0) 1356 if e1 != 0 { 1357 err = errnoErr(e1) 1358 } 1359 return 1360 } 1361 1362 var libc_mkfifo_trampoline_addr uintptr 1363 1364 //go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so" 1025 1365 1026 1366 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1032 1372 return 1033 1373 } 1034 _, _, e1 := Syscall(SYS_MKFIFOAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1035 if e1 != 0 { 1036 err = errnoErr(e1) 1037 } 1038 return 1039 } 1374 _, _, e1 := syscall_syscall(libc_mkfifoat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode)) 1375 if e1 != 0 { 1376 err = errnoErr(e1) 1377 } 1378 return 1379 } 1380 1381 var libc_mkfifoat_trampoline_addr uintptr 1382 1383 //go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so" 1040 1384 1041 1385 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1047 1391 return 1048 1392 } 1049 _, _, e1 := Syscall(SYS_MKNOD, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) 1050 if e1 != 0 { 1051 err = errnoErr(e1) 1052 } 1053 return 1054 } 1393 _, _, e1 := syscall_syscall(libc_mknod_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev)) 1394 if e1 != 0 { 1395 err = errnoErr(e1) 1396 } 1397 return 1398 } 1399 1400 var libc_mknod_trampoline_addr uintptr 1401 1402 //go:cgo_import_dynamic libc_mknod mknod "libc.so" 1055 1403 1056 1404 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1062 1410 return 1063 1411 } 1064 _, _, e1 := Syscall6(SYS_MKNODAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) 1065 if e1 != 0 { 1066 err = errnoErr(e1) 1067 } 1068 return 1069 } 1412 _, _, e1 := syscall_syscall6(libc_mknodat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(dev), 0, 0) 1413 if e1 != 0 { 1414 err = errnoErr(e1) 1415 } 1416 return 1417 } 1418 1419 var libc_mknodat_trampoline_addr uintptr 1420 1421 //go:cgo_import_dynamic libc_mknodat mknodat "libc.so" 1070 1422 1071 1423 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1072 1424 1073 1425 func Nanosleep(time *Timespec, leftover *Timespec) (err error) { 1074 _, _, e1 := Syscall(SYS_NANOSLEEP, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) 1075 if e1 != 0 { 1076 err = errnoErr(e1) 1077 } 1078 return 1079 } 1426 _, _, e1 := syscall_syscall(libc_nanosleep_trampoline_addr, uintptr(unsafe.Pointer(time)), uintptr(unsafe.Pointer(leftover)), 0) 1427 if e1 != 0 { 1428 err = errnoErr(e1) 1429 } 1430 return 1431 } 1432 1433 var libc_nanosleep_trampoline_addr uintptr 1434 1435 //go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so" 1080 1436 1081 1437 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1087 1443 return 1088 1444 } 1089 r0, _, e1 := Syscall(SYS_OPEN, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm))1445 r0, _, e1 := syscall_syscall(libc_open_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm)) 1090 1446 fd = int(r0) 1091 1447 if e1 != 0 { … … 1095 1451 } 1096 1452 1453 var libc_open_trampoline_addr uintptr 1454 1455 //go:cgo_import_dynamic libc_open open "libc.so" 1456 1097 1457 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1098 1458 … … 1103 1463 return 1104 1464 } 1105 r0, _, e1 := Syscall6(SYS_OPENAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0)1465 r0, _, e1 := syscall_syscall6(libc_openat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(perm), 0, 0) 1106 1466 fd = int(r0) 1107 1467 if e1 != 0 { … … 1111 1471 } 1112 1472 1473 var libc_openat_trampoline_addr uintptr 1474 1475 //go:cgo_import_dynamic libc_openat openat "libc.so" 1476 1113 1477 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1114 1478 … … 1119 1483 return 1120 1484 } 1121 r0, _, e1 := Syscall(SYS_PATHCONF, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0)1485 r0, _, e1 := syscall_syscall(libc_pathconf_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(name), 0) 1122 1486 val = int(r0) 1123 1487 if e1 != 0 { … … 1126 1490 return 1127 1491 } 1492 1493 var libc_pathconf_trampoline_addr uintptr 1494 1495 //go:cgo_import_dynamic libc_pathconf pathconf "libc.so" 1128 1496 1129 1497 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1136 1504 _p0 = unsafe.Pointer(&_zero) 1137 1505 } 1138 r0, _, e1 := Syscall6(SYS_PREAD, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0)1506 r0, _, e1 := syscall_syscall6(libc_pread_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) 1139 1507 n = int(r0) 1140 1508 if e1 != 0 { … … 1143 1511 return 1144 1512 } 1513 1514 var libc_pread_trampoline_addr uintptr 1515 1516 //go:cgo_import_dynamic libc_pread pread "libc.so" 1145 1517 1146 1518 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1153 1525 _p0 = unsafe.Pointer(&_zero) 1154 1526 } 1155 r0, _, e1 := Syscall6(SYS_PWRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)), 0, uintptr(offset), 0)1527 r0, _, e1 := syscall_syscall6(libc_pwrite_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p)), uintptr(offset), 0, 0) 1156 1528 n = int(r0) 1157 1529 if e1 != 0 { … … 1160 1532 return 1161 1533 } 1534 1535 var libc_pwrite_trampoline_addr uintptr 1536 1537 //go:cgo_import_dynamic libc_pwrite pwrite "libc.so" 1162 1538 1163 1539 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1170 1546 _p0 = unsafe.Pointer(&_zero) 1171 1547 } 1172 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(_p0), uintptr(len(p)))1548 r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) 1173 1549 n = int(r0) 1174 1550 if e1 != 0 { … … 1177 1553 return 1178 1554 } 1555 1556 var libc_read_trampoline_addr uintptr 1557 1558 //go:cgo_import_dynamic libc_read read "libc.so" 1179 1559 1180 1560 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1192 1572 _p1 = unsafe.Pointer(&_zero) 1193 1573 } 1194 r0, _, e1 := Syscall(SYS_READLINK, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)))1574 r0, _, e1 := syscall_syscall(libc_readlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf))) 1195 1575 n = int(r0) 1196 1576 if e1 != 0 { … … 1199 1579 return 1200 1580 } 1581 1582 var libc_readlink_trampoline_addr uintptr 1583 1584 //go:cgo_import_dynamic libc_readlink readlink "libc.so" 1201 1585 1202 1586 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1214 1598 _p1 = unsafe.Pointer(&_zero) 1215 1599 } 1216 r0, _, e1 := Syscall6(SYS_READLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0)1600 r0, _, e1 := syscall_syscall6(libc_readlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(buf)), 0, 0) 1217 1601 n = int(r0) 1218 1602 if e1 != 0 { … … 1221 1605 return 1222 1606 } 1607 1608 var libc_readlinkat_trampoline_addr uintptr 1609 1610 //go:cgo_import_dynamic libc_readlinkat readlinkat "libc.so" 1223 1611 1224 1612 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1235 1623 return 1236 1624 } 1237 _, _, e1 := Syscall(SYS_RENAME, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1238 if e1 != 0 { 1239 err = errnoErr(e1) 1240 } 1241 return 1242 } 1625 _, _, e1 := syscall_syscall(libc_rename_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1626 if e1 != 0 { 1627 err = errnoErr(e1) 1628 } 1629 return 1630 } 1631 1632 var libc_rename_trampoline_addr uintptr 1633 1634 //go:cgo_import_dynamic libc_rename rename "libc.so" 1243 1635 1244 1636 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1255 1647 return 1256 1648 } 1257 _, _, e1 := Syscall6(SYS_RENAMEAT, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) 1258 if e1 != 0 { 1259 err = errnoErr(e1) 1260 } 1261 return 1262 } 1649 _, _, e1 := syscall_syscall6(libc_renameat_trampoline_addr, uintptr(fromfd), uintptr(unsafe.Pointer(_p0)), uintptr(tofd), uintptr(unsafe.Pointer(_p1)), 0, 0) 1650 if e1 != 0 { 1651 err = errnoErr(e1) 1652 } 1653 return 1654 } 1655 1656 var libc_renameat_trampoline_addr uintptr 1657 1658 //go:cgo_import_dynamic libc_renameat renameat "libc.so" 1263 1659 1264 1660 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1270 1666 return 1271 1667 } 1272 _, _, e1 := Syscall(SYS_REVOKE, uintptr(unsafe.Pointer(_p0)), 0, 0) 1273 if e1 != 0 { 1274 err = errnoErr(e1) 1275 } 1276 return 1277 } 1668 _, _, e1 := syscall_syscall(libc_revoke_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 1669 if e1 != 0 { 1670 err = errnoErr(e1) 1671 } 1672 return 1673 } 1674 1675 var libc_revoke_trampoline_addr uintptr 1676 1677 //go:cgo_import_dynamic libc_revoke revoke "libc.so" 1278 1678 1279 1679 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1285 1685 return 1286 1686 } 1287 _, _, e1 := Syscall(SYS_RMDIR, uintptr(unsafe.Pointer(_p0)), 0, 0) 1288 if e1 != 0 { 1289 err = errnoErr(e1) 1290 } 1291 return 1292 } 1687 _, _, e1 := syscall_syscall(libc_rmdir_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 1688 if e1 != 0 { 1689 err = errnoErr(e1) 1690 } 1691 return 1692 } 1693 1694 var libc_rmdir_trampoline_addr uintptr 1695 1696 //go:cgo_import_dynamic libc_rmdir rmdir "libc.so" 1293 1697 1294 1698 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1295 1699 1296 1700 func Seek(fd int, offset int64, whence int) (newoffset int64, err error) { 1297 r0, _, e1 := Syscall6(SYS_LSEEK, uintptr(fd), 0, uintptr(offset), uintptr(whence), 0, 0)1701 r0, _, e1 := syscall_syscall(libc_lseek_trampoline_addr, uintptr(fd), uintptr(offset), uintptr(whence)) 1298 1702 newoffset = int64(r0) 1299 1703 if e1 != 0 { … … 1303 1707 } 1304 1708 1709 var libc_lseek_trampoline_addr uintptr 1710 1711 //go:cgo_import_dynamic libc_lseek lseek "libc.so" 1712 1305 1713 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1306 1714 1307 1715 func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error) { 1308 r0, _, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0)1716 r0, _, e1 := syscall_syscall6(libc_select_trampoline_addr, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0) 1309 1717 n = int(r0) 1310 1718 if e1 != 0 { … … 1314 1722 } 1315 1723 1724 var libc_select_trampoline_addr uintptr 1725 1726 //go:cgo_import_dynamic libc_select select "libc.so" 1727 1316 1728 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1317 1729 1318 1730 func Setegid(egid int) (err error) { 1319 _, _, e1 := RawSyscall(SYS_SETEGID, uintptr(egid), 0, 0) 1320 if e1 != 0 { 1321 err = errnoErr(e1) 1322 } 1323 return 1324 } 1731 _, _, e1 := syscall_rawSyscall(libc_setegid_trampoline_addr, uintptr(egid), 0, 0) 1732 if e1 != 0 { 1733 err = errnoErr(e1) 1734 } 1735 return 1736 } 1737 1738 var libc_setegid_trampoline_addr uintptr 1739 1740 //go:cgo_import_dynamic libc_setegid setegid "libc.so" 1325 1741 1326 1742 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1327 1743 1328 1744 func Seteuid(euid int) (err error) { 1329 _, _, e1 := RawSyscall(SYS_SETEUID, uintptr(euid), 0, 0) 1330 if e1 != 0 { 1331 err = errnoErr(e1) 1332 } 1333 return 1334 } 1745 _, _, e1 := syscall_rawSyscall(libc_seteuid_trampoline_addr, uintptr(euid), 0, 0) 1746 if e1 != 0 { 1747 err = errnoErr(e1) 1748 } 1749 return 1750 } 1751 1752 var libc_seteuid_trampoline_addr uintptr 1753 1754 //go:cgo_import_dynamic libc_seteuid seteuid "libc.so" 1335 1755 1336 1756 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1337 1757 1338 1758 func Setgid(gid int) (err error) { 1339 _, _, e1 := RawSyscall(SYS_SETGID, uintptr(gid), 0, 0) 1340 if e1 != 0 { 1341 err = errnoErr(e1) 1342 } 1343 return 1344 } 1759 _, _, e1 := syscall_rawSyscall(libc_setgid_trampoline_addr, uintptr(gid), 0, 0) 1760 if e1 != 0 { 1761 err = errnoErr(e1) 1762 } 1763 return 1764 } 1765 1766 var libc_setgid_trampoline_addr uintptr 1767 1768 //go:cgo_import_dynamic libc_setgid setgid "libc.so" 1345 1769 1346 1770 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1352 1776 return 1353 1777 } 1354 _, _, e1 := Syscall(SYS_SETLOGIN, uintptr(unsafe.Pointer(_p0)), 0, 0) 1355 if e1 != 0 { 1356 err = errnoErr(e1) 1357 } 1358 return 1359 } 1778 _, _, e1 := syscall_syscall(libc_setlogin_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 1779 if e1 != 0 { 1780 err = errnoErr(e1) 1781 } 1782 return 1783 } 1784 1785 var libc_setlogin_trampoline_addr uintptr 1786 1787 //go:cgo_import_dynamic libc_setlogin setlogin "libc.so" 1360 1788 1361 1789 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1362 1790 1363 1791 func Setpgid(pid int, pgid int) (err error) { 1364 _, _, e1 := RawSyscall(SYS_SETPGID, uintptr(pid), uintptr(pgid), 0) 1365 if e1 != 0 { 1366 err = errnoErr(e1) 1367 } 1368 return 1369 } 1792 _, _, e1 := syscall_rawSyscall(libc_setpgid_trampoline_addr, uintptr(pid), uintptr(pgid), 0) 1793 if e1 != 0 { 1794 err = errnoErr(e1) 1795 } 1796 return 1797 } 1798 1799 var libc_setpgid_trampoline_addr uintptr 1800 1801 //go:cgo_import_dynamic libc_setpgid setpgid "libc.so" 1370 1802 1371 1803 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1372 1804 1373 1805 func Setpriority(which int, who int, prio int) (err error) { 1374 _, _, e1 := Syscall(SYS_SETPRIORITY, uintptr(which), uintptr(who), uintptr(prio)) 1375 if e1 != 0 { 1376 err = errnoErr(e1) 1377 } 1378 return 1379 } 1806 _, _, e1 := syscall_syscall(libc_setpriority_trampoline_addr, uintptr(which), uintptr(who), uintptr(prio)) 1807 if e1 != 0 { 1808 err = errnoErr(e1) 1809 } 1810 return 1811 } 1812 1813 var libc_setpriority_trampoline_addr uintptr 1814 1815 //go:cgo_import_dynamic libc_setpriority setpriority "libc.so" 1380 1816 1381 1817 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1382 1818 1383 1819 func Setregid(rgid int, egid int) (err error) { 1384 _, _, e1 := RawSyscall(SYS_SETREGID, uintptr(rgid), uintptr(egid), 0) 1385 if e1 != 0 { 1386 err = errnoErr(e1) 1387 } 1388 return 1389 } 1820 _, _, e1 := syscall_rawSyscall(libc_setregid_trampoline_addr, uintptr(rgid), uintptr(egid), 0) 1821 if e1 != 0 { 1822 err = errnoErr(e1) 1823 } 1824 return 1825 } 1826 1827 var libc_setregid_trampoline_addr uintptr 1828 1829 //go:cgo_import_dynamic libc_setregid setregid "libc.so" 1390 1830 1391 1831 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1392 1832 1393 1833 func Setreuid(ruid int, euid int) (err error) { 1394 _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0) 1395 if e1 != 0 { 1396 err = errnoErr(e1) 1397 } 1398 return 1399 } 1834 _, _, e1 := syscall_rawSyscall(libc_setreuid_trampoline_addr, uintptr(ruid), uintptr(euid), 0) 1835 if e1 != 0 { 1836 err = errnoErr(e1) 1837 } 1838 return 1839 } 1840 1841 var libc_setreuid_trampoline_addr uintptr 1842 1843 //go:cgo_import_dynamic libc_setreuid setreuid "libc.so" 1400 1844 1401 1845 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1402 1846 1403 1847 func Setresgid(rgid int, egid int, sgid int) (err error) { 1404 _, _, e1 := RawSyscall(SYS_SETRESGID, uintptr(rgid), uintptr(egid), uintptr(sgid)) 1405 if e1 != 0 { 1406 err = errnoErr(e1) 1407 } 1408 return 1409 } 1848 _, _, e1 := syscall_rawSyscall(libc_setresgid_trampoline_addr, uintptr(rgid), uintptr(egid), uintptr(sgid)) 1849 if e1 != 0 { 1850 err = errnoErr(e1) 1851 } 1852 return 1853 } 1854 1855 var libc_setresgid_trampoline_addr uintptr 1856 1857 //go:cgo_import_dynamic libc_setresgid setresgid "libc.so" 1410 1858 1411 1859 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1412 1860 1413 1861 func Setresuid(ruid int, euid int, suid int) (err error) { 1414 _, _, e1 := RawSyscall(SYS_SETRESUID, uintptr(ruid), uintptr(euid), uintptr(suid)) 1415 if e1 != 0 { 1416 err = errnoErr(e1) 1417 } 1418 return 1419 } 1862 _, _, e1 := syscall_rawSyscall(libc_setresuid_trampoline_addr, uintptr(ruid), uintptr(euid), uintptr(suid)) 1863 if e1 != 0 { 1864 err = errnoErr(e1) 1865 } 1866 return 1867 } 1868 1869 var libc_setresuid_trampoline_addr uintptr 1870 1871 //go:cgo_import_dynamic libc_setresuid setresuid "libc.so" 1420 1872 1421 1873 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1422 1874 1423 1875 func Setrlimit(which int, lim *Rlimit) (err error) { 1424 _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 1425 if e1 != 0 { 1426 err = errnoErr(e1) 1427 } 1428 return 1429 } 1876 _, _, e1 := syscall_rawSyscall(libc_setrlimit_trampoline_addr, uintptr(which), uintptr(unsafe.Pointer(lim)), 0) 1877 if e1 != 0 { 1878 err = errnoErr(e1) 1879 } 1880 return 1881 } 1882 1883 var libc_setrlimit_trampoline_addr uintptr 1884 1885 //go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so" 1430 1886 1431 1887 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1432 1888 1433 1889 func Setrtable(rtable int) (err error) { 1434 _, _, e1 := RawSyscall(SYS_SETRTABLE, uintptr(rtable), 0, 0) 1435 if e1 != 0 { 1436 err = errnoErr(e1) 1437 } 1438 return 1439 } 1890 _, _, e1 := syscall_rawSyscall(libc_setrtable_trampoline_addr, uintptr(rtable), 0, 0) 1891 if e1 != 0 { 1892 err = errnoErr(e1) 1893 } 1894 return 1895 } 1896 1897 var libc_setrtable_trampoline_addr uintptr 1898 1899 //go:cgo_import_dynamic libc_setrtable setrtable "libc.so" 1440 1900 1441 1901 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1442 1902 1443 1903 func Setsid() (pid int, err error) { 1444 r0, _, e1 := RawSyscall(SYS_SETSID, 0, 0, 0)1904 r0, _, e1 := syscall_rawSyscall(libc_setsid_trampoline_addr, 0, 0, 0) 1445 1905 pid = int(r0) 1446 1906 if e1 != 0 { … … 1450 1910 } 1451 1911 1912 var libc_setsid_trampoline_addr uintptr 1913 1914 //go:cgo_import_dynamic libc_setsid setsid "libc.so" 1915 1452 1916 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1453 1917 1454 1918 func Settimeofday(tp *Timeval) (err error) { 1455 _, _, e1 := RawSyscall(SYS_SETTIMEOFDAY, uintptr(unsafe.Pointer(tp)), 0, 0) 1456 if e1 != 0 { 1457 err = errnoErr(e1) 1458 } 1459 return 1460 } 1919 _, _, e1 := syscall_rawSyscall(libc_settimeofday_trampoline_addr, uintptr(unsafe.Pointer(tp)), 0, 0) 1920 if e1 != 0 { 1921 err = errnoErr(e1) 1922 } 1923 return 1924 } 1925 1926 var libc_settimeofday_trampoline_addr uintptr 1927 1928 //go:cgo_import_dynamic libc_settimeofday settimeofday "libc.so" 1461 1929 1462 1930 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1463 1931 1464 1932 func Setuid(uid int) (err error) { 1465 _, _, e1 := RawSyscall(SYS_SETUID, uintptr(uid), 0, 0) 1466 if e1 != 0 { 1467 err = errnoErr(e1) 1468 } 1469 return 1470 } 1933 _, _, e1 := syscall_rawSyscall(libc_setuid_trampoline_addr, uintptr(uid), 0, 0) 1934 if e1 != 0 { 1935 err = errnoErr(e1) 1936 } 1937 return 1938 } 1939 1940 var libc_setuid_trampoline_addr uintptr 1941 1942 //go:cgo_import_dynamic libc_setuid setuid "libc.so" 1471 1943 1472 1944 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1478 1950 return 1479 1951 } 1480 _, _, e1 := Syscall(SYS_STAT, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1481 if e1 != 0 { 1482 err = errnoErr(e1) 1483 } 1484 return 1485 } 1952 _, _, e1 := syscall_syscall(libc_stat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1953 if e1 != 0 { 1954 err = errnoErr(e1) 1955 } 1956 return 1957 } 1958 1959 var libc_stat_trampoline_addr uintptr 1960 1961 //go:cgo_import_dynamic libc_stat stat "libc.so" 1486 1962 1487 1963 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1493 1969 return 1494 1970 } 1495 _, _, e1 := Syscall(SYS_STATFS, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1496 if e1 != 0 { 1497 err = errnoErr(e1) 1498 } 1499 return 1500 } 1971 _, _, e1 := syscall_syscall(libc_statfs_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(stat)), 0) 1972 if e1 != 0 { 1973 err = errnoErr(e1) 1974 } 1975 return 1976 } 1977 1978 var libc_statfs_trampoline_addr uintptr 1979 1980 //go:cgo_import_dynamic libc_statfs statfs "libc.so" 1501 1981 1502 1982 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1513 1993 return 1514 1994 } 1515 _, _, e1 := Syscall(SYS_SYMLINK, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1516 if e1 != 0 { 1517 err = errnoErr(e1) 1518 } 1519 return 1520 } 1995 _, _, e1 := syscall_syscall(libc_symlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0) 1996 if e1 != 0 { 1997 err = errnoErr(e1) 1998 } 1999 return 2000 } 2001 2002 var libc_symlink_trampoline_addr uintptr 2003 2004 //go:cgo_import_dynamic libc_symlink symlink "libc.so" 1521 2005 1522 2006 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1533 2017 return 1534 2018 } 1535 _, _, e1 := Syscall(SYS_SYMLINKAT, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) 1536 if e1 != 0 { 1537 err = errnoErr(e1) 1538 } 1539 return 1540 } 2019 _, _, e1 := syscall_syscall(libc_symlinkat_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(newdirfd), uintptr(unsafe.Pointer(_p1))) 2020 if e1 != 0 { 2021 err = errnoErr(e1) 2022 } 2023 return 2024 } 2025 2026 var libc_symlinkat_trampoline_addr uintptr 2027 2028 //go:cgo_import_dynamic libc_symlinkat symlinkat "libc.so" 1541 2029 1542 2030 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1543 2031 1544 2032 func Sync() (err error) { 1545 _, _, e1 := Syscall(SYS_SYNC, 0, 0, 0) 1546 if e1 != 0 { 1547 err = errnoErr(e1) 1548 } 1549 return 1550 } 2033 _, _, e1 := syscall_syscall(libc_sync_trampoline_addr, 0, 0, 0) 2034 if e1 != 0 { 2035 err = errnoErr(e1) 2036 } 2037 return 2038 } 2039 2040 var libc_sync_trampoline_addr uintptr 2041 2042 //go:cgo_import_dynamic libc_sync sync "libc.so" 1551 2043 1552 2044 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1558 2050 return 1559 2051 } 1560 _, _, e1 := Syscall(SYS_TRUNCATE, uintptr(unsafe.Pointer(_p0)), 0, uintptr(length)) 1561 if e1 != 0 { 1562 err = errnoErr(e1) 1563 } 1564 return 1565 } 2052 _, _, e1 := syscall_syscall(libc_truncate_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(length), 0) 2053 if e1 != 0 { 2054 err = errnoErr(e1) 2055 } 2056 return 2057 } 2058 2059 var libc_truncate_trampoline_addr uintptr 2060 2061 //go:cgo_import_dynamic libc_truncate truncate "libc.so" 1566 2062 1567 2063 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1568 2064 1569 2065 func Umask(newmask int) (oldmask int) { 1570 r0, _, _ := Syscall(SYS_UMASK, uintptr(newmask), 0, 0)2066 r0, _, _ := syscall_syscall(libc_umask_trampoline_addr, uintptr(newmask), 0, 0) 1571 2067 oldmask = int(r0) 1572 2068 return 1573 2069 } 1574 2070 2071 var libc_umask_trampoline_addr uintptr 2072 2073 //go:cgo_import_dynamic libc_umask umask "libc.so" 2074 1575 2075 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1576 2076 … … 1581 2081 return 1582 2082 } 1583 _, _, e1 := Syscall(SYS_UNLINK, uintptr(unsafe.Pointer(_p0)), 0, 0) 1584 if e1 != 0 { 1585 err = errnoErr(e1) 1586 } 1587 return 1588 } 2083 _, _, e1 := syscall_syscall(libc_unlink_trampoline_addr, uintptr(unsafe.Pointer(_p0)), 0, 0) 2084 if e1 != 0 { 2085 err = errnoErr(e1) 2086 } 2087 return 2088 } 2089 2090 var libc_unlink_trampoline_addr uintptr 2091 2092 //go:cgo_import_dynamic libc_unlink unlink "libc.so" 1589 2093 1590 2094 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1596 2100 return 1597 2101 } 1598 _, _, e1 := Syscall(SYS_UNLINKAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) 1599 if e1 != 0 { 1600 err = errnoErr(e1) 1601 } 1602 return 1603 } 2102 _, _, e1 := syscall_syscall(libc_unlinkat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(flags)) 2103 if e1 != 0 { 2104 err = errnoErr(e1) 2105 } 2106 return 2107 } 2108 2109 var libc_unlinkat_trampoline_addr uintptr 2110 2111 //go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so" 1604 2112 1605 2113 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1611 2119 return 1612 2120 } 1613 _, _, e1 := Syscall(SYS_UNMOUNT, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 1614 if e1 != 0 { 1615 err = errnoErr(e1) 1616 } 1617 return 1618 } 2121 _, _, e1 := syscall_syscall(libc_unmount_trampoline_addr, uintptr(unsafe.Pointer(_p0)), uintptr(flags), 0) 2122 if e1 != 0 { 2123 err = errnoErr(e1) 2124 } 2125 return 2126 } 2127 2128 var libc_unmount_trampoline_addr uintptr 2129 2130 //go:cgo_import_dynamic libc_unmount unmount "libc.so" 1619 2131 1620 2132 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT … … 1627 2139 _p0 = unsafe.Pointer(&_zero) 1628 2140 } 1629 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(_p0), uintptr(len(p)))2141 r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(_p0), uintptr(len(p))) 1630 2142 n = int(r0) 1631 2143 if e1 != 0 { … … 1635 2147 } 1636 2148 2149 var libc_write_trampoline_addr uintptr 2150 2151 //go:cgo_import_dynamic libc_write write "libc.so" 2152 1637 2153 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1638 2154 1639 2155 func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) { 1640 r0, _, e1 := Syscall9(SYS_MMAP, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), 0, uintptr(pos), 0, 0)2156 r0, _, e1 := syscall_syscall6(libc_mmap_trampoline_addr, uintptr(addr), uintptr(length), uintptr(prot), uintptr(flag), uintptr(fd), uintptr(pos)) 1641 2157 ret = uintptr(r0) 1642 2158 if e1 != 0 { … … 1646 2162 } 1647 2163 2164 var libc_mmap_trampoline_addr uintptr 2165 2166 //go:cgo_import_dynamic libc_mmap mmap "libc.so" 2167 1648 2168 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1649 2169 1650 2170 func munmap(addr uintptr, length uintptr) (err error) { 1651 _, _, e1 := Syscall(SYS_MUNMAP, uintptr(addr), uintptr(length), 0) 1652 if e1 != 0 { 1653 err = errnoErr(e1) 1654 } 1655 return 1656 } 2171 _, _, e1 := syscall_syscall(libc_munmap_trampoline_addr, uintptr(addr), uintptr(length), 0) 2172 if e1 != 0 { 2173 err = errnoErr(e1) 2174 } 2175 return 2176 } 2177 2178 var libc_munmap_trampoline_addr uintptr 2179 2180 //go:cgo_import_dynamic libc_munmap munmap "libc.so" 1657 2181 1658 2182 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 1659 2183 1660 2184 func readlen(fd int, buf *byte, nbuf int) (n int, err error) { 1661 r0, _, e1 := Syscall(SYS_READ, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))2185 r0, _, e1 := syscall_syscall(libc_read_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) 1662 2186 n = int(r0) 1663 2187 if e1 != 0 { … … 1670 2194 1671 2195 func writelen(fd int, buf *byte, nbuf int) (n int, err error) { 1672 r0, _, e1 := Syscall(SYS_WRITE, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf))2196 r0, _, e1 := syscall_syscall(libc_write_trampoline_addr, uintptr(fd), uintptr(unsafe.Pointer(buf)), uintptr(nbuf)) 1673 2197 n = int(r0) 1674 2198 if e1 != 0 { … … 1686 2210 return 1687 2211 } 1688 _, _, e1 := Syscall6(SYS_UTIMENSAT, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) 1689 if e1 != 0 { 1690 err = errnoErr(e1) 1691 } 1692 return 1693 } 2212 _, _, e1 := syscall_syscall6(libc_utimensat_trampoline_addr, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(times)), uintptr(flags), 0, 0) 2213 if e1 != 0 { 2214 err = errnoErr(e1) 2215 } 2216 return 2217 } 2218 2219 var libc_utimensat_trampoline_addr uintptr 2220 2221 //go:cgo_import_dynamic libc_utimensat utimensat "libc.so" -
trunk/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go
r67 r69 148 148 //go:cgo_import_dynamic libc_port_get port_get "libc.so" 149 149 //go:cgo_import_dynamic libc_port_getn port_getn "libc.so" 150 //go:cgo_import_dynamic libc_putmsg putmsg "libc.so" 151 //go:cgo_import_dynamic libc_getmsg getmsg "libc.so" 150 152 151 153 //go:linkname procpipe libc_pipe … … 285 287 //go:linkname procport_get libc_port_get 286 288 //go:linkname procport_getn libc_port_getn 289 //go:linkname procputmsg libc_putmsg 290 //go:linkname procgetmsg libc_getmsg 287 291 288 292 var ( … … 422 426 procport_dissociate, 423 427 procport_get, 424 procport_getn syscallFunc 428 procport_getn, 429 procputmsg, 430 procgetmsg syscallFunc 425 431 ) 426 432 … … 2066 2072 return 2067 2073 } 2074 2075 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2076 2077 func putmsg(fd int, clptr *strbuf, dataptr *strbuf, flags int) (err error) { 2078 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procputmsg)), 4, uintptr(fd), uintptr(unsafe.Pointer(clptr)), uintptr(unsafe.Pointer(dataptr)), uintptr(flags), 0, 0) 2079 if e1 != 0 { 2080 err = e1 2081 } 2082 return 2083 } 2084 2085 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT 2086 2087 func getmsg(fd int, clptr *strbuf, dataptr *strbuf, flags *int) (err error) { 2088 _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetmsg)), 4, uintptr(fd), uintptr(unsafe.Pointer(clptr)), uintptr(unsafe.Pointer(dataptr)), uintptr(unsafe.Pointer(flags)), 0, 0) 2089 if e1 != 0 { 2090 err = e1 2091 } 2092 return 2093 } -
trunk/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go
r67 r69 1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ include -m32 /tmp/include/asm/unistd.h1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/386/include -m32 /tmp/386/include/asm/unistd.h 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 -
trunk/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go
r67 r69 1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ include -m64 /tmp/include/asm/unistd.h1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/amd64/include -m64 /tmp/amd64/include/asm/unistd.h 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 -
trunk/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go
r67 r69 1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ include /tmp/include/asm/unistd.h1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/arm/include /tmp/arm/include/asm/unistd.h 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 -
trunk/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go
r67 r69 1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ include -fsigned-char /tmp/include/asm/unistd.h1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/arm64/include -fsigned-char /tmp/arm64/include/asm/unistd.h 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 -
trunk/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go
r67 r69 1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ include /tmp/include/asm/unistd.h1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/loong64/include /tmp/loong64/include/asm/unistd.h 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 -
trunk/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go
r67 r69 1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ include /tmp/include/asm/unistd.h1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/mips/include /tmp/mips/include/asm/unistd.h 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 -
trunk/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go
r67 r69 1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ include /tmp/include/asm/unistd.h1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/mips64/include /tmp/mips64/include/asm/unistd.h 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 -
trunk/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go
r67 r69 1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ include /tmp/include/asm/unistd.h1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/mips64le/include /tmp/mips64le/include/asm/unistd.h 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 -
trunk/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go
r67 r69 1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ include /tmp/include/asm/unistd.h1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/mipsle/include /tmp/mipsle/include/asm/unistd.h 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 -
trunk/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go
r67 r69 1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ include /tmp/include/asm/unistd.h1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ppc/include /tmp/ppc/include/asm/unistd.h 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 -
trunk/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go
r67 r69 1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ include /tmp/include/asm/unistd.h1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ppc64/include /tmp/ppc64/include/asm/unistd.h 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 -
trunk/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go
r67 r69 1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ include /tmp/include/asm/unistd.h1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ppc64le/include /tmp/ppc64le/include/asm/unistd.h 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 -
trunk/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go
r67 r69 1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ include /tmp/include/asm/unistd.h1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/riscv64/include /tmp/riscv64/include/asm/unistd.h 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 -
trunk/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go
r67 r69 1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ include -fsigned-char /tmp/include/asm/unistd.h1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/s390x/include -fsigned-char /tmp/s390x/include/asm/unistd.h 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 -
trunk/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go
r67 r69 1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ include /tmp/include/asm/unistd.h1 // go run linux/mksysnum.go -Wall -Werror -static -I/tmp/sparc64/include /tmp/sparc64/include/asm/unistd.h 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 -
trunk/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go
r67 r69 7 7 package unix 8 8 9 // Deprecated: Use libc wrappers instead of direct syscalls. 9 10 const ( 10 11 SYS_EXIT = 1 // { void sys_exit(int rval); } -
trunk/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go
r67 r69 7 7 package unix 8 8 9 // Deprecated: Use libc wrappers instead of direct syscalls. 9 10 const ( 10 11 SYS_EXIT = 1 // { void sys_exit(int rval); } -
trunk/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go
r67 r69 7 7 package unix 8 8 9 // Deprecated: Use libc wrappers instead of direct syscalls. 9 10 const ( 10 11 SYS_EXIT = 1 // { void sys_exit(int rval); } -
trunk/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm64.go
r67 r69 7 7 package unix 8 8 9 // Deprecated: Use libc wrappers instead of direct syscalls. 9 10 const ( 10 11 SYS_EXIT = 1 // { void sys_exit(int rval); } -
trunk/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go
r67 r69 295 295 Sigmask Sigset_t 296 296 Siglist Sigset_t 297 Siginfo __ Siginfo297 Siginfo __PtraceSiginfo 298 298 Tdname [20]int8 299 299 Child_pid int32 … … 310 310 Status int32 311 311 Addr *byte 312 Value [4]byte 313 _ [32]byte 314 } 315 type __PtraceSiginfo struct { 316 Signo int32 317 Errno int32 318 Code int32 319 Pid int32 320 Uid uint32 321 Status int32 322 Addr uintptr 312 323 Value [4]byte 313 324 _ [32]byte … … 351 362 type PtraceIoDesc struct { 352 363 Op int32 353 Offs *byte354 Addr *byte364 Offs uintptr 365 Addr uintptr 355 366 Len uint32 356 367 } -
trunk/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go
r67 r69 292 292 Sigmask Sigset_t 293 293 Siglist Sigset_t 294 Siginfo __ Siginfo294 Siginfo __PtraceSiginfo 295 295 Tdname [20]int8 296 296 Child_pid int32 … … 307 307 Status int32 308 308 Addr *byte 309 Value [8]byte 310 _ [40]byte 311 } 312 313 type __PtraceSiginfo struct { 314 Signo int32 315 Errno int32 316 Code int32 317 Pid int32 318 Uid uint32 319 Status int32 320 Addr uintptr 309 321 Value [8]byte 310 322 _ [40]byte … … 355 367 type PtraceIoDesc struct { 356 368 Op int32 357 Offs *byte358 Addr *byte369 Offs uintptr 370 Addr uintptr 359 371 Len uint64 360 372 } -
trunk/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go
r67 r69 294 294 Sigmask Sigset_t 295 295 Siglist Sigset_t 296 Siginfo __ Siginfo296 Siginfo __PtraceSiginfo 297 297 Tdname [20]int8 298 298 Child_pid int32 … … 313 313 } 314 314 315 type __PtraceSiginfo struct { 316 Signo int32 317 Errno int32 318 Code int32 319 Pid int32 320 Uid uint32 321 Status int32 322 Addr uintptr 323 Value [4]byte 324 _ [32]byte 325 } 326 315 327 type Sigset_t struct { 316 328 Val [4]uint32 … … 338 350 type PtraceIoDesc struct { 339 351 Op int32 340 Offs *byte341 Addr *byte352 Offs uintptr 353 Addr uintptr 342 354 Len uint32 343 355 } -
trunk/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go
r67 r69 292 292 Sigmask Sigset_t 293 293 Siglist Sigset_t 294 Siginfo __ Siginfo294 Siginfo __PtraceSiginfo 295 295 Tdname [20]int8 296 296 Child_pid int32 … … 311 311 } 312 312 313 type __PtraceSiginfo struct { 314 Signo int32 315 Errno int32 316 Code int32 317 Pid int32 318 Uid uint32 319 Status int32 320 Addr uintptr 321 Value [8]byte 322 _ [40]byte 323 } 324 313 325 type Sigset_t struct { 314 326 Val [4]uint32 … … 335 347 type PtraceIoDesc struct { 336 348 Op int32 337 Offs *byte338 Addr *byte349 Offs uintptr 350 Addr uintptr 339 351 Len uint64 340 352 } -
trunk/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go
r67 r69 292 292 Sigmask Sigset_t 293 293 Siglist Sigset_t 294 Siginfo __ Siginfo294 Siginfo __PtraceSiginfo 295 295 Tdname [20]int8 296 296 Child_pid int32 … … 311 311 } 312 312 313 type __PtraceSiginfo struct { 314 Signo int32 315 Errno int32 316 Code int32 317 Pid int32 318 Uid uint32 319 Status int32 320 Addr uintptr 321 Value [8]byte 322 _ [40]byte 323 } 324 313 325 type Sigset_t struct { 314 326 Val [4]uint32 … … 336 348 type PtraceIoDesc struct { 337 349 Op int32 338 Offs *byte339 Addr *byte350 Offs uintptr 351 Addr uintptr 340 352 Len uint64 341 353 } -
trunk/vendor/golang.org/x/sys/unix/ztypes_linux.go
r67 r69 946 946 Sample_max_stack uint16 947 947 _ uint16 948 Aux_sample_size uint32 949 _ uint32 950 Sig_data uint64 948 951 } 949 952 … … 1464 1467 IFLA_PERM_ADDRESS = 0x36 1465 1468 IFLA_PROTO_DOWN_REASON = 0x37 1469 IFLA_PARENT_DEV_NAME = 0x38 1470 IFLA_PARENT_DEV_BUS_NAME = 0x39 1471 IFLA_GRO_MAX_SIZE = 0x3a 1472 IFLA_TSO_MAX_SIZE = 0x3b 1473 IFLA_TSO_MAX_SEGS = 0x3c 1466 1474 IFLA_PROTO_DOWN_REASON_UNSPEC = 0x0 1467 1475 IFLA_PROTO_DOWN_REASON_MASK = 0x1 -
trunk/vendor/golang.org/x/sys/unix/ztypes_linux_386.go
r67 r69 1 // cgo -godefs - - -Wall -Werror -static -I/tmp/include -m32 linux/types.go | go run mkpost.go1 // cgo -godefs -objdir=/tmp/386/cgo -- -Wall -Werror -static -I/tmp/386/include -m32 linux/types.go | go run mkpost.go 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 254 254 255 255 const _C__NSIG = 0x41 256 257 const ( 258 SIG_BLOCK = 0x0 259 SIG_UNBLOCK = 0x1 260 SIG_SETMASK = 0x2 261 ) 256 262 257 263 type Siginfo struct { -
trunk/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go
r67 r69 1 // cgo -godefs - - -Wall -Werror -static -I/tmp/include -m64 linux/types.go | go run mkpost.go1 // cgo -godefs -objdir=/tmp/amd64/cgo -- -Wall -Werror -static -I/tmp/amd64/include -m64 linux/types.go | go run mkpost.go 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 269 269 270 270 const _C__NSIG = 0x41 271 272 const ( 273 SIG_BLOCK = 0x0 274 SIG_UNBLOCK = 0x1 275 SIG_SETMASK = 0x2 276 ) 271 277 272 278 type Siginfo struct { -
trunk/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go
r67 r69 1 // cgo -godefs - - -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go1 // cgo -godefs -objdir=/tmp/arm/cgo -- -Wall -Werror -static -I/tmp/arm/include linux/types.go | go run mkpost.go 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 245 245 246 246 const _C__NSIG = 0x41 247 248 const ( 249 SIG_BLOCK = 0x0 250 SIG_UNBLOCK = 0x1 251 SIG_SETMASK = 0x2 252 ) 247 253 248 254 type Siginfo struct { -
trunk/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go
r67 r69 1 // cgo -godefs - - -Wall -Werror -static -I/tmp/include -fsigned-char linux/types.go | go run mkpost.go1 // cgo -godefs -objdir=/tmp/arm64/cgo -- -Wall -Werror -static -I/tmp/arm64/include -fsigned-char linux/types.go | go run mkpost.go 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 248 248 249 249 const _C__NSIG = 0x41 250 251 const ( 252 SIG_BLOCK = 0x0 253 SIG_UNBLOCK = 0x1 254 SIG_SETMASK = 0x2 255 ) 250 256 251 257 type Siginfo struct { -
trunk/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go
r67 r69 1 // cgo -godefs - - -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go1 // cgo -godefs -objdir=/tmp/loong64/cgo -- -Wall -Werror -static -I/tmp/loong64/include linux/types.go | go run mkpost.go 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 249 249 250 250 const _C__NSIG = 0x41 251 252 const ( 253 SIG_BLOCK = 0x0 254 SIG_UNBLOCK = 0x1 255 SIG_SETMASK = 0x2 256 ) 251 257 252 258 type Siginfo struct { -
trunk/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go
r67 r69 1 // cgo -godefs - - -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go1 // cgo -godefs -objdir=/tmp/mips/cgo -- -Wall -Werror -static -I/tmp/mips/include linux/types.go | go run mkpost.go 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 250 250 251 251 const _C__NSIG = 0x80 252 253 const ( 254 SIG_BLOCK = 0x1 255 SIG_UNBLOCK = 0x2 256 SIG_SETMASK = 0x3 257 ) 252 258 253 259 type Siginfo struct { -
trunk/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go
r67 r69 1 // cgo -godefs - - -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go1 // cgo -godefs -objdir=/tmp/mips64/cgo -- -Wall -Werror -static -I/tmp/mips64/include linux/types.go | go run mkpost.go 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 251 251 252 252 const _C__NSIG = 0x80 253 254 const ( 255 SIG_BLOCK = 0x1 256 SIG_UNBLOCK = 0x2 257 SIG_SETMASK = 0x3 258 ) 253 259 254 260 type Siginfo struct { -
trunk/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go
r67 r69 1 // cgo -godefs - - -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go1 // cgo -godefs -objdir=/tmp/mips64le/cgo -- -Wall -Werror -static -I/tmp/mips64le/include linux/types.go | go run mkpost.go 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 251 251 252 252 const _C__NSIG = 0x80 253 254 const ( 255 SIG_BLOCK = 0x1 256 SIG_UNBLOCK = 0x2 257 SIG_SETMASK = 0x3 258 ) 253 259 254 260 type Siginfo struct { -
trunk/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go
r67 r69 1 // cgo -godefs - - -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go1 // cgo -godefs -objdir=/tmp/mipsle/cgo -- -Wall -Werror -static -I/tmp/mipsle/include linux/types.go | go run mkpost.go 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 250 250 251 251 const _C__NSIG = 0x80 252 253 const ( 254 SIG_BLOCK = 0x1 255 SIG_UNBLOCK = 0x2 256 SIG_SETMASK = 0x3 257 ) 252 258 253 259 type Siginfo struct { -
trunk/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go
r67 r69 1 // cgo -godefs - - -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go1 // cgo -godefs -objdir=/tmp/ppc/cgo -- -Wall -Werror -static -I/tmp/ppc/include linux/types.go | go run mkpost.go 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 257 257 258 258 const _C__NSIG = 0x41 259 260 const ( 261 SIG_BLOCK = 0x0 262 SIG_UNBLOCK = 0x1 263 SIG_SETMASK = 0x2 264 ) 259 265 260 266 type Siginfo struct { -
trunk/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go
r67 r69 1 // cgo -godefs - - -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go1 // cgo -godefs -objdir=/tmp/ppc64/cgo -- -Wall -Werror -static -I/tmp/ppc64/include linux/types.go | go run mkpost.go 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 258 258 259 259 const _C__NSIG = 0x41 260 261 const ( 262 SIG_BLOCK = 0x0 263 SIG_UNBLOCK = 0x1 264 SIG_SETMASK = 0x2 265 ) 260 266 261 267 type Siginfo struct { -
trunk/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go
r67 r69 1 // cgo -godefs - - -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go1 // cgo -godefs -objdir=/tmp/ppc64le/cgo -- -Wall -Werror -static -I/tmp/ppc64le/include linux/types.go | go run mkpost.go 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 258 258 259 259 const _C__NSIG = 0x41 260 261 const ( 262 SIG_BLOCK = 0x0 263 SIG_UNBLOCK = 0x1 264 SIG_SETMASK = 0x2 265 ) 260 266 261 267 type Siginfo struct { -
trunk/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go
r67 r69 1 // cgo -godefs - - -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go1 // cgo -godefs -objdir=/tmp/riscv64/cgo -- -Wall -Werror -static -I/tmp/riscv64/include linux/types.go | go run mkpost.go 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 276 276 277 277 const _C__NSIG = 0x41 278 279 const ( 280 SIG_BLOCK = 0x0 281 SIG_UNBLOCK = 0x1 282 SIG_SETMASK = 0x2 283 ) 278 284 279 285 type Siginfo struct { -
trunk/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go
r67 r69 1 // cgo -godefs - - -Wall -Werror -static -I/tmp/include -fsigned-char linux/types.go | go run mkpost.go1 // cgo -godefs -objdir=/tmp/s390x/cgo -- -Wall -Werror -static -I/tmp/s390x/include -fsigned-char linux/types.go | go run mkpost.go 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 271 271 272 272 const _C__NSIG = 0x41 273 274 const ( 275 SIG_BLOCK = 0x0 276 SIG_UNBLOCK = 0x1 277 SIG_SETMASK = 0x2 278 ) 273 279 274 280 type Siginfo struct { -
trunk/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go
r67 r69 1 // cgo -godefs - - -Wall -Werror -static -I/tmp/include linux/types.go | go run mkpost.go1 // cgo -godefs -objdir=/tmp/sparc64/cgo -- -Wall -Werror -static -I/tmp/sparc64/include linux/types.go | go run mkpost.go 2 2 // Code generated by the command above; see README.md. DO NOT EDIT. 3 3 … … 253 253 254 254 const _C__NSIG = 0x41 255 256 const ( 257 SIG_BLOCK = 0x1 258 SIG_UNBLOCK = 0x2 259 SIG_SETMASK = 0x4 260 ) 255 261 256 262 type Siginfo struct { -
trunk/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go
r67 r69 481 481 FILE_EXCEPTION = 0x60000070 482 482 ) 483 484 const ( 485 TUNNEWPPA = 0x540001 486 TUNSETPPA = 0x540002 487 488 I_STR = 0x5308 489 I_POP = 0x5303 490 I_PUSH = 0x5302 491 I_LINK = 0x530c 492 I_UNLINK = 0x530d 493 I_PLINK = 0x5316 494 I_PUNLINK = 0x5317 495 496 IF_UNITSEL = -0x7ffb8cca 497 ) 498 499 type strbuf struct { 500 Maxlen int32 501 Len int32 502 Buf *int8 503 } 504 505 type Strioctl struct { 506 Cmd int32 507 Timout int32 508 Len int32 509 Dp *int8 510 } 511 512 type Lifreq struct { 513 Name [32]int8 514 Lifru1 [4]byte 515 Type uint32 516 Lifru [336]byte 517 } -
trunk/vendor/golang.org/x/sys/windows/setupapi_windows.go
r67 r69 297 297 DI_INF_IS_SORTED DI_FLAGS = 0x00008000 298 298 299 // Flag to indicate that only the theINF specified by SP_DEVINSTALL_PARAMS.DriverPath should be searched.299 // Flag to indicate that only the INF specified by SP_DEVINSTALL_PARAMS.DriverPath should be searched. 300 300 DI_ENUMSINGLEINF DI_FLAGS = 0x00010000 301 301 -
trunk/vendor/golang.org/x/sys/windows/syscall.go
r67 r69 31 31 "syscall" 32 32 "unsafe" 33 34 "golang.org/x/sys/internal/unsafeheader"35 33 ) 36 34 … … 84 82 } 85 83 86 var s []byte 87 h := (*unsafeheader.Slice)(unsafe.Pointer(&s)) 88 h.Data = unsafe.Pointer(p) 89 h.Len = n 90 h.Cap = n 91 92 return string(s) 84 return string(unsafe.Slice(p, n)) 93 85 } 94 86 -
trunk/vendor/golang.org/x/sys/windows/syscall_windows.go
r67 r69 139 139 } 140 140 141 var s []uint16 142 h := (*unsafeheader.Slice)(unsafe.Pointer(&s)) 143 h.Data = unsafe.Pointer(p) 144 h.Len = n 145 h.Cap = n 146 147 return string(utf16.Decode(s)) 141 return string(utf16.Decode(unsafe.Slice(p, n))) 148 142 } 149 143 … … 365 359 //sys GetActiveProcessorCount(groupNumber uint16) (ret uint32) 366 360 //sys GetMaximumProcessorCount(groupNumber uint16) (ret uint32) 361 //sys EnumWindows(enumFunc uintptr, param unsafe.Pointer) (err error) = user32.EnumWindows 362 //sys EnumChildWindows(hwnd HWND, enumFunc uintptr, param unsafe.Pointer) = user32.EnumChildWindows 363 //sys GetClassName(hwnd HWND, className *uint16, maxCount int32) (copied int32, err error) = user32.GetClassNameW 364 //sys GetDesktopWindow() (hwnd HWND) = user32.GetDesktopWindow 365 //sys GetForegroundWindow() (hwnd HWND) = user32.GetForegroundWindow 366 //sys IsWindow(hwnd HWND) (isWindow bool) = user32.IsWindow 367 //sys IsWindowUnicode(hwnd HWND) (isUnicode bool) = user32.IsWindowUnicode 368 //sys IsWindowVisible(hwnd HWND) (isVisible bool) = user32.IsWindowVisible 369 //sys GetGUIThreadInfo(thread uint32, info *GUIThreadInfo) (err error) = user32.GetGUIThreadInfo 367 370 368 371 // Volume Management Functions … … 418 421 //sys GetModuleFileNameEx(process Handle, module Handle, filename *uint16, size uint32) (err error) = psapi.GetModuleFileNameExW 419 422 //sys GetModuleBaseName(process Handle, module Handle, baseName *uint16, size uint32) (err error) = psapi.GetModuleBaseNameW 423 //sys QueryWorkingSetEx(process Handle, pv uintptr, cb uint32) (err error) = psapi.QueryWorkingSetEx 420 424 421 425 // NT Native APIs … … 439 443 //sys RtlDeleteFunctionTable(functionTable *RUNTIME_FUNCTION) (ret bool) = ntdll.RtlDeleteFunctionTable 440 444 445 // Desktop Window Manager API (Dwmapi) 446 //sys DwmGetWindowAttribute(hwnd HWND, attribute uint32, value unsafe.Pointer, size uint32) (ret error) = dwmapi.DwmGetWindowAttribute 447 //sys DwmSetWindowAttribute(hwnd HWND, attribute uint32, value unsafe.Pointer, size uint32) (ret error) = dwmapi.DwmSetWindowAttribute 448 441 449 // syscall interface implementation for other packages 442 450 … … 748 756 return e 749 757 } 750 defer Close (h)758 defer CloseHandle(h) 751 759 a := NsecToFiletime(tv[0].Nanoseconds()) 752 760 w := NsecToFiletime(tv[1].Nanoseconds()) … … 768 776 return e 769 777 } 770 defer Close (h)778 defer CloseHandle(h) 771 779 a := NsecToFiletime(TimespecToNsec(ts[0])) 772 780 w := NsecToFiletime(TimespecToNsec(ts[1])) … … 972 980 } 973 981 982 type RawSockaddrBth struct { 983 AddressFamily [2]byte 984 BtAddr [8]byte 985 ServiceClassId [16]byte 986 Port [4]byte 987 } 988 989 type SockaddrBth struct { 990 BtAddr uint64 991 ServiceClassId GUID 992 Port uint32 993 994 raw RawSockaddrBth 995 } 996 997 func (sa *SockaddrBth) sockaddr() (unsafe.Pointer, int32, error) { 998 family := AF_BTH 999 sa.raw = RawSockaddrBth{ 1000 AddressFamily: *(*[2]byte)(unsafe.Pointer(&family)), 1001 BtAddr: *(*[8]byte)(unsafe.Pointer(&sa.BtAddr)), 1002 Port: *(*[4]byte)(unsafe.Pointer(&sa.Port)), 1003 ServiceClassId: *(*[16]byte)(unsafe.Pointer(&sa.ServiceClassId)), 1004 } 1005 return unsafe.Pointer(&sa.raw), int32(unsafe.Sizeof(sa.raw)), nil 1006 } 1007 974 1008 func (rsa *RawSockaddrAny) Sockaddr() (Sockaddr, error) { 975 1009 switch rsa.Addr.Family { … … 1082 1116 1083 1117 func WSASendto(s Handle, bufs *WSABuf, bufcnt uint32, sent *uint32, flags uint32, to Sockaddr, overlapped *Overlapped, croutine *byte) (err error) { 1084 rsa, l, err := to.sockaddr() 1085 if err != nil { 1086 return err 1118 var rsa unsafe.Pointer 1119 var l int32 1120 if to != nil { 1121 rsa, l, err = to.sockaddr() 1122 if err != nil { 1123 return err 1124 } 1087 1125 } 1088 1126 return WSASendTo(s, bufs, bufcnt, sent, flags, (*RawSockaddrAny)(unsafe.Pointer(rsa)), l, overlapped, croutine) … … 1708 1746 return 1709 1747 } 1748 1749 // PSAPI_WORKING_SET_EX_BLOCK contains extended working set information for a page. 1750 type PSAPI_WORKING_SET_EX_BLOCK uint64 1751 1752 // Valid returns the validity of this page. 1753 // If this bit is 1, the subsequent members are valid; otherwise they should be ignored. 1754 func (b PSAPI_WORKING_SET_EX_BLOCK) Valid() bool { 1755 return (b & 1) == 1 1756 } 1757 1758 // ShareCount is the number of processes that share this page. The maximum value of this member is 7. 1759 func (b PSAPI_WORKING_SET_EX_BLOCK) ShareCount() uint64 { 1760 return b.intField(1, 3) 1761 } 1762 1763 // Win32Protection is the memory protection attributes of the page. For a list of values, see 1764 // https://docs.microsoft.com/en-us/windows/win32/memory/memory-protection-constants 1765 func (b PSAPI_WORKING_SET_EX_BLOCK) Win32Protection() uint64 { 1766 return b.intField(4, 11) 1767 } 1768 1769 // Shared returns the shared status of this page. 1770 // If this bit is 1, the page can be shared. 1771 func (b PSAPI_WORKING_SET_EX_BLOCK) Shared() bool { 1772 return (b & (1 << 15)) == 1 1773 } 1774 1775 // Node is the NUMA node. The maximum value of this member is 63. 1776 func (b PSAPI_WORKING_SET_EX_BLOCK) Node() uint64 { 1777 return b.intField(16, 6) 1778 } 1779 1780 // Locked returns the locked status of this page. 1781 // If this bit is 1, the virtual page is locked in physical memory. 1782 func (b PSAPI_WORKING_SET_EX_BLOCK) Locked() bool { 1783 return (b & (1 << 22)) == 1 1784 } 1785 1786 // LargePage returns the large page status of this page. 1787 // If this bit is 1, the page is a large page. 1788 func (b PSAPI_WORKING_SET_EX_BLOCK) LargePage() bool { 1789 return (b & (1 << 23)) == 1 1790 } 1791 1792 // Bad returns the bad status of this page. 1793 // If this bit is 1, the page is has been reported as bad. 1794 func (b PSAPI_WORKING_SET_EX_BLOCK) Bad() bool { 1795 return (b & (1 << 31)) == 1 1796 } 1797 1798 // intField extracts an integer field in the PSAPI_WORKING_SET_EX_BLOCK union. 1799 func (b PSAPI_WORKING_SET_EX_BLOCK) intField(start, length int) uint64 { 1800 var mask PSAPI_WORKING_SET_EX_BLOCK 1801 for pos := start; pos < start+length; pos++ { 1802 mask |= (1 << pos) 1803 } 1804 1805 masked := b & mask 1806 return uint64(masked >> start) 1807 } 1808 1809 // PSAPI_WORKING_SET_EX_INFORMATION contains extended working set information for a process. 1810 type PSAPI_WORKING_SET_EX_INFORMATION struct { 1811 // The virtual address. 1812 VirtualAddress Pointer 1813 // A PSAPI_WORKING_SET_EX_BLOCK union that indicates the attributes of the page at VirtualAddress. 1814 VirtualAttributes PSAPI_WORKING_SET_EX_BLOCK 1815 } -
trunk/vendor/golang.org/x/sys/windows/types_windows.go
r67 r69 3214 3214 3215 3215 const ALL_PROCESSOR_GROUPS = 0xFFFF 3216 3217 type Rect struct { 3218 Left int32 3219 Top int32 3220 Right int32 3221 Bottom int32 3222 } 3223 3224 type GUIThreadInfo struct { 3225 Size uint32 3226 Flags uint32 3227 Active HWND 3228 Focus HWND 3229 Capture HWND 3230 MenuOwner HWND 3231 MoveSize HWND 3232 CaretHandle HWND 3233 CaretRect Rect 3234 } 3235 3236 const ( 3237 DWMWA_NCRENDERING_ENABLED = 1 3238 DWMWA_NCRENDERING_POLICY = 2 3239 DWMWA_TRANSITIONS_FORCEDISABLED = 3 3240 DWMWA_ALLOW_NCPAINT = 4 3241 DWMWA_CAPTION_BUTTON_BOUNDS = 5 3242 DWMWA_NONCLIENT_RTL_LAYOUT = 6 3243 DWMWA_FORCE_ICONIC_REPRESENTATION = 7 3244 DWMWA_FLIP3D_POLICY = 8 3245 DWMWA_EXTENDED_FRAME_BOUNDS = 9 3246 DWMWA_HAS_ICONIC_BITMAP = 10 3247 DWMWA_DISALLOW_PEEK = 11 3248 DWMWA_EXCLUDED_FROM_PEEK = 12 3249 DWMWA_CLOAK = 13 3250 DWMWA_CLOAKED = 14 3251 DWMWA_FREEZE_REPRESENTATION = 15 3252 DWMWA_PASSIVE_UPDATE_MODE = 16 3253 DWMWA_USE_HOSTBACKDROPBRUSH = 17 3254 DWMWA_USE_IMMERSIVE_DARK_MODE = 20 3255 DWMWA_WINDOW_CORNER_PREFERENCE = 33 3256 DWMWA_BORDER_COLOR = 34 3257 DWMWA_CAPTION_COLOR = 35 3258 DWMWA_TEXT_COLOR = 36 3259 DWMWA_VISIBLE_FRAME_BORDER_THICKNESS = 37 3260 ) -
trunk/vendor/golang.org/x/sys/windows/zsyscall_windows.go
r67 r69 41 41 modcrypt32 = NewLazySystemDLL("crypt32.dll") 42 42 moddnsapi = NewLazySystemDLL("dnsapi.dll") 43 moddwmapi = NewLazySystemDLL("dwmapi.dll") 43 44 modiphlpapi = NewLazySystemDLL("iphlpapi.dll") 44 45 modkernel32 = NewLazySystemDLL("kernel32.dll") … … 176 177 procDnsQuery_W = moddnsapi.NewProc("DnsQuery_W") 177 178 procDnsRecordListFree = moddnsapi.NewProc("DnsRecordListFree") 179 procDwmGetWindowAttribute = moddwmapi.NewProc("DwmGetWindowAttribute") 180 procDwmSetWindowAttribute = moddwmapi.NewProc("DwmSetWindowAttribute") 178 181 procGetAdaptersAddresses = modiphlpapi.NewProc("GetAdaptersAddresses") 179 182 procGetAdaptersInfo = modiphlpapi.NewProc("GetAdaptersInfo") … … 409 412 procGetModuleFileNameExW = modpsapi.NewProc("GetModuleFileNameExW") 410 413 procGetModuleInformation = modpsapi.NewProc("GetModuleInformation") 414 procQueryWorkingSetEx = modpsapi.NewProc("QueryWorkingSetEx") 411 415 procSubscribeServiceChangeNotifications = modsechost.NewProc("SubscribeServiceChangeNotifications") 412 416 procUnsubscribeServiceChangeNotifications = modsechost.NewProc("UnsubscribeServiceChangeNotifications") … … 444 448 procSHGetKnownFolderPath = modshell32.NewProc("SHGetKnownFolderPath") 445 449 procShellExecuteW = modshell32.NewProc("ShellExecuteW") 450 procEnumChildWindows = moduser32.NewProc("EnumChildWindows") 451 procEnumWindows = moduser32.NewProc("EnumWindows") 446 452 procExitWindowsEx = moduser32.NewProc("ExitWindowsEx") 453 procGetClassNameW = moduser32.NewProc("GetClassNameW") 454 procGetDesktopWindow = moduser32.NewProc("GetDesktopWindow") 455 procGetForegroundWindow = moduser32.NewProc("GetForegroundWindow") 456 procGetGUIThreadInfo = moduser32.NewProc("GetGUIThreadInfo") 447 457 procGetShellWindow = moduser32.NewProc("GetShellWindow") 448 458 procGetWindowThreadProcessId = moduser32.NewProc("GetWindowThreadProcessId") 459 procIsWindow = moduser32.NewProc("IsWindow") 460 procIsWindowUnicode = moduser32.NewProc("IsWindowUnicode") 461 procIsWindowVisible = moduser32.NewProc("IsWindowVisible") 449 462 procMessageBoxW = moduser32.NewProc("MessageBoxW") 450 463 procCreateEnvironmentBlock = moduserenv.NewProc("CreateEnvironmentBlock") … … 1525 1538 } 1526 1539 1540 func DwmGetWindowAttribute(hwnd HWND, attribute uint32, value unsafe.Pointer, size uint32) (ret error) { 1541 r0, _, _ := syscall.Syscall6(procDwmGetWindowAttribute.Addr(), 4, uintptr(hwnd), uintptr(attribute), uintptr(value), uintptr(size), 0, 0) 1542 if r0 != 0 { 1543 ret = syscall.Errno(r0) 1544 } 1545 return 1546 } 1547 1548 func DwmSetWindowAttribute(hwnd HWND, attribute uint32, value unsafe.Pointer, size uint32) (ret error) { 1549 r0, _, _ := syscall.Syscall6(procDwmSetWindowAttribute.Addr(), 4, uintptr(hwnd), uintptr(attribute), uintptr(value), uintptr(size), 0, 0) 1550 if r0 != 0 { 1551 ret = syscall.Errno(r0) 1552 } 1553 return 1554 } 1555 1527 1556 func GetAdaptersAddresses(family uint32, flags uint32, reserved uintptr, adapterAddresses *IpAdapterAddresses, sizePointer *uint32) (errcode error) { 1528 1557 r0, _, _ := syscall.Syscall6(procGetAdaptersAddresses.Addr(), 5, uintptr(family), uintptr(flags), uintptr(reserved), uintptr(unsafe.Pointer(adapterAddresses)), uintptr(unsafe.Pointer(sizePointer)), 0) … … 3505 3534 } 3506 3535 3536 func QueryWorkingSetEx(process Handle, pv uintptr, cb uint32) (err error) { 3537 r1, _, e1 := syscall.Syscall(procQueryWorkingSetEx.Addr(), 3, uintptr(process), uintptr(pv), uintptr(cb)) 3538 if r1 == 0 { 3539 err = errnoErr(e1) 3540 } 3541 return 3542 } 3543 3507 3544 func SubscribeServiceChangeNotifications(service Handle, eventType uint32, callback uintptr, callbackCtx uintptr, subscription *uintptr) (ret error) { 3508 3545 ret = procSubscribeServiceChangeNotifications.Find() … … 3794 3831 } 3795 3832 3833 func EnumChildWindows(hwnd HWND, enumFunc uintptr, param unsafe.Pointer) { 3834 syscall.Syscall(procEnumChildWindows.Addr(), 3, uintptr(hwnd), uintptr(enumFunc), uintptr(param)) 3835 return 3836 } 3837 3838 func EnumWindows(enumFunc uintptr, param unsafe.Pointer) (err error) { 3839 r1, _, e1 := syscall.Syscall(procEnumWindows.Addr(), 2, uintptr(enumFunc), uintptr(param), 0) 3840 if r1 == 0 { 3841 err = errnoErr(e1) 3842 } 3843 return 3844 } 3845 3796 3846 func ExitWindowsEx(flags uint32, reason uint32) (err error) { 3797 3847 r1, _, e1 := syscall.Syscall(procExitWindowsEx.Addr(), 2, uintptr(flags), uintptr(reason), 0) 3848 if r1 == 0 { 3849 err = errnoErr(e1) 3850 } 3851 return 3852 } 3853 3854 func GetClassName(hwnd HWND, className *uint16, maxCount int32) (copied int32, err error) { 3855 r0, _, e1 := syscall.Syscall(procGetClassNameW.Addr(), 3, uintptr(hwnd), uintptr(unsafe.Pointer(className)), uintptr(maxCount)) 3856 copied = int32(r0) 3857 if copied == 0 { 3858 err = errnoErr(e1) 3859 } 3860 return 3861 } 3862 3863 func GetDesktopWindow() (hwnd HWND) { 3864 r0, _, _ := syscall.Syscall(procGetDesktopWindow.Addr(), 0, 0, 0, 0) 3865 hwnd = HWND(r0) 3866 return 3867 } 3868 3869 func GetForegroundWindow() (hwnd HWND) { 3870 r0, _, _ := syscall.Syscall(procGetForegroundWindow.Addr(), 0, 0, 0, 0) 3871 hwnd = HWND(r0) 3872 return 3873 } 3874 3875 func GetGUIThreadInfo(thread uint32, info *GUIThreadInfo) (err error) { 3876 r1, _, e1 := syscall.Syscall(procGetGUIThreadInfo.Addr(), 2, uintptr(thread), uintptr(unsafe.Pointer(info)), 0) 3798 3877 if r1 == 0 { 3799 3878 err = errnoErr(e1) … … 3814 3893 err = errnoErr(e1) 3815 3894 } 3895 return 3896 } 3897 3898 func IsWindow(hwnd HWND) (isWindow bool) { 3899 r0, _, _ := syscall.Syscall(procIsWindow.Addr(), 1, uintptr(hwnd), 0, 0) 3900 isWindow = r0 != 0 3901 return 3902 } 3903 3904 func IsWindowUnicode(hwnd HWND) (isUnicode bool) { 3905 r0, _, _ := syscall.Syscall(procIsWindowUnicode.Addr(), 1, uintptr(hwnd), 0, 0) 3906 isUnicode = r0 != 0 3907 return 3908 } 3909 3910 func IsWindowVisible(hwnd HWND) (isVisible bool) { 3911 r0, _, _ := syscall.Syscall(procIsWindowVisible.Addr(), 1, uintptr(hwnd), 0, 0) 3912 isVisible = r0 != 0 3816 3913 return 3817 3914 }
Note:
See TracChangeset
for help on using the changeset viewer.