Changeset 69 in code for trunk/vendor/golang.org/x/sys/unix


Ignore:
Timestamp:
Sep 13, 2023, 10:49:50 AM (21 months ago)
Author:
Izuru Yakumo
Message:

Ready to release 0.6.0

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

Location:
trunk/vendor/golang.org/x/sys/unix
Files:
20 added
8 deleted
114 edited

Legend:

Unmodified
Added
Removed
  • trunk/vendor/golang.org/x/sys/unix/ioctl_linux.go

    r67 r69  
    55package unix
    66
    7 import (
    8         "unsafe"
    9 )
     7import "unsafe"
    108
    119// IoctlRetInt performs an ioctl operation specified by req on a device
     
    218216        return ioctlPtr(fd, SIOCKCMUNATTACH, unsafe.Pointer(&info))
    219217}
     218
     219// IoctlLoopGetStatus64 gets the status of the loop device associated with the
     220// file descriptor fd using the LOOP_GET_STATUS64 operation.
     221func 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.
     231func 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  
    7474        mkerrors="$mkerrors -m64"
    7575        mktypes="GOARCH=$GOARCH go tool cgo -godefs"
    76         mkasm="go run mkasm_darwin.go"
     76        mkasm="go run mkasm.go"
    7777        ;;
    7878darwin_arm64)
    7979        mkerrors="$mkerrors -m64"
    8080        mktypes="GOARCH=$GOARCH go tool cgo -godefs"
    81         mkasm="go run mkasm_darwin.go"
     81        mkasm="go run mkasm.go"
    8282        ;;
    8383dragonfly_amd64)
     
    143143        ;;
    144144openbsd_386)
     145        mkasm="go run mkasm.go"
    145146        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        ;;
     151openbsd_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        ;;
     158openbsd_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        ;;
     167openbsd_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        ;;
     176openbsd_mips64)
     177        mkerrors="$mkerrors -m64"
     178        mksyscall="go run mksyscall.go -openbsd"
    147179        mksysctl="go run mksysctl_openbsd.go"
    148180        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        ;;
     185openbsd_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        ;;
     194openbsd_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"
    181199        # Let the type of C char be signed for making the bare syscall
    182200        # API consistent across platforms.
     
    215233                                # aix/ppc64 script generates files instead of writing to stdin.
    216234                                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" ]; then
    218                                 # 1.12 and later, syscalls via libSystem
    219                                 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";
    222235                        elif [ "$GOOS" == "illumos" ]; then
    223236                                # illumos code generation requires a --illumos switch
     
    233246        if [ -n "$mksysnum" ]; then echo "$mksysnum |gofmt >zsysnum_$GOOSARCH.go"; fi
    234247        if [ -n "$mktypes" ]; then echo "$mktypes types_$GOOS.go | go run mkpost.go > ztypes_$GOOSARCH.go"; fi
    235         if [ -n "$mkasm" ]; then echo "$mkasm $GOARCH"; fi
     248        if [ -n "$mkasm" ]; then echo "$mkasm $GOOS $GOARCH"; fi
    236249) | $run
  • trunk/vendor/golang.org/x/sys/unix/mkerrors.sh

    r67 r69  
    296296#ifndef SOL_NETLINK
    297297#define SOL_NETLINK     270
     298#endif
     299
     300#ifndef SOL_SMC
     301#define SOL_SMC 286
    298302#endif
    299303
     
    639643        echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
    640644        awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
    641         egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' |
     645        grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' |
    642646        sort
    643647)
     
    649653echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
    650654        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' |
    652656        sort >_signal.grep
    653657
  • trunk/vendor/golang.org/x/sys/unix/syscall.go

    r67 r69  
    3030        "strings"
    3131        "unsafe"
    32 
    33         "golang.org/x/sys/internal/unsafeheader"
    3432)
    3533
     
    8381        }
    8482
    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))
    9284}
    9385
  • trunk/vendor/golang.org/x/sys/unix/syscall_aix.go

    r67 r69  
    219219
    220220func 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
    223246}
    224247
    225248func 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
    228277}
    229278
  • trunk/vendor/golang.org/x/sys/unix/syscall_bsd.go

    r67 r69  
    364364        if len(oob) > 0 {
    365365                // send at least one normal byte
    366                 empty := emptyIovecs(iov)
     366                empty = emptyIovecs(iov)
    367367                if empty {
    368368                        var iova [1]Iovec
  • trunk/vendor/golang.org/x/sys/unix/syscall_darwin.go

    r67 r69  
    1919        "unsafe"
    2020)
     21
     22//sys   closedir(dir uintptr) (err error)
     23//sys   readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno)
     24
     25func 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
     34var libc_fdopendir_trampoline_addr uintptr
     35
     36//go:cgo_import_dynamic libc_fdopendir fdopendir "/usr/lib/libSystem.B.dylib"
     37
     38func 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}
    21111
    22112// SockaddrDatalink implements the Sockaddr interface for AF_LINK type sockets.
  • trunk/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go

    r67 r69  
    6262
    6363func 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)}
    6565        err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
    6666        return int(ioDesc.Len), err
  • trunk/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go

    r67 r69  
    6262
    6363func 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)}
    6565        err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
    6666        return int(ioDesc.Len), err
  • trunk/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go

    r67 r69  
    5858
    5959func 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)}
    6161        err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
    6262        return int(ioDesc.Len), err
  • trunk/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go

    r67 r69  
    5858
    5959func 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)}
    6161        err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
    6262        return int(ioDesc.Len), err
  • trunk/vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go

    r67 r69  
    5858
    5959func 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)}
    6161        err = ptrace(PT_IO, pid, uintptr(unsafe.Pointer(&ioDesc)), 0)
    6262        return int(ioDesc.Len), err
  • trunk/vendor/golang.org/x/sys/unix/syscall_illumos.go

    r67 r69  
    1111
    1212import (
    13         "fmt"
    14         "runtime"
    1513        "unsafe"
    1614)
     
    8078        return
    8179}
    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 *strbuf
    87         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 *strbuf
    106         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, err
    121         }
    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, nil
    130 }
    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 err
    142 }
    143 
    144 // Lifreq Helpers
    145 
    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 nil
    154 }
    155 
    156 func (l *Lifreq) SetLifruInt(d int) {
    157         *(*int)(unsafe.Pointer(&l.Lifru[0])) = d
    158 }
    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])) = d
    166 }
    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 Helpers
    177 
    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  
    1414import (
    1515        "encoding/binary"
     16        "strconv"
    1617        "syscall"
    1718        "time"
     
    234235        // Believe it or not, this is the best we can do on Linux
    235236        // (and is what glibc does).
    236         return Utimes("/proc/self/fd/"+itoa(fd), tv)
     237        return Utimes("/proc/self/fd/"+strconv.Itoa(fd), tv)
    237238}
    238239
     
    15421543        var empty bool
    15431544        if len(oob) > 0 {
    1544                 empty := emptyIovecs(iov)
     1545                empty = emptyIovecs(iov)
    15451546                if empty {
    15461547                        var sockType int
     
    18921893}
    18931894
    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 error
    1897 // here rather than letting the caller think that the call succeeded.
    1898 
    18991895func 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
     1899func Setgid(gid int) (err error) {
     1900        return syscall.Setgid(gid)
     1901}
     1902
     1903func Setreuid(ruid, euid int) (err error) {
     1904        return syscall.Setreuid(ruid, euid)
     1905}
     1906
     1907func Setregid(rgid, egid int) (err error) {
     1908        return syscall.Setregid(rgid, egid)
     1909}
     1910
     1911func Setresuid(ruid, euid, suid int) (err error) {
     1912        return syscall.Setresuid(ruid, euid, suid)
     1913}
     1914
     1915func Setresgid(rgid, egid, sgid int) (err error) {
     1916        return syscall.Setresgid(rgid, egid, sgid)
    19051917}
    19061918
     
    22412253                return nil
    22422254        }
    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)
    22442256}
    22452257
     
    23552367
    23562368        return prev, nil
     2369}
     2370
     2371//sysnb rtSigprocmask(how int, set *Sigset_t, oldset *Sigset_t, sigsetsize uintptr) (err error) = SYS_RT_SIGPROCMASK
     2372
     2373func 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)
    23572379}
    23582380
     
    24152437// RtSigaction
    24162438// RtSigpending
    2417 // RtSigprocmask
    24182439// RtSigqueueinfo
    24192440// RtSigreturn
  • trunk/vendor/golang.org/x/sys/unix/syscall_linux_386.go

    r67 r69  
    4242//sys   setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32
    4343//sys   setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32
    44 //sysnb Setregid(rgid int, egid int) (err error) = SYS_SETREGID32
    45 //sysnb Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32
    46 //sysnb Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID32
    47 //sysnb Setreuid(ruid int, euid int) (err error) = SYS_SETREUID32
    4844//sys   Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error)
    4945//sys   Stat(path string, stat *Stat_t) (err error) = SYS_STAT64
  • trunk/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go

    r67 r69  
    4747//sys   setfsgid(gid int) (prev int, err error)
    4848//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)
    5249//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
    53 //sysnb Setreuid(ruid int, euid int) (err error)
    5450//sys   Shutdown(fd int, how int) (err error)
    5551//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  
    6363//sys   setfsgid(gid int) (prev int, err error) = SYS_SETFSGID32
    6464//sys   setfsuid(uid int) (prev int, err error) = SYS_SETFSUID32
    65 //sysnb Setregid(rgid int, egid int) (err error) = SYS_SETREGID32
    66 //sysnb Setresgid(rgid int, egid int, sgid int) (err error) = SYS_SETRESGID32
    67 //sysnb Setresuid(ruid int, euid int, suid int) (err error) = SYS_SETRESUID32
    68 //sysnb Setreuid(ruid int, euid int) (err error) = SYS_SETREUID32
    6965//sys   Shutdown(fd int, how int) (err error)
    7066//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  
    4040//sys   setfsgid(gid int) (prev int, err error)
    4141//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)
    4542//sysnb setrlimit(resource int, rlim *Rlimit) (err error)
    46 //sysnb Setreuid(ruid int, euid int) (err error)
    4743//sys   Shutdown(fd int, how int) (err error)
    4844//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  
    3535//sys   setfsgid(gid int) (prev int, err error)
    3636//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)
    4137//sys   Shutdown(fd int, how int) (err error)
    4238//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  
    3838//sys   setfsgid(gid int) (prev int, err error)
    3939//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)
    4340//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
    44 //sysnb Setreuid(ruid int, euid int) (err error)
    4541//sys   Shutdown(fd int, how int) (err error)
    4642//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  
    3333//sys   setfsgid(gid int) (prev int, err error)
    3434//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)
    3935//sys   Shutdown(fd int, how int) (err error)
    4036//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  
    3535//sys   setfsgid(gid int) (prev int, err error)
    3636//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)
    4137//sys   Shutdown(fd int, how int) (err error)
    4238//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  
    3535//sys   setfsgid(gid int) (prev int, err error)
    3636//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)
    4037//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
    41 //sysnb Setreuid(ruid int, euid int) (err error)
    4238//sys   Shutdown(fd int, how int) (err error)
    4339//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  
    3939//sys   setfsgid(gid int) (prev int, err error)
    4040//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)
    4441//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
    45 //sysnb Setreuid(ruid int, euid int) (err error)
    4642//sys   Shutdown(fd int, how int) (err error)
    4743//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  
    3535//sys   setfsgid(gid int) (prev int, err error)
    3636//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)
    4037//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
    41 //sysnb Setreuid(ruid int, euid int) (err error)
    4238//sys   Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
    4339//sys   Stat(path string, stat *Stat_t) (err error)
  • trunk/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go

    r67 r69  
    3232//sys   setfsgid(gid int) (prev int, err error)
    3333//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)
    3734//sysnb Setrlimit(resource int, rlim *Rlimit) (err error)
    38 //sysnb Setreuid(ruid int, euid int) (err error)
    3935//sys   Shutdown(fd int, how int) (err error)
    4036//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  
    751751        // reference to the cookie around until the event is processed
    752752        // thus the otherwise seemingly extraneous "cookies" map
    753         // The key of this map is a pointer to the corresponding &fCookie.cookie
    754         cookies map[*interface{}]*fileObjCookie
     753        // The key of this map is a pointer to the corresponding fCookie
     754        cookies map[*fileObjCookie]struct{}
    755755}
    756756
     
    779779                fds:     make(map[uintptr]*fileObjCookie),
    780780                paths:   make(map[string]*fileObjCookie),
    781                 cookies: make(map[*interface{}]*fileObjCookie),
     781                cookies: make(map[*fileObjCookie]struct{}),
    782782        }
    783783        return e, nil
     
    800800        e.fds = nil
    801801        e.paths = nil
     802        e.cookies = nil
    802803        return nil
    803804}
     
    827828                return fmt.Errorf("%v is already associated with this Event Port", path)
    828829        }
    829         fobj, err := createFileObj(path, stat)
     830        fCookie, err := createFileObjCookie(path, stat, cookie)
    830831        if err != nil {
    831832                return err
    832833        }
    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)))
    835835        if err != nil {
    836836                return err
    837837        }
    838838        e.paths[path] = fCookie
    839         e.cookies[&fCookie.cookie] = fCookie
     839        e.cookies[fCookie] = struct{}{}
    840840        return nil
    841841}
     
    859859                // dissociate was successful, safe to delete the cookie
    860860                fCookie := e.paths[path]
    861                 delete(e.cookies, &fCookie.cookie)
     861                delete(e.cookies, fCookie)
    862862        }
    863863        delete(e.paths, path)
     
    872872                return fmt.Errorf("%v is already associated with this Event Port", fd)
    873873        }
    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)
    876875        if err != nil {
    877876                return err
    878877        }
     878        _, err = port_associate(e.port, PORT_SOURCE_FD, fd, events, (*byte)(unsafe.Pointer(fCookie)))
     879        if err != nil {
     880                return err
     881        }
    879882        e.fds[fd] = fCookie
    880         e.cookies[&fCookie.cookie] = fCookie
     883        e.cookies[fCookie] = struct{}{}
    881884        return nil
    882885}
     
    897900                // dissociate was successful, safe to delete the cookie
    898901                fCookie := e.fds[fd]
    899                 delete(e.cookies, &fCookie.cookie)
     902                delete(e.cookies, fCookie)
    900903        }
    901904        delete(e.fds, fd)
     
    903906}
    904907
    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
     908func 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
    920927}
    921928
     
    930937        e.mu.Lock()
    931938        defer e.mu.Unlock()
    932         e.peIntToExt(pe, p)
     939        err = e.peIntToExt(pe, p)
     940        if err != nil {
     941                return nil, err
     942        }
    933943        return p, nil
    934944}
     
    936946// peIntToExt converts a cgo portEvent struct into the friendlier PortEvent
    937947// NOTE: Always call this function while holding the e.mu mutex
    938 func (e *EventPort) peIntToExt(peInt *portEvent, peExt *PortEvent) {
     948func (e *EventPort) peIntToExt(peInt *portEvent, peExt *PortEvent) error {
     949        if e.cookies == nil {
     950                return fmt.Errorf("this EventPort is already closed")
     951        }
    939952        peExt.Events = peInt.Events
    940953        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
    943963        switch peInt.Source {
    944964        case PORT_SOURCE_FD:
    945                 delete(e.cookies, cookie)
    946965                peExt.Fd = uintptr(peInt.Object)
    947966                // Only remove the fds entry if it exists and this cookie matches
    948967                if fobj, ok := e.fds[peExt.Fd]; ok {
    949                         if &fobj.cookie == cookie {
     968                        if fobj == fCookie {
    950969                                delete(e.fds, peExt.Fd)
    951970                        }
    952971                }
    953972        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
    962974                peExt.Path = BytePtrToString((*byte)(unsafe.Pointer(peExt.fobj.Name)))
    963975                // Only remove the paths entry if it exists and this cookie matches
    964976                if fobj, ok := e.paths[peExt.Path]; ok {
    965                         if &fobj.cookie == cookie {
     977                        if fobj == fCookie {
    966978                                delete(e.paths, peExt.Path)
    967979                        }
    968980                }
    969981        }
     982        return nil
    970983}
    971984
     
    9911004        max := uint32(len(s))
    9921005        var err error
    993         ps := make([]portEvent, max, max)
     1006        ps := make([]portEvent, max)
    9941007        _, err = port_getn(e.port, &ps[0], max, &got, timeout)
    9951008        // got will be trustworthy with ETIME, but not any other error.
     
    9991012        e.mu.Lock()
    10001013        defer e.mu.Unlock()
     1014        valid := 0
    10011015        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
     1032func 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
     1051func 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
     1079func IoctlSetIntRetInt(fd int, req uint, arg int) (int, error) {
     1080        return ioctlRet(fd, req, uintptr(arg))
     1081}
     1082
     1083func 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
     1093func (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
     1103func (l *Lifreq) SetLifruInt(d int) {
     1104        *(*int)(unsafe.Pointer(&l.Lifru[0])) = d
     1105}
     1106
     1107func (l *Lifreq) GetLifruInt() int {
     1108        return *(*int)(unsafe.Pointer(&l.Lifru[0]))
     1109}
     1110
     1111func (l *Lifreq) SetLifruUint(d uint) {
     1112        *(*uint)(unsafe.Pointer(&l.Lifru[0])) = d
     1113}
     1114
     1115func (l *Lifreq) GetLifruUint() uint {
     1116        return *(*uint)(unsafe.Pointer(&l.Lifru[0]))
     1117}
     1118
     1119func IoctlLifreq(fd int, req uint, l *Lifreq) error {
     1120        return ioctl(fd, req, uintptr(unsafe.Pointer(l)))
     1121}
     1122
     1123// Strioctl Helpers
     1124
     1125func (s *Strioctl) SetInt(i int) {
     1126        s.Len = int32(unsafe.Sizeof(i))
     1127        s.Dp = (*int8)(unsafe.Pointer(&i))
     1128}
     1129
     1130func 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  
    1414        "syscall"
    1515        "unsafe"
    16 
    17         "golang.org/x/sys/internal/unsafeheader"
    1816)
    1917
     
    118116
    119117        // 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)
    125119
    126120        // Register mapping in m and return it.
     
    430424
    431425func 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)
    437435}
    438436
  • trunk/vendor/golang.org/x/sys/unix/syscall_unix_gc.go

    r67 r69  
    33// license that can be found in the LICENSE file.
    44
    5 //go:build (darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris) && gc && !ppc64le && !ppc64
    6 // +build darwin dragonfly freebsd linux netbsd openbsd solaris
     5//go:build (darwin || dragonfly || freebsd || (linux && !ppc64 && !ppc64le) || netbsd || openbsd || solaris) && gc
     6// +build darwin dragonfly freebsd linux,!ppc64,!ppc64le netbsd openbsd solaris
    77// +build gc
    8 // +build !ppc64le
    9 // +build !ppc64
    108
    119package unix
  • trunk/vendor/golang.org/x/sys/unix/sysvshm_unix.go

    r67 r69  
    88package unix
    99
    10 import (
    11         "unsafe"
    12 
    13         "golang.org/x/sys/internal/unsafeheader"
    14 )
     10import "unsafe"
    1511
    1612// SysvShmAttach attaches the Sysv shared memory segment associated with the
     
    3531
    3632        // 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))
    4334        return b, nil
    4435}
  • trunk/vendor/golang.org/x/sys/unix/xattr_bsd.go

    r67 r69  
    161161
    162162func Listxattr(file string, dest []byte) (sz int, err error) {
    163         d := initxattrdest(dest, 0)
    164163        destsiz := len(dest)
    165164
    166165        // FreeBSD won't allow you to list xattrs from multiple namespaces
    167         s := 0
     166        s, pos := 0, 0
    168167        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:])
    170169
    171170                /* Errors accessing system attrs are ignored so that
     
    176175                 * we don't have read permissions on, so don't ignore those errors
    177176                 */
    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                        }
    181181                        return s, e
    182182                }
    183183
    184184                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
     194func 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
    190201        }
    191202
     
    194205
    195206func 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
    200210        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                        }
    205217                        return s, e
    206218                }
    207219
    208220                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
     230func 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
    214237        }
    215238
     
    218241
    219242func 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
    224246        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                        }
    229253                        return s, e
    230254                }
    231255
    232256                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
     266func 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  
    29412941        SOL_RDS                                     = 0x114
    29422942        SOL_RXRPC                                   = 0x110
     2943        SOL_SMC                                     = 0x11e
    29432944        SOL_TCP                                     = 0x6
    29442945        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 -m32
     1// mkerrors.sh -Wall -Werror -static -I/tmp/386/include -m32
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    66
    77// Code generated by cmd/cgo -godefs; DO NOT EDIT.
    8 // cgo -godefs -- -Wall -Werror -static -I/tmp/include -m32 _const.go
     8// cgo -godefs -- -Wall -Werror -static -I/tmp/386/include -m32 _const.go
    99
    1010package unix
  • trunk/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go

    r67 r69  
    1 // mkerrors.sh -Wall -Werror -static -I/tmp/include -m64
     1// mkerrors.sh -Wall -Werror -static -I/tmp/amd64/include -m64
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    66
    77// Code generated by cmd/cgo -godefs; DO NOT EDIT.
    8 // cgo -godefs -- -Wall -Werror -static -I/tmp/include -m64 _const.go
     8// cgo -godefs -- -Wall -Werror -static -I/tmp/amd64/include -m64 _const.go
    99
    1010package unix
  • trunk/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go

    r67 r69  
    1 // mkerrors.sh -Wall -Werror -static -I/tmp/include
     1// mkerrors.sh -Wall -Werror -static -I/tmp/arm/include
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    66
    77// Code generated by cmd/cgo -godefs; DO NOT EDIT.
    8 // cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
     8// cgo -godefs -- -Wall -Werror -static -I/tmp/arm/include _const.go
    99
    1010package unix
  • trunk/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go

    r67 r69  
    1 // mkerrors.sh -Wall -Werror -static -I/tmp/include -fsigned-char
     1// mkerrors.sh -Wall -Werror -static -I/tmp/arm64/include -fsigned-char
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    66
    77// Code generated by cmd/cgo -godefs; DO NOT EDIT.
    8 // cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char _const.go
     8// cgo -godefs -- -Wall -Werror -static -I/tmp/arm64/include -fsigned-char _const.go
    99
    1010package unix
  • trunk/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go

    r67 r69  
    1 // mkerrors.sh -Wall -Werror -static -I/tmp/include
     1// mkerrors.sh -Wall -Werror -static -I/tmp/loong64/include
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    66
    77// Code generated by cmd/cgo -godefs; DO NOT EDIT.
    8 // cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
     8// cgo -godefs -- -Wall -Werror -static -I/tmp/loong64/include _const.go
    99
    1010package unix
  • trunk/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go

    r67 r69  
    1 // mkerrors.sh -Wall -Werror -static -I/tmp/include
     1// mkerrors.sh -Wall -Werror -static -I/tmp/mips/include
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    66
    77// Code generated by cmd/cgo -godefs; DO NOT EDIT.
    8 // cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
     8// cgo -godefs -- -Wall -Werror -static -I/tmp/mips/include _const.go
    99
    1010package unix
  • trunk/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go

    r67 r69  
    1 // mkerrors.sh -Wall -Werror -static -I/tmp/include
     1// mkerrors.sh -Wall -Werror -static -I/tmp/mips64/include
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    66
    77// Code generated by cmd/cgo -godefs; DO NOT EDIT.
    8 // cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
     8// cgo -godefs -- -Wall -Werror -static -I/tmp/mips64/include _const.go
    99
    1010package unix
  • trunk/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go

    r67 r69  
    1 // mkerrors.sh -Wall -Werror -static -I/tmp/include
     1// mkerrors.sh -Wall -Werror -static -I/tmp/mips64le/include
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    66
    77// Code generated by cmd/cgo -godefs; DO NOT EDIT.
    8 // cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
     8// cgo -godefs -- -Wall -Werror -static -I/tmp/mips64le/include _const.go
    99
    1010package unix
  • trunk/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go

    r67 r69  
    1 // mkerrors.sh -Wall -Werror -static -I/tmp/include
     1// mkerrors.sh -Wall -Werror -static -I/tmp/mipsle/include
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    66
    77// Code generated by cmd/cgo -godefs; DO NOT EDIT.
    8 // cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
     8// cgo -godefs -- -Wall -Werror -static -I/tmp/mipsle/include _const.go
    99
    1010package unix
  • trunk/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go

    r67 r69  
    1 // mkerrors.sh -Wall -Werror -static -I/tmp/include
     1// mkerrors.sh -Wall -Werror -static -I/tmp/ppc/include
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    66
    77// Code generated by cmd/cgo -godefs; DO NOT EDIT.
    8 // cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
     8// cgo -godefs -- -Wall -Werror -static -I/tmp/ppc/include _const.go
    99
    1010package unix
  • trunk/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go

    r67 r69  
    1 // mkerrors.sh -Wall -Werror -static -I/tmp/include
     1// mkerrors.sh -Wall -Werror -static -I/tmp/ppc64/include
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    66
    77// Code generated by cmd/cgo -godefs; DO NOT EDIT.
    8 // cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
     8// cgo -godefs -- -Wall -Werror -static -I/tmp/ppc64/include _const.go
    99
    1010package unix
  • trunk/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go

    r67 r69  
    1 // mkerrors.sh -Wall -Werror -static -I/tmp/include
     1// mkerrors.sh -Wall -Werror -static -I/tmp/ppc64le/include
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    66
    77// Code generated by cmd/cgo -godefs; DO NOT EDIT.
    8 // cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
     8// cgo -godefs -- -Wall -Werror -static -I/tmp/ppc64le/include _const.go
    99
    1010package unix
  • trunk/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go

    r67 r69  
    1 // mkerrors.sh -Wall -Werror -static -I/tmp/include
     1// mkerrors.sh -Wall -Werror -static -I/tmp/riscv64/include
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    66
    77// Code generated by cmd/cgo -godefs; DO NOT EDIT.
    8 // cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
     8// cgo -godefs -- -Wall -Werror -static -I/tmp/riscv64/include _const.go
    99
    1010package unix
  • trunk/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go

    r67 r69  
    1 // mkerrors.sh -Wall -Werror -static -I/tmp/include -fsigned-char
     1// mkerrors.sh -Wall -Werror -static -I/tmp/s390x/include -fsigned-char
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    66
    77// Code generated by cmd/cgo -godefs; DO NOT EDIT.
    8 // cgo -godefs -- -Wall -Werror -static -I/tmp/include -fsigned-char _const.go
     8// cgo -godefs -- -Wall -Werror -static -I/tmp/s390x/include -fsigned-char _const.go
    99
    1010package unix
  • trunk/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go

    r67 r69  
    1 // mkerrors.sh -Wall -Werror -static -I/tmp/include
     1// mkerrors.sh -Wall -Werror -static -I/tmp/sparc64/include
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    66
    77// Code generated by cmd/cgo -godefs; DO NOT EDIT.
    8 // cgo -godefs -- -Wall -Werror -static -I/tmp/include _const.go
     8// cgo -godefs -- -Wall -Werror -static -I/tmp/sparc64/include _const.go
    99
    1010package unix
  • trunk/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go

    r67 r69  
    1 // go run mksyscall.go -tags darwin,amd64,go1.12 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go
     1// go run mksyscall.go -tags darwin,amd64 syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
    4 //go:build darwin && amd64 && go1.12
    5 // +build darwin,amd64,go1.12
     4//go:build darwin && amd64
     5// +build darwin,amd64
    66
    77package unix
     
    464464// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    465465
     466func 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
     474var 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
     480func 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
     486var 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
    466492func pipe(p *[2]int32) (err error) {
    467493        _, _, 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.go amd64
     1// go run mkasm.go darwin amd64
    22// Code generated by the command above; DO NOT EDIT.
    33
    4 //go:build go1.12
    5 // +build go1.12
    6 
    74#include "textflag.h"
     5
     6TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0
     7        JMP     libc_fdopendir(SB)
     8
     9GLOBL   ·libc_fdopendir_trampoline_addr(SB), RODATA, $8
     10DATA    ·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB)
    811
    912TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0
     
    175178DATA    ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB)
    176179
     180TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0
     181        JMP     libc_closedir(SB)
     182
     183GLOBL   ·libc_closedir_trampoline_addr(SB), RODATA, $8
     184DATA    ·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB)
     185
     186TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0
     187        JMP     libc_readdir_r(SB)
     188
     189GLOBL   ·libc_readdir_r_trampoline_addr(SB), RODATA, $8
     190DATA    ·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB)
     191
    177192TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0
    178193        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.12 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go
     1// go run mksyscall.go -tags darwin,arm64 syscall_bsd.go syscall_darwin.go syscall_darwin_arm64.go
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
    4 //go:build darwin && arm64 && go1.12
    5 // +build darwin,arm64,go1.12
     4//go:build darwin && arm64
     5// +build darwin,arm64
    66
    77package unix
     
    464464// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    465465
     466func 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
     474var 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
     480func 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
     486var 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
    466492func pipe(p *[2]int32) (err error) {
    467493        _, _, 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.go arm64
     1// go run mkasm.go darwin arm64
    22// Code generated by the command above; DO NOT EDIT.
    33
    4 //go:build go1.12
    5 // +build go1.12
    6 
    74#include "textflag.h"
     5
     6TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0
     7        JMP     libc_fdopendir(SB)
     8
     9GLOBL   ·libc_fdopendir_trampoline_addr(SB), RODATA, $8
     10DATA    ·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB)
    811
    912TEXT libc_getgroups_trampoline<>(SB),NOSPLIT,$0-0
     
    175178DATA    ·libc_munlockall_trampoline_addr(SB)/8, $libc_munlockall_trampoline<>(SB)
    176179
     180TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0
     181        JMP     libc_closedir(SB)
     182
     183GLOBL   ·libc_closedir_trampoline_addr(SB), RODATA, $8
     184DATA    ·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB)
     185
     186TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0
     187        JMP     libc_readdir_r(SB)
     188
     189GLOBL   ·libc_readdir_r_trampoline_addr(SB), RODATA, $8
     190DATA    ·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB)
     191
    177192TEXT libc_pipe_trampoline<>(SB),NOSPLIT,$0-0
    178193        JMP     libc_pipe(SB)
  • trunk/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go

    r67 r69  
    1616//go:cgo_import_dynamic libc_pwritev pwritev "libc.so"
    1717//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"
    2018
    2119//go:linkname procreadv libc_readv
     
    2422//go:linkname procpwritev libc_pwritev
    2523//go:linkname procaccept4 libc_accept4
    26 //go:linkname procputmsg libc_putmsg
    27 //go:linkname procgetmsg libc_getmsg
    2824
    2925var (
     
    3228        procwritev,
    3329        procpwritev,
    34         procaccept4,
    35         procputmsg,
    36         procgetmsg syscallFunc
     30        procaccept4 syscallFunc
    3731)
    3832
     
    107101        return
    108102}
    109 
    110 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    111 
    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 = e1
    116         }
    117         return
    118 }
    119 
    120 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    121 
    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 = e1
    126         }
    127         return
    128 }
  • trunk/vendor/golang.org/x/sys/unix/zsyscall_linux.go

    r67 r69  
    21522152        return
    21532153}
     2154
     2155// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     2156
     2157func 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  
    288288// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    289289
    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         return
    296 }
    297 
    298 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    299 
    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         return
    306 }
    307 
    308 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    309 
    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         return
    316 }
    317 
    318 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    319 
    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         return
    326 }
    327 
    328 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    329 
    330290func Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int, err error) {
    331291        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  
    335335// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    336336
    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         return
    343 }
    344 
    345 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    346 
    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         return
    353 }
    354 
    355 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    356 
    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         return
    363 }
    364 
    365 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    366 
    367337func Setrlimit(resource int, rlim *Rlimit) (err error) {
    368338        _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
    369         if e1 != 0 {
    370                 err = errnoErr(e1)
    371         }
    372         return
    373 }
    374 
    375 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    376 
    377 func Setreuid(ruid int, euid int) (err error) {
    378         _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
    379339        if e1 != 0 {
    380340                err = errnoErr(e1)
  • trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go

    r67 r69  
    413413// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    414414
    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         return
    421 }
    422 
    423 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    424 
    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         return
    431 }
    432 
    433 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    434 
    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         return
    441 }
    442 
    443 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    444 
    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         return
    451 }
    452 
    453 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    454 
    455415func Shutdown(fd int, how int) (err error) {
    456416        _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
  • trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go

    r67 r69  
    290290// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    291291
    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         return
    298 }
    299 
    300 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    301 
    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         return
    308 }
    309 
    310 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    311 
    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         return
    318 }
    319 
    320 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    321 
    322292func setrlimit(resource int, rlim *Rlimit) (err error) {
    323293        _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
    324         if e1 != 0 {
    325                 err = errnoErr(e1)
    326         }
    327         return
    328 }
    329 
    330 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    331 
    332 func Setreuid(ruid int, euid int) (err error) {
    333         _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
    334294        if e1 != 0 {
    335295                err = errnoErr(e1)
  • trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_loong64.go

    r67 r69  
    224224// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    225225
    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         return
    232 }
    233 
    234 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    235 
    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         return
    242 }
    243 
    244 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    245 
    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         return
    252 }
    253 
    254 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    255 
    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         return
    262 }
    263 
    264 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    265 
    266226func Shutdown(fd int, how int) (err error) {
    267227        _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
  • trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go

    r67 r69  
    249249// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    250250
    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         return
    257 }
    258 
    259 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    260 
    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         return
    267 }
    268 
    269 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    270 
    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         return
    277 }
    278 
    279 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    280 
    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         return
    287 }
    288 
    289 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    290 
    291251func Shutdown(fd int, how int) (err error) {
    292252        _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
  • trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go

    r67 r69  
    279279// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    280280
    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         return
    287 }
    288 
    289 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    290 
    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         return
    297 }
    298 
    299 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    300 
    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         return
    307 }
    308 
    309 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    310 
    311281func Setrlimit(resource int, rlim *Rlimit) (err error) {
    312282        _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
    313         if e1 != 0 {
    314                 err = errnoErr(e1)
    315         }
    316         return
    317 }
    318 
    319 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    320 
    321 func Setreuid(ruid int, euid int) (err error) {
    322         _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
    323283        if e1 != 0 {
    324284                err = errnoErr(e1)
  • trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go

    r67 r69  
    279279// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    280280
    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         return
    287 }
    288 
    289 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    290 
    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         return
    297 }
    298 
    299 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    300 
    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         return
    307 }
    308 
    309 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    310 
    311281func Setrlimit(resource int, rlim *Rlimit) (err error) {
    312282        _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
    313         if e1 != 0 {
    314                 err = errnoErr(e1)
    315         }
    316         return
    317 }
    318 
    319 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    320 
    321 func Setreuid(ruid int, euid int) (err error) {
    322         _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
    323283        if e1 != 0 {
    324284                err = errnoErr(e1)
  • trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go

    r67 r69  
    249249// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    250250
    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         return
    257 }
    258 
    259 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    260 
    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         return
    267 }
    268 
    269 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    270 
    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         return
    277 }
    278 
    279 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    280 
    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         return
    287 }
    288 
    289 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    290 
    291251func Shutdown(fd int, how int) (err error) {
    292252        _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
  • trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc.go

    r67 r69  
    309309// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    310310
    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         return
    317 }
    318 
    319 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    320 
    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         return
    327 }
    328 
    329 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    330 
    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         return
    337 }
    338 
    339 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    340 
    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         return
    347 }
    348 
    349 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    350 
    351311func Shutdown(fd int, how int) (err error) {
    352312        _, _, e1 := Syscall(SYS_SHUTDOWN, uintptr(fd), uintptr(how), 0)
  • trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go

    r67 r69  
    350350// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    351351
    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         return
    358 }
    359 
    360 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    361 
    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         return
    368 }
    369 
    370 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    371 
    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         return
    378 }
    379 
    380 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    381 
    382352func Setrlimit(resource int, rlim *Rlimit) (err error) {
    383353        _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
    384         if e1 != 0 {
    385                 err = errnoErr(e1)
    386         }
    387         return
    388 }
    389 
    390 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    391 
    392 func Setreuid(ruid int, euid int) (err error) {
    393         _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
    394354        if e1 != 0 {
    395355                err = errnoErr(e1)
  • trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go

    r67 r69  
    350350// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    351351
    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         return
    358 }
    359 
    360 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    361 
    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         return
    368 }
    369 
    370 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    371 
    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         return
    378 }
    379 
    380 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    381 
    382352func Setrlimit(resource int, rlim *Rlimit) (err error) {
    383353        _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
    384         if e1 != 0 {
    385                 err = errnoErr(e1)
    386         }
    387         return
    388 }
    389 
    390 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    391 
    392 func Setreuid(ruid int, euid int) (err error) {
    393         _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
    394354        if e1 != 0 {
    395355                err = errnoErr(e1)
  • trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go

    r67 r69  
    270270// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    271271
    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         return
    278 }
    279 
    280 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    281 
    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         return
    288 }
    289 
    290 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    291 
    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         return
    298 }
    299 
    300 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    301 
    302272func Setrlimit(resource int, rlim *Rlimit) (err error) {
    303273        _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
    304         if e1 != 0 {
    305                 err = errnoErr(e1)
    306         }
    307         return
    308 }
    309 
    310 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    311 
    312 func Setreuid(ruid int, euid int) (err error) {
    313         _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
    314274        if e1 != 0 {
    315275                err = errnoErr(e1)
  • trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go

    r67 r69  
    320320// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    321321
    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         return
    328 }
    329 
    330 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    331 
    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         return
    338 }
    339 
    340 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    341 
    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         return
    348 }
    349 
    350 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    351 
    352322func Setrlimit(resource int, rlim *Rlimit) (err error) {
    353323        _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
    354         if e1 != 0 {
    355                 err = errnoErr(e1)
    356         }
    357         return
    358 }
    359 
    360 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    361 
    362 func Setreuid(ruid int, euid int) (err error) {
    363         _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
    364324        if e1 != 0 {
    365325                err = errnoErr(e1)
  • trunk/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go

    r67 r69  
    330330// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    331331
    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         return
    338 }
    339 
    340 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    341 
    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         return
    348 }
    349 
    350 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    351 
    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         return
    358 }
    359 
    360 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    361 
    362332func Setrlimit(resource int, rlim *Rlimit) (err error) {
    363333        _, _, e1 := RawSyscall(SYS_SETRLIMIT, uintptr(resource), uintptr(unsafe.Pointer(rlim)), 0)
    364         if e1 != 0 {
    365                 err = errnoErr(e1)
    366         }
    367         return
    368 }
    369 
    370 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    371 
    372 func Setreuid(ruid int, euid int) (err error) {
    373         _, _, e1 := RawSyscall(SYS_SETREUID, uintptr(ruid), uintptr(euid), 0)
    374334        if e1 != 0 {
    375335                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.go
     1// go run mksyscall.go -l32 -openbsd -libc -tags openbsd,386 syscall_bsd.go syscall_openbsd.go syscall_openbsd_386.go
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    1717
    1818func 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)
    2020        n = int(r0)
    2121        if e1 != 0 {
     
    2525}
    2626
     27var libc_getgroups_trampoline_addr uintptr
     28
     29//go:cgo_import_dynamic libc_getgroups getgroups "libc.so"
     30
    2731// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    2832
    2933func 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
     41var libc_setgroups_trampoline_addr uintptr
     42
     43//go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
    3644
    3745// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    3846
    3947func 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)
    4149        wpid = int(r0)
    4250        if e1 != 0 {
     
    4654}
    4755
     56var libc_wait4_trampoline_addr uintptr
     57
     58//go:cgo_import_dynamic libc_wait4 wait4 "libc.so"
     59
    4860// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    4961
    5062func 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)))
    5264        fd = int(r0)
    5365        if e1 != 0 {
     
    5769}
    5870
     71var libc_accept_trampoline_addr uintptr
     72
     73//go:cgo_import_dynamic libc_accept accept "libc.so"
     74
    5975// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    6076
    6177func 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
     85var libc_bind_trampoline_addr uintptr
     86
     87//go:cgo_import_dynamic libc_bind bind "libc.so"
    6888
    6989// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7090
    7191func 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
     99var libc_connect_trampoline_addr uintptr
     100
     101//go:cgo_import_dynamic libc_connect connect "libc.so"
    78102
    79103// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    80104
    81105func 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))
    83107        fd = int(r0)
    84108        if e1 != 0 {
     
    88112}
    89113
     114var libc_socket_trampoline_addr uintptr
     115
     116//go:cgo_import_dynamic libc_socket socket "libc.so"
     117
    90118// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    91119
    92120func 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
     128var libc_getsockopt_trampoline_addr uintptr
     129
     130//go:cgo_import_dynamic libc_getsockopt getsockopt "libc.so"
    99131
    100132// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    101133
    102134func 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
     142var libc_setsockopt_trampoline_addr uintptr
     143
     144//go:cgo_import_dynamic libc_setsockopt setsockopt "libc.so"
    109145
    110146// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    111147
    112148func 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
     156var libc_getpeername_trampoline_addr uintptr
     157
     158//go:cgo_import_dynamic libc_getpeername getpeername "libc.so"
    119159
    120160// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    121161
    122162func 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
     170var libc_getsockname_trampoline_addr uintptr
     171
     172//go:cgo_import_dynamic libc_getsockname getsockname "libc.so"
    129173
    130174// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    131175
    132176func 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
     184var libc_shutdown_trampoline_addr uintptr
     185
     186//go:cgo_import_dynamic libc_shutdown shutdown "libc.so"
    139187
    140188// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    141189
    142190func 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
     198var libc_socketpair_trampoline_addr uintptr
     199
     200//go:cgo_import_dynamic libc_socketpair socketpair "libc.so"
    149201
    150202// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    157209                _p0 = unsafe.Pointer(&_zero)
    158210        }
    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)))
    160212        n = int(r0)
    161213        if e1 != 0 {
     
    164216        return
    165217}
     218
     219var libc_recvfrom_trampoline_addr uintptr
     220
     221//go:cgo_import_dynamic libc_recvfrom recvfrom "libc.so"
    166222
    167223// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    174230                _p0 = unsafe.Pointer(&_zero)
    175231        }
    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
     239var libc_sendto_trampoline_addr uintptr
     240
     241//go:cgo_import_dynamic libc_sendto sendto "libc.so"
    182242
    183243// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    184244
    185245func 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))
    187247        n = int(r0)
    188248        if e1 != 0 {
     
    192252}
    193253
     254var libc_recvmsg_trampoline_addr uintptr
     255
     256//go:cgo_import_dynamic libc_recvmsg recvmsg "libc.so"
     257
    194258// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    195259
    196260func 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))
    198262        n = int(r0)
    199263        if e1 != 0 {
     
    203267}
    204268
     269var libc_sendmsg_trampoline_addr uintptr
     270
     271//go:cgo_import_dynamic libc_sendmsg sendmsg "libc.so"
     272
    205273// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    206274
    207275func 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)))
    209277        n = int(r0)
    210278        if e1 != 0 {
     
    214282}
    215283
     284var libc_kevent_trampoline_addr uintptr
     285
     286//go:cgo_import_dynamic libc_kevent kevent "libc.so"
     287
    216288// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    217289
     
    222294                return
    223295        }
    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
     303var libc_utimes_trampoline_addr uintptr
     304
     305//go:cgo_import_dynamic libc_utimes utimes "libc.so"
    230306
    231307// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    232308
    233309func 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
     317var libc_futimes_trampoline_addr uintptr
     318
     319//go:cgo_import_dynamic libc_futimes futimes "libc.so"
    240320
    241321// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    242322
    243323func 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))
    245325        n = int(r0)
    246326        if e1 != 0 {
     
    249329        return
    250330}
     331
     332var libc_poll_trampoline_addr uintptr
     333
     334//go:cgo_import_dynamic libc_poll poll "libc.so"
    251335
    252336// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    259343                _p0 = unsafe.Pointer(&_zero)
    260344        }
    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
     352var libc_madvise_trampoline_addr uintptr
     353
     354//go:cgo_import_dynamic libc_madvise madvise "libc.so"
    267355
    268356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    275363                _p0 = unsafe.Pointer(&_zero)
    276364        }
    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
     372var libc_mlock_trampoline_addr uintptr
     373
     374//go:cgo_import_dynamic libc_mlock mlock "libc.so"
    283375
    284376// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    285377
    286378func 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
     386var libc_mlockall_trampoline_addr uintptr
     387
     388//go:cgo_import_dynamic libc_mlockall mlockall "libc.so"
    293389
    294390// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    301397                _p0 = unsafe.Pointer(&_zero)
    302398        }
    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
     406var libc_mprotect_trampoline_addr uintptr
     407
     408//go:cgo_import_dynamic libc_mprotect mprotect "libc.so"
    309409
    310410// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    317417                _p0 = unsafe.Pointer(&_zero)
    318418        }
    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
     426var libc_msync_trampoline_addr uintptr
     427
     428//go:cgo_import_dynamic libc_msync msync "libc.so"
    325429
    326430// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    333437                _p0 = unsafe.Pointer(&_zero)
    334438        }
    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
     446var libc_munlock_trampoline_addr uintptr
     447
     448//go:cgo_import_dynamic libc_munlock munlock "libc.so"
    341449
    342450// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    343451
    344452func 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
     460var libc_munlockall_trampoline_addr uintptr
     461
     462//go:cgo_import_dynamic libc_munlockall munlockall "libc.so"
    351463
    352464// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    353465
    354466func 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
     474var libc_pipe2_trampoline_addr uintptr
     475
     476//go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so"
    361477
    362478// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    369485                _p0 = unsafe.Pointer(&_zero)
    370486        }
    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)))
    372488        n = int(r0)
    373489        if e1 != 0 {
     
    376492        return
    377493}
     494
     495var libc_getdents_trampoline_addr uintptr
     496
     497//go:cgo_import_dynamic libc_getdents getdents "libc.so"
    378498
    379499// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    386506                _p0 = unsafe.Pointer(&_zero)
    387507        }
    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)
    389509        n = int(r0)
    390510        if e1 != 0 {
     
    394514}
    395515
     516var libc_getcwd_trampoline_addr uintptr
     517
     518//go:cgo_import_dynamic libc_getcwd getcwd "libc.so"
     519
    396520// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    397521
    398522func 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
     530var libc_ioctl_trampoline_addr uintptr
     531
     532//go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
    405533
    406534// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    413541                _p0 = unsafe.Pointer(&_zero)
    414542        }
    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
     550var libc_sysctl_trampoline_addr uintptr
     551
     552//go:cgo_import_dynamic libc_sysctl sysctl "libc.so"
    421553
    422554// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    423555
    424556func 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)
    426558        n = int(r0)
    427559        if e1 != 0 {
     
    431563}
    432564
     565var libc_ppoll_trampoline_addr uintptr
     566
     567//go:cgo_import_dynamic libc_ppoll ppoll "libc.so"
     568
    433569// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    434570
     
    439575                return
    440576        }
    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
     584var libc_access_trampoline_addr uintptr
     585
     586//go:cgo_import_dynamic libc_access access "libc.so"
    447587
    448588// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    449589
    450590func 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
     598var libc_adjtime_trampoline_addr uintptr
     599
     600//go:cgo_import_dynamic libc_adjtime adjtime "libc.so"
    457601
    458602// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    464608                return
    465609        }
    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
     617var libc_chdir_trampoline_addr uintptr
     618
     619//go:cgo_import_dynamic libc_chdir chdir "libc.so"
    472620
    473621// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    479627                return
    480628        }
    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
     636var libc_chflags_trampoline_addr uintptr
     637
     638//go:cgo_import_dynamic libc_chflags chflags "libc.so"
    487639
    488640// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    494646                return
    495647        }
    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
     655var libc_chmod_trampoline_addr uintptr
     656
     657//go:cgo_import_dynamic libc_chmod chmod "libc.so"
    502658
    503659// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    509665                return
    510666        }
    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
     674var libc_chown_trampoline_addr uintptr
     675
     676//go:cgo_import_dynamic libc_chown chown "libc.so"
    517677
    518678// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    524684                return
    525685        }
    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
     693var libc_chroot_trampoline_addr uintptr
     694
     695//go:cgo_import_dynamic libc_chroot chroot "libc.so"
    532696
    533697// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    534698
    535699func 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
     707var libc_close_trampoline_addr uintptr
     708
     709//go:cgo_import_dynamic libc_close close "libc.so"
    542710
    543711// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    544712
    545713func 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)
    547715        nfd = int(r0)
    548716        if e1 != 0 {
     
    552720}
    553721
     722var libc_dup_trampoline_addr uintptr
     723
     724//go:cgo_import_dynamic libc_dup dup "libc.so"
     725
    554726// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    555727
    556728func 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
     736var libc_dup2_trampoline_addr uintptr
     737
     738//go:cgo_import_dynamic libc_dup2 dup2 "libc.so"
    563739
    564740// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    565741
    566742func 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
     750var libc_dup3_trampoline_addr uintptr
     751
     752//go:cgo_import_dynamic libc_dup3 dup3 "libc.so"
    573753
    574754// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    575755
    576756func 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
     761var libc_exit_trampoline_addr uintptr
     762
     763//go:cgo_import_dynamic libc_exit exit "libc.so"
    580764
    581765// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    587771                return
    588772        }
    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
     780var libc_faccessat_trampoline_addr uintptr
     781
     782//go:cgo_import_dynamic libc_faccessat faccessat "libc.so"
    595783
    596784// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    597785
    598786func 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
     794var libc_fchdir_trampoline_addr uintptr
     795
     796//go:cgo_import_dynamic libc_fchdir fchdir "libc.so"
    605797
    606798// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    607799
    608800func 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
     808var libc_fchflags_trampoline_addr uintptr
     809
     810//go:cgo_import_dynamic libc_fchflags fchflags "libc.so"
    615811
    616812// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    617813
    618814func 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
     822var libc_fchmod_trampoline_addr uintptr
     823
     824//go:cgo_import_dynamic libc_fchmod fchmod "libc.so"
    625825
    626826// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    632832                return
    633833        }
    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
     841var libc_fchmodat_trampoline_addr uintptr
     842
     843//go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so"
    640844
    641845// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    642846
    643847func 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
     855var libc_fchown_trampoline_addr uintptr
     856
     857//go:cgo_import_dynamic libc_fchown fchown "libc.so"
    650858
    651859// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    657865                return
    658866        }
    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
     874var libc_fchownat_trampoline_addr uintptr
     875
     876//go:cgo_import_dynamic libc_fchownat fchownat "libc.so"
    665877
    666878// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    667879
    668880func 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
     888var libc_flock_trampoline_addr uintptr
     889
     890//go:cgo_import_dynamic libc_flock flock "libc.so"
    675891
    676892// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    677893
    678894func 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)
    680896        val = int(r0)
    681897        if e1 != 0 {
     
    685901}
    686902
     903var libc_fpathconf_trampoline_addr uintptr
     904
     905//go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so"
     906
    687907// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    688908
    689909func 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
     917var libc_fstat_trampoline_addr uintptr
     918
     919//go:cgo_import_dynamic libc_fstat fstat "libc.so"
    696920
    697921// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    703927                return
    704928        }
    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
     936var libc_fstatat_trampoline_addr uintptr
     937
     938//go:cgo_import_dynamic libc_fstatat fstatat "libc.so"
    711939
    712940// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    713941
    714942func 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
     950var libc_fstatfs_trampoline_addr uintptr
     951
     952//go:cgo_import_dynamic libc_fstatfs fstatfs "libc.so"
    721953
    722954// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    723955
    724956func 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
     964var libc_fsync_trampoline_addr uintptr
     965
     966//go:cgo_import_dynamic libc_fsync fsync "libc.so"
    731967
    732968// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    733969
    734970func 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
     978var libc_ftruncate_trampoline_addr uintptr
     979
     980//go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so"
    741981
    742982// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    743983
    744984func Getegid() (egid int) {
    745         r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
     985        r0, _, _ := syscall_rawSyscall(libc_getegid_trampoline_addr, 0, 0, 0)
    746986        egid = int(r0)
    747987        return
    748988}
    749989
     990var libc_getegid_trampoline_addr uintptr
     991
     992//go:cgo_import_dynamic libc_getegid getegid "libc.so"
     993
    750994// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    751995
    752996func Geteuid() (uid int) {
    753         r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
     997        r0, _, _ := syscall_rawSyscall(libc_geteuid_trampoline_addr, 0, 0, 0)
    754998        uid = int(r0)
    755999        return
    7561000}
    7571001
     1002var libc_geteuid_trampoline_addr uintptr
     1003
     1004//go:cgo_import_dynamic libc_geteuid geteuid "libc.so"
     1005
    7581006// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7591007
    7601008func Getgid() (gid int) {
    761         r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
     1009        r0, _, _ := syscall_rawSyscall(libc_getgid_trampoline_addr, 0, 0, 0)
    7621010        gid = int(r0)
    7631011        return
    7641012}
    7651013
     1014var libc_getgid_trampoline_addr uintptr
     1015
     1016//go:cgo_import_dynamic libc_getgid getgid "libc.so"
     1017
    7661018// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7671019
    7681020func 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)
    7701022        pgid = int(r0)
    7711023        if e1 != 0 {
     
    7751027}
    7761028
     1029var libc_getpgid_trampoline_addr uintptr
     1030
     1031//go:cgo_import_dynamic libc_getpgid getpgid "libc.so"
     1032
    7771033// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7781034
    7791035func Getpgrp() (pgrp int) {
    780         r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
     1036        r0, _, _ := syscall_rawSyscall(libc_getpgrp_trampoline_addr, 0, 0, 0)
    7811037        pgrp = int(r0)
    7821038        return
    7831039}
    7841040
     1041var libc_getpgrp_trampoline_addr uintptr
     1042
     1043//go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so"
     1044
    7851045// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7861046
    7871047func Getpid() (pid int) {
    788         r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
     1048        r0, _, _ := syscall_rawSyscall(libc_getpid_trampoline_addr, 0, 0, 0)
    7891049        pid = int(r0)
    7901050        return
    7911051}
    7921052
     1053var libc_getpid_trampoline_addr uintptr
     1054
     1055//go:cgo_import_dynamic libc_getpid getpid "libc.so"
     1056
    7931057// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7941058
    7951059func Getppid() (ppid int) {
    796         r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
     1060        r0, _, _ := syscall_rawSyscall(libc_getppid_trampoline_addr, 0, 0, 0)
    7971061        ppid = int(r0)
    7981062        return
    7991063}
    8001064
     1065var libc_getppid_trampoline_addr uintptr
     1066
     1067//go:cgo_import_dynamic libc_getppid getppid "libc.so"
     1068
    8011069// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8021070
    8031071func 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)
    8051073        prio = int(r0)
    8061074        if e1 != 0 {
     
    8101078}
    8111079
     1080var libc_getpriority_trampoline_addr uintptr
     1081
     1082//go:cgo_import_dynamic libc_getpriority getpriority "libc.so"
     1083
    8121084// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8131085
    8141086func 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
     1094var libc_getrlimit_trampoline_addr uintptr
     1095
     1096//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so"
    8211097
    8221098// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8231099
    8241100func 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)
    8261102        rtable = int(r0)
    8271103        if e1 != 0 {
     
    8311107}
    8321108
     1109var libc_getrtable_trampoline_addr uintptr
     1110
     1111//go:cgo_import_dynamic libc_getrtable getrtable "libc.so"
     1112
    8331113// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8341114
    8351115func 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
     1123var libc_getrusage_trampoline_addr uintptr
     1124
     1125//go:cgo_import_dynamic libc_getrusage getrusage "libc.so"
    8421126
    8431127// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8441128
    8451129func 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)
    8471131        sid = int(r0)
    8481132        if e1 != 0 {
     
    8521136}
    8531137
     1138var libc_getsid_trampoline_addr uintptr
     1139
     1140//go:cgo_import_dynamic libc_getsid getsid "libc.so"
     1141
    8541142// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8551143
    8561144func 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
     1152var libc_gettimeofday_trampoline_addr uintptr
     1153
     1154//go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so"
    8631155
    8641156// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8651157
    8661158func Getuid() (uid int) {
    867         r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
     1159        r0, _, _ := syscall_rawSyscall(libc_getuid_trampoline_addr, 0, 0, 0)
    8681160        uid = int(r0)
    8691161        return
    8701162}
    8711163
     1164var libc_getuid_trampoline_addr uintptr
     1165
     1166//go:cgo_import_dynamic libc_getuid getuid "libc.so"
     1167
    8721168// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8731169
    8741170func Issetugid() (tainted bool) {
    875         r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)
     1171        r0, _, _ := syscall_syscall(libc_issetugid_trampoline_addr, 0, 0, 0)
    8761172        tainted = bool(r0 != 0)
    8771173        return
    8781174}
    8791175
     1176var libc_issetugid_trampoline_addr uintptr
     1177
     1178//go:cgo_import_dynamic libc_issetugid issetugid "libc.so"
     1179
    8801180// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8811181
    8821182func 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
     1190var libc_kill_trampoline_addr uintptr
     1191
     1192//go:cgo_import_dynamic libc_kill kill "libc.so"
    8891193
    8901194// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8911195
    8921196func 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)
    8941198        fd = int(r0)
    8951199        if e1 != 0 {
     
    8991203}
    9001204
     1205var libc_kqueue_trampoline_addr uintptr
     1206
     1207//go:cgo_import_dynamic libc_kqueue kqueue "libc.so"
     1208
    9011209// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    9021210
     
    9071215                return
    9081216        }
    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
     1224var libc_lchown_trampoline_addr uintptr
     1225
     1226//go:cgo_import_dynamic libc_lchown lchown "libc.so"
    9151227
    9161228// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    9271239                return
    9281240        }
    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
     1248var libc_link_trampoline_addr uintptr
     1249
     1250//go:cgo_import_dynamic libc_link link "libc.so"
    9351251
    9361252// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    9471263                return
    9481264        }
    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
     1272var libc_linkat_trampoline_addr uintptr
     1273
     1274//go:cgo_import_dynamic libc_linkat linkat "libc.so"
    9551275
    9561276// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    9571277
    9581278func 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
     1286var libc_listen_trampoline_addr uintptr
     1287
     1288//go:cgo_import_dynamic libc_listen listen "libc.so"
    9651289
    9661290// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    9721296                return
    9731297        }
    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
     1305var libc_lstat_trampoline_addr uintptr
     1306
     1307//go:cgo_import_dynamic libc_lstat lstat "libc.so"
    9801308
    9811309// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    9871315                return
    9881316        }
    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
     1324var libc_mkdir_trampoline_addr uintptr
     1325
     1326//go:cgo_import_dynamic libc_mkdir mkdir "libc.so"
    9951327
    9961328// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10021334                return
    10031335        }
    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
     1343var libc_mkdirat_trampoline_addr uintptr
     1344
     1345//go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so"
    10101346
    10111347// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10171353                return
    10181354        }
    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
     1362var libc_mkfifo_trampoline_addr uintptr
     1363
     1364//go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so"
    10251365
    10261366// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10321372                return
    10331373        }
    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
     1381var libc_mkfifoat_trampoline_addr uintptr
     1382
     1383//go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so"
    10401384
    10411385// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10471391                return
    10481392        }
    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
     1400var libc_mknod_trampoline_addr uintptr
     1401
     1402//go:cgo_import_dynamic libc_mknod mknod "libc.so"
    10551403
    10561404// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10621410                return
    10631411        }
    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
     1419var libc_mknodat_trampoline_addr uintptr
     1420
     1421//go:cgo_import_dynamic libc_mknodat mknodat "libc.so"
    10701422
    10711423// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    10721424
    10731425func 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
     1433var libc_nanosleep_trampoline_addr uintptr
     1434
     1435//go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so"
    10801436
    10811437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10871443                return
    10881444        }
    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))
    10901446        fd = int(r0)
    10911447        if e1 != 0 {
     
    10951451}
    10961452
     1453var libc_open_trampoline_addr uintptr
     1454
     1455//go:cgo_import_dynamic libc_open open "libc.so"
     1456
    10971457// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    10981458
     
    11031463                return
    11041464        }
    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)
    11061466        fd = int(r0)
    11071467        if e1 != 0 {
     
    11111471}
    11121472
     1473var libc_openat_trampoline_addr uintptr
     1474
     1475//go:cgo_import_dynamic libc_openat openat "libc.so"
     1476
    11131477// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    11141478
     
    11191483                return
    11201484        }
    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)
    11221486        val = int(r0)
    11231487        if e1 != 0 {
     
    11261490        return
    11271491}
     1492
     1493var libc_pathconf_trampoline_addr uintptr
     1494
     1495//go:cgo_import_dynamic libc_pathconf pathconf "libc.so"
    11281496
    11291497// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    11361504                _p0 = unsafe.Pointer(&_zero)
    11371505        }
    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)
    11391507        n = int(r0)
    11401508        if e1 != 0 {
     
    11431511        return
    11441512}
     1513
     1514var libc_pread_trampoline_addr uintptr
     1515
     1516//go:cgo_import_dynamic libc_pread pread "libc.so"
    11451517
    11461518// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    11531525                _p0 = unsafe.Pointer(&_zero)
    11541526        }
    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)
    11561528        n = int(r0)
    11571529        if e1 != 0 {
     
    11601532        return
    11611533}
     1534
     1535var libc_pwrite_trampoline_addr uintptr
     1536
     1537//go:cgo_import_dynamic libc_pwrite pwrite "libc.so"
    11621538
    11631539// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    11701546                _p0 = unsafe.Pointer(&_zero)
    11711547        }
    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)))
    11731549        n = int(r0)
    11741550        if e1 != 0 {
     
    11771553        return
    11781554}
     1555
     1556var libc_read_trampoline_addr uintptr
     1557
     1558//go:cgo_import_dynamic libc_read read "libc.so"
    11791559
    11801560// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    11921572                _p1 = unsafe.Pointer(&_zero)
    11931573        }
    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)))
    11951575        n = int(r0)
    11961576        if e1 != 0 {
     
    11991579        return
    12001580}
     1581
     1582var libc_readlink_trampoline_addr uintptr
     1583
     1584//go:cgo_import_dynamic libc_readlink readlink "libc.so"
    12011585
    12021586// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    12141598                _p1 = unsafe.Pointer(&_zero)
    12151599        }
    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)
    12171601        n = int(r0)
    12181602        if e1 != 0 {
     
    12211605        return
    12221606}
     1607
     1608var libc_readlinkat_trampoline_addr uintptr
     1609
     1610//go:cgo_import_dynamic libc_readlinkat readlinkat "libc.so"
    12231611
    12241612// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    12351623                return
    12361624        }
    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
     1632var libc_rename_trampoline_addr uintptr
     1633
     1634//go:cgo_import_dynamic libc_rename rename "libc.so"
    12431635
    12441636// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    12551647                return
    12561648        }
    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
     1656var libc_renameat_trampoline_addr uintptr
     1657
     1658//go:cgo_import_dynamic libc_renameat renameat "libc.so"
    12631659
    12641660// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    12701666                return
    12711667        }
    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
     1675var libc_revoke_trampoline_addr uintptr
     1676
     1677//go:cgo_import_dynamic libc_revoke revoke "libc.so"
    12781678
    12791679// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    12851685                return
    12861686        }
    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
     1694var libc_rmdir_trampoline_addr uintptr
     1695
     1696//go:cgo_import_dynamic libc_rmdir rmdir "libc.so"
    12931697
    12941698// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    12951699
    12961700func 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)
    12981702        newoffset = int64(int64(r1)<<32 | int64(r0))
    12991703        if e1 != 0 {
     
    13031707}
    13041708
     1709var libc_lseek_trampoline_addr uintptr
     1710
     1711//go:cgo_import_dynamic libc_lseek lseek "libc.so"
     1712
    13051713// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13061714
    13071715func 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)
    13091717        n = int(r0)
    13101718        if e1 != 0 {
     
    13141722}
    13151723
     1724var libc_select_trampoline_addr uintptr
     1725
     1726//go:cgo_import_dynamic libc_select select "libc.so"
     1727
    13161728// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13171729
    13181730func 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
     1738var libc_setegid_trampoline_addr uintptr
     1739
     1740//go:cgo_import_dynamic libc_setegid setegid "libc.so"
    13251741
    13261742// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13271743
    13281744func 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
     1752var libc_seteuid_trampoline_addr uintptr
     1753
     1754//go:cgo_import_dynamic libc_seteuid seteuid "libc.so"
    13351755
    13361756// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13371757
    13381758func 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
     1766var libc_setgid_trampoline_addr uintptr
     1767
     1768//go:cgo_import_dynamic libc_setgid setgid "libc.so"
    13451769
    13461770// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    13521776                return
    13531777        }
    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
     1785var libc_setlogin_trampoline_addr uintptr
     1786
     1787//go:cgo_import_dynamic libc_setlogin setlogin "libc.so"
    13601788
    13611789// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13621790
    13631791func 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
     1799var libc_setpgid_trampoline_addr uintptr
     1800
     1801//go:cgo_import_dynamic libc_setpgid setpgid "libc.so"
    13701802
    13711803// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13721804
    13731805func 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
     1813var libc_setpriority_trampoline_addr uintptr
     1814
     1815//go:cgo_import_dynamic libc_setpriority setpriority "libc.so"
    13801816
    13811817// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13821818
    13831819func 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
     1827var libc_setregid_trampoline_addr uintptr
     1828
     1829//go:cgo_import_dynamic libc_setregid setregid "libc.so"
    13901830
    13911831// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13921832
    13931833func 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
     1841var libc_setreuid_trampoline_addr uintptr
     1842
     1843//go:cgo_import_dynamic libc_setreuid setreuid "libc.so"
    14001844
    14011845// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14021846
    14031847func 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
     1855var libc_setresgid_trampoline_addr uintptr
     1856
     1857//go:cgo_import_dynamic libc_setresgid setresgid "libc.so"
    14101858
    14111859// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14121860
    14131861func 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
     1869var libc_setresuid_trampoline_addr uintptr
     1870
     1871//go:cgo_import_dynamic libc_setresuid setresuid "libc.so"
    14201872
    14211873// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14221874
    14231875func 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
     1883var libc_setrlimit_trampoline_addr uintptr
     1884
     1885//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so"
    14301886
    14311887// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14321888
    14331889func 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
     1897var libc_setrtable_trampoline_addr uintptr
     1898
     1899//go:cgo_import_dynamic libc_setrtable setrtable "libc.so"
    14401900
    14411901// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14421902
    14431903func 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)
    14451905        pid = int(r0)
    14461906        if e1 != 0 {
     
    14501910}
    14511911
     1912var libc_setsid_trampoline_addr uintptr
     1913
     1914//go:cgo_import_dynamic libc_setsid setsid "libc.so"
     1915
    14521916// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14531917
    14541918func 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
     1926var libc_settimeofday_trampoline_addr uintptr
     1927
     1928//go:cgo_import_dynamic libc_settimeofday settimeofday "libc.so"
    14611929
    14621930// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14631931
    14641932func 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
     1940var libc_setuid_trampoline_addr uintptr
     1941
     1942//go:cgo_import_dynamic libc_setuid setuid "libc.so"
    14711943
    14721944// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    14781950                return
    14791951        }
    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
     1959var libc_stat_trampoline_addr uintptr
     1960
     1961//go:cgo_import_dynamic libc_stat stat "libc.so"
    14861962
    14871963// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    14931969                return
    14941970        }
    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
     1978var libc_statfs_trampoline_addr uintptr
     1979
     1980//go:cgo_import_dynamic libc_statfs statfs "libc.so"
    15011981
    15021982// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    15131993                return
    15141994        }
    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
     2002var libc_symlink_trampoline_addr uintptr
     2003
     2004//go:cgo_import_dynamic libc_symlink symlink "libc.so"
    15212005
    15222006// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    15332017                return
    15342018        }
    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
     2026var libc_symlinkat_trampoline_addr uintptr
     2027
     2028//go:cgo_import_dynamic libc_symlinkat symlinkat "libc.so"
    15412029
    15422030// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    15432031
    15442032func 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
     2040var libc_sync_trampoline_addr uintptr
     2041
     2042//go:cgo_import_dynamic libc_sync sync "libc.so"
    15512043
    15522044// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    15582050                return
    15592051        }
    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
     2059var libc_truncate_trampoline_addr uintptr
     2060
     2061//go:cgo_import_dynamic libc_truncate truncate "libc.so"
    15662062
    15672063// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    15682064
    15692065func 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)
    15712067        oldmask = int(r0)
    15722068        return
    15732069}
    15742070
     2071var libc_umask_trampoline_addr uintptr
     2072
     2073//go:cgo_import_dynamic libc_umask umask "libc.so"
     2074
    15752075// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    15762076
     
    15812081                return
    15822082        }
    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
     2090var libc_unlink_trampoline_addr uintptr
     2091
     2092//go:cgo_import_dynamic libc_unlink unlink "libc.so"
    15892093
    15902094// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    15962100                return
    15972101        }
    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
     2109var libc_unlinkat_trampoline_addr uintptr
     2110
     2111//go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so"
    16042112
    16052113// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    16112119                return
    16122120        }
    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
     2128var libc_unmount_trampoline_addr uintptr
     2129
     2130//go:cgo_import_dynamic libc_unmount unmount "libc.so"
    16192131
    16202132// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    16272139                _p0 = unsafe.Pointer(&_zero)
    16282140        }
    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)))
    16302142        n = int(r0)
    16312143        if e1 != 0 {
     
    16352147}
    16362148
     2149var libc_write_trampoline_addr uintptr
     2150
     2151//go:cgo_import_dynamic libc_write write "libc.so"
     2152
    16372153// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    16382154
    16392155func 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)
    16412157        ret = uintptr(r0)
    16422158        if e1 != 0 {
     
    16462162}
    16472163
     2164var libc_mmap_trampoline_addr uintptr
     2165
     2166//go:cgo_import_dynamic libc_mmap mmap "libc.so"
     2167
    16482168// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    16492169
    16502170func 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
     2178var libc_munmap_trampoline_addr uintptr
     2179
     2180//go:cgo_import_dynamic libc_munmap munmap "libc.so"
    16572181
    16582182// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    16592183
    16602184func 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))
    16622186        n = int(r0)
    16632187        if e1 != 0 {
     
    16702194
    16712195func 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))
    16732197        n = int(r0)
    16742198        if e1 != 0 {
     
    16862210                return
    16872211        }
    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
     2219var 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.go
     1// go run mksyscall.go -openbsd -libc -tags openbsd,amd64 syscall_bsd.go syscall_openbsd.go syscall_openbsd_amd64.go
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    1717
    1818func 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)
    2020        n = int(r0)
    2121        if e1 != 0 {
     
    2525}
    2626
     27var libc_getgroups_trampoline_addr uintptr
     28
     29//go:cgo_import_dynamic libc_getgroups getgroups "libc.so"
     30
    2731// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    2832
    2933func 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
     41var libc_setgroups_trampoline_addr uintptr
     42
     43//go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
    3644
    3745// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    3846
    3947func 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)
    4149        wpid = int(r0)
    4250        if e1 != 0 {
     
    4654}
    4755
     56var libc_wait4_trampoline_addr uintptr
     57
     58//go:cgo_import_dynamic libc_wait4 wait4 "libc.so"
     59
    4860// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    4961
    5062func 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)))
    5264        fd = int(r0)
    5365        if e1 != 0 {
     
    5769}
    5870
     71var libc_accept_trampoline_addr uintptr
     72
     73//go:cgo_import_dynamic libc_accept accept "libc.so"
     74
    5975// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    6076
    6177func 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
     85var libc_bind_trampoline_addr uintptr
     86
     87//go:cgo_import_dynamic libc_bind bind "libc.so"
    6888
    6989// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7090
    7191func 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
     99var libc_connect_trampoline_addr uintptr
     100
     101//go:cgo_import_dynamic libc_connect connect "libc.so"
    78102
    79103// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    80104
    81105func 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))
    83107        fd = int(r0)
    84108        if e1 != 0 {
     
    88112}
    89113
     114var libc_socket_trampoline_addr uintptr
     115
     116//go:cgo_import_dynamic libc_socket socket "libc.so"
     117
    90118// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    91119
    92120func 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
     128var libc_getsockopt_trampoline_addr uintptr
     129
     130//go:cgo_import_dynamic libc_getsockopt getsockopt "libc.so"
    99131
    100132// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    101133
    102134func 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
     142var libc_setsockopt_trampoline_addr uintptr
     143
     144//go:cgo_import_dynamic libc_setsockopt setsockopt "libc.so"
    109145
    110146// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    111147
    112148func 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
     156var libc_getpeername_trampoline_addr uintptr
     157
     158//go:cgo_import_dynamic libc_getpeername getpeername "libc.so"
    119159
    120160// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    121161
    122162func 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
     170var libc_getsockname_trampoline_addr uintptr
     171
     172//go:cgo_import_dynamic libc_getsockname getsockname "libc.so"
    129173
    130174// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    131175
    132176func 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
     184var libc_shutdown_trampoline_addr uintptr
     185
     186//go:cgo_import_dynamic libc_shutdown shutdown "libc.so"
    139187
    140188// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    141189
    142190func 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
     198var libc_socketpair_trampoline_addr uintptr
     199
     200//go:cgo_import_dynamic libc_socketpair socketpair "libc.so"
    149201
    150202// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    157209                _p0 = unsafe.Pointer(&_zero)
    158210        }
    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)))
    160212        n = int(r0)
    161213        if e1 != 0 {
     
    164216        return
    165217}
     218
     219var libc_recvfrom_trampoline_addr uintptr
     220
     221//go:cgo_import_dynamic libc_recvfrom recvfrom "libc.so"
    166222
    167223// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    174230                _p0 = unsafe.Pointer(&_zero)
    175231        }
    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
     239var libc_sendto_trampoline_addr uintptr
     240
     241//go:cgo_import_dynamic libc_sendto sendto "libc.so"
    182242
    183243// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    184244
    185245func 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))
    187247        n = int(r0)
    188248        if e1 != 0 {
     
    192252}
    193253
     254var libc_recvmsg_trampoline_addr uintptr
     255
     256//go:cgo_import_dynamic libc_recvmsg recvmsg "libc.so"
     257
    194258// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    195259
    196260func 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))
    198262        n = int(r0)
    199263        if e1 != 0 {
     
    203267}
    204268
     269var libc_sendmsg_trampoline_addr uintptr
     270
     271//go:cgo_import_dynamic libc_sendmsg sendmsg "libc.so"
     272
    205273// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    206274
    207275func 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)))
    209277        n = int(r0)
    210278        if e1 != 0 {
     
    214282}
    215283
     284var libc_kevent_trampoline_addr uintptr
     285
     286//go:cgo_import_dynamic libc_kevent kevent "libc.so"
     287
    216288// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    217289
     
    222294                return
    223295        }
    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
     303var libc_utimes_trampoline_addr uintptr
     304
     305//go:cgo_import_dynamic libc_utimes utimes "libc.so"
    230306
    231307// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    232308
    233309func 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
     317var libc_futimes_trampoline_addr uintptr
     318
     319//go:cgo_import_dynamic libc_futimes futimes "libc.so"
    240320
    241321// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    242322
    243323func 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))
    245325        n = int(r0)
    246326        if e1 != 0 {
     
    249329        return
    250330}
     331
     332var libc_poll_trampoline_addr uintptr
     333
     334//go:cgo_import_dynamic libc_poll poll "libc.so"
    251335
    252336// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    259343                _p0 = unsafe.Pointer(&_zero)
    260344        }
    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
     352var libc_madvise_trampoline_addr uintptr
     353
     354//go:cgo_import_dynamic libc_madvise madvise "libc.so"
    267355
    268356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    275363                _p0 = unsafe.Pointer(&_zero)
    276364        }
    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
     372var libc_mlock_trampoline_addr uintptr
     373
     374//go:cgo_import_dynamic libc_mlock mlock "libc.so"
    283375
    284376// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    285377
    286378func 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
     386var libc_mlockall_trampoline_addr uintptr
     387
     388//go:cgo_import_dynamic libc_mlockall mlockall "libc.so"
    293389
    294390// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    301397                _p0 = unsafe.Pointer(&_zero)
    302398        }
    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
     406var libc_mprotect_trampoline_addr uintptr
     407
     408//go:cgo_import_dynamic libc_mprotect mprotect "libc.so"
    309409
    310410// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    317417                _p0 = unsafe.Pointer(&_zero)
    318418        }
    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
     426var libc_msync_trampoline_addr uintptr
     427
     428//go:cgo_import_dynamic libc_msync msync "libc.so"
    325429
    326430// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    333437                _p0 = unsafe.Pointer(&_zero)
    334438        }
    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
     446var libc_munlock_trampoline_addr uintptr
     447
     448//go:cgo_import_dynamic libc_munlock munlock "libc.so"
    341449
    342450// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    343451
    344452func 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
     460var libc_munlockall_trampoline_addr uintptr
     461
     462//go:cgo_import_dynamic libc_munlockall munlockall "libc.so"
    351463
    352464// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    353465
    354466func 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
     474var libc_pipe2_trampoline_addr uintptr
     475
     476//go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so"
    361477
    362478// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    369485                _p0 = unsafe.Pointer(&_zero)
    370486        }
    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)))
    372488        n = int(r0)
    373489        if e1 != 0 {
     
    376492        return
    377493}
     494
     495var libc_getdents_trampoline_addr uintptr
     496
     497//go:cgo_import_dynamic libc_getdents getdents "libc.so"
    378498
    379499// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    386506                _p0 = unsafe.Pointer(&_zero)
    387507        }
    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)
    389509        n = int(r0)
    390510        if e1 != 0 {
     
    394514}
    395515
     516var libc_getcwd_trampoline_addr uintptr
     517
     518//go:cgo_import_dynamic libc_getcwd getcwd "libc.so"
     519
    396520// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    397521
    398522func 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
     530var libc_ioctl_trampoline_addr uintptr
     531
     532//go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
    405533
    406534// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    413541                _p0 = unsafe.Pointer(&_zero)
    414542        }
    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
     550var libc_sysctl_trampoline_addr uintptr
     551
     552//go:cgo_import_dynamic libc_sysctl sysctl "libc.so"
    421553
    422554// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    423555
    424556func 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)
    426558        n = int(r0)
    427559        if e1 != 0 {
     
    431563}
    432564
     565var libc_ppoll_trampoline_addr uintptr
     566
     567//go:cgo_import_dynamic libc_ppoll ppoll "libc.so"
     568
    433569// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    434570
     
    439575                return
    440576        }
    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
     584var libc_access_trampoline_addr uintptr
     585
     586//go:cgo_import_dynamic libc_access access "libc.so"
    447587
    448588// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    449589
    450590func 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
     598var libc_adjtime_trampoline_addr uintptr
     599
     600//go:cgo_import_dynamic libc_adjtime adjtime "libc.so"
    457601
    458602// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    464608                return
    465609        }
    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
     617var libc_chdir_trampoline_addr uintptr
     618
     619//go:cgo_import_dynamic libc_chdir chdir "libc.so"
    472620
    473621// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    479627                return
    480628        }
    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
     636var libc_chflags_trampoline_addr uintptr
     637
     638//go:cgo_import_dynamic libc_chflags chflags "libc.so"
    487639
    488640// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    494646                return
    495647        }
    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
     655var libc_chmod_trampoline_addr uintptr
     656
     657//go:cgo_import_dynamic libc_chmod chmod "libc.so"
    502658
    503659// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    509665                return
    510666        }
    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
     674var libc_chown_trampoline_addr uintptr
     675
     676//go:cgo_import_dynamic libc_chown chown "libc.so"
    517677
    518678// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    524684                return
    525685        }
    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
     693var libc_chroot_trampoline_addr uintptr
     694
     695//go:cgo_import_dynamic libc_chroot chroot "libc.so"
    532696
    533697// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    534698
    535699func 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
     707var libc_close_trampoline_addr uintptr
     708
     709//go:cgo_import_dynamic libc_close close "libc.so"
    542710
    543711// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    544712
    545713func 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)
    547715        nfd = int(r0)
    548716        if e1 != 0 {
     
    552720}
    553721
     722var libc_dup_trampoline_addr uintptr
     723
     724//go:cgo_import_dynamic libc_dup dup "libc.so"
     725
    554726// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    555727
    556728func 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
     736var libc_dup2_trampoline_addr uintptr
     737
     738//go:cgo_import_dynamic libc_dup2 dup2 "libc.so"
    563739
    564740// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    565741
    566742func 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
     750var libc_dup3_trampoline_addr uintptr
     751
     752//go:cgo_import_dynamic libc_dup3 dup3 "libc.so"
    573753
    574754// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    575755
    576756func 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
     761var libc_exit_trampoline_addr uintptr
     762
     763//go:cgo_import_dynamic libc_exit exit "libc.so"
    580764
    581765// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    587771                return
    588772        }
    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
     780var libc_faccessat_trampoline_addr uintptr
     781
     782//go:cgo_import_dynamic libc_faccessat faccessat "libc.so"
    595783
    596784// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    597785
    598786func 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
     794var libc_fchdir_trampoline_addr uintptr
     795
     796//go:cgo_import_dynamic libc_fchdir fchdir "libc.so"
    605797
    606798// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    607799
    608800func 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
     808var libc_fchflags_trampoline_addr uintptr
     809
     810//go:cgo_import_dynamic libc_fchflags fchflags "libc.so"
    615811
    616812// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    617813
    618814func 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
     822var libc_fchmod_trampoline_addr uintptr
     823
     824//go:cgo_import_dynamic libc_fchmod fchmod "libc.so"
    625825
    626826// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    632832                return
    633833        }
    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
     841var libc_fchmodat_trampoline_addr uintptr
     842
     843//go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so"
    640844
    641845// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    642846
    643847func 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
     855var libc_fchown_trampoline_addr uintptr
     856
     857//go:cgo_import_dynamic libc_fchown fchown "libc.so"
    650858
    651859// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    657865                return
    658866        }
    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
     874var libc_fchownat_trampoline_addr uintptr
     875
     876//go:cgo_import_dynamic libc_fchownat fchownat "libc.so"
    665877
    666878// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    667879
    668880func 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
     888var libc_flock_trampoline_addr uintptr
     889
     890//go:cgo_import_dynamic libc_flock flock "libc.so"
    675891
    676892// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    677893
    678894func 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)
    680896        val = int(r0)
    681897        if e1 != 0 {
     
    685901}
    686902
     903var libc_fpathconf_trampoline_addr uintptr
     904
     905//go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so"
     906
    687907// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    688908
    689909func 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
     917var libc_fstat_trampoline_addr uintptr
     918
     919//go:cgo_import_dynamic libc_fstat fstat "libc.so"
    696920
    697921// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    703927                return
    704928        }
    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
     936var libc_fstatat_trampoline_addr uintptr
     937
     938//go:cgo_import_dynamic libc_fstatat fstatat "libc.so"
    711939
    712940// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    713941
    714942func 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
     950var libc_fstatfs_trampoline_addr uintptr
     951
     952//go:cgo_import_dynamic libc_fstatfs fstatfs "libc.so"
    721953
    722954// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    723955
    724956func 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
     964var libc_fsync_trampoline_addr uintptr
     965
     966//go:cgo_import_dynamic libc_fsync fsync "libc.so"
    731967
    732968// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    733969
    734970func 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
     978var libc_ftruncate_trampoline_addr uintptr
     979
     980//go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so"
    741981
    742982// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    743983
    744984func Getegid() (egid int) {
    745         r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
     985        r0, _, _ := syscall_rawSyscall(libc_getegid_trampoline_addr, 0, 0, 0)
    746986        egid = int(r0)
    747987        return
    748988}
    749989
     990var libc_getegid_trampoline_addr uintptr
     991
     992//go:cgo_import_dynamic libc_getegid getegid "libc.so"
     993
    750994// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    751995
    752996func Geteuid() (uid int) {
    753         r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
     997        r0, _, _ := syscall_rawSyscall(libc_geteuid_trampoline_addr, 0, 0, 0)
    754998        uid = int(r0)
    755999        return
    7561000}
    7571001
     1002var libc_geteuid_trampoline_addr uintptr
     1003
     1004//go:cgo_import_dynamic libc_geteuid geteuid "libc.so"
     1005
    7581006// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7591007
    7601008func Getgid() (gid int) {
    761         r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
     1009        r0, _, _ := syscall_rawSyscall(libc_getgid_trampoline_addr, 0, 0, 0)
    7621010        gid = int(r0)
    7631011        return
    7641012}
    7651013
     1014var libc_getgid_trampoline_addr uintptr
     1015
     1016//go:cgo_import_dynamic libc_getgid getgid "libc.so"
     1017
    7661018// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7671019
    7681020func 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)
    7701022        pgid = int(r0)
    7711023        if e1 != 0 {
     
    7751027}
    7761028
     1029var libc_getpgid_trampoline_addr uintptr
     1030
     1031//go:cgo_import_dynamic libc_getpgid getpgid "libc.so"
     1032
    7771033// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7781034
    7791035func Getpgrp() (pgrp int) {
    780         r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
     1036        r0, _, _ := syscall_rawSyscall(libc_getpgrp_trampoline_addr, 0, 0, 0)
    7811037        pgrp = int(r0)
    7821038        return
    7831039}
    7841040
     1041var libc_getpgrp_trampoline_addr uintptr
     1042
     1043//go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so"
     1044
    7851045// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7861046
    7871047func Getpid() (pid int) {
    788         r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
     1048        r0, _, _ := syscall_rawSyscall(libc_getpid_trampoline_addr, 0, 0, 0)
    7891049        pid = int(r0)
    7901050        return
    7911051}
    7921052
     1053var libc_getpid_trampoline_addr uintptr
     1054
     1055//go:cgo_import_dynamic libc_getpid getpid "libc.so"
     1056
    7931057// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7941058
    7951059func Getppid() (ppid int) {
    796         r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
     1060        r0, _, _ := syscall_rawSyscall(libc_getppid_trampoline_addr, 0, 0, 0)
    7971061        ppid = int(r0)
    7981062        return
    7991063}
    8001064
     1065var libc_getppid_trampoline_addr uintptr
     1066
     1067//go:cgo_import_dynamic libc_getppid getppid "libc.so"
     1068
    8011069// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8021070
    8031071func 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)
    8051073        prio = int(r0)
    8061074        if e1 != 0 {
     
    8101078}
    8111079
     1080var libc_getpriority_trampoline_addr uintptr
     1081
     1082//go:cgo_import_dynamic libc_getpriority getpriority "libc.so"
     1083
    8121084// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8131085
    8141086func 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
     1094var libc_getrlimit_trampoline_addr uintptr
     1095
     1096//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so"
    8211097
    8221098// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8231099
    8241100func 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)
    8261102        rtable = int(r0)
    8271103        if e1 != 0 {
     
    8311107}
    8321108
     1109var libc_getrtable_trampoline_addr uintptr
     1110
     1111//go:cgo_import_dynamic libc_getrtable getrtable "libc.so"
     1112
    8331113// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8341114
    8351115func 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
     1123var libc_getrusage_trampoline_addr uintptr
     1124
     1125//go:cgo_import_dynamic libc_getrusage getrusage "libc.so"
    8421126
    8431127// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8441128
    8451129func 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)
    8471131        sid = int(r0)
    8481132        if e1 != 0 {
     
    8521136}
    8531137
     1138var libc_getsid_trampoline_addr uintptr
     1139
     1140//go:cgo_import_dynamic libc_getsid getsid "libc.so"
     1141
    8541142// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8551143
    8561144func 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
     1152var libc_gettimeofday_trampoline_addr uintptr
     1153
     1154//go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so"
    8631155
    8641156// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8651157
    8661158func Getuid() (uid int) {
    867         r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
     1159        r0, _, _ := syscall_rawSyscall(libc_getuid_trampoline_addr, 0, 0, 0)
    8681160        uid = int(r0)
    8691161        return
    8701162}
    8711163
     1164var libc_getuid_trampoline_addr uintptr
     1165
     1166//go:cgo_import_dynamic libc_getuid getuid "libc.so"
     1167
    8721168// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8731169
    8741170func Issetugid() (tainted bool) {
    875         r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)
     1171        r0, _, _ := syscall_syscall(libc_issetugid_trampoline_addr, 0, 0, 0)
    8761172        tainted = bool(r0 != 0)
    8771173        return
    8781174}
    8791175
     1176var libc_issetugid_trampoline_addr uintptr
     1177
     1178//go:cgo_import_dynamic libc_issetugid issetugid "libc.so"
     1179
    8801180// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8811181
    8821182func 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
     1190var libc_kill_trampoline_addr uintptr
     1191
     1192//go:cgo_import_dynamic libc_kill kill "libc.so"
    8891193
    8901194// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8911195
    8921196func 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)
    8941198        fd = int(r0)
    8951199        if e1 != 0 {
     
    8991203}
    9001204
     1205var libc_kqueue_trampoline_addr uintptr
     1206
     1207//go:cgo_import_dynamic libc_kqueue kqueue "libc.so"
     1208
    9011209// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    9021210
     
    9071215                return
    9081216        }
    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
     1224var libc_lchown_trampoline_addr uintptr
     1225
     1226//go:cgo_import_dynamic libc_lchown lchown "libc.so"
    9151227
    9161228// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    9271239                return
    9281240        }
    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
     1248var libc_link_trampoline_addr uintptr
     1249
     1250//go:cgo_import_dynamic libc_link link "libc.so"
    9351251
    9361252// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    9471263                return
    9481264        }
    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
     1272var libc_linkat_trampoline_addr uintptr
     1273
     1274//go:cgo_import_dynamic libc_linkat linkat "libc.so"
    9551275
    9561276// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    9571277
    9581278func 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
     1286var libc_listen_trampoline_addr uintptr
     1287
     1288//go:cgo_import_dynamic libc_listen listen "libc.so"
    9651289
    9661290// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    9721296                return
    9731297        }
    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
     1305var libc_lstat_trampoline_addr uintptr
     1306
     1307//go:cgo_import_dynamic libc_lstat lstat "libc.so"
    9801308
    9811309// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    9871315                return
    9881316        }
    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
     1324var libc_mkdir_trampoline_addr uintptr
     1325
     1326//go:cgo_import_dynamic libc_mkdir mkdir "libc.so"
    9951327
    9961328// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10021334                return
    10031335        }
    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
     1343var libc_mkdirat_trampoline_addr uintptr
     1344
     1345//go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so"
    10101346
    10111347// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10171353                return
    10181354        }
    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
     1362var libc_mkfifo_trampoline_addr uintptr
     1363
     1364//go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so"
    10251365
    10261366// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10321372                return
    10331373        }
    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
     1381var libc_mkfifoat_trampoline_addr uintptr
     1382
     1383//go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so"
    10401384
    10411385// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10471391                return
    10481392        }
    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
     1400var libc_mknod_trampoline_addr uintptr
     1401
     1402//go:cgo_import_dynamic libc_mknod mknod "libc.so"
    10551403
    10561404// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10621410                return
    10631411        }
    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
     1419var libc_mknodat_trampoline_addr uintptr
     1420
     1421//go:cgo_import_dynamic libc_mknodat mknodat "libc.so"
    10701422
    10711423// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    10721424
    10731425func 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
     1433var libc_nanosleep_trampoline_addr uintptr
     1434
     1435//go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so"
    10801436
    10811437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10871443                return
    10881444        }
    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))
    10901446        fd = int(r0)
    10911447        if e1 != 0 {
     
    10951451}
    10961452
     1453var libc_open_trampoline_addr uintptr
     1454
     1455//go:cgo_import_dynamic libc_open open "libc.so"
     1456
    10971457// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    10981458
     
    11031463                return
    11041464        }
    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)
    11061466        fd = int(r0)
    11071467        if e1 != 0 {
     
    11111471}
    11121472
     1473var libc_openat_trampoline_addr uintptr
     1474
     1475//go:cgo_import_dynamic libc_openat openat "libc.so"
     1476
    11131477// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    11141478
     
    11191483                return
    11201484        }
    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)
    11221486        val = int(r0)
    11231487        if e1 != 0 {
     
    11261490        return
    11271491}
     1492
     1493var libc_pathconf_trampoline_addr uintptr
     1494
     1495//go:cgo_import_dynamic libc_pathconf pathconf "libc.so"
    11281496
    11291497// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    11361504                _p0 = unsafe.Pointer(&_zero)
    11371505        }
    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)
    11391507        n = int(r0)
    11401508        if e1 != 0 {
     
    11431511        return
    11441512}
     1513
     1514var libc_pread_trampoline_addr uintptr
     1515
     1516//go:cgo_import_dynamic libc_pread pread "libc.so"
    11451517
    11461518// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    11531525                _p0 = unsafe.Pointer(&_zero)
    11541526        }
    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)
    11561528        n = int(r0)
    11571529        if e1 != 0 {
     
    11601532        return
    11611533}
     1534
     1535var libc_pwrite_trampoline_addr uintptr
     1536
     1537//go:cgo_import_dynamic libc_pwrite pwrite "libc.so"
    11621538
    11631539// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    11701546                _p0 = unsafe.Pointer(&_zero)
    11711547        }
    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)))
    11731549        n = int(r0)
    11741550        if e1 != 0 {
     
    11771553        return
    11781554}
     1555
     1556var libc_read_trampoline_addr uintptr
     1557
     1558//go:cgo_import_dynamic libc_read read "libc.so"
    11791559
    11801560// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    11921572                _p1 = unsafe.Pointer(&_zero)
    11931573        }
    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)))
    11951575        n = int(r0)
    11961576        if e1 != 0 {
     
    11991579        return
    12001580}
     1581
     1582var libc_readlink_trampoline_addr uintptr
     1583
     1584//go:cgo_import_dynamic libc_readlink readlink "libc.so"
    12011585
    12021586// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    12141598                _p1 = unsafe.Pointer(&_zero)
    12151599        }
    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)
    12171601        n = int(r0)
    12181602        if e1 != 0 {
     
    12211605        return
    12221606}
     1607
     1608var libc_readlinkat_trampoline_addr uintptr
     1609
     1610//go:cgo_import_dynamic libc_readlinkat readlinkat "libc.so"
    12231611
    12241612// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    12351623                return
    12361624        }
    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
     1632var libc_rename_trampoline_addr uintptr
     1633
     1634//go:cgo_import_dynamic libc_rename rename "libc.so"
    12431635
    12441636// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    12551647                return
    12561648        }
    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
     1656var libc_renameat_trampoline_addr uintptr
     1657
     1658//go:cgo_import_dynamic libc_renameat renameat "libc.so"
    12631659
    12641660// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    12701666                return
    12711667        }
    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
     1675var libc_revoke_trampoline_addr uintptr
     1676
     1677//go:cgo_import_dynamic libc_revoke revoke "libc.so"
    12781678
    12791679// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    12851685                return
    12861686        }
    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
     1694var libc_rmdir_trampoline_addr uintptr
     1695
     1696//go:cgo_import_dynamic libc_rmdir rmdir "libc.so"
    12931697
    12941698// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    12951699
    12961700func 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))
    12981702        newoffset = int64(r0)
    12991703        if e1 != 0 {
     
    13031707}
    13041708
     1709var libc_lseek_trampoline_addr uintptr
     1710
     1711//go:cgo_import_dynamic libc_lseek lseek "libc.so"
     1712
    13051713// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13061714
    13071715func 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)
    13091717        n = int(r0)
    13101718        if e1 != 0 {
     
    13141722}
    13151723
     1724var libc_select_trampoline_addr uintptr
     1725
     1726//go:cgo_import_dynamic libc_select select "libc.so"
     1727
    13161728// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13171729
    13181730func 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
     1738var libc_setegid_trampoline_addr uintptr
     1739
     1740//go:cgo_import_dynamic libc_setegid setegid "libc.so"
    13251741
    13261742// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13271743
    13281744func 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
     1752var libc_seteuid_trampoline_addr uintptr
     1753
     1754//go:cgo_import_dynamic libc_seteuid seteuid "libc.so"
    13351755
    13361756// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13371757
    13381758func 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
     1766var libc_setgid_trampoline_addr uintptr
     1767
     1768//go:cgo_import_dynamic libc_setgid setgid "libc.so"
    13451769
    13461770// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    13521776                return
    13531777        }
    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
     1785var libc_setlogin_trampoline_addr uintptr
     1786
     1787//go:cgo_import_dynamic libc_setlogin setlogin "libc.so"
    13601788
    13611789// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13621790
    13631791func 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
     1799var libc_setpgid_trampoline_addr uintptr
     1800
     1801//go:cgo_import_dynamic libc_setpgid setpgid "libc.so"
    13701802
    13711803// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13721804
    13731805func 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
     1813var libc_setpriority_trampoline_addr uintptr
     1814
     1815//go:cgo_import_dynamic libc_setpriority setpriority "libc.so"
    13801816
    13811817// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13821818
    13831819func 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
     1827var libc_setregid_trampoline_addr uintptr
     1828
     1829//go:cgo_import_dynamic libc_setregid setregid "libc.so"
    13901830
    13911831// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13921832
    13931833func 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
     1841var libc_setreuid_trampoline_addr uintptr
     1842
     1843//go:cgo_import_dynamic libc_setreuid setreuid "libc.so"
    14001844
    14011845// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14021846
    14031847func 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
     1855var libc_setresgid_trampoline_addr uintptr
     1856
     1857//go:cgo_import_dynamic libc_setresgid setresgid "libc.so"
    14101858
    14111859// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14121860
    14131861func 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
     1869var libc_setresuid_trampoline_addr uintptr
     1870
     1871//go:cgo_import_dynamic libc_setresuid setresuid "libc.so"
    14201872
    14211873// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14221874
    14231875func 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
     1883var libc_setrlimit_trampoline_addr uintptr
     1884
     1885//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so"
    14301886
    14311887// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14321888
    14331889func 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
     1897var libc_setrtable_trampoline_addr uintptr
     1898
     1899//go:cgo_import_dynamic libc_setrtable setrtable "libc.so"
    14401900
    14411901// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14421902
    14431903func 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)
    14451905        pid = int(r0)
    14461906        if e1 != 0 {
     
    14501910}
    14511911
     1912var libc_setsid_trampoline_addr uintptr
     1913
     1914//go:cgo_import_dynamic libc_setsid setsid "libc.so"
     1915
    14521916// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14531917
    14541918func 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
     1926var libc_settimeofday_trampoline_addr uintptr
     1927
     1928//go:cgo_import_dynamic libc_settimeofday settimeofday "libc.so"
    14611929
    14621930// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14631931
    14641932func 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
     1940var libc_setuid_trampoline_addr uintptr
     1941
     1942//go:cgo_import_dynamic libc_setuid setuid "libc.so"
    14711943
    14721944// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    14781950                return
    14791951        }
    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
     1959var libc_stat_trampoline_addr uintptr
     1960
     1961//go:cgo_import_dynamic libc_stat stat "libc.so"
    14861962
    14871963// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    14931969                return
    14941970        }
    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
     1978var libc_statfs_trampoline_addr uintptr
     1979
     1980//go:cgo_import_dynamic libc_statfs statfs "libc.so"
    15011981
    15021982// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    15131993                return
    15141994        }
    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
     2002var libc_symlink_trampoline_addr uintptr
     2003
     2004//go:cgo_import_dynamic libc_symlink symlink "libc.so"
    15212005
    15222006// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    15332017                return
    15342018        }
    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
     2026var libc_symlinkat_trampoline_addr uintptr
     2027
     2028//go:cgo_import_dynamic libc_symlinkat symlinkat "libc.so"
    15412029
    15422030// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    15432031
    15442032func 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
     2040var libc_sync_trampoline_addr uintptr
     2041
     2042//go:cgo_import_dynamic libc_sync sync "libc.so"
    15512043
    15522044// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    15582050                return
    15592051        }
    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
     2059var libc_truncate_trampoline_addr uintptr
     2060
     2061//go:cgo_import_dynamic libc_truncate truncate "libc.so"
    15662062
    15672063// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    15682064
    15692065func 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)
    15712067        oldmask = int(r0)
    15722068        return
    15732069}
    15742070
     2071var libc_umask_trampoline_addr uintptr
     2072
     2073//go:cgo_import_dynamic libc_umask umask "libc.so"
     2074
    15752075// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    15762076
     
    15812081                return
    15822082        }
    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
     2090var libc_unlink_trampoline_addr uintptr
     2091
     2092//go:cgo_import_dynamic libc_unlink unlink "libc.so"
    15892093
    15902094// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    15962100                return
    15972101        }
    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
     2109var libc_unlinkat_trampoline_addr uintptr
     2110
     2111//go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so"
    16042112
    16052113// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    16112119                return
    16122120        }
    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
     2128var libc_unmount_trampoline_addr uintptr
     2129
     2130//go:cgo_import_dynamic libc_unmount unmount "libc.so"
    16192131
    16202132// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    16272139                _p0 = unsafe.Pointer(&_zero)
    16282140        }
    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)))
    16302142        n = int(r0)
    16312143        if e1 != 0 {
     
    16352147}
    16362148
     2149var libc_write_trampoline_addr uintptr
     2150
     2151//go:cgo_import_dynamic libc_write write "libc.so"
     2152
    16372153// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    16382154
    16392155func 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))
    16412157        ret = uintptr(r0)
    16422158        if e1 != 0 {
     
    16462162}
    16472163
     2164var libc_mmap_trampoline_addr uintptr
     2165
     2166//go:cgo_import_dynamic libc_mmap mmap "libc.so"
     2167
    16482168// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    16492169
    16502170func 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
     2178var libc_munmap_trampoline_addr uintptr
     2179
     2180//go:cgo_import_dynamic libc_munmap munmap "libc.so"
    16572181
    16582182// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    16592183
    16602184func 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))
    16622186        n = int(r0)
    16632187        if e1 != 0 {
     
    16702194
    16712195func 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))
    16732197        n = int(r0)
    16742198        if e1 != 0 {
     
    16862210                return
    16872211        }
    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
     2219var 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.go
     1// go run mksyscall.go -l32 -openbsd -arm -libc -tags openbsd,arm syscall_bsd.go syscall_openbsd.go syscall_openbsd_arm.go
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    1717
    1818func 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)
    2020        n = int(r0)
    2121        if e1 != 0 {
     
    2525}
    2626
     27var libc_getgroups_trampoline_addr uintptr
     28
     29//go:cgo_import_dynamic libc_getgroups getgroups "libc.so"
     30
    2731// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    2832
    2933func 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
     41var libc_setgroups_trampoline_addr uintptr
     42
     43//go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
    3644
    3745// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    3846
    3947func 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)
    4149        wpid = int(r0)
    4250        if e1 != 0 {
     
    4654}
    4755
     56var libc_wait4_trampoline_addr uintptr
     57
     58//go:cgo_import_dynamic libc_wait4 wait4 "libc.so"
     59
    4860// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    4961
    5062func 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)))
    5264        fd = int(r0)
    5365        if e1 != 0 {
     
    5769}
    5870
     71var libc_accept_trampoline_addr uintptr
     72
     73//go:cgo_import_dynamic libc_accept accept "libc.so"
     74
    5975// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    6076
    6177func 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
     85var libc_bind_trampoline_addr uintptr
     86
     87//go:cgo_import_dynamic libc_bind bind "libc.so"
    6888
    6989// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7090
    7191func 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
     99var libc_connect_trampoline_addr uintptr
     100
     101//go:cgo_import_dynamic libc_connect connect "libc.so"
    78102
    79103// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    80104
    81105func 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))
    83107        fd = int(r0)
    84108        if e1 != 0 {
     
    88112}
    89113
     114var libc_socket_trampoline_addr uintptr
     115
     116//go:cgo_import_dynamic libc_socket socket "libc.so"
     117
    90118// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    91119
    92120func 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
     128var libc_getsockopt_trampoline_addr uintptr
     129
     130//go:cgo_import_dynamic libc_getsockopt getsockopt "libc.so"
    99131
    100132// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    101133
    102134func 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
     142var libc_setsockopt_trampoline_addr uintptr
     143
     144//go:cgo_import_dynamic libc_setsockopt setsockopt "libc.so"
    109145
    110146// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    111147
    112148func 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
     156var libc_getpeername_trampoline_addr uintptr
     157
     158//go:cgo_import_dynamic libc_getpeername getpeername "libc.so"
    119159
    120160// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    121161
    122162func 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
     170var libc_getsockname_trampoline_addr uintptr
     171
     172//go:cgo_import_dynamic libc_getsockname getsockname "libc.so"
    129173
    130174// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    131175
    132176func 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
     184var libc_shutdown_trampoline_addr uintptr
     185
     186//go:cgo_import_dynamic libc_shutdown shutdown "libc.so"
    139187
    140188// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    141189
    142190func 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
     198var libc_socketpair_trampoline_addr uintptr
     199
     200//go:cgo_import_dynamic libc_socketpair socketpair "libc.so"
    149201
    150202// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    157209                _p0 = unsafe.Pointer(&_zero)
    158210        }
    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)))
    160212        n = int(r0)
    161213        if e1 != 0 {
     
    164216        return
    165217}
     218
     219var libc_recvfrom_trampoline_addr uintptr
     220
     221//go:cgo_import_dynamic libc_recvfrom recvfrom "libc.so"
    166222
    167223// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    174230                _p0 = unsafe.Pointer(&_zero)
    175231        }
    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
     239var libc_sendto_trampoline_addr uintptr
     240
     241//go:cgo_import_dynamic libc_sendto sendto "libc.so"
    182242
    183243// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    184244
    185245func 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))
    187247        n = int(r0)
    188248        if e1 != 0 {
     
    192252}
    193253
     254var libc_recvmsg_trampoline_addr uintptr
     255
     256//go:cgo_import_dynamic libc_recvmsg recvmsg "libc.so"
     257
    194258// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    195259
    196260func 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))
    198262        n = int(r0)
    199263        if e1 != 0 {
     
    203267}
    204268
     269var libc_sendmsg_trampoline_addr uintptr
     270
     271//go:cgo_import_dynamic libc_sendmsg sendmsg "libc.so"
     272
    205273// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    206274
    207275func 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)))
    209277        n = int(r0)
    210278        if e1 != 0 {
     
    214282}
    215283
     284var libc_kevent_trampoline_addr uintptr
     285
     286//go:cgo_import_dynamic libc_kevent kevent "libc.so"
     287
    216288// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    217289
     
    222294                return
    223295        }
    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
     303var libc_utimes_trampoline_addr uintptr
     304
     305//go:cgo_import_dynamic libc_utimes utimes "libc.so"
    230306
    231307// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    232308
    233309func 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
     317var libc_futimes_trampoline_addr uintptr
     318
     319//go:cgo_import_dynamic libc_futimes futimes "libc.so"
    240320
    241321// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    242322
    243323func 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))
    245325        n = int(r0)
    246326        if e1 != 0 {
     
    249329        return
    250330}
     331
     332var libc_poll_trampoline_addr uintptr
     333
     334//go:cgo_import_dynamic libc_poll poll "libc.so"
    251335
    252336// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    259343                _p0 = unsafe.Pointer(&_zero)
    260344        }
    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
     352var libc_madvise_trampoline_addr uintptr
     353
     354//go:cgo_import_dynamic libc_madvise madvise "libc.so"
    267355
    268356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    275363                _p0 = unsafe.Pointer(&_zero)
    276364        }
    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
     372var libc_mlock_trampoline_addr uintptr
     373
     374//go:cgo_import_dynamic libc_mlock mlock "libc.so"
    283375
    284376// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    285377
    286378func 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
     386var libc_mlockall_trampoline_addr uintptr
     387
     388//go:cgo_import_dynamic libc_mlockall mlockall "libc.so"
    293389
    294390// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    301397                _p0 = unsafe.Pointer(&_zero)
    302398        }
    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
     406var libc_mprotect_trampoline_addr uintptr
     407
     408//go:cgo_import_dynamic libc_mprotect mprotect "libc.so"
    309409
    310410// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    317417                _p0 = unsafe.Pointer(&_zero)
    318418        }
    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
     426var libc_msync_trampoline_addr uintptr
     427
     428//go:cgo_import_dynamic libc_msync msync "libc.so"
    325429
    326430// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    333437                _p0 = unsafe.Pointer(&_zero)
    334438        }
    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
     446var libc_munlock_trampoline_addr uintptr
     447
     448//go:cgo_import_dynamic libc_munlock munlock "libc.so"
    341449
    342450// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    343451
    344452func 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
     460var libc_munlockall_trampoline_addr uintptr
     461
     462//go:cgo_import_dynamic libc_munlockall munlockall "libc.so"
    351463
    352464// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    353465
    354466func 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
     474var libc_pipe2_trampoline_addr uintptr
     475
     476//go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so"
    361477
    362478// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    369485                _p0 = unsafe.Pointer(&_zero)
    370486        }
    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)))
    372488        n = int(r0)
    373489        if e1 != 0 {
     
    376492        return
    377493}
     494
     495var libc_getdents_trampoline_addr uintptr
     496
     497//go:cgo_import_dynamic libc_getdents getdents "libc.so"
    378498
    379499// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    386506                _p0 = unsafe.Pointer(&_zero)
    387507        }
    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)
    389509        n = int(r0)
    390510        if e1 != 0 {
     
    394514}
    395515
     516var libc_getcwd_trampoline_addr uintptr
     517
     518//go:cgo_import_dynamic libc_getcwd getcwd "libc.so"
     519
    396520// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    397521
    398522func 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
     530var libc_ioctl_trampoline_addr uintptr
     531
     532//go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
    405533
    406534// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    413541                _p0 = unsafe.Pointer(&_zero)
    414542        }
    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
     550var libc_sysctl_trampoline_addr uintptr
     551
     552//go:cgo_import_dynamic libc_sysctl sysctl "libc.so"
    421553
    422554// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    423555
    424556func 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)
    426558        n = int(r0)
    427559        if e1 != 0 {
     
    431563}
    432564
     565var libc_ppoll_trampoline_addr uintptr
     566
     567//go:cgo_import_dynamic libc_ppoll ppoll "libc.so"
     568
    433569// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    434570
     
    439575                return
    440576        }
    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
     584var libc_access_trampoline_addr uintptr
     585
     586//go:cgo_import_dynamic libc_access access "libc.so"
    447587
    448588// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    449589
    450590func 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
     598var libc_adjtime_trampoline_addr uintptr
     599
     600//go:cgo_import_dynamic libc_adjtime adjtime "libc.so"
    457601
    458602// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    464608                return
    465609        }
    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
     617var libc_chdir_trampoline_addr uintptr
     618
     619//go:cgo_import_dynamic libc_chdir chdir "libc.so"
    472620
    473621// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    479627                return
    480628        }
    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
     636var libc_chflags_trampoline_addr uintptr
     637
     638//go:cgo_import_dynamic libc_chflags chflags "libc.so"
    487639
    488640// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    494646                return
    495647        }
    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
     655var libc_chmod_trampoline_addr uintptr
     656
     657//go:cgo_import_dynamic libc_chmod chmod "libc.so"
    502658
    503659// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    509665                return
    510666        }
    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
     674var libc_chown_trampoline_addr uintptr
     675
     676//go:cgo_import_dynamic libc_chown chown "libc.so"
    517677
    518678// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    524684                return
    525685        }
    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
     693var libc_chroot_trampoline_addr uintptr
     694
     695//go:cgo_import_dynamic libc_chroot chroot "libc.so"
    532696
    533697// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    534698
    535699func 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
     707var libc_close_trampoline_addr uintptr
     708
     709//go:cgo_import_dynamic libc_close close "libc.so"
    542710
    543711// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    544712
    545713func 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)
    547715        nfd = int(r0)
    548716        if e1 != 0 {
     
    552720}
    553721
     722var libc_dup_trampoline_addr uintptr
     723
     724//go:cgo_import_dynamic libc_dup dup "libc.so"
     725
    554726// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    555727
    556728func 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
     736var libc_dup2_trampoline_addr uintptr
     737
     738//go:cgo_import_dynamic libc_dup2 dup2 "libc.so"
    563739
    564740// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    565741
    566742func 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
     750var libc_dup3_trampoline_addr uintptr
     751
     752//go:cgo_import_dynamic libc_dup3 dup3 "libc.so"
    573753
    574754// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    575755
    576756func 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
     761var libc_exit_trampoline_addr uintptr
     762
     763//go:cgo_import_dynamic libc_exit exit "libc.so"
    580764
    581765// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    587771                return
    588772        }
    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
     780var libc_faccessat_trampoline_addr uintptr
     781
     782//go:cgo_import_dynamic libc_faccessat faccessat "libc.so"
    595783
    596784// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    597785
    598786func 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
     794var libc_fchdir_trampoline_addr uintptr
     795
     796//go:cgo_import_dynamic libc_fchdir fchdir "libc.so"
    605797
    606798// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    607799
    608800func 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
     808var libc_fchflags_trampoline_addr uintptr
     809
     810//go:cgo_import_dynamic libc_fchflags fchflags "libc.so"
    615811
    616812// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    617813
    618814func 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
     822var libc_fchmod_trampoline_addr uintptr
     823
     824//go:cgo_import_dynamic libc_fchmod fchmod "libc.so"
    625825
    626826// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    632832                return
    633833        }
    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
     841var libc_fchmodat_trampoline_addr uintptr
     842
     843//go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so"
    640844
    641845// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    642846
    643847func 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
     855var libc_fchown_trampoline_addr uintptr
     856
     857//go:cgo_import_dynamic libc_fchown fchown "libc.so"
    650858
    651859// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    657865                return
    658866        }
    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
     874var libc_fchownat_trampoline_addr uintptr
     875
     876//go:cgo_import_dynamic libc_fchownat fchownat "libc.so"
    665877
    666878// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    667879
    668880func 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
     888var libc_flock_trampoline_addr uintptr
     889
     890//go:cgo_import_dynamic libc_flock flock "libc.so"
    675891
    676892// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    677893
    678894func 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)
    680896        val = int(r0)
    681897        if e1 != 0 {
     
    685901}
    686902
     903var libc_fpathconf_trampoline_addr uintptr
     904
     905//go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so"
     906
    687907// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    688908
    689909func 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
     917var libc_fstat_trampoline_addr uintptr
     918
     919//go:cgo_import_dynamic libc_fstat fstat "libc.so"
    696920
    697921// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    703927                return
    704928        }
    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
     936var libc_fstatat_trampoline_addr uintptr
     937
     938//go:cgo_import_dynamic libc_fstatat fstatat "libc.so"
    711939
    712940// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    713941
    714942func 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
     950var libc_fstatfs_trampoline_addr uintptr
     951
     952//go:cgo_import_dynamic libc_fstatfs fstatfs "libc.so"
    721953
    722954// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    723955
    724956func 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
     964var libc_fsync_trampoline_addr uintptr
     965
     966//go:cgo_import_dynamic libc_fsync fsync "libc.so"
    731967
    732968// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    733969
    734970func 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
     978var libc_ftruncate_trampoline_addr uintptr
     979
     980//go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so"
    741981
    742982// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    743983
    744984func Getegid() (egid int) {
    745         r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
     985        r0, _, _ := syscall_rawSyscall(libc_getegid_trampoline_addr, 0, 0, 0)
    746986        egid = int(r0)
    747987        return
    748988}
    749989
     990var libc_getegid_trampoline_addr uintptr
     991
     992//go:cgo_import_dynamic libc_getegid getegid "libc.so"
     993
    750994// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    751995
    752996func Geteuid() (uid int) {
    753         r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
     997        r0, _, _ := syscall_rawSyscall(libc_geteuid_trampoline_addr, 0, 0, 0)
    754998        uid = int(r0)
    755999        return
    7561000}
    7571001
     1002var libc_geteuid_trampoline_addr uintptr
     1003
     1004//go:cgo_import_dynamic libc_geteuid geteuid "libc.so"
     1005
    7581006// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7591007
    7601008func Getgid() (gid int) {
    761         r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
     1009        r0, _, _ := syscall_rawSyscall(libc_getgid_trampoline_addr, 0, 0, 0)
    7621010        gid = int(r0)
    7631011        return
    7641012}
    7651013
     1014var libc_getgid_trampoline_addr uintptr
     1015
     1016//go:cgo_import_dynamic libc_getgid getgid "libc.so"
     1017
    7661018// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7671019
    7681020func 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)
    7701022        pgid = int(r0)
    7711023        if e1 != 0 {
     
    7751027}
    7761028
     1029var libc_getpgid_trampoline_addr uintptr
     1030
     1031//go:cgo_import_dynamic libc_getpgid getpgid "libc.so"
     1032
    7771033// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7781034
    7791035func Getpgrp() (pgrp int) {
    780         r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
     1036        r0, _, _ := syscall_rawSyscall(libc_getpgrp_trampoline_addr, 0, 0, 0)
    7811037        pgrp = int(r0)
    7821038        return
    7831039}
    7841040
     1041var libc_getpgrp_trampoline_addr uintptr
     1042
     1043//go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so"
     1044
    7851045// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7861046
    7871047func Getpid() (pid int) {
    788         r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
     1048        r0, _, _ := syscall_rawSyscall(libc_getpid_trampoline_addr, 0, 0, 0)
    7891049        pid = int(r0)
    7901050        return
    7911051}
    7921052
     1053var libc_getpid_trampoline_addr uintptr
     1054
     1055//go:cgo_import_dynamic libc_getpid getpid "libc.so"
     1056
    7931057// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7941058
    7951059func Getppid() (ppid int) {
    796         r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
     1060        r0, _, _ := syscall_rawSyscall(libc_getppid_trampoline_addr, 0, 0, 0)
    7971061        ppid = int(r0)
    7981062        return
    7991063}
    8001064
     1065var libc_getppid_trampoline_addr uintptr
     1066
     1067//go:cgo_import_dynamic libc_getppid getppid "libc.so"
     1068
    8011069// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8021070
    8031071func 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)
    8051073        prio = int(r0)
    8061074        if e1 != 0 {
     
    8101078}
    8111079
     1080var libc_getpriority_trampoline_addr uintptr
     1081
     1082//go:cgo_import_dynamic libc_getpriority getpriority "libc.so"
     1083
    8121084// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8131085
    8141086func 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
     1094var libc_getrlimit_trampoline_addr uintptr
     1095
     1096//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so"
    8211097
    8221098// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8231099
    8241100func 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)
    8261102        rtable = int(r0)
    8271103        if e1 != 0 {
     
    8311107}
    8321108
     1109var libc_getrtable_trampoline_addr uintptr
     1110
     1111//go:cgo_import_dynamic libc_getrtable getrtable "libc.so"
     1112
    8331113// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8341114
    8351115func 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
     1123var libc_getrusage_trampoline_addr uintptr
     1124
     1125//go:cgo_import_dynamic libc_getrusage getrusage "libc.so"
    8421126
    8431127// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8441128
    8451129func 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)
    8471131        sid = int(r0)
    8481132        if e1 != 0 {
     
    8521136}
    8531137
     1138var libc_getsid_trampoline_addr uintptr
     1139
     1140//go:cgo_import_dynamic libc_getsid getsid "libc.so"
     1141
    8541142// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8551143
    8561144func 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
     1152var libc_gettimeofday_trampoline_addr uintptr
     1153
     1154//go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so"
    8631155
    8641156// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8651157
    8661158func Getuid() (uid int) {
    867         r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
     1159        r0, _, _ := syscall_rawSyscall(libc_getuid_trampoline_addr, 0, 0, 0)
    8681160        uid = int(r0)
    8691161        return
    8701162}
    8711163
     1164var libc_getuid_trampoline_addr uintptr
     1165
     1166//go:cgo_import_dynamic libc_getuid getuid "libc.so"
     1167
    8721168// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8731169
    8741170func Issetugid() (tainted bool) {
    875         r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)
     1171        r0, _, _ := syscall_syscall(libc_issetugid_trampoline_addr, 0, 0, 0)
    8761172        tainted = bool(r0 != 0)
    8771173        return
    8781174}
    8791175
     1176var libc_issetugid_trampoline_addr uintptr
     1177
     1178//go:cgo_import_dynamic libc_issetugid issetugid "libc.so"
     1179
    8801180// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8811181
    8821182func 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
     1190var libc_kill_trampoline_addr uintptr
     1191
     1192//go:cgo_import_dynamic libc_kill kill "libc.so"
    8891193
    8901194// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8911195
    8921196func 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)
    8941198        fd = int(r0)
    8951199        if e1 != 0 {
     
    8991203}
    9001204
     1205var libc_kqueue_trampoline_addr uintptr
     1206
     1207//go:cgo_import_dynamic libc_kqueue kqueue "libc.so"
     1208
    9011209// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    9021210
     
    9071215                return
    9081216        }
    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
     1224var libc_lchown_trampoline_addr uintptr
     1225
     1226//go:cgo_import_dynamic libc_lchown lchown "libc.so"
    9151227
    9161228// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    9271239                return
    9281240        }
    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
     1248var libc_link_trampoline_addr uintptr
     1249
     1250//go:cgo_import_dynamic libc_link link "libc.so"
    9351251
    9361252// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    9471263                return
    9481264        }
    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
     1272var libc_linkat_trampoline_addr uintptr
     1273
     1274//go:cgo_import_dynamic libc_linkat linkat "libc.so"
    9551275
    9561276// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    9571277
    9581278func 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
     1286var libc_listen_trampoline_addr uintptr
     1287
     1288//go:cgo_import_dynamic libc_listen listen "libc.so"
    9651289
    9661290// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    9721296                return
    9731297        }
    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
     1305var libc_lstat_trampoline_addr uintptr
     1306
     1307//go:cgo_import_dynamic libc_lstat lstat "libc.so"
    9801308
    9811309// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    9871315                return
    9881316        }
    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
     1324var libc_mkdir_trampoline_addr uintptr
     1325
     1326//go:cgo_import_dynamic libc_mkdir mkdir "libc.so"
    9951327
    9961328// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10021334                return
    10031335        }
    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
     1343var libc_mkdirat_trampoline_addr uintptr
     1344
     1345//go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so"
    10101346
    10111347// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10171353                return
    10181354        }
    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
     1362var libc_mkfifo_trampoline_addr uintptr
     1363
     1364//go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so"
    10251365
    10261366// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10321372                return
    10331373        }
    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
     1381var libc_mkfifoat_trampoline_addr uintptr
     1382
     1383//go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so"
    10401384
    10411385// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10471391                return
    10481392        }
    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
     1400var libc_mknod_trampoline_addr uintptr
     1401
     1402//go:cgo_import_dynamic libc_mknod mknod "libc.so"
    10551403
    10561404// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10621410                return
    10631411        }
    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
     1419var libc_mknodat_trampoline_addr uintptr
     1420
     1421//go:cgo_import_dynamic libc_mknodat mknodat "libc.so"
    10701422
    10711423// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    10721424
    10731425func 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
     1433var libc_nanosleep_trampoline_addr uintptr
     1434
     1435//go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so"
    10801436
    10811437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10871443                return
    10881444        }
    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))
    10901446        fd = int(r0)
    10911447        if e1 != 0 {
     
    10951451}
    10961452
     1453var libc_open_trampoline_addr uintptr
     1454
     1455//go:cgo_import_dynamic libc_open open "libc.so"
     1456
    10971457// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    10981458
     
    11031463                return
    11041464        }
    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)
    11061466        fd = int(r0)
    11071467        if e1 != 0 {
     
    11111471}
    11121472
     1473var libc_openat_trampoline_addr uintptr
     1474
     1475//go:cgo_import_dynamic libc_openat openat "libc.so"
     1476
    11131477// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    11141478
     
    11191483                return
    11201484        }
    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)
    11221486        val = int(r0)
    11231487        if e1 != 0 {
     
    11261490        return
    11271491}
     1492
     1493var libc_pathconf_trampoline_addr uintptr
     1494
     1495//go:cgo_import_dynamic libc_pathconf pathconf "libc.so"
    11281496
    11291497// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    11361504                _p0 = unsafe.Pointer(&_zero)
    11371505        }
    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))
    11391507        n = int(r0)
    11401508        if e1 != 0 {
     
    11431511        return
    11441512}
     1513
     1514var libc_pread_trampoline_addr uintptr
     1515
     1516//go:cgo_import_dynamic libc_pread pread "libc.so"
    11451517
    11461518// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    11531525                _p0 = unsafe.Pointer(&_zero)
    11541526        }
    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))
    11561528        n = int(r0)
    11571529        if e1 != 0 {
     
    11601532        return
    11611533}
     1534
     1535var libc_pwrite_trampoline_addr uintptr
     1536
     1537//go:cgo_import_dynamic libc_pwrite pwrite "libc.so"
    11621538
    11631539// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    11701546                _p0 = unsafe.Pointer(&_zero)
    11711547        }
    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)))
    11731549        n = int(r0)
    11741550        if e1 != 0 {
     
    11771553        return
    11781554}
     1555
     1556var libc_read_trampoline_addr uintptr
     1557
     1558//go:cgo_import_dynamic libc_read read "libc.so"
    11791559
    11801560// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    11921572                _p1 = unsafe.Pointer(&_zero)
    11931573        }
    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)))
    11951575        n = int(r0)
    11961576        if e1 != 0 {
     
    11991579        return
    12001580}
     1581
     1582var libc_readlink_trampoline_addr uintptr
     1583
     1584//go:cgo_import_dynamic libc_readlink readlink "libc.so"
    12011585
    12021586// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    12141598                _p1 = unsafe.Pointer(&_zero)
    12151599        }
    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)
    12171601        n = int(r0)
    12181602        if e1 != 0 {
     
    12211605        return
    12221606}
     1607
     1608var libc_readlinkat_trampoline_addr uintptr
     1609
     1610//go:cgo_import_dynamic libc_readlinkat readlinkat "libc.so"
    12231611
    12241612// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    12351623                return
    12361624        }
    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
     1632var libc_rename_trampoline_addr uintptr
     1633
     1634//go:cgo_import_dynamic libc_rename rename "libc.so"
    12431635
    12441636// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    12551647                return
    12561648        }
    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
     1656var libc_renameat_trampoline_addr uintptr
     1657
     1658//go:cgo_import_dynamic libc_renameat renameat "libc.so"
    12631659
    12641660// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    12701666                return
    12711667        }
    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
     1675var libc_revoke_trampoline_addr uintptr
     1676
     1677//go:cgo_import_dynamic libc_revoke revoke "libc.so"
    12781678
    12791679// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    12851685                return
    12861686        }
    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
     1694var libc_rmdir_trampoline_addr uintptr
     1695
     1696//go:cgo_import_dynamic libc_rmdir rmdir "libc.so"
    12931697
    12941698// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    12951699
    12961700func 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)
    12981702        newoffset = int64(int64(r1)<<32 | int64(r0))
    12991703        if e1 != 0 {
     
    13031707}
    13041708
     1709var libc_lseek_trampoline_addr uintptr
     1710
     1711//go:cgo_import_dynamic libc_lseek lseek "libc.so"
     1712
    13051713// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13061714
    13071715func 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)
    13091717        n = int(r0)
    13101718        if e1 != 0 {
     
    13141722}
    13151723
     1724var libc_select_trampoline_addr uintptr
     1725
     1726//go:cgo_import_dynamic libc_select select "libc.so"
     1727
    13161728// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13171729
    13181730func 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
     1738var libc_setegid_trampoline_addr uintptr
     1739
     1740//go:cgo_import_dynamic libc_setegid setegid "libc.so"
    13251741
    13261742// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13271743
    13281744func 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
     1752var libc_seteuid_trampoline_addr uintptr
     1753
     1754//go:cgo_import_dynamic libc_seteuid seteuid "libc.so"
    13351755
    13361756// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13371757
    13381758func 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
     1766var libc_setgid_trampoline_addr uintptr
     1767
     1768//go:cgo_import_dynamic libc_setgid setgid "libc.so"
    13451769
    13461770// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    13521776                return
    13531777        }
    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
     1785var libc_setlogin_trampoline_addr uintptr
     1786
     1787//go:cgo_import_dynamic libc_setlogin setlogin "libc.so"
    13601788
    13611789// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13621790
    13631791func 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
     1799var libc_setpgid_trampoline_addr uintptr
     1800
     1801//go:cgo_import_dynamic libc_setpgid setpgid "libc.so"
    13701802
    13711803// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13721804
    13731805func 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
     1813var libc_setpriority_trampoline_addr uintptr
     1814
     1815//go:cgo_import_dynamic libc_setpriority setpriority "libc.so"
    13801816
    13811817// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13821818
    13831819func 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
     1827var libc_setregid_trampoline_addr uintptr
     1828
     1829//go:cgo_import_dynamic libc_setregid setregid "libc.so"
    13901830
    13911831// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13921832
    13931833func 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
     1841var libc_setreuid_trampoline_addr uintptr
     1842
     1843//go:cgo_import_dynamic libc_setreuid setreuid "libc.so"
    14001844
    14011845// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14021846
    14031847func 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
     1855var libc_setresgid_trampoline_addr uintptr
     1856
     1857//go:cgo_import_dynamic libc_setresgid setresgid "libc.so"
    14101858
    14111859// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14121860
    14131861func 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
     1869var libc_setresuid_trampoline_addr uintptr
     1870
     1871//go:cgo_import_dynamic libc_setresuid setresuid "libc.so"
    14201872
    14211873// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14221874
    14231875func 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
     1883var libc_setrlimit_trampoline_addr uintptr
     1884
     1885//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so"
    14301886
    14311887// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14321888
    14331889func 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
     1897var libc_setrtable_trampoline_addr uintptr
     1898
     1899//go:cgo_import_dynamic libc_setrtable setrtable "libc.so"
    14401900
    14411901// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14421902
    14431903func 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)
    14451905        pid = int(r0)
    14461906        if e1 != 0 {
     
    14501910}
    14511911
     1912var libc_setsid_trampoline_addr uintptr
     1913
     1914//go:cgo_import_dynamic libc_setsid setsid "libc.so"
     1915
    14521916// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14531917
    14541918func 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
     1926var libc_settimeofday_trampoline_addr uintptr
     1927
     1928//go:cgo_import_dynamic libc_settimeofday settimeofday "libc.so"
    14611929
    14621930// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14631931
    14641932func 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
     1940var libc_setuid_trampoline_addr uintptr
     1941
     1942//go:cgo_import_dynamic libc_setuid setuid "libc.so"
    14711943
    14721944// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    14781950                return
    14791951        }
    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
     1959var libc_stat_trampoline_addr uintptr
     1960
     1961//go:cgo_import_dynamic libc_stat stat "libc.so"
    14861962
    14871963// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    14931969                return
    14941970        }
    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
     1978var libc_statfs_trampoline_addr uintptr
     1979
     1980//go:cgo_import_dynamic libc_statfs statfs "libc.so"
    15011981
    15021982// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    15131993                return
    15141994        }
    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
     2002var libc_symlink_trampoline_addr uintptr
     2003
     2004//go:cgo_import_dynamic libc_symlink symlink "libc.so"
    15212005
    15222006// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    15332017                return
    15342018        }
    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
     2026var libc_symlinkat_trampoline_addr uintptr
     2027
     2028//go:cgo_import_dynamic libc_symlinkat symlinkat "libc.so"
    15412029
    15422030// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    15432031
    15442032func 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
     2040var libc_sync_trampoline_addr uintptr
     2041
     2042//go:cgo_import_dynamic libc_sync sync "libc.so"
    15512043
    15522044// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    15582050                return
    15592051        }
    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
     2059var libc_truncate_trampoline_addr uintptr
     2060
     2061//go:cgo_import_dynamic libc_truncate truncate "libc.so"
    15662062
    15672063// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    15682064
    15692065func 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)
    15712067        oldmask = int(r0)
    15722068        return
    15732069}
    15742070
     2071var libc_umask_trampoline_addr uintptr
     2072
     2073//go:cgo_import_dynamic libc_umask umask "libc.so"
     2074
    15752075// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    15762076
     
    15812081                return
    15822082        }
    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
     2090var libc_unlink_trampoline_addr uintptr
     2091
     2092//go:cgo_import_dynamic libc_unlink unlink "libc.so"
    15892093
    15902094// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    15962100                return
    15972101        }
    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
     2109var libc_unlinkat_trampoline_addr uintptr
     2110
     2111//go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so"
    16042112
    16052113// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    16112119                return
    16122120        }
    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
     2128var libc_unmount_trampoline_addr uintptr
     2129
     2130//go:cgo_import_dynamic libc_unmount unmount "libc.so"
    16192131
    16202132// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    16272139                _p0 = unsafe.Pointer(&_zero)
    16282140        }
    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)))
    16302142        n = int(r0)
    16312143        if e1 != 0 {
     
    16352147}
    16362148
     2149var libc_write_trampoline_addr uintptr
     2150
     2151//go:cgo_import_dynamic libc_write write "libc.so"
     2152
    16372153// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    16382154
    16392155func 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)
    16412157        ret = uintptr(r0)
    16422158        if e1 != 0 {
     
    16462162}
    16472163
     2164var libc_mmap_trampoline_addr uintptr
     2165
     2166//go:cgo_import_dynamic libc_mmap mmap "libc.so"
     2167
    16482168// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    16492169
    16502170func 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
     2178var libc_munmap_trampoline_addr uintptr
     2179
     2180//go:cgo_import_dynamic libc_munmap munmap "libc.so"
    16572181
    16582182// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    16592183
    16602184func 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))
    16622186        n = int(r0)
    16632187        if e1 != 0 {
     
    16702194
    16712195func 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))
    16732197        n = int(r0)
    16742198        if e1 != 0 {
     
    16862210                return
    16872211        }
    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
     2219var 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.go
     1// go run mksyscall.go -openbsd -libc -tags openbsd,arm64 syscall_bsd.go syscall_openbsd.go syscall_openbsd_arm64.go
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    1717
    1818func 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)
    2020        n = int(r0)
    2121        if e1 != 0 {
     
    2525}
    2626
     27var libc_getgroups_trampoline_addr uintptr
     28
     29//go:cgo_import_dynamic libc_getgroups getgroups "libc.so"
     30
    2731// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    2832
    2933func 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
     41var libc_setgroups_trampoline_addr uintptr
     42
     43//go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
    3644
    3745// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    3846
    3947func 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)
    4149        wpid = int(r0)
    4250        if e1 != 0 {
     
    4654}
    4755
     56var libc_wait4_trampoline_addr uintptr
     57
     58//go:cgo_import_dynamic libc_wait4 wait4 "libc.so"
     59
    4860// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    4961
    5062func 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)))
    5264        fd = int(r0)
    5365        if e1 != 0 {
     
    5769}
    5870
     71var libc_accept_trampoline_addr uintptr
     72
     73//go:cgo_import_dynamic libc_accept accept "libc.so"
     74
    5975// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    6076
    6177func 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
     85var libc_bind_trampoline_addr uintptr
     86
     87//go:cgo_import_dynamic libc_bind bind "libc.so"
    6888
    6989// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7090
    7191func 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
     99var libc_connect_trampoline_addr uintptr
     100
     101//go:cgo_import_dynamic libc_connect connect "libc.so"
    78102
    79103// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    80104
    81105func 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))
    83107        fd = int(r0)
    84108        if e1 != 0 {
     
    88112}
    89113
     114var libc_socket_trampoline_addr uintptr
     115
     116//go:cgo_import_dynamic libc_socket socket "libc.so"
     117
    90118// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    91119
    92120func 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
     128var libc_getsockopt_trampoline_addr uintptr
     129
     130//go:cgo_import_dynamic libc_getsockopt getsockopt "libc.so"
    99131
    100132// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    101133
    102134func 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
     142var libc_setsockopt_trampoline_addr uintptr
     143
     144//go:cgo_import_dynamic libc_setsockopt setsockopt "libc.so"
    109145
    110146// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    111147
    112148func 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
     156var libc_getpeername_trampoline_addr uintptr
     157
     158//go:cgo_import_dynamic libc_getpeername getpeername "libc.so"
    119159
    120160// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    121161
    122162func 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
     170var libc_getsockname_trampoline_addr uintptr
     171
     172//go:cgo_import_dynamic libc_getsockname getsockname "libc.so"
    129173
    130174// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    131175
    132176func 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
     184var libc_shutdown_trampoline_addr uintptr
     185
     186//go:cgo_import_dynamic libc_shutdown shutdown "libc.so"
    139187
    140188// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    141189
    142190func 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
     198var libc_socketpair_trampoline_addr uintptr
     199
     200//go:cgo_import_dynamic libc_socketpair socketpair "libc.so"
    149201
    150202// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    157209                _p0 = unsafe.Pointer(&_zero)
    158210        }
    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)))
    160212        n = int(r0)
    161213        if e1 != 0 {
     
    164216        return
    165217}
     218
     219var libc_recvfrom_trampoline_addr uintptr
     220
     221//go:cgo_import_dynamic libc_recvfrom recvfrom "libc.so"
    166222
    167223// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    174230                _p0 = unsafe.Pointer(&_zero)
    175231        }
    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
     239var libc_sendto_trampoline_addr uintptr
     240
     241//go:cgo_import_dynamic libc_sendto sendto "libc.so"
    182242
    183243// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    184244
    185245func 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))
    187247        n = int(r0)
    188248        if e1 != 0 {
     
    192252}
    193253
     254var libc_recvmsg_trampoline_addr uintptr
     255
     256//go:cgo_import_dynamic libc_recvmsg recvmsg "libc.so"
     257
    194258// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    195259
    196260func 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))
    198262        n = int(r0)
    199263        if e1 != 0 {
     
    203267}
    204268
     269var libc_sendmsg_trampoline_addr uintptr
     270
     271//go:cgo_import_dynamic libc_sendmsg sendmsg "libc.so"
     272
    205273// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    206274
    207275func 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)))
    209277        n = int(r0)
    210278        if e1 != 0 {
     
    214282}
    215283
     284var libc_kevent_trampoline_addr uintptr
     285
     286//go:cgo_import_dynamic libc_kevent kevent "libc.so"
     287
    216288// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    217289
     
    222294                return
    223295        }
    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
     303var libc_utimes_trampoline_addr uintptr
     304
     305//go:cgo_import_dynamic libc_utimes utimes "libc.so"
    230306
    231307// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    232308
    233309func 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
     317var libc_futimes_trampoline_addr uintptr
     318
     319//go:cgo_import_dynamic libc_futimes futimes "libc.so"
    240320
    241321// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    242322
    243323func 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))
    245325        n = int(r0)
    246326        if e1 != 0 {
     
    249329        return
    250330}
     331
     332var libc_poll_trampoline_addr uintptr
     333
     334//go:cgo_import_dynamic libc_poll poll "libc.so"
    251335
    252336// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    259343                _p0 = unsafe.Pointer(&_zero)
    260344        }
    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
     352var libc_madvise_trampoline_addr uintptr
     353
     354//go:cgo_import_dynamic libc_madvise madvise "libc.so"
    267355
    268356// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    275363                _p0 = unsafe.Pointer(&_zero)
    276364        }
    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
     372var libc_mlock_trampoline_addr uintptr
     373
     374//go:cgo_import_dynamic libc_mlock mlock "libc.so"
    283375
    284376// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    285377
    286378func 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
     386var libc_mlockall_trampoline_addr uintptr
     387
     388//go:cgo_import_dynamic libc_mlockall mlockall "libc.so"
    293389
    294390// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    301397                _p0 = unsafe.Pointer(&_zero)
    302398        }
    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
     406var libc_mprotect_trampoline_addr uintptr
     407
     408//go:cgo_import_dynamic libc_mprotect mprotect "libc.so"
    309409
    310410// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    317417                _p0 = unsafe.Pointer(&_zero)
    318418        }
    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
     426var libc_msync_trampoline_addr uintptr
     427
     428//go:cgo_import_dynamic libc_msync msync "libc.so"
    325429
    326430// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    333437                _p0 = unsafe.Pointer(&_zero)
    334438        }
    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
     446var libc_munlock_trampoline_addr uintptr
     447
     448//go:cgo_import_dynamic libc_munlock munlock "libc.so"
    341449
    342450// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    343451
    344452func 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
     460var libc_munlockall_trampoline_addr uintptr
     461
     462//go:cgo_import_dynamic libc_munlockall munlockall "libc.so"
    351463
    352464// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    353465
    354466func 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
     474var libc_pipe2_trampoline_addr uintptr
     475
     476//go:cgo_import_dynamic libc_pipe2 pipe2 "libc.so"
    361477
    362478// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    369485                _p0 = unsafe.Pointer(&_zero)
    370486        }
    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)))
    372488        n = int(r0)
    373489        if e1 != 0 {
     
    376492        return
    377493}
     494
     495var libc_getdents_trampoline_addr uintptr
     496
     497//go:cgo_import_dynamic libc_getdents getdents "libc.so"
    378498
    379499// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    386506                _p0 = unsafe.Pointer(&_zero)
    387507        }
    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)
    389509        n = int(r0)
    390510        if e1 != 0 {
     
    394514}
    395515
     516var libc_getcwd_trampoline_addr uintptr
     517
     518//go:cgo_import_dynamic libc_getcwd getcwd "libc.so"
     519
    396520// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    397521
    398522func 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
     530var libc_ioctl_trampoline_addr uintptr
     531
     532//go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
    405533
    406534// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    413541                _p0 = unsafe.Pointer(&_zero)
    414542        }
    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
     550var libc_sysctl_trampoline_addr uintptr
     551
     552//go:cgo_import_dynamic libc_sysctl sysctl "libc.so"
    421553
    422554// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    423555
    424556func 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)
    426558        n = int(r0)
    427559        if e1 != 0 {
     
    431563}
    432564
     565var libc_ppoll_trampoline_addr uintptr
     566
     567//go:cgo_import_dynamic libc_ppoll ppoll "libc.so"
     568
    433569// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    434570
     
    439575                return
    440576        }
    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
     584var libc_access_trampoline_addr uintptr
     585
     586//go:cgo_import_dynamic libc_access access "libc.so"
    447587
    448588// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    449589
    450590func 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
     598var libc_adjtime_trampoline_addr uintptr
     599
     600//go:cgo_import_dynamic libc_adjtime adjtime "libc.so"
    457601
    458602// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    464608                return
    465609        }
    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
     617var libc_chdir_trampoline_addr uintptr
     618
     619//go:cgo_import_dynamic libc_chdir chdir "libc.so"
    472620
    473621// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    479627                return
    480628        }
    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
     636var libc_chflags_trampoline_addr uintptr
     637
     638//go:cgo_import_dynamic libc_chflags chflags "libc.so"
    487639
    488640// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    494646                return
    495647        }
    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
     655var libc_chmod_trampoline_addr uintptr
     656
     657//go:cgo_import_dynamic libc_chmod chmod "libc.so"
    502658
    503659// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    509665                return
    510666        }
    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
     674var libc_chown_trampoline_addr uintptr
     675
     676//go:cgo_import_dynamic libc_chown chown "libc.so"
    517677
    518678// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    524684                return
    525685        }
    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
     693var libc_chroot_trampoline_addr uintptr
     694
     695//go:cgo_import_dynamic libc_chroot chroot "libc.so"
    532696
    533697// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    534698
    535699func 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
     707var libc_close_trampoline_addr uintptr
     708
     709//go:cgo_import_dynamic libc_close close "libc.so"
    542710
    543711// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    544712
    545713func 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)
    547715        nfd = int(r0)
    548716        if e1 != 0 {
     
    552720}
    553721
     722var libc_dup_trampoline_addr uintptr
     723
     724//go:cgo_import_dynamic libc_dup dup "libc.so"
     725
    554726// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    555727
    556728func 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
     736var libc_dup2_trampoline_addr uintptr
     737
     738//go:cgo_import_dynamic libc_dup2 dup2 "libc.so"
    563739
    564740// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    565741
    566742func 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
     750var libc_dup3_trampoline_addr uintptr
     751
     752//go:cgo_import_dynamic libc_dup3 dup3 "libc.so"
    573753
    574754// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    575755
    576756func 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
     761var libc_exit_trampoline_addr uintptr
     762
     763//go:cgo_import_dynamic libc_exit exit "libc.so"
    580764
    581765// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    587771                return
    588772        }
    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
     780var libc_faccessat_trampoline_addr uintptr
     781
     782//go:cgo_import_dynamic libc_faccessat faccessat "libc.so"
    595783
    596784// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    597785
    598786func 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
     794var libc_fchdir_trampoline_addr uintptr
     795
     796//go:cgo_import_dynamic libc_fchdir fchdir "libc.so"
    605797
    606798// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    607799
    608800func 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
     808var libc_fchflags_trampoline_addr uintptr
     809
     810//go:cgo_import_dynamic libc_fchflags fchflags "libc.so"
    615811
    616812// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    617813
    618814func 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
     822var libc_fchmod_trampoline_addr uintptr
     823
     824//go:cgo_import_dynamic libc_fchmod fchmod "libc.so"
    625825
    626826// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    632832                return
    633833        }
    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
     841var libc_fchmodat_trampoline_addr uintptr
     842
     843//go:cgo_import_dynamic libc_fchmodat fchmodat "libc.so"
    640844
    641845// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    642846
    643847func 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
     855var libc_fchown_trampoline_addr uintptr
     856
     857//go:cgo_import_dynamic libc_fchown fchown "libc.so"
    650858
    651859// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    657865                return
    658866        }
    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
     874var libc_fchownat_trampoline_addr uintptr
     875
     876//go:cgo_import_dynamic libc_fchownat fchownat "libc.so"
    665877
    666878// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    667879
    668880func 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
     888var libc_flock_trampoline_addr uintptr
     889
     890//go:cgo_import_dynamic libc_flock flock "libc.so"
    675891
    676892// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    677893
    678894func 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)
    680896        val = int(r0)
    681897        if e1 != 0 {
     
    685901}
    686902
     903var libc_fpathconf_trampoline_addr uintptr
     904
     905//go:cgo_import_dynamic libc_fpathconf fpathconf "libc.so"
     906
    687907// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    688908
    689909func 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
     917var libc_fstat_trampoline_addr uintptr
     918
     919//go:cgo_import_dynamic libc_fstat fstat "libc.so"
    696920
    697921// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    703927                return
    704928        }
    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
     936var libc_fstatat_trampoline_addr uintptr
     937
     938//go:cgo_import_dynamic libc_fstatat fstatat "libc.so"
    711939
    712940// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    713941
    714942func 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
     950var libc_fstatfs_trampoline_addr uintptr
     951
     952//go:cgo_import_dynamic libc_fstatfs fstatfs "libc.so"
    721953
    722954// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    723955
    724956func 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
     964var libc_fsync_trampoline_addr uintptr
     965
     966//go:cgo_import_dynamic libc_fsync fsync "libc.so"
    731967
    732968// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    733969
    734970func 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
     978var libc_ftruncate_trampoline_addr uintptr
     979
     980//go:cgo_import_dynamic libc_ftruncate ftruncate "libc.so"
    741981
    742982// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    743983
    744984func Getegid() (egid int) {
    745         r0, _, _ := RawSyscall(SYS_GETEGID, 0, 0, 0)
     985        r0, _, _ := syscall_rawSyscall(libc_getegid_trampoline_addr, 0, 0, 0)
    746986        egid = int(r0)
    747987        return
    748988}
    749989
     990var libc_getegid_trampoline_addr uintptr
     991
     992//go:cgo_import_dynamic libc_getegid getegid "libc.so"
     993
    750994// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    751995
    752996func Geteuid() (uid int) {
    753         r0, _, _ := RawSyscall(SYS_GETEUID, 0, 0, 0)
     997        r0, _, _ := syscall_rawSyscall(libc_geteuid_trampoline_addr, 0, 0, 0)
    754998        uid = int(r0)
    755999        return
    7561000}
    7571001
     1002var libc_geteuid_trampoline_addr uintptr
     1003
     1004//go:cgo_import_dynamic libc_geteuid geteuid "libc.so"
     1005
    7581006// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7591007
    7601008func Getgid() (gid int) {
    761         r0, _, _ := RawSyscall(SYS_GETGID, 0, 0, 0)
     1009        r0, _, _ := syscall_rawSyscall(libc_getgid_trampoline_addr, 0, 0, 0)
    7621010        gid = int(r0)
    7631011        return
    7641012}
    7651013
     1014var libc_getgid_trampoline_addr uintptr
     1015
     1016//go:cgo_import_dynamic libc_getgid getgid "libc.so"
     1017
    7661018// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7671019
    7681020func 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)
    7701022        pgid = int(r0)
    7711023        if e1 != 0 {
     
    7751027}
    7761028
     1029var libc_getpgid_trampoline_addr uintptr
     1030
     1031//go:cgo_import_dynamic libc_getpgid getpgid "libc.so"
     1032
    7771033// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7781034
    7791035func Getpgrp() (pgrp int) {
    780         r0, _, _ := RawSyscall(SYS_GETPGRP, 0, 0, 0)
     1036        r0, _, _ := syscall_rawSyscall(libc_getpgrp_trampoline_addr, 0, 0, 0)
    7811037        pgrp = int(r0)
    7821038        return
    7831039}
    7841040
     1041var libc_getpgrp_trampoline_addr uintptr
     1042
     1043//go:cgo_import_dynamic libc_getpgrp getpgrp "libc.so"
     1044
    7851045// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7861046
    7871047func Getpid() (pid int) {
    788         r0, _, _ := RawSyscall(SYS_GETPID, 0, 0, 0)
     1048        r0, _, _ := syscall_rawSyscall(libc_getpid_trampoline_addr, 0, 0, 0)
    7891049        pid = int(r0)
    7901050        return
    7911051}
    7921052
     1053var libc_getpid_trampoline_addr uintptr
     1054
     1055//go:cgo_import_dynamic libc_getpid getpid "libc.so"
     1056
    7931057// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    7941058
    7951059func Getppid() (ppid int) {
    796         r0, _, _ := RawSyscall(SYS_GETPPID, 0, 0, 0)
     1060        r0, _, _ := syscall_rawSyscall(libc_getppid_trampoline_addr, 0, 0, 0)
    7971061        ppid = int(r0)
    7981062        return
    7991063}
    8001064
     1065var libc_getppid_trampoline_addr uintptr
     1066
     1067//go:cgo_import_dynamic libc_getppid getppid "libc.so"
     1068
    8011069// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8021070
    8031071func 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)
    8051073        prio = int(r0)
    8061074        if e1 != 0 {
     
    8101078}
    8111079
     1080var libc_getpriority_trampoline_addr uintptr
     1081
     1082//go:cgo_import_dynamic libc_getpriority getpriority "libc.so"
     1083
    8121084// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8131085
    8141086func 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
     1094var libc_getrlimit_trampoline_addr uintptr
     1095
     1096//go:cgo_import_dynamic libc_getrlimit getrlimit "libc.so"
    8211097
    8221098// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8231099
    8241100func 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)
    8261102        rtable = int(r0)
    8271103        if e1 != 0 {
     
    8311107}
    8321108
     1109var libc_getrtable_trampoline_addr uintptr
     1110
     1111//go:cgo_import_dynamic libc_getrtable getrtable "libc.so"
     1112
    8331113// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8341114
    8351115func 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
     1123var libc_getrusage_trampoline_addr uintptr
     1124
     1125//go:cgo_import_dynamic libc_getrusage getrusage "libc.so"
    8421126
    8431127// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8441128
    8451129func 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)
    8471131        sid = int(r0)
    8481132        if e1 != 0 {
     
    8521136}
    8531137
     1138var libc_getsid_trampoline_addr uintptr
     1139
     1140//go:cgo_import_dynamic libc_getsid getsid "libc.so"
     1141
    8541142// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8551143
    8561144func 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
     1152var libc_gettimeofday_trampoline_addr uintptr
     1153
     1154//go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.so"
    8631155
    8641156// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8651157
    8661158func Getuid() (uid int) {
    867         r0, _, _ := RawSyscall(SYS_GETUID, 0, 0, 0)
     1159        r0, _, _ := syscall_rawSyscall(libc_getuid_trampoline_addr, 0, 0, 0)
    8681160        uid = int(r0)
    8691161        return
    8701162}
    8711163
     1164var libc_getuid_trampoline_addr uintptr
     1165
     1166//go:cgo_import_dynamic libc_getuid getuid "libc.so"
     1167
    8721168// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8731169
    8741170func Issetugid() (tainted bool) {
    875         r0, _, _ := Syscall(SYS_ISSETUGID, 0, 0, 0)
     1171        r0, _, _ := syscall_syscall(libc_issetugid_trampoline_addr, 0, 0, 0)
    8761172        tainted = bool(r0 != 0)
    8771173        return
    8781174}
    8791175
     1176var libc_issetugid_trampoline_addr uintptr
     1177
     1178//go:cgo_import_dynamic libc_issetugid issetugid "libc.so"
     1179
    8801180// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8811181
    8821182func 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
     1190var libc_kill_trampoline_addr uintptr
     1191
     1192//go:cgo_import_dynamic libc_kill kill "libc.so"
    8891193
    8901194// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    8911195
    8921196func 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)
    8941198        fd = int(r0)
    8951199        if e1 != 0 {
     
    8991203}
    9001204
     1205var libc_kqueue_trampoline_addr uintptr
     1206
     1207//go:cgo_import_dynamic libc_kqueue kqueue "libc.so"
     1208
    9011209// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    9021210
     
    9071215                return
    9081216        }
    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
     1224var libc_lchown_trampoline_addr uintptr
     1225
     1226//go:cgo_import_dynamic libc_lchown lchown "libc.so"
    9151227
    9161228// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    9271239                return
    9281240        }
    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
     1248var libc_link_trampoline_addr uintptr
     1249
     1250//go:cgo_import_dynamic libc_link link "libc.so"
    9351251
    9361252// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    9471263                return
    9481264        }
    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
     1272var libc_linkat_trampoline_addr uintptr
     1273
     1274//go:cgo_import_dynamic libc_linkat linkat "libc.so"
    9551275
    9561276// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    9571277
    9581278func 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
     1286var libc_listen_trampoline_addr uintptr
     1287
     1288//go:cgo_import_dynamic libc_listen listen "libc.so"
    9651289
    9661290// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    9721296                return
    9731297        }
    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
     1305var libc_lstat_trampoline_addr uintptr
     1306
     1307//go:cgo_import_dynamic libc_lstat lstat "libc.so"
    9801308
    9811309// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    9871315                return
    9881316        }
    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
     1324var libc_mkdir_trampoline_addr uintptr
     1325
     1326//go:cgo_import_dynamic libc_mkdir mkdir "libc.so"
    9951327
    9961328// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10021334                return
    10031335        }
    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
     1343var libc_mkdirat_trampoline_addr uintptr
     1344
     1345//go:cgo_import_dynamic libc_mkdirat mkdirat "libc.so"
    10101346
    10111347// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10171353                return
    10181354        }
    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
     1362var libc_mkfifo_trampoline_addr uintptr
     1363
     1364//go:cgo_import_dynamic libc_mkfifo mkfifo "libc.so"
    10251365
    10261366// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10321372                return
    10331373        }
    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
     1381var libc_mkfifoat_trampoline_addr uintptr
     1382
     1383//go:cgo_import_dynamic libc_mkfifoat mkfifoat "libc.so"
    10401384
    10411385// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10471391                return
    10481392        }
    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
     1400var libc_mknod_trampoline_addr uintptr
     1401
     1402//go:cgo_import_dynamic libc_mknod mknod "libc.so"
    10551403
    10561404// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10621410                return
    10631411        }
    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
     1419var libc_mknodat_trampoline_addr uintptr
     1420
     1421//go:cgo_import_dynamic libc_mknodat mknodat "libc.so"
    10701422
    10711423// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    10721424
    10731425func 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
     1433var libc_nanosleep_trampoline_addr uintptr
     1434
     1435//go:cgo_import_dynamic libc_nanosleep nanosleep "libc.so"
    10801436
    10811437// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    10871443                return
    10881444        }
    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))
    10901446        fd = int(r0)
    10911447        if e1 != 0 {
     
    10951451}
    10961452
     1453var libc_open_trampoline_addr uintptr
     1454
     1455//go:cgo_import_dynamic libc_open open "libc.so"
     1456
    10971457// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    10981458
     
    11031463                return
    11041464        }
    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)
    11061466        fd = int(r0)
    11071467        if e1 != 0 {
     
    11111471}
    11121472
     1473var libc_openat_trampoline_addr uintptr
     1474
     1475//go:cgo_import_dynamic libc_openat openat "libc.so"
     1476
    11131477// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    11141478
     
    11191483                return
    11201484        }
    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)
    11221486        val = int(r0)
    11231487        if e1 != 0 {
     
    11261490        return
    11271491}
     1492
     1493var libc_pathconf_trampoline_addr uintptr
     1494
     1495//go:cgo_import_dynamic libc_pathconf pathconf "libc.so"
    11281496
    11291497// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    11361504                _p0 = unsafe.Pointer(&_zero)
    11371505        }
    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)
    11391507        n = int(r0)
    11401508        if e1 != 0 {
     
    11431511        return
    11441512}
     1513
     1514var libc_pread_trampoline_addr uintptr
     1515
     1516//go:cgo_import_dynamic libc_pread pread "libc.so"
    11451517
    11461518// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    11531525                _p0 = unsafe.Pointer(&_zero)
    11541526        }
    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)
    11561528        n = int(r0)
    11571529        if e1 != 0 {
     
    11601532        return
    11611533}
     1534
     1535var libc_pwrite_trampoline_addr uintptr
     1536
     1537//go:cgo_import_dynamic libc_pwrite pwrite "libc.so"
    11621538
    11631539// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    11701546                _p0 = unsafe.Pointer(&_zero)
    11711547        }
    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)))
    11731549        n = int(r0)
    11741550        if e1 != 0 {
     
    11771553        return
    11781554}
     1555
     1556var libc_read_trampoline_addr uintptr
     1557
     1558//go:cgo_import_dynamic libc_read read "libc.so"
    11791559
    11801560// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    11921572                _p1 = unsafe.Pointer(&_zero)
    11931573        }
    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)))
    11951575        n = int(r0)
    11961576        if e1 != 0 {
     
    11991579        return
    12001580}
     1581
     1582var libc_readlink_trampoline_addr uintptr
     1583
     1584//go:cgo_import_dynamic libc_readlink readlink "libc.so"
    12011585
    12021586// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    12141598                _p1 = unsafe.Pointer(&_zero)
    12151599        }
    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)
    12171601        n = int(r0)
    12181602        if e1 != 0 {
     
    12211605        return
    12221606}
     1607
     1608var libc_readlinkat_trampoline_addr uintptr
     1609
     1610//go:cgo_import_dynamic libc_readlinkat readlinkat "libc.so"
    12231611
    12241612// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    12351623                return
    12361624        }
    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
     1632var libc_rename_trampoline_addr uintptr
     1633
     1634//go:cgo_import_dynamic libc_rename rename "libc.so"
    12431635
    12441636// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    12551647                return
    12561648        }
    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
     1656var libc_renameat_trampoline_addr uintptr
     1657
     1658//go:cgo_import_dynamic libc_renameat renameat "libc.so"
    12631659
    12641660// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    12701666                return
    12711667        }
    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
     1675var libc_revoke_trampoline_addr uintptr
     1676
     1677//go:cgo_import_dynamic libc_revoke revoke "libc.so"
    12781678
    12791679// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    12851685                return
    12861686        }
    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
     1694var libc_rmdir_trampoline_addr uintptr
     1695
     1696//go:cgo_import_dynamic libc_rmdir rmdir "libc.so"
    12931697
    12941698// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    12951699
    12961700func 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))
    12981702        newoffset = int64(r0)
    12991703        if e1 != 0 {
     
    13031707}
    13041708
     1709var libc_lseek_trampoline_addr uintptr
     1710
     1711//go:cgo_import_dynamic libc_lseek lseek "libc.so"
     1712
    13051713// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13061714
    13071715func 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)
    13091717        n = int(r0)
    13101718        if e1 != 0 {
     
    13141722}
    13151723
     1724var libc_select_trampoline_addr uintptr
     1725
     1726//go:cgo_import_dynamic libc_select select "libc.so"
     1727
    13161728// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13171729
    13181730func 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
     1738var libc_setegid_trampoline_addr uintptr
     1739
     1740//go:cgo_import_dynamic libc_setegid setegid "libc.so"
    13251741
    13261742// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13271743
    13281744func 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
     1752var libc_seteuid_trampoline_addr uintptr
     1753
     1754//go:cgo_import_dynamic libc_seteuid seteuid "libc.so"
    13351755
    13361756// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13371757
    13381758func 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
     1766var libc_setgid_trampoline_addr uintptr
     1767
     1768//go:cgo_import_dynamic libc_setgid setgid "libc.so"
    13451769
    13461770// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    13521776                return
    13531777        }
    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
     1785var libc_setlogin_trampoline_addr uintptr
     1786
     1787//go:cgo_import_dynamic libc_setlogin setlogin "libc.so"
    13601788
    13611789// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13621790
    13631791func 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
     1799var libc_setpgid_trampoline_addr uintptr
     1800
     1801//go:cgo_import_dynamic libc_setpgid setpgid "libc.so"
    13701802
    13711803// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13721804
    13731805func 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
     1813var libc_setpriority_trampoline_addr uintptr
     1814
     1815//go:cgo_import_dynamic libc_setpriority setpriority "libc.so"
    13801816
    13811817// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13821818
    13831819func 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
     1827var libc_setregid_trampoline_addr uintptr
     1828
     1829//go:cgo_import_dynamic libc_setregid setregid "libc.so"
    13901830
    13911831// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    13921832
    13931833func 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
     1841var libc_setreuid_trampoline_addr uintptr
     1842
     1843//go:cgo_import_dynamic libc_setreuid setreuid "libc.so"
    14001844
    14011845// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14021846
    14031847func 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
     1855var libc_setresgid_trampoline_addr uintptr
     1856
     1857//go:cgo_import_dynamic libc_setresgid setresgid "libc.so"
    14101858
    14111859// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14121860
    14131861func 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
     1869var libc_setresuid_trampoline_addr uintptr
     1870
     1871//go:cgo_import_dynamic libc_setresuid setresuid "libc.so"
    14201872
    14211873// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14221874
    14231875func 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
     1883var libc_setrlimit_trampoline_addr uintptr
     1884
     1885//go:cgo_import_dynamic libc_setrlimit setrlimit "libc.so"
    14301886
    14311887// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14321888
    14331889func 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
     1897var libc_setrtable_trampoline_addr uintptr
     1898
     1899//go:cgo_import_dynamic libc_setrtable setrtable "libc.so"
    14401900
    14411901// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14421902
    14431903func 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)
    14451905        pid = int(r0)
    14461906        if e1 != 0 {
     
    14501910}
    14511911
     1912var libc_setsid_trampoline_addr uintptr
     1913
     1914//go:cgo_import_dynamic libc_setsid setsid "libc.so"
     1915
    14521916// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14531917
    14541918func 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
     1926var libc_settimeofday_trampoline_addr uintptr
     1927
     1928//go:cgo_import_dynamic libc_settimeofday settimeofday "libc.so"
    14611929
    14621930// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    14631931
    14641932func 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
     1940var libc_setuid_trampoline_addr uintptr
     1941
     1942//go:cgo_import_dynamic libc_setuid setuid "libc.so"
    14711943
    14721944// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    14781950                return
    14791951        }
    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
     1959var libc_stat_trampoline_addr uintptr
     1960
     1961//go:cgo_import_dynamic libc_stat stat "libc.so"
    14861962
    14871963// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    14931969                return
    14941970        }
    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
     1978var libc_statfs_trampoline_addr uintptr
     1979
     1980//go:cgo_import_dynamic libc_statfs statfs "libc.so"
    15011981
    15021982// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    15131993                return
    15141994        }
    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
     2002var libc_symlink_trampoline_addr uintptr
     2003
     2004//go:cgo_import_dynamic libc_symlink symlink "libc.so"
    15212005
    15222006// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    15332017                return
    15342018        }
    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
     2026var libc_symlinkat_trampoline_addr uintptr
     2027
     2028//go:cgo_import_dynamic libc_symlinkat symlinkat "libc.so"
    15412029
    15422030// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    15432031
    15442032func 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
     2040var libc_sync_trampoline_addr uintptr
     2041
     2042//go:cgo_import_dynamic libc_sync sync "libc.so"
    15512043
    15522044// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    15582050                return
    15592051        }
    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
     2059var libc_truncate_trampoline_addr uintptr
     2060
     2061//go:cgo_import_dynamic libc_truncate truncate "libc.so"
    15662062
    15672063// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    15682064
    15692065func 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)
    15712067        oldmask = int(r0)
    15722068        return
    15732069}
    15742070
     2071var libc_umask_trampoline_addr uintptr
     2072
     2073//go:cgo_import_dynamic libc_umask umask "libc.so"
     2074
    15752075// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    15762076
     
    15812081                return
    15822082        }
    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
     2090var libc_unlink_trampoline_addr uintptr
     2091
     2092//go:cgo_import_dynamic libc_unlink unlink "libc.so"
    15892093
    15902094// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    15962100                return
    15972101        }
    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
     2109var libc_unlinkat_trampoline_addr uintptr
     2110
     2111//go:cgo_import_dynamic libc_unlinkat unlinkat "libc.so"
    16042112
    16052113// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    16112119                return
    16122120        }
    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
     2128var libc_unmount_trampoline_addr uintptr
     2129
     2130//go:cgo_import_dynamic libc_unmount unmount "libc.so"
    16192131
    16202132// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     
    16272139                _p0 = unsafe.Pointer(&_zero)
    16282140        }
    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)))
    16302142        n = int(r0)
    16312143        if e1 != 0 {
     
    16352147}
    16362148
     2149var libc_write_trampoline_addr uintptr
     2150
     2151//go:cgo_import_dynamic libc_write write "libc.so"
     2152
    16372153// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    16382154
    16392155func 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))
    16412157        ret = uintptr(r0)
    16422158        if e1 != 0 {
     
    16462162}
    16472163
     2164var libc_mmap_trampoline_addr uintptr
     2165
     2166//go:cgo_import_dynamic libc_mmap mmap "libc.so"
     2167
    16482168// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    16492169
    16502170func 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
     2178var libc_munmap_trampoline_addr uintptr
     2179
     2180//go:cgo_import_dynamic libc_munmap munmap "libc.so"
    16572181
    16582182// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    16592183
    16602184func 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))
    16622186        n = int(r0)
    16632187        if e1 != 0 {
     
    16702194
    16712195func 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))
    16732197        n = int(r0)
    16742198        if e1 != 0 {
     
    16862210                return
    16872211        }
    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
     2219var 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  
    148148//go:cgo_import_dynamic libc_port_get port_get "libc.so"
    149149//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"
    150152
    151153//go:linkname procpipe libc_pipe
     
    285287//go:linkname procport_get libc_port_get
    286288//go:linkname procport_getn libc_port_getn
     289//go:linkname procputmsg libc_putmsg
     290//go:linkname procgetmsg libc_getmsg
    287291
    288292var (
     
    422426        procport_dissociate,
    423427        procport_get,
    424         procport_getn syscallFunc
     428        procport_getn,
     429        procputmsg,
     430        procgetmsg syscallFunc
    425431)
    426432
     
    20662072        return
    20672073}
     2074
     2075// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
     2076
     2077func 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
     2087func 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.h
     1// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/386/include -m32 /tmp/386/include/asm/unistd.h
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
  • 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.h
     1// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/amd64/include -m64 /tmp/amd64/include/asm/unistd.h
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
  • 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.h
     1// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/arm/include /tmp/arm/include/asm/unistd.h
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
  • 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.h
     1// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/arm64/include -fsigned-char /tmp/arm64/include/asm/unistd.h
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
  • 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.h
     1// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/loong64/include /tmp/loong64/include/asm/unistd.h
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
  • 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.h
     1// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/mips/include /tmp/mips/include/asm/unistd.h
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
  • 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.h
     1// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/mips64/include /tmp/mips64/include/asm/unistd.h
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
  • 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.h
     1// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/mips64le/include /tmp/mips64le/include/asm/unistd.h
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
  • 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.h
     1// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/mipsle/include /tmp/mipsle/include/asm/unistd.h
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
  • 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.h
     1// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ppc/include /tmp/ppc/include/asm/unistd.h
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
  • 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.h
     1// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ppc64/include /tmp/ppc64/include/asm/unistd.h
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
  • 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.h
     1// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/ppc64le/include /tmp/ppc64le/include/asm/unistd.h
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
  • 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.h
     1// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/riscv64/include /tmp/riscv64/include/asm/unistd.h
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
  • 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.h
     1// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/s390x/include -fsigned-char /tmp/s390x/include/asm/unistd.h
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
  • 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.h
     1// go run linux/mksysnum.go -Wall -Werror -static -I/tmp/sparc64/include /tmp/sparc64/include/asm/unistd.h
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
  • trunk/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go

    r67 r69  
    77package unix
    88
     9// Deprecated: Use libc wrappers instead of direct syscalls.
    910const (
    1011        SYS_EXIT           = 1   // { void sys_exit(int rval); }
  • trunk/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go

    r67 r69  
    77package unix
    88
     9// Deprecated: Use libc wrappers instead of direct syscalls.
    910const (
    1011        SYS_EXIT           = 1   // { void sys_exit(int rval); }
  • trunk/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go

    r67 r69  
    77package unix
    88
     9// Deprecated: Use libc wrappers instead of direct syscalls.
    910const (
    1011        SYS_EXIT           = 1   // { void sys_exit(int rval); }
  • trunk/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm64.go

    r67 r69  
    77package unix
    88
     9// Deprecated: Use libc wrappers instead of direct syscalls.
    910const (
    1011        SYS_EXIT           = 1   // { void sys_exit(int rval); }
  • trunk/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go

    r67 r69  
    295295        Sigmask      Sigset_t
    296296        Siglist      Sigset_t
    297         Siginfo      __Siginfo
     297        Siginfo      __PtraceSiginfo
    298298        Tdname       [20]int8
    299299        Child_pid    int32
     
    310310        Status int32
    311311        Addr   *byte
     312        Value  [4]byte
     313        _      [32]byte
     314}
     315type __PtraceSiginfo struct {
     316        Signo  int32
     317        Errno  int32
     318        Code   int32
     319        Pid    int32
     320        Uid    uint32
     321        Status int32
     322        Addr   uintptr
    312323        Value  [4]byte
    313324        _      [32]byte
     
    351362type PtraceIoDesc struct {
    352363        Op   int32
    353         Offs *byte
    354         Addr *byte
     364        Offs uintptr
     365        Addr uintptr
    355366        Len  uint32
    356367}
  • trunk/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go

    r67 r69  
    292292        Sigmask      Sigset_t
    293293        Siglist      Sigset_t
    294         Siginfo      __Siginfo
     294        Siginfo      __PtraceSiginfo
    295295        Tdname       [20]int8
    296296        Child_pid    int32
     
    307307        Status int32
    308308        Addr   *byte
     309        Value  [8]byte
     310        _      [40]byte
     311}
     312
     313type __PtraceSiginfo struct {
     314        Signo  int32
     315        Errno  int32
     316        Code   int32
     317        Pid    int32
     318        Uid    uint32
     319        Status int32
     320        Addr   uintptr
    309321        Value  [8]byte
    310322        _      [40]byte
     
    355367type PtraceIoDesc struct {
    356368        Op   int32
    357         Offs *byte
    358         Addr *byte
     369        Offs uintptr
     370        Addr uintptr
    359371        Len  uint64
    360372}
  • trunk/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go

    r67 r69  
    294294        Sigmask      Sigset_t
    295295        Siglist      Sigset_t
    296         Siginfo      __Siginfo
     296        Siginfo      __PtraceSiginfo
    297297        Tdname       [20]int8
    298298        Child_pid    int32
     
    313313}
    314314
     315type __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
    315327type Sigset_t struct {
    316328        Val [4]uint32
     
    338350type PtraceIoDesc struct {
    339351        Op   int32
    340         Offs *byte
    341         Addr *byte
     352        Offs uintptr
     353        Addr uintptr
    342354        Len  uint32
    343355}
  • trunk/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go

    r67 r69  
    292292        Sigmask      Sigset_t
    293293        Siglist      Sigset_t
    294         Siginfo      __Siginfo
     294        Siginfo      __PtraceSiginfo
    295295        Tdname       [20]int8
    296296        Child_pid    int32
     
    311311}
    312312
     313type __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
    313325type Sigset_t struct {
    314326        Val [4]uint32
     
    335347type PtraceIoDesc struct {
    336348        Op   int32
    337         Offs *byte
    338         Addr *byte
     349        Offs uintptr
     350        Addr uintptr
    339351        Len  uint64
    340352}
  • trunk/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go

    r67 r69  
    292292        Sigmask      Sigset_t
    293293        Siglist      Sigset_t
    294         Siginfo      __Siginfo
     294        Siginfo      __PtraceSiginfo
    295295        Tdname       [20]int8
    296296        Child_pid    int32
     
    311311}
    312312
     313type __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
    313325type Sigset_t struct {
    314326        Val [4]uint32
     
    336348type PtraceIoDesc struct {
    337349        Op   int32
    338         Offs *byte
    339         Addr *byte
     350        Offs uintptr
     351        Addr uintptr
    340352        Len  uint64
    341353}
  • trunk/vendor/golang.org/x/sys/unix/ztypes_linux.go

    r67 r69  
    946946        Sample_max_stack   uint16
    947947        _                  uint16
     948        Aux_sample_size    uint32
     949        _                  uint32
     950        Sig_data           uint64
    948951}
    949952
     
    14641467        IFLA_PERM_ADDRESS                          = 0x36
    14651468        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
    14661474        IFLA_PROTO_DOWN_REASON_UNSPEC              = 0x0
    14671475        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.go
     1// cgo -godefs -objdir=/tmp/386/cgo -- -Wall -Werror -static -I/tmp/386/include -m32 linux/types.go | go run mkpost.go
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    254254
    255255const _C__NSIG = 0x41
     256
     257const (
     258        SIG_BLOCK   = 0x0
     259        SIG_UNBLOCK = 0x1
     260        SIG_SETMASK = 0x2
     261)
    256262
    257263type 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.go
     1// cgo -godefs -objdir=/tmp/amd64/cgo -- -Wall -Werror -static -I/tmp/amd64/include -m64 linux/types.go | go run mkpost.go
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    269269
    270270const _C__NSIG = 0x41
     271
     272const (
     273        SIG_BLOCK   = 0x0
     274        SIG_UNBLOCK = 0x1
     275        SIG_SETMASK = 0x2
     276)
    271277
    272278type 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.go
     1// cgo -godefs -objdir=/tmp/arm/cgo -- -Wall -Werror -static -I/tmp/arm/include linux/types.go | go run mkpost.go
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    245245
    246246const _C__NSIG = 0x41
     247
     248const (
     249        SIG_BLOCK   = 0x0
     250        SIG_UNBLOCK = 0x1
     251        SIG_SETMASK = 0x2
     252)
    247253
    248254type 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.go
     1// cgo -godefs -objdir=/tmp/arm64/cgo -- -Wall -Werror -static -I/tmp/arm64/include -fsigned-char linux/types.go | go run mkpost.go
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    248248
    249249const _C__NSIG = 0x41
     250
     251const (
     252        SIG_BLOCK   = 0x0
     253        SIG_UNBLOCK = 0x1
     254        SIG_SETMASK = 0x2
     255)
    250256
    251257type 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.go
     1// cgo -godefs -objdir=/tmp/loong64/cgo -- -Wall -Werror -static -I/tmp/loong64/include linux/types.go | go run mkpost.go
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    249249
    250250const _C__NSIG = 0x41
     251
     252const (
     253        SIG_BLOCK   = 0x0
     254        SIG_UNBLOCK = 0x1
     255        SIG_SETMASK = 0x2
     256)
    251257
    252258type 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.go
     1// cgo -godefs -objdir=/tmp/mips/cgo -- -Wall -Werror -static -I/tmp/mips/include linux/types.go | go run mkpost.go
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    250250
    251251const _C__NSIG = 0x80
     252
     253const (
     254        SIG_BLOCK   = 0x1
     255        SIG_UNBLOCK = 0x2
     256        SIG_SETMASK = 0x3
     257)
    252258
    253259type 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.go
     1// cgo -godefs -objdir=/tmp/mips64/cgo -- -Wall -Werror -static -I/tmp/mips64/include linux/types.go | go run mkpost.go
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    251251
    252252const _C__NSIG = 0x80
     253
     254const (
     255        SIG_BLOCK   = 0x1
     256        SIG_UNBLOCK = 0x2
     257        SIG_SETMASK = 0x3
     258)
    253259
    254260type 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.go
     1// cgo -godefs -objdir=/tmp/mips64le/cgo -- -Wall -Werror -static -I/tmp/mips64le/include linux/types.go | go run mkpost.go
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    251251
    252252const _C__NSIG = 0x80
     253
     254const (
     255        SIG_BLOCK   = 0x1
     256        SIG_UNBLOCK = 0x2
     257        SIG_SETMASK = 0x3
     258)
    253259
    254260type 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.go
     1// cgo -godefs -objdir=/tmp/mipsle/cgo -- -Wall -Werror -static -I/tmp/mipsle/include linux/types.go | go run mkpost.go
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    250250
    251251const _C__NSIG = 0x80
     252
     253const (
     254        SIG_BLOCK   = 0x1
     255        SIG_UNBLOCK = 0x2
     256        SIG_SETMASK = 0x3
     257)
    252258
    253259type 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.go
     1// cgo -godefs -objdir=/tmp/ppc/cgo -- -Wall -Werror -static -I/tmp/ppc/include linux/types.go | go run mkpost.go
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    257257
    258258const _C__NSIG = 0x41
     259
     260const (
     261        SIG_BLOCK   = 0x0
     262        SIG_UNBLOCK = 0x1
     263        SIG_SETMASK = 0x2
     264)
    259265
    260266type 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.go
     1// cgo -godefs -objdir=/tmp/ppc64/cgo -- -Wall -Werror -static -I/tmp/ppc64/include linux/types.go | go run mkpost.go
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    258258
    259259const _C__NSIG = 0x41
     260
     261const (
     262        SIG_BLOCK   = 0x0
     263        SIG_UNBLOCK = 0x1
     264        SIG_SETMASK = 0x2
     265)
    260266
    261267type 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.go
     1// cgo -godefs -objdir=/tmp/ppc64le/cgo -- -Wall -Werror -static -I/tmp/ppc64le/include linux/types.go | go run mkpost.go
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    258258
    259259const _C__NSIG = 0x41
     260
     261const (
     262        SIG_BLOCK   = 0x0
     263        SIG_UNBLOCK = 0x1
     264        SIG_SETMASK = 0x2
     265)
    260266
    261267type 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.go
     1// cgo -godefs -objdir=/tmp/riscv64/cgo -- -Wall -Werror -static -I/tmp/riscv64/include linux/types.go | go run mkpost.go
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    276276
    277277const _C__NSIG = 0x41
     278
     279const (
     280        SIG_BLOCK   = 0x0
     281        SIG_UNBLOCK = 0x1
     282        SIG_SETMASK = 0x2
     283)
    278284
    279285type 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.go
     1// cgo -godefs -objdir=/tmp/s390x/cgo -- -Wall -Werror -static -I/tmp/s390x/include -fsigned-char linux/types.go | go run mkpost.go
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    271271
    272272const _C__NSIG = 0x41
     273
     274const (
     275        SIG_BLOCK   = 0x0
     276        SIG_UNBLOCK = 0x1
     277        SIG_SETMASK = 0x2
     278)
    273279
    274280type 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.go
     1// cgo -godefs -objdir=/tmp/sparc64/cgo -- -Wall -Werror -static -I/tmp/sparc64/include linux/types.go | go run mkpost.go
    22// Code generated by the command above; see README.md. DO NOT EDIT.
    33
     
    253253
    254254const _C__NSIG = 0x41
     255
     256const (
     257        SIG_BLOCK   = 0x1
     258        SIG_UNBLOCK = 0x2
     259        SIG_SETMASK = 0x4
     260)
    255261
    256262type Siginfo struct {
  • trunk/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go

    r67 r69  
    481481        FILE_EXCEPTION     = 0x60000070
    482482)
     483
     484const (
     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
     499type strbuf struct {
     500        Maxlen int32
     501        Len    int32
     502        Buf    *int8
     503}
     504
     505type Strioctl struct {
     506        Cmd    int32
     507        Timout int32
     508        Len    int32
     509        Dp     *int8
     510}
     511
     512type Lifreq struct {
     513        Name   [32]int8
     514        Lifru1 [4]byte
     515        Type   uint32
     516        Lifru  [336]byte
     517}
Note: See TracChangeset for help on using the changeset viewer.