]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/link/internal/ld, internal/syscall/unix: use posix_fallocate on freebsd
authorTobias Klauser <tklauser@distanz.ch>
Mon, 27 Mar 2023 18:52:43 +0000 (20:52 +0200)
committerGopher Robot <gobot@golang.org>
Mon, 27 Mar 2023 19:14:57 +0000 (19:14 +0000)
commited1cf6ab3ef94c603f9d883aa6806a5a82d2bee3
tree0d490702b1610c95ef64089a5427363fea820185
parentbf9d9b7dba25ecd2956f4f613ff83c1a3624a038
cmd/link/internal/ld, internal/syscall/unix: use posix_fallocate on freebsd

The posix_fallocate system call is available since FreeBSD 9.0, see
https://man.freebsd.org/cgi/man.cgi?query=posix_fallocate

Change-Id: Ie65e0a44341909707617d3b0d9a4f1710c45b935
Reviewed-on: https://go-review.googlesource.com/c/go/+/478035
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/dist/buildtool.go
src/cmd/link/internal/ld/fallocate_test.go
src/cmd/link/internal/ld/outbuf_freebsd.go [new file with mode: 0644]
src/cmd/link/internal/ld/outbuf_nofallocate.go
src/cmd/link/internal/ld/outbuf_notdarwin.go
src/internal/syscall/unix/fallocate_freebsd.go [new file with mode: 0644]