mirror of
https://github.com/golang/go
synced 2024-11-27 00:41:31 -07:00
[dev.regabi] cmd/compile: process //go:linknames after declarations
Allows emitting errors about ineffectual //go:linkname directives. In particular, this exposed: a typo in os2_aix.go; redundant (but harmless) directives for libc_pipe in both os3_solaris.go and syscall2_solaris.go; and a bunch of useless //go:linkname directives in macOS wrapper code. However, because there's also ineffectual directives in the vendored macOS code from x/sys, that can't be an error just yet. So instead we print a warning (including a heads up that it will be promoted to an error in Go 1.17) to prevent backsliding while we fix and re-vendor that code. Passes toolstash-check. Change-Id: I59badeab5df0d8b3abfd14c6066e9bb00e840f73 Reviewed-on: https://go-review.googlesource.com/c/go/+/273986 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Russ Cox <rsc@golang.org> Trust: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
ecff7628ea
commit
2d6ff998ed
@ -75,6 +75,10 @@ func parseFiles(filenames []string) uint {
|
||||
testdclstack()
|
||||
}
|
||||
|
||||
for _, p := range noders {
|
||||
p.processPragmas()
|
||||
}
|
||||
|
||||
ir.LocalPkg.Height = myheight
|
||||
|
||||
return lines
|
||||
@ -258,23 +262,27 @@ func (p *noder) node() {
|
||||
|
||||
xtop = append(xtop, p.decls(p.file.DeclList)...)
|
||||
|
||||
for _, n := range p.linknames {
|
||||
base.Pos = src.NoXPos
|
||||
clearImports()
|
||||
}
|
||||
|
||||
func (p *noder) processPragmas() {
|
||||
for _, l := range p.linknames {
|
||||
if !p.importedUnsafe {
|
||||
p.errorAt(n.pos, "//go:linkname only allowed in Go files that import \"unsafe\"")
|
||||
p.errorAt(l.pos, "//go:linkname only allowed in Go files that import \"unsafe\"")
|
||||
continue
|
||||
}
|
||||
s := lookup(n.local)
|
||||
if n.remote != "" {
|
||||
s.Linkname = n.remote
|
||||
} else {
|
||||
// Use the default object symbol name if the
|
||||
// user didn't provide one.
|
||||
if base.Ctxt.Pkgpath == "" {
|
||||
p.errorAt(n.pos, "//go:linkname requires linkname argument or -p compiler flag")
|
||||
} else {
|
||||
s.Linkname = objabi.PathToPrefix(base.Ctxt.Pkgpath) + "." + n.local
|
||||
}
|
||||
n := ir.AsNode(lookup(l.local).Def)
|
||||
if n == nil || n.Op() != ir.ONAME {
|
||||
// TODO(mdempsky): Change to p.errorAt before Go 1.17 release.
|
||||
base.WarnfAt(p.makeXPos(l.pos), "//go:linkname must refer to declared function or variable (will be an error in Go 1.17)")
|
||||
continue
|
||||
}
|
||||
if n.Sym().Linkname != "" {
|
||||
p.errorAt(l.pos, "duplicate //go:linkname for %s", l.local)
|
||||
continue
|
||||
}
|
||||
n.Sym().Linkname = l.remote
|
||||
}
|
||||
|
||||
// The linker expects an ABI0 wrapper for all cgo-exported
|
||||
@ -290,8 +298,6 @@ func (p *noder) node() {
|
||||
}
|
||||
|
||||
pragcgobuf = append(pragcgobuf, p.pragcgobuf...)
|
||||
base.Pos = src.NoXPos
|
||||
clearImports()
|
||||
}
|
||||
|
||||
func (p *noder) decls(decls []syntax.Decl) (l []ir.Node) {
|
||||
@ -1592,6 +1598,13 @@ func (p *noder) pragma(pos syntax.Pos, blankLine bool, text string, old syntax.P
|
||||
var target string
|
||||
if len(f) == 3 {
|
||||
target = f[2]
|
||||
} else if base.Ctxt.Pkgpath != "" {
|
||||
// Use the default object symbol name if the
|
||||
// user didn't provide one.
|
||||
target = objabi.PathToPrefix(base.Ctxt.Pkgpath) + "." + f[1]
|
||||
} else {
|
||||
p.error(syntax.Error{Pos: pos, Msg: "//go:linkname requires linkname argument or -p compiler flag"})
|
||||
break
|
||||
}
|
||||
p.linknames = append(p.linknames, linkname{pos, f[1], target})
|
||||
|
||||
|
@ -39,7 +39,6 @@ type CFString CFRef
|
||||
const kCFAllocatorDefault = 0
|
||||
const kCFStringEncodingUTF8 = 0x08000100
|
||||
|
||||
//go:linkname x509_CFStringCreateWithBytes x509_CFStringCreateWithBytes
|
||||
//go:cgo_import_dynamic x509_CFStringCreateWithBytes CFStringCreateWithBytes "/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation"
|
||||
|
||||
// StringToCFString returns a copy of the UTF-8 contents of s as a new CFString.
|
||||
@ -52,7 +51,6 @@ func StringToCFString(s string) CFString {
|
||||
}
|
||||
func x509_CFStringCreateWithBytes_trampoline()
|
||||
|
||||
//go:linkname x509_CFDictionaryGetValueIfPresent x509_CFDictionaryGetValueIfPresent
|
||||
//go:cgo_import_dynamic x509_CFDictionaryGetValueIfPresent CFDictionaryGetValueIfPresent "/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation"
|
||||
|
||||
func CFDictionaryGetValueIfPresent(dict CFRef, key CFString) (value CFRef, ok bool) {
|
||||
@ -67,7 +65,6 @@ func x509_CFDictionaryGetValueIfPresent_trampoline()
|
||||
|
||||
const kCFNumberSInt32Type = 3
|
||||
|
||||
//go:linkname x509_CFNumberGetValue x509_CFNumberGetValue
|
||||
//go:cgo_import_dynamic x509_CFNumberGetValue CFNumberGetValue "/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation"
|
||||
|
||||
func CFNumberGetValue(num CFRef) (int32, error) {
|
||||
@ -81,7 +78,6 @@ func CFNumberGetValue(num CFRef) (int32, error) {
|
||||
}
|
||||
func x509_CFNumberGetValue_trampoline()
|
||||
|
||||
//go:linkname x509_CFDataGetLength x509_CFDataGetLength
|
||||
//go:cgo_import_dynamic x509_CFDataGetLength CFDataGetLength "/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation"
|
||||
|
||||
func CFDataGetLength(data CFRef) int {
|
||||
@ -90,7 +86,6 @@ func CFDataGetLength(data CFRef) int {
|
||||
}
|
||||
func x509_CFDataGetLength_trampoline()
|
||||
|
||||
//go:linkname x509_CFDataGetBytePtr x509_CFDataGetBytePtr
|
||||
//go:cgo_import_dynamic x509_CFDataGetBytePtr CFDataGetBytePtr "/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation"
|
||||
|
||||
func CFDataGetBytePtr(data CFRef) uintptr {
|
||||
@ -99,7 +94,6 @@ func CFDataGetBytePtr(data CFRef) uintptr {
|
||||
}
|
||||
func x509_CFDataGetBytePtr_trampoline()
|
||||
|
||||
//go:linkname x509_CFArrayGetCount x509_CFArrayGetCount
|
||||
//go:cgo_import_dynamic x509_CFArrayGetCount CFArrayGetCount "/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation"
|
||||
|
||||
func CFArrayGetCount(array CFRef) int {
|
||||
@ -108,7 +102,6 @@ func CFArrayGetCount(array CFRef) int {
|
||||
}
|
||||
func x509_CFArrayGetCount_trampoline()
|
||||
|
||||
//go:linkname x509_CFArrayGetValueAtIndex x509_CFArrayGetValueAtIndex
|
||||
//go:cgo_import_dynamic x509_CFArrayGetValueAtIndex CFArrayGetValueAtIndex "/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation"
|
||||
|
||||
func CFArrayGetValueAtIndex(array CFRef, index int) CFRef {
|
||||
@ -117,7 +110,6 @@ func CFArrayGetValueAtIndex(array CFRef, index int) CFRef {
|
||||
}
|
||||
func x509_CFArrayGetValueAtIndex_trampoline()
|
||||
|
||||
//go:linkname x509_CFEqual x509_CFEqual
|
||||
//go:cgo_import_dynamic x509_CFEqual CFEqual "/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation"
|
||||
|
||||
func CFEqual(a, b CFRef) bool {
|
||||
@ -126,7 +118,6 @@ func CFEqual(a, b CFRef) bool {
|
||||
}
|
||||
func x509_CFEqual_trampoline()
|
||||
|
||||
//go:linkname x509_CFRelease x509_CFRelease
|
||||
//go:cgo_import_dynamic x509_CFRelease CFRelease "/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation"
|
||||
|
||||
func CFRelease(ref CFRef) {
|
||||
|
@ -63,7 +63,6 @@ var ErrNoTrustSettings = errors.New("no trust settings found")
|
||||
|
||||
const errSecNoTrustSettings = -25263
|
||||
|
||||
//go:linkname x509_SecTrustSettingsCopyCertificates x509_SecTrustSettingsCopyCertificates
|
||||
//go:cgo_import_dynamic x509_SecTrustSettingsCopyCertificates SecTrustSettingsCopyCertificates "/System/Library/Frameworks/Security.framework/Versions/A/Security"
|
||||
|
||||
func SecTrustSettingsCopyCertificates(domain SecTrustSettingsDomain) (certArray CFRef, err error) {
|
||||
@ -80,7 +79,6 @@ func x509_SecTrustSettingsCopyCertificates_trampoline()
|
||||
|
||||
const kSecFormatX509Cert int32 = 9
|
||||
|
||||
//go:linkname x509_SecItemExport x509_SecItemExport
|
||||
//go:cgo_import_dynamic x509_SecItemExport SecItemExport "/System/Library/Frameworks/Security.framework/Versions/A/Security"
|
||||
|
||||
func SecItemExport(cert CFRef) (data CFRef, err error) {
|
||||
@ -95,7 +93,6 @@ func x509_SecItemExport_trampoline()
|
||||
|
||||
const errSecItemNotFound = -25300
|
||||
|
||||
//go:linkname x509_SecTrustSettingsCopyTrustSettings x509_SecTrustSettingsCopyTrustSettings
|
||||
//go:cgo_import_dynamic x509_SecTrustSettingsCopyTrustSettings SecTrustSettingsCopyTrustSettings "/System/Library/Frameworks/Security.framework/Versions/A/Security"
|
||||
|
||||
func SecTrustSettingsCopyTrustSettings(cert CFRef, domain SecTrustSettingsDomain) (trustSettings CFRef, err error) {
|
||||
@ -110,7 +107,6 @@ func SecTrustSettingsCopyTrustSettings(cert CFRef, domain SecTrustSettingsDomain
|
||||
}
|
||||
func x509_SecTrustSettingsCopyTrustSettings_trampoline()
|
||||
|
||||
//go:linkname x509_SecPolicyCopyProperties x509_SecPolicyCopyProperties
|
||||
//go:cgo_import_dynamic x509_SecPolicyCopyProperties SecPolicyCopyProperties "/System/Library/Frameworks/Security.framework/Versions/A/Security"
|
||||
|
||||
func SecPolicyCopyProperties(policy CFRef) CFRef {
|
||||
|
@ -156,6 +156,7 @@ func TestStdTest(t *testing.T) {
|
||||
testTestDir(t, filepath.Join(runtime.GOROOT(), "test"),
|
||||
"cmplxdivide.go", // also needs file cmplxdivide1.go - ignore
|
||||
"directive.go", // tests compiler rejection of bad directive placement - ignore
|
||||
"linkname2.go", // go/types doesn't check validity of //go:xxx directives
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -18,11 +18,11 @@ import (
|
||||
|
||||
//go:cgo_import_dynamic libc___n_pthreads __n_pthreads "libpthread.a/shr_xpg5_64.o"
|
||||
//go:cgo_import_dynamic libc___mod_init __mod_init "libc.a/shr_64.o"
|
||||
//go:linkname libc___n_pthreads libc___n_pthread
|
||||
//go:linkname libc___n_pthreads libc___n_pthreads
|
||||
//go:linkname libc___mod_init libc___mod_init
|
||||
|
||||
var (
|
||||
libc___n_pthread,
|
||||
libc___n_pthreads,
|
||||
libc___mod_init libFunc
|
||||
)
|
||||
|
||||
|
@ -15,7 +15,6 @@ import _ "unsafe" // for go:linkname
|
||||
//go:cgo_import_dynamic libc_gethostname gethostname "libc.so"
|
||||
//go:cgo_import_dynamic libc_getpid getpid "libc.so"
|
||||
//go:cgo_import_dynamic libc_ioctl ioctl "libc.so"
|
||||
//go:cgo_import_dynamic libc_pipe pipe "libc.so"
|
||||
//go:cgo_import_dynamic libc_setgid setgid "libc.so"
|
||||
//go:cgo_import_dynamic libc_setgroups setgroups "libc.so"
|
||||
//go:cgo_import_dynamic libc_setsid setsid "libc.so"
|
||||
@ -33,7 +32,6 @@ import _ "unsafe" // for go:linkname
|
||||
//go:linkname libc_gethostname libc_gethostname
|
||||
//go:linkname libc_getpid libc_getpid
|
||||
//go:linkname libc_ioctl libc_ioctl
|
||||
//go:linkname libc_pipe libc_pipe
|
||||
//go:linkname libc_setgid libc_setgid
|
||||
//go:linkname libc_setgroups libc_setgroups
|
||||
//go:linkname libc_setsid libc_setsid
|
||||
|
@ -343,9 +343,6 @@ while(<>) {
|
||||
$trampolines{$funcname} = 1;
|
||||
# The assembly trampoline that jumps to the libc routine.
|
||||
$text .= "func ${funcname}_trampoline()\n";
|
||||
# Map syscall.funcname to just plain funcname.
|
||||
# (The jump to this function is in the assembly trampoline, generated by mksyscallasm_darwin.go.)
|
||||
$text .= "//go:linkname $funcname $funcname\n";
|
||||
# Tell the linker that funcname can be found in libSystem using varname without the libc_ prefix.
|
||||
my $basename = substr $funcname, 5;
|
||||
$text .= "//go:cgo_import_dynamic $funcname $basename \"/usr/lib/libSystem.B.dylib\"\n\n";
|
||||
|
@ -115,7 +115,6 @@ func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
|
||||
|
||||
func libc_getfsstat_trampoline()
|
||||
|
||||
//go:linkname libc_getfsstat libc_getfsstat
|
||||
//go:cgo_import_dynamic libc_getfsstat getfsstat "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
func setattrlistTimes(path string, times []Timespec) error {
|
||||
@ -148,7 +147,6 @@ func setattrlistTimes(path string, times []Timespec) error {
|
||||
|
||||
func libc_setattrlist_trampoline()
|
||||
|
||||
//go:linkname libc_setattrlist libc_setattrlist
|
||||
//go:cgo_import_dynamic libc_setattrlist setattrlist "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
func utimensat(dirfd int, path string, times *[2]Timespec, flag int) error {
|
||||
@ -276,7 +274,6 @@ func fdopendir(fd int) (dir uintptr, err error) {
|
||||
|
||||
func libc_fdopendir_trampoline()
|
||||
|
||||
//go:linkname libc_fdopendir libc_fdopendir
|
||||
//go:cgo_import_dynamic libc_fdopendir fdopendir "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
func readlen(fd int, buf *byte, nbuf int) (n int, err error) {
|
||||
|
@ -56,7 +56,6 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
||||
|
||||
func libc_sendfile_trampoline()
|
||||
|
||||
//go:linkname libc_sendfile libc_sendfile
|
||||
//go:cgo_import_dynamic libc_sendfile sendfile "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// Implemented in the runtime package (runtime/sys_darwin_64.go)
|
||||
|
@ -56,7 +56,6 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e
|
||||
|
||||
func libc_sendfile_trampoline()
|
||||
|
||||
//go:linkname libc_sendfile libc_sendfile
|
||||
//go:cgo_import_dynamic libc_sendfile sendfile "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// Implemented in the runtime package (runtime/sys_darwin_64.go)
|
||||
|
@ -20,7 +20,6 @@ func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
|
||||
|
||||
func libc_getgroups_trampoline()
|
||||
|
||||
//go:linkname libc_getgroups libc_getgroups
|
||||
//go:cgo_import_dynamic libc_getgroups getgroups "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -35,7 +34,6 @@ func setgroups(ngid int, gid *_Gid_t) (err error) {
|
||||
|
||||
func libc_setgroups_trampoline()
|
||||
|
||||
//go:linkname libc_setgroups libc_setgroups
|
||||
//go:cgo_import_dynamic libc_setgroups setgroups "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -51,7 +49,6 @@ func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err
|
||||
|
||||
func libc_wait4_trampoline()
|
||||
|
||||
//go:linkname libc_wait4 libc_wait4
|
||||
//go:cgo_import_dynamic libc_wait4 wait4 "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -67,7 +64,6 @@ func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
|
||||
|
||||
func libc_accept_trampoline()
|
||||
|
||||
//go:linkname libc_accept libc_accept
|
||||
//go:cgo_import_dynamic libc_accept accept "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -82,7 +78,6 @@ func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
|
||||
|
||||
func libc_bind_trampoline()
|
||||
|
||||
//go:linkname libc_bind libc_bind
|
||||
//go:cgo_import_dynamic libc_bind bind "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -97,7 +92,6 @@ func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
|
||||
|
||||
func libc_connect_trampoline()
|
||||
|
||||
//go:linkname libc_connect libc_connect
|
||||
//go:cgo_import_dynamic libc_connect connect "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -113,7 +107,6 @@ func socket(domain int, typ int, proto int) (fd int, err error) {
|
||||
|
||||
func libc_socket_trampoline()
|
||||
|
||||
//go:linkname libc_socket libc_socket
|
||||
//go:cgo_import_dynamic libc_socket socket "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -128,7 +121,6 @@ func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen
|
||||
|
||||
func libc_getsockopt_trampoline()
|
||||
|
||||
//go:linkname libc_getsockopt libc_getsockopt
|
||||
//go:cgo_import_dynamic libc_getsockopt getsockopt "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -143,7 +135,6 @@ func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr)
|
||||
|
||||
func libc_setsockopt_trampoline()
|
||||
|
||||
//go:linkname libc_setsockopt libc_setsockopt
|
||||
//go:cgo_import_dynamic libc_setsockopt setsockopt "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -158,7 +149,6 @@ func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
|
||||
|
||||
func libc_getpeername_trampoline()
|
||||
|
||||
//go:linkname libc_getpeername libc_getpeername
|
||||
//go:cgo_import_dynamic libc_getpeername getpeername "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -173,7 +163,6 @@ func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
|
||||
|
||||
func libc_getsockname_trampoline()
|
||||
|
||||
//go:linkname libc_getsockname libc_getsockname
|
||||
//go:cgo_import_dynamic libc_getsockname getsockname "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -188,7 +177,6 @@ func Shutdown(s int, how int) (err error) {
|
||||
|
||||
func libc_shutdown_trampoline()
|
||||
|
||||
//go:linkname libc_shutdown libc_shutdown
|
||||
//go:cgo_import_dynamic libc_shutdown shutdown "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -203,7 +191,6 @@ func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
|
||||
|
||||
func libc_socketpair_trampoline()
|
||||
|
||||
//go:linkname libc_socketpair libc_socketpair
|
||||
//go:cgo_import_dynamic libc_socketpair socketpair "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -225,7 +212,6 @@ func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Sockl
|
||||
|
||||
func libc_recvfrom_trampoline()
|
||||
|
||||
//go:linkname libc_recvfrom libc_recvfrom
|
||||
//go:cgo_import_dynamic libc_recvfrom recvfrom "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -246,7 +232,6 @@ func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (
|
||||
|
||||
func libc_sendto_trampoline()
|
||||
|
||||
//go:linkname libc_sendto libc_sendto
|
||||
//go:cgo_import_dynamic libc_sendto sendto "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -262,7 +247,6 @@ func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
||||
|
||||
func libc_recvmsg_trampoline()
|
||||
|
||||
//go:linkname libc_recvmsg libc_recvmsg
|
||||
//go:cgo_import_dynamic libc_recvmsg recvmsg "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -278,7 +262,6 @@ func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
||||
|
||||
func libc_sendmsg_trampoline()
|
||||
|
||||
//go:linkname libc_sendmsg libc_sendmsg
|
||||
//go:cgo_import_dynamic libc_sendmsg sendmsg "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -294,7 +277,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne
|
||||
|
||||
func libc_kevent_trampoline()
|
||||
|
||||
//go:linkname libc_kevent libc_kevent
|
||||
//go:cgo_import_dynamic libc_kevent kevent "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -314,7 +296,6 @@ func utimes(path string, timeval *[2]Timeval) (err error) {
|
||||
|
||||
func libc_utimes_trampoline()
|
||||
|
||||
//go:linkname libc_utimes libc_utimes
|
||||
//go:cgo_import_dynamic libc_utimes utimes "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -329,7 +310,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
|
||||
|
||||
func libc_futimes_trampoline()
|
||||
|
||||
//go:linkname libc_futimes libc_futimes
|
||||
//go:cgo_import_dynamic libc_futimes futimes "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -345,7 +325,6 @@ func fcntl(fd int, cmd int, arg int) (val int, err error) {
|
||||
|
||||
func libc_fcntl_trampoline()
|
||||
|
||||
//go:linkname libc_fcntl libc_fcntl
|
||||
//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -360,7 +339,6 @@ func pipe(p *[2]int32) (err error) {
|
||||
|
||||
func libc_pipe_trampoline()
|
||||
|
||||
//go:linkname libc_pipe libc_pipe
|
||||
//go:cgo_import_dynamic libc_pipe pipe "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -375,7 +353,6 @@ func kill(pid int, signum int, posix int) (err error) {
|
||||
|
||||
func libc_kill_trampoline()
|
||||
|
||||
//go:linkname libc_kill libc_kill
|
||||
//go:cgo_import_dynamic libc_kill kill "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -395,7 +372,6 @@ func Access(path string, mode uint32) (err error) {
|
||||
|
||||
func libc_access_trampoline()
|
||||
|
||||
//go:linkname libc_access libc_access
|
||||
//go:cgo_import_dynamic libc_access access "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -410,7 +386,6 @@ func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
|
||||
|
||||
func libc_adjtime_trampoline()
|
||||
|
||||
//go:linkname libc_adjtime libc_adjtime
|
||||
//go:cgo_import_dynamic libc_adjtime adjtime "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -430,7 +405,6 @@ func Chdir(path string) (err error) {
|
||||
|
||||
func libc_chdir_trampoline()
|
||||
|
||||
//go:linkname libc_chdir libc_chdir
|
||||
//go:cgo_import_dynamic libc_chdir chdir "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -450,7 +424,6 @@ func Chflags(path string, flags int) (err error) {
|
||||
|
||||
func libc_chflags_trampoline()
|
||||
|
||||
//go:linkname libc_chflags libc_chflags
|
||||
//go:cgo_import_dynamic libc_chflags chflags "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -470,7 +443,6 @@ func Chmod(path string, mode uint32) (err error) {
|
||||
|
||||
func libc_chmod_trampoline()
|
||||
|
||||
//go:linkname libc_chmod libc_chmod
|
||||
//go:cgo_import_dynamic libc_chmod chmod "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -490,7 +462,6 @@ func Chown(path string, uid int, gid int) (err error) {
|
||||
|
||||
func libc_chown_trampoline()
|
||||
|
||||
//go:linkname libc_chown libc_chown
|
||||
//go:cgo_import_dynamic libc_chown chown "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -510,7 +481,6 @@ func Chroot(path string) (err error) {
|
||||
|
||||
func libc_chroot_trampoline()
|
||||
|
||||
//go:linkname libc_chroot libc_chroot
|
||||
//go:cgo_import_dynamic libc_chroot chroot "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -525,7 +495,6 @@ func Close(fd int) (err error) {
|
||||
|
||||
func libc_close_trampoline()
|
||||
|
||||
//go:linkname libc_close libc_close
|
||||
//go:cgo_import_dynamic libc_close close "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -540,7 +509,6 @@ func closedir(dir uintptr) (err error) {
|
||||
|
||||
func libc_closedir_trampoline()
|
||||
|
||||
//go:linkname libc_closedir libc_closedir
|
||||
//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -556,7 +524,6 @@ func Dup(fd int) (nfd int, err error) {
|
||||
|
||||
func libc_dup_trampoline()
|
||||
|
||||
//go:linkname libc_dup libc_dup
|
||||
//go:cgo_import_dynamic libc_dup dup "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -571,7 +538,6 @@ func Dup2(from int, to int) (err error) {
|
||||
|
||||
func libc_dup2_trampoline()
|
||||
|
||||
//go:linkname libc_dup2 libc_dup2
|
||||
//go:cgo_import_dynamic libc_dup2 dup2 "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -596,7 +562,6 @@ func Exchangedata(path1 string, path2 string, options int) (err error) {
|
||||
|
||||
func libc_exchangedata_trampoline()
|
||||
|
||||
//go:linkname libc_exchangedata libc_exchangedata
|
||||
//go:cgo_import_dynamic libc_exchangedata exchangedata "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -611,7 +576,6 @@ func Fchdir(fd int) (err error) {
|
||||
|
||||
func libc_fchdir_trampoline()
|
||||
|
||||
//go:linkname libc_fchdir libc_fchdir
|
||||
//go:cgo_import_dynamic libc_fchdir fchdir "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -626,7 +590,6 @@ func Fchflags(fd int, flags int) (err error) {
|
||||
|
||||
func libc_fchflags_trampoline()
|
||||
|
||||
//go:linkname libc_fchflags libc_fchflags
|
||||
//go:cgo_import_dynamic libc_fchflags fchflags "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -641,7 +604,6 @@ func Fchmod(fd int, mode uint32) (err error) {
|
||||
|
||||
func libc_fchmod_trampoline()
|
||||
|
||||
//go:linkname libc_fchmod libc_fchmod
|
||||
//go:cgo_import_dynamic libc_fchmod fchmod "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -656,7 +618,6 @@ func Fchown(fd int, uid int, gid int) (err error) {
|
||||
|
||||
func libc_fchown_trampoline()
|
||||
|
||||
//go:linkname libc_fchown libc_fchown
|
||||
//go:cgo_import_dynamic libc_fchown fchown "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -671,7 +632,6 @@ func Flock(fd int, how int) (err error) {
|
||||
|
||||
func libc_flock_trampoline()
|
||||
|
||||
//go:linkname libc_flock libc_flock
|
||||
//go:cgo_import_dynamic libc_flock flock "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -687,7 +647,6 @@ func Fpathconf(fd int, name int) (val int, err error) {
|
||||
|
||||
func libc_fpathconf_trampoline()
|
||||
|
||||
//go:linkname libc_fpathconf libc_fpathconf
|
||||
//go:cgo_import_dynamic libc_fpathconf fpathconf "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -702,7 +661,6 @@ func Fsync(fd int) (err error) {
|
||||
|
||||
func libc_fsync_trampoline()
|
||||
|
||||
//go:linkname libc_fsync libc_fsync
|
||||
//go:cgo_import_dynamic libc_fsync fsync "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -717,7 +675,6 @@ func Ftruncate(fd int, length int64) (err error) {
|
||||
|
||||
func libc_ftruncate_trampoline()
|
||||
|
||||
//go:linkname libc_ftruncate libc_ftruncate
|
||||
//go:cgo_import_dynamic libc_ftruncate ftruncate "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -730,7 +687,6 @@ func Getdtablesize() (size int) {
|
||||
|
||||
func libc_getdtablesize_trampoline()
|
||||
|
||||
//go:linkname libc_getdtablesize libc_getdtablesize
|
||||
//go:cgo_import_dynamic libc_getdtablesize getdtablesize "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -743,7 +699,6 @@ func Getegid() (egid int) {
|
||||
|
||||
func libc_getegid_trampoline()
|
||||
|
||||
//go:linkname libc_getegid libc_getegid
|
||||
//go:cgo_import_dynamic libc_getegid getegid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -756,7 +711,6 @@ func Geteuid() (uid int) {
|
||||
|
||||
func libc_geteuid_trampoline()
|
||||
|
||||
//go:linkname libc_geteuid libc_geteuid
|
||||
//go:cgo_import_dynamic libc_geteuid geteuid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -769,7 +723,6 @@ func Getgid() (gid int) {
|
||||
|
||||
func libc_getgid_trampoline()
|
||||
|
||||
//go:linkname libc_getgid libc_getgid
|
||||
//go:cgo_import_dynamic libc_getgid getgid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -785,7 +738,6 @@ func Getpgid(pid int) (pgid int, err error) {
|
||||
|
||||
func libc_getpgid_trampoline()
|
||||
|
||||
//go:linkname libc_getpgid libc_getpgid
|
||||
//go:cgo_import_dynamic libc_getpgid getpgid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -798,7 +750,6 @@ func Getpgrp() (pgrp int) {
|
||||
|
||||
func libc_getpgrp_trampoline()
|
||||
|
||||
//go:linkname libc_getpgrp libc_getpgrp
|
||||
//go:cgo_import_dynamic libc_getpgrp getpgrp "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -811,7 +762,6 @@ func Getpid() (pid int) {
|
||||
|
||||
func libc_getpid_trampoline()
|
||||
|
||||
//go:linkname libc_getpid libc_getpid
|
||||
//go:cgo_import_dynamic libc_getpid getpid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -824,7 +774,6 @@ func Getppid() (ppid int) {
|
||||
|
||||
func libc_getppid_trampoline()
|
||||
|
||||
//go:linkname libc_getppid libc_getppid
|
||||
//go:cgo_import_dynamic libc_getppid getppid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -840,7 +789,6 @@ func Getpriority(which int, who int) (prio int, err error) {
|
||||
|
||||
func libc_getpriority_trampoline()
|
||||
|
||||
//go:linkname libc_getpriority libc_getpriority
|
||||
//go:cgo_import_dynamic libc_getpriority getpriority "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -855,7 +803,6 @@ func Getrlimit(which int, lim *Rlimit) (err error) {
|
||||
|
||||
func libc_getrlimit_trampoline()
|
||||
|
||||
//go:linkname libc_getrlimit libc_getrlimit
|
||||
//go:cgo_import_dynamic libc_getrlimit getrlimit "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -870,7 +817,6 @@ func Getrusage(who int, rusage *Rusage) (err error) {
|
||||
|
||||
func libc_getrusage_trampoline()
|
||||
|
||||
//go:linkname libc_getrusage libc_getrusage
|
||||
//go:cgo_import_dynamic libc_getrusage getrusage "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -886,7 +832,6 @@ func Getsid(pid int) (sid int, err error) {
|
||||
|
||||
func libc_getsid_trampoline()
|
||||
|
||||
//go:linkname libc_getsid libc_getsid
|
||||
//go:cgo_import_dynamic libc_getsid getsid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -899,7 +844,6 @@ func Getuid() (uid int) {
|
||||
|
||||
func libc_getuid_trampoline()
|
||||
|
||||
//go:linkname libc_getuid libc_getuid
|
||||
//go:cgo_import_dynamic libc_getuid getuid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -912,7 +856,6 @@ func Issetugid() (tainted bool) {
|
||||
|
||||
func libc_issetugid_trampoline()
|
||||
|
||||
//go:linkname libc_issetugid libc_issetugid
|
||||
//go:cgo_import_dynamic libc_issetugid issetugid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -928,7 +871,6 @@ func Kqueue() (fd int, err error) {
|
||||
|
||||
func libc_kqueue_trampoline()
|
||||
|
||||
//go:linkname libc_kqueue libc_kqueue
|
||||
//go:cgo_import_dynamic libc_kqueue kqueue "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -948,7 +890,6 @@ func Lchown(path string, uid int, gid int) (err error) {
|
||||
|
||||
func libc_lchown_trampoline()
|
||||
|
||||
//go:linkname libc_lchown libc_lchown
|
||||
//go:cgo_import_dynamic libc_lchown lchown "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -973,7 +914,6 @@ func Link(path string, link string) (err error) {
|
||||
|
||||
func libc_link_trampoline()
|
||||
|
||||
//go:linkname libc_link libc_link
|
||||
//go:cgo_import_dynamic libc_link link "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -988,7 +928,6 @@ func Listen(s int, backlog int) (err error) {
|
||||
|
||||
func libc_listen_trampoline()
|
||||
|
||||
//go:linkname libc_listen libc_listen
|
||||
//go:cgo_import_dynamic libc_listen listen "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1008,7 +947,6 @@ func Mkdir(path string, mode uint32) (err error) {
|
||||
|
||||
func libc_mkdir_trampoline()
|
||||
|
||||
//go:linkname libc_mkdir libc_mkdir
|
||||
//go:cgo_import_dynamic libc_mkdir mkdir "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1028,7 +966,6 @@ func Mkfifo(path string, mode uint32) (err error) {
|
||||
|
||||
func libc_mkfifo_trampoline()
|
||||
|
||||
//go:linkname libc_mkfifo libc_mkfifo
|
||||
//go:cgo_import_dynamic libc_mkfifo mkfifo "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1048,7 +985,6 @@ func Mknod(path string, mode uint32, dev int) (err error) {
|
||||
|
||||
func libc_mknod_trampoline()
|
||||
|
||||
//go:linkname libc_mknod libc_mknod
|
||||
//go:cgo_import_dynamic libc_mknod mknod "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1069,7 +1005,6 @@ func Mlock(b []byte) (err error) {
|
||||
|
||||
func libc_mlock_trampoline()
|
||||
|
||||
//go:linkname libc_mlock libc_mlock
|
||||
//go:cgo_import_dynamic libc_mlock mlock "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1084,7 +1019,6 @@ func Mlockall(flags int) (err error) {
|
||||
|
||||
func libc_mlockall_trampoline()
|
||||
|
||||
//go:linkname libc_mlockall libc_mlockall
|
||||
//go:cgo_import_dynamic libc_mlockall mlockall "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1105,7 +1039,6 @@ func Mprotect(b []byte, prot int) (err error) {
|
||||
|
||||
func libc_mprotect_trampoline()
|
||||
|
||||
//go:linkname libc_mprotect libc_mprotect
|
||||
//go:cgo_import_dynamic libc_mprotect mprotect "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1126,7 +1059,6 @@ func Munlock(b []byte) (err error) {
|
||||
|
||||
func libc_munlock_trampoline()
|
||||
|
||||
//go:linkname libc_munlock libc_munlock
|
||||
//go:cgo_import_dynamic libc_munlock munlock "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1141,7 +1073,6 @@ func Munlockall() (err error) {
|
||||
|
||||
func libc_munlockall_trampoline()
|
||||
|
||||
//go:linkname libc_munlockall libc_munlockall
|
||||
//go:cgo_import_dynamic libc_munlockall munlockall "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1162,7 +1093,6 @@ func Open(path string, mode int, perm uint32) (fd int, err error) {
|
||||
|
||||
func libc_open_trampoline()
|
||||
|
||||
//go:linkname libc_open libc_open
|
||||
//go:cgo_import_dynamic libc_open open "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1183,7 +1113,6 @@ func Pathconf(path string, name int) (val int, err error) {
|
||||
|
||||
func libc_pathconf_trampoline()
|
||||
|
||||
//go:linkname libc_pathconf libc_pathconf
|
||||
//go:cgo_import_dynamic libc_pathconf pathconf "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1205,7 +1134,6 @@ func Pread(fd int, p []byte, offset int64) (n int, err error) {
|
||||
|
||||
func libc_pread_trampoline()
|
||||
|
||||
//go:linkname libc_pread libc_pread
|
||||
//go:cgo_import_dynamic libc_pread pread "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1227,7 +1155,6 @@ func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
|
||||
|
||||
func libc_pwrite_trampoline()
|
||||
|
||||
//go:linkname libc_pwrite libc_pwrite
|
||||
//go:cgo_import_dynamic libc_pwrite pwrite "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1249,7 +1176,6 @@ func read(fd int, p []byte) (n int, err error) {
|
||||
|
||||
func libc_read_trampoline()
|
||||
|
||||
//go:linkname libc_read libc_read
|
||||
//go:cgo_import_dynamic libc_read read "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1262,7 +1188,6 @@ func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
|
||||
|
||||
func libc_readdir_r_trampoline()
|
||||
|
||||
//go:linkname libc_readdir_r libc_readdir_r
|
||||
//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1289,7 +1214,6 @@ func Readlink(path string, buf []byte) (n int, err error) {
|
||||
|
||||
func libc_readlink_trampoline()
|
||||
|
||||
//go:linkname libc_readlink libc_readlink
|
||||
//go:cgo_import_dynamic libc_readlink readlink "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1314,7 +1238,6 @@ func Rename(from string, to string) (err error) {
|
||||
|
||||
func libc_rename_trampoline()
|
||||
|
||||
//go:linkname libc_rename libc_rename
|
||||
//go:cgo_import_dynamic libc_rename rename "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1334,7 +1257,6 @@ func Revoke(path string) (err error) {
|
||||
|
||||
func libc_revoke_trampoline()
|
||||
|
||||
//go:linkname libc_revoke libc_revoke
|
||||
//go:cgo_import_dynamic libc_revoke revoke "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1354,7 +1276,6 @@ func Rmdir(path string) (err error) {
|
||||
|
||||
func libc_rmdir_trampoline()
|
||||
|
||||
//go:linkname libc_rmdir libc_rmdir
|
||||
//go:cgo_import_dynamic libc_rmdir rmdir "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1370,7 +1291,6 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
||||
|
||||
func libc_lseek_trampoline()
|
||||
|
||||
//go:linkname libc_lseek libc_lseek
|
||||
//go:cgo_import_dynamic libc_lseek lseek "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1385,7 +1305,6 @@ func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
|
||||
|
||||
func libc_select_trampoline()
|
||||
|
||||
//go:linkname libc_select libc_select
|
||||
//go:cgo_import_dynamic libc_select select "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1400,7 +1319,6 @@ func Setegid(egid int) (err error) {
|
||||
|
||||
func libc_setegid_trampoline()
|
||||
|
||||
//go:linkname libc_setegid libc_setegid
|
||||
//go:cgo_import_dynamic libc_setegid setegid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1415,7 +1333,6 @@ func Seteuid(euid int) (err error) {
|
||||
|
||||
func libc_seteuid_trampoline()
|
||||
|
||||
//go:linkname libc_seteuid libc_seteuid
|
||||
//go:cgo_import_dynamic libc_seteuid seteuid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1430,7 +1347,6 @@ func Setgid(gid int) (err error) {
|
||||
|
||||
func libc_setgid_trampoline()
|
||||
|
||||
//go:linkname libc_setgid libc_setgid
|
||||
//go:cgo_import_dynamic libc_setgid setgid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1450,7 +1366,6 @@ func Setlogin(name string) (err error) {
|
||||
|
||||
func libc_setlogin_trampoline()
|
||||
|
||||
//go:linkname libc_setlogin libc_setlogin
|
||||
//go:cgo_import_dynamic libc_setlogin setlogin "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1465,7 +1380,6 @@ func Setpgid(pid int, pgid int) (err error) {
|
||||
|
||||
func libc_setpgid_trampoline()
|
||||
|
||||
//go:linkname libc_setpgid libc_setpgid
|
||||
//go:cgo_import_dynamic libc_setpgid setpgid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1480,7 +1394,6 @@ func Setpriority(which int, who int, prio int) (err error) {
|
||||
|
||||
func libc_setpriority_trampoline()
|
||||
|
||||
//go:linkname libc_setpriority libc_setpriority
|
||||
//go:cgo_import_dynamic libc_setpriority setpriority "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1495,7 +1408,6 @@ func Setprivexec(flag int) (err error) {
|
||||
|
||||
func libc_setprivexec_trampoline()
|
||||
|
||||
//go:linkname libc_setprivexec libc_setprivexec
|
||||
//go:cgo_import_dynamic libc_setprivexec setprivexec "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1510,7 +1422,6 @@ func Setregid(rgid int, egid int) (err error) {
|
||||
|
||||
func libc_setregid_trampoline()
|
||||
|
||||
//go:linkname libc_setregid libc_setregid
|
||||
//go:cgo_import_dynamic libc_setregid setregid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1525,7 +1436,6 @@ func Setreuid(ruid int, euid int) (err error) {
|
||||
|
||||
func libc_setreuid_trampoline()
|
||||
|
||||
//go:linkname libc_setreuid libc_setreuid
|
||||
//go:cgo_import_dynamic libc_setreuid setreuid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1540,7 +1450,6 @@ func Setrlimit(which int, lim *Rlimit) (err error) {
|
||||
|
||||
func libc_setrlimit_trampoline()
|
||||
|
||||
//go:linkname libc_setrlimit libc_setrlimit
|
||||
//go:cgo_import_dynamic libc_setrlimit setrlimit "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1556,7 +1465,6 @@ func Setsid() (pid int, err error) {
|
||||
|
||||
func libc_setsid_trampoline()
|
||||
|
||||
//go:linkname libc_setsid libc_setsid
|
||||
//go:cgo_import_dynamic libc_setsid setsid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1571,7 +1479,6 @@ func Settimeofday(tp *Timeval) (err error) {
|
||||
|
||||
func libc_settimeofday_trampoline()
|
||||
|
||||
//go:linkname libc_settimeofday libc_settimeofday
|
||||
//go:cgo_import_dynamic libc_settimeofday settimeofday "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1586,7 +1493,6 @@ func Setuid(uid int) (err error) {
|
||||
|
||||
func libc_setuid_trampoline()
|
||||
|
||||
//go:linkname libc_setuid libc_setuid
|
||||
//go:cgo_import_dynamic libc_setuid setuid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1611,7 +1517,6 @@ func Symlink(path string, link string) (err error) {
|
||||
|
||||
func libc_symlink_trampoline()
|
||||
|
||||
//go:linkname libc_symlink libc_symlink
|
||||
//go:cgo_import_dynamic libc_symlink symlink "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1626,7 +1531,6 @@ func Sync() (err error) {
|
||||
|
||||
func libc_sync_trampoline()
|
||||
|
||||
//go:linkname libc_sync libc_sync
|
||||
//go:cgo_import_dynamic libc_sync sync "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1646,7 +1550,6 @@ func Truncate(path string, length int64) (err error) {
|
||||
|
||||
func libc_truncate_trampoline()
|
||||
|
||||
//go:linkname libc_truncate libc_truncate
|
||||
//go:cgo_import_dynamic libc_truncate truncate "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1659,7 +1562,6 @@ func Umask(newmask int) (oldmask int) {
|
||||
|
||||
func libc_umask_trampoline()
|
||||
|
||||
//go:linkname libc_umask libc_umask
|
||||
//go:cgo_import_dynamic libc_umask umask "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1679,7 +1581,6 @@ func Undelete(path string) (err error) {
|
||||
|
||||
func libc_undelete_trampoline()
|
||||
|
||||
//go:linkname libc_undelete libc_undelete
|
||||
//go:cgo_import_dynamic libc_undelete undelete "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1699,7 +1600,6 @@ func Unlink(path string) (err error) {
|
||||
|
||||
func libc_unlink_trampoline()
|
||||
|
||||
//go:linkname libc_unlink libc_unlink
|
||||
//go:cgo_import_dynamic libc_unlink unlink "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1719,7 +1619,6 @@ func Unmount(path string, flags int) (err error) {
|
||||
|
||||
func libc_unmount_trampoline()
|
||||
|
||||
//go:linkname libc_unmount libc_unmount
|
||||
//go:cgo_import_dynamic libc_unmount unmount "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1741,7 +1640,6 @@ func write(fd int, p []byte) (n int, err error) {
|
||||
|
||||
func libc_write_trampoline()
|
||||
|
||||
//go:linkname libc_write libc_write
|
||||
//go:cgo_import_dynamic libc_write write "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1763,7 +1661,6 @@ func writev(fd int, iovecs []Iovec) (cnt uintptr, err error) {
|
||||
|
||||
func libc_writev_trampoline()
|
||||
|
||||
//go:linkname libc_writev libc_writev
|
||||
//go:cgo_import_dynamic libc_writev writev "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1779,7 +1676,6 @@ func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (
|
||||
|
||||
func libc_mmap_trampoline()
|
||||
|
||||
//go:linkname libc_mmap libc_mmap
|
||||
//go:cgo_import_dynamic libc_mmap mmap "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1794,7 +1690,6 @@ func munmap(addr uintptr, length uintptr) (err error) {
|
||||
|
||||
func libc_munmap_trampoline()
|
||||
|
||||
//go:linkname libc_munmap libc_munmap
|
||||
//go:cgo_import_dynamic libc_munmap munmap "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1810,7 +1705,6 @@ func fork() (pid int, err error) {
|
||||
|
||||
func libc_fork_trampoline()
|
||||
|
||||
//go:linkname libc_fork libc_fork
|
||||
//go:cgo_import_dynamic libc_fork fork "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1825,7 +1719,6 @@ func ioctl(fd int, req int, arg int) (err error) {
|
||||
|
||||
func libc_ioctl_trampoline()
|
||||
|
||||
//go:linkname libc_ioctl libc_ioctl
|
||||
//go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1850,7 +1743,6 @@ func execve(path *byte, argv **byte, envp **byte) (err error) {
|
||||
|
||||
func libc_execve_trampoline()
|
||||
|
||||
//go:linkname libc_execve libc_execve
|
||||
//go:cgo_import_dynamic libc_execve execve "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1865,7 +1757,6 @@ func exit(res int) (err error) {
|
||||
|
||||
func libc_exit_trampoline()
|
||||
|
||||
//go:linkname libc_exit libc_exit
|
||||
//go:cgo_import_dynamic libc_exit exit "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1886,7 +1777,6 @@ func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr)
|
||||
|
||||
func libc_sysctl_trampoline()
|
||||
|
||||
//go:linkname libc_sysctl libc_sysctl
|
||||
//go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1917,7 +1807,6 @@ func unlinkat(fd int, path string, flags int) (err error) {
|
||||
|
||||
func libc_unlinkat_trampoline()
|
||||
|
||||
//go:linkname libc_unlinkat libc_unlinkat
|
||||
//go:cgo_import_dynamic libc_unlinkat unlinkat "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1938,7 +1827,6 @@ func openat(fd int, path string, flags int, perm uint32) (fdret int, err error)
|
||||
|
||||
func libc_openat_trampoline()
|
||||
|
||||
//go:linkname libc_openat libc_openat
|
||||
//go:cgo_import_dynamic libc_openat openat "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1960,7 +1848,6 @@ func getcwd(buf []byte) (n int, err error) {
|
||||
|
||||
func libc_getcwd_trampoline()
|
||||
|
||||
//go:linkname libc_getcwd libc_getcwd
|
||||
//go:cgo_import_dynamic libc_getcwd getcwd "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1975,7 +1862,6 @@ func Fstat(fd int, stat *Stat_t) (err error) {
|
||||
|
||||
func libc_fstat64_trampoline()
|
||||
|
||||
//go:linkname libc_fstat64 libc_fstat64
|
||||
//go:cgo_import_dynamic libc_fstat64 fstat64 "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1990,7 +1876,6 @@ func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
||||
|
||||
func libc_fstatfs64_trampoline()
|
||||
|
||||
//go:linkname libc_fstatfs64 libc_fstatfs64
|
||||
//go:cgo_import_dynamic libc_fstatfs64 fstatfs64 "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -2005,7 +1890,6 @@ func Gettimeofday(tp *Timeval) (err error) {
|
||||
|
||||
func libc_gettimeofday_trampoline()
|
||||
|
||||
//go:linkname libc_gettimeofday libc_gettimeofday
|
||||
//go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -2025,7 +1909,6 @@ func Lstat(path string, stat *Stat_t) (err error) {
|
||||
|
||||
func libc_lstat64_trampoline()
|
||||
|
||||
//go:linkname libc_lstat64 libc_lstat64
|
||||
//go:cgo_import_dynamic libc_lstat64 lstat64 "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -2045,7 +1928,6 @@ func Stat(path string, stat *Stat_t) (err error) {
|
||||
|
||||
func libc_stat64_trampoline()
|
||||
|
||||
//go:linkname libc_stat64 libc_stat64
|
||||
//go:cgo_import_dynamic libc_stat64 stat64 "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -2065,7 +1947,6 @@ func Statfs(path string, stat *Statfs_t) (err error) {
|
||||
|
||||
func libc_statfs64_trampoline()
|
||||
|
||||
//go:linkname libc_statfs64 libc_statfs64
|
||||
//go:cgo_import_dynamic libc_statfs64 statfs64 "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -2085,7 +1966,6 @@ func fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
||||
|
||||
func libc_fstatat64_trampoline()
|
||||
|
||||
//go:linkname libc_fstatat64 libc_fstatat64
|
||||
//go:cgo_import_dynamic libc_fstatat64 fstatat64 "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -2101,5 +1981,4 @@ func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
|
||||
func libc_ptrace_trampoline()
|
||||
|
||||
//go:linkname libc_ptrace libc_ptrace
|
||||
//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
|
||||
|
@ -20,7 +20,6 @@ func getgroups(ngid int, gid *_Gid_t) (n int, err error) {
|
||||
|
||||
func libc_getgroups_trampoline()
|
||||
|
||||
//go:linkname libc_getgroups libc_getgroups
|
||||
//go:cgo_import_dynamic libc_getgroups getgroups "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -35,7 +34,6 @@ func setgroups(ngid int, gid *_Gid_t) (err error) {
|
||||
|
||||
func libc_setgroups_trampoline()
|
||||
|
||||
//go:linkname libc_setgroups libc_setgroups
|
||||
//go:cgo_import_dynamic libc_setgroups setgroups "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -51,7 +49,6 @@ func wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err
|
||||
|
||||
func libc_wait4_trampoline()
|
||||
|
||||
//go:linkname libc_wait4 libc_wait4
|
||||
//go:cgo_import_dynamic libc_wait4 wait4 "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -67,7 +64,6 @@ func accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error) {
|
||||
|
||||
func libc_accept_trampoline()
|
||||
|
||||
//go:linkname libc_accept libc_accept
|
||||
//go:cgo_import_dynamic libc_accept accept "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -82,7 +78,6 @@ func bind(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
|
||||
|
||||
func libc_bind_trampoline()
|
||||
|
||||
//go:linkname libc_bind libc_bind
|
||||
//go:cgo_import_dynamic libc_bind bind "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -97,7 +92,6 @@ func connect(s int, addr unsafe.Pointer, addrlen _Socklen) (err error) {
|
||||
|
||||
func libc_connect_trampoline()
|
||||
|
||||
//go:linkname libc_connect libc_connect
|
||||
//go:cgo_import_dynamic libc_connect connect "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -113,7 +107,6 @@ func socket(domain int, typ int, proto int) (fd int, err error) {
|
||||
|
||||
func libc_socket_trampoline()
|
||||
|
||||
//go:linkname libc_socket libc_socket
|
||||
//go:cgo_import_dynamic libc_socket socket "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -128,7 +121,6 @@ func getsockopt(s int, level int, name int, val unsafe.Pointer, vallen *_Socklen
|
||||
|
||||
func libc_getsockopt_trampoline()
|
||||
|
||||
//go:linkname libc_getsockopt libc_getsockopt
|
||||
//go:cgo_import_dynamic libc_getsockopt getsockopt "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -143,7 +135,6 @@ func setsockopt(s int, level int, name int, val unsafe.Pointer, vallen uintptr)
|
||||
|
||||
func libc_setsockopt_trampoline()
|
||||
|
||||
//go:linkname libc_setsockopt libc_setsockopt
|
||||
//go:cgo_import_dynamic libc_setsockopt setsockopt "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -158,7 +149,6 @@ func getpeername(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
|
||||
|
||||
func libc_getpeername_trampoline()
|
||||
|
||||
//go:linkname libc_getpeername libc_getpeername
|
||||
//go:cgo_import_dynamic libc_getpeername getpeername "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -173,7 +163,6 @@ func getsockname(fd int, rsa *RawSockaddrAny, addrlen *_Socklen) (err error) {
|
||||
|
||||
func libc_getsockname_trampoline()
|
||||
|
||||
//go:linkname libc_getsockname libc_getsockname
|
||||
//go:cgo_import_dynamic libc_getsockname getsockname "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -188,7 +177,6 @@ func Shutdown(s int, how int) (err error) {
|
||||
|
||||
func libc_shutdown_trampoline()
|
||||
|
||||
//go:linkname libc_shutdown libc_shutdown
|
||||
//go:cgo_import_dynamic libc_shutdown shutdown "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -203,7 +191,6 @@ func socketpair(domain int, typ int, proto int, fd *[2]int32) (err error) {
|
||||
|
||||
func libc_socketpair_trampoline()
|
||||
|
||||
//go:linkname libc_socketpair libc_socketpair
|
||||
//go:cgo_import_dynamic libc_socketpair socketpair "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -225,7 +212,6 @@ func recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Sockl
|
||||
|
||||
func libc_recvfrom_trampoline()
|
||||
|
||||
//go:linkname libc_recvfrom libc_recvfrom
|
||||
//go:cgo_import_dynamic libc_recvfrom recvfrom "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -246,7 +232,6 @@ func sendto(s int, buf []byte, flags int, to unsafe.Pointer, addrlen _Socklen) (
|
||||
|
||||
func libc_sendto_trampoline()
|
||||
|
||||
//go:linkname libc_sendto libc_sendto
|
||||
//go:cgo_import_dynamic libc_sendto sendto "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -262,7 +247,6 @@ func recvmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
||||
|
||||
func libc_recvmsg_trampoline()
|
||||
|
||||
//go:linkname libc_recvmsg libc_recvmsg
|
||||
//go:cgo_import_dynamic libc_recvmsg recvmsg "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -278,7 +262,6 @@ func sendmsg(s int, msg *Msghdr, flags int) (n int, err error) {
|
||||
|
||||
func libc_sendmsg_trampoline()
|
||||
|
||||
//go:linkname libc_sendmsg libc_sendmsg
|
||||
//go:cgo_import_dynamic libc_sendmsg sendmsg "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -294,7 +277,6 @@ func kevent(kq int, change unsafe.Pointer, nchange int, event unsafe.Pointer, ne
|
||||
|
||||
func libc_kevent_trampoline()
|
||||
|
||||
//go:linkname libc_kevent libc_kevent
|
||||
//go:cgo_import_dynamic libc_kevent kevent "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -314,7 +296,6 @@ func utimes(path string, timeval *[2]Timeval) (err error) {
|
||||
|
||||
func libc_utimes_trampoline()
|
||||
|
||||
//go:linkname libc_utimes libc_utimes
|
||||
//go:cgo_import_dynamic libc_utimes utimes "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -329,7 +310,6 @@ func futimes(fd int, timeval *[2]Timeval) (err error) {
|
||||
|
||||
func libc_futimes_trampoline()
|
||||
|
||||
//go:linkname libc_futimes libc_futimes
|
||||
//go:cgo_import_dynamic libc_futimes futimes "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -345,7 +325,6 @@ func fcntl(fd int, cmd int, arg int) (val int, err error) {
|
||||
|
||||
func libc_fcntl_trampoline()
|
||||
|
||||
//go:linkname libc_fcntl libc_fcntl
|
||||
//go:cgo_import_dynamic libc_fcntl fcntl "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -360,7 +339,6 @@ func pipe(p *[2]int32) (err error) {
|
||||
|
||||
func libc_pipe_trampoline()
|
||||
|
||||
//go:linkname libc_pipe libc_pipe
|
||||
//go:cgo_import_dynamic libc_pipe pipe "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -375,7 +353,6 @@ func kill(pid int, signum int, posix int) (err error) {
|
||||
|
||||
func libc_kill_trampoline()
|
||||
|
||||
//go:linkname libc_kill libc_kill
|
||||
//go:cgo_import_dynamic libc_kill kill "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -395,7 +372,6 @@ func Access(path string, mode uint32) (err error) {
|
||||
|
||||
func libc_access_trampoline()
|
||||
|
||||
//go:linkname libc_access libc_access
|
||||
//go:cgo_import_dynamic libc_access access "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -410,7 +386,6 @@ func Adjtime(delta *Timeval, olddelta *Timeval) (err error) {
|
||||
|
||||
func libc_adjtime_trampoline()
|
||||
|
||||
//go:linkname libc_adjtime libc_adjtime
|
||||
//go:cgo_import_dynamic libc_adjtime adjtime "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -430,7 +405,6 @@ func Chdir(path string) (err error) {
|
||||
|
||||
func libc_chdir_trampoline()
|
||||
|
||||
//go:linkname libc_chdir libc_chdir
|
||||
//go:cgo_import_dynamic libc_chdir chdir "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -450,7 +424,6 @@ func Chflags(path string, flags int) (err error) {
|
||||
|
||||
func libc_chflags_trampoline()
|
||||
|
||||
//go:linkname libc_chflags libc_chflags
|
||||
//go:cgo_import_dynamic libc_chflags chflags "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -470,7 +443,6 @@ func Chmod(path string, mode uint32) (err error) {
|
||||
|
||||
func libc_chmod_trampoline()
|
||||
|
||||
//go:linkname libc_chmod libc_chmod
|
||||
//go:cgo_import_dynamic libc_chmod chmod "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -490,7 +462,6 @@ func Chown(path string, uid int, gid int) (err error) {
|
||||
|
||||
func libc_chown_trampoline()
|
||||
|
||||
//go:linkname libc_chown libc_chown
|
||||
//go:cgo_import_dynamic libc_chown chown "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -510,7 +481,6 @@ func Chroot(path string) (err error) {
|
||||
|
||||
func libc_chroot_trampoline()
|
||||
|
||||
//go:linkname libc_chroot libc_chroot
|
||||
//go:cgo_import_dynamic libc_chroot chroot "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -525,7 +495,6 @@ func Close(fd int) (err error) {
|
||||
|
||||
func libc_close_trampoline()
|
||||
|
||||
//go:linkname libc_close libc_close
|
||||
//go:cgo_import_dynamic libc_close close "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -540,7 +509,6 @@ func closedir(dir uintptr) (err error) {
|
||||
|
||||
func libc_closedir_trampoline()
|
||||
|
||||
//go:linkname libc_closedir libc_closedir
|
||||
//go:cgo_import_dynamic libc_closedir closedir "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -556,7 +524,6 @@ func Dup(fd int) (nfd int, err error) {
|
||||
|
||||
func libc_dup_trampoline()
|
||||
|
||||
//go:linkname libc_dup libc_dup
|
||||
//go:cgo_import_dynamic libc_dup dup "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -571,7 +538,6 @@ func Dup2(from int, to int) (err error) {
|
||||
|
||||
func libc_dup2_trampoline()
|
||||
|
||||
//go:linkname libc_dup2 libc_dup2
|
||||
//go:cgo_import_dynamic libc_dup2 dup2 "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -596,7 +562,6 @@ func Exchangedata(path1 string, path2 string, options int) (err error) {
|
||||
|
||||
func libc_exchangedata_trampoline()
|
||||
|
||||
//go:linkname libc_exchangedata libc_exchangedata
|
||||
//go:cgo_import_dynamic libc_exchangedata exchangedata "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -611,7 +576,6 @@ func Fchdir(fd int) (err error) {
|
||||
|
||||
func libc_fchdir_trampoline()
|
||||
|
||||
//go:linkname libc_fchdir libc_fchdir
|
||||
//go:cgo_import_dynamic libc_fchdir fchdir "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -626,7 +590,6 @@ func Fchflags(fd int, flags int) (err error) {
|
||||
|
||||
func libc_fchflags_trampoline()
|
||||
|
||||
//go:linkname libc_fchflags libc_fchflags
|
||||
//go:cgo_import_dynamic libc_fchflags fchflags "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -641,7 +604,6 @@ func Fchmod(fd int, mode uint32) (err error) {
|
||||
|
||||
func libc_fchmod_trampoline()
|
||||
|
||||
//go:linkname libc_fchmod libc_fchmod
|
||||
//go:cgo_import_dynamic libc_fchmod fchmod "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -656,7 +618,6 @@ func Fchown(fd int, uid int, gid int) (err error) {
|
||||
|
||||
func libc_fchown_trampoline()
|
||||
|
||||
//go:linkname libc_fchown libc_fchown
|
||||
//go:cgo_import_dynamic libc_fchown fchown "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -671,7 +632,6 @@ func Flock(fd int, how int) (err error) {
|
||||
|
||||
func libc_flock_trampoline()
|
||||
|
||||
//go:linkname libc_flock libc_flock
|
||||
//go:cgo_import_dynamic libc_flock flock "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -687,7 +647,6 @@ func Fpathconf(fd int, name int) (val int, err error) {
|
||||
|
||||
func libc_fpathconf_trampoline()
|
||||
|
||||
//go:linkname libc_fpathconf libc_fpathconf
|
||||
//go:cgo_import_dynamic libc_fpathconf fpathconf "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -702,7 +661,6 @@ func Fsync(fd int) (err error) {
|
||||
|
||||
func libc_fsync_trampoline()
|
||||
|
||||
//go:linkname libc_fsync libc_fsync
|
||||
//go:cgo_import_dynamic libc_fsync fsync "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -717,7 +675,6 @@ func Ftruncate(fd int, length int64) (err error) {
|
||||
|
||||
func libc_ftruncate_trampoline()
|
||||
|
||||
//go:linkname libc_ftruncate libc_ftruncate
|
||||
//go:cgo_import_dynamic libc_ftruncate ftruncate "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -730,7 +687,6 @@ func Getdtablesize() (size int) {
|
||||
|
||||
func libc_getdtablesize_trampoline()
|
||||
|
||||
//go:linkname libc_getdtablesize libc_getdtablesize
|
||||
//go:cgo_import_dynamic libc_getdtablesize getdtablesize "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -743,7 +699,6 @@ func Getegid() (egid int) {
|
||||
|
||||
func libc_getegid_trampoline()
|
||||
|
||||
//go:linkname libc_getegid libc_getegid
|
||||
//go:cgo_import_dynamic libc_getegid getegid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -756,7 +711,6 @@ func Geteuid() (uid int) {
|
||||
|
||||
func libc_geteuid_trampoline()
|
||||
|
||||
//go:linkname libc_geteuid libc_geteuid
|
||||
//go:cgo_import_dynamic libc_geteuid geteuid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -769,7 +723,6 @@ func Getgid() (gid int) {
|
||||
|
||||
func libc_getgid_trampoline()
|
||||
|
||||
//go:linkname libc_getgid libc_getgid
|
||||
//go:cgo_import_dynamic libc_getgid getgid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -785,7 +738,6 @@ func Getpgid(pid int) (pgid int, err error) {
|
||||
|
||||
func libc_getpgid_trampoline()
|
||||
|
||||
//go:linkname libc_getpgid libc_getpgid
|
||||
//go:cgo_import_dynamic libc_getpgid getpgid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -798,7 +750,6 @@ func Getpgrp() (pgrp int) {
|
||||
|
||||
func libc_getpgrp_trampoline()
|
||||
|
||||
//go:linkname libc_getpgrp libc_getpgrp
|
||||
//go:cgo_import_dynamic libc_getpgrp getpgrp "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -811,7 +762,6 @@ func Getpid() (pid int) {
|
||||
|
||||
func libc_getpid_trampoline()
|
||||
|
||||
//go:linkname libc_getpid libc_getpid
|
||||
//go:cgo_import_dynamic libc_getpid getpid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -824,7 +774,6 @@ func Getppid() (ppid int) {
|
||||
|
||||
func libc_getppid_trampoline()
|
||||
|
||||
//go:linkname libc_getppid libc_getppid
|
||||
//go:cgo_import_dynamic libc_getppid getppid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -840,7 +789,6 @@ func Getpriority(which int, who int) (prio int, err error) {
|
||||
|
||||
func libc_getpriority_trampoline()
|
||||
|
||||
//go:linkname libc_getpriority libc_getpriority
|
||||
//go:cgo_import_dynamic libc_getpriority getpriority "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -855,7 +803,6 @@ func Getrlimit(which int, lim *Rlimit) (err error) {
|
||||
|
||||
func libc_getrlimit_trampoline()
|
||||
|
||||
//go:linkname libc_getrlimit libc_getrlimit
|
||||
//go:cgo_import_dynamic libc_getrlimit getrlimit "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -870,7 +817,6 @@ func Getrusage(who int, rusage *Rusage) (err error) {
|
||||
|
||||
func libc_getrusage_trampoline()
|
||||
|
||||
//go:linkname libc_getrusage libc_getrusage
|
||||
//go:cgo_import_dynamic libc_getrusage getrusage "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -886,7 +832,6 @@ func Getsid(pid int) (sid int, err error) {
|
||||
|
||||
func libc_getsid_trampoline()
|
||||
|
||||
//go:linkname libc_getsid libc_getsid
|
||||
//go:cgo_import_dynamic libc_getsid getsid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -899,7 +844,6 @@ func Getuid() (uid int) {
|
||||
|
||||
func libc_getuid_trampoline()
|
||||
|
||||
//go:linkname libc_getuid libc_getuid
|
||||
//go:cgo_import_dynamic libc_getuid getuid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -912,7 +856,6 @@ func Issetugid() (tainted bool) {
|
||||
|
||||
func libc_issetugid_trampoline()
|
||||
|
||||
//go:linkname libc_issetugid libc_issetugid
|
||||
//go:cgo_import_dynamic libc_issetugid issetugid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -928,7 +871,6 @@ func Kqueue() (fd int, err error) {
|
||||
|
||||
func libc_kqueue_trampoline()
|
||||
|
||||
//go:linkname libc_kqueue libc_kqueue
|
||||
//go:cgo_import_dynamic libc_kqueue kqueue "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -948,7 +890,6 @@ func Lchown(path string, uid int, gid int) (err error) {
|
||||
|
||||
func libc_lchown_trampoline()
|
||||
|
||||
//go:linkname libc_lchown libc_lchown
|
||||
//go:cgo_import_dynamic libc_lchown lchown "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -973,7 +914,6 @@ func Link(path string, link string) (err error) {
|
||||
|
||||
func libc_link_trampoline()
|
||||
|
||||
//go:linkname libc_link libc_link
|
||||
//go:cgo_import_dynamic libc_link link "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -988,7 +928,6 @@ func Listen(s int, backlog int) (err error) {
|
||||
|
||||
func libc_listen_trampoline()
|
||||
|
||||
//go:linkname libc_listen libc_listen
|
||||
//go:cgo_import_dynamic libc_listen listen "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1008,7 +947,6 @@ func Mkdir(path string, mode uint32) (err error) {
|
||||
|
||||
func libc_mkdir_trampoline()
|
||||
|
||||
//go:linkname libc_mkdir libc_mkdir
|
||||
//go:cgo_import_dynamic libc_mkdir mkdir "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1028,7 +966,6 @@ func Mkfifo(path string, mode uint32) (err error) {
|
||||
|
||||
func libc_mkfifo_trampoline()
|
||||
|
||||
//go:linkname libc_mkfifo libc_mkfifo
|
||||
//go:cgo_import_dynamic libc_mkfifo mkfifo "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1048,7 +985,6 @@ func Mknod(path string, mode uint32, dev int) (err error) {
|
||||
|
||||
func libc_mknod_trampoline()
|
||||
|
||||
//go:linkname libc_mknod libc_mknod
|
||||
//go:cgo_import_dynamic libc_mknod mknod "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1069,7 +1005,6 @@ func Mlock(b []byte) (err error) {
|
||||
|
||||
func libc_mlock_trampoline()
|
||||
|
||||
//go:linkname libc_mlock libc_mlock
|
||||
//go:cgo_import_dynamic libc_mlock mlock "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1084,7 +1019,6 @@ func Mlockall(flags int) (err error) {
|
||||
|
||||
func libc_mlockall_trampoline()
|
||||
|
||||
//go:linkname libc_mlockall libc_mlockall
|
||||
//go:cgo_import_dynamic libc_mlockall mlockall "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1105,7 +1039,6 @@ func Mprotect(b []byte, prot int) (err error) {
|
||||
|
||||
func libc_mprotect_trampoline()
|
||||
|
||||
//go:linkname libc_mprotect libc_mprotect
|
||||
//go:cgo_import_dynamic libc_mprotect mprotect "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1126,7 +1059,6 @@ func Munlock(b []byte) (err error) {
|
||||
|
||||
func libc_munlock_trampoline()
|
||||
|
||||
//go:linkname libc_munlock libc_munlock
|
||||
//go:cgo_import_dynamic libc_munlock munlock "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1141,7 +1073,6 @@ func Munlockall() (err error) {
|
||||
|
||||
func libc_munlockall_trampoline()
|
||||
|
||||
//go:linkname libc_munlockall libc_munlockall
|
||||
//go:cgo_import_dynamic libc_munlockall munlockall "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1162,7 +1093,6 @@ func Open(path string, mode int, perm uint32) (fd int, err error) {
|
||||
|
||||
func libc_open_trampoline()
|
||||
|
||||
//go:linkname libc_open libc_open
|
||||
//go:cgo_import_dynamic libc_open open "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1183,7 +1113,6 @@ func Pathconf(path string, name int) (val int, err error) {
|
||||
|
||||
func libc_pathconf_trampoline()
|
||||
|
||||
//go:linkname libc_pathconf libc_pathconf
|
||||
//go:cgo_import_dynamic libc_pathconf pathconf "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1205,7 +1134,6 @@ func Pread(fd int, p []byte, offset int64) (n int, err error) {
|
||||
|
||||
func libc_pread_trampoline()
|
||||
|
||||
//go:linkname libc_pread libc_pread
|
||||
//go:cgo_import_dynamic libc_pread pread "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1227,7 +1155,6 @@ func Pwrite(fd int, p []byte, offset int64) (n int, err error) {
|
||||
|
||||
func libc_pwrite_trampoline()
|
||||
|
||||
//go:linkname libc_pwrite libc_pwrite
|
||||
//go:cgo_import_dynamic libc_pwrite pwrite "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1249,7 +1176,6 @@ func read(fd int, p []byte) (n int, err error) {
|
||||
|
||||
func libc_read_trampoline()
|
||||
|
||||
//go:linkname libc_read libc_read
|
||||
//go:cgo_import_dynamic libc_read read "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1262,7 +1188,6 @@ func readdir_r(dir uintptr, entry *Dirent, result **Dirent) (res Errno) {
|
||||
|
||||
func libc_readdir_r_trampoline()
|
||||
|
||||
//go:linkname libc_readdir_r libc_readdir_r
|
||||
//go:cgo_import_dynamic libc_readdir_r readdir_r "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1289,7 +1214,6 @@ func Readlink(path string, buf []byte) (n int, err error) {
|
||||
|
||||
func libc_readlink_trampoline()
|
||||
|
||||
//go:linkname libc_readlink libc_readlink
|
||||
//go:cgo_import_dynamic libc_readlink readlink "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1314,7 +1238,6 @@ func Rename(from string, to string) (err error) {
|
||||
|
||||
func libc_rename_trampoline()
|
||||
|
||||
//go:linkname libc_rename libc_rename
|
||||
//go:cgo_import_dynamic libc_rename rename "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1334,7 +1257,6 @@ func Revoke(path string) (err error) {
|
||||
|
||||
func libc_revoke_trampoline()
|
||||
|
||||
//go:linkname libc_revoke libc_revoke
|
||||
//go:cgo_import_dynamic libc_revoke revoke "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1354,7 +1276,6 @@ func Rmdir(path string) (err error) {
|
||||
|
||||
func libc_rmdir_trampoline()
|
||||
|
||||
//go:linkname libc_rmdir libc_rmdir
|
||||
//go:cgo_import_dynamic libc_rmdir rmdir "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1370,7 +1291,6 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, err error) {
|
||||
|
||||
func libc_lseek_trampoline()
|
||||
|
||||
//go:linkname libc_lseek libc_lseek
|
||||
//go:cgo_import_dynamic libc_lseek lseek "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1385,7 +1305,6 @@ func Select(n int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (err error) {
|
||||
|
||||
func libc_select_trampoline()
|
||||
|
||||
//go:linkname libc_select libc_select
|
||||
//go:cgo_import_dynamic libc_select select "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1400,7 +1319,6 @@ func Setegid(egid int) (err error) {
|
||||
|
||||
func libc_setegid_trampoline()
|
||||
|
||||
//go:linkname libc_setegid libc_setegid
|
||||
//go:cgo_import_dynamic libc_setegid setegid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1415,7 +1333,6 @@ func Seteuid(euid int) (err error) {
|
||||
|
||||
func libc_seteuid_trampoline()
|
||||
|
||||
//go:linkname libc_seteuid libc_seteuid
|
||||
//go:cgo_import_dynamic libc_seteuid seteuid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1430,7 +1347,6 @@ func Setgid(gid int) (err error) {
|
||||
|
||||
func libc_setgid_trampoline()
|
||||
|
||||
//go:linkname libc_setgid libc_setgid
|
||||
//go:cgo_import_dynamic libc_setgid setgid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1450,7 +1366,6 @@ func Setlogin(name string) (err error) {
|
||||
|
||||
func libc_setlogin_trampoline()
|
||||
|
||||
//go:linkname libc_setlogin libc_setlogin
|
||||
//go:cgo_import_dynamic libc_setlogin setlogin "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1465,7 +1380,6 @@ func Setpgid(pid int, pgid int) (err error) {
|
||||
|
||||
func libc_setpgid_trampoline()
|
||||
|
||||
//go:linkname libc_setpgid libc_setpgid
|
||||
//go:cgo_import_dynamic libc_setpgid setpgid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1480,7 +1394,6 @@ func Setpriority(which int, who int, prio int) (err error) {
|
||||
|
||||
func libc_setpriority_trampoline()
|
||||
|
||||
//go:linkname libc_setpriority libc_setpriority
|
||||
//go:cgo_import_dynamic libc_setpriority setpriority "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1495,7 +1408,6 @@ func Setprivexec(flag int) (err error) {
|
||||
|
||||
func libc_setprivexec_trampoline()
|
||||
|
||||
//go:linkname libc_setprivexec libc_setprivexec
|
||||
//go:cgo_import_dynamic libc_setprivexec setprivexec "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1510,7 +1422,6 @@ func Setregid(rgid int, egid int) (err error) {
|
||||
|
||||
func libc_setregid_trampoline()
|
||||
|
||||
//go:linkname libc_setregid libc_setregid
|
||||
//go:cgo_import_dynamic libc_setregid setregid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1525,7 +1436,6 @@ func Setreuid(ruid int, euid int) (err error) {
|
||||
|
||||
func libc_setreuid_trampoline()
|
||||
|
||||
//go:linkname libc_setreuid libc_setreuid
|
||||
//go:cgo_import_dynamic libc_setreuid setreuid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1540,7 +1450,6 @@ func Setrlimit(which int, lim *Rlimit) (err error) {
|
||||
|
||||
func libc_setrlimit_trampoline()
|
||||
|
||||
//go:linkname libc_setrlimit libc_setrlimit
|
||||
//go:cgo_import_dynamic libc_setrlimit setrlimit "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1556,7 +1465,6 @@ func Setsid() (pid int, err error) {
|
||||
|
||||
func libc_setsid_trampoline()
|
||||
|
||||
//go:linkname libc_setsid libc_setsid
|
||||
//go:cgo_import_dynamic libc_setsid setsid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1571,7 +1479,6 @@ func Settimeofday(tp *Timeval) (err error) {
|
||||
|
||||
func libc_settimeofday_trampoline()
|
||||
|
||||
//go:linkname libc_settimeofday libc_settimeofday
|
||||
//go:cgo_import_dynamic libc_settimeofday settimeofday "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1586,7 +1493,6 @@ func Setuid(uid int) (err error) {
|
||||
|
||||
func libc_setuid_trampoline()
|
||||
|
||||
//go:linkname libc_setuid libc_setuid
|
||||
//go:cgo_import_dynamic libc_setuid setuid "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1611,7 +1517,6 @@ func Symlink(path string, link string) (err error) {
|
||||
|
||||
func libc_symlink_trampoline()
|
||||
|
||||
//go:linkname libc_symlink libc_symlink
|
||||
//go:cgo_import_dynamic libc_symlink symlink "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1626,7 +1531,6 @@ func Sync() (err error) {
|
||||
|
||||
func libc_sync_trampoline()
|
||||
|
||||
//go:linkname libc_sync libc_sync
|
||||
//go:cgo_import_dynamic libc_sync sync "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1646,7 +1550,6 @@ func Truncate(path string, length int64) (err error) {
|
||||
|
||||
func libc_truncate_trampoline()
|
||||
|
||||
//go:linkname libc_truncate libc_truncate
|
||||
//go:cgo_import_dynamic libc_truncate truncate "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1659,7 +1562,6 @@ func Umask(newmask int) (oldmask int) {
|
||||
|
||||
func libc_umask_trampoline()
|
||||
|
||||
//go:linkname libc_umask libc_umask
|
||||
//go:cgo_import_dynamic libc_umask umask "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1679,7 +1581,6 @@ func Undelete(path string) (err error) {
|
||||
|
||||
func libc_undelete_trampoline()
|
||||
|
||||
//go:linkname libc_undelete libc_undelete
|
||||
//go:cgo_import_dynamic libc_undelete undelete "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1699,7 +1600,6 @@ func Unlink(path string) (err error) {
|
||||
|
||||
func libc_unlink_trampoline()
|
||||
|
||||
//go:linkname libc_unlink libc_unlink
|
||||
//go:cgo_import_dynamic libc_unlink unlink "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1719,7 +1619,6 @@ func Unmount(path string, flags int) (err error) {
|
||||
|
||||
func libc_unmount_trampoline()
|
||||
|
||||
//go:linkname libc_unmount libc_unmount
|
||||
//go:cgo_import_dynamic libc_unmount unmount "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1741,7 +1640,6 @@ func write(fd int, p []byte) (n int, err error) {
|
||||
|
||||
func libc_write_trampoline()
|
||||
|
||||
//go:linkname libc_write libc_write
|
||||
//go:cgo_import_dynamic libc_write write "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1763,7 +1661,6 @@ func writev(fd int, iovecs []Iovec) (cnt uintptr, err error) {
|
||||
|
||||
func libc_writev_trampoline()
|
||||
|
||||
//go:linkname libc_writev libc_writev
|
||||
//go:cgo_import_dynamic libc_writev writev "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1779,7 +1676,6 @@ func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (
|
||||
|
||||
func libc_mmap_trampoline()
|
||||
|
||||
//go:linkname libc_mmap libc_mmap
|
||||
//go:cgo_import_dynamic libc_mmap mmap "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1794,7 +1690,6 @@ func munmap(addr uintptr, length uintptr) (err error) {
|
||||
|
||||
func libc_munmap_trampoline()
|
||||
|
||||
//go:linkname libc_munmap libc_munmap
|
||||
//go:cgo_import_dynamic libc_munmap munmap "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1810,7 +1705,6 @@ func fork() (pid int, err error) {
|
||||
|
||||
func libc_fork_trampoline()
|
||||
|
||||
//go:linkname libc_fork libc_fork
|
||||
//go:cgo_import_dynamic libc_fork fork "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1825,7 +1719,6 @@ func ioctl(fd int, req int, arg int) (err error) {
|
||||
|
||||
func libc_ioctl_trampoline()
|
||||
|
||||
//go:linkname libc_ioctl libc_ioctl
|
||||
//go:cgo_import_dynamic libc_ioctl ioctl "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1850,7 +1743,6 @@ func execve(path *byte, argv **byte, envp **byte) (err error) {
|
||||
|
||||
func libc_execve_trampoline()
|
||||
|
||||
//go:linkname libc_execve libc_execve
|
||||
//go:cgo_import_dynamic libc_execve execve "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1865,7 +1757,6 @@ func exit(res int) (err error) {
|
||||
|
||||
func libc_exit_trampoline()
|
||||
|
||||
//go:linkname libc_exit libc_exit
|
||||
//go:cgo_import_dynamic libc_exit exit "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1886,7 +1777,6 @@ func sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr)
|
||||
|
||||
func libc_sysctl_trampoline()
|
||||
|
||||
//go:linkname libc_sysctl libc_sysctl
|
||||
//go:cgo_import_dynamic libc_sysctl sysctl "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1917,7 +1807,6 @@ func unlinkat(fd int, path string, flags int) (err error) {
|
||||
|
||||
func libc_unlinkat_trampoline()
|
||||
|
||||
//go:linkname libc_unlinkat libc_unlinkat
|
||||
//go:cgo_import_dynamic libc_unlinkat unlinkat "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1938,7 +1827,6 @@ func openat(fd int, path string, flags int, perm uint32) (fdret int, err error)
|
||||
|
||||
func libc_openat_trampoline()
|
||||
|
||||
//go:linkname libc_openat libc_openat
|
||||
//go:cgo_import_dynamic libc_openat openat "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1960,7 +1848,6 @@ func getcwd(buf []byte) (n int, err error) {
|
||||
|
||||
func libc_getcwd_trampoline()
|
||||
|
||||
//go:linkname libc_getcwd libc_getcwd
|
||||
//go:cgo_import_dynamic libc_getcwd getcwd "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1975,7 +1862,6 @@ func Fstat(fd int, stat *Stat_t) (err error) {
|
||||
|
||||
func libc_fstat_trampoline()
|
||||
|
||||
//go:linkname libc_fstat libc_fstat
|
||||
//go:cgo_import_dynamic libc_fstat fstat "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -1990,7 +1876,6 @@ func Fstatfs(fd int, stat *Statfs_t) (err error) {
|
||||
|
||||
func libc_fstatfs_trampoline()
|
||||
|
||||
//go:linkname libc_fstatfs libc_fstatfs
|
||||
//go:cgo_import_dynamic libc_fstatfs fstatfs "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -2005,7 +1890,6 @@ func Gettimeofday(tp *Timeval) (err error) {
|
||||
|
||||
func libc_gettimeofday_trampoline()
|
||||
|
||||
//go:linkname libc_gettimeofday libc_gettimeofday
|
||||
//go:cgo_import_dynamic libc_gettimeofday gettimeofday "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -2025,7 +1909,6 @@ func Lstat(path string, stat *Stat_t) (err error) {
|
||||
|
||||
func libc_lstat_trampoline()
|
||||
|
||||
//go:linkname libc_lstat libc_lstat
|
||||
//go:cgo_import_dynamic libc_lstat lstat "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -2045,7 +1928,6 @@ func Stat(path string, stat *Stat_t) (err error) {
|
||||
|
||||
func libc_stat_trampoline()
|
||||
|
||||
//go:linkname libc_stat libc_stat
|
||||
//go:cgo_import_dynamic libc_stat stat "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -2065,7 +1947,6 @@ func Statfs(path string, stat *Statfs_t) (err error) {
|
||||
|
||||
func libc_statfs_trampoline()
|
||||
|
||||
//go:linkname libc_statfs libc_statfs
|
||||
//go:cgo_import_dynamic libc_statfs statfs "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -2085,7 +1966,6 @@ func fstatat(fd int, path string, stat *Stat_t, flags int) (err error) {
|
||||
|
||||
func libc_fstatat_trampoline()
|
||||
|
||||
//go:linkname libc_fstatat libc_fstatat
|
||||
//go:cgo_import_dynamic libc_fstatat fstatat "/usr/lib/libSystem.B.dylib"
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
@ -2101,5 +1981,4 @@ func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) {
|
||||
|
||||
func libc_ptrace_trampoline()
|
||||
|
||||
//go:linkname libc_ptrace libc_ptrace
|
||||
//go:cgo_import_dynamic libc_ptrace ptrace "/usr/lib/libSystem.B.dylib"
|
||||
|
27
test/linkname2.go
Normal file
27
test/linkname2.go
Normal file
@ -0,0 +1,27 @@
|
||||
// errorcheck
|
||||
|
||||
// Copyright 2020 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Tests that errors are reported for misuse of linkname.
|
||||
package p
|
||||
|
||||
import _ "unsafe"
|
||||
|
||||
type t int
|
||||
|
||||
var x, y int
|
||||
|
||||
//go:linkname x ok
|
||||
|
||||
// ERROR "//go:linkname requires linkname argument or -p compiler flag"
|
||||
// ERROR "//go:linkname must refer to declared function or variable"
|
||||
// ERROR "//go:linkname must refer to declared function or variable"
|
||||
// ERROR "duplicate //go:linkname for x"
|
||||
|
||||
//line linkname2.go:18
|
||||
//go:linkname y
|
||||
//go:linkname nonexist nonexist
|
||||
//go:linkname t notvarfunc
|
||||
//go:linkname x duplicate
|
Loading…
Reference in New Issue
Block a user