1. 18 Dec, 2018 1 commit
  2. 17 Dec, 2018 1 commit
  3. 13 Dec, 2018 3 commits
  4. 12 Dec, 2018 1 commit
  5. 11 Dec, 2018 1 commit
  6. 10 Dec, 2018 2 commits
  7. 08 Dec, 2018 1 commit
  8. 06 Dec, 2018 1 commit
  9. 05 Dec, 2018 1 commit
  10. 28 Nov, 2018 1 commit
  11. 22 Nov, 2018 1 commit
  12. 21 Nov, 2018 1 commit
    • David Anderson's avatar
      unix: add IoctlSetPointerInt · 0cf1ed9e
      David Anderson authored
      IoctlSetPointerInt is necessary for interacting with the PPP kernel
      driver, which wants it passed as a pointer to int, rather than the
      more conventional int cast as a pointer.
      
      We can technically do this already with
      IoctlSetInt(int(uintptr(unsafe.Pointer(&foo)))), but that's just
      masking the operation we're trying to execute in the first place,
      and relying on the internals of IoctlSetInt to do the right
      inverse transformation.
      
      Change-Id: I1e6a1dd6190c11f06c6f5393cd2cae453939878a
      GitHub-Last-Rev: a88f56073d04b02d9c076b112adaf99169a49513
      GitHub-Pull-Request: golang/sys#25
      Reviewed-on: https://go-review.googlesource.com/c/150321
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      0cf1ed9e
  13. 19 Nov, 2018 1 commit
  14. 16 Nov, 2018 2 commits
  15. 07 Nov, 2018 1 commit
  16. 06 Nov, 2018 3 commits
  17. 31 Oct, 2018 1 commit
  18. 30 Oct, 2018 3 commits
  19. 29 Oct, 2018 1 commit
  20. 26 Oct, 2018 4 commits
  21. 25 Oct, 2018 1 commit
  22. 24 Oct, 2018 2 commits
  23. 23 Oct, 2018 1 commit
  24. 22 Oct, 2018 3 commits
    • Tobias Klauser's avatar
      unix: update Dockerfile to Linux 4.19 · 8a28ead1
      Tobias Klauser authored
      Change-Id: I58c2cfb11ddd5ce731a880c0c63790092052f130
      Reviewed-on: https://go-review.googlesource.com/c/143697
      Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
      8a28ead1
    • Ivan Markin's avatar
      unix: don't use local syscall number in Pledge() · 8b8824e7
      Ivan Markin authored
      Change-Id: Ifecafeedd733d4b33ef082a8f505165de9bac20a
      GitHub-Last-Rev: 44c40b042479bb3a4a73838b2536adbb715cde11
      GitHub-Pull-Request: golang/sys#20
      Reviewed-on: https://go-review.googlesource.com/c/142318Reviewed-by: 's avatarTobias Klauser <tobias.klauser@gmail.com>
      Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      8b8824e7
    • Yuval Pavel Zholkover's avatar
      unix: FreeBSD 12 ino64 support · 5535b4e6
      Yuval Pavel Zholkover authored
      Background:
      The 64-bit inode project was merged into the upcoming FreeBSD 12 release.
      It changes the ABI for structs holding inodes: stat, statfs, dirent.
      New system call numbers were introduced which accept the new struct layouts,
      the old ones were marked as COMPAT11.
      Their equivalent libc wrappers are using ELF symbol versioning.
      The new wrappers have moved from @FBSD_1.0 to @FBSD_1.5.
      
      Backward and forward compatability is achieved by always using the new struct
      layouts while converting the old struct instance to the new layout on old kernels.
      https://svnweb.freebsd.org/base?view=revision&revision=318736
      https://svnweb.freebsd.org/base?view=revision&revision=320278
      
      The same approach is used for Go:
      The new Stat_t, Statfs_t and Dirent types hold 64-bit inodes and additional ABI
      changes, they are generated from their C definitions in FreeBSD-12 using cgo -godefs.
      Each type has an unexported *_freebsd11 counterpart generated the same way.
      Previous directly exposed syscalls like Fstat have now a wrapper in place calling
      either fstat or fstat_freebsd12 zsyscall wrapper based on the kern.osreldate.
      If an old syscall needs to be used, then the returned *_freebsd11 result is converted
      to the new layout before returning from the wrapper.
      
      Introduce supportsABI() call to check the kern.osreldate sysctl for the ABI version.
      Drop the old struct stat8 definition in favour of the <sys/stat.h> version.
      Run the mktypes part of GOOS=freebsd GOARCH={386,amd64,arm} ./mkall.sh
      on FreeBSD-12.0-ALPHA6 (r338675), updating all types except Kevent.
      
      Expose Mknodat, both COMPAT11 version (currently missing) and the FreeBSD 12 one.
      Some COMPAT11 syscalls have no direct FreeBSD 12 counterpart, in those cases
      an *at(AT_FDCWD, ...) is used instead.
      
      Updates golang/go#22448
      
      Change-Id: I87940b88ae358db88103cdcd06f9cafbf4694cfc
      Reviewed-on: https://go-review.googlesource.com/c/136816
      Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarGiovanni Bajo <rasky@develer.com>
      Reviewed-by: 's avatarTobias Klauser <tobias.klauser@gmail.com>
      5535b4e6
  25. 21 Oct, 2018 1 commit
  26. 19 Oct, 2018 1 commit