]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/ld: use libc based fcntl for (*OutBuf).fallocate on darwin
authorTobias Klauser <tklauser@distanz.ch>
Mon, 11 Oct 2021 07:32:52 +0000 (09:32 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Tue, 12 Oct 2021 06:55:50 +0000 (06:55 +0000)
commitd887d3be5f8f143f2475ddb2ea6c48ceb32def17
tree66f9d5dac3be8072b8fa75dd5e1fcdfda00059a6
parent6372e7efbab5a613b73271938acbd1c6f558814e
cmd/link/internal/ld: use libc based fcntl for (*OutBuf).fallocate on darwin

Direct syscalls are no longer supported on darwin. Instead, use libc
fcntl go:linkname'd from the syscall package.

Change-Id: Ieeec64810452455faedd200f661a8b5839ca1fa0
Reviewed-on: https://go-review.googlesource.com/c/go/+/255260
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/link/internal/ld/outbuf_darwin.go