mirror of
https://github.com/golang/sys.git
synced 2026-02-09 04:06:04 +03:00
Directly wrap the getcwd implementation provided by libSystem.dylib on darwin and use it to implement Getwd like on the BSDs. This allows to drop the custom implementation using getAttrList and to merge the implementation of Getwd for darwin and the BSDs in syscall_bsd.go. Change-Id: I62d38a239a7279fb95c912344bda2830856d4da4 Reviewed-on: https://go-review.googlesource.com/c/sys/+/257497 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>
11 KiB
11 KiB