summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2009-11-02package net cleanupRuss Cox17-502/+1254
added ReadFrom/WriteTo for packet protocols like UDP. simplified the net.Conn interface. added new net.PacketConn interface for packet protocols. implemented proper UDP listener. cleaned up LocalAddr/RemoteAddr methods - cache in netFD. threw away various unused methods. an interface change: introduced net.Addr as a network address interface, to avoid conversion of UDP host:port to string and back for every ReadFrom/WriteTo sequence. another interface change: since signature of Listener.Accept was changing anyway, dropped the middle return value, because it is available as c.RemoteAddr(). (the Accept signature predates the existence of that method.) Dial and Listen still accept strings, but the proto-specific versions DialTCP, ListenUDP, etc. take net.Addr instead. because the generic Dial didn't change and because no one calls Accept directly (only indirectly via the http server), very little code will be affected by these interface changes. design comments welcome. R=p CC=go-dev, r http://go/go-review/1018017
2009-11-02crypto/tls (part 1)Adam Langley4-0/+418
Rather than drop everything into a single, huge review, I've included some simple bits of code here. R=rsc CC=go-dev http://go/go-review/1016029
2009-11-02fix divide by zero in old glibc dynamic loaderRuss Cox1-4/+11
R=r CC=iant http://go/go-review/1018024
2009-11-02remove goroutines from template parsing.Rob Pike2-42/+77
fix up one usage to take advantage. R=rsc CC=go-dev http://go/go-review/1018023
2009-11-02Define constants for sizes of Sym structures.Ian Lance Taylor1-0/+3
R=rsc, agl http://go/go-review/1016028
2009-11-02Fix cgo for GCC 4.4Adam Langley7-6/+236
Firstly, with -Werror, GCC switched to printing warnings starting with "error:". Widening the string matches solves this as the messages are otherwise unchanged. Secondly, GCC 4.4 outputs DWARF sections with with NUL bytes in all the offsets and requires the relocation section for .debug_info to be processed in order to result in valid DWARF data. Thus we add minimal handling for relocation sections, which is sufficient for our needs. BUG=1 Fixes issue 1. R=rsc, iant CC=go-dev http://go/go-review/1017003
2009-11-02use the new routine regexp.MustCompile to clean up some code that uses ↵Rob Pike2-33/+14
global regexps. R=rsc, gri CC=go-dev http://go/go-review/1016025
2009-11-02eliminate goroutine from testing/regexp too.Rob Pike2-77/+79
R=rsc CC=go-dev http://go/go-review/1018021
2009-11-02Split constant time functions into crypto/subtle.Adam Langley8-216/+249
R=rsc CC=go-dev http://go/go-review/1018020
2009-11-02do not emit USED for global x when compiling "_ = x;"Russ Cox1-1/+1
R=ken@golang.org CC=r http://go/go-review/1018019
2009-11-02take goroutines out of regexp so they can be createdRob Pike1-53/+77
during initialization. R=rsc CC=go-dev http://go/go-review/1016023
2009-11-02- initial steps towards showing directory tree instead ofRobert Griesemer2-15/+102
just a single directory - all pieces present but not well integrated - directory tree served at the moment under /tree R=rsc http://go/go-review/1018016
2009-11-02- collect line comments for methods in interfacesRobert Griesemer2-12/+11
(previously not shown in godoc) - simplify parsing of struct types (match code structure for parsing interface types) R=rsc, r http://go/go-review/1016019
2009-11-01nil pointer checks in 8g.Russ Cox5-21/+91
fix nil pointer check in 6g. was dereferencing after the ADD; dereference before instead. R=ken@golang.org CC=iant http://go/go-review/1016022
2009-11-01reverse the arguments to io.Copy so the destination is on theRob Pike19-38/+38
left, like an assignment, like strcpy, etc. R=rsc CC=go-dev http://go/go-review/1016011
2009-11-01Permit the CC environment variable to include argumentsIan Lance Taylor1-1/+1
(I should have tested the last change a bit more before submitting). R=rsc http://go/go-review/1017011
2009-11-01Use the environment variable CC as the bootstrap compiler usedIan Lance Taylor2-10/+7
to build 6g, 6l, etc. R=rsc CC=go-dev http://go/go-review/1018015
2009-11-01enable all (but one) test cases in test.sh thatRobert Griesemer1-15/+11
were excluded before because of incorrect comment formatting (comment formatting is mostly idempotent at this point) R=rsc http://go/go-review/1018014
2009-11-01These files were moved to encoding/base64. The directory wasIan Lance Taylor3-546/+0
already removed from the Makefile. R=rsc http://go/go-review/1017006
2009-11-01split ipsock.go, sock.go, and unixsock.go out of net.goRuss Cox9-819/+874
prior to cleanup. no changes, only moving. remove dependencies on strconv and strings R=r http://go/go-review/1017010
2009-11-01syscall cleanup.Russ Cox26-1414/+2493
* rename PORT.sh -> mkall.sh (hopefully more obvious), change behavior: run commands by default. * pull more constants out of #defines automatically, instead of editing large lists by hand. * add Recvfrom, Sendto add os.O_EXCL. R=r http://go/go-review/1017009
2009-11-01don't update sync time if no files have changedRobert Griesemer1-12/+18
(and thus avoid re-indexing after every sync attempt) R=rsc http://go/go-review/1016010
2009-11-01os cleanup.Russ Cox14-392/+14
dir_* and stat_* are just os specific, not os+arch-specific. R=r http://go/go-review/1018010
2009-11-01misc cleanupRuss Cox8-53/+43
R=r http://go/go-review/1016017
2009-11-01allow unpacking of json map into Go map,Russ Cox4-47/+111
now that reflection supports it. R=r http://go/go-review/1015008
2009-11-01Make.pkg: add DEPS= supportRuss Cox1-2/+5
allow Makefiles using Make.pkg to specify a list of directories that should be installed before trying to build the package. this is a stopgap for small package trees maintained outside the standard tree. R=r http://go/go-review/1016012
2009-10-31return "<nil>" when calling String() on a nil bytes.Buffer.Rob Pike2-1/+13
R=rsc CC=go-dev http://go/go-review/1016005
2009-10-30Don't use fallthrough in a type switch.Ian Lance Taylor1-4/+2
R=rsc http://go/go-review/1018005
2009-10-30fix buildRobert Griesemer1-4/+4
R=agl CC=rsc http://go/go-review/1016008
2009-10-30improved comment formatting:Robert Griesemer8-168/+637
- print comments line by line, strip common prefix but do not modify comment contents otherwise - align comments with subsequent keyword if indicated (e.g. case labels) - terminate "column section" after multi-line expressions for better alignment R=rsc http://go/go-review/1017002
2009-10-30split godoc/godoc.go into godoc/godoc.goRuss Cox3-204/+236
and godoc/main.go. R=gri CC=r http://go/go-review/1017005
2009-10-30added missing sgen reverse character copy code.Kai Backman1-1/+24
R=rsc http://go/go-review/1018006
2009-10-29clone and futexKai Backman3-12/+96
go/test: passes 99% (343/347) R=rsc http://go/go-review/1016004
2009-10-29Forgot to change quickcheck to quick in the Makefile.Adam Langley2-8/+9
TBR=rsc R=rsc http://go/go-review/1017004
2009-10-29Add RSA PKCS#1 v1.5 support.Adam Langley5-7/+407
R=go-dev APPROVED=rsc DELTA=407 (400 added, 0 deleted, 7 changed) OCL=36007 CL=36146
2009-10-28Add a quickcheck package which is a little like the Haskell one of the sameAdam Langley5-7/+571
name. R=rsc APPROVED=rsc DELTA=566 (566 added, 0 deleted, 0 changed) OCL=35974 CL=36111
2009-10-26Hack to make cgo's generated go code compile when there are noStephen Ma1-4/+5
unsafe.Pointer references inside the C declarations. R=go-dev APPROVED=rsc DELTA=1 (1 added, 0 deleted, 0 changed) OCL=36063 CL=36063
2009-10-29Change Stat to Lstat in Readdir so we don't recur when someone symlinks "."Rob Pike1-1/+1
R=rsc CC=go-dev http://go/go-review/1018003
2009-10-28Fix bug when sending via select.Adam Langley1-32/+19
selfree maintains a cache of Select structures for several sizes. In newselect, we'll use an entry from the cache if one is found. However, the Scase structures corresponding to a send may have been allocated for the wrong size. In this case we'll write off the end of the Scase into random memory and, generally, read some amount of junk in the receive. This patch fixes the issue by removing the cache, on the advice of rsc. R=rsc CC=go-dev http://go/go-review/1016002
2009-10-28- added missing formatters in templatesRobert Griesemer1-6/+16
- replaced deprecated use of </font> with </span> tag - added html escaping to godoc formatters where missing - enabled text format for package documentation R=rsc http://go/go-review/1017001
2009-10-28mysterious bug: runtime.acid wasn't getting rebuiltRuss Cox2-5/+5
when switching architectures. fix bug twice: make sure clean removes the file, and generate into architecture-specific file names. R=r http://go/go-review/1013018
2009-10-28fix for long label names impacting column width of previous linesRobert Griesemer3-1/+40
R=rsc http://go/go-review/1013017
2009-10-27files that are okay from the last gofmt roundRuss Cox16-68/+53
R=gri http://go/go-review/1015011
2009-10-27shift for non-64 bit integers.Kai Backman5-3/+97
R=rsc http://go/go-review/1015017
2009-10-27godoc search bug fixes:Robert Griesemer2-12/+57
- sort by package name (instead of package path) for results with snippets - sort line numbers in results without snippets - properly characterize package clauses - experiment with a leaner look: no underlines for top-level godoc links in the left side bar Still using colors to distinguish results. Next step. R=rsc http://go/go-review/1015016
2009-10-27code search for godoc:Robert Griesemer3-54/+173
- added goroutine to automatically index in the background - added handler for search requests - added search box to top-level godoc template - added search.html template for the display of search results - changes to spec.go because of name conflicts - added extra styles to style.css (for shorter .html files) R=rsc http://go/go-review/1014011
2009-10-26Get the right sigaction struct for the 386 rt_sigaction systemIan Lance Taylor3-9/+20
call. This uses the header files from a 32-bit Ubuntu Hardy system. The use of _LOOSE_KERNEL_NAMES seems right. The -D__ARCH_SI_UID_T works around a bug which appears to be fixed in later Linux versions. R=rsc http://go/go-review/1013015
2009-10-26bug162, large indices on nil referencesKai Backman3-14/+71
R=rsc http://go/go-review/1013016
2009-10-26- gofmt-ify walk.goRobert Griesemer1-44/+67
- fixed several bugs R=rsc http://go/go-review/1015015
2009-10-26- indexing component for godocRobert Griesemer1-0/+664
R=rsc http://go/go-review/1015014