net/textproto: replace '3-digit' with 'three-digit'

A matter on form in documentation.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/13087043

Committer: Rob Pike <r@golang.org>
net/textproto: use ReadDotBytes instead of non-existent ReadDotAll.

Fixes issue 5893.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/13086043

Committer: Rob Pike <r@golang.org>
Merge branch 'master' into gitfix
net: make protocol-specific WriteTo, WriteMsg methods return error instead of crash

R=golang-dev, dave, rsc, adg, bradfitz
CC=golang-dev
https://codereview.appspot.com/11809043
cmd/dist: more informative error for mkdtemp failing
The Darwin builders are all failing here but strerror doesn't provide context.

R=golang-dev, bradfitz, adg
CC=golang-dev
https://codereview.appspot.com/13095043
encoding/xml: flush buffer after encoding token

R=rsc, bradfitz, adg
CC=golang-dev
https://codereview.appspot.com/13004046

Committer: Andrew Gerrand <adg@golang.org>
testing: don't start timing a Parallel test until it's actually starting
Fixes issue 5285.

R=golang-dev, dvyukov
CC=golang-dev
https://codereview.appspot.com/13045044
A+C: Marco Hennings (individual CLA)

Generated by addca.

R=gobot
CC=golang-dev
https://codereview.appspot.com/13096043
archive/tar: Fix support for long links and improve PAX support.

The tar/archive code from golang has a problem with linknames with length >
100. A pax header is added but the original header still written with a too
long field length.

As it is clear that pax support is incomplete I have added missing
implementation parts.

This commit contains code from the golang project in the folder tar/archiv.

The following pax header records are now automatically written:

- gname)
- linkpath
- path
- uname

The following fields can be written with PAX, but the default is to use the
star binary extension.

- gid  (value > 2097151)
- size (value > 8589934591)
- uid (value > 2097151)

The string fields are written when the value is longer as the field or if the
string contains a char that is not encodable as 7-bit ASCII value.

The change was tested against a current ubuntu-cloud image tarball comparing
the compressed result.

+ added some automated tests for the new functionality.

Fixes issue 6056.

R=dsymonds
CC=golang-dev
https://codereview.appspot.com/12561043

Committer: David Symonds <dsymonds@golang.org>
cmd/dist: join with TMPDIR more carefully to avoid // in path.

This might fix the mkdtemp problem on the darwin builders if they
have TMPDIR set to a path ending in a slash; at worse this will
result in cleaner path names.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/13097043
make.bash: exit if dist fails
The shell's -e doesn't work across "eval"; need to error-check by hand.
The recent spate of Darwin build failures pointed out that if the first
run of cmd/dist fails, we keep going. We shouldn't.

R=golang-dev, dsymonds
CC=golang-dev
https://codereview.appspot.com/13098043
math/big: fix nil bug in GobEncode

Update issue 5305.
This handles the case where the nil pointers are inside a slice.
A top-level nil pointer is harder, maybe fundamentally broken by gob's model.
Thinking required.
However, a slice is the important case since people don't expect to be sending
top-level nils much, but they can arise easily in slices.

R=golang-dev, josharian, adg
CC=golang-dev
https://codereview.appspot.com/13042044
cmd/gc: better error messages for C-style if statements.
Given
        if (i == 0)
                x++
The old message was
        x.go:6: syntax error: unexpected semicolon or newline before {
Now we see
        x.go:6: syntax error: missing { after if clause

Fixes issue 5687

R=golang-dev, adg
CC=golang-dev
https://codereview.appspot.com/12822045
cmd/gc: don't attempt to generate wrappers for blank interface methods

Fixes issue 5691.

R=golang-dev, bradfitz, daniel.morsing, rsc
CC=golang-dev
https://codereview.appspot.com/10255047

Committer: Rob Pike <r@golang.org>
test: fix build
syntax/*: update messages
sliceerr3.go: bizarre new error fixed by deleting a space.

I could have sworn I ran all.bash before submitting the CL that triggered these.

TBR=golang-dev@googlegroups.com

R=golang-dev
CC=golang-dev
https://codereview.appspot.com/12812044
cmd/gc: regenerate y.tab.{c,h} with Bison 2.5.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/12744048
cmd/go: diagnose import cycles better

Before this CL, the import stack was a) not printed and b) overwritten later
in the build, destroying the information about the cycle. This CL fixes both.

I made time depend on os (os already depends on time) and with this CL the error is:

/Users/r/go/src/pkg/fmt/print.go:10:2: import cycle not allowed
package code.google.com/p/XXX/YYY:
        imports fmt
        imports os
        imports time
        imports os

Doesn't give line numbers for the actual imports, as requested in the bug, but
I don't believe that's important.

Fixes issue 4292.

R=golang-dev, adg
CC=golang-dev
https://codereview.appspot.com/13100043
cmd/go: only try to clean executables for package main

Fixes issue 5665.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/12807044
Merge branch 'master' into gitfix