• Shawn Walker-Salas's avatar
    unix: add various missing syscalls available on Linux · 68a71b6b
    Shawn Walker-Salas authored
    Various syscalls offered by x/sys/unix on Linux are not available on
    Solaris and should be, such as Mkfifo, Getwd(), Futimes() and others.
    In particular, all of the *at() variants of existing functions were
    added where appropriate.
    
    Getgroups() was fixed to use the correct value for its sanity check on
    the maximum number of groups.
    
    Utimesnano() was updated to use the native Solaris utimensat function
    for setting nanosecond-precision time.
    
    Utimes() was updated to have the same error semantics and checking as
    other platforms.
    
    Getgroups(), anysocktoaddr(), and Recvmsg() were fixed to check the
    return value before assuming syscall failure instead of relying solely
    on errno being set.
    
    mksyscall_solaris.pl needed some updates to better match the output of
    the one found in syscall.
    
    mkerrors.sh needed some updates to work out of the box on Solaris,
    matching those recently done to the one in syscall.
    
    The signatures (names) of some function parameters were changed to be
    consistent with other platforms for the sake of documentation.
    
    Fixes #8609
    
    Change-Id: I9e4e2fee6d3ecfad9f4d845a5702ffde5166e804
    Reviewed-on: https://go-review.googlesource.com/14643Reviewed-by: 's avatarAram Hăvărneanu <aram@mgk.ro>
    68a71b6b
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...