1. 11 Dec, 2015 1 commit
  2. 24 Nov, 2015 1 commit
    • Nick Patavalis's avatar
      unix: Fix Termios type definition · 2bacc619
      Nick Patavalis authored
      - types_linux.go: Use the kernel-defined termios structure, *not* the
        LIBC-defined one. The LIBC termios structure cannot be safely used
        to do tty-related ioctls on all architectures (e.g. ppc64,
        ppc64le). The kernel termios structure, and the associated
        macros/constants, are defined in: "asm/termbits.h" which is included
        by "linux/termios.h". The LIBC termios structure is defined in
        "bits/termios.h" which is included by "termios.h". These structures
        are *not* the same.
      
        For systems that have both "struct termios" and "struct termios2"
        use the latter to define the Termios type. This is ok, since the
        "struct termios2" memory layout is compatible with "struct termios"
        (with a couple of fields added at the end). This way, type Termios
        can be used with both: the "old-style" TCSETS[FW], TCGETS ioctls,
        *and* with the new TCSETS[FW]2, TCGETS2 ioctls. The new ioctls allow
        configuring arbitrary baudrates.
      
        The new Termios definitions (kernel-compatible) have the same fields
        as the old ones (LIBC-derived) so there should be no user-code
        compatibility issues.
      
      Change-Id: I3c1484c60f45b28e13404765c01616c33063afd5
      Reviewed-on: https://go-review.googlesource.com/17185Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      2bacc619
  3. 23 Nov, 2015 1 commit
  4. 29 Oct, 2015 1 commit
  5. 09 Oct, 2015 1 commit
  6. 08 Oct, 2015 1 commit
  7. 25 Sep, 2015 2 commits
  8. 24 Sep, 2015 1 commit
  9. 17 Sep, 2015 1 commit
    • 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
  10. 10 Sep, 2015 1 commit
  11. 09 Sep, 2015 1 commit
  12. 02 Sep, 2015 2 commits
  13. 01 Sep, 2015 2 commits
  14. 31 Aug, 2015 2 commits
  15. 30 Aug, 2015 1 commit
  16. 24 Aug, 2015 1 commit
  17. 21 Aug, 2015 1 commit
  18. 20 Aug, 2015 1 commit
  19. 19 Aug, 2015 1 commit
  20. 30 Jul, 2015 1 commit
  21. 27 Jul, 2015 1 commit
  22. 24 Jul, 2015 1 commit
  23. 21 Jul, 2015 1 commit
  24. 12 Jun, 2015 1 commit
  25. 18 May, 2015 3 commits
  26. 17 May, 2015 1 commit
  27. 15 May, 2015 5 commits
  28. 14 May, 2015 3 commits