• Tobias Klauser's avatar
    syscall: support Getwd on all BSDs · acd17e9b
    Tobias Klauser authored
    All supported BSDs provide the SYS___GETCWD syscall which can be used to
    implement syscall.Getwd. With this change os.Getwd can use a single
    syscall instead of falling back to the current kludge solution on the
    BSDs.
    
    This doesn't add any new exported functions to the frozen syscall
    package, only ImplementsGetwd changes to true for dragonfly, freebsd,
    netbsd and openbsd.
    
    As suggested by Ian, this follows CL 83755 which did the same for
    golang.org/x/sys/unix.
    
    Also, an entry for netbsd/arm is added to mkall.sh which was used to
    generate the syscall wrappers there.
    
    Change-Id: I84da1ec61a6b8625443699a63cde556b6442ad41
    Reviewed-on: https://go-review.googlesource.com/84484Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    acd17e9b
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...