• Ian Lance Taylor's avatar
    unix: split Pipe/Pipe2/Dup2, use *at replacement calls · b10968a4
    Ian Lance Taylor authored
    This brings over three CLs from the main syscall package:
    http://golang.org/cl/5833
    http://golang.org/cl/5835
    http://golang.org/cl/5837
    
    Pipe, Pipe2, and Dup2 are moved from syscall_linux.go to the GOARCH
    specific variants.  On 386 and amd64, Linux kernel version 2.6.23 (the
    documented minimum Linux kernel version the Go distribution supports)
    does not support the pipe2 system call, so Pipe continues to call
    pipe.  On ARM, Pipe now calls pipe2.
    
    Several system calls are reimplemented in terms of the *at syscalls,
    passing AT_FDCWD to indicate that pathnames are to be interpreted
    relative to the current directory.  The *at syscalls were added in
    Linux kernel version 2.6.16.
    
    This is in preparation for arm64 support, as the arm64 Linux kernel
    does not provide the traditional syscall variants.
    
    Change-Id: Id6bc6097dc5f4324cd9e429c5e1f3a411a08ce42
    Reviewed-on: https://go-review.googlesource.com/10032Reviewed-by: 's avatarRob Pike <r@golang.org>
    b10968a4
Name
Last commit
Last update
plan9 Loading commit data...
unix Loading commit data...
windows 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 Loading commit data...
codereview.cfg Loading commit data...