]> Cypherpunks.ru repositories - gostls13.git/log
gostls13.git
14 years agocrypto/rsa: add PKCS#1 v1.5 signature support. weekly.2009-11-17
Adam Langley [Wed, 18 Nov 2009 02:21:47 +0000 (18:21 -0800)]
crypto/rsa: add PKCS#1 v1.5 signature support.

R=rsc
CC=golang-dev
https://golang.org/cl/156051

14 years agoasn1:
Adam Langley [Wed, 18 Nov 2009 02:09:41 +0000 (18:09 -0800)]
asn1:
  * 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
https://golang.org/cl/156047

14 years agocodereview: handle spaces and other unexpected chars in nicknames
Russ Cox [Wed, 18 Nov 2009 00:52:36 +0000 (16:52 -0800)]
codereview: handle spaces and other unexpected chars in nicknames

R=r
https://golang.org/cl/157053

14 years agoLet us have side by side git if we want
Josh Goebel [Wed, 18 Nov 2009 00:46:58 +0000 (16:46 -0800)]
Let us have side by side git if we want

R=r, rsc
https://golang.org/cl/156046

14 years agoAdd myself to authors and contributors
Josh Goebel [Wed, 18 Nov 2009 00:22:29 +0000 (16:22 -0800)]
Add myself to authors and contributors

R=r
https://golang.org/cl/156045

14 years agoreflect: document that PkgPath and Name return
Russ Cox [Wed, 18 Nov 2009 00:03:14 +0000 (16:03 -0800)]
reflect: document that PkgPath and Name return
empty string for unnamed types.

Fixes #249.

R=r
https://golang.org/cl/156052

14 years agohttp: do not crash accessing r.Form if ParseForm fails
Russ Cox [Tue, 17 Nov 2009 22:45:10 +0000 (14:45 -0800)]
http: do not crash accessing r.Form if ParseForm fails

Fixes #233.

R=dsymonds1
https://golang.org/cl/154179

14 years agoruntime: do not create new threads during malloc.
Russ Cox [Tue, 17 Nov 2009 22:42:08 +0000 (14:42 -0800)]
runtime: do not create new threads during malloc.
the signal handling stack is a different size than
the normal stack, so it cannot be allocated using
the backup stack allocator.

Fixes #250.

R=agl1
CC=golang-dev
https://golang.org/cl/157044

14 years agoexplain the situation with unicode and identifiers
Rob Pike [Tue, 17 Nov 2009 22:40:07 +0000 (14:40 -0800)]
explain the situation with unicode and identifiers

R=rsc
CC=golang-dev
https://golang.org/cl/156044

14 years agofix botch
Ken Thompson [Tue, 17 Nov 2009 22:11:50 +0000 (14:11 -0800)]
fix botch

R=rsc
https://golang.org/cl/157046

14 years agochange a n^2 algorithm in
Ken Thompson [Tue, 17 Nov 2009 21:59:38 +0000 (13:59 -0800)]
change a n^2 algorithm in
data initialization to n*log(n)

R=rsc
https://golang.org/cl/158041

14 years agoimprove documentation of runtime. there was no mention of types.
Rob Pike [Tue, 17 Nov 2009 19:44:15 +0000 (11:44 -0800)]
improve documentation of runtime. there was no mention of types.

R=rsc
CC=golang-dev
https://golang.org/cl/157042

14 years agocase insensitive matching in CONTRIBUTORS file
Rob Pike [Tue, 17 Nov 2009 19:40:25 +0000 (11:40 -0800)]
case insensitive matching in CONTRIBUTORS file

R=rsc
https://golang.org/cl/157043

14 years agoMake non-errored RPC calls return 'nil' error to caller.
Aron Nopanen [Tue, 17 Nov 2009 19:29:02 +0000 (11:29 -0800)]
Make non-errored RPC calls return 'nil' error to caller.

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
https://golang.org/cl/154159

14 years agoAdd myself to 'AUTHORS' and 'CONTRIBUTORS'
Aron Nopanen [Tue, 17 Nov 2009 19:28:54 +0000 (11:28 -0800)]
Add myself to 'AUTHORS' and 'CONTRIBUTORS'

R=rsc, r
https://golang.org/cl/154175

14 years agocodereview: discard \r characters (sigh)
Russ Cox [Tue, 17 Nov 2009 17:08:54 +0000 (09:08 -0800)]
codereview: discard \r characters (sigh)

R=r
https://golang.org/cl/157041

14 years agocmd/cc: Fix -I switch to handle a path with blankspaces correctly
Sergio Luis O. B. Correia [Tue, 17 Nov 2009 17:02:47 +0000 (09:02 -0800)]
cmd/cc: Fix -I switch to handle a path with blankspaces correctly

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
https://golang.org/cl/155059

14 years agoAdd myself to list of AUTHORS/CONTRIBUTORS for Go.
Sergio Luis O. B. Correia [Tue, 17 Nov 2009 17:02:41 +0000 (09:02 -0800)]
Add myself to list of AUTHORS/CONTRIBUTORS for Go.

R=rsc
https://golang.org/cl/154180

14 years agocodereview: add clpatch --ignore_hgpatch_errors.
Russ Cox [Tue, 17 Nov 2009 16:47:48 +0000 (08:47 -0800)]
codereview: add clpatch --ignore_hgpatch_errors.
  of limited utility but good for creating the metadata
  for an AUTHORS/CONTRIBUTORS change even if
  the patch doesn't apply cleanly.

R=r
https://golang.org/cl/154140

14 years agomath: fix argument names in Atan2
Russ Cox [Tue, 17 Nov 2009 16:39:56 +0000 (08:39 -0800)]
math: fix argument names in Atan2
(error introduced converting from arg1, arg2)

Fixes #220.

R=r
https://golang.org/cl/156041

14 years agoMake.pkg: have "make coverage" invoke 6cov with correct binary
Russ Cox [Tue, 17 Nov 2009 16:39:26 +0000 (08:39 -0800)]
Make.pkg: have "make coverage" invoke 6cov with correct binary

Fixes #239.

R=r
https://golang.org/cl/154176

14 years agonet: enforce timeouts for ReadFrom/WriteTo
Russ Cox [Tue, 17 Nov 2009 16:39:17 +0000 (08:39 -0800)]
net: enforce timeouts for ReadFrom/WriteTo

Fixes #153.

R=r
https://golang.org/cl/154177

14 years agosyscall: use correct pointer in recvfrom/sendto.
Russ Cox [Tue, 17 Nov 2009 16:39:04 +0000 (08:39 -0800)]
syscall: use correct pointer in recvfrom/sendto.
linux/386 stack trace: use 32-bit hex.

Fixes #159.

R=r
https://golang.org/cl/154178

14 years agoPass ui into PostMessage to avoid nasty/confusing exception
Devon H. O'Dell [Tue, 17 Nov 2009 16:32:23 +0000 (08:32 -0800)]
Pass ui into PostMessage to avoid nasty/confusing exception

R=rsc
https://golang.org/cl/155079

14 years agoFreeBSD-specific porting work.
Devon H. O'Dell [Tue, 17 Nov 2009 16:20:58 +0000 (08:20 -0800)]
FreeBSD-specific porting work.

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
https://golang.org/cl/152142

14 years agoRework gobs to fix bad bug related to sharing of id's between encoder and decoder...
Rob Pike [Tue, 17 Nov 2009 07:32:30 +0000 (23:32 -0800)]
Rework gobs to fix bad bug related to sharing of id's between encoder and decoder side.
Fix is to move all decoder state into the decoder object.

Fixes #215.

R=rsc
CC=golang-dev
https://golang.org/cl/155077

14 years agofix bug causing empty strings to be become non-nil errors on client side of rpc conne...
Rob Pike [Tue, 17 Nov 2009 07:32:16 +0000 (23:32 -0800)]
fix bug causing empty strings to be become non-nil errors on client side of rpc connection.

R=rsc
CC=golang-dev
https://golang.org/cl/155078

14 years agofix typo in Append return type
Rob Pike [Tue, 17 Nov 2009 05:56:38 +0000 (21:56 -0800)]
fix typo in Append return type

R=rsc
https://golang.org/cl/155058

14 years agobug218.go: testcase for issue 238
Robert Griesemer [Tue, 17 Nov 2009 01:53:39 +0000 (17:53 -0800)]
bug218.go: testcase for issue 238

R=rsc
https://golang.org/cl/154172

14 years agoruntime: make signal handler work on 386
Russ Cox [Tue, 17 Nov 2009 01:51:47 +0000 (17:51 -0800)]
runtime: make signal handler work on 386

R=r
https://golang.org/cl/154171

14 years agogc: change "can we const evaluate this" from blacklist to whitelist
Russ Cox [Tue, 17 Nov 2009 01:40:47 +0000 (17:40 -0800)]
gc: change "can we const evaluate this" from blacklist to whitelist

R=ken2
https://golang.org/cl/155074

14 years ago6l: fix divide by zero in glibc linker.
Russ Cox [Tue, 17 Nov 2009 01:40:03 +0000 (17:40 -0800)]
6l: fix divide by zero in glibc linker.

repeats 8l change http://code.google.com/p/go/source/detail?r=7594e16b5cf9

Fixes #179.

R=iant
https://golang.org/cl/154145

14 years agounsafe: documentation typo.
Adam Langley [Mon, 16 Nov 2009 23:39:04 +0000 (15:39 -0800)]
unsafe: documentation typo.

Fixes #236.

R=r
CC=golang-dev
https://golang.org/cl/155072

14 years agoAdd id attribute to h2 and h3 tags so that they exist when referring
Robert Griesemer [Mon, 16 Nov 2009 23:25:16 +0000 (15:25 -0800)]
Add id attribute to h2 and h3 tags so that they exist when referring
to generated pages even if Javascript has not introduced them yet.

R=rsc
https://golang.org/cl/154167

14 years agoDon't emit line tags when source code is printed as part of
Robert Griesemer [Mon, 16 Nov 2009 22:26:29 +0000 (14:26 -0800)]
Don't emit line tags when source code is printed as part of
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
https://golang.org/cl/154166

14 years agoAdd some primitive type aliases to exp/iterable and define Iter on them.
David Symonds [Mon, 16 Nov 2009 21:39:59 +0000 (13:39 -0800)]
Add some primitive type aliases to exp/iterable and define Iter on them.

R=rsc
https://golang.org/cl/155065

14 years ago An asked-for-in #go-nuts extension to quickly create a repeated
David G. Andersen [Mon, 16 Nov 2009 20:40:01 +0000 (12:40 -0800)]
An asked-for-in #go-nuts extension to quickly create a repeated
copy of a string or a byte array.
        strings.Repeat("-", 50)
bytes.Repeat(b, 99)

R=rsc
https://golang.org/cl/155063

14 years agoAdding my name to authors/contributors. I'm waiting to hear
David G. Andersen [Mon, 16 Nov 2009 20:39:37 +0000 (12:39 -0800)]
Adding my name to authors/contributors.  I'm waiting to hear
back from Carnegie Mellon about whether they're interested in
signing the agreement (do you know if they have already?).
In the meantime, I'm submitting these changes on my own time.
If CMU has already signed the corporate contributor agreement,
please remove my name from the AUTHORS list.

R=rsc
https://golang.org/cl/154161

14 years agos/AJMP/AB/ to fix build breakage.
Kai Backman [Mon, 16 Nov 2009 19:58:28 +0000 (11:58 -0800)]
s/AJMP/AB/ to fix build breakage.

R=rsc
https://golang.org/cl/155069

14 years agodoc: fix typo.
Adam Langley [Mon, 16 Nov 2009 19:56:18 +0000 (11:56 -0800)]
doc: fix typo.

Fixes #218

R=r
CC=golang-dev
https://golang.org/cl/155067

14 years ago- Clarify that struct composite literal keys are field names not selectors.
Robert Griesemer [Mon, 16 Nov 2009 16:58:55 +0000 (08:58 -0800)]
- Clarify that struct composite literal keys are field names not selectors.
- Slight re-phrasing of struct type section since "field name" was not
properly introduced.

Fixes #164.

R=r, rsc, iant
https://golang.org/cl/155061

14 years agoUse ElementType consistently.
Robert Griesemer [Mon, 16 Nov 2009 01:42:27 +0000 (17:42 -0800)]
Use ElementType consistently.

Fixes #173.

R=r, rsc, r1
https://golang.org/cl/154156

14 years agogc: fix up floating point NaN comparisons
Russ Cox [Mon, 16 Nov 2009 01:24:14 +0000 (17:24 -0800)]
gc: fix up floating point NaN comparisons

Fixes #167.

R=ken2
https://golang.org/cl/155062

14 years agocrypto/md5: fix comment typo.
Adam Langley [Sun, 15 Nov 2009 22:00:46 +0000 (14:00 -0800)]
crypto/md5: fix comment typo.

Fixes #210.

R=rsc
CC=golang-dev
https://golang.org/cl/155057

14 years agoadd a paragraph about GOMAXPROCS
Rob Pike [Sun, 15 Nov 2009 21:09:43 +0000 (13:09 -0800)]
add a paragraph about GOMAXPROCS

R=rsc
CC=golang-dev
https://golang.org/cl/154153

14 years agogodefs: avoid gcc 4'isms in command line.
Russ Cox [Sun, 15 Nov 2009 20:57:39 +0000 (12:57 -0800)]
godefs: avoid gcc 4'isms in command line.

Fixes #97.

R=r
https://golang.org/cl/155054

14 years agogodocs.js: fix bad variable name
Russ Cox [Sun, 15 Nov 2009 20:57:33 +0000 (12:57 -0800)]
godocs.js: fix bad variable name

Thanks to anno.langen.
Fixes #103.

R=r
https://golang.org/cl/155050

14 years agomakefiles: use correct gcc order in case --as-needed is in use.
Russ Cox [Sun, 15 Nov 2009 20:57:28 +0000 (12:57 -0800)]
makefiles: use correct gcc order in case --as-needed is in use.

Suggested by eostapets.
Fixes #141.

R=r
https://golang.org/cl/155049

14 years agocgo: arrange for English error messages
Russ Cox [Sun, 15 Nov 2009 20:57:21 +0000 (12:57 -0800)]
cgo: arrange for English error messages

Fixes #21.

R=r
https://golang.org/cl/155048

14 years agoruntime: avoid crash in Caller
Russ Cox [Sun, 15 Nov 2009 20:57:15 +0000 (12:57 -0800)]
runtime: avoid crash in Caller

Fixes #176.

R=r
https://golang.org/cl/154146

14 years agogc: five bug fixes, one better error.
Russ Cox [Sun, 15 Nov 2009 20:57:09 +0000 (12:57 -0800)]
gc: five bug fixes, one better error.

* 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 #86.
Fixes #88.
Fixes #158.
Fixes #174.
Fixes #201.
Fixes #204.

R=ken2
https://golang.org/cl/154144

14 years agohttp.URLEscape: escape all bytes required by RFC 2396
Russ Cox [Sun, 15 Nov 2009 20:56:50 +0000 (12:56 -0800)]
http.URLEscape: escape all bytes required by RFC 2396

Fixes #125.

R=r
https://golang.org/cl/154143

14 years agogotest: show the test file pattern in "no test files" error
Russ Cox [Sun, 15 Nov 2009 20:56:39 +0000 (12:56 -0800)]
gotest: show the test file pattern in "no test files" error

Fixes #190.

R=r
https://golang.org/cl/154142

14 years agofix some typos in the documentation
Rob Pike [Sun, 15 Nov 2009 20:09:59 +0000 (12:09 -0800)]
fix some typos in the documentation

Fixes #196.

R=rsc
https://golang.org/cl/154152

14 years agofix bug in bytes.Map and add test cases for Map in both strings and bytes packages.
Rob Pike [Sun, 15 Nov 2009 20:07:27 +0000 (12:07 -0800)]
fix bug in bytes.Map and add test cases for Map in both strings and bytes packages.
thanks to ulrik.sverdrup for the test case.

Fixes #191.

R=rsc
CC=golang-dev
https://golang.org/cl/155056

14 years agoUse // to start comment instead of #.
Robert Griesemer [Sun, 15 Nov 2009 19:33:20 +0000 (11:33 -0800)]
Use // to start comment instead of #.
Fixes #189.

R=r
CC=rsc
https://golang.org/cl/155055

14 years agocc: drop redundant strcpy
Russ Cox [Sun, 15 Nov 2009 08:00:05 +0000 (00:00 -0800)]
cc: drop redundant strcpy

Fixes #192.

R=ken2
https://golang.org/cl/155047

14 years agocc: eliminate two fixed-size buffers
Russ Cox [Sun, 15 Nov 2009 07:25:55 +0000 (23:25 -0800)]
cc: eliminate two fixed-size buffers

Fixes bug 168.
Alternative to https://golang.org/cl/152143.

R=ken2
https://golang.org/cl/155042

14 years agocomplain if GOARCH != arm. fix build break caused by gomake
Kai Backman [Sun, 15 Nov 2009 07:08:22 +0000 (23:08 -0800)]
complain if GOARCH != arm. fix build break caused by gomake
introduction.

R=rsc
https://golang.org/cl/152109

14 years agocrypto/rsa: handle the case of non-coprime blinds.
Adam Langley [Sun, 15 Nov 2009 04:38:00 +0000 (20:38 -0800)]
crypto/rsa: handle the case of non-coprime blinds.

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
https://golang.org/cl/154141

14 years agomake arm pass match what's working on real hardware
Kai Backman [Sun, 15 Nov 2009 04:08:22 +0000 (20:08 -0800)]
make arm pass match what's working on real hardware

R=rsc
https://golang.org/cl/154097

14 years agotest/interface/receiver.go: expand to do dynamic
Russ Cox [Sun, 15 Nov 2009 03:28:13 +0000 (19:28 -0800)]
test/interface/receiver.go: expand to do dynamic
versions of static checks in receiver1.go

R=r
https://golang.org/cl/155045

14 years agoBuild changes to support work on the BSDs.
Devon H. O'Dell [Sat, 14 Nov 2009 23:29:09 +0000 (15:29 -0800)]
Build changes to support work on the BSDs.

This does still contain some FreeBSD-specific bits, but
it's a pain to do partial diffs.

R=rsc
https://golang.org/cl/152138

14 years agoAdding myself to AUTHORS/CONTRIBUTORS for Go.
Devon H. O'Dell [Sat, 14 Nov 2009 23:28:47 +0000 (15:28 -0800)]
Adding myself to AUTHORS/CONTRIBUTORS for Go.

R=rsc
https://golang.org/cl/155041

14 years agoencoding/binary: implemented the Write function
Môshe van der Sterre [Sat, 14 Nov 2009 22:42:22 +0000 (14:42 -0800)]
encoding/binary: implemented the Write function
The ByteOrder.Put* methods are already available, this change uses
them to implement the Write function.

R=golang-dev, agl1, rsc, r
https://golang.org/cl/152141

14 years agoAdding my name to CONTRIBUTORS and AUTHORS
Môshe van der Sterre [Sat, 14 Nov 2009 22:42:15 +0000 (14:42 -0800)]
Adding my name to CONTRIBUTORS and AUTHORS
As Adam Langley mentioned, this should go in with
https://golang.org/cl/152141

R=rsc
CC=agl1
https://golang.org/cl/154138

14 years agogc: do not try to constant-evaluate (interface{})("bar")
Russ Cox [Sat, 14 Nov 2009 22:14:27 +0000 (14:14 -0800)]
gc: do not try to constant-evaluate (interface{})("bar")

Fixes #183.

R=ken
https://golang.org/cl/154139

14 years agomove evaluation of null-matching instructions one iteration earlier.
Rob Pike [Sat, 14 Nov 2009 20:23:24 +0000 (12:23 -0800)]
move evaluation of null-matching instructions one iteration earlier.
performance hit of about 20% but more intuitive results for submatches.
we need a good regexp package at some point.

Fixes #110.

R=rsc
CC=golang-dev
https://golang.org/cl/152131

14 years ago xml: Fixed CDATA parsing.
Abhinav Gupta [Sat, 14 Nov 2009 19:46:09 +0000 (11:46 -0800)]
xml: Fixed CDATA parsing.

    Fixes #128.

R=r, rsc
https://golang.org/cl/154126

14 years agoAdded self to AUTHORS and CONTRIBUTORS.
Abhinav Gupta [Sat, 14 Nov 2009 19:45:32 +0000 (11:45 -0800)]
Added self to AUTHORS and CONTRIBUTORS.

R=rsc
https://golang.org/cl/154128

14 years agotypos
Russ Cox [Sat, 14 Nov 2009 18:28:53 +0000 (10:28 -0800)]
typos

Fixes #171.
Fixes #172.

R=agl1
https://golang.org/cl/154136

14 years agoCreated new Conn.Flush() public method so the fd pipeline can be drained arbitrarily...
David Titarenco [Sat, 14 Nov 2009 02:06:47 +0000 (18:06 -0800)]
Created new Conn.Flush() public method so the fd pipeline can be drained 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 #93.

R=r, rsc, david.titarenco
https://golang.org/cl/154099

14 years agoAdded self to AUTHORS and CONTRIBUTORS prior to first submission.
David Titarenco [Sat, 14 Nov 2009 02:06:27 +0000 (18:06 -0800)]
Added self to AUTHORS and CONTRIBUTORS prior to first submission.

R=rsc
https://golang.org/cl/153057

14 years agoRemove unnecessary int(h) casts in image.go.
Nigel Tao [Sat, 14 Nov 2009 01:40:20 +0000 (17:40 -0800)]
Remove unnecessary int(h) casts in image.go.

R=rsc
https://golang.org/cl/154125

14 years agofix typo
Rob Pike [Sat, 14 Nov 2009 00:00:55 +0000 (16:00 -0800)]
fix typo

R=rsc
https://golang.org/cl/152128

14 years agoCorrect indentation for go-mode where a close brace following a semi-
James Aguilar [Fri, 13 Nov 2009 23:52:30 +0000 (15:52 -0800)]
Correct indentation for go-mode where a close brace following a semi-
colon-less statement would be indented one stop too many.

R=rsc, aclements
CC=aclements
https://golang.org/cl/154096

14 years agoAdd myself to the contributors file.
James Aguilar [Fri, 13 Nov 2009 23:52:24 +0000 (15:52 -0800)]
Add myself to the contributors file.

R=rsc
https://golang.org/cl/152101

14 years agojson: minor comment fix.
Adam Langley [Fri, 13 Nov 2009 22:59:04 +0000 (14:59 -0800)]
json: minor comment fix.

I screwed up and didn't write one of the code review changes to disk
before submitting.

TBR=rsc

R=rsc
https://golang.org/cl/154122

14 years agoExplain why
Rob Pike [Fri, 13 Nov 2009 21:15:18 +0000 (13:15 -0800)]
Explain why
-flag true
does not work although
-flag=true
does.

Fixes #139.

R=iant
CC=golang-dev
https://golang.org/cl/154118

14 years agotest/run: use bash, not sh.
Russ Cox [Fri, 13 Nov 2009 21:10:53 +0000 (13:10 -0800)]
test/run: use bash, not sh.
use bash builtin time instead of
assuming /usr/bin/time exists.

R=r
https://golang.org/cl/152124

14 years agojson: allow one to unmarshal a top-level JSON array.
Adam Langley [Fri, 13 Nov 2009 21:00:45 +0000 (13:00 -0800)]
json: allow one to unmarshal a top-level JSON array.

Fixies issue 114.

R=rsc
CC=golang-dev
https://golang.org/cl/154121

14 years agopath.TestWalk: disable error case if root
Russ Cox [Fri, 13 Nov 2009 19:34:33 +0000 (11:34 -0800)]
path.TestWalk: disable error case if root
(chmod 0 doesn't cause errors for root)

Fixes #22.

R=gri
https://golang.org/cl/152120

14 years agojson: fix addressing of slice indexes that are multiples of 8.
Adam Langley [Fri, 13 Nov 2009 19:29:13 +0000 (11:29 -0800)]
json: fix addressing of slice indexes that are multiples of 8.

Fixes #147.

R=rsc
CC=golang-dev
https://golang.org/cl/152123

14 years agoruntime: warn about SELinux based mmap failures on Linux.
Adam Langley [Fri, 13 Nov 2009 18:08:51 +0000 (10:08 -0800)]
runtime: warn about SELinux based mmap failures on Linux.

SELinux will cause mmap to fail when we request w+x memory unless the
user has configured their policies. We have a warning in make.bash,
but it's quite likely that the policy will be reset at some point and
then all their binaries start failing.

This patch prints a warning on Linux when mmap fails with EACCES.

R=rsc
CC=golang-dev
https://golang.org/cl/152086

14 years agoyet another attempt to avoid conflicts with
Russ Cox [Fri, 13 Nov 2009 07:38:48 +0000 (23:38 -0800)]
yet another attempt to avoid conflicts with
<stdio.h>, which we weren't even #including

R=r
https://golang.org/cl/154108

14 years agoremove dead code from test
Rob Pike [Fri, 13 Nov 2009 07:35:45 +0000 (23:35 -0800)]
remove dead code from test

R=rsc
CC=golang-dev
https://golang.org/cl/152118

14 years agosudo.bash tries to install acid and db, which don't exist any more
Rob Pike [Fri, 13 Nov 2009 07:19:12 +0000 (23:19 -0800)]
sudo.bash tries to install acid and db, which don't exist any more

R=rsc
CC=golang-dev
https://golang.org/cl/152117

14 years agoTeach emacs M-x gofmt to save region/restrictions
Kevin Ballard [Fri, 13 Nov 2009 02:40:42 +0000 (18:40 -0800)]
Teach emacs M-x gofmt to save region/restrictions

R=agl, agl1
https://golang.org/cl/152078

14 years agocodereview: clpatch tweaks
Russ Cox [Fri, 13 Nov 2009 02:37:39 +0000 (18:37 -0800)]
codereview: clpatch tweaks

R=agl1
https://golang.org/cl/152114

14 years agoRemove -align flag from gofmt.
Robert Griesemer [Fri, 13 Nov 2009 02:26:45 +0000 (18:26 -0800)]
Remove -align flag from gofmt.
(Making it work correctly with -spaces is a bit of work and the output
won't make much sense as it is intended as input to tabwriter.)
Fixes #100.

R=rsc
https://golang.org/cl/154102

14 years agofix style nit ignored in previous cl
Kai Backman [Fri, 13 Nov 2009 00:12:28 +0000 (16:12 -0800)]
fix style nit ignored in previous cl

R=rsc
https://golang.org/cl/152110

14 years agoadd support for pre arm v6 cas. set GOARM=5 to enable.
Kai Backman [Thu, 12 Nov 2009 23:23:23 +0000 (15:23 -0800)]
add support for pre arm v6 cas. set GOARM=5 to enable.

R=rsc
https://golang.org/cl/154101

14 years agotag new release at 4015/cb140bac9ab0
Russ Cox [Thu, 12 Nov 2009 23:12:52 +0000 (15:12 -0800)]
tag new release at 4015/cb140bac9ab0

R=r
https://golang.org/cl/154100

14 years agotest/run: unset GREP_OPTIONS weekly.2009-11-12
Russ Cox [Thu, 12 Nov 2009 22:55:26 +0000 (14:55 -0800)]
test/run: unset GREP_OPTIONS

Fixes #116.

R=r
https://golang.org/cl/152106

14 years agoos.TestSeek: use a smaller but still 64-bit seek offset.
Russ Cox [Thu, 12 Nov 2009 22:55:04 +0000 (14:55 -0800)]
os.TestSeek: use a smaller but still 64-bit seek offset.

Might fix issue 91.

R=r
https://golang.org/cl/152108

14 years agoproduce helpful error when gotest doesn't find a Makefile
Rob Pike [Thu, 12 Nov 2009 22:28:45 +0000 (14:28 -0800)]
produce helpful error when gotest doesn't find a Makefile

Fixes #117.

R=rsc, agl1
CC=golang-dev
https://golang.org/cl/152107

14 years agoadd a paragraph about semicolons to the tutorial.
Rob Pike [Thu, 12 Nov 2009 22:10:16 +0000 (14:10 -0800)]
add a paragraph about semicolons to the tutorial.
fix a typo caught by kakugawa@gmail.com

Fixes #92.

R=rsc
CC=golang-dev
https://golang.org/cl/152105

14 years agoexp/draw: correct Makefile.
Adam Langley [Thu, 12 Nov 2009 21:55:20 +0000 (13:55 -0800)]
exp/draw: correct Makefile.

Thanks to Allister Macleod

Fixes #112.

R=rsc
CC=golang-dev
https://golang.org/cl/152102

14 years agofix a couple of typos.
Rob Pike [Thu, 12 Nov 2009 19:05:20 +0000 (11:05 -0800)]
fix a couple of typos.
add a mention of range to the tutorial.
change tutorial's title.

R=rsc
CC=golang-dev
https://golang.org/cl/152098

14 years agocc, ld: fix more gcc 4.3 -O2 compile bugs
Russ Cox [Thu, 12 Nov 2009 08:22:45 +0000 (00:22 -0800)]
cc, ld: fix more gcc 4.3 -O2 compile bugs

same as https://golang.org/cl/152088
in more files.

Fixes #83.

R=r, r1
https://golang.org/cl/152091