-
Carlos Castillo authored
The existing Hostname function uses the GetComputerName system function in windows to determine the hostname. It has some downsides: - The name is limited to 15 characters. - The name returned is for NetBIOS, other OS's return a DNS name This change adds to the internal/syscall/windows package a GetComputerNameEx function, and related enum constants. They are used instead of the syscall.ComputerName function to implement os.Hostname on windows. Fixes #9982 Change-Id: Idc8782785eb1eea37e64022bd201699ce9c4b39c Reviewed-on: https://go-review.googlesource.com/5852Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Run-TryBot: Alex Brainman <alex.brainman@gmail.com> Reviewed-by: Carlos Castillo <cookieo9@gmail.com> Reviewed-by: Yasuhiro MATSUMOTO <mattn.jp@gmail.com>
59e54663
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
README | ||
build.go | ||
buildgc.go | ||
buildgo.go | ||
buildruntime.go | ||
buildtool.go | ||
cpuid_386.s | ||
cpuid_amd64.s | ||
cpuid_default.s | ||
main.go | ||
sys_default.go | ||
sys_windows.go | ||
util.go |