Skip to content

Commit 69691e4

Browse files
committed
unix: remove ineffectual //go:linkname directives
For golang/go#42938 Change-Id: I9d68a2436f3ce7402b3c6517a630d0272cf39071 Reviewed-on: https://go-review.googlesource.com/c/sys/+/274573 Trust: Tobias Klauser <[email protected]> Run-TryBot: Tobias Klauser <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Matthew Dempsky <[email protected]>
1 parent ef89a24 commit 69691e4

10 files changed

+0
-577
lines changed

unix/mksyscall.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,6 @@ func main() {
363363
text += fmt.Sprintf("func libc_%s_trampoline()\n", libcFn)
364364
// Assembly trampoline calls the libc_* function, which this magic
365365
// redirects to use the function from libSystem.
366-
text += fmt.Sprintf("//go:linkname libc_%s libc_%s\n", libcFn, libcFn)
367366
text += fmt.Sprintf("//go:cgo_import_dynamic libc_%s %s \"/usr/lib/libSystem.B.dylib\"\n", libcFn, libcFn)
368367
text += "\n"
369368
}

unix/syscall_darwin.1_13.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ func fdopendir(fd int) (dir uintptr, err error) {
2626

2727
func libc_fdopendir_trampoline()
2828

29-
//go:linkname libc_fdopendir libc_fdopendir
3029
//go:cgo_import_dynamic libc_fdopendir fdopendir "/usr/lib/libSystem.B.dylib"
3130

3231
func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {

unix/zsyscall_darwin_386.1_13.go

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)