os: fix data race on Process.done

Fixes issue 3969.

R=dvyukov, r, alex.brainman, minux.ma
CC=golang-dev
http://codereview.appspot.com/6462081
net/http: fix send on close channel error

Fixes issue 3793.

Tested using GOMAXPROCS=81 which was able to trigger a panic
in TestStressSurpriseServerCloses continually on a Core i5.

R=fullung, bradfitz
CC=golang-dev
http://codereview.appspot.com/6445069
net/http: fix misplaced defer and example

Moves the defer (again).

Also, correct the example documentation to match.

R=r, robert.hencke, iant, dsymonds, bradfitz
CC=golang-dev
http://codereview.appspot.com/6458158
exp/html: refactor the parser.read method.

R=andybalholm
CC=golang-dev
http://codereview.appspot.com/6463070
A+C: add Joakim Sernbrant

R=golang-dev, nigeltao
CC=golang-dev
http://codereview.appspot.com/6476043
archive/zip: zip64 support

R=golang-dev, r, adg
CC=golang-dev
http://codereview.appspot.com/6463050

Committer: Andrew Gerrand <adg@golang.org>
cmd/go: fix cgo linking on netbsd

NetBSD's built-in linker script for 'ld -r' does not provide a
SEARCH_DIR. As a result libgcc.a is not found when -lgcc is used.

Work around this by determining the path to libgcc (by invoking
gcc with the -print-libgcc-file-name option) and explicitly
referencing the resulting library.

R=golang-dev, iant, aram, lucio.dere, minux.ma
CC=golang-dev
http://codereview.appspot.com/6470044
CONTRIBUTORS: Add Dave Borowitz (Google CLA)

R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/6484046
net/http: Set TLSClientConfig.ServerName on every HTTP request.

This makes SNI "just work" for callers using the standard http.Client.

Since we now have a test that depends on the httptest.Server cert, change
the cert to be a CA (keeping all other fields the same).

R=bradfitz
CC=agl, dsymonds, gobot, golang-dev
http://codereview.appspot.com/6448154

Committer: Brad Fitzpatrick <bradfitz@golang.org>
time: avoid data race in abs
Fixes issue 3967.

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6460115
C+A: add Carlos Castillo cookieo9@gmail.com (individual CLA)

R=golang-dev, iant
CC=golang-dev
http://codereview.appspot.com/6479045
time: add YearDay method for time.Time structs

YearDay provides the day in the year represented by a given time.Time
object. This value is normally computed as part of other date calculations,
but not exported.

Fixes issue 3932.

R=golang-dev, r, remyoudompheng
CC=golang-dev, rsc
http://codereview.appspot.com/6460069

Committer: Rob Pike <r@golang.org>
time: fix spacing in comment.
No semantic change.

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/6475050
cmd/8g: roll back the small integer constant optimizations introduced
in 13416:67c0b8c8fb29 "faster code, mainly for rotate" [1]. The codegen
can run out of registers if there are too many small-int arithmetic ops.

An alternative approach is to copy 6g's sbop/abop codegen to 8g, but
this change is less risky.

Fixes issue 3835.

[1] http://code.google.com/p/go/source/diff?spec=svn67c0b8c8fb29b1b7b6221977af6b89cae787b941&name=67c0b8c8fb29&r=67c0b8c8fb29b1b7b6221977af6b89cae787b941&format=side&path=/src/cmd/8g/cgen.c

R=rsc, remyoudompheng, r
CC=golang-dev
http://codereview.appspot.com/6450163
cmd/ld: set ELF header flags for our Linux/ARM binary
To make it more compliant.
This won't affect the behavior of running on OABI-only kernels.

R=golang-dev, iant
CC=golang-dev
http://codereview.appspot.com/6475044
cmd/6g: fix float32/64->uint64 conversion
    CVTSS2SQ's rounding mode is controlled by the RC field of MXCSR;
as we specifically need truncate semantic, we should use CVTTSS2SQ.

    Fixes issue 3804.

R=rsc, r
CC=golang-dev
http://codereview.appspot.com/6352079
net: avoid nil pointer dereference when RemoteAddr.String method chain is called

Fixes issue 3721.

R=dave, rsc
CC=golang-dev
http://codereview.appspot.com/6395055