1. 27 Oct, 2017 4 commits
  2. 26 Oct, 2017 3 commits
  3. 25 Oct, 2017 7 commits
  4. 23 Oct, 2017 3 commits
  5. 17 Oct, 2017 1 commit
    • Hilko Bengen's avatar
      windows: add GetProcAddressByOrdinal · 8dbc5d05
      Hilko Bengen authored
      The current GetProcAddress implementation only resolves functions in
      DLLs by name. Add GetProcAddressByOrdinal that allows resolving
      functions by ordinal number, using the same GetProcAddress call from
      kernel32.dll in the background.
      
      This is particularly useful for some functions (e.g. IsOS from
      shlwapi.dll in some older versions of Windows) that cannot be found by
      name.
      
      Fixes golang/go#16507
      
      Change-Id: Ib5fba7568c365a0aa2491c1261876b3a3929ec3d
      Reviewed-on: https://go-review.googlesource.com/70690Reviewed-by: 's avatarAlex Brainman <alex.brainman@gmail.com>
      Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      8dbc5d05
  6. 13 Oct, 2017 1 commit
    • Tobias Klauser's avatar
      unix: correct type for timeout argument to Select on linux/{arm64,mips64x} · 68600074
      Tobias Klauser authored
      Follow CL 70590 which did the same for syscall.
      
      unix.Select uses SYS_PSELECT6 on arm64 and mipx64x, however this
      syscall expects its 5th argument to be of type Timespec (with seconds
      and nanoseconds) instead of type Timeval (with seconds and microseconds)
      This leads to the timeout being too short by a factor of 1000.
      
      This CL fixes this by adjusting the timeout argument accordingly,
      similarly to how glibc does it for architectures where neither
      SYS_SELECT nor SYS__NEWSELECT are available. It also makes Pselect
      generaly available on linux.
      
      Updates golang/go#22246
      
      Change-Id: I69f8821a40c59ee469b8a986d784a4db8727ee9a
      Reviewed-on: https://go-review.googlesource.com/70610
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      68600074
  7. 12 Oct, 2017 1 commit
  8. 06 Oct, 2017 1 commit
  9. 27 Sep, 2017 1 commit
  10. 22 Sep, 2017 1 commit
  11. 21 Sep, 2017 1 commit
  12. 19 Sep, 2017 1 commit
  13. 18 Sep, 2017 2 commits
  14. 12 Sep, 2017 4 commits
  15. 09 Sep, 2017 1 commit
    • Tobias Klauser's avatar
      unix: add Major, Minor and Mkdev functions on FreeBSD · a5054c7c
      Tobias Klauser authored
      Add Major, Minor and Mkdev functions for converting devices numbers to
      their major/minor components and vice versa.
      
      The functions follow the behavior of the macros defined in FreeBSD's
      sys/types.h header. However, the parameter and return types are changed
      to match the existing implementations of these functions.
      
      Because FreeBSD dynamically allocates major/minor device numbers through
      devfs at runtime, testing the conversion macros against well-known
      device numbers is not possible.
      
      Updates golang/go#8106
      
      Change-Id: I9874e63f388cfc5c0d5cc47d4d0f6ccc489b28f2
      Reviewed-on: https://go-review.googlesource.com/61631Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      a5054c7c
  16. 08 Sep, 2017 1 commit
    • Tobias Klauser's avatar
      unix: add Major, Minor and Mkdev functions on Dragonfly · 5513e650
      Tobias Klauser authored
      Add Major, Minor and Mkdev functions for converting devices numbers to
      their major/minor components and vice versa.
      
      The functions follow the behavior of the macros defined in DragonFlyBSD's
      sys/types.h header. However, the parameter and return types are changed
      to match the existing implementations of these functions.
      
      Test the conversion macros with some well-known device numbers.
      
      Updates golang/go#8106
      
      Change-Id: I84c128dff3108821caaa75dcec620cf5bdb1f32d
      Reviewed-on: https://go-review.googlesource.com/61630Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      5513e650
  17. 07 Sep, 2017 2 commits
  18. 06 Sep, 2017 1 commit
  19. 05 Sep, 2017 1 commit
  20. 01 Sep, 2017 2 commits
    • Tobias Klauser's avatar
      unix: add Major, Minor and Mkdev functions on NetBSD · 7ddbeae9
      Tobias Klauser authored
      Add Major, Minor and Mkdev functions for converting devices numbers to
      their major/minor components and vice versa.
      
      The functions follow the behavior of the macros defined in NetBSD's
      sys/types.h header. However, the parameter and return types are changed
      to match the existing implementations of these functions.
      
      Test the conversion macros with some well-known device numbers.
      
      Updates golang/go#8106
      
      Change-Id: I536d6d2622f6fe9be3c1ed3beb266745fe4bfb6e
      Reviewed-on: https://go-review.googlesource.com/60970Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      7ddbeae9
    • Tobias Klauser's avatar
      unix: add Major, Minor and Mkdev functions on Darwin · a07a691a
      Tobias Klauser authored
      Add Major, Minor and Mkdev functions for converting devices numbers to
      their major/minor components and vice versa.
      
      The functions follow the behavior of the macros defined in Darwin's
      sys/types.h header. However, the parameter and return types are changed
      to match the respective Linux implementation of these functions.
      
      Test the conversion macros with some well-known static device numbers
      for devices which should be present on any Darwin system.
      
      Updates golang/go#8106
      
      Change-Id: I1862be64684cc1b5a53e15a883819571e368cb2b
      Reviewed-on: https://go-review.googlesource.com/60610Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      a07a691a
  21. 30 Aug, 2017 1 commit