aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/net
AgeCommit message (Collapse)AuthorFilesLines
2017-04-17libgo: update to Go 1.8.1 releaseIan Lance Taylor2-2/+2
Reviewed-on: https://go-review.googlesource.com/40775 From-SVN: r246957
2017-01-27libgo: update to go1.8rc3Ian Lance Taylor3-29/+55
Reviewed-on: https://go-review.googlesource.com/35844 From-SVN: r244981
2017-01-23libgo: update to go1.8rc2Ian Lance Taylor3-48/+215
Fix a bug in the generation of the hash value in reflect.FuncOf. The merge script missed a bunch of testdata files over the years. Copy them over. Reviewed-on: https://go-review.googlesource.com/35570 From-SVN: r244835
2017-01-14libgo: update to Go 1.8 release candidate 1Ian Lance Taylor130-2571/+9938
Compiler changes: * Change map assignment to use mapassign and assign value directly. * Change string iteration to use decoderune, faster for ASCII strings. * Change makeslice to take int, and use makeslice64 for larger values. * Add new noverflow field to hmap struct used for maps. Unresolved problems, to be fixed later: * Commented out test in go/types/sizes_test.go that doesn't compile. * Commented out reflect.TestStructOf test for padding after zero-sized field. Reviewed-on: https://go-review.googlesource.com/35231 gotools/: Updates for Go 1.8rc1. * Makefile.am (go_cmd_go_files): Add bug.go. (s-zdefaultcc): Write defaultPkgConfig. * Makefile.in: Rebuild. From-SVN: r244456
2016-09-10libgo: update to Go 1.7.1 releaseIan Lance Taylor11-199/+751
Reviewed-on: https://go-review.googlesource.com/29012 From-SVN: r240071
2016-08-06libgo: change build procedure to use build tagsIan Lance Taylor2-182/+2
Previously the libgo Makefile explicitly listed the set of files to compile for each package. For packages that use build tags, this required a lot of awkward automake conditionals in the Makefile. This CL changes the build to look at the build tags in the files. The new shell script libgo/match.sh does the matching. This required adjusting a lot of build tags, and removing some files that are never used. I verified that the exact same sets of files are compiled on amd64 GNU/Linux. I also tested the build on i386 Solaris. Writing match.sh revealed some bugs in the build tag handling that already exists, in a slightly different form, in the gotest shell script. This CL fixes those problems as well. The old code used automake conditionals to handle systems that were missing strerror_r and wait4. Rather than deal with those in Go, those functions are now implemented in runtime/go-nosys.c when necessary, so the Go code can simply assume that they exist. The os testsuite looked for dir_unix.go, which was never built for gccgo and has now been removed. I changed the testsuite to look for dir.go instead. Reviewed-on: https://go-review.googlesource.com/25546 From-SVN: r239189
2016-07-22libgo: update to go1.7rc3Ian Lance Taylor214-5403/+18769
Reviewed-on: https://go-review.googlesource.com/25150 From-SVN: r238662
2016-02-18libgo: Update to final Go 1.6 release.Ian Lance Taylor12-83/+378
Reviewed-on: https://go-review.googlesource.com/19592 From-SVN: r233515
2016-02-03libgo: Update to go1.6rc1.Ian Lance Taylor107-1883/+13901
Reviewed-on: https://go-review.googlesource.com/19200 From-SVN: r233110
2015-11-21re PR go/65785 (libgo TestIPv4MulticastListener test fails on machine with ↵Ian Lance Taylor1-2/+2
no network connection) PR go/65785 net: don't run multicast listen test on nil interface in short mode This is a backport of https://golang.org/cl/17154. The gccgo bug report https://gcc.gnu.org/PR65785 points out that the multicast listen tests will use the network even with -test.short. Fix test by checking testing.Short with a nil interface. Reviewed-on: https://go-review.googlesource.com/17158 From-SVN: r230695
2015-11-06libgo: Solaris portability fixes.Ian Lance Taylor1-16/+8
Only build net/hook_cloexec.go on GNU/Linux and FreeBSD, because those are the only systems with accept4. Add syscall/libcall_bsd.go to define sendfile for *BSD and Solaris. Revert tcpsockopt_solaris.go back to the earlier version, so that it works on Solaris 10. Always pass the address of a Pid_t value to TIOCGPGRP and TIOCSPGRP. Include <unistd.h> in runtime/go-varargs.c. Reviewed-on: https://go-review.googlesource.com/16719 From-SVN: r229880
2015-10-31libgo: Update from Go 1.5 to Go 1.5.1.Ian Lance Taylor5-2/+49
Reviewed-on: https://go-review.googlesource.com/16527 From-SVN: r229624
2015-10-31runtime: Remove now unnecessary pad field from ParFor.Ian Lance Taylor208-6140/+15969
It is not needed due to the removal of the ctx field. Reviewed-on: https://go-review.googlesource.com/16525 From-SVN: r229616
2015-10-07re PR go/67874 (fd_unix.go does not build when there is fcntl64 and no fcntl ↵Ian Lance Taylor1-1/+9
syscall) PR go/67874 net, runtime: Call C library fcntl function rather than syscall.Syscall. Not all systems define a fcntl syscall; some only have fcntl64. Fixes GCC PR go/67874. Reviewed-on: https://go-review.googlesource.com/15497 From-SVN: r228576
2015-01-16net: Restore earlier Solaris-specific version of setKeepAlivePeriod.Ian Lance Taylor1-0/+27
The version from the master repository seems to be appropriate for OpenSolaris but not for Solaris itself. Solaris 11.2 proper does not define TCP_KEEPIDLE or TCP_KEEPINTVL. From-SVN: r219749
2015-01-15libgo, compiler: Upgrade libgo to Go 1.4, except for runtime.Ian Lance Taylor100-1015/+2499
This upgrades all of libgo other than the runtime package to the Go 1.4 release. In Go 1.4 much of the runtime was rewritten into Go. Merging that code will take more time and will not change the API, so I'm putting it off for now. There are a few runtime changes anyhow, to accomodate other packages that rely on minor modifications to the runtime support. The compiler changes slightly to add a one-bit flag to each type descriptor kind that is stored directly in an interface, which for gccgo is currently only pointer types. Another one-bit flag (gcprog) is reserved because it is used by the gc compiler, but gccgo does not currently use it. There is another error check in the compiler since I ran across it during testing. gotools/: * Makefile.am (go_cmd_go_files): Sort entries. Add generate.go. * Makefile.in: Rebuild. From-SVN: r219627
2014-10-27libgo: Update to Go 1.3.3 release.Ian Lance Taylor6-22/+39
From-SVN: r216746
2014-07-19libgo: Update to Go 1.3 release.Ian Lance Taylor103-825/+3649
From-SVN: r212837
2014-06-06libgo: Merge to master revision 19184.Ian Lance Taylor48-278/+1139
The next revision, 19185, renames several runtime files, and will be handled in a separate change. From-SVN: r211328
2014-06-04libgo: Merge from revision 18783:00cce3a34d7e of master library.Ian Lance Taylor30-180/+424
This revision was committed January 7, 2014. The next revision deleted runtime/mfinal.c. That will be done in a subsequent merge. This merge changes type descriptors to add a zero field, pointing to a zero value for that type. This is implemented as a common variable. * go-gcc.cc (Gcc_backend::implicit_variable): Add is_common and alignment parameters. Permit init parameter to be NULL. From-SVN: r211249
2014-03-03libgo: Update to Go 1.2.1 release.Ian Lance Taylor1-8/+40
From-SVN: r208286
2013-12-28net: work around Solaris connect issue when server closes socketIan Lance Taylor1-0/+10
On Solaris, if you do a in-progress connect, and then the server accepts and closes the socket, the client's later attempt to complete the connect will fail with EINVAL. Handle this case by assuming that the connect succeeded. This code is weird enough that it is implemented as Solaris-only so that it doesn't hide a real error on a different OS. See http://golang.org/issue/6828. From-SVN: r206232
2013-12-27re PR go/59506 (net FAILs (timeout) on alpha)Ian Lance Taylor1-1/+1
PR go/59506 net: use DialTimeout in TestSelfConnect Backported from master repository. This avoids problems with systems that take a long time to find out nothing is listening, while still testing for the self-connect misfeature since a self-connect should be fast. With this we may be able to remove the test for non-Linux systems. Tested (on GNU/Linux) by editing selfConnect in tcpsock_posix.go to always return false and verifying that TestSelfConnect then fails with and without this change. Idea from Uros Bizjak. From-SVN: r206224
2013-12-25Revert unwanted commit.Uros Bizjak1-1/+1
From-SVN: r206201
2013-12-25re PR target/59422 (Support more targets for function multi versioning)Allan Sandfeld Jensen1-1/+1
gcc/ 2013-12-25 Allan Sandfeld Jensen <sandfeld@kde.org> H.J. Lu <hongjiu.lu@intel.com> PR target/59422 * config/i386/i386.c (get_builtin_code_for_version): Handle PROCESSOR_HASWELL, PROCESSOR_SILVERMONT, PROCESSOR_BTVER1, PROCESSOR_BTVER2, PROCESSOR_BDVER3 and PROCESSOR_BDVER4. Change priority of PROCESSOR_BDVER1 to P_PROC_XOP. (fold_builtin_cpu): Add "ivybridge", "haswell", "bonnell", "silvermont", "bobcat" and "jaguar" CPU names. Add "sse4a", "fma4", "xop" and "fma" ISA names. libgcc/ 2013-12-25 Allan Sandfeld Jensen <sandfeld@kde.org> H.J. Lu <hongjiu.lu@intel.com> PR target/59422 * config/i386/cpuinfo.c (enum processor_types): Add AMD_BOBCAT and AMD_JAGUAR. (enum processor_subtypes): Add AMDFAM15H_BDVER3, AMDFAM15H_BDVER4, INTEL_COREI7_IVYBRIDGE and INTEL_COREI7_HASWELL. (enum processor_features): Add FEATURE_SSE4_A, FEATURE_FMA4, FEATURE_XOP and FEATURE_FMA. (get_amd_cpu): Handle AMD_BOBCAT, AMD_JAGUAR, AMDFAM15H_BDVER2 and AMDFAM15H_BDVER3. (get_intel_cpu): Handle INTEL_COREI7 and INTEL_COREI7_HASWELL. (get_available_features): Handle FEATURE_FMA, FEATURE_SSE4_A, FEATURE_FMA4 and FEATURE_XOP. testsuite/ 2013-12-25 Allan Sandfeld Jensen <sandfeld@kde.org> PR target/59422 * gcc.target/i386/funcspec-5.c (test_fma, test_xop, test_no_fma, test_no_xop, test_arch_corei7, test_arch_corei7_avx, test_arch_core_avx2, test_arch_bdver1, test_arch_bdver2, test_arch_bdver3, test_tune_corei7, test_tune_corei7_avx, test_tune_core_avx2, test_tune_bdver1, test_tune_bdver2 and test_tune_bdver3): New function prototypes. From-SVN: r206200
2013-11-27libgo: Update to current Go library.Ian Lance Taylor8-12/+79
From-SVN: r205426
2013-11-14net: On Solaris use Darwin keepalive code.Ian Lance Taylor1-25/+0
From-SVN: r204819
2013-11-11net: Fix TCP keepalive handling for Solaris.Ian Lance Taylor1-0/+25
From-SVN: r204688
2013-11-11mksysinfo, net: Always define F_DUPFD_CLOEXEC.Ian Lance Taylor1-1/+1
For Solaris and CentOS portability. From-SVN: r204687
2013-11-06libgo: Update to October 24 version of master library.Ian Lance Taylor130-2425/+4985
From-SVN: r204466
2013-08-09net: give C.getaddrinfo a hint that we only want SOCK_STREAM answersIan Lance Taylor1-1/+2
This should be more efficient everywhere, and appears to be required on Solaris. Copied from master repository. From-SVN: r201637
2013-07-24net/http: Don't try to trace sendfile64 on alpha.Ian Lance Taylor1-1/+6
From Uros Bizjak. From-SVN: r201206
2013-07-23net: Remove Solaris-specific version of listenerSockaddr.Ian Lance Taylor1-29/+0
Solaris will use the version in sock_unix.go. From-SVN: r201183
2013-07-16libgo: Update to Go 1.1.1.Ian Lance Taylor117-2711/+8099
From-SVN: r200974
2013-02-07re PR go/56172 (net FAILs on Solaris)Ian Lance Taylor1-1/+1
PR go/56172 net: Skip TestMulticastListener on Solaris From Rainer Orth. From-SVN: r195855
2013-02-06re PR go/56172 (net FAILs on Solaris)Ian Lance Taylor4-7/+34
PR go/56172 net: Fixes for select based pollster. Make Close work properly, mainly for testing. Restart the select if a descriptor is closed. From-SVN: r195823
2013-01-29libgo: Update Go library to master revision 15489/921e53d4863c.Ian Lance Taylor47-704/+1025
From-SVN: r195560
2012-12-22libgo: Update to revision 15193:6fdc1974457c of master library.Ian Lance Taylor21-166/+806
From-SVN: r194692
2012-12-12libgo: Update to current master library sources.Ian Lance Taylor53-701/+1735
From-SVN: r194460
2012-11-21libgo: Update to current version of master library.Ian Lance Taylor63-683/+2306
From-SVN: r193688
2012-10-25libgo: Solaris portability patches.Ian Lance Taylor1-90/+0
From Rainer Orth. From-SVN: r192819
2012-10-23libgo: Update to current sources.Ian Lance Taylor83-2065/+2789
From-SVN: r192704
2012-10-03libgo: Update to Go 1.0.3.Ian Lance Taylor26-205/+926
From-SVN: r192025
2012-09-28libgo: Use libbacktrace rather than debug/elf registration.Ian Lance Taylor2-2/+0
From-SVN: r191831
2012-06-25libgo: Update to Go 1.0.2 release.Ian Lance Taylor13-16/+138
From-SVN: r188943
2012-05-04libgo: Update to Go 1.0.1 release.Ian Lance Taylor8-22/+21
From-SVN: r187163
2012-04-26mksysinfo, net: Always define syscall.SO_REUSEPORT.Ian Lance Taylor1-3/+5
From-SVN: r186857
2012-04-25re PR go/52583 (Several new go testsuite failues on Solaris)Ian Lance Taylor5-3/+160
PR go/52583 net: Solaris fixes. In particular fix fd_select.go to handle the case where a file descriptor is closed by one goroutine while another goroutine is waiting for it. From-SVN: r186801
2012-04-20net, syscall: Use native endianness for GNU/Linux netlink code.Ian Lance Taylor1-11/+6
From-SVN: r186640
2012-04-20net/http: Ignore sigaltstack when running strace in test.Ian Lance Taylor1-1/+1
Avoids bug in strace 4.5.20 on powerpc-unknown-linux-gnu. From-SVN: r186635