]> Cypherpunks.ru repositories - gostls13.git/commit
os: add support for long path names on freebsd RemoveAll
authorTobias Klauser <tklauser@distanz.ch>
Thu, 1 Nov 2018 08:02:46 +0000 (08:02 +0000)
committerTobias Klauser <tobias.klauser@gmail.com>
Thu, 1 Nov 2018 17:08:32 +0000 (17:08 +0000)
commitfa466a4f5a836fa5ac971e709d1e2d9df4a2e74d
tree53dcb225161a90bdc7d9ce90d938bed99a673ebb
parentefc185029bf770894defe63cec2c72a4c84b2ee9
os: add support for long path names on freebsd RemoveAll

Follow CL 146020 and enable RemoveAll based on Unlinkat and Openat on
freebsd.

Since the layout of syscall.Stat_t changes in FreeBSD 12, Fstatat needs
a compatibility wrapper akin to Fstatat in x/sys/unix. See CL 138595 and
CL 136816 for details.

Updates #27029

Change-Id: I8851a5b7fa658eaa6e69a1693150b16d9a68f36a
Reviewed-on: https://go-review.googlesource.com/c/146597
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Yuval Pavel Zholkover <paulzhol@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/internal/syscall/unix/at.go
src/internal/syscall/unix/at_freebsd.go [new file with mode: 0644]
src/internal/syscall/unix/at_sysnum_freebsd.go [deleted file]
src/os/removeall_at.go
src/os/removeall_noat.go
src/os/removeall_test.go
src/syscall/syscall_freebsd.go
src/syscall/zsyscall_freebsd_386.go
src/syscall/zsyscall_freebsd_amd64.go
src/syscall/zsyscall_freebsd_arm.go