summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2009-11-17install copy predefinedKen Thompson12-1/+209
did not test 386, but should work shouldnt matter if copy is not used R=rsc http://codereview.appspot.com/156055
2009-11-17crypto/rsa: add PKCS#1 v1.5 signature support.Adam Langley3-0/+179
R=rsc CC=golang-dev http://codereview.appspot.com/156051
2009-11-17asn1:Adam Langley7-161/+705
* add Marshal * add BitString.RightAlign * change to using a *time.Time (from time.Time) since that's what the time package uses. * return the unparsed data from Unmarshal. R=rsc CC=golang-dev http://codereview.appspot.com/156047
2009-11-17reflect: document that PkgPath and Name returnRuss Cox1-0/+2
empty string for unnamed types. Fixes issue 249. R=r http://codereview.appspot.com/156052
2009-11-17http: do not crash accessing r.Form if ParseForm failsRuss Cox2-7/+6
Fixes issue 233. R=dsymonds1 http://codereview.appspot.com/154179
2009-11-17runtime: do not create new threads during malloc.Russ Cox1-2/+5
the signal handling stack is a different size than the normal stack, so it cannot be allocated using the backup stack allocator. Fixes issue 250. R=agl1 CC=golang-dev http://codereview.appspot.com/157044
2009-11-17fix botchKen Thompson1-1270/+0
R=rsc http://codereview.appspot.com/157046
2009-11-17change a n^2 algorithm inKen Thompson1-2/+1385
data initialization to n*log(n) R=rsc http://codereview.appspot.com/158041
2009-11-17improve documentation of runtime. there was no mention of types.Rob Pike1-1/+3
R=rsc CC=golang-dev http://codereview.appspot.com/157042
2009-11-17Make non-errored RPC calls return 'nil' error to caller.Aron Nopanen1-2/+17
Error information is carried from RPC server to client in the string 'Error' field of rpc.Response. An empty string is sent in the success case. This empty string was being returned to the caller (of Client.Call or Client.Go), resulting in a non-nil error response. This change detects an empty-string Response.Error at the client, and translates it into a nil value in Call.Error. Tests updated to check error return in success cases. R=r, rsc http://codereview.appspot.com/154159 Committer: Rob Pike <r@golang.org>
2009-11-17cmd/cc: Fix -I switch to handle a path with blankspaces correctlySergio Luis O. B. Correia1-10/+2
Currently, -I switch can't deal with a path containing spaces. This commit simplify setinclude(), by removing the special case of a string that had spaces. After this change, setinclude() will merely add the given directories to the include path, if it does not yet exist, and this approach works. Will be needed for solving issue 115. R=agl1, rsc, iant2, r http://codereview.appspot.com/155059 Committer: Russ Cox <rsc@golang.org>
2009-11-17math: fix argument names in Atan2Russ Cox1-7/+6
(error introduced converting from arg1, arg2) Fixes issue 220. R=r http://codereview.appspot.com/156041
2009-11-17Make.pkg: have "make coverage" invoke 6cov with correct binaryRuss Cox1-1/+1
Fixes issue 239. R=r http://codereview.appspot.com/154176
2009-11-17net: enforce timeouts for ReadFrom/WriteToRuss Cox5-23/+81
Fixes issue 153. R=r http://codereview.appspot.com/154177
2009-11-17syscall: use correct pointer in recvfrom/sendto.Russ Cox2-15/+15
linux/386 stack trace: use 32-bit hex. Fixes issue 159. R=r http://codereview.appspot.com/154178
2009-11-17FreeBSD-specific porting work.Devon H. O'Dell35-6/+3954
cgo/libmach remain unimplemented. However, compilers, runtime, and packages are 100%. I still need to go through and implement missing syscalls (at least make sure they're all listed), but for all shipped functionality, this is done. Ship! ;) R=rsc, VenkateshSrinivas http://codereview.appspot.com/152142 Committer: Russ Cox <rsc@golang.org>
2009-11-16Rework gobs to fix bad bug related to sharing of id's between encoder and ↵Rob Pike6-225/+138
decoder side. Fix is to move all decoder state into the decoder object. Fixes issue 215. R=rsc CC=golang-dev http://codereview.appspot.com/155077
2009-11-16fix bug causing empty strings to be become non-nil errors on client side of ↵Rob Pike2-2/+9
rpc connection. R=rsc CC=golang-dev http://codereview.appspot.com/155078
2009-11-16runtime: make signal handler work on 386Russ Cox2-7/+18
R=r http://codereview.appspot.com/154171
2009-11-16gc: change "can we const evaluate this" from blacklist to whitelistRuss Cox1-6/+30
R=ken2 http://codereview.appspot.com/155074
2009-11-166l: fix divide by zero in glibc linker.Russ Cox1-5/+12
repeats 8l change http://code.google.com/p/go/source/detail?r=7594e16b5cf9 Fixes issue 179. R=iant http://codereview.appspot.com/154145
2009-11-16unsafe: documentation typo.Adam Langley1-1/+1
Fixes issue 236. R=r CC=golang-dev http://codereview.appspot.com/155072
2009-11-16Don't emit line tags when source code is printed as part ofRobert Griesemer1-3/+10
package documentation using templates. The line tag interferes with the anchor tag introduces by the template. This fixes an an issue where some headers lost their ability to link to the respective source code. R=rsc http://codereview.appspot.com/154166
2009-11-16Add some primitive type aliases to exp/iterable and define Iter on them.David Symonds3-11/+78
R=rsc http://codereview.appspot.com/155065 Committer: Russ Cox <rsc@golang.org>
2009-11-16 An asked-for-in #go-nuts extension to quickly create a repeatedDavid G. Andersen4-0/+79
copy of a string or a byte array. strings.Repeat("-", 50) bytes.Repeat(b, 99) R=rsc http://codereview.appspot.com/155063 Committer: Russ Cox <rsc@golang.org>
2009-11-16s/AJMP/AB/ to fix build breakage.Kai Backman1-3/+3
R=rsc http://codereview.appspot.com/155069
2009-11-15gc: fix up floating point NaN comparisonsRuss Cox5-34/+89
Fixes issue 167. R=ken2 http://codereview.appspot.com/155062
2009-11-15crypto/md5: fix comment typo.Adam Langley1-1/+1
Fixes issue 210. R=rsc CC=golang-dev http://codereview.appspot.com/155057
2009-11-15godefs: avoid gcc 4'isms in command line.Russ Cox1-2/+2
Fixes issue 97. R=r http://codereview.appspot.com/155054
2009-11-15makefiles: use correct gcc order in case --as-needed is in use.Russ Cox2-2/+2
Suggested by eostapets. Fixes issue 141. R=r http://codereview.appspot.com/155049
2009-11-15cgo: arrange for English error messagesRuss Cox1-0/+5
Fixes issue 21. R=r http://codereview.appspot.com/155048
2009-11-15runtime: avoid crash in CallerRuss Cox2-2/+2
Fixes issue 176. R=r http://codereview.appspot.com/154146
2009-11-15gc: five bug fixes, one better error.Russ Cox12-64/+171
* check for struct literal assignment to private fields. * record, fix crash involving parallel map assignment. * avoid infinite recursion in exportassignok. * make floating point bounds check precise. * avoid crash on invalid receiver. * add context to error about implicit assignment. Fixes issue 86. Fixes issue 88. Fixes issue 158. Fixes issue 174. Fixes issue 201. Fixes issue 204. R=ken2 http://codereview.appspot.com/154144
2009-11-15http.URLEscape: escape all bytes required by RFC 2396Russ Cox2-8/+10
Fixes issue 125. R=r http://codereview.appspot.com/154143
2009-11-15gotest: show the test file pattern in "no test files" errorRuss Cox1-1/+1
Fixes issue 190. R=r http://codereview.appspot.com/154142
2009-11-15fix bug in bytes.Map and add test cases for Map in both strings and bytes ↵Rob Pike3-3/+56
packages. thanks to ulrik.sverdrup for the test case. Fixes issue 191. R=rsc CC=golang-dev http://codereview.appspot.com/155056
2009-11-15cc: drop redundant strcpyRuss Cox1-2/+0
Fixes issue 192. R=ken2 http://codereview.appspot.com/155047
2009-11-14cc: eliminate two fixed-size buffersRuss Cox2-25/+25
Fixes bug 168. Alternative to http://codereview.appspot.com/152143. R=ken2 http://codereview.appspot.com/155042
2009-11-14complain if GOARCH != arm. fix build break caused by gomakeKai Backman1-0/+31
introduction. R=rsc http://codereview.appspot.com/152109
2009-11-14crypto/rsa: handle the case of non-coprime blinds.Adam Langley2-11/+26
We are dealing with the multiplicative group ℤ/pqℤ. Multiples of either p or q are not members of the group since they cannot have an inverse. (Such numbers are 0 in the subgroup ℤ/pℤ.) With p and q of typical size (> 512 bits), the probability of a random blind [1..pq-1] being a multiple of p or q is negligible. However, in the unit tests, much smaller sizes are used and the event could occur. This change checks the result of the ext GCD and deals with this case. It also increases the size of p and q in the unit test as a large number of the keys selected were p, q = 227,169. R=rsc CC=golang-dev http://codereview.appspot.com/154141 Committer: Russ Cox <rsc@golang.org>
2009-11-14Build changes to support work on the BSDs.Devon H. O'Dell19-47/+64
This does still contain some FreeBSD-specific bits, but it's a pain to do partial diffs. R=rsc http://codereview.appspot.com/152138 Committer: Russ Cox <rsc@golang.org>
2009-11-14encoding/binary: implemented the Write functionMôshe van der Sterre2-18/+121
The ByteOrder.Put* methods are already available, this change uses them to implement the Write function. R=golang-dev, agl1, rsc, r http://codereview.appspot.com/152141 Committer: Russ Cox <rsc@golang.org>
2009-11-14gc: do not try to constant-evaluate (interface{})("bar")Russ Cox1-0/+1
Fixes issue 183. R=ken http://codereview.appspot.com/154139
2009-11-14move evaluation of null-matching instructions one iteration earlier.Rob Pike2-41/+53
performance hit of about 20% but more intuitive results for submatches. we need a good regexp package at some point. Fixes issue 110. R=rsc CC=golang-dev http://codereview.appspot.com/152131
2009-11-14 xml: Fixed CDATA parsing.Abhinav Gupta2-5/+9
Fixes issue 128. R=r, rsc http://codereview.appspot.com/154126 Committer: Russ Cox <rsc@golang.org>
2009-11-14typosRuss Cox2-2/+2
Fixes issue 171. Fixes issue 172. R=agl1 http://codereview.appspot.com/154136
2009-11-13Created new Conn.Flush() public method so the fd pipeline can be drained ↵David Titarenco1-2/+10
arbitrarily by the user. Commented both flush methods so people know what they are looking at. This is a necessary fix for streaming and long polling HTTP services. Fixes issue 93. R=r, rsc, david.titarenco http://codereview.appspot.com/154099 Committer: Russ Cox <rsc@golang.org>
2009-11-13Remove unnecessary int(h) casts in image.go.Nigel Tao1-5/+5
R=rsc http://codereview.appspot.com/154125 Committer: Russ Cox <rsc@golang.org>
2009-11-13json: minor comment fix.Adam Langley1-1/+1
I screwed up and didn't write one of the code review changes to disk before submitting. TBR=rsc R=rsc http://codereview.appspot.com/154122
2009-11-13Explain whyRob Pike1-1/+6
-flag true does not work although -flag=true does. Fixes issue 139. R=iant CC=golang-dev http://codereview.appspot.com/154118