1. 22 May, 2018 3 commits
    • irfan sharif's avatar
      unix: add {get,set,remove,list}xattr on darwin · 0b6bef99
      irfan sharif authored
      It's only when dest is set to NULL that the OS X implementations of
      getxattr() and listxattr() return the current sizes of the named
      attributes. An empty byte array is not sufficient. To maintain the same
      behaviour as the linux implementation, we wrap around the system calls
      and pass in NULL when dest is empty.
      
      The parameters for the OS X implementation of setxattr() vary slightly
      compared to the linux system call, specifically the 'position'
      parameter:
      
       linux:
           int setxattr(
               const char *path,
               const char *name,
               const void *value,
               size_t size,
               int flags
           );
      
       darwin:
           int setxattr(
               const char *path,
               const char *name,
               void *value,
               size_t size,
               u_int32_t position,
               int options
           );
      
      'position' specifies the offset within the extended attribute. In the
      current implementation, only the resource fork extended attribute makes
      use of this argument. For all others, position is reserved.  We simply
      default to setting it to zero.  If that's needed by the package user, a
      function with a different name needs to be implemented instead.
      
      Similarly for removexattr(), we wrap around and explicitly zero out the
      options provided. We do so for interoperability with the linux variant.
      If options are needed by the package user, a function with a different
      name needs to be implemented instead.
      
      Fixes golang/go#14456
      
      Change-Id: I2581e1fa8dc9324bced7fda7f8ada10fe2ede3f5
      Reviewed-on: https://go-review.googlesource.com/113995Reviewed-by: 's avatarTobias Klauser <tobias.klauser@gmail.com>
      Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      0b6bef99
    • Filippo Valsorda's avatar
      unix: update openbsd/amd64 to OpenBSD 6.3 · 7f59abf3
      Filippo Valsorda authored
      Change-Id: I0a16c77437e4ed68cc19eda41bb9b64ab4376fd0
      Reviewed-on: https://go-review.googlesource.com/114075
      Run-TryBot: Filippo Valsorda <filippo@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarTobias Klauser <tobias.klauser@gmail.com>
      7f59abf3
    • Tobias Klauser's avatar
      unix: exclude AUDIT_RECORD_MAGIC constant on darwin · 89da8931
      Tobias Klauser authored
      CL 112696 changed mkerrors.sh to add filesystem magic constants on
      linux. This leads to the unrelated AUDIT_RECORD_MAGIC constant being
      added on darwin. Avoid this by explicity excluding it in mkerrors.sh.
      
      Change-Id: I5a73797e5e9a1a92cb39f96f360fdb48982a7741
      Reviewed-on: https://go-review.googlesource.com/114095
      Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      89da8931
  2. 14 May, 2018 1 commit
  3. 11 May, 2018 2 commits
  4. 10 May, 2018 1 commit
    • Hana (Hyang-Ah) Kim's avatar
      windows: address vet reports · 7dfd1290
      Hana (Hyang-Ah) Kim authored
      Found in https://storage.googleapis.com/go-build-log/300ed876/misc-vet-vetall_dd96a388.log
      
      cmd/vendor/golang.org/x/sys/windows/asm_windows_386.s:9: [386] getprocaddress: wrong argument size 8; expected $...-16
      cmd/vendor/golang.org/x/sys/windows/asm_windows_386.s:12: [386] loadlibrary: wrong argument size 4; expected $...-12
      cmd/vendor/golang.org/x/sys/windows/svc/service.go:337: cmd/vendor/golang.org/x/sys/windows.SERVICE_TABLE_ENTRY composite literal uses unkeyed fields
      cmd/vendor/golang.org/x/sys/windows/svc/service.go:338: cmd/vendor/golang.org/x/sys/windows.SERVICE_TABLE_ENTRY composite literal uses unkeyed fields
      cmd/vendor/golang.org/x/sys/windows/svc/debug/service.go:34: cmd/vendor/golang.org/x/sys/windows/svc.ChangeRequest composite literal uses unkeyed fields
      cmd/vendor/golang.org/x/sys/windows/svc/mgr/config.go:124: cmd/vendor/golang.org/x/sys/windows.SERVICE_DESCRIPTION composite literal uses unkeyed fields
      
      Change-Id: Ic08cfcc802aac89cfa1eb98661ec556c844e8013
      Reviewed-on: https://go-review.googlesource.com/112557Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      7dfd1290
  5. 09 May, 2018 1 commit
  6. 07 May, 2018 1 commit
  7. 04 May, 2018 1 commit
    • Tobias Klauser's avatar
      unix: add ErrnoName and SignalName · 6f686a35
      Tobias Klauser authored
      Add ErrnoName and SignalName to get errno and signal name strings from
      syscall.Errno and syscall.Signal values, respectively.
      
      This repurposes the errors and signals vars (because they are not used
      within x/sys/unix currently) and turns them into slices of struct,
      containing errno/signal number, name and description. ErrnoName and
      SignalName can then be trivially implemented using sort.Search.
      
      Renaming errors to errorList additionaly allows to avoid package aliases
      for the errors package.
      
      Fixes golang/go#25134
      
      Change-Id: Ie195872793f44c437f0f175ccfaa13a2546338c5
      Reviewed-on: https://go-review.googlesource.com/110875
      Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      6f686a35
  8. 01 May, 2018 1 commit
  9. 30 Apr, 2018 2 commits
  10. 27 Apr, 2018 1 commit
  11. 25 Apr, 2018 1 commit
  12. 20 Apr, 2018 1 commit
  13. 19 Apr, 2018 1 commit
  14. 18 Apr, 2018 2 commits
  15. 17 Apr, 2018 1 commit
  16. 16 Apr, 2018 2 commits
  17. 14 Apr, 2018 1 commit
  18. 13 Apr, 2018 1 commit
  19. 06 Apr, 2018 1 commit
  20. 04 Apr, 2018 3 commits
  21. 29 Mar, 2018 2 commits
  22. 26 Mar, 2018 1 commit
  23. 22 Mar, 2018 2 commits
  24. 21 Mar, 2018 5 commits
  25. 20 Mar, 2018 2 commits